Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize development environment and split source files #198

Merged
merged 63 commits into from
May 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
6c258c7
Update packages
AmoebeLabs May 4, 2023
c56f665
Create devcontainer.json
AmoebeLabs May 4, 2023
ae9ad17
Create package.json
AmoebeLabs May 4, 2023
4597312
Create package-lock.json
AmoebeLabs May 4, 2023
554b8a2
Merge branch 'devcontainer' of https://github.com/AmoebeLabs/swiss-ar…
May 4, 2023
b304bf3
Add SAK to srcjs
May 4, 2023
289ec43
Update config
AmoebeLabs May 4, 2023
fd92419
Update package
AmoebeLabs May 4, 2023
427469d
Create .eslintrc.yaml
AmoebeLabs May 4, 2023
53ea87a
Update devcontainer test
AmoebeLabs May 4, 2023
18440c7
Update before first split of constants
AmoebeLabs May 5, 2023
3e297f6
Update before first split of constants
AmoebeLabs May 5, 2023
5e68538
Split of basetool, const, merge, templates and utils
AmoebeLabs May 5, 2023
3235660
Split CircularSliderTool
AmoebeLabs May 5, 2023
0973ca0
Split CircleTool, LineTool and RangeSliderTool
AmoebeLabs May 5, 2023
2303950
Split RegPolyTool, SwitchTool and UserSVGTool
AmoebeLabs May 5, 2023
6514923
Split EllipseTool, RectangleTool, RectangleToolEx
AmoebeLabs May 5, 2023
379df16
Split BadgeTool and EntityStateTool
AmoebeLabs May 5, 2023
ef824c0
Update
AmoebeLabs May 5, 2023
1764d51
Split EntityAreaTool, EntityNameTool and TextTool
AmoebeLabs May 5, 2023
f1eb952
Split HorseshoeTool, SegArcTool, BarChartTool
AmoebeLabs May 5, 2023
0a23f12
Split ToolSet and EntityIconTool
AmoebeLabs May 5, 2023
8f456da
Rename SAK to main.js
AmoebeLabs May 5, 2023
710f2c0
Update rollup and eslintrc to ignore distjs
AmoebeLabs May 5, 2023
ecc1dd2
Rename basetool.js to basetool.js
AmoebeLabs May 5, 2023
8afede9
Github Action: Auto Minified JS and CSS files
AmoebeLabs May 5, 2023
d167161
Move all files from srcjs to src folder
AmoebeLabs May 5, 2023
fe490b7
Github Action: Auto Minified JS and CSS files
AmoebeLabs May 5, 2023
3e53a3c
Fix build from src and output to dist
AmoebeLabs May 5, 2023
97db19c
Merge branch 'devcontainer' of https://github.com/AmoebeLabs/swiss-ar…
AmoebeLabs May 5, 2023
6f7107f
Github Action: Auto Minified JS and CSS files
AmoebeLabs May 5, 2023
c1e6a72
Delete distjs and srcjs folders
AmoebeLabs May 5, 2023
f303e8d
Merge branch 'devcontainer' of https://github.com/AmoebeLabs/swiss-ar…
AmoebeLabs May 5, 2023
ccc475d
Rename files using kebab style
AmoebeLabs May 5, 2023
1944d90
Rename files using kebab style
AmoebeLabs May 5, 2023
4c58f8e
Github Action: Auto Minified JS and CSS files
AmoebeLabs May 5, 2023
9dc8493
Rename rectangle-ex-tool
AmoebeLabs May 5, 2023
26c7ebe
Rename rectangle-ex-tool
AmoebeLabs May 5, 2023
cc9ac50
Merge branch 'devcontainer' of https://github.com/AmoebeLabs/swiss-ar…
AmoebeLabs May 5, 2023
b2fd659
Github Action: Auto Minified JS and CSS files
AmoebeLabs May 5, 2023
52db736
Update versions in package.json
AmoebeLabs May 5, 2023
8554739
Merge branch 'devcontainer' of https://github.com/AmoebeLabs/swiss-ar…
AmoebeLabs May 5, 2023
93a8d9d
Fix eslint errors/warnings
AmoebeLabs May 6, 2023
383504c
Github Action: Auto Minified JS and CSS files
AmoebeLabs May 6, 2023
dd0038e
Delete files made by Minifier Action
AmoebeLabs May 6, 2023
ef1c1ee
Delete badge-tool.js
AmoebeLabs May 6, 2023
dca1a75
Remove Github Action files
AmoebeLabs May 6, 2023
f8388b6
Merge branch 'devcontainer' of https://github.com/AmoebeLabs/swiss-ar…
AmoebeLabs May 6, 2023
540f5bb
Fix decimals in _BuildState. Use isNaN again
AmoebeLabs May 6, 2023
804a338
Remove console.log() used for debugging
AmoebeLabs May 6, 2023
547611b
Update packages used
AmoebeLabs May 7, 2023
25cb505
Delete swiss-army-knife-card-bundle.js.map
AmoebeLabs May 7, 2023
56e1275
Ignore *.js.map files
AmoebeLabs May 7, 2023
91f19a2
Ignore THIS_IS_UNDEFINED warning
AmoebeLabs May 7, 2023
5c897c5
Upgrade to ecmaVersion 2022 parser
AmoebeLabs May 7, 2023
bbb2501
Move colorstuff to static Colors class in colors.js
AmoebeLabs May 7, 2023
2be6a3a
Shim -ua- and unavailable states
AmoebeLabs May 7, 2023
d5ba086
Delete obsolete README.md
AmoebeLabs May 7, 2023
c5625dd
Update rule
AmoebeLabs May 7, 2023
16b201e
Update eslint config
AmoebeLabs May 11, 2023
6330b73
Update eslint config
AmoebeLabs May 11, 2023
7827f0a
Update eslint config
AmoebeLabs May 11, 2023
271a46d
Merge branch 'devcontainer' of https://github.com/AmoebeLabs/swiss-ar…
AmoebeLabs May 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "Swiss Army Knife Development",

