Prettier formatting 2

2.0
Matheus Clemente 2023-11-08 00:08:35 -03:00
parent 2c267d0c86
commit f42ba3da33
17 changed files with 736 additions and 649 deletions

View File

@ -55,5 +55,4 @@
"CMPBrowser.LOADED.Message": "Loaded {numLoaded} {itemType}s", "CMPBrowser.LOADED.Message": "Loaded {numLoaded} {itemType}s",
"CMPBrowser.LOADED.MaxLoaded": "(maximum displayed; to see more, use the filters)", "CMPBrowser.LOADED.MaxLoaded": "(maximum displayed; to see more, use the filters)",
"CMPBrowser.Filters.ResetFilters": "Reset Filters" "CMPBrowser.Filters.ResetFilters": "Reset Filters"
} }

View File

@ -1,17 +1,17 @@
{ {
"CMPBrowser.compendiumBrowser":"Compendium Browser", "CMPBrowser.compendiumBrowser": "Compendium Browser",
"CMPBrowser.sortBy":"Sort by", "CMPBrowser.sortBy": "Sort by",
"CMPBrowser.generalSettings":"General Settings", "CMPBrowser.generalSettings": "General Settings",
"CMPBrowser.allowSpellAcc": "Allow Players Access to the spell browser", "CMPBrowser.allowSpellAcc": "Allow Players Access to the spell browser",
"CMPBrowser.allowFeatAcc": "Allow Players Access to the feat browser", "CMPBrowser.allowFeatAcc": "Allow Players Access to the feat browser",
"CMPBrowser.allowItemAcc": "Allow Players Access to the item browser", "CMPBrowser.allowItemAcc": "Allow Players Access to the item browser",
"CMPBrowser.allowNpcAcc": "Allow Players Access to the npc browser", "CMPBrowser.allowNpcAcc": "Allow Players Access to the npc browser",
"CMPBrowser.compSettingsSpell": "Item Compendium Settings", "CMPBrowser.compSettingsSpell": "Item Compendium Settings",
"CMPBrowser.compSettingsNpc": "NPC Compendium Settings", "CMPBrowser.compSettingsNpc": "NPC Compendium Settings",
"CMPBrowser.load":"Load", "CMPBrowser.load": "Load",
"CMPBrowser.castingTime":"Casting Time", "CMPBrowser.castingTime": "Casting Time",
"CMPBrowser.spellType":"Spell Type", "CMPBrowser.spellType": "Spell Type",
"CMPBrowser.damageType":"Damage Type", "CMPBrowser.damageType": "Damage Type",
"CMPBrowser.UsesResources": "Uses Resources", "CMPBrowser.UsesResources": "Uses Resources",
"CMPBrowser.GameMechanics": "Game Mechanics", "CMPBrowser.GameMechanics": "Game Mechanics",
"CMPBrowser.ItemSubtype": "Item Subtype", "CMPBrowser.ItemSubtype": "Item Subtype",
@ -38,12 +38,12 @@
"CMPBrowser.sorcerer": "Sorcerer", "CMPBrowser.sorcerer": "Sorcerer",
"CMPBrowser.warlock": "Warlock", "CMPBrowser.warlock": "Warlock",
"CMPBrowser.wizard": "Wizard", "CMPBrowser.wizard": "Wizard",
"CMPBrowser.general":"General", "CMPBrowser.general": "General",
"CMPBrowser.overall":"Overall Type", "CMPBrowser.overall": "Overall Type",
"CMPBrowser.subfeature":"Subfeature Type", "CMPBrowser.subfeature": "Subfeature Type",
"CMPBrowser.hasSpells":"Has Spells", "CMPBrowser.hasSpells": "Has Spells",
"CMPBrowser.hasLegAct":"Has Legendary Actions", "CMPBrowser.hasLegAct": "Has Legendary Actions",
"CMPBrowser.hasLegRes":"Has Legendary Resistance", "CMPBrowser.hasLegRes": "Has Legendary Resistance",
"CMPBrowser.dmgInteraction": "Damage Interaction", "CMPBrowser.dmgInteraction": "Damage Interaction",
"CMPBrowser.dmgDealt": "Damage Dealt", "CMPBrowser.dmgDealt": "Damage Dealt",
"CMPBrowser.Tab.SpellBrowser": "Spell Browser", "CMPBrowser.Tab.SpellBrowser": "Spell Browser",
@ -57,5 +57,4 @@
"CMPBrowser.LOADED.Message": "Loaded {numLoaded} {itemType}s", "CMPBrowser.LOADED.Message": "Loaded {numLoaded} {itemType}s",
"CMPBrowser.LOADED.MaxLoaded": "(maximum displayed; to see more, use the filters)", "CMPBrowser.LOADED.MaxLoaded": "(maximum displayed; to see more, use the filters)",
"CMPBrowser.Filters.ResetFilters": "Reset Filters" "CMPBrowser.Filters.ResetFilters": "Reset Filters"
} }

View File

@ -55,5 +55,4 @@
"CMPBrowser.LOADED.Message": "Loaded {numLoaded} {itemType}s", "CMPBrowser.LOADED.Message": "Loaded {numLoaded} {itemType}s",
"CMPBrowser.LOADED.MaxLoaded": "(maximum displayed; to see more, use the filters)", "CMPBrowser.LOADED.MaxLoaded": "(maximum displayed; to see more, use the filters)",
"CMPBrowser.Filters.ResetFilters": "Reset Filters" "CMPBrowser.Filters.ResetFilters": "Reset Filters"
} }

