7 Commits

Author SHA1 Message Date
1981a69a00 fix module.json 2024-06-27 19:55:54 -05:00
435744172f remove needless empty lines 2024-06-27 19:48:41 -05:00
c916c5ea2d update readme 2024-06-27 19:48:18 -05:00
80b203a079 fix module.json 2024-06-27 19:44:57 -05:00
d5489da5f7 github 2024-06-27 18:22:45 -05:00
5394ef2046 script for zipping release 2024-06-27 14:20:00 -05:00
585c94718e support for title case 2024-06-27 14:19:42 -05:00
5 changed files with 13 additions and 11 deletions

View File

@@ -15,11 +15,9 @@ This module requires the Chat Commander module to be installed and enabled. You
## Installation
1. Open FoundryVTT and go to the "Add-on Modules" tab in the "Configuration and Setup" menu.
2. Click on "Install Module".
3. In the "Manifest URL" field, paste the following URL: `[your-module-manifest-url]`.
4. Click "Install" and wait for the installation to complete.
5. Enable the module in your game settings.
1. In the "Manifest URL" field, paste the following URL: `https://github.com/anthonyscorrea/asc-session-title-suggestions/releases/latest/download/module.json`.
2. Click "Install" and wait for the installation to complete.
3. Enable the module in your game settings.
## Usage

2
scripts/zip-for-release.sh Executable file
View File

@@ -0,0 +1,2 @@
git archive --format zip --output dist/module.zip master:src
cp src/module.json dist/

View File

@@ -7,10 +7,9 @@
"name": "lmxsdl"
}
],
"version": "0.2",
"compatibility": {
"minimum": "10",
"verified": "11"
"minimum": "11",
"verified": ["11","12"]
},
"languages": [
{
@@ -19,8 +18,9 @@
"path": "lang/en.json"
}
],
"download": "https://gitea.ascorrea.com/asc/asc-session-title-suggestions/releases/download/0.2/module.zip",
"manifest": "https://gitea.ascorrea.com/asc/asc-session-title-suggestions/releases/download/latest/module.json",
"download": "https://github.com/anthonyscorrea/asc-session-title-suggestions/releases/download/0.3.3/module.zip",
"manifest": "https://github.com/anthonyscorrea/asc-session-title-suggestions/releases/latest/download/module.json",
"version": "0.3.3",
"scripts": [
"scripts/main.js"
],

View File

@@ -115,6 +115,8 @@ Hooks.on("init", function() {
},
hint: game.i18n.localize("SESSION_TITLE_SUGGESTIONS.SETTING_ROLE_HINT")
});
import ('https://cdn.jsdelivr.net/npm/title-case@4.3.1/dist/index.min.js')
.then((module)=>{console.log('asc','loading...');Handlebars.registerHelper("titlecase", module.titleCase)})
});
Hooks.on("ready", function() {

View File

@@ -1,3 +1,3 @@
<ul>{{~#each messages ~}}
<li><a class="fa-regular fa-clipboard clipboard" style="padding-left:.5em;padding-right:.5em;" data-clipboard-text="{{this.flags.session_title_suggestion}}"></a><i>"{{this.flags.session_title_suggestion}}"</i> - {{this.user.name}}</li>
<li><a class="fa-regular fa-clipboard clipboard" style="padding-left:.5em;padding-right:.5em;" data-clipboard-text="{{titlecase this.flags.session_title_suggestion}}"></a><i>"{{titlecase this.flags.session_title_suggestion}}"</i> - {{this.user.name}}</li>
{{~/each~}}</ul>