Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: xdy/xdy-pf2e-workbench
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.24.2
Choose a base ref
...
head repository: xdy/xdy-pf2e-workbench
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Dec 31, 2022

  1. Translated using Weblate (Chinese (Simplified))

    Currently translated at 34.4% (111 of 322 strings)
    
    Translation: PF2e Workbench/main
    Translate-URL: https://weblate.foundryvtt-hub.com/projects/xdy-pf2e-workbench/main/zh_Hans/
    sakusenerio authored and xdy committed Dec 31, 2022
    Copy the full SHA
    52a33a1 View commit details
  2. Translated using Weblate (Chinese (Simplified))

    Currently translated at 100.0% (322 of 322 strings)
    
    Translation: PF2e Workbench/main
    Translate-URL: https://weblate.foundryvtt-hub.com/projects/xdy-pf2e-workbench/main/zh_Hans/
    sakusenerio authored and xdy committed Dec 31, 2022
    Copy the full SHA
    9f5772d View commit details
  3. fix: Removes support for MAP-5 and MAP-10 in Skill Actions, they brok…

    …e at some point (and have never worked for escape anyway).
    xdy committed Dec 31, 2022
    Copy the full SHA
    db3804b View commit details
  4. chore(release): 4.24.3 [skip ci]

    ## [4.24.3](v4.24.2...v4.24.3) (2022-12-31)
    
    ### Bug Fixes
    
    * Removes support for MAP-5 and MAP-10 in Skill Actions, they broke at some point (and have never worked for escape anyway). ([db3804b](db3804b))
    semantic-release-bot committed Dec 31, 2022
    Copy the full SHA
    769cffc View commit details
  5. feat: Adds support for shift-clicking to bring up, or skip, the roll …

    …dialog depending on user setting, and control-clicking to make roll secret in Basic Action Macros. With these caveats: For the buttons with names ending in '(toggle)' shift and control works as for effects, recall knowledge is *always* secret and the macro used does not currently support shift-clicking, for craft and repair neither works as the macro in question doesn't seem to support them.
    xdy committed Dec 31, 2022
    Copy the full SHA
    f8539b1 View commit details
  6. chore(release): 4.25.0 [skip ci]

    # [4.25.0](v4.24.3...v4.25.0) (2022-12-31)
    
    ### Features
    
    * Adds support for shift-clicking to bring up, or skip, the roll dialog depending on user setting, and control-clicking to make roll secret in Basic Action Macros. With these caveats: For the buttons with names ending in '(toggle)' shift and control works as for effects, recall knowledge is *always* secret and the macro used does not currently support shift-clicking, for craft and repair neither works as the macro in question doesn't seem to support them. ([f8539b1](f8539b1))
    semantic-release-bot committed Dec 31, 2022
    Copy the full SHA
    e018bbf View commit details

Commits on Jan 1, 2023

  1. feat: Supports (and requires) the pf2e system version 2.6.0. Removes …

    …the deprecated IWR reminder feature as full support for IWR is now part of the system. Fully removes the partially removed player items rarity colorization feature as that too is part of the system. Updates types to match the latest pf2e version.
    xdy committed Jan 1, 2023
    Copy the full SHA
    bedf8f6 View commit details
  2. chore(release): 4.26.0 [skip ci]

    # [4.26.0](v4.25.0...v4.26.0) (2023-01-01)
    
    ### Features
    
    * Supports (and requires) the pf2e system version 2.6.0. Removes the deprecated IWR reminder feature as full support for IWR is now part of the system. Fully removes the partially removed player items rarity colorization feature as that too is part of the system. Updates types to match the latest pf2e version. ([bedf8f6](bedf8f6))
    semantic-release-bot committed Jan 1, 2023
    Copy the full SHA
    78c66a6 View commit details
  3. Translated using Weblate (French)

    Currently translated at 100.0% (322 of 322 strings)
    
    Translation: PF2e Workbench/main
    Translate-URL: https://weblate.foundryvtt-hub.com/projects/xdy-pf2e-workbench/main/fr/
    rectulo authored and xdy committed Jan 1, 2023
    Copy the full SHA
    78921f7 View commit details
  4. fix: Auto-applying persistent damage rolled by the persistent damage …

    …module now works, including IWR. So does auto-applying persistent healing. Note that for regeneration it *always* applies the healing as it doesn't know if the deactivation condition applies.
    xdy committed Jan 1, 2023
    Copy the full SHA
    979d389 View commit details
  5. chore(release): 4.26.1 [skip ci]

    ## [4.26.1](v4.26.0...v4.26.1) (2023-01-01)
    
    ### Bug Fixes
    
    * Auto-applying persistent damage rolled by the persistent damage module now works, including IWR. So does auto-applying persistent healing. Note that for regeneration it *always* applies the healing as it doesn't know if the deactivation condition applies. ([979d389](979d389))
    semantic-release-bot committed Jan 1, 2023
    Copy the full SHA
    5de8931 View commit details
  6. Copy the full SHA
    7e2dcea View commit details
  7. chore(release): 4.26.2 [skip ci]

    ## [4.26.2](v4.26.1...v4.26.2) (2023-01-01)
    
    ### Bug Fixes
    
    * Make the NPC Scaler work again. ([7e2dcea](7e2dcea))
    semantic-release-bot committed Jan 1, 2023
    Copy the full SHA
    83b0695 View commit details

