-
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.
- Loading branch information
Showing
35 changed files
with
6,622 additions
and
36 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
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
35 changes: 35 additions & 0 deletions
35
j4/pkg_aggpxtrack/src/media/plg_fields_aggpxtrack/layerstree/.eslintrc
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,35 @@ | ||
{ | ||
"globals": { | ||
"define": true, | ||
"module": true, | ||
"L": true | ||
}, | ||
"plugins": [ | ||
"html" | ||
], | ||
"settings": { | ||
"html/indent": "space", | ||
"html/report-bad-indent": 2 | ||
}, | ||
"rules": { | ||
"camelcase": "error", | ||
"comma-spacing": ["error", {"after": true}], | ||
"comma-style": "error", | ||
"indent": "error", | ||
"key-spacing": "error", | ||
"keyword-spacing": "error", | ||
"no-console": "error", | ||
"no-constant-condition": "off", | ||
"no-lonely-if": "error", | ||
"no-multi-spaces": "error", | ||
"no-shadow": "off", | ||
"no-trailing-spaces": "error", | ||
"no-underscore-dangle": "off", | ||
"object-curly-spacing": "error", | ||
"quotes": ["error", "single", "avoid-escape"], | ||
"space-before-blocks": "error", | ||
"space-before-function-paren": ["error", "never"], | ||
"space-in-parens": "error", | ||
"strict": "off" | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
j4/pkg_aggpxtrack/src/media/plg_fields_aggpxtrack/layerstree/.github/workflows/main.yml
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,52 @@ | ||
name: CI | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [ 14.x ] | ||
working-directory: [ '.', './test-types' ] | ||
|
||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules-${{ matrix.working-directory }} | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install dependencies | ||
run: npm ci | ||
working-directory: ${{ matrix.working-directory }} | ||
|
||
- name: Run tests | ||
run: npm run test | ||
working-directory: ${{ matrix.working-directory }} | ||
timeout-minutes: 2 |
29 changes: 29 additions & 0 deletions
29
...g_aggpxtrack/src/media/plg_fields_aggpxtrack/layerstree/.github/workflows/npm-publish.yml
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,29 @@ | ||
name: npm-publish | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
npm-publish: | ||
name: npm-publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Publish if version has been updated | ||
uses: pascalgn/[email protected] | ||
with: # All of theses inputs are optional | ||
tag_name: "v%s" | ||
tag_message: "v%s" | ||
create_tag: "true" | ||
commit_pattern: "^Release (\\S+)" | ||
workspace: "." | ||
publish_command: "yarn" | ||
publish_args: "--non-interactive" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # You need to set this in your repo settings |
7 changes: 7 additions & 0 deletions
7
j4/pkg_aggpxtrack/src/media/plg_fields_aggpxtrack/layerstree/.npmignore
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,7 @@ | ||
.github | ||
.travis.yml | ||
.vscode | ||
bower.json | ||
examples | ||
test | ||
test-types |
61 changes: 61 additions & 0 deletions
61
j4/pkg_aggpxtrack/src/media/plg_fields_aggpxtrack/layerstree/L.Control.Layers.Tree.css
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,61 @@ | ||
.leaflet-control-layers-toggle.leaflet-layerstree-named-toggle { | ||
margin: 2px 5px; | ||
width: auto; | ||
height: auto; | ||
background-image: none; | ||
} | ||
|
||
.leaflet-layerstree-node { | ||
} | ||
|
||
.leaflet-layerstree-header input{ | ||
margin-left: 0px; | ||
} | ||
|
||
|
||
.leaflet-layerstree-header { | ||
} | ||
|
||
.leaflet-layerstree-header-pointer { | ||
cursor: pointer; | ||
} | ||
|
||
.leaflet-layerstree-header label { | ||
display: inline-block; | ||
cursor: pointer; | ||
} | ||
|
||
.leaflet-layerstree-header-label { | ||
} | ||
|
||
.leaflet-layerstree-header-name { | ||
} | ||
|
||
.leaflet-layerstree-header-space { | ||
} | ||
|
||
.leaflet-layerstree-children { | ||
padding-left: 10px; | ||
} | ||
|
||
.leaflet-layerstree-children-nopad { | ||
padding-left: 0px; | ||
} | ||
|
||
.leaflet-layerstree-closed { | ||
} | ||
|
||
.leaflet-layerstree-opened { | ||
} | ||
|
||
.leaflet-layerstree-hide { | ||
display: none; | ||
} | ||
|
||
.leaflet-layerstree-nevershow { | ||
display: none; | ||
} | ||
|
||
.leaflet-layerstree-expand-collapse { | ||
cursor: pointer; | ||
} |
Oops, something went wrong.