View File

@ -1,17 +1,17 @@
{ {
"CMPBrowser.compendiumBrowser":"Recherche dans les Compendium", "CMPBrowser.compendiumBrowser": "Recherche dans les Compendium",
"CMPBrowser.sortBy":"Trié par", "CMPBrowser.sortBy": "Trié par",
"CMPBrowser.generalSettings":"Paramètres généraux", "CMPBrowser.generalSettings": "Paramètres généraux",
"CMPBrowser.allowSpellAcc":"Autoriser les joueurs à accéder aux listes de sorts", "CMPBrowser.allowSpellAcc": "Autoriser les joueurs à accéder aux listes de sorts",
"CMPBrowser.allowFeatAcc": "Allow Players Access to the feat browser", "CMPBrowser.allowFeatAcc": "Allow Players Access to the feat browser",
"CMPBrowser.allowItemAcc": "Allow Players Access to the item browser", "CMPBrowser.allowItemAcc": "Allow Players Access to the item browser",
"CMPBrowser.allowNpcAcc":"Autoriser les joueurs à accéder aux listes de PNJ", "CMPBrowser.allowNpcAcc": "Autoriser les joueurs à accéder aux listes de PNJ",
"CMPBrowser.compSettingsSpell":"Paramètres de compendium de sorts", "CMPBrowser.compSettingsSpell": "Paramètres de compendium de sorts",
"CMPBrowser.compSettingsNpc":"Paramètres de compendium de PNJ", "CMPBrowser.compSettingsNpc": "Paramètres de compendium de PNJ",
"CMPBrowser.load":"Charger", "CMPBrowser.load": "Charger",
"CMPBrowser.castingTime":"Durée d'incantation", "CMPBrowser.castingTime": "Durée d'incantation",
"CMPBrowser.spellType":"Type de sort", "CMPBrowser.spellType": "Type de sort",
"CMPBrowser.damageType":"Type de dégâts", "CMPBrowser.damageType": "Type de dégâts",
"CMPBrowser.UsesResources": "Uses Resources", "CMPBrowser.UsesResources": "Uses Resources",
"CMPBrowser.GameMechanics": "Game Mechanics", "CMPBrowser.GameMechanics": "Game Mechanics",
"CMPBrowser.ItemSubtype": "Item Subtype", "CMPBrowser.ItemSubtype": "Item Subtype",
@ -27,21 +27,21 @@
"CMPBrowser.ItemsPacksScholar": "Scholar's Pack", "CMPBrowser.ItemsPacksScholar": "Scholar's Pack",
"CMPBrowser.artificer": "Artificer", "CMPBrowser.artificer": "Artificer",
"CMPBrowser.barbarian": "Barbarian", "CMPBrowser.barbarian": "Barbarian",
"CMPBrowser.bard":"Barde", "CMPBrowser.bard": "Barde",
"CMPBrowser.cleric":"Clerc", "CMPBrowser.cleric": "Clerc",
"CMPBrowser.druid":"Druide", "CMPBrowser.druid": "Druide",
"CMPBrowser.fighter": "Fighter", "CMPBrowser.fighter": "Fighter",
"CMPBrowser.monk": "Monk", "CMPBrowser.monk": "Monk",
"CMPBrowser.paladin":"Paladin", "CMPBrowser.paladin": "Paladin",
"CMPBrowser.ranger":"Rôdeur", "CMPBrowser.ranger": "Rôdeur",
"CMPBrowser.rogue": "Rogue", "CMPBrowser.rogue": "Rogue",
"CMPBrowser.sorcerer":"Sorcier", "CMPBrowser.sorcerer": "Sorcier",
"CMPBrowser.warlock":"Ensorceleur", "CMPBrowser.warlock": "Ensorceleur",
"CMPBrowser.wizard":"Magicien", "CMPBrowser.wizard": "Magicien",
"CMPBrowser.general":"Général", "CMPBrowser.general": "Général",
"CMPBrowser.hasSpells":"à des Sorts", "CMPBrowser.hasSpells": "à des Sorts",
"CMPBrowser.hasLegAct":"à des Actions Légendaires", "CMPBrowser.hasLegAct": "à des Actions Légendaires",
"CMPBrowser.hasLegRes":"à des Resistances Légendaires", "CMPBrowser.hasLegRes": "à des Resistances Légendaires",
"CMPBrowser.dmgInteraction": "Spécificité des dégâts", "CMPBrowser.dmgInteraction": "Spécificité des dégâts",
"CMPBrowser.dmgDealt": "Type de dégats", "CMPBrowser.dmgDealt": "Type de dégats",
"CMPBrowser.Tab.SpellBrowser": "Recherche de sorts", "CMPBrowser.Tab.SpellBrowser": "Recherche de sorts",
@ -55,5 +55,4 @@
"CMPBrowser.LOADED.Message": "Loaded {numLoaded} {itemType}s", "CMPBrowser.LOADED.Message": "Loaded {numLoaded} {itemType}s",
"CMPBrowser.LOADED.MaxLoaded": "(maximum displayed; to see more, use the filters)", "CMPBrowser.LOADED.MaxLoaded": "(maximum displayed; to see more, use the filters)",
"CMPBrowser.Filters.ResetFilters": "Reset Filters" "CMPBrowser.Filters.ResetFilters": "Reset Filters"
} }

