From 04386cec9e8ae1c84a89790d45cdfe8d81df5d4e Mon Sep 17 00:00:00 2001 From: Vali Date: Mon, 31 Aug 2020 01:40:09 +0200 Subject: [PATCH] v2.8.0 --- .eslintrc.json | 98 +++++ .github/workflows/release.yml | 2 +- CHANGELOG.md | 11 + dist/assets/adjectives.db | 5 - dist/css/overlay.css | 21 - dist/css/sticky-templates.css | 0 dist/css/token-mold.css | 238 ----------- dist/module.json | 27 -- dist/scripts/bundles/afrikaans-json.17a5.js | 6 - .../bundles/afrikaans-json.17a5.js.map | 1 - dist/scripts/bundles/albanian-json.eb8c.js | 6 - .../scripts/bundles/albanian-json.eb8c.js.map | 1 - dist/scripts/bundles/armenian-json.70ec.js | 6 - .../scripts/bundles/armenian-json.70ec.js.map | 1 - dist/scripts/bundles/azeri-json.0d67.js | 6 - dist/scripts/bundles/azeri-json.0d67.js.map | 1 - dist/scripts/bundles/croatian-json.2be5.js | 6 - .../scripts/bundles/croatian-json.2be5.js.map | 1 - dist/scripts/bundles/czech-json.aaa8.js | 6 - dist/scripts/bundles/czech-json.aaa8.js.map | 1 - dist/scripts/bundles/danish-json.61ef.js | 6 - dist/scripts/bundles/danish-json.61ef.js.map | 1 - dist/scripts/bundles/dutch-json.3fdd.js | 6 - dist/scripts/bundles/dutch-json.3fdd.js.map | 1 - dist/scripts/bundles/english-json.b4c8.js | 6 - dist/scripts/bundles/english-json.b4c8.js.map | 1 - dist/scripts/bundles/estonian-json.9a50.js | 6 - .../scripts/bundles/estonian-json.9a50.js.map | 1 - dist/scripts/bundles/finnish-json.9cec.js | 6 - dist/scripts/bundles/finnish-json.9cec.js.map | 1 - dist/scripts/bundles/french-json.e472.js | 6 - dist/scripts/bundles/french-json.e472.js.map | 1 - dist/scripts/bundles/georgian-json.7a65.js | 6 - .../scripts/bundles/georgian-json.7a65.js.map | 1 - dist/scripts/bundles/german-json.2000.js | 6 - dist/scripts/bundles/german-json.2000.js.map | 1 - dist/scripts/bundles/greek-json.0079.js | 6 - dist/scripts/bundles/greek-json.0079.js.map | 1 - dist/scripts/bundles/hungarian-json.40e2.js | 6 - .../bundles/hungarian-json.40e2.js.map | 1 - dist/scripts/bundles/icelandic-json.5fc0.js | 6 - .../bundles/icelandic-json.5fc0.js.map | 1 - dist/scripts/bundles/indonesian-json.00f9.js | 6 - .../bundles/indonesian-json.00f9.js.map | 1 - dist/scripts/bundles/irish-json.3686.js | 6 - dist/scripts/bundles/irish-json.3686.js.map | 1 - dist/scripts/bundles/italian-json.4264.js | 6 - dist/scripts/bundles/italian-json.4264.js.map | 1 - dist/scripts/bundles/latvian-json.a498.js | 6 - dist/scripts/bundles/latvian-json.a498.js.map | 1 - dist/scripts/bundles/lithuanian-json.5906.js | 6 - .../bundles/lithuanian-json.5906.js.map | 1 - dist/scripts/bundles/norwegian-json.2c33.js | 6 - .../bundles/norwegian-json.2c33.js.map | 1 - dist/scripts/bundles/polish-json.825c.js | 6 - dist/scripts/bundles/polish-json.825c.js.map | 1 - dist/scripts/bundles/portuguese-json.0f7f.js | 6 - .../bundles/portuguese-json.0f7f.js.map | 1 - dist/scripts/bundles/romanian-json.beaf.js | 6 - .../scripts/bundles/romanian-json.beaf.js.map | 1 - dist/scripts/bundles/russian-json.7503.js | 6 - dist/scripts/bundles/russian-json.7503.js.map | 1 - dist/scripts/bundles/sicilian-json.2567.js | 6 - .../scripts/bundles/sicilian-json.2567.js.map | 1 - dist/scripts/bundles/slovak-json.1d9a.js | 6 - dist/scripts/bundles/slovak-json.1d9a.js.map | 1 - dist/scripts/bundles/slovenian-json.5e75.js | 6 - .../bundles/slovenian-json.5e75.js.map | 1 - dist/scripts/bundles/spanish-json.9bed.js | 6 - dist/scripts/bundles/spanish-json.9bed.js.map | 1 - dist/scripts/bundles/swedish-json.b026.js | 6 - dist/scripts/bundles/swedish-json.b026.js.map | 1 - dist/scripts/bundles/turkish-json.f187.js | 6 - dist/scripts/bundles/turkish-json.f187.js.map | 1 - dist/scripts/bundles/welcome-screen.6377.js | 6 - .../bundles/welcome-screen.6377.js.map | 1 - dist/scripts/bundles/welsh-json.f804.js | 6 - dist/scripts/bundles/welsh-json.f804.js.map | 1 - dist/scripts/bundles/zulu-json.a5c2.js | 6 - dist/scripts/bundles/zulu-json.a5c2.js.map | 1 - dist/scripts/index.js | 22 -- dist/scripts/index.js.map | 1 - dist/templates/overlay.html | 6 - dist/templates/token-mold.html | 370 ------------------ dist/templates/welcome-screen.html | 47 --- gulpfile.js | 11 +- module.json | 10 +- package.json | 2 +- templates/welcome-screen.html | 47 --- 89 files changed, 124 insertions(+), 1046 deletions(-) create mode 100644 .eslintrc.json delete mode 100644 dist/assets/adjectives.db delete mode 100644 dist/css/overlay.css delete mode 100644 dist/css/sticky-templates.css delete mode 100644 dist/css/token-mold.css delete mode 100644 dist/module.json delete mode 100644 dist/scripts/bundles/afrikaans-json.17a5.js delete mode 100644 dist/scripts/bundles/afrikaans-json.17a5.js.map delete mode 100644 dist/scripts/bundles/albanian-json.eb8c.js delete mode 100644 dist/scripts/bundles/albanian-json.eb8c.js.map delete mode 100644 dist/scripts/bundles/armenian-json.70ec.js delete mode 100644 dist/scripts/bundles/armenian-json.70ec.js.map delete mode 100644 dist/scripts/bundles/azeri-json.0d67.js delete mode 100644 dist/scripts/bundles/azeri-json.0d67.js.map delete mode 100644 dist/scripts/bundles/croatian-json.2be5.js delete mode 100644 dist/scripts/bundles/croatian-json.2be5.js.map delete mode 100644 dist/scripts/bundles/czech-json.aaa8.js delete mode 100644 dist/scripts/bundles/czech-json.aaa8.js.map delete mode 100644 dist/scripts/bundles/danish-json.61ef.js delete mode 100644 dist/scripts/bundles/danish-json.61ef.js.map delete mode 100644 dist/scripts/bundles/dutch-json.3fdd.js delete mode 100644 dist/scripts/bundles/dutch-json.3fdd.js.map delete mode 100644 dist/scripts/bundles/english-json.b4c8.js delete mode 100644 dist/scripts/bundles/english-json.b4c8.js.map delete mode 100644 dist/scripts/bundles/estonian-json.9a50.js delete mode 100644 dist/scripts/bundles/estonian-json.9a50.js.map delete mode 100644 dist/scripts/bundles/finnish-json.9cec.js delete mode 100644 dist/scripts/bundles/finnish-json.9cec.js.map delete mode 100644 dist/scripts/bundles/french-json.e472.js delete mode 100644 dist/scripts/bundles/french-json.e472.js.map delete mode 100644 dist/scripts/bundles/georgian-json.7a65.js delete mode 100644 dist/scripts/bundles/georgian-json.7a65.js.map delete mode 100644 dist/scripts/bundles/german-json.2000.js delete mode 100644 dist/scripts/bundles/german-json.2000.js.map delete mode 100644 dist/scripts/bundles/greek-json.0079.js delete mode 100644 dist/scripts/bundles/greek-json.0079.js.map delete mode 100644 dist/scripts/bundles/hungarian-json.40e2.js delete mode 100644 dist/scripts/bundles/hungarian-json.40e2.js.map delete mode 100644 dist/scripts/bundles/icelandic-json.5fc0.js delete mode 100644 dist/scripts/bundles/icelandic-json.5fc0.js.map delete mode 100644 dist/scripts/bundles/indonesian-json.00f9.js delete mode 100644 dist/scripts/bundles/indonesian-json.00f9.js.map delete mode 100644 dist/scripts/bundles/irish-json.3686.js delete mode 100644 dist/scripts/bundles/irish-json.3686.js.map delete mode 100644 dist/scripts/bundles/italian-json.4264.js delete mode 100644 dist/scripts/bundles/italian-json.4264.js.map delete mode 100644 dist/scripts/bundles/latvian-json.a498.js delete mode 100644 dist/scripts/bundles/latvian-json.a498.js.map delete mode 100644 dist/scripts/bundles/lithuanian-json.5906.js delete mode 100644 dist/scripts/bundles/lithuanian-json.5906.js.map delete mode 100644 dist/scripts/bundles/norwegian-json.2c33.js delete mode 100644 dist/scripts/bundles/norwegian-json.2c33.js.map delete mode 100644 dist/scripts/bundles/polish-json.825c.js delete mode 100644 dist/scripts/bundles/polish-json.825c.js.map delete mode 100644 dist/scripts/bundles/portuguese-json.0f7f.js delete mode 100644 dist/scripts/bundles/portuguese-json.0f7f.js.map delete mode 100644 dist/scripts/bundles/romanian-json.beaf.js delete mode 100644 dist/scripts/bundles/romanian-json.beaf.js.map delete mode 100644 dist/scripts/bundles/russian-json.7503.js delete mode 100644 dist/scripts/bundles/russian-json.7503.js.map delete mode 100644 dist/scripts/bundles/sicilian-json.2567.js delete mode 100644 dist/scripts/bundles/sicilian-json.2567.js.map delete mode 100644 dist/scripts/bundles/slovak-json.1d9a.js delete mode 100644 dist/scripts/bundles/slovak-json.1d9a.js.map delete mode 100644 dist/scripts/bundles/slovenian-json.5e75.js delete mode 100644 dist/scripts/bundles/slovenian-json.5e75.js.map delete mode 100644 dist/scripts/bundles/spanish-json.9bed.js delete mode 100644 dist/scripts/bundles/spanish-json.9bed.js.map delete mode 100644 dist/scripts/bundles/swedish-json.b026.js delete mode 100644 dist/scripts/bundles/swedish-json.b026.js.map delete mode 100644 dist/scripts/bundles/turkish-json.f187.js delete mode 100644 dist/scripts/bundles/turkish-json.f187.js.map delete mode 100644 dist/scripts/bundles/welcome-screen.6377.js delete mode 100644 dist/scripts/bundles/welcome-screen.6377.js.map delete mode 100644 dist/scripts/bundles/welsh-json.f804.js delete mode 100644 dist/scripts/bundles/welsh-json.f804.js.map delete mode 100644 dist/scripts/bundles/zulu-json.a5c2.js delete mode 100644 dist/scripts/bundles/zulu-json.a5c2.js.map delete mode 100644 dist/scripts/index.js delete mode 100644 dist/scripts/index.js.map delete mode 100644 dist/templates/overlay.html delete mode 100644 dist/templates/token-mold.html delete mode 100644 dist/templates/welcome-screen.html delete mode 100644 templates/welcome-screen.html diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..5f6d975 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,98 @@ +{ + "env": { + "browser": true, + "es2020": true + }, + "extends": [ + "eslint:recommended", + "google" + ], + "parserOptions": { + "ecmaVersion": 11, + "sourceType": "module" + }, + "ignorePatterns": ["**/*.md", "LICENSE", "**/*.json", "scripts/dict/*"], + "rules": { + "no-console": 0, + "require-jsdoc": 0, + "max-len": 0 + }, + "globals": { + "ROUTE_PREFIX": "readonly", + "Roll": "readonly", + "ChatMessage": "readonly", + "SetupConfiguration": "readonly", + "ImagePopout": "readonly", + "Actors": "readonly", + "caches": "readonly", + "ondevicemotion": "readonly", + "ondeviceorientation": "readonly", + "ondeviceorientationabsolute": "readonly", + "$": "readonly", + "jQuery": "readonly", + "Handlebars": "readonly", + "HandlebarsIntl": "readonly", + "HowlerGlobal": "readonly", + "Howler": "readonly", + "Howl": "readonly", + "Sound": "readonly", + "WebFont": "readonly", + "PIXI": "readonly", + "io": "readonly", + "tinymce": "readonly", + "tinyMCE": "readonly", + "easyrtc_lang": "readonly", + "adapter": "readonly", + "easyrtc": "readonly", + "duplicate": "readonly", + "getType": "readonly", + "invertObject": "readonly", + "filterObject": "readonly", + "flattenObject": "readonly", + "expandObject": "readonly", + "isObjectEmpty": "readonly", + "mergeObject": "readonly", + "diffObject": "readonly", + "hasProperty": "readonly", + "getProperty": "readonly", + "setProperty": "readonly", + "encodeURL": "readonly", + "rgbToHsv": "readonly", + "hsvToRgb": "readonly", + "rgbToHex": "readonly", + "hexToRGB": "readonly", + "hexToRGBAString": "readonly", + "colorStringToHex": "readonly", + "isNewerVersion": "readonly", + "randomID": "readonly", + "loadFont": "readonly", + "saveDataToFile": "readonly", + "readTextFromFile": "readonly", + "fromUuid": "readonly", + "_handleMouseWheelInputChange": "readonly", + "getTemplate": "readonly", + "loadTemplates": "readonly", + "renderTemplate": "readonly", + "srcExists": "readonly", + "getTexture": "readonly", + "loadTexture": "readonly", + "CONST": "readonly", + "toDegrees": "readonly", + "normalizeDegrees": "readonly", + "toRadians": "readonly", + "normalizeRadians": "readonly", + "validateForm": "readonly", + "timeSince": "readonly", + "_templateCache": "readonly", + "TextEditor": "readonly", + "CONFIG": "readonly", + "socket": "readonly", + "ui": "readonly", + "canvas": "readonly", + "keyboard": "readonly", + "Hooks": "readonly", + "SortingHelpers": "readonly", + "math": "readonly", + "game": "readonly" +} +} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48a8b57..d10730b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: run: echo ::set-output name=VERSION::${GITHUB_REF#refs/*/} - name: Zip files run: | - zip -r ${{ steps.get_version.outputs.VERSION }}.zip *.css *.js scripts module.json LICENSE templates assets + zip -r ${{ steps.get_version.outputs.VERSION }}.zip *.css *.js module.json LICENSE scripts templates assets - name: Create Release id: create_release uses: actions/create-release@v1 diff --git a/CHANGELOG.md b/CHANGELOG.md index d206d86..ce0a5c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +# v2.8 + +- *IMPORTANT* Removed sticky templates from token mold! There is now a dedicated module for sticking stuff to tokens: ![Token Attacher by Kayelgee](https://foundryvtt.com/packages/token-attacher/) +- Now also overwriting the tokens actor name, on name generation. +- *FIX* Tab content not being shown in FVTT 0.7.X +- Removed the welcome screen / popup +- *FIX* some deprecated code used in the regenerating names function. +- Removed bundling through webpack. Now only native ESM 6 modules are used. + - Reason: slowness when building for development, less complications for people wanting to contribute + - Modified the dict files, to be native ESM6 modules enow instead of json files. + # v2.7.1