Compare commits

..

No commits in common. "0d027179117c45604146b1ba280a3708649b03c4" and "1631eeedf086a80b36a5a050ecedffabbe8360e8" have entirely different histories.

13 changed files with 6 additions and 209 deletions

View file

@ -1 +0,0 @@
{ "presets": ["@babel/react"] }

View file

@ -1,5 +0,0 @@
.git/
data/
node_modules/
public/index.js
k8s/

View file

@ -1,171 +0,0 @@
{
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"globals": {
"io": "readonly"
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2021,
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"plugins": ["node", "react", "security"],
"extends": ["eslint:recommended", "plugin:node/recommended", "plugin:react/recommended", "plugin:security/recommended"],
"rules": {
"node/exports-style": ["error", "module.exports"],
"node/no-extraneous-import": ["error", {
"allowModules": ["prop-types"]
}],
"node/no-unpublished-require": 0,
"node/no-unpublished-import": 0,
"node/no-unsupported-features/es-syntax": 0,
"comma-dangle": [ 2, "always-multiline" ],
"no-console": 1,
"no-constant-condition": 2,
"no-control-regex": 2,
"no-debugger": 1,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 2,
"no-empty": [2, { "allowEmptyCatch": true } ],
"no-extra-boolean-cast": 2,
"no-extra-semi": 2,
"no-func-assign": 2,
"no-inner-declarations": 2,
"no-invalid-regexp": 2,
"no-irregular-whitespace": 2,
"no-negated-in-lhs": 2,
"no-unreachable": 2,
"use-isnan": 2,
"valid-typeof": 2,
"accessor-pairs": 2,
"block-scoped-var": 2,
"curly": 2,
"default-case": 0,
"dot-location": [ 2, "property" ],
"dot-notation": 0,
"eqeqeq": [ 2, "smart" ],
"no-alert": 1,
"no-caller": 2,
"no-case-declarations": 0,
"no-div-regex": 1,
"no-else-return": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-iterator": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multi-spaces": 0,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-new": 2,
"no-octal-escape": 2,
"no-octal": 2,
"no-param-reassign": 0,
"no-proto": 2,
"no-redeclare": 2,
"no-return-assign": 2,
"no-self-compare": 2,
"no-throw-literal": 2,
"no-unused-expressions": [ 2, { "allowShortCircuit": true } ],
"no-useless-call": 2,
"no-useless-concat": 2,
"no-void": 2,
"no-warning-comments": 1,
"no-with": 2,
"radix": 0,
"vars-on-top": 0,
"wrap-iife": 0,
"yoda": 2,
"strict": 2,
"no-catch-shadow": 2,
"no-delete-var": 2,
"no-shadow-restricted-names": 2,
"no-shadow": 0,
"no-undef-init": 2,
"no-unused-vars": 2,
"no-use-before-define": 0,
"global-require": 0,
"handle-callback-err": 1,
"no-new-require": 2,
"array-bracket-spacing": 0,
"block-spacing": [ 2, "always" ],
"brace-style": 0,
"camelcase": 0,
"comma-spacing": [ 2, { "before": false, "after": true } ],
"comma-style": [ 2, "last" ],
"computed-property-spacing": 0,
"consistent-this": [ 2, "self" ],
"eol-last": 2,
"func-style": 0,
"indent": [ 2, 2, { "SwitchCase": 1, "MemberExpression": 1 } ],
"key-spacing": 0,
"new-cap": 0,
"new-parens": 2,
"newline-after-var": 0,
"no-array-constructor": 2,
"no-bitwise": 2,
"no-continue": 0,
"no-lonely-if": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": [ 2, { "max": 2, "maxEOF": 1 } ],
"no-nested-ternary": 2,
"no-new-object": 2,
"no-spaced-func": 0,
"no-trailing-spaces": [ 2, { "skipBlankLines": true } ],
"no-unneeded-ternary": 2,
"object-curly-spacing": 0,
"one-var": 0,
"operator-linebreak": [ 2, "after" ],
"quote-props": 0,
"quotes": [ 2, "single", "avoid-escape" ],
"semi": [ 2, "always" ],
"space-before-blocks": [ 2, "always" ],
"space-before-function-paren": 0,
"space-in-parens": 0,
"space-infix-ops": 2,
"space-unary-ops": [ 2, { "words": true, "nonwords": false } ],
"spaced-comment": [ 2, "always" ],
"keyword-spacing": 2,
"arrow-parens": [ 2, "as-needed" ],
"arrow-spacing": 2,
"constructor-super": 2,
"generator-star-spacing": [ 2, { "before": true, "after": false } ],
"no-confusing-arrow": 2,
"no-class-assign": 2,
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-this-before-super": 2,
"no-var": 2,
"prefer-arrow-callback": 0,
"prefer-spread": 1,
"prefer-template": 0,
"require-yield": 2
}
}

17
src/rfront/.gitignore vendored
View file

@ -1,3 +1,5 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies # dependencies
/node_modules /node_modules
/.pnp /.pnp
@ -11,18 +13,11 @@
# misc # misc
.DS_Store .DS_Store
.env* .env.local
.vscode/ .env.development.local
.eslintcache .env.test.local
junit.xml .env.production.local
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
# app
data/
public/index.js
public/xterm/

View file

@ -1,21 +0,0 @@
const CopyWebpackPlugin = require('copy-webpack-plugin');
const config = require('./config');
module.exports = {
mode: config.debug ? 'development' : 'production',
entry: `${__dirname}/front/index.js`,
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
],
},
output: {
filename: 'index.js',
path: `${__dirname}/public`,
publicPath: '/',
}
};