Tweak the template/css structure
This commit is contained in:
parent
1afffb0a73
commit
56fe115407
24 changed files with 10 additions and 7 deletions
|
|
@ -32,7 +32,7 @@ export class HeroSkillsCardV1 extends GenericAppMixin(HandlebarsApplicationMixin
|
||||||
|
|
||||||
static PARTS = {
|
static PARTS = {
|
||||||
content: {
|
content: {
|
||||||
template: filePath(`Apps/HeroSkillsCardV1/content.hbs`),
|
template: filePath(`templates/Apps/HeroSkillsCardV1/content.hbs`),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ export class HeroSummaryCardV1 extends GenericAppMixin(HandlebarsApplicationMixi
|
||||||
|
|
||||||
static PARTS = {
|
static PARTS = {
|
||||||
content: {
|
content: {
|
||||||
template: filePath(`Apps/HeroSummaryCardV1/content.hbs`),
|
template: filePath(`templates/Apps/HeroSummaryCardV1/content.hbs`),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ export class CryptApp extends GenericAppMixin(HandlebarsApplicationMixin(Applica
|
||||||
|
|
||||||
static PARTS = {
|
static PARTS = {
|
||||||
main: {
|
main: {
|
||||||
template: filePath(`Apps/CryptApp/main.hbs`),
|
template: filePath(`templates/Apps/CryptApp/main.hbs`),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ export class RipCryptIcon extends StyledShadowElement(HTMLElement) {
|
||||||
static formAssociated = false;
|
static formAssociated = false;
|
||||||
|
|
||||||
/* Stuff for the mixin to use */
|
/* Stuff for the mixin to use */
|
||||||
static _stylePath = `components/icon.css`;
|
static _stylePath = `css/components/icon.css`;
|
||||||
|
|
||||||
|
|
||||||
static _cache = new Map();
|
static _cache = new Map();
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ export function StyledShadowElement(Base) {
|
||||||
if (this.constructor._styles) {
|
if (this.constructor._styles) {
|
||||||
this._style.innerHTML = this.constructor._styles;
|
this._style.innerHTML = this.constructor._styles;
|
||||||
} else {
|
} else {
|
||||||
fetch(`./systems/${game.system.id}/Apps/${this.constructor._stylePath}`)
|
fetch(`./systems/${game.system.id}/templates/${this.constructor._stylePath}`)
|
||||||
.then(r => r.text())
|
.then(r => r.text())
|
||||||
.then(t => {
|
.then(t => {
|
||||||
this.constructor._styles = t;
|
this.constructor._styles = t;
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@
|
||||||
"module/main.mjs"
|
"module/main.mjs"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"Apps/common.css",
|
"templates/css/common.css",
|
||||||
"Apps/apps.css"
|
"templates/Apps/apps.css"
|
||||||
],
|
],
|
||||||
"languages": [
|
"languages": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
3
templates/chat/roll.hbs
Normal file
3
templates/chat/roll.hbs
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<div class="dice-roll">
|
||||||
|
HELLO
|
||||||
|
</div>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue