From 98eb389a1390e05615df0c8e5e33126495c6c24a Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Wed, 1 Jan 2025 01:49:22 -0700 Subject: [PATCH] Do some renaming to be more clean --- module/Apps/ActorSheets/HeroSummaryCardV1.mjs | 4 ++-- module/Apps/{GenericSheet.mjs => GenericApp.mjs} | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) rename module/Apps/{GenericSheet.mjs => GenericApp.mjs} (87%) diff --git a/module/Apps/ActorSheets/HeroSummaryCardV1.mjs b/module/Apps/ActorSheets/HeroSummaryCardV1.mjs index 105dacb..b1428db 100644 --- a/module/Apps/ActorSheets/HeroSummaryCardV1.mjs +++ b/module/Apps/ActorSheets/HeroSummaryCardV1.mjs @@ -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 = { diff --git a/module/Apps/GenericSheet.mjs b/module/Apps/GenericApp.mjs similarity index 87% rename from module/Apps/GenericSheet.mjs rename to module/Apps/GenericApp.mjs index f724041..7832956 100644 --- a/module/Apps/GenericSheet.mjs +++ b/module/Apps/GenericApp.mjs @@ -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; };