Skip to content

Commit 2b8ecf4

Browse files
authored
Initialize dependabot/npm_and_yarn/vite-4.5.5
0 parents  commit 2b8ecf4

38 files changed

+25415
-0
lines changed

.env

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# Log level (0 = none, 1 = info, 2 = verbose)
3+
LOG_LEVEL=1
4+
5+
# Tileset optimization
6+
TILESET_OPTIMIZATION=false
7+
# Tileset optimization quality (0.0 - 1.0)
8+
TILESET_OPTIMIZATION_QUALITY_MIN=0.9
9+
TILESET_OPTIMIZATION_QUALITY_MAX=1.0
10+
11+
# Here you can set your upload strategy. Simply comment the option you don't want to use.
12+
# Learn more by reading the 'Upload your map' section in the README.
13+
# UPLOAD_MODE=MAP_STORAGE
14+
UPLOAD_MODE=GH_PAGES
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Optimize map and deploy
2+
3+
on: [push]
4+
5+
permissions:
6+
contents: write
7+
pages: write
8+
actions: write
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: "18.x"
21+
registry-url: "https://registry.npmjs.org"
22+
23+
- name: "Install dependencies"
24+
run: npm install
25+
26+
- name: "Build scripts"
27+
run: npm run build
28+
29+
- name: Get API key from secrets
30+
env:
31+
MAP_STORAGE_API_KEY: ${{ secrets.MAP_STORAGE_API_KEY }}
32+
run: echo "MAP_STORAGE_API_KEY=${MAP_STORAGE_API_KEY}" >> $GITHUB_ENV
33+
34+
- name: Get Map storage URL from secrets
35+
env:
36+
MAP_STORAGE_URL: ${{ secrets.MAP_STORAGE_URL }}
37+
run: echo "MAP_STORAGE_URL=${MAP_STORAGE_URL}" >> $GITHUB_ENV
38+
39+
- name: Get Map storage directory from secrets
40+
env:
41+
DIRECTORY: ${{ secrets.DIRECTORY }}
42+
run: echo "DIRECTORY=${DIRECTORY}" >> $GITHUB_ENV
43+
44+
- name: Generate .env.secret
45+
run: echo "MAP_STORAGE_API_KEY=${{ secrets.MAP_STORAGE_API_KEY }}" > .env.secret
46+
47+
- name: Extract UPLOAD_MODE from .env
48+
run: echo "UPLOAD_MODE=$(grep '^[^#]*UPLOAD_MODE' .env | cut -d '=' -f2)" >> $GITHUB_ENV
49+
50+
- name: Deploy in MAP STORAGE
51+
if: ${{ env.UPLOAD_MODE == 'MAP_STORAGE' }}
52+
run: npm run upload-only
53+
54+
- name: Deploy on GITHUB PAGES
55+
if: ${{ env.UPLOAD_MODE == 'GH_PAGES' }}
56+
uses: JamesIves/github-pages-deploy-action@releases/v3
57+
with:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
BRANCH: gh-pages
60+
FOLDER: dist/
61+
BASE_BRANCH: master

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
.env.secret
26+
dist.zip

LICENSE.assets

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
ASSETS LICENSE
2+
3+
(Notice)
4+
Assets distributed with a map are subject to different licenses.
5+
The license attributed to each tileset can be found or have to be added in the "tilesetCopyright" property of each tileset in the map.
6+
In addition, you have to add a section below with the specific license of the asset you want to use.
7+
8+
9+
WORKADVENTURE SPECIFIC RESOURCES LICENSE
10+
11+
The User shall handle assets with the WorkAdventure specific resources license as follows:
12+
13+
1. These Assets may be used only in maps produced for WorkAdventure (SAAS or self-hosted version).
14+
15+
2. These Assets may be modified (colors or size changed, inverted, trimmed, etc.) only for purposes of use in maps produced for WorkAdventure (SAAS or self-hosted version).
16+
17+
3. These Assets or those modified pursuant to the previous item may undergo Distribution, etc. with maps produced for WorkAdventure. Furthermore, the User may not perform Distribution, etc. of individual Assets or those modified, or Distribution, etc. in combination with programs, etc. other than the map. However, the User may duplicate, transfer, publicly transmit, or enable transmission of personally-modified Assets to other Authorized Users free of charge.

LICENSE.code

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CODE LICENSE
2+
3+
4+
MIT License
5+
6+
Copyright (c) 2021 TheCodingMachine
7+
8+
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:
9+
10+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
11+
12+
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.

0 commit comments

Comments
 (0)