Skip to content

Commit 87f994e

Browse files
committed
Import from EE
0 parents  commit 87f994e

File tree

162 files changed

+13652
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+13652
-0
lines changed

.babelrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"sourceType": "unambiguous",
3+
"presets": [
4+
[
5+
"@babel/preset-env",
6+
{
7+
"targets": {
8+
"chrome": 100
9+
}
10+
}
11+
],
12+
"@babel/preset-typescript",
13+
"@babel/preset-react"
14+
],
15+
"plugins": []
16+
}

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/icons/io/IO*.tsx

.eslintrc

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"extends": [
3+
"airbnb",
4+
"airbnb-typescript",
5+
"airbnb/hooks",
6+
"plugin:@typescript-eslint/recommended",
7+
"prettier",
8+
"plugin:prettier/recommended"
9+
],
10+
"plugins": [
11+
"react",
12+
"@typescript-eslint"
13+
],
14+
"env": {
15+
"browser": true,
16+
"es6": true,
17+
"jest": true
18+
},
19+
"globals": {
20+
"Atomics": "readonly",
21+
"SharedArrayBuffer": "readonly"
22+
},
23+
"parser": "@typescript-eslint/parser",
24+
"parserOptions": {
25+
"ecmaFeatures": {
26+
"jsx": true
27+
},
28+
"ecmaVersion": 2018,
29+
"sourceType": "module",
30+
"project": "./tsconfig.json"
31+
},
32+
"rules": {
33+
"no-plusplus": "warn",
34+
"no-param-reassign": "warn",
35+
"no-restricted-syntax": "warn",
36+
"class-methods-use-this": "warn",
37+
"@typescript-eslint/naming-convention": "warn",
38+
"no-underscore-dangle": "warn",
39+
"no-await-in-loop": "warn",
40+
"jsx-a11y/no-autofocus": "warn",
41+
"react/no-unused-prop-types": "warn",
42+
"linebreak-style": "off",
43+
"react/function-component-definition": "off",
44+
"no-restricted-properties": "warn",
45+
"import/extensions": [
46+
"off","ignorePackages",
47+
{
48+
"js": "never",
49+
"jsx": "never",
50+
"ts": "never",
51+
"tsx": "never",
52+
"d.ts": "never"
53+
}
54+
],
55+
"react/no-unused-state": "warn",
56+
"prettier/prettier": [
57+
"error",
58+
{
59+
"endOfLine": "auto",
60+
"singleQuote": true
61+
}
62+
]
63+
64+
}
65+
}

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
node_modules
2+
dist
3+
.env
4+
package-lock.json
5+
*.tgz
6+
/style/
7+
/.idea/
8+
/docs/
9+
/icon/icons/
10+
/icon/icons/out
11+
/docker-compose.yml
12+
/css/style.css
13+
/storybook-static/

.gitlab-ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
include:
2+
- project: 'grandlinex/templates'
3+
file: '/stages.yml'
4+
- project: 'grandlinex/templates'
5+
file: '/prod/electron-bundle.yml'
6+
- project: 'grandlinex/templates'
7+
file: '/build/electron-bundle.yml'
8+
- project: 'grandlinex/templates'
9+
file: '/deploy/npm-gitlab-deploy.yml'
10+
11+
make:build:prod:
12+
image: ${DOCKER_IMG_PRE}worker:latest
13+
tags:
14+
- docker
15+
stage: build
16+
only:
17+
- tags
18+
- /^v(\d+\.)?(\d+\.)?(\*|\d+)$/
19+
except:
20+
- branches
21+
- pipeline
22+
script:
23+
- npm install
24+
- npm run buildprep
25+
needs:
26+
- lint:scan:prod
27+
- sec:scan:prod
28+
artifacts:
29+
paths:
30+
- dist
31+
- style
32+
expire_in: 7 days
33+

.ncurc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"upgrade": true,
3+
"reject": []
4+
}

.npmignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
.gitlab-ci.yml
2+
.eslintrc
3+
node_modules
4+
docs
5+
.idea
6+
.env
7+
docker-compose.yml
8+
jest.config.js
9+
package-lock.json
10+
data
11+
src
12+
tests
13+
scripts
14+
glconf.json
15+
site
16+
.eslintignore
17+
.env.example
18+
tsconfig.json
19+
.scannerwork
20+
sonar-project.properties
21+
coverage
22+
*.tgz
23+
*.iml
24+
.ncurc.json
25+
.npmrc
26+
junit.xml
27+
.github
28+
openapi.json
29+
openapi.yml
30+
gen
31+
public
32+
themes/dev.scss
33+
gulpfile.js
34+
webpack.config.js
35+
webpack.react.js
36+
dist/presenter
37+
dist/stories
38+
dist/renderer.d.ts
39+
dist/renderer.js
40+
dist/renderer.js.map
41+
dist/index.html
42+
Dockerfile
43+
nodemon.json
44+
.storybook
45+
.babelrc.json

.storybook/main.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import type { StorybookConfig } from "@storybook/react-webpack5";
2+
import * as path from 'path';
3+
const config: StorybookConfig = {
4+
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
5+
addons: [
6+
"@storybook/addon-links",
7+
"@storybook/addon-essentials",
8+
"@storybook/addon-interactions",
9+
"storybook-addon-themes",
10+
"@storybook/addon-viewport",
11+
{
12+
name: '@storybook/addon-storysource',
13+
options: {
14+
rule: {
15+
test: [/\.stories\.tsx?$/],
16+
include: [path.resolve(__dirname, '../src')],
17+
},
18+
loaderOptions: {
19+
prettierConfig: { printWidth: 80, singleQuote: false },
20+
},
21+
},
22+
},
23+
],
24+
framework: {
25+
name: "@storybook/react-webpack5",
26+
options: {},
27+
},
28+
docs: {
29+
autodocs: "tag",
30+
},
31+
};
32+
export default config;

.storybook/preview.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import type { Preview } from "@storybook/react";
2+
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
3+
import "../css/style.css";
4+
import "../css/dev.css";
5+
6+
const preview: Preview = {
7+
parameters: {
8+
actions: { argTypesRegex: "^on[A-Z].*" },
9+
controls: {
10+
matchers: {
11+
color: /(background|color)$/i,
12+
date: /Date$/,
13+
},
14+
},
15+
backgrounds: {
16+
default: 'Dark',
17+
values: [
18+
{
19+
name: 'Dark',
20+
value: '#111',
21+
},
22+
{
23+
name: 'Light',
24+
value: '#FFF',
25+
},
26+
],
27+
},
28+
themes: {
29+
default: 'Dark',
30+
list: [
31+
{ name: 'Dark', color: '#111' },
32+
{ name: 'Light', class: 'glx-theme-light', color: '#FFF' },
33+
],
34+
},
35+
viewport: {
36+
viewports: INITIAL_VIEWPORTS,
37+
},
38+
},
39+
};
40+
41+
export default preview;

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Just run 'npm install' && 'npm run build-web' before docker build
2+
FROM nginx:latest
3+
4+
RUN mkdir /etc/nginx/sites-available/ && \
5+
echo "server {\n server_name _;\n listen 80 default_server;\n location / {\n root /usr/share/nginx/html;\n try_files $uri /index.html;\n }\n error_page 500 502 503 504 /50x.html;\n location = /50x.html {\n root /usr/share/nginx/html;\n }\n}" > /etc/nginx/sites-available/default
6+
7+
WORKDIR /usr/share/nginx/html
8+
9+
CMD nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
10+
11+
EXPOSE 80
12+
13+
COPY ./storybook-static/ /usr/share/nginx/html

0 commit comments

Comments
 (0)