View File

@ -1,17 +1,17 @@
{ {
"CMPBrowser.compendiumBrowser":"辞典ブラウザ", "CMPBrowser.compendiumBrowser": "辞典ブラウザ",
"CMPBrowser.sortBy":"並び替え", "CMPBrowser.sortBy": "並び替え",
"CMPBrowser.generalSettings":"一般設定", "CMPBrowser.generalSettings": "一般設定",
"CMPBrowser.allowSpellAcc":"プレイヤーに呪文辞典の使用を許可する。", "CMPBrowser.allowSpellAcc": "プレイヤーに呪文辞典の使用を許可する。",
"CMPBrowser.allowFeatAcc": "Allow Players Access to the feat browser", "CMPBrowser.allowFeatAcc": "Allow Players Access to the feat browser",
"CMPBrowser.allowItemAcc": "Allow Players Access to the item browser", "CMPBrowser.allowItemAcc": "Allow Players Access to the item browser",
"CMPBrowser.allowNpcAcc":"プレイヤーにNPC辞典の使用を許可する。", "CMPBrowser.allowNpcAcc": "プレイヤーにNPC辞典の使用を許可する。",
"CMPBrowser.compSettingsSpell":"呪文辞典設定", "CMPBrowser.compSettingsSpell": "呪文辞典設定",
"CMPBrowser.compSettingsNpc":"NPC辞典設定", "CMPBrowser.compSettingsNpc": "NPC辞典設定",
"CMPBrowser.load":"追加", "CMPBrowser.load": "追加",
"CMPBrowser.castingTime":"発動時間", "CMPBrowser.castingTime": "発動時間",
"CMPBrowser.spellType":"呪文種別", "CMPBrowser.spellType": "呪文種別",
"CMPBrowser.damageType":"ダメージ種別", "CMPBrowser.damageType": "ダメージ種別",
"CMPBrowser.UsesResources": "Uses Resources", "CMPBrowser.UsesResources": "Uses Resources",
"CMPBrowser.GameMechanics": "Game Mechanics", "CMPBrowser.GameMechanics": "Game Mechanics",
"CMPBrowser.ItemSubtype": "Item Subtype", "CMPBrowser.ItemSubtype": "Item Subtype",
@ -27,33 +27,32 @@
"CMPBrowser.ItemsPacksScholar": "Scholar's Pack", "CMPBrowser.ItemsPacksScholar": "Scholar's Pack",
"CMPBrowser.artificer": "Artificer", "CMPBrowser.artificer": "Artificer",
"CMPBrowser.barbarian": "Barbarian", "CMPBrowser.barbarian": "Barbarian",
"CMPBrowser.bard":"バード", "CMPBrowser.bard": "バード",
"CMPBrowser.cleric":"クレリック", "CMPBrowser.cleric": "クレリック",
"CMPBrowser.druid":"ドルイド", "CMPBrowser.druid": "ドルイド",
"CMPBrowser.fighter": "Fighter", "CMPBrowser.fighter": "Fighter",
"CMPBrowser.monk": "Monk", "CMPBrowser.monk": "Monk",
"CMPBrowser.paladin":"パラディン", "CMPBrowser.paladin": "パラディン",
"CMPBrowser.ranger":"レンジャー", "CMPBrowser.ranger": "レンジャー",
"CMPBrowser.rogue": "Rogue", "CMPBrowser.rogue": "Rogue",
"CMPBrowser.sorcerer":"ソーサラー", "CMPBrowser.sorcerer": "ソーサラー",
"CMPBrowser.warlock":"ウォーロック", "CMPBrowser.warlock": "ウォーロック",
"CMPBrowser.wizard":"ウィザード", "CMPBrowser.wizard": "ウィザード",
"CMPBrowser.general":"一般", "CMPBrowser.general": "一般",
"CMPBrowser.hasSpells":"術者", "CMPBrowser.hasSpells": "術者",
"CMPBrowser.hasLegAct":"伝説的アクション所持", "CMPBrowser.hasLegAct": "伝説的アクション所持",
"CMPBrowser.hasLegRes":"伝説的抵抗所持", "CMPBrowser.hasLegRes": "伝説的抵抗所持",
"CMPBrowser.dmgInteraction": "ダメージ関連", "CMPBrowser.dmgInteraction": "ダメージ関連",
"CMPBrowser.dmgDealt": "与えるダメージ種別", "CMPBrowser.dmgDealt": "与えるダメージ種別",
"CMPBrowser.Tab.SpellBrowser":"呪文ブラウザ", "CMPBrowser.Tab.SpellBrowser": "呪文ブラウザ",
"CMPBrowser.Tab.FeatBrowser": "Feat Browser", "CMPBrowser.Tab.FeatBrowser": "Feat Browser",
"CMPBrowser.Tab.ItemBrowser": "Item Browser", "CMPBrowser.Tab.ItemBrowser": "Item Browser",
"CMPBrowser.Tab.NPCBrowser":"NPCブラウザ", "CMPBrowser.Tab.NPCBrowser": "NPCブラウザ",
"CMPBrowser.Tab.Settings":"設定", "CMPBrowser.Tab.Settings": "設定",
"CMPBrowser.SETTING.Maxload.NAME": "Maximum load", "CMPBrowser.SETTING.Maxload.NAME": "Maximum load",
"CMPBrowser.SETTING.Maxload.HINT": "Maximum number of spells, feats, items, or NPCs to display; to see more use the filters. This setting is to allow manageing memory and server load.", "CMPBrowser.SETTING.Maxload.HINT": "Maximum number of spells, feats, items, or NPCs to display; to see more use the filters. This setting is to allow manageing memory and server load.",
"CMPBrowser.LOADING.Message": "Loading...{numLoaded} {itemType}s", "CMPBrowser.LOADING.Message": "Loading...{numLoaded} {itemType}s",
"CMPBrowser.LOADED.Message": "Loaded {numLoaded} {itemType}s", "CMPBrowser.LOADED.Message": "Loaded {numLoaded} {itemType}s",
"CMPBrowser.LOADED.MaxLoaded": "(maximum displayed; to see more, use the filters)", "CMPBrowser.LOADED.MaxLoaded": "(maximum displayed; to see more, use the filters)",
"CMPBrowser.Filters.ResetFilters": "Reset Filters" "CMPBrowser.Filters.ResetFilters": "Reset Filters"
} }