// Open the sub-folder with the source code
"workspaceFolder": "/workspaces/swiss-army-knife-card",

// See https://aka.ms/vscode-remote/devcontainer.json for format details.
"remoteUser": "vscode",
"appPort": ["6000:6000", "9123:8123"],
// "postCreateCommand": "yarn install && sudo container install",
// "runArgs": ["-v", "${localWorkspaceFolder}/.devcontainer/www:/config/www"],
"customizations/vscode/extensions": [
"github.vscode-pull-request-github",
"eamodio.gitlens",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bierner.lit-html",
"runem.lit-plugin",
"davidanson.vscode-markdownlint",
"redhat.vscode-yaml",
"msjsdiag.debugger-for-chrome",
"yzhang.markdown-all-in-one"
],
"customizations/vscode/settings": {
"files.eol": "\n",
"editor.tabSize": 2,
"terminal.integrated.shell.linux": "/bin/bash",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"markdown.extension.toc.githubCompatibility": true,
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/.hg/store/**": true,
"**/.rpt2_cache/**": true
}
}
}
42 changes: 42 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "Swiss Army Knife Development",

// Open the sub-folder with the source code
"workspaceFolder": "/workspaces/swiss-army-knife-card",

// See https://aka.ms/vscode-remote/devcontainer.json for format details.
"remoteUser": "vscode",
"appPort": ["5000:5000", "9123:8123"],
// "postCreateCommand": "yarn install && sudo container install",
// "runArgs": ["-v", "${localWorkspaceFolder}/.devcontainer/www:/config/www"],
"customizations/vscode/extensions": [
"github.vscode-pull-request-github",
"eamodio.gitlens",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bierner.lit-html",
"runem.lit-plugin",
"davidanson.vscode-markdownlint",
"redhat.vscode-yaml",
"msjsdiag.debugger-for-chrome",
"yzhang.markdown-all-in-one"
],
"customizations/vscode/settings": {
"files.eol": "\n",
"editor.tabSize": 2,
"terminal.integrated.shell.linux": "/bin/bash",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"markdown.extension.toc.githubCompatibility": true,
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/.hg/store/**": true,
"**/.rpt2_cache/**": true
}
}
}
99 changes: 99 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
extends: airbnb-base
parserOptions:
ecmaVersion: 2022
sourceType: module
ignorePatterns:
- /distjs/*
- /dist/*
- /src/swiss-army-knife-card.js
rules:
no-else-return: 0
no-underscore-dangle: 0
nonblock-statement-body-position: 0
# curly checks for all {} after if for instance
curly: 0
no-return-assign: 0
consistent-return: 0
no-mixed-operators: 0
class-methods-use-this: 0
no-nested-ternary: 0
camelcase: 0
# Added for convenience to check eslint...
# Settings handled:
no-param-reassign: 0
max-len:
- warn
- code: 220
ignoreComments: true
eqeqeq: 1
brace-style: 1
# - Prevent warnings in logging and multiple params on one line
function-call-argument-newline: 0
function-paren-newline: 0
# - Allow i++ / i-- in for loops
no-plusplus:
- warn
- allowForLoopAfterthoughts: true
no-irregular-whitespace: 0
no-bitwise:
- warn
- allow:
- "~"
# - Disable .js import warnings
import/extensions: 0
# - Allow the use of console.()
no-console: 0
# - Allow for calling .hasOwnProperty for instance directly
no-prototype-builtins: 0
# - Allow as-needed function names
func-names:
- warn
- as-needed
# - Just let me index arrays and get data from them
prefer-destructuring: 0
# - For now, keep using things like isNaN() as Number.isNan() is incompatible.
# Ignore the eslint advice to replace them. As a result everything crashes...
no-restricted-globals: 0
# Ignore identiation for now
indent: 0
no-unreachable: 0
# THINGS THAT MUST BE HANDLED LATER...
# - This is a thing from the segmented-arc, the only file with errors/warnings!
# - Status as of 2023.05.06 13:00
block-scoped-var: 0
vars-on-top: 0
no-var: 0
no-redeclare: 0
no-setter-return: 0
no-multi-assign: 0
no-empty: 0
no-unused-vars: 0
prefer-const: 0
no-lonely-if: 0
no-shadow: 0
no-loop-func: 0
# Settings handled and NOT occuring anymore!
no-undef: 2
no-use-before-define: 1
no-case-declarations: 1
no-inner-declarations: 1
array-callback-return: 1
max-classes-per-file: 1
no-new-func: 1
no-constant-condition: 1
default-case: 1
default-case-last: 1
operator-assignment: 1
no-sequences: 1
no-restricted-syntax: 1
no-unused-expressions: 1
no-useless-escape: 1
import/no-unresolved: 1
no-template-curly-in-string: 1
# Settings disabled for now, until handled

globals:
browser: true
window: true
Event: true
customElements: true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ swiss-army-knife-card.js-from-src
swiss-army-knife-card.js-from-src2
2022.07.16 swiss-army-knife-card.js
2022.07.16 swiss-army-knife-card.js
node_modules
*.js.map


Loading