From 72ebc0354df7646a99af51b4b7b08fc8dea3f292 Mon Sep 17 00:00:00 2001 From: Eldritch-Oliver Date: Sat, 4 Oct 2025 19:41:53 -0600 Subject: [PATCH] Remove old application that is no longer used by anything --- module/apps/ResizeControlManager.mjs | 61 --------------------- styles/Apps/ResizeControlManager.css | 20 ------- templates/ResizeControlManager/controls.hbs | 7 --- templates/ResizeControlManager/settings.hbs | 29 ---------- 4 files changed, 117 deletions(-) delete mode 100644 module/apps/ResizeControlManager.mjs delete mode 100644 styles/Apps/ResizeControlManager.css delete mode 100644 templates/ResizeControlManager/controls.hbs delete mode 100644 templates/ResizeControlManager/settings.hbs diff --git a/module/apps/ResizeControlManager.mjs b/module/apps/ResizeControlManager.mjs deleted file mode 100644 index 3bd2b08..0000000 --- a/module/apps/ResizeControlManager.mjs +++ /dev/null @@ -1,61 +0,0 @@ -import { __ID__, filePath } from "../consts.mjs"; - -const { HandlebarsApplicationMixin, DocumentSheetV2 } = foundry.applications.api; -const { getProperty } = foundry.utils; - -export class ResizeControlManager extends HandlebarsApplicationMixin(DocumentSheetV2) { - - // #region Options - static DEFAULT_OPTIONS = { - classes: [ - __ID__, - `ResizeControlManager`, - ], - position: { - width: 400, - height: `auto`, - }, - window: { - resizable: true, - }, - form: { - submitOnChange: false, - closeOnSubmit: true, - }, - actions: {}, - }; - - static PARTS = { - settings: { template: filePath(`templates/ResizeControlManager/settings.hbs`) }, - controls: { template: filePath(`templates/ResizeControlManager/controls.hbs`) }, - }; - // #endregion Options - - // #region Instance Data - get title() { - return `Sizing Settings For : ${this.document.name}`; - }; - // #endregion Instance Data - - // #region Data Prep - async _prepareContext() { - const sizing = getProperty(this.document, `flags.${__ID__}.PlayerSheet.size`) ?? {}; - - const ctx = { - meta: { - idp: this.id, - }, - width: sizing.width, - height: sizing.height, - resizable: sizing.resizable, - resizeOptions: [ - { label: `Default`, value: `` }, - { label: `Resizable`, value: `true` }, - { label: `No Resizing`, value: `false` }, - ], - }; - - return ctx; - }; - // #endregion Data Prep -}; diff --git a/styles/Apps/ResizeControlManager.css b/styles/Apps/ResizeControlManager.css deleted file mode 100644 index 7783d40..0000000 --- a/styles/Apps/ResizeControlManager.css +++ /dev/null @@ -1,20 +0,0 @@ -.taf.ResizeControlManager { - fieldset { - display: grid; - grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); - align-items: center; - gap: 8px; - border: 1px solid rebeccapurple; - border-radius: 4px; - } - - .controls { - display: flex; - flex-direction: row; - gap: 8px; - - button { - flex-grow: 1; - } - } -} diff --git a/templates/ResizeControlManager/controls.hbs b/templates/ResizeControlManager/controls.hbs deleted file mode 100644 index 6f62afb..0000000 --- a/templates/ResizeControlManager/controls.hbs +++ /dev/null @@ -1,7 +0,0 @@ -
- -
diff --git a/templates/ResizeControlManager/settings.hbs b/templates/ResizeControlManager/settings.hbs deleted file mode 100644 index 39a1f20..0000000 --- a/templates/ResizeControlManager/settings.hbs +++ /dev/null @@ -1,29 +0,0 @@ -
-

- Changes to these settings will only take effect after a reload of Foundry. -

-
- Sizing - - - - - - -
-