View File

@ -55,5 +55,4 @@
"CMPBrowser.LOADED.Message": "{numLoaded} {itemType}s carregados(as)", "CMPBrowser.LOADED.Message": "{numLoaded} {itemType}s carregados(as)",
"CMPBrowser.LOADED.MaxLoaded": "(máximo exibido; para ver mais, use os filtros)", "CMPBrowser.LOADED.MaxLoaded": "(máximo exibido; para ver mais, use os filtros)",
"CMPBrowser.Filters.ResetFilters": "Redefinir Filtros" "CMPBrowser.Filters.ResetFilters": "Redefinir Filtros"
} }

View File

@ -1,17 +1,28 @@
{{#each listItems as |feat id|}} {{#each listItems as |feat id|}}
<li class="feat flexrow draggable" data-entry-compendium="{{feat.compendium}}" data-entry-id="{{id}}"> <li
class="feat flexrow draggable"
data-entry-compendium="{{feat.compendium}}"
data-entry-id="{{id}}"
>
<div class="item-image"> <div class="item-image">
<img class="" data-src="{{feat.img}}" title="{{feat.name}}" width="32" height="32" /> <img
class=""
data-src="{{feat.img}}"
title="{{feat.name}}"
width="32"
height="32"
/>
</div> </div>
<div class="item-name"> <div class="item-name">
<span class="item-edit"><a title="({{feat.compendium}})">{{feat.name}}</a></span> <span class="item-edit"
><a title="({{feat.compendium}})">{{feat.name}}</a></span
>
</div> </div>
<div class="feat-tags"> <div class="feat-tags">
<span title="Class Requirement">{{feat.classRequirementString}}</span> <span title="Class Requirement">{{feat.classRequirementString}}</span>
</div> </div>
<div class="filter-tags"> <div class="filter-tags">
<input type="hidden" name="class" value="{{feat.classRequirementString}}"> <input type="hidden" name="class" value="{{feat.classRequirementString}}" />
</div> </div>
</li> </li>
{{/each}} {{/each}}

View File

@ -2,25 +2,31 @@
<div class="control-area"> <div class="control-area">
<div class="filtercontainer" id="tagfilter"> <div class="filtercontainer" id="tagfilter">
<div class="filter" data-type="text" data-path="name"> <div class="filter" data-type="text" data-path="name">
<input class="" name="textFilter" type="text" value="" data-dtype="String" placeholder="{{localize "Name"}}"/> <input class="" name="textFilter" type="text" value=""
data-dtype="String" placeholder="{{localize "Name"}}"/>
</div> </div>
<dl id="sorter"> <dl id="sorter">
<dt>{{localize "CMPBrowser.sortBy"}}:</dt> <dt>{{localize "CMPBrowser.sortBy"}}:</dt>
<dd><select class="null" name="sortorder"> <dd>
<select class="null" name="sortorder">
<option value="true" selected>{{localize "Name"}}</option> <option value="true" selected>{{localize "Name"}}</option>
<option value="false">{{localize "DND5E.ItemTypeClass"}}</option> <option value="false">{{localize "DND5E.ItemTypeClass"}}</option>
</select></dd> </select>
</dd>
</dl> </dl>
<button id="reset-feat-filter">{{localize "CMPBrowser.Filters.ResetFilters"}}</button> <button id="reset-feat-filter">
{{localize "CMPBrowser.Filters.ResetFilters"}}
</button>
<!-- <button id="copy-search-feat">Export to <i class="fa-brands fa-square-js"></i></button> --> <!-- <button id="copy-search-feat">Export to <i class="fa-brands fa-square-js"></i></button> -->
</div> </div>
{{> "modules/compendium-browser/template/filter-container.html" filters=featFilters}} {{> "modules/compendium-browser/template/filter-container.html"
filters=featFilters}}
</div> </div>
<div class="list-area flexcol"> <div class="list-area flexcol">
<span id="CBFeatsMessage" style="flex:0"></span> <span id="CBFeatsMessage" style="flex: 0"></span>
<ul id="CBFeats"> <ul id="CBFeats">
{{> "modules/compendium-browser/template/feat-browser-list.html" feats=items}} {{> "modules/compendium-browser/template/feat-browser-list.html"
feats=items}}
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -3,7 +3,13 @@
<h3>{{cat.label}}</h3> <h3>{{cat.label}}</h3>
<div class="filters"> <div class="filters">
{{#each cat.filters as |filter key|}} {{#each cat.filters as |filter key|}}
<div class="filter" id="{{cat.labelId}}-{{filter.labelId}}" data-path="{{filter.path}}" data-type="{{filter.type}}" data-valIsArray="{{filter.valIsArray}}"> <div
class="filter"
id="{{cat.labelId}}-{{filter.labelId}}"
data-path="{{filter.path}}"
data-type="{{filter.type}}"
data-valIsArray="{{filter.valIsArray}}"
>
{{#if filter.istext}} {{#if filter.istext}}
<dt>{{filter.label}}</dt> <dt>{{filter.label}}</dt>
<dd> <dd>
@ -15,11 +21,10 @@
{{/each}} {{/each}}
</select> </select>
{{else}} {{else}}
<input type="text"> <input type="text" />
{{/if}} {{/if}}
</dd> </dd>
{{/if}} {{/if}} {{#if filter.isbool}}
{{#if filter.isbool}}
<dl> <dl>
<dt>{{filter.label}}</dt> <dt>{{filter.label}}</dt>
<dd> <dd>
@ -30,8 +35,7 @@
</select> </select>
</dd> </dd>
</dl> </dl>
{{/if}} {{/if}} {{#if filter.isselect}}
{{#if filter.isselect}}
<dl> <dl>
<dt>{{filter.label}}</dt> <dt>{{filter.label}}</dt>
<dd> <dd>
@ -43,20 +47,18 @@
</select> </select>
</dd> </dd>
</dl> </dl>
{{/if}} {{/if}} {{#if filter.ismultiSelect}}
{{#if filter.ismultiSelect}}
<div class="multiselect"> <div class="multiselect">
<label>{{filter.label}}</label> <label>{{filter.label}}</label>
<dl> <dl>
{{#each filter.possibleValues as |label val|}} {{#each filter.possibleValues as |label val|}}
<dt><label>{{label}}</label></dt> <dt><label>{{label}}</label></dt>
<dd><input type="checkbox" data-value="{{val}}"></dd> <dd><input type="checkbox" data-value="{{val}}" /></dd>
{{/each}} {{/each}}
</dl> </dl>
</div> </div>
{{/if}} {{/if}} {{#if filter.isnumberCompare}}
{{#if filter.isnumberCompare}}
<div class="numberCompare"> <div class="numberCompare">
<dt>{{filter.label}}</dt> <dt>{{filter.label}}</dt>
<dd> <dd>
@ -66,13 +68,12 @@
<option value="<">&lt;</option> <option value="<">&lt;</option>
<option value=">">&gt;</option> <option value=">">&gt;</option>
</select> </select>
<input class="small-input" type="number"> <input class="small-input" type="number" />
</dd> </dd>
</div> </div>
{{/if}} {{/if}}
</div> </div>
{{/each}} {{/each}}
</div> </div>
</div> </div>
{{/each}} {{/each}}

View File

@ -1,16 +1,28 @@
{{#each listItems as |item id|}} {{#each listItems as |item id|}}
<li class="item flexrow draggable" data-entry-compendium="{{item.compendium}}" data-entry-id="{{id}}"> <li
class="item flexrow draggable"
data-entry-compendium="{{item.compendium}}"
data-entry-id="{{id}}"
>
<div class="item-image"> <div class="item-image">
<img class="" data-src="{{item.img}}" title="{{item.name}}" width="32" height="32" /> <img
class=""
data-src="{{item.img}}"
title="{{item.name}}"
width="32"
height="32"
/>
</div> </div>
<div class="item-name"> <div class="item-name">
<span class="item-edit"><a title="({{item.compendium}})">{{item.name}}</a></span> <span class="item-edit"
><a title="({{item.compendium}})">{{item.name}}</a></span
>
</div> </div>
<div class="item-tags"> <div class="item-tags">
<span title="Item Type">{{item.type}}</span> <span title="Item Type">{{item.type}}</span>
</div> </div>
<div class="filter-tags"> <div class="filter-tags">
<input type="hidden" name="type" value="{{item.type}}"> <input type="hidden" name="type" value="{{item.type}}" />
</div> </div>
</li> </li>
{{/each}} {{/each}}

View File

@ -2,28 +2,35 @@
<div class="control-area"> <div class="control-area">
<div class="filtercontainer" id="tagfilter"> <div class="filtercontainer" id="tagfilter">
<div class="filter" data-type="text" data-path="name"> <div class="filter" data-type="text" data-path="name">
<input class="" name="textFilter" type="text" value="" data-dtype="String" placeholder="{{localize "Name"}}"/> <input class="" name="textFilter" type="text" value=""
data-dtype="String" placeholder="{{localize "Name"}}"/>
</div> </div>
<dl id="sorter"> <dl id="sorter">
<dt>{{localize "CMPBrowser.sortBy"}}:</dt> <dt>{{localize "CMPBrowser.sortBy"}}:</dt>
<dd><select class="null" name="sortorder"> <dd>
<select class="null" name="sortorder">
<option value="true" selected>{{localize "Name"}}</option> <option value="true" selected>{{localize "Name"}}</option>
<option value="false">{{localize "DND5E.Type"}}</option> <option value="false">{{localize "DND5E.Type"}}</option>
</select></dd> </select>
</dd>
</dl> </dl>
<button id="reset-item-filter">{{localize "CMPBrowser.Filters.ResetFilters"}}</button> <button id="reset-item-filter">
<<<<<<< HEAD {{localize "CMPBrowser.Filters.ResetFilters"}}
</button>
<<<<<<< HEAD
<!-- <button id="copy-search-item">Export to <i class="fa-brands fa-square-js"></i></button> --> <!-- <button id="copy-search-item">Export to <i class="fa-brands fa-square-js"></i></button> -->
======= =======
<button id="copy-search-item">Export to JS</button> <button id="copy-search-item">Export to JS</button>
>>>>>>> lofd/master >>>>>>> lofd/master
</div> </div>
{{> "modules/compendium-browser/template/filter-container.html" filters=itemFilters}} {{> "modules/compendium-browser/template/filter-container.html"
filters=itemFilters}}
</div> </div>
<div class="list-area flexcol"> <div class="list-area flexcol">
<span id="CBItemsMessage" style="flex:0"></span> <span id="CBItemsMessage" style="flex: 0"></span>
<ul id="CBItems"> <ul id="CBItems">
{{> "modules/compendium-browser/template/item-browser-list.html" items=items}} {{> "modules/compendium-browser/template/item-browser-list.html"
items=items}}
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -1,10 +1,13 @@
<img
<img class="" src="icons/sundries/books/book-open-turquoise.webp" title="Loading book" width="32" height="32"/> class=""
<span class="item-edit" > src="icons/sundries/books/book-open-turquoise.webp"
{{#if doneLoading}} title="Loading book"
{{localize "CMPBrowser.LOADED.Message" numLoaded=numLoaded itemType=itemType}} width="32"
{{else}} height="32"
{{localize "CMPBrowser.LOADING.Message" numLoaded=numLoaded itemType=itemType}} />
{{/if}} <span class="item-edit">
{{#if maxLoaded}}{{localize "CMPBrowser.LOADED.MaxLoaded"}}{{/if}} {{#if doneLoading}} {{localize "CMPBrowser.LOADED.Message" numLoaded=numLoaded
itemType=itemType}} {{else}} {{localize "CMPBrowser.LOADING.Message"
numLoaded=numLoaded itemType=itemType}} {{/if}} {{#if maxLoaded}}{{localize
"CMPBrowser.LOADED.MaxLoaded"}}{{/if}}
</span> </span>

View File

@ -1,11 +1,23 @@
{{#each listItems as |npc id|}} {{#each listItems as |npc id|}}
<li class="npc flexrow draggable" data-entry-compendium="{{npc.compendium}}" data-entry-id="{{id}}"> <li
class="npc flexrow draggable"
data-entry-compendium="{{npc.compendium}}"
data-entry-id="{{id}}"
>
<div class="npc-image"> <div class="npc-image">
<img class="" data-src="{{npc.img}}" title="{{npc.name}}" width="32" height="32" /> <img
class=""
data-src="{{npc.img}}"
title="{{npc.name}}"
width="32"
height="32"
/>
</div> </div>
<div class="npc-line"> <div class="npc-line">
<div class="npc-name"> <div class="npc-name">
<span class="item-edit"><a title="({{npc.compendium}})">{{npc.name}}</a></span> <span class="item-edit"
><a title="({{npc.compendium}})">{{npc.name}}</a></span
>
</div> </div>
<div class="npc-tags"> <div class="npc-tags">
<span class="cr" title="Challange Rating">CR {{npc.displayCR}}</span> <span class="cr" title="Challange Rating">CR {{npc.displayCR}}</span>
@ -13,8 +25,8 @@
<span class="type">{{npc.displayType}}</span> <span class="type">{{npc.displayType}}</span>
</div> </div>
<div class="filter-tags"> <div class="filter-tags">
<input type="hidden" name="order.cr" value="{{npc.orderCR}}"> <input type="hidden" name="order.cr" value="{{npc.orderCR}}" />
<input type="hidden" name="order.size" value="{{npc.orderSize}}"> <input type="hidden" name="order.size" value="{{npc.orderSize}}" />
</div> </div>
</div> </div>
</li> </li>

View File

@ -2,29 +2,36 @@
<div class="control-area"> <div class="control-area">
<div class="filtercontainer" id="tagfilter"> <div class="filtercontainer" id="tagfilter">
<div class="filter" data-type="text" data-path="name"> <div class="filter" data-type="text" data-path="name">
<input class="" name="textFilter" type="text" value="" data-dtype="String" placeholder="{{localize "Name"}}"/> <input class="" name="textFilter" type="text" value=""
data-dtype="String" placeholder="{{localize "Name"}}"/>
</div> </div>
<dl id="sorter"> <dl id="sorter">
<dt>{{localize "CMPBrowser.sortBy"}}:</dt> <dt>{{localize "CMPBrowser.sortBy"}}:</dt>
<dd><select name="sortorder"> <dd>
<select name="sortorder">
<option value="name" selected>{{localize "Name"}}</option> <option value="name" selected>{{localize "Name"}}</option>
<option value="cr">{{localize "DND5E.ChallengeRating"}}</option> <option value="cr">{{localize "DND5E.ChallengeRating"}}</option>
<option value="size">{{localize "DND5E.Size"}}</option> <option value="size">{{localize "DND5E.Size"}}</option>
</select></dd> </select>
</dd>
</dl> </dl>
<button id="reset-npc-filter">{{localize "CMPBrowser.Filters.ResetFilters"}}</button> <button id="reset-npc-filter">
<<<<<<< HEAD {{localize "CMPBrowser.Filters.ResetFilters"}}
</button>
<<<<<<< HEAD
<!-- <button id="copy-search-npc">Export to <i class="fa-brands fa-square-js"></i></button> --> <!-- <button id="copy-search-npc">Export to <i class="fa-brands fa-square-js"></i></button> -->
======= =======
<button id="copy-search-npc">Export to JS</button> <button id="copy-search-npc">Export to JS</button>
>>>>>>> lofd/master >>>>>>> lofd/master
</div> </div>
{{> "modules/compendium-browser/template/filter-container.html" filters=npcFilters}} {{> "modules/compendium-browser/template/filter-container.html"
filters=npcFilters}}
</div> </div>
<div class="list-area flexcol"> <div class="list-area flexcol">
<span id="CBNpcsMessage" style="flex:0"></span> <span id="CBNpcsMessage" style="flex: 0"></span>
<ul id="CBNPCs"> <ul id="CBNPCs">
{{> "modules/compendium-browser/template/npc-browser-list.html" npcs=npcs}} {{> "modules/compendium-browser/template/npc-browser-list.html"
npcs=npcs}}
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -2,19 +2,23 @@
<div class="settings-group"> <div class="settings-group">
<h3>{{localize "CMPBrowser.generalSettings"}}</h3> <h3>{{localize "CMPBrowser.generalSettings"}}</h3>
<label> <label>
<input data-setting="allow-spell-browser" type="checkbox" {{#if settings.allowSpellBrowser}}checked{{/if}}> <input data-setting="allow-spell-browser" type="checkbox" {{#if
settings.allowSpellBrowser}}checked{{/if}}>
<h4>{{localize "CMPBrowser.allowSpellAcc"}}</h4> <h4>{{localize "CMPBrowser.allowSpellAcc"}}</h4>
</label> </label>
<label> <label>
<input data-setting="allow-feat-browser" type="checkbox" {{#if settings.allowFeatBrowser}}checked{{/if}}> <input data-setting="allow-feat-browser" type="checkbox" {{#if
settings.allowFeatBrowser}}checked{{/if}}>
<h4>{{localize "CMPBrowser.allowFeatAcc"}}</h4> <h4>{{localize "CMPBrowser.allowFeatAcc"}}</h4>
</label> </label>
<label> <label>
<input data-setting="allow-item-browser" type="checkbox" {{#if settings.allowItemBrowser}}checked{{/if}}> <input data-setting="allow-item-browser" type="checkbox" {{#if
settings.allowItemBrowser}}checked{{/if}}>
<h4>{{localize "CMPBrowser.allowItemAcc"}}</h4> <h4>{{localize "CMPBrowser.allowItemAcc"}}</h4>
</label> </label>
<label> <label>
<input data-setting="allow-npc-browser" type="checkbox" {{#if settings.allowNpcBrowser}}checked{{/if}}> <input data-setting="allow-npc-browser" type="checkbox" {{#if
settings.allowNpcBrowser}}checked{{/if}}>
<h4>{{localize "CMPBrowser.allowNpcAcc"}}</h4> <h4>{{localize "CMPBrowser.allowNpcAcc"}}</h4>
</label> </label>
</div> </div>
@ -23,7 +27,8 @@
<h3>{{localize "CMPBrowser.compSettingsSpell"}}</h3> <h3>{{localize "CMPBrowser.compSettingsSpell"}}</h3>
{{#each settings.loadedSpellCompendium as |spellComp key|}} {{#each settings.loadedSpellCompendium as |spellComp key|}}
<label> <label>
<input data-setting="spell-compendium-setting" data-key="{{key}}" data-type="spell" type="checkbox"{{#if spellComp.load}}checked{{/if}}> <input data-setting="spell-compendium-setting" data-key="{{key}}"
data-type="spell" type="checkbox"{{#if spellComp.load}}checked{{/if}}>
<h4>{{localize "CMPBrowser.load"}} {{spellComp.name}}</h4> <h4>{{localize "CMPBrowser.load"}} {{spellComp.name}}</h4>
</label> </label>
{{/each}} {{/each}}
@ -32,7 +37,8 @@
<h3>{{localize "CMPBrowser.compSettingsNpc"}}</h3> <h3>{{localize "CMPBrowser.compSettingsNpc"}}</h3>
{{#each settings.loadedNpcCompendium as |npcComp key|}} {{#each settings.loadedNpcCompendium as |npcComp key|}}
<label> <label>
<input data-setting="npc-compendium-setting" data-key="{{key}}" data-type="npc" type="checkbox"{{#if npcComp.load}}checked{{/if}}> <input data-setting="npc-compendium-setting" data-key="{{key}}"
data-type="npc" type="checkbox"{{#if npcComp.load}}checked{{/if}}>
<h4>{{localize "CMPBrowser.load"}} {{npcComp.name}}</h4> <h4>{{localize "CMPBrowser.load"}} {{npcComp.name}}</h4>
</label> </label>
{{/each}} {{/each}}

View File

@ -2,24 +2,31 @@
<div class="control-area"> <div class="control-area">
<div class="filtercontainer" id="tagfilter"> <div class="filtercontainer" id="tagfilter">
<div class="filter" data-type="text" data-path="name"> <div class="filter" data-type="text" data-path="name">
<input class="" name="textFilter" type="text" value="" data-dtype="String" placeholder="{{localize "Name"}}"/> <input class="" name="textFilter" type="text" value=""
data-dtype="String" placeholder="{{localize "Name"}}"/>
</div> </div>
<dl id="sorter"> <dl id="sorter">
<dt>{{localize "CMPBrowser.sortBy"}}:</dt> <dt>{{localize "CMPBrowser.sortBy"}}:</dt>
<dd><select class="null" name="sortorder"> <dd>
<select class="null" name="sortorder">
<option value="true" selected>{{localize "Name"}}</option> <option value="true" selected>{{localize "Name"}}</option>
<option value="false">{{localize "DND5E.Level"}}</option> <option value="false">{{localize "DND5E.Level"}}</option>
</select></dd> </select>
</dd>
</dl> </dl>
<button id="reset-spell-filter">{{localize "CMPBrowser.Filters.ResetFilters"}}</button> <button id="reset-spell-filter">
{{localize "CMPBrowser.Filters.ResetFilters"}}
</button>
<!-- <button id="copy-search-spell">Export to <i class="fa-brands fa-square-js"></i></button> --> <!-- <button id="copy-search-spell">Export to <i class="fa-brands fa-square-js"></i></button> -->
</div> </div>
{{> "modules/compendium-browser/template/filter-container.html" filters=spellFilters}} {{> "modules/compendium-browser/template/filter-container.html"
filters=spellFilters}}
</div> </div>
<div class="list-area flexcol"> <div class="list-area flexcol">
<span id="CBSpellsMessage" style="flex:0"></span> <span id="CBSpellsMessage" style="flex: 0"></span>
<ul id="CBSpells"> <ul id="CBSpells">
{{> "modules/compendium-browser/template/spell-browser-list.html" spells=items}} {{> "modules/compendium-browser/template/spell-browser-list.html"
spells=items}}
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -1,17 +1,38 @@
<div class="parent"> <div class="parent">
<div class="tabs"> <div class="tabs">
{{#if showSpellBrowser}}<a class="item" data-tab="spell">{{localize "CMPBrowser.Tab.SpellBrowser"}}</a>{{/if}} {{#if showSpellBrowser}}<a class="item" data-tab="spell"
{{#if showFeatBrowser}}<a class="item" data-tab="feat">{{localize "CMPBrowser.Tab.FeatBrowser"}}</a>{{/if}} >{{localize "CMPBrowser.Tab.SpellBrowser"}}</a
{{#if showItemBrowser}}<a class="item" data-tab="item">{{localize "CMPBrowser.Tab.ItemBrowser"}}</a>{{/if}} >{{/if}} {{#if showFeatBrowser}}<a class="item" data-tab="feat"
{{#if showNpcBrowser}}<a class="item" data-tab="npc">{{localize "CMPBrowser.Tab.NPCBrowser"}}</a>{{/if}} >{{localize "CMPBrowser.Tab.FeatBrowser"}}</a
{{#if isGM}}<a class="item" data-tab="setting">{{localize "CMPBrowser.Tab.Settings"}}</a>{{/if}} >{{/if}} {{#if showItemBrowser}}<a class="item" data-tab="item"
>{{localize "CMPBrowser.Tab.ItemBrowser"}}</a
>{{/if}} {{#if showNpcBrowser}}<a class="item" data-tab="npc"
>{{localize "CMPBrowser.Tab.NPCBrowser"}}</a
>{{/if}} {{#if isGM}}<a class="item" data-tab="setting"
>{{localize "CMPBrowser.Tab.Settings"}}</a
>{{/if}}
</div> </div>
<div class="content"> <div class="content">
<div class="tab" data-tab="spell">{{#if showSpellBrowser}}{{> "modules/compendium-browser/template/spell-browser.html"}}{{/if}}</div> <div class="tab" data-tab="spell">
<div class="tab" data-tab="feat">{{#if showFeatBrowser}}{{> "modules/compendium-browser/template/feat-browser.html"}}{{/if}}</div> {{#if showSpellBrowser}}{{>
<div class="tab" data-tab="item">{{#if showItemBrowser}}{{> "modules/compendium-browser/template/item-browser.html"}}{{/if}}</div> "modules/compendium-browser/template/spell-browser.html"}}{{/if}}
<div class="tab" data-tab="npc">{{#if showNpcBrowser}} {{> "modules/compendium-browser/template/npc-browser.html"}}{{/if}}</div> </div>
<div class="tab" data-tab="setting">{{#if isGM}} {{> "modules/compendium-browser/template/settings.html"}}{{/if}}</div> <div class="tab" data-tab="feat">
{{#if showFeatBrowser}}{{>
"modules/compendium-browser/template/feat-browser.html"}}{{/if}}
</div>
<div class="tab" data-tab="item">
{{#if showItemBrowser}}{{>
"modules/compendium-browser/template/item-browser.html"}}{{/if}}
</div>
<div class="tab" data-tab="npc">
{{#if showNpcBrowser}} {{>
"modules/compendium-browser/template/npc-browser.html"}}{{/if}}
</div>
<div class="tab" data-tab="setting">
{{#if isGM}} {{>
"modules/compendium-browser/template/settings.html"}}{{/if}}
</div>
</div> </div>
</div> </div>