Commits on Jan 2, 2023

  1. Copy the full SHA
    2e92570 View commit details
  2. chore: Update submodules

    xdy authored and github-actions[bot] committed Jan 2, 2023
    Copy the full SHA
    5f6c6c7 View commit details
  3. chore(release): 4.26.3 [skip ci]

    ## [4.26.3](v4.26.2...v4.26.3) (2023-01-02)
    
    ### Bug Fixes
    
    * Keeping up with the Macro Faeries. ([2e92570](2e92570))
    semantic-release-bot committed Jan 2, 2023
    Copy the full SHA
    a87cd85 View commit details
  4. Translated using Weblate (French)

    Currently translated at 100.0% (313 of 313 strings)
    
    Translation: PF2e Workbench/main
    Translate-URL: https://weblate.foundryvtt-hub.com/projects/xdy-pf2e-workbench/main/fr/
    rectulo authored and xdy committed Jan 2, 2023
    Copy the full SHA
    f069993 View commit details
  5. feat: Localization for Whirlwind Strike macro. The macro also now use…

    …s the first equipped weapon if there are no reach weapons.
    xdy committed Jan 2, 2023
    Copy the full SHA
    8db55f0 View commit details
  6. chore(release): 4.27.0 [skip ci]

    # [4.27.0](v4.26.3...v4.27.0) (2023-01-02)
    
    ### Features
    
    * Localization for Whirlwind Strike macro. The macro also now uses the first equipped weapon if there are no reach weapons. ([8db55f0](8db55f0))
    semantic-release-bot committed Jan 2, 2023
    Copy the full SHA
    8fa077d View commit details
  7. Copy the full SHA
    20b2ff8 View commit details
  8. chore(release): 4.28.0 [skip ci]

    # [4.28.0](v4.27.0...v4.28.0) (2023-01-02)
    
    ### Features
    
    * Localization for Basic Action Macros. ([20b2ff8](20b2ff8))
    semantic-release-bot committed Jan 2, 2023
    Copy the full SHA
    3e21ea6 View commit details
  9. Translated using Weblate (French)

    Currently translated at 100.0% (316 of 316 strings)
    
    Translation: PF2e Workbench/main
    Translate-URL: https://weblate.foundryvtt-hub.com/projects/xdy-pf2e-workbench/main/fr/
    rectulo authored and xdy committed Jan 2, 2023
    Copy the full SHA
    8116f37 View commit details
  10. Copy the full SHA
    29decdf View commit details
  11. chore(release): 4.28.1 [skip ci]

    ## [4.28.1](v4.28.0...v4.28.1) (2023-01-02)
    
    ### Bug Fixes
    
    * Keeping up with the Macro Faeries. ([29decdf](29decdf))
    semantic-release-bot committed Jan 2, 2023
    Copy the full SHA
    1b0156f View commit details

Commits on Jan 3, 2023

  1. Copy the full SHA
    cb84862 View commit details
  2. chore(release): 4.29.0 [skip ci]

    # [4.29.0](v4.28.1...v4.29.0) (2023-01-03)
    
    ### Features
    
    * Basic Action Macros buttons now sorted by localized action name. ([cb84862](cb84862))
    semantic-release-bot committed Jan 3, 2023
    Copy the full SHA
    9cbc5fa View commit details
  3. Copy the full SHA
    567dbce View commit details
  4. fix: Basic Action Macros now only cares about actors on the current s…

    …cene, and only checks if best among party members.
    xdy committed Jan 3, 2023
    Copy the full SHA
    7d88021 View commit details
  5. chore(release): 4.29.1 [skip ci]

    ## [4.29.1](v4.29.0...v4.29.1) (2023-01-03)
    
    ### Bug Fixes
    
    * Basic Action Macros now only cares about actors on the current scene, and only checks if best among party members. ([7d88021](7d88021))
    semantic-release-bot committed Jan 3, 2023
    Copy the full SHA
    cfa79e8 View commit details
  6. Translated using Weblate (French)

    Currently translated at 100.0% (359 of 359 strings)
    
    Translation: PF2e Workbench/main
    Translate-URL: https://weblate.foundryvtt-hub.com/projects/xdy-pf2e-workbench/main/fr/
    rectulo authored and xdy committed Jan 3, 2023
    Copy the full SHA
    1de42ea View commit details
  7. Translated using Weblate (Chinese (Simplified))

    Currently translated at 99.1% (356 of 359 strings)
    
    Translation: PF2e Workbench/main
    Translate-URL: https://weblate.foundryvtt-hub.com/projects/xdy-pf2e-workbench/main/zh_Hans/
    AlphaStarguide authored and xdy committed Jan 3, 2023
    Copy the full SHA
    0d744b7 View commit details
  8. Copy the full SHA
    c0edc3a View commit details
  9. Copy the full SHA
    fa1b7d4 View commit details
  10. chore(release): 4.29.2 [skip ci]

    ## [4.29.2](v4.29.1...v4.29.2) (2023-01-03)
    
    ### Bug Fixes
    
    * Include latest translations. ([fa1b7d4](fa1b7d4))
    semantic-release-bot committed Jan 3, 2023
    Copy the full SHA
    bbdc509 View commit details

