forked from Forien/foundryvtt-forien-copy-environment
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from League-of-Foundry-Developers/player-settings
Add player settings support
- Loading branch information
Showing
18 changed files
with
695 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# Top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
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 styles/ scripts/ templates/ languages/ | ||
|
||
# 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 }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ node_modules/ | |
foundry.js | ||
package.json | ||
/changelog.html | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"forien-copy-environment": { | ||
"settings": { | ||
"player-settings": { | ||
"Name": "Player Settings", | ||
"Label": "Import / Export Player Settings", | ||
"Hint": "Import and Export your player settings, based on player Names across worlds." | ||
}, | ||
"world": { | ||
"Name": "World Settings", | ||
"Label": "Import / Export World Settings", | ||
"Hint": "Import and Export your world settings, including modules." | ||
} | ||
}, | ||
"forms": { | ||
"world": { | ||
"title": "World Settings", | ||
"environment": { | ||
"tabTitle": "Environment", | ||
"download": "Download", | ||
"copy": "Copy to clipboard", | ||
"copyIntro": "Copy environment to clipboard", | ||
"intro": "Export world environment.", | ||
"exportIntro": "Export environment.json", | ||
"importIntro": "There is no import of the environment settings file as it is informational only. If you wish to import the modules you can do so by importing the World Settings." | ||
}, | ||
"settings": { | ||
"tabTitle": "Settings", | ||
"download": "Download", | ||
"intro": "Export world settings, including which modules are enabled/disabled.", | ||
"exportIntro": "Export settings.json", | ||
"importIntro": "Import settings.json" | ||
} | ||
}, | ||
"player-settings": { | ||
"title": "Player Settings", | ||
"import": { | ||
"tabTitle": "Import", | ||
"save": "Import player settings", | ||
"playerList": "Import settings for the following players:", | ||
"existing": "Import an existing Export:", | ||
"property": "Property", | ||
"newValue": "New Value", | ||
"currentValue": "Current Value", | ||
"notFound": "The following users in the import file do not exist in this world and will be skipped." | ||
}, | ||
"export": { | ||
"tabTitle": "Export", | ||
"save": "Export player settings", | ||
"playerList": "Export settings for the following players:" | ||
}, | ||
"updateSuccess": "Updated player settings for: " | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,44 @@ | ||
{ | ||
"name": "forien-copy-environment", | ||
"title": "Forien's Copy Environment", | ||
"description": "Allows for copying TXT/JSON list of system/modules and versions, and gives ability to export/import game settings", | ||
"description": "Allows for copying TXT/JSON list of system/modules and versions, and gives ability to export/import game and player settings", | ||
"version": "2.0.0", | ||
"library": "false", | ||
"manifestPlusVersion": "1.0.0", | ||
"minimumCoreVersion": "0.6.0", | ||
"compatibleCoreVersion": "0.8.0", | ||
"author": "Forien — Forien#2130", | ||
"authors": [ | ||
{ | ||
"name": "Forien", | ||
"url": "https://www.patreon.com/forien" | ||
}, | ||
{ | ||
"name": "The League of Extraordinary FVTT Developers", | ||
"url": "https://github.com/League-of-Foundry-Developers" | ||
}, | ||
{ | ||
"name": "Blair McMillan", | ||
"url": "https://github.com/sneat", | ||
"discord": "blair#9056" | ||
} | ||
], | ||
"version": "1.1.1", | ||
"minimumCoreVersion": "0.6.0", | ||
"compatibleCoreVersion": "0.7.1", | ||
"url": "https://github.com/Forien/foundryvtt-forien-copy-environment", | ||
"manifest": "https://raw.githubusercontent.com/Forien/foundryvtt-forien-copy-environment/master/module.json", | ||
"download": "https://github.com/Forien/foundryvtt-forien-copy-environment/releases/download/v1.1.1/v1.1.1.zip", | ||
"readme": "https://github.com/Forien/foundryvtt-forien-copy-environment/blob/v1.1.1/README.md", | ||
"bugs": "https://github.com/Forien/foundryvtt-forien-copy-environment/issues", | ||
"esmodules": [ | ||
"./modules/init.js" | ||
"/scripts/module.js" | ||
], | ||
"styles": [ | ||
"/styles/module.css" | ||
], | ||
"languages": [ | ||
{ | ||
"lang": "en", | ||
"name": "English", | ||
"path": "languages/en.json" | ||
} | ||
], | ||
"scripts": [ | ||
"./scripts/prompt.js" | ||
] | ||
"url": "This is auto replaced", | ||
"manifest": "This is auto replaced", | ||
"download": "This is auto replaced", | ||
"bugs": "https://github.com/League-of-Foundry-Developers/foundryvtt-forien-copy-environment/issues", | ||
"allowBugReporter": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export const name = 'forien-copy-environment'; | ||
|
||
export const templates = { | ||
playerSettings: `modules/${name}/templates/player-settings.html`, | ||
worldSettings: `modules/${name}/templates/world-settings.html`, | ||
}; | ||
|
||
export function log(force, ...args) { | ||
try { | ||
if (typeof force !== 'boolean') { | ||
console.warn('Copy Environment | Invalid log usage. Expected "log(force, ...args)" as boolean but got', force); | ||
} | ||
|
||
const isDebugging = window.DEV?.getPackageDebugValue(name); | ||
|
||
if (force || isDebugging) { | ||
console.log('Copy Environment |', ...args); | ||
} | ||
} catch (e) {} | ||
} |
Oops, something went wrong.