From f7627e3e46fa811aef943b304c2dcabe99ba4760 Mon Sep 17 00:00:00 2001 From: Byroks Date: Fri, 16 Oct 2026 22:04:36 +0200 Subject: [PATCH] not sure what happend --- package-lock.json | 8 ++++---- package.json | 6 ++++-- src/assets/svg/plain-square.svg | 2 -- src/sheets/character-sheet.mjs | 9 ++++++--- src/styles/M6.scss | 1 - src/system.mjs | 1 + src/templates/actor/nav.hbs | 2 +- src/templates/shared/properties.hbs | 15 +++++++++++++-- system.json | 4 ++-- 9 files changed, 31 insertions(+), 17 deletions(-) delete mode 100644 src/assets/svg/plain-square.svg diff --git a/package-lock.json b/package-lock.json index 5a7ea47..2cbd24b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "fvtt-types": "^13.346.0-beta.20250812191140", "globals": "^17.7.0", "prettier": "^3.8.4", - "sass": "^1.101.0", + "sass": "^1.105.2", "typescript": "^5.6.0", "typescript-eslint": "^8.62.0", "vite": "^5.4.0", @@ -7444,9 +7444,9 @@ } }, "node_modules/sass": { - "version": "1.101.0", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.101.0.tgz", - "integrity": "sha512-OL3GoQyoUdDt843DpVmDO6y2k1sc5IhUDSpu8XucEI+35neq5QivZ1iuegnpraEVTJXlQGK1gl27zKcTLEPbQw==", + "version": "1.105.2", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.105.2.tgz", + "integrity": "sha512-KxW6ZKZiBKWK3ziQ4YZ3cpqo8/1TlHXE8t9nBNvGDZFoBFbk2MD7RacxYFs8zy8hzeFwpFYkVyAhboi47uYPEQ==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 44dcd09..ceeef93 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,10 @@ "private": true, "type": "module", "scripts": { - "build": "sass src/styles/M6.scss dist/M6.css --style=expanded --no-source-map", - "watch": "sass src/styles/M6.scss dist/M6.css --style=expanded --source-map --watch", + "build": "sass src/styles/M6.scss dist/style.css --style=expanded --no-source-map", + "watch": "sass src/styles/M6.scss dist/style.css --style=expanded --source-map --watch", + "vite:build": "vite build", + "vite:watch": "vite build --watch", "typecheck": "tsc --noEmit", "lint": "eslint .", "lint:fix": "eslint . --fix", diff --git a/src/assets/svg/plain-square.svg b/src/assets/svg/plain-square.svg deleted file mode 100644 index 6fc3dae..0000000 --- a/src/assets/svg/plain-square.svg +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/src/sheets/character-sheet.mjs b/src/sheets/character-sheet.mjs index b0cdaf5..e7b3bb9 100644 --- a/src/sheets/character-sheet.mjs +++ b/src/sheets/character-sheet.mjs @@ -36,13 +36,16 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe primary: { tabs: [ { - id: "properties" + id: "properties", + icon: "fa-feather-pointed" }, { - id: "items" + id: "items", + icon: "fa-suitcase" }, { - id: "effects" + id: "effects", + icon: "fa-bolt" } ], initial: "properties", diff --git a/src/styles/M6.scss b/src/styles/M6.scss index ce0e84c..c879e3c 100644 --- a/src/styles/M6.scss +++ b/src/styles/M6.scss @@ -4,7 +4,6 @@ --M6-background-white: #fdfeff; --M6-text-grey: #595d5f; --M6-text-brown: #be7742; - --mask-square: url("src/assets/svg/plain-square.svg"); } .application { overflow: visible; diff --git a/src/system.mjs b/src/system.mjs index d18c10e..876ee3f 100644 --- a/src/system.mjs +++ b/src/system.mjs @@ -2,6 +2,7 @@ import { CharacterData } from "./data/character-data.mjs"; import { ItemData } from "./data/item-data.mjs"; import { M6ActorSheet } from "./sheets/character-sheet.mjs"; import { loadHelpers } from "./helpers/handlebar-helpers.mjs"; +import "./styles/M6.scss"; Hooks.once("init", () => { CONFIG.Actor.dataModels.character = CharacterData; diff --git a/src/templates/actor/nav.hbs b/src/templates/actor/nav.hbs index 6b7820a..6a8efc3 100644 --- a/src/templates/actor/nav.hbs +++ b/src/templates/actor/nav.hbs @@ -11,7 +11,7 @@
- + diff --git a/src/templates/shared/properties.hbs b/src/templates/shared/properties.hbs index 81acf4b..f805ff8 100644 --- a/src/templates/shared/properties.hbs +++ b/src/templates/shared/properties.hbs @@ -8,19 +8,30 @@
{{localize legend}} {{#each fields}} -
diff --git a/system.json b/system.json index cc09bfa..fbc2f22 100644 --- a/system.json +++ b/system.json @@ -13,7 +13,7 @@ } ], "esmodules": ["dist/system.mjs"], - "styles": ["dist/M6.css"], + "styles": ["dist/style.css"], "languages": [ { "lang": "de", @@ -49,7 +49,7 @@ "flags": { "hotReload": { "extensions": ["scss", "html", "hbs", "json"], - "paths": ["src/styles/M6.scss", "templates", "lang", "src"] + "paths": ["templates", "lang", "src"] } } }