Commits on Jan 4, 2023

  1. fix: WhirlwindStrike macro now ignores dead potential targets and *ac…

    …tually* uses the first non-reach non-ranged weapon if no reach weapon is wielded.
    xdy committed Jan 4, 2023
    Copy the full SHA
    557e403 View commit details
  2. chore(release): 4.29.3 [skip ci]

    ## [4.29.3](v4.29.2...v4.29.3) (2023-01-04)
    
    ### Bug Fixes
    
    * WhirlwindStrike macro now ignores dead potential targets and *actually* uses the first non-reach non-ranged weapon if no reach weapon is wielded. ([557e403](557e403))
    semantic-release-bot committed Jan 4, 2023
    Copy the full SHA
    45ae2cd View commit details
  3. fix: Better sort for Basic Action Macro.

    Fixes #602
    xdy committed Jan 4, 2023
    Copy the full SHA
    d84419d View commit details
  4. chore(release): 4.29.4 [skip ci]

    ## [4.29.4](v4.29.3...v4.29.4) (2023-01-04)
    
    ### Bug Fixes
    
    * Better sort for Basic Action Macro. ([d84419d](d84419d)), closes [#602](#602)
    semantic-release-bot committed Jan 4, 2023
    Copy the full SHA
    5b81489 View commit details

Commits on Jan 7, 2023

  1. fix: If the option to collapse chat cards is enabled, collapse more t…

    …ypes of messages. Show remaining actions in a notification as well as in chat.
    xdy committed Jan 7, 2023
    Copy the full SHA
    14a6193 View commit details
  2. chore(release): 4.29.5 [skip ci]

    ## [4.29.5](v4.29.4...v4.29.5) (2023-01-07)
    
    ### Bug Fixes
    
    * If the option to collapse chat cards is enabled, collapse more types of messages. Show remaining actions in a notification as well as in chat. ([14a6193](14a6193))
    semantic-release-bot committed Jan 7, 2023
    Copy the full SHA
    363fc91 View commit details
  3. feat: Updated Inspire Defense and Inspire Courage auras to set the le…

    …vel of the effect they grant, which means the resistances are now set correctly. Also gave them and the Bane and Bless auras a link to the source spell.
    xdy committed Jan 7, 2023
    Copy the full SHA
    37b990c View commit details
  4. chore(release): 4.30.0 [skip ci]

    # [4.30.0](v4.29.5...v4.30.0) (2023-01-07)
    
    ### Features
    
    * Updated Inspire Defense and Inspire Courage auras to set the level of the effect they grant, which means the resistances are now set correctly. Also gave them and the Bane and Bless auras a link to the source spell. ([37b990c](37b990c))
    semantic-release-bot committed Jan 7, 2023
    Copy the full SHA
    ea92e2c View commit details

Commits on Jan 8, 2023

  1. Copy the full SHA
    d68d73c View commit details
  2. chore(release): 4.30.1 [skip ci]

    ## [4.30.1](v4.30.0...v4.30.1) (2023-01-08)
    
    ### Bug Fixes
    
    * Keeping up with the Macro Faeries. ([d68d73c](d68d73c))
    semantic-release-bot committed Jan 8, 2023
    Copy the full SHA
    522a92e View commit details
  3. Copy the full SHA
    74e8107 View commit details

Commits on Jan 9, 2023

  1. Copy the full SHA
    101f6aa View commit details
  2. chore(release): 4.30.2 [skip ci]

    ## [4.30.2](v4.30.1...v4.30.2) (2023-01-09)
    
    ### Bug Fixes
    
    * Keeping up with the Macro Faeries. ([101f6aa](101f6aa))
    semantic-release-bot committed Jan 9, 2023
    Copy the full SHA
    c23de56 View commit details
  3. Translated using Weblate (French)

    Currently translated at 100.0% (359 of 359 strings)
    
    Translation: PF2e Workbench/main
    Translate-URL: https://weblate.foundryvtt-hub.com/projects/xdy-pf2e-workbench/main/fr/
    rectulo authored and xdy committed Jan 9, 2023
    Copy the full SHA
    e79987b View commit details
  4. Copy the full SHA
    6769a9d View commit details

Commits on Jan 11, 2023

  1. Translated using Weblate (Chinese (Traditional))

    Currently translated at 100.0% (359 of 359 strings)
    
    Translation: PF2e Workbench/main
    Translate-URL: https://weblate.foundryvtt-hub.com/projects/xdy-pf2e-workbench/main/zh_Hant/
    zeteticl authored and xdy committed Jan 11, 2023
    Copy the full SHA
    23395ee View commit details
Showing 1,185 changed files with 47,963 additions and 69,277 deletions.
4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
.vs/
*.iml
/.vscode
icons/\!dox/
static/assets/icons/\!dox/
/node_modules/
.DS_Store
**.env
@@ -22,6 +22,6 @@ main.bundle.js
#This project
foundryconfig.json
.eslintrc.js
webpack.config.ts
vite.config.ts
types/

58 changes: 0 additions & 58 deletions .eslintrc.js

This file was deleted.

120 changes: 120 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/typescript",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2023,
"sourceType": "module",
"project": "./tsconfig.json"
},
"ignorePatterns": [
"dist/"
],
"rules": {
"eqeqeq": [
"error",
"always"
],
"import/named": "off",
"import/no-default-export": "error",
"prettier/prettier": "error",
"no-console": "off",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-unused-expressions": [
"error",
{
"allowShortCircuit": true
}
],
"spaced-comment": [
"error",
"always",
{
"markers": [
"/"
]
}
],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-comment": "off",
//Just, nope. Not worth it.
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
//TODO Handle later
"@typescript-eslint/lines-between-class-members": [
"error",
"always",
{
"exceptAfterSingleLine": true
}
],
"@typescript-eslint/prefer-namespace-keyword": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-namespace": [
"error",
{
"allowDeclarations": true
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
// TODO Handle this later
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-declaration-merging": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/array-type": [
"error",
{
"default": "array"
}
]
},
"settings": {
"import/resolver": {
"node": {
"paths": [
"src",
"types",
"",
"dist"
],
"extensions": [
".css",
".js",
".json",
".jsx",
".scss",
".ts",
".tsx"
]
},
"eslint-import-resolver-typescript": true,
"typescript": true
},
"import/parsers": {
"@typescript-eslint/parser": [
".ts"
]
}
},
"plugins": [
"prettier",
"@typescript-eslint",
"import"
],
"parser": "@typescript-eslint/parser"
}
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -5,6 +5,6 @@
*.db text

