Neo-Tokyo Neon Noir design pour fiches items

- Nouvelle palette : #080c14 fond, accents néon par type (#00d4d4 item, #ff3d5a kungfu, #4a9eff spell, #cc44ff supernatural)
- Nouveaux composants LESS : .cde-neon-header (clip-path angulaire + accent line), .cde-avatar (clip-path), .cde-stat-grid/.cde-stat-cell (style terminal), .cde-badge (parallélogramme), .cde-neon-tabs (underline néon animé), .cde-check-cell
- Fix layout : .cde-sheet width: 100% + height: 100% + overflow: hidden, .cde-tab-body flex: 1 + min-height: 0, .cde-notes-editor flex stretch
- Fix positions : DEFAULT_OPTIONS height explicite pour tous les types (item 620x580, spell 660x680, kungfu 720x680, supernatural 560x520)
- 4 templates items reécrits avec nouvelles classes et structure épurée

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-26 00:18:04 +01:00
commit 068fca00e5
739 changed files with 7923 additions and 0 deletions

4
src/data/items/index.js Normal file
View File

@@ -0,0 +1,4 @@
export { default as EquipmentDataModel } from "./item.js"
export { default as KungfuDataModel } from "./kungfu.js"
export { default as SpellDataModel } from "./spell.js"
export { default as SupernaturalDataModel } from "./supernatural.js"

20
src/data/items/item.js Normal file
View File

@@ -0,0 +1,20 @@
export default class EquipmentDataModel extends foundry.abstract.TypeDataModel {
static defineSchema() {
const { fields } = foundry.data
const numberField = (initial = 0, extra = {}) => new fields.NumberField({ required: true, nullable: false, integer: true, initial, ...extra })
const stringField = (initial = "") => new fields.StringField({ required: true, nullable: false, initial })
const htmlField = (initial = "") => new fields.HTMLField({ required: true, nullable: false, initial, textSearch: true })
return {
subtype: stringField(""),
reference: stringField(""),
description: htmlField(""),
quantity: numberField(1, { min: 0 }),
weight: numberField(0, { min: 0 }),
protection: stringField(""),
damage: stringField(""),
range: stringField(""),
notes: htmlField(""),
}
}
}

32
src/data/items/kungfu.js Normal file
View File

@@ -0,0 +1,32 @@
export default class KungfuDataModel extends foundry.abstract.TypeDataModel {
static defineSchema() {
const { fields } = foundry.data
const stringField = (initial = "") => new fields.StringField({ required: true, nullable: false, initial })
const htmlField = (initial = "") => new fields.HTMLField({ required: true, nullable: false, initial, textSearch: true })
const boolField = (initial = false) => new fields.BooleanField({ required: true, initial })
const techniqueField = () =>
new fields.SchemaField({
check: boolField(false),
name: stringField(""),
activation: stringField(""),
technique: htmlField(""),
})
return {
reference: stringField(""),
description: htmlField(""),
orientation: stringField(""),
aspect: stringField(""),
skill: stringField(""),
speciality: stringField(""),
style: stringField(""),
techniques: new fields.SchemaField({
technique1: techniqueField(),
technique2: techniqueField(),
technique3: techniqueField(),
}),
notes: htmlField(""),
}
}
}

22
src/data/items/spell.js Normal file
View File

@@ -0,0 +1,22 @@
export default class SpellDataModel extends foundry.abstract.TypeDataModel {
static defineSchema() {
const { fields } = foundry.data
const stringField = (initial = "") => new fields.StringField({ required: true, nullable: false, initial })
const htmlField = (initial = "") => new fields.HTMLField({ required: true, nullable: false, initial, textSearch: true })
return {
reference: stringField(""),
description: htmlField(""),
specialityname: stringField(""),
associatedelement: stringField(""),
hei: stringField(""),
realizationtimeritual: stringField(""),
realizationtimeaccelerated: stringField(""),
flashback: stringField(""),
components: htmlField(""),
effects: htmlField(""),
examples: htmlField(""),
notes: htmlField(""),
}
}
}

View File

@@ -0,0 +1,13 @@
export default class SupernaturalDataModel extends foundry.abstract.TypeDataModel {
static defineSchema() {
const { fields } = foundry.data
const stringField = (initial = "") => new fields.StringField({ required: true, nullable: false, initial })
const htmlField = (initial = "") => new fields.HTMLField({ required: true, nullable: false, initial, textSearch: true })
return {
reference: stringField(""),
description: htmlField(""),
notes: htmlField(""),
}
}
}