Skip to content

Commit

Permalink
FQL Reunification (#134)
Browse files Browse the repository at this point in the history
* Enhancement for Issue #124: added completed or failed button to either state to move between these quest states directly.

* Enhancement for Issue #122: Added context menu to quest tracker to select content entity link / primary quest.

* Update to French translation for `v0.7.7`

* Added message when no primary quest is available.

* Update for French translation.

* Enhancement issue #120: `lib-themer` support for entity link color.

* Add more default font sizes for TinyMCE. Added back default `p` margin.

* Updated German translation

* Packs added back

* Initial QuestTracker view management / docking

* Updated German translation

* v0.7.7 ko.json

added new strings

* Update icon styles and context menu support.

* Initial docking support

* Integrated questTrackerManaged setting.

* Update macros on startup based on FQL client settings with image state.

* Created HandlerTracker for event callbacks. Also documentation.

* Added copy quest ID option to context menu; updated English / French language files.

* removed unused styles

* updated German translation

* v0.7.7 ko.json

* Match Foundry CSS classes for FQL app

* Remove `Close` label from quest tracker header button. Add some padding for message when no primary quests are available in the quest tracker.

* Removed questTrackerManaged setting. The QuestTracker will always be managed.

* Moved render tracking for QuestTracker to SidebarManager and QuestPreview to ViewManager.

* FoundryUIManager - now also controls SceneNavigation for QuestTracker pinning.

* Comments

* Add primary quest icon to management / subquests.

* README / Changelog updates

* 0.7.7 release

* v0.7.7 ko.json

edited false name & weird translation

* updated 0.7.7 ko.json

I'm sorry. This is the last fix. 😢

* Fixes an edge case due to timing of hooks for Mac / Chrome w/ Minimal UI.

* Enhancement #137: Make QuestPreview minimizable.

* Enhancement #138: Part 1 / QuestTracker constraints in hook.

* Enhancement #138: Part 2 / QuestLog constraints in hook.

* Added 'top' as a whitelisted variable

* Enhancement #138: QuestTracker hook can also set show primary state.

* Correct handlebar helper name to prevent conflicts

Renamed the custom Handlebars Helper from `format` to `fql_format` to prevent potential conflicts with other modules.

* Namespace custom handlebars helper

* Fix for #140: url() usage in templates now includes quotes so filenames with parentheses render correctly.

* 0.7.8 release

* Patch to disable synthetic quest type registration for v9+ of Foundry preventing a hard crash of FQL. There is a replacement module / continuation of the quest log that is being released soon that will enable this functionality against with a different implementation. You can receive announcements when this is ready on the TyphonJS Discord server: https://discord.gg/mnbgN8f

* Update changelog & README

* Better version 9 check.

* 0.7.9 release

* update ja.json

* Fix typos

* Fix for Issue #13 - save state of quest before status change.

* css dist update

* add v9 "type" field to pack definitions.

* 0.7.10 release

* update for v10 `folder.contents` vs `folder.content`.

* DataModel update for macroEntry access

* Switch to CONST.DOCUMENT_PERMISSION_LEVELS

* Added V10Compat for ownership access + TextEditor.enrichHTML

* Update for editor handlebars helper v10 change.

* Update for handling v10 UUID changes in drag and drop data transfer.

* Update for handling macro drop data for v10.

* Update for folder contents for v10.

* added TinyMCE v6 oEmbed plugin

* load TinyMCE v5 or v6 plugin.

* TinyMCE options for v9 & v10

* quest link changed to journal entry link

* update dev dependencies

* add 'browserlist' to cut down on generated CSS

* a few style tweaks for TinyMCE 6

* update CSS

* fix sourcemap links

* Move ViewManager init before DBMigrate

* optional chaining for game.data.version

* Remove unused QuestCollection

* Handle reward item drag / only add 'data' for v9.

* Added token and journal image compatibility support.

* Explicitly render quest tracker if visible.

* Update for ownership control dialog on v10.

* Update for token & journal images for v10

* DB migration updates / added schema 3 for checking stale document link data and dnd5e v2 special handling.

* comment

* fix for content link selector

* Fix for issue #14 - tracker app background w/ route prefix.

* Added support for showing quest tracker background.

* update styles

* removed unused libthemer json config

* Added show to players app header button for quest log and tracker for GMs.

* added `isFQLMacroDataTransfer`

* Fix FQL macro detection for compendium drops.

* update for pt-BR lang translation

* Fix hotbarDrop hook.

* Firefox UX style fixes for thin scrollbar and quest tracker scrollbar color with transparent background.

* update dist CSS

* Added chat message summarizing any unlinked document data in DB migration.

* fix chat message content.

* normalize all translation data / add machine translation where necessary.

* use localization for migration messaging

* translation update

* translation update

* Update to Spanish translation thanks to ZRAAA78 (Raul)

* Update zh-tw.json

* Update zh-tw.json

* Update zh-tw.json

* Update zh-tw.json

* initial machine translation

* Add Finnish (fi-FI) translation

* Make 'item' translation consistent

* punctuation

* Increased custom quest giver name length from 24 to 36

* refactor buttons / tooltips

* Update localization references

* Update localization references

* Provide abbreviated reward button text.

* Add Russian translation

* update settings for objectives.

* update status text

* update status text

* update templates for new lang keys

* update min-width

* style update

* Added new language resources

* Added auto height for FQLDialog

* Allow dragging of quest from quest log from full 'li'. Add uuid in drop canvas hook.

* Expand open quest hit box

* organization refactor

* code / template language organization refactor

* language organization refactor  status tooltips.

* language organization refactor  API keys.

* language organization refactor  top level labels.

* language organization refactor  DB migrate notifications.

* language organization refactor  quest details.

* language organization refactor  quest details.

* punctuation

* punctuation

* punctuation

* punctuation

* punctuation

* punctuation

* remove QuestLog.Tabs in favor of QuestTypes.Labels

* remove QuestLog.Tabs in favor of QuestTypes.Labels

* punctuation.

* punctuation.

* corrections

* punctuation

* punctuation

* add maximum compatibility: v10

* translation update.

* Translated using Weblate (Finnish)

Currently translated at 100.0% (152 of 152 strings)

Translation: Forien's Quest Log/main
Translate-URL: https://weblate.foundryvtt-hub.com/projects/forien-quest-log/main/fi/

* update CHANGELOG

* update README

* update README

* fix quest tracker fill icon for v9

* fix for TinyMCE CSS URL / no need to apply `getRoute` as Foundry does automatically.

* Translated using Weblate (Swedish)

Currently translated at 100.0% (152 of 152 strings)

Translation: Forien's Quest Log/main
Translate-URL: https://weblate.foundryvtt-hub.com/projects/forien-quest-log/main/sv/

* fix for quest log copy link

* remove unused dev dependencies

* Fix for systems that overrode `or` handlebars helper.

* Added translation using Weblate (Dutch)

* Translated using Weblate (Dutch)

Currently translated at 15.1% (23 of 152 strings)

Translation: Forien's Quest Log/main
Translate-URL: https://weblate.foundryvtt-hub.com/projects/forien-quest-log/main/nl/

* Translated using Weblate (Dutch)

Currently translated at 88.8% (135 of 152 strings)

Translation: Forien's Quest Log/main
Translate-URL: https://weblate.foundryvtt-hub.com/projects/forien-quest-log/main/nl/

* Translated using Weblate (Dutch)

Currently translated at 100.0% (152 of 152 strings)

Translation: Forien's Quest Log/main
Translate-URL: https://weblate.foundryvtt-hub.com/projects/forien-quest-log/main/nl/

* add lock file

* update Utils.copyTextToClipboard

* comments

* add error checking

* protect against invalid data transfer

* Switch to async TextEditor.enrichHTML

* QuestLog render now accepts tabId parameter to open a specific quest status tab.

* update CHANGELOG

* update README

* 0.7.11 release

* Added override for MCE Everywhere.

* 0.7.12 update

* update Rollup v3

* update external libs

* Rename V10Compat to FVTTCompat

* CSS rebuild

* Removed prior ownership compatibility dialog.

* small fix to not force render main log.

* Translated using Weblate (Spanish)

Currently translated at 100.0% (152 of 152 strings)

Translation: Forien's Quest Log/main
Translate-URL: https://weblate.foundryvtt-hub.com/projects/forien-quest-log/main/es/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (152 of 152 strings)

Translation: Forien's Quest Log/main
Translate-URL: https://weblate.foundryvtt-hub.com/projects/forien-quest-log/main/es/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (152 of 152 strings)

Translation: Forien's Quest Log/main
Translate-URL: https://weblate.foundryvtt-hub.com/projects/forien-quest-log/main/es/

* update CHANGELOG

* add for packs

* v11 LevelDB packs

* remove unused config.

* update README

* Replace DOCUMENT_PREMISSION_LEVELS with DOCUMENT_OWNERSHIP_LEVELS

* Updated FVTTCompat. v9 / v10 shims removed.

* ES2022 private variables

* ESLint fixes

* ESLint fixes

* Allow actors (IE item piles) to be assigned as rewards.

* `console.log` to `console.warn`

* Allow all rewards to have associated image changed.

* Update packs

* Update reward select image selector.

* Fix MCE select width for format paragraph.

* Player notes feature.

* Player notes feature / lang updates.

* CSS Updates

* Remove oembed MCE v5 support.

* Update dependencies.

* update config

* Update packs

* Update version

* Update README

* Update build scripts

* Switched to ProseMirror editor.

* Update config.

* Update external libs

* Switch to normal sanitize method.

* Add `getEditorContent` to FVTTCompat.

* Disable legacy DB migration.

* Update comments for proper linking and recent Foundry API doc links.

* Update authors

* Remove loading TinyMCE plugin.

* Refactor `module private` #1

* Refactor UI control code.

* Refactor view classes for named exports.

* Refactor model classes for named exports.

* Refactor control classes for named exports.

* Move FVTTCompat / ModuleSettings to control.

* Named exports for external libraries.

* Disable eslint.

* Add private constructor for static classes.

* Refactor for ES2022.

* Group util control classes.

* Update QuestDB to ES2022.

* comments.

* Update CHANGELOG

* Update README

---------

Co-authored-by: drdwing <[email protected]>
Co-authored-by: flamewave000 <[email protected]>
Co-authored-by: BrotherSharper <[email protected]>
Co-authored-by: Sad <[email protected]>
Co-authored-by: Demian Wright <[email protected]>
Co-authored-by: Jonas Karlsson <[email protected]>
Co-authored-by: Kyra van den Berg <[email protected]>
Co-authored-by: Zaen8 <[email protected]>
Co-authored-by: Neil White <[email protected]>
  • Loading branch information
10 people authored Jul 18, 2024
1 parent 62e8dfd commit 6b71a83
Show file tree
Hide file tree
Showing 189 changed files with 17,022 additions and 5,731 deletions.
315 changes: 315 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.github/
docs/
external/
lang/
scripts/
styles/
templates/
40 changes: 40 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/**
* Loads https://github.com/typhonjs-node-config/typhonjs-config-eslint/blob/master/3.0/basic/es8/server/node/.eslintrc
* Loads https://github.com/typhonjs-fvtt/eslint-config-foundry.js/blob/main/0.8.0.js
*
* NPM: https://www.npmjs.com/package/typhonjs-config-eslint
* NPM: https://www.npmjs.com/package/@typhonjs-fvtt/eslint-config-foundry.js
*/
{
// ESLint configs are prone to particular choices, so if the first config below doesn't work for you then replace
// with one that you do prefer. The second config defines globals defined in `foundry.js` for use w/ `no-shadow`.
"extends": [
"@typhonjs-config/eslint-config/esm/2022/browser",
"@typhonjs-fvtt/eslint-config-foundry.js"
],

// Defines / overrides a few more environment parameters not provided in the configs above.
"env": {
"jquery": true
},

// Prevents overwriting any built in globals particularly from `@typhonjs-fvtt/eslint-config-foundry.js`, but also
// node & browser environments. `event / window.event` shadowing is allowed due to being a common variable name and
// an uncommonly used browser feature.
//
// Note: if you are using Typescript you must use `@typescript-eslint/no-shadow`
"rules": {
"no-shadow": ["error", {
"builtinGlobals": true,
"hoist": "all",
"allow": [
"document",
"event",
"name",
"parent",
"status",
"top"
]
}]
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packs/** binary
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# From https://github.com/League-of-Foundry-Developers/FoundryVTT-Module-Template/blob/master/.github/workflows/main.yml
name: Release Creation

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Substitute the Manifest and Download URLs in the module.json
- name: Substitute Manifest and Download Links For Versioned Ones
id: sub_manifest_link_version
uses: microsoft/variable-substitution@v1
with:
files: 'module.json'
env:
version: ${{github.event.release.tag_name}}
url: https://github.com/${{github.repository}}
manifest: https://github.com/${{github.repository}}/releases/latest/download/module.json
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip

# Create a zip file with all files required by the module to add to the release
- run: zip -r ./module.zip module.json assets/ css/ database/ external/ lang/ packs/ scripts/ src/ styles/ templates/ LICENSE AUTHORS

# Create a release for this specific version
- name: Update Release with Files
id: create_version_release
uses: ncipollo/release-action@v1
with:
allowUpdates: true # Set this to false if you want to prevent updating existing releases
name: ${{ github.event.release.name }}
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './module.json, ./module.zip'
tag: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body }}
File renamed without changes.
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.idea/
styles/.sass-cache/
devtool/
docs/
lang/untranslated.json
node_modules/
foundry.js
package.json
/changelog.html
package-lock.json
26 changes: 26 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This is the official list of foundryvtt-forien-quest-log authors for copyright purposes.
#
# This does not necessarily list everyone who has contributed code, since in
# some cases, their employer may be the copyright holder. To see the full list
# of contributors, see the revision history in source control or
# https://github.com/League-of-Foundry-Developers/foundryvtt-forien-quest-log/graphs/contributors.
#
# Authors who wish to be recognized in this file should add themselves (or
# their employer, as appropriate).

4535992 <[email protected]>
BrotherSharp <[email protected]>
Dilomos <[email protected]>
Eadorin <[email protected]>
eclarke12 <[email protected]>
innocenti <[email protected]>
JJBocanegra <[email protected]>
klo <[email protected]>
Lyndsey Toft <[email protected]>
Michael Leahy <[email protected]>
Rughalt <[email protected]>
Sad <[email protected]>
sdenec <[email protected]>
Wojciech "Forien" Szulc <[email protected]>
xdy <[email protected]>
Fallayn <[email protected]>
46 changes: 46 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## Contribution Etiquette
Open Source projects function most efficiently when everyone communicates well with each other. Here are some suggested practices that will let everyone else work alongside you comfortably:

### **Did you find a bug? Do you want to suggest an enhancement?**

* **Ensure your contribution is novel** by searching the [Issues](https://github.com/League-of-Foundry-Developers/foundryvtt-forien-quest-log/issues) page. Be sure to look through both open and closed issues, especially for enhancement suggestions as rejected suggestions will be closed.

* If applicable **use the appropriate issue templates** to automatically apply the relevant tag to the created issue. This allows issues to be quickly differentiated as bug reports, enhancement suggestions, or whatever else without a maintainer manually adding the tag to the issue. The bug report template will specify which information to add that will aid in reproducing the bug.

* Inconsequential fixes regarding typos, whitespace, etc. may not warrant an issue and can skip straight to the Pull Request.

### **Do you want to fix a currently existing issue?**

* Before working on an issue please **honor issue assignments** and ask to be assigned to the issue in a comment on the issue page. This allows everyone else to see that someone is working on the issue preventing any duplicate pull requests down the line. If someone is already assigned to the issue feel free to reach out to the assignee and inquire on the progress of that fix.

* While working on an issue **document your changes** by providing detailed commit messages and providing an overview of planned / current implementation / changes on the issue page.

* When you feel your fork adequately fixes an issue, **submit a pull request for review**! [Please indicate which issue is to be closed if the PR is merged](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) as well as giving a detailed overview of your changes.

* Please **limit the content of your pull requests to its linked issues**. If your pull request does anything additional you must first open an issue that your PR may close (see the below section).

### **Do you intend to add a new feature or change an existing one?**

* Please **open an issue** to generate feedback on the change first. The maintainers reserve the right to reject changes / additions that they do not want to maintain, so be sure that the maintainers are on the same page as you to avoid wasted work!

* Now that an issue covers the changes you wanted to make refer to the above section for implementing the changes.

### **Do you want to submit/update a translation?**

* **Submit a pull request** with your new / updated JSON file in the [lang folder](https://github.com/League-of-Foundry-Developers/foundryvtt-forien-quest-log/tree/master/lang).

* Be sure that the JSON file is either completely flat or completely nested.

* If your localization does not include translations for any strings please indicate as much in the [lang / missing folder](https://github.com/League-of-Foundry-Developers/foundryvtt-forien-quest-log/tree/master/lang/missing).

### **Do you want to contribute documentation?**

* Please **follow the above guidelines** regarding opening issues and submitting pull requests. Some documentation issues may be broader and ongoing, in which case you may want to contribute to assignee's forks first. Any smaller changes should still open a detailed issue and submit a detailed pull request that [closes that issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).

### **Do you have questions about the source code?**

* **Join the [TyphonJS Discord](https://discord.gg/mnbgN8f)** and direct questions to the appropriate channel (#forien-quest-log).

* Please **do not directly contact maintainers** with questions; if you have a question other people might as well, so discussions should take place in public forums where others can see and learn from it as well.

Thank you for your interest in contributing to Forien's Quest Log! :heart:
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020-2021 Wojciech "Forien" Szulc, AUTHORS

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 6b71a83

Please sign in to comment.