Skip to content

Commit

Permalink
refactor: new UI
Browse files Browse the repository at this point in the history
  • Loading branch information
whes1015 committed Sep 23, 2023
1 parent 3395ae6 commit 11f5dcc
Show file tree
Hide file tree
Showing 35 changed files with 9,669 additions and 3,261 deletions.
68 changes: 68 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"extends": "eslint:recommended",
"env": {
"es6": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["require-sort"],
"rules": {
"require-sort/require-sort": "warn",
"arrow-body-style": "warn",
"arrow-spacing": ["warn", { "before": true, "after": true }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"curly": ["error", "multi", "consistent"],
"dot-location": ["error", "property"],
"handle-callback-err": "off",
"indent": ["warn", 2, { "SwitchCase": 1}],
"key-spacing": ["warn", {
"beforeColon": false,
"afterColon": true,
"mode": "strict",
"align": {
"beforeColon": true,
"afterColon": true,
"on": "colon"
}
}],
"keyword-spacing": "error",
"max-nested-callbacks": ["error", { "max": 4 }],
"max-statements-per-line": ["error", { "max": 2 }],
"no-console": "off",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-empty-function": "error",
"no-floating-decimal": "error",
"no-inline-comments": "error",
"no-irregular-whitespace": ["warn", { "skipTemplates": true }],
"no-lonely-if": "error",
"no-multi-spaces": "warn",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
"no-shadow": ["error", { "allow": ["err", "resolve", "reject"] }],
"no-trailing-spaces": ["warn"],
"no-unused-vars": ["off"],
"no-var": "error",
"object-curly-spacing": ["warn", "always"],
"prefer-const": "error",
"prefer-arrow-callback": "error",
"quotes": ["warn", "double"],
"require-await": "error",
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "error",
"yoda": "error"
}
}
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build

on:
push:
branches: [ Release ]
pull_request:
branches: [ Release ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20.x"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/*
199 changes: 122 additions & 77 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,85 +1,130 @@
# Built application files
*.apk
*.aar
*.ap_
*.aab
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Files for the ART/Dalvik VM
*.dex
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Java class files
*.class
# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Generated files
bin/
gen/
out/
# Uncomment the following line in case you need and you don't have the release build type files in your app
# release/
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Gradle files
.gradle/
build/
# Coverage directory used by tools like istanbul
coverage
*.lcov

# Local configuration file (sdk path, etc)
local.properties
# nyc test coverage
.nyc_output

# Proguard folder generated by Eclipse
proguard/
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Log Files
*.log
# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# IntelliJ
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
# Android Studio 3 in .gitignore file.
.idea/caches
.idea/modules.xml
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
.idea/navEditor.xml

# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
#*.jks
#*.keystore

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
.cxx/

# Google Services (e.g. APIs or Firebase)
# google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json

# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

# Version control
vcs.xml

# lint
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
77 changes: 77 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"extends": ["stylelint-config-standard"],
"plugins": [
"stylelint-order"
],
"rules": {
"order/order": [
"custom-properties",
"declarations"
],
"order/properties-order": [
"all",
"content",
"display",
"flex",
"flex-basis",
"flex-grow",
"align-items",
"justtify-contents",
"grid-template-column",
"grid-template-row",
"flex-direction",
"gap",
"gap-column",
"gap-row",
"position",
"inset",
"top",
"left",
"bottom",
"right",
"height",
"width",
"aspect-ratio",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
"border",
"border-top",
"border-right",
"border-bottom",
"border-left",
"border-radius",
"border-top-left-radius",
"border-top-right-radius",
"border-bottom-right-radius",
"border-bottom-left-radius",
"opacity",
"color",
"background-color",
"outline",
"text-align",
"text-decoration",
"font-family",
"font-weight",
"font-size",
"font-variant-numeric",
"line-height",
"white-space",
"overflow",
"overflow-x",
"overflow-y",
"cursor",
"pointer-event",
"isolation",
"z-index",
"transition"
]
}
}
Loading

0 comments on commit 11f5dcc

Please sign in to comment.