# Definitively not text
*.jpg binary
*.png binary
*.webp binary
*.pdf binary
packs/leveldb/** binary
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -35,11 +35,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,7 +50,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -64,4 +64,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
64 changes: 64 additions & 0 deletions .github/workflows/manual_release
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# release action with semantic release
name: Release

on:
workflow_dispatch:

permissions:
contents: write
issues: write
pull-requests: write

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3.8.1
with:
node-version: 18.x
cache: 'npm'

- name: Install
run: npm install

- name: Build packs
run: npm run build:packs

- name: Build
run: npm run build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

- name: Get tag
run: echo "WORKBENCH_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV

# Publish the release to FoundryVTT's package repository only if push on main
# - name: Publish to Foundry Admin
# if: github.event_name == 'push' && (github.ref == 'refs/heads/main') && github.repository == 'xdy/xdy-pf2e-workbench'
# uses: Varriount/fvtt-autopublish@v1.0.9
# with:
# username: ${{ secrets.FOUNDRY_ADMIN_USERNAME }}
# password: ${{ secrets.FOUNDRY_ADMIN_PASSWORD }}
# module-id: 1702
# manifest-url: https://github.com/xdy/xdy-pf2e-workbench/releases/download/${{ env.WORKBENCH_VERSION }}/module.json
# manifest-file: module.json
#
- name: Install playwright
run: npx playwright install

- name: Publish to Foundry VTT Repo
id: publish_foundry_repo
if: github.event_name == 'push' && (github.ref == 'refs/heads/main') && github.repository == 'xdy/xdy-pf2e-workbench'
run: npx @ghost-fvtt/foundry-publish
env:
FVTT_MANIFEST_PATH: 'static/module.json'
FVTT_PACKAGE_ID: ${{ 1702 }}
FVTT_USERNAME: ${{ secrets.FOUNDRY_ADMIN_USERNAME }}
FVTT_PASSWORD: ${{ secrets.FOUNDRY_ADMIN_PASSWORD }}
Loading