Do some renaming to be more clean

This commit is contained in:
Oliver-Akins 2025-01-01 01:49:22 -07:00
parent b8894916cd
commit 98eb389a13
2 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
import { filePath } from "../../consts.mjs";
import { gameTerms } from "../../gameTerms.mjs";
import { GenericSheetMixin } from "../GenericSheet.mjs";
import { GenericAppMixin } from "../GenericApp.mjs";
import { localizer } from "../../utils/Localizer.mjs";
import { Logger } from "../../utils/Logger.mjs";
@ -9,7 +9,7 @@ const { HandlebarsApplicationMixin } = foundry.applications.api;
const { ActorSheetV2 } = foundry.applications.sheets;
// const { Roll } = foundry.dice;
export class HeroSummaryCardV1 extends GenericSheetMixin(HandlebarsApplicationMixin(ActorSheetV2)) {
export class HeroSummaryCardV1 extends GenericAppMixin(HandlebarsApplicationMixin(ActorSheetV2)) {
// #region Options
static DEFAULT_OPTIONS = {

View file

@ -6,8 +6,8 @@ const { Roll } = foundry.dice;
/**
* A mixin that takes the class from HandlebarsApplicationMixin and
*/
export function GenericSheetMixin(HandlebarsSheet) {
class GenericRipCryptSheet extends HandlebarsSheet {
export function GenericAppMixin(HandlebarsApp) {
class GenericRipCryptApp extends HandlebarsApp {
// #region Options
static DEFAULT_OPTIONS = {
@ -39,7 +39,7 @@ export function GenericSheetMixin(HandlebarsSheet) {
// #endregion
// #region Actions
/** @this {GenericRipCryptSheet} */
/** @this {GenericRipCryptApp} */
static async rollDice(_$e, el) {
const data = el.dataset;
const formula = data.formula;
@ -59,5 +59,5 @@ export function GenericSheetMixin(HandlebarsSheet) {
};
// #endregion
};
return GenericRipCryptSheet;
return GenericRipCryptApp;
};