Skip to content

Commit

Permalink
Merge pull request #55 from ligangty/refactor
Browse files Browse the repository at this point in the history
Project structure: base skeleton for indy UI
  • Loading branch information
ligangty authored Nov 3, 2023
2 parents 88afbff + 08fa7dc commit a9cbb54
Show file tree
Hide file tree
Showing 76 changed files with 12,308 additions and 7,059 deletions.
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,11 @@
<exclude>**/MAVEN_ENV</exclude>
<exclude>.quinoa/**</exclude>
<exclude>**/.babel*</exclude>
<exclude>**/.eslint*</exclude>
</excludes>
<mapping>
<jsx>SLASHSTAR_STYLE</jsx>
<jsx>DOUBLESLASH_STYLE</jsx>
<js>DOUBLESLASH_STYLE</js>
</mapping>
</configuration>
</plugin>
Expand Down
7 changes: 4 additions & 3 deletions src/main/webui/.babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

{
"presets":[
"@babel/env",
"@babel/react"
]
"@babel/env",
"@babel/react"
],
"plugins": ["@babel/plugin-proposal-class-properties","@babel/plugin-transform-modules-commonjs"]
}
4 changes: 4 additions & 0 deletions src/main/webui/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/*.css
**/*.json
**/*.ico
**/index.html
298 changes: 298 additions & 0 deletions src/main/webui/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,298 @@
{
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2015,
"sourceType": "module",
"requireConfigFile": false
},
"plugins": [
"react"
],
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "16.0"
}
},
"rules": {
"accessor-pairs": 2,
"array-bracket-newline": 2,
"array-bracket-spacing": [
2,
"never"
],
"array-callback-return": 2,
"array-element-newline": 0,
"arrow-body-style": 2,
"arrow-parens": [
2,
"as-needed"
],
"arrow-spacing": 0,
"block-scoped-var": 2,
"block-spacing": 2,
"brace-style": [
2,
"1tbs"
],
"callback-return": 2,
"camelcase": 2,
"capitalized-comments": 0,
"class-methods-use-this": [2, { "exceptMethods": ["render"] }],
"comma-dangle": 0,
"comma-spacing": 0,
"comma-style": [
2,
"last"
],
"complexity": 2,
"computed-property-spacing": [
2,
"never"
],
"consistent-return": 2,
"consistent-this": 2,
"curly": 2,
"default-case": 2,
"dot-location": [
2,
"property"
],
"dot-notation": [
2,
{
"allowKeywords": true
}
],
"eol-last": 2,
"eqeqeq": 2,
"func-call-spacing": 2,
"func-name-matching": 2,
"func-names": 0,
"func-style": [
1,
"expression"
],
"function-paren-newline": 2,
"generator-star-spacing": 2,
"global-require": 0,
"guard-for-in": 2,
"handle-callback-err": 2,
"id-blacklist": 2,
"id-length": 0,
"id-match": 2,
"implicit-arrow-linebreak": [
2,
"beside"
],
"indent": 0,
"indent-legacy": 0,
"init-declarations": 2,
"jsx-quotes": 2,
"key-spacing": 2,
"keyword-spacing": 0,
"line-comment-position": 2,
"linebreak-style": [
2,
"unix"
],
"lines-around-comment": 2,
"lines-around-directive": 2,
"lines-between-class-members": 2,
"max-classes-per-file": 2,
"max-depth": 2,
"max-len": 0,
"max-lines": 1,
"max-lines-per-function": 0,
"max-nested-callbacks": 2,
"max-params": 0,
"max-statements": 0,
"max-statements-per-line": 2,
"multiline-comment-style": [
2,
"separate-lines"
],
"new-cap": 2,
"new-parens": 2,
"newline-after-var": 0,
"newline-before-return": 0,
"newline-per-chained-call": 2,
"no-alert": 2,
"no-array-constructor": 2,
"no-async-promise-executor": 2,
"no-await-in-loop": 2,
"no-bitwise": 2,
"no-buffer-constructor": 2,
"no-caller": 2,
"no-catch-shadow": 2,
"no-confusing-arrow": 2,
"no-console": 1,
"no-continue": 2,
"no-div-regex": 2,
"no-duplicate-imports": 2,
"no-else-return": 2,
"no-empty-function": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-extra-label": 2,
"no-extra-parens": 2,
"no-floating-decimal": 2,
"no-implicit-coercion": 2,
"no-implicit-globals": 2,
"no-implied-eval": 2,
"no-inline-comments": 2,
"no-invalid-this": 0,
"no-iterator": 2,
"no-label-var": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-lonely-if": 2,
"no-loop-func": 2,
"no-magic-numbers": 0,
"no-misleading-character-class": 2,
"no-mixed-operators": 1,
"no-mixed-requires": 2,
"no-multi-assign": 2,
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-multiple-empty-lines": 0,
"no-native-reassign": 2,
"no-negated-condition": 2,
"no-negated-in-lhs": 2,
"no-nested-ternary": 2,
"no-new": 2,
"no-new-func": 2,
"no-new-object": 2,
"no-new-require": 2,
"no-new-wrappers": 2,
"no-octal-escape": 2,
"no-param-reassign": 2,
"no-path-concat": 2,
"no-plusplus": 0,
"no-process-env": 2,
"no-process-exit": 2,
"no-proto": 2,
"no-prototype-builtins": 1,
"no-restricted-globals": 2,
"no-restricted-imports": 2,
"no-restricted-modules": 2,
"no-restricted-properties": 2,
"no-restricted-syntax": 2,
"no-return-assign": 2,
"no-return-await": 2,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-shadow": 2,
"no-shadow-restricted-names": 2,
"no-spaced-func": 2,
"no-sync": 2,
"no-tabs": 2,
"no-template-curly-in-string": 2,
"no-ternary": 0,
"no-throw-literal": 2,
"no-trailing-spaces": 2,
"no-undef-init": 2,
"no-undefined": 0,
"no-underscore-dangle": 2,
"no-unmodified-loop-condition": 2,
"no-unneeded-ternary": 2,
"no-unused-expressions": 2,
"no-unused-vars": 1,
"no-use-before-define": 2,
"no-useless-call": 2,
"no-useless-catch": 2,
"no-useless-computed-key": 2,
"no-useless-concat": 2,
"no-useless-constructor": 2,
"no-useless-rename": 2,
"no-useless-return": 2,
"no-var": 2,
"no-void": 2,
"no-warning-comments": 0,
"no-whitespace-before-property": 2,
"no-with": 2,
"nonblock-statement-body-position": 2,
"object-curly-newline": 2,
"object-curly-spacing": [
2,
"never"
],
"object-property-newline": 0,
"object-shorthand": 2,
"one-var": 0,
"one-var-declaration-per-line": 0,
"operator-assignment": 2,
"operator-linebreak": 0,
"padded-blocks": 0,
"padding-line-between-statements": 2,
"prefer-arrow-callback": 2,
"prefer-const": 0,
"prefer-destructuring": 0,
"prefer-numeric-literals": 2,
"prefer-object-spread": 2,
"prefer-promise-reject-errors": 2,
"prefer-reflect": 2,
"prefer-rest-params": 2,
"prefer-spread": 2,
"prefer-template": 0,
"quote-props": 0,
"quotes": 0,
"radix": 2,
"require-atomic-updates": 2,
"require-await": 2,
"require-jsdoc": 0,
"require-unicode-regexp": 2,
"rest-spread-spacing": 2,
"semi": 2,
"semi-spacing": 2,
"semi-style": [
2,
"last"
],
"sort-imports": 0,
"sort-keys": 0,
"sort-vars": 2,
"space-before-blocks": 0,
"space-before-function-paren": 0,
"space-in-parens": [
2,
"never"
],
"space-infix-ops": 0,
"space-unary-ops": 2,
"spaced-comment": [
2,
"always"
],
"strict": 2,
"switch-colon-spacing": 2,
"symbol-description": 2,
"template-tag-spacing": 2,
"unicode-bom": [
2,
"never"
],
"valid-jsdoc": 2,
"vars-on-top": 2,
"wrap-iife": 2,
"wrap-regex": 2,
"yield-star-spacing": 2,
"yoda": [
2,
"never"
]
}
}
5 changes: 5 additions & 0 deletions src/main/webui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build/*
node_modules/*
yarn-error.log
v8-compile-cache*
v8-compile-cache*/*
44 changes: 0 additions & 44 deletions src/main/webui/assets.js

This file was deleted.

Loading

0 comments on commit a9cbb54

Please sign in to comment.