Initial
This commit is contained in:
31
resources/app/templates/apps/compendium-art-config.hbs
Normal file
31
resources/app/templates/apps/compendium-art-config.hbs
Normal file
@@ -0,0 +1,31 @@
|
||||
<section>
|
||||
<ol class="priority-list">
|
||||
{{#each config}}
|
||||
<li data-package-id="{{ packageId }}">
|
||||
<input type="hidden" name="{{ packageId }}.priority" value="{{ priority }}" data-dtype="Number">
|
||||
<label>{{ title }}</label>
|
||||
<div class="form-fields">
|
||||
<label>
|
||||
{{ localize "COMPENDIUM.ART.CONFIG.Portraits" }}
|
||||
<input type="checkbox" name="{{ packageId }}.portraits" {{ checked portraits }}>
|
||||
</label>
|
||||
<label>
|
||||
{{ localize "COMPENDIUM.ART.CONFIG.Tokens" }}
|
||||
<input type="checkbox" name="{{ packageId }}.tokens" {{ checked tokens }}>
|
||||
</label>
|
||||
</div>
|
||||
<div class="priority-adjust">
|
||||
<button type="button" data-action="priority" data-increase
|
||||
aria-label="{{ localize "COMPENDIUM.ART.CONFIG.PriorityIncrease" }}">
|
||||
<i class="fas fa-angle-up"></i>
|
||||
</button>
|
||||
<button type="button" data-action="priority" data-decrease
|
||||
aria-label="{{ localize "COMPENDIUM.ART.CONFIG.PriorityDecrease" }}">
|
||||
<i class="fas fa-angle-down"></i>
|
||||
</button>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
<p class="hint">{{ localize "COMPENDIUM.ART.CONFIG.Hint" }}</p>
|
||||
</section>
|
||||
45
resources/app/templates/apps/compendium.html
Normal file
45
resources/app/templates/apps/compendium.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<div class="compendium directory flexcol" data-pack="{{collection.collection}}">
|
||||
|
||||
<!-- Directory Header -->
|
||||
<header class="directory-header flexcol">
|
||||
<div class="header-banner" {{#if collection.banner}}style="background-image: url('{{collection.banner}}')"{{/if}}>
|
||||
<h3 class="entry-name compendium-name"><i class="{{sidebarIcon}}" ></i> {{name}}</h3>
|
||||
</div>
|
||||
<div class="header-actions action-buttons flexrow">
|
||||
{{#if canCreateEntry}}
|
||||
<button class="create-document create-entry"><i class="{{sidebarIcon}}"></i> {{localize 'SIDEBAR.Create' type=label}}</button>
|
||||
{{/if}}
|
||||
{{#if canCreateFolder }}
|
||||
<button class="create-folder"><i class="{{folderIcon}}"></i> {{localize 'FOLDER.Create'}}</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="header-search flexrow">
|
||||
<a class="header-control toggle-search-mode" data-tooltip="{{localize searchTooltip}}"><i class="fas {{searchIcon}}"></i></a>
|
||||
<input type="search" name="search" value="" placeholder="{{ localize 'FILES.Search' }}" autocomplete="off"/>
|
||||
<a class="header-control toggle-sort" data-tooltip="{{localize sortTooltip}}"><i class="fa-solid {{sortIcon}}"></i></a>
|
||||
<a class="header-control collapse-all" data-tooltip="{{localize 'FOLDER.Collapse'}}"><i class="fa-duotone fa-folder-tree"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Directory Contents -->
|
||||
<ol class="directory-list">
|
||||
{{~#each tree.children}}
|
||||
{{> (lookup @root "folderPartial") node=this folder=this.folder}}
|
||||
{{/each}}
|
||||
{{#each tree.entries}}
|
||||
{{> (lookup @root "entryPartial")}}
|
||||
{{/each~}}
|
||||
</ol>
|
||||
|
||||
<!-- Directory Footer -->
|
||||
{{#if footerButtons.length}}
|
||||
<footer class="directory-footer flexrow">
|
||||
{{#each footerButtons}}
|
||||
<button type="button" data-action="{{this.action}}">
|
||||
<i class="{{this.icon}}"></i>
|
||||
{{localize this.label}}
|
||||
</button>
|
||||
{{/each}}
|
||||
</footer>
|
||||
{{/if}}
|
||||
</div>
|
||||
1
resources/app/templates/apps/documentation.html
Normal file
1
resources/app/templates/apps/documentation.html
Normal file
@@ -0,0 +1 @@
|
||||
<iframe id="docs" src="{{src}}" width="100%" height="100%"/>
|
||||
166
resources/app/templates/apps/filepicker.html
Normal file
166
resources/app/templates/apps/filepicker.html
Normal file
@@ -0,0 +1,166 @@
|
||||
<form class="standard-form {{ cssClass }}" autocomplete="off" enctype="multipart/form-data">
|
||||
<header class="filepicker-header flexcol">
|
||||
<nav class="tabs" aria-role="{{localize 'SHEETS.FormNavLabel'}}">
|
||||
{{#each sources as |source id|}}
|
||||
<a class="item" data-tab="{{id}}"><i class="{{source.icon}}"></i> {{source.label}}</a>
|
||||
{{/each}}
|
||||
</nav>
|
||||
|
||||
<div class="form-group current-dir">
|
||||
<button type="button" class="back" data-action="back" {{#unless canGoBack}}disabled{{/unless}}>
|
||||
<i class="fas fa-level-up-alt fa-flip-horizontal fa-fw"></i>
|
||||
</button>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="target" value="{{target}}">
|
||||
</div>
|
||||
{{#if user.isGM}}
|
||||
{{#if canUpload}}
|
||||
<button type="button" data-action="mkdir" title="{{ localize "FILES.CreateDirectory" }}">
|
||||
<i class="fas fa-folder-plus"></i>
|
||||
</button>
|
||||
{{/if}}
|
||||
<button class="privacy" type="button" data-action="toggle-privacy" title="{{ localize "FILES.TogglePrivacy" }}">
|
||||
<i class="fas fa-eye-slash"></i>
|
||||
</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="form-group favorites">
|
||||
<label>
|
||||
<span>{{ localize "FILES.FavoritesLabel" }} </span>
|
||||
<a class="fas fa-plus" data-action="setFavorite" data-tooltip="{{localize 'FILES.AddFavorite'}}"></a>
|
||||
</label>
|
||||
<div class="form-fields paths tags">
|
||||
{{#each favorites }}
|
||||
<span class="path tag">
|
||||
<a class="link" data-tooltip="{{ this.path }}" data-source="{{ this.source }}" data-path="{{ this.path }}" data-action="goToFavorite">{{ this.label }}</a>
|
||||
<a class="remove fa-solid fa-trash" data-tooltip="Remove from favorites" data-source="{{ this.source }}" data-path="{{ this.path }}" data-action="removeFavorite"></a>
|
||||
</span>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#if isS3}}
|
||||
<div class="form-group bucket">
|
||||
<label>{{ localize "FILES.S3Label" }}</label>
|
||||
<select name="bucket">
|
||||
{{selectOptions buckets selected=bucket}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="form-group filter-dir">
|
||||
<label>{{ localize "FILES.FilterLabel" }}</label>
|
||||
<input type="search" name="filter" placeholder="{{ localize "FILES.Search" }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{ localize "FILES.DisplayMode" }}</label>
|
||||
<div class="form-fields display-modes">
|
||||
<a class="display-mode" title="{{ localize 'FILES.DisplayModeList' }}" data-mode="list">
|
||||
<i class="fas fa-bars"></i>
|
||||
</a>
|
||||
<a class="display-mode" title="{{ localize 'FILES.DisplayModeThumbs' }}" data-mode="thumbs">
|
||||
<i class="fas fa-th-list"></i>
|
||||
</a>
|
||||
<a class="display-mode" title="{{ localize 'FILES.DisplayModeTiles' }}" data-mode="tiles">
|
||||
<i class="fas fa-th-large"></i>
|
||||
</a>
|
||||
<a class="display-mode" title="{{ localize 'FILES.DisplayModeImages' }}" data-mode="images">
|
||||
<i class="fas fa-image"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#if tileSize}}
|
||||
<div class="form-group tile-size">
|
||||
<label>{{ localize "FILES.TileSize" }}</label>
|
||||
<div class="form-fields">
|
||||
{{ numberInput tileSize name="tileSize" placeholder=(localize "FILES.InPixels") }}
|
||||
<span class="units">{{ localize "FILES.UnitPixels" }}</span>
|
||||
</div>
|
||||
<p class="hint">{{ localize "FILES.TileSizeHint" }}</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
</header>
|
||||
<section class="filepicker-body flexcol">
|
||||
{{#if dirs}}
|
||||
<ol class="directory folders-list details-list">
|
||||
{{#each dirs}}
|
||||
<li class="dir {{#if this.private}}private{{/if}}" data-path="{{this.path}}" data-name="{{this.name}}">
|
||||
<i class="fas fa-folder fa-fw"></i>{{this.name}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{/if}}
|
||||
|
||||
{{#if files}}
|
||||
{{#if (eq displayMode "list")}}
|
||||
<ol class="directory files-list details-list">
|
||||
{{#each files}}
|
||||
<li class="file" data-path="{{this.url}}" data-name="{{this.name}}">
|
||||
<img data-src="{{ this.img }}">
|
||||
<i class="fas fa-file fa-fw"></i>{{this.name}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
|
||||
{{else if (eq displayMode "thumbs")}}
|
||||
<ol class="directory files-list thumbs-list">
|
||||
{{#each files}}
|
||||
<li class="file flexrow" data-path="{{this.url}}" data-name="{{this.name}}">
|
||||
<img data-src="{{ this.img }}" width="48" height="48">
|
||||
<span class="filename">{{this.name}}</span>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
|
||||
{{else if (eq displayMode "tiles")}}
|
||||
<ol class="directory files-list tiles-list">
|
||||
{{#each files}}
|
||||
<li class="file" data-path="{{this.url}}" data-name="{{this.name}}">
|
||||
<img data-src="{{ this.img }}" width="100" height="100" title="{{ this.name }}">
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
|
||||
{{else if (eq displayMode "images")}}
|
||||
<ol class="directory files-list images-list">
|
||||
{{#each files}}
|
||||
<li class="file" data-path="{{this.url}}" data-name="{{this.name}}">
|
||||
<img data-src="{{ this.img }}" title="{{ this.name }}">
|
||||
<span class="filename">{{this.name}}</span>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if noResults}}
|
||||
<p class="note">{{ localize "FILES.NoResults" }}</p>
|
||||
{{/if}}
|
||||
</section>
|
||||
|
||||
{{#if canUpload}}
|
||||
<div class="form-group upload-file">
|
||||
<label><i class="fas fa-upload fa-fw"></i> {{ localize "FILES.Upload" }}</label>
|
||||
<div class="form-fields">
|
||||
<input type="file" name="upload">
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if canSelect}}
|
||||
<div class="form-group selected-file">
|
||||
<label><i class="fas fa-file fa-fw"></i> {{ localize "FILES.Selected" }}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="file" value="{{selected}}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="form-footer filepicker-footer">
|
||||
<button class="bright" type="submit">
|
||||
<i class="far fa-save"></i> {{ localize submitText }}
|
||||
</button>
|
||||
</footer>
|
||||
{{/if}}
|
||||
</form>
|
||||
21
resources/app/templates/apps/image-popout.html
Normal file
21
resources/app/templates/apps/image-popout.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<form class="{{cssClass}} flexcol" autocomplete="off">
|
||||
<figure class="flexcol">
|
||||
{{#if isVideo}}
|
||||
<video src="{{ image }}" {{#if showTitle}}aria-label="{{ title }}"{{/if}} autoplay loop muted playsinline></video>
|
||||
{{else}}
|
||||
<img src="{{image}}" {{#if showTitle}}alt="{{title}}"{{/if}}>
|
||||
{{/if}}
|
||||
{{#if caption}}<figcaption>{{caption}}</figcaption>{{/if}}
|
||||
</figure>
|
||||
|
||||
{{#if editable}}
|
||||
<div class="form-group title">
|
||||
<input type="text" name="title" value="{{title}}"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group picker">
|
||||
<file-picker name="image" type="image" value="{{image}}"></file-picker>
|
||||
<button type="submit"><i class="fas fa-check"></i></button>
|
||||
</div>
|
||||
{{/if}}
|
||||
</form>
|
||||
8
resources/app/templates/apps/import-data.html
Normal file
8
resources/app/templates/apps/import-data.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<form autocomplete="off" onsubmit="event.preventDefault();">
|
||||
<p class="notes">{{hint1}}</p>
|
||||
<p class="notes">{{hint2}}</p>
|
||||
<div class="form-group">
|
||||
<label for="data">{{ localize 'DOCUMENT.ImportSource' }}</label>
|
||||
<input type="file" name="data" accept=".json"/>
|
||||
</div>
|
||||
</form>
|
||||
40
resources/app/templates/apps/ownership.html
Normal file
40
resources/app/templates/apps/ownership.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<form id="permission-control">
|
||||
<p class="notes">{{ instructions }}</p>
|
||||
<div class="form-group">
|
||||
<label class="checkbox">
|
||||
{{localize "OWNERSHIP.ShowGM"}}
|
||||
<input id="show-gm-toggle" type="checkbox" {{checked showGM}}>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
<div class="form-group">
|
||||
<label>{{ localize "OWNERSHIP.AllPlayers" }}</label>
|
||||
<select name="default" data-dtype="Number">
|
||||
{{selectOptions defaultLevels selected=currentDefault valueAttr="level" labelAttr="label"}}
|
||||
</select>
|
||||
</div>
|
||||
<hr/>
|
||||
|
||||
{{#each users}}
|
||||
<div class="form-group {{this.cssClass}}">
|
||||
<label>
|
||||
{{this.user.name}}
|
||||
{{~#if this.icon}}
|
||||
<i class="role-icon {{this.icon}}" data-tooltip="{{this.tooltip}}"></i>
|
||||
{{/if~}}
|
||||
</label>
|
||||
{{#if isAuthor}}
|
||||
<div class="author">{{localize "Author"}}</div>
|
||||
{{else}}
|
||||
<select name="{{this.user.id}}" data-dtype="Number">
|
||||
{{selectOptions ../playerLevels selected=this.level valueAttr="level" labelAttr="label"}}
|
||||
</select>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
<button type="submit">
|
||||
<i class="far fa-save"></i> {{ localize "Save Changes" }}
|
||||
</button>
|
||||
</form>
|
||||
22
resources/app/templates/apps/permission-config.hbs
Normal file
22
resources/app/templates/apps/permission-config.hbs
Normal file
@@ -0,0 +1,22 @@
|
||||
<div>
|
||||
<p>{{localize "PERMISSION.Instructions"}}</p>
|
||||
<header class="table-header flexrow">
|
||||
<label class="index">{{ localize "PERMISSION.Permission" }}</label>
|
||||
{{#each roles as |rl r|}}
|
||||
<label>{{ localize rl}}</label>
|
||||
{{/each}}
|
||||
</header>
|
||||
<ul class="permissions-list">
|
||||
{{#each permissions as |p|}}
|
||||
<li class="permission form-group">
|
||||
<label class="index">{{ localize p.label }}</label>
|
||||
<div class="form-fields">
|
||||
{{#each p.roles as |r|}}
|
||||
<input type="checkbox" name="{{r.name}}" {{checked r.value}} {{r.readonly}}>
|
||||
{{/each}}
|
||||
</div>
|
||||
<p class="hint">{{ localize p.hint }}</p>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
26
resources/app/templates/apps/tour-step.html
Normal file
26
resources/app/templates/apps/tour-step.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<header class="step-header flexrow">
|
||||
<h3 class="step-title noborder">{{title}}</h3>
|
||||
<a class="step-button" role="button" data-action="exit">
|
||||
<i class="far fa-circle-xmark"></i>
|
||||
</a>
|
||||
</header>
|
||||
{{#each content}}
|
||||
<p class="content">{{{this}}}</p>
|
||||
{{/each}}
|
||||
<footer class="step-controls flexrow">
|
||||
<a class="step-button" role="button" data-action="previous">
|
||||
{{#if hasPrevious}}
|
||||
<i class="far fa-circle-arrow-left"></i>
|
||||
{{/if}}
|
||||
</a>
|
||||
|
||||
<span class="progress">Step {{step}} of {{totalSteps}}</span>
|
||||
|
||||
<a class="step-button" role="button" data-action="next">
|
||||
{{#if hasNext}}
|
||||
<i class="far fa-circle-arrow-right"></i>
|
||||
{{else}}
|
||||
<i class="far fa-circle-check"></i>
|
||||
{{/if}}
|
||||
</a>
|
||||
</footer>
|
||||
Reference in New Issue
Block a user