Compare commits
31 Commits
70d8762768
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29c564380d
|
||
|
|
a8d01fd9bf
|
||
|
|
402c6da5df
|
||
|
|
f9fefaf404
|
||
|
|
fa3c98d2b7
|
||
|
|
69970fc5b6
|
||
|
|
95d74f841a
|
||
|
|
e62d45a936
|
||
|
|
6e16d82d05
|
||
|
|
0ca0dab066
|
||
|
|
5ce7d937e8
|
||
|
|
973a06e0b5
|
||
|
|
25716a3cdb
|
||
|
|
903695dc95
|
||
|
|
6b7c8adc47
|
||
|
|
f274f6f237
|
||
|
|
09c2a51e1e
|
||
|
|
70778f0e4f
|
||
|
|
aff154c514
|
||
|
|
e8dc220e8c
|
||
|
|
47240cc1b9
|
||
|
|
81ccfca6e3
|
||
|
|
fca0144f01
|
||
|
|
86a11a92c2
|
||
|
|
8f3bd53a48
|
||
|
|
8c28884fcb
|
||
|
|
72558ca3b7
|
||
|
|
c18dc98d8e
|
||
|
|
46b9c08221
|
||
|
|
29ace6cc3f
|
||
|
|
6bef9a2030
|
50
.gitea/workflows/release-on-develop.yml
Normal file
50
.gitea/workflows/release-on-develop.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
name: On-Site VTT - Develop
|
||||
run-name: Run on ${{ github.ref }}
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
build:
|
||||
steps:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.20'
|
||||
- name: Get current date
|
||||
id: date
|
||||
run: echo "::set-output name=date::$(date +'%Y-%m-%d_%H-%M-%S')"
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Replace version in module.json
|
||||
uses: jacobtomlinson/gha-find-replace@v3
|
||||
with:
|
||||
find: "{{version}}"
|
||||
replace: dev-${{ steps.date.outputs.date }}
|
||||
include: "on-site-vtt/module.json"
|
||||
- name: Replace branch in module.json
|
||||
uses: jacobtomlinson/gha-find-replace@v3
|
||||
with:
|
||||
find: "{{branch}}"
|
||||
replace: ${{ github.ref_name }}
|
||||
include: "on-site-vtt/module.json"
|
||||
- name: Pack archive
|
||||
uses: montudor/action-zip@v1
|
||||
with:
|
||||
args: zip -r on-site-vtt.zip on-site-vtt
|
||||
- name: publish release
|
||||
uses: https://gitea.aweleczka.de/actions/release-action@main
|
||||
with:
|
||||
title: dev-${{ steps.date.outputs.date }}
|
||||
tag_name: dev-${{ steps.date.outputs.date }}
|
||||
files: |-
|
||||
"LICENSE.txt"
|
||||
"README.md"
|
||||
"on-site-vtt/module.json"
|
||||
"on-site-vtt.zip"
|
||||
pre_release: true
|
||||
api_key: "${{secrets.RELEASE_TOKEN}}"
|
||||
47
.gitea/workflows/release-on-tag.yml
Normal file
47
.gitea/workflows/release-on-tag.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
name: On-Site VTT - Release
|
||||
run-name: Run for tag ${{ github.ref_name }} on ${{ github.ref }}
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
steps:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.20'
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Replace version in module.json
|
||||
uses: jacobtomlinson/gha-find-replace@v3
|
||||
with:
|
||||
find: "{{version}}"
|
||||
replace: ${{ github.ref_name }}
|
||||
include: "on-site-vtt/module.json"
|
||||
- name: Replace branch in module.json
|
||||
uses: jacobtomlinson/gha-find-replace@v3
|
||||
with:
|
||||
find: "{{branch}}"
|
||||
replace: ${{ github.ref }}
|
||||
include: "on-site-vtt/module.json"
|
||||
- name: Pack archive
|
||||
uses: montudor/action-zip@v1
|
||||
with:
|
||||
args: zip -r on-site-vtt.zip on-site-vtt
|
||||
- name: publish release
|
||||
uses: https://gitea.aweleczka.de/actions/release-action@main
|
||||
with:
|
||||
title: dev-${{ steps.date.outputs.date }}
|
||||
tag_name: dev-${{ steps.date.outputs.date }}
|
||||
files: |-
|
||||
"LICENSE.txt"
|
||||
"README.md"
|
||||
"on-site-vtt/module.json"
|
||||
"on-site-vtt.zip"
|
||||
pre_release: true
|
||||
api_key: "${{secrets.RELEASE_TOKEN}}"
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -23,7 +23,7 @@
|
||||
.LSOverride
|
||||
|
||||
# Icon must end with two \r
|
||||
Icon
|
||||
Icon
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
21
.pre-commit-config.yaml
Normal file
21
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
## See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v3.2.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
- id: check-json
|
||||
- id: check-byte-order-marker
|
||||
- id: end-of-file-fixer
|
||||
- id: mixed-line-ending
|
||||
- id: detect-private-key
|
||||
- repo: https://github.com/compilerla/conventional-pre-commit
|
||||
rev: v3.0.0
|
||||
hooks:
|
||||
- id: conventional-pre-commit
|
||||
stages: [commit-msg]
|
||||
args: [feat, fix, chore, test]
|
||||
@@ -18,4 +18,4 @@ 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.
|
||||
SOFTWARE.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"on-site-vtt.title": "On-Site VTT",
|
||||
"on-site-vtt.rotate": "Ansicht drehen"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"on-site-vtt.title": "On-Site VTT",
|
||||
"on-site-vtt.rotate": "Rotate view"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,43 +1,43 @@
|
||||
{
|
||||
"id": "on-site-vtt",
|
||||
"title": "On-Site VTT - Virtual Tabletop, now with less virtual",
|
||||
"description": "A simple module adding functionality to improve playability for multiple players on a single screen/digital map.",
|
||||
"version": "0.0.8",
|
||||
"compatibility": {
|
||||
"minimum": "10",
|
||||
"verified": "11"
|
||||
"id": "on-site-vtt",
|
||||
"title": "On-Site VTT - Virtual Tabletop, now with less virtual",
|
||||
"description": "A simple module adding functionality to improve playability for multiple players on a single screen/digital map.",
|
||||
"version": "{{version}}",
|
||||
"compatibility": {
|
||||
"minimum": "10",
|
||||
"verified": "11"
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alexander Weleczka",
|
||||
"url": "https://aweleczka.de/"
|
||||
}
|
||||
],
|
||||
"languages": [
|
||||
{
|
||||
"lang": "en",
|
||||
"name": "English",
|
||||
"path": "./lang/en.json"
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alexander Weleczka",
|
||||
"url": "https://aweleczka.de/"
|
||||
}
|
||||
],
|
||||
"languages": [
|
||||
{
|
||||
"lang": "en",
|
||||
"name": "English",
|
||||
"path": "./lang/en.json"
|
||||
},
|
||||
{
|
||||
"lang": "de",
|
||||
"name": "Deutsch",
|
||||
"path": "./lang/de.json"
|
||||
}
|
||||
],
|
||||
"url": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT",
|
||||
"manifest": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/develop/on-site-vtt/module.json",
|
||||
"download": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/releases/download/0.0.8/on-site-vtt_0.0.8.zip",
|
||||
"bugs": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/issues",
|
||||
"readme": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/develop/README.md",
|
||||
"license" :"https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/develop/LICENSE.txt",
|
||||
"flags": {
|
||||
"allowBugReporter": true
|
||||
},
|
||||
"styles": [
|
||||
"./styles/on-site-vtt.css"
|
||||
],
|
||||
"esmodules": [
|
||||
"./scripts/on-site-vtt.js"
|
||||
]
|
||||
}
|
||||
{
|
||||
"lang": "de",
|
||||
"name": "Deutsch",
|
||||
"path": "./lang/de.json"
|
||||
}
|
||||
],
|
||||
"url": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT",
|
||||
"bugs": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/issues",
|
||||
"manifest": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/releases/download/{{version}}/module.json",
|
||||
"download": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/releases/download/{{version}}/on-site-vtt.zip",
|
||||
"readme": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/releases/download/{{version}}/README.md",
|
||||
"license": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/releases/download/{{version}}/LICENSE.txt",
|
||||
"flags": {
|
||||
"allowBugReporter": true
|
||||
},
|
||||
"styles": [
|
||||
"./styles/on-site-vtt.css"
|
||||
],
|
||||
"esmodules": [
|
||||
"./scripts/on-site-vtt.js"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
function inti() {
|
||||
function init() {
|
||||
if (game.modules.get("on-site-vtt")?.active) {
|
||||
console.log("on-site-vtt | Enabled");
|
||||
|
||||
@@ -23,6 +23,9 @@ function inti() {
|
||||
}
|
||||
}
|
||||
|
||||
function ready() {
|
||||
console.log("on-site-vtt | Ready");
|
||||
}
|
||||
|
||||
function rotateView() {
|
||||
if (document.getElementsByTagName("body")[0].className.includes("nsvRotate")) {
|
||||
@@ -34,4 +37,5 @@ function rotateView() {
|
||||
}
|
||||
}
|
||||
|
||||
Hooks.on("init", init);
|
||||
Hooks.on("init", init);
|
||||
Hooks.on("ready", ready);
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
.nsvRotate {
|
||||
rotate: 180deg;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user