Skip to content

Commit 67b01f3

Browse files
authored
Merge pull request #556 from nexB/v4.0-react-typescript
Refactor to v4.0 react typescript & schema updates upto sct v32.x
2 parents edcf641 + 74e1e08 commit 67b01f3

File tree

684 files changed

+109874
-281487
lines changed

Some content is hidden

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

684 files changed

+109874
-281487
lines changed

.eslintrc.json

Lines changed: 23 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,25 @@
11
{
2-
"env": {
3-
"browser": true,
4-
"es6": true,
5-
"node": true,
6-
"jquery": true
7-
},
8-
"globals": {
9-
"c3": false,
10-
"d3": false,
11-
"ProgressBar": false,
12-
"Split": false,
13-
"describe": false,
14-
"it": false
15-
},
16-
"extends": "eslint:recommended",
17-
"parserOptions": {
18-
"sourceType": "module"
19-
},
20-
"rules": {
21-
"indent": [
22-
"error",
23-
2
24-
],
25-
"linebreak-style": [
26-
"error",
27-
"unix"
28-
],
29-
"quotes": [
30-
"error",
31-
"single",
32-
{
33-
"avoidEscape": true,
34-
"allowTemplateLiterals": true
35-
}
36-
],
37-
"semi": [
38-
"error",
39-
"always"
40-
],
41-
"no-console": [
42-
"error",
43-
{
44-
"allow": [
45-
"warn",
46-
"error",
47-
"info",
48-
"time",
49-
"log",
50-
"timeEnd"
51-
]
52-
}
53-
],
54-
"space-infix-ops": [
55-
"error",
56-
{
57-
"int32Hint": false
58-
}
59-
],
60-
"space-before-blocks": "error",
61-
"keyword-spacing": [
62-
"error",
63-
{
64-
"before": true
65-
}
66-
],
67-
"one-var": [
68-
"error",
69-
"never"
70-
],
71-
"padded-blocks": [
72-
"error",
73-
"never"
74-
],
75-
"space-in-parens": [
76-
"error",
77-
"never"
78-
],
79-
"prefer-const": "error",
80-
"prefer-arrow-callback": "error",
81-
"arrow-spacing": "error",
82-
"arrow-parens": [
83-
"error",
84-
"always"
85-
]
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"plugins": ["css-import-order"],
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/eslint-recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"plugin:import/recommended",
13+
"plugin:import/electron",
14+
"plugin:import/typescript",
15+
"plugin:css-import-order/recommended"
16+
],
17+
"parser": "@typescript-eslint/parser",
18+
"settings": {
19+
"import/resolver": {
20+
"node": {
21+
"extensions": [".js", ".jsx", ".ts", ".tsx", "json"]
22+
}
8623
}
87-
}
24+
}
25+
}

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/Release.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# name of your github action
2+
name: Release CI
3+
4+
# this will help you specify when & which branch to run deployment
5+
on:
6+
push:
7+
tags:
8+
- v*
9+
10+
jobs:
11+
create_release:
12+
name: Create Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@master
16+
# - name: Exit if tag not is not pointing to a commit in master branch
17+
# if: endsWith(github.ref, 'master') == false
18+
# run: exit -1
19+
- name: Get release tag
20+
id: tag
21+
uses: dawidd6/action-get-tag@v1
22+
with:
23+
strip_v: false
24+
- name: Create Release
25+
id: create_release
26+
uses: softprops/action-gh-release@v1
27+
with:
28+
tag_name: ${{steps.tag.outputs.tag}}
29+
name: Release ${{steps.tag.outputs.tag}}
30+
body_path: ./Release.md
31+
draft: false
32+
prerelease: false
33+
generate_release_notes: false
34+
35+
build:
36+
needs: create_release
37+
name: Build Release archives
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
os: [ubuntu-latest, macos-latest, windows-latest]
42+
runs-on: ${{ matrix.os }}
43+
steps:
44+
- uses: actions/checkout@master
45+
- uses: actions/setup-python@v4
46+
with:
47+
python-version: 3.9
48+
- uses: actions/setup-node@master
49+
with:
50+
node-version: 16.13.0
51+
- name: Install dependencies
52+
run: npm install
53+
- name: Build Workbench & create archive for ${{ matrix.os }}
54+
run: npm run publish
55+
- name: Verify Generated archive in dist/
56+
run: ls ./dist
57+
- name: Upload release assets
58+
uses: softprops/action-gh-release@v1
59+
with:
60+
tag_name: ${{ github.ref_name }}
61+
files: dist/*

.github/workflows/Test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Test CI
5+
6+
on: [push, pull_request]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [14.x, 16.x, 18.x]
15+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: "npm"
24+
- run: npm install
25+
- run: npm test

.github/workflows/docs-ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI Documentation
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read # to fetch code (actions/checkout)
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-20.04
11+
12+
strategy:
13+
max-parallel: 4
14+
matrix:
15+
python-version: [3.9]
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Install Dependencies
27+
run: pip install -r docs/requirements.txt
28+
29+
- name: Check Sphinx Documentation build minimally
30+
working-directory: ./docs
31+
run: sphinx-build -E -W source build
32+
33+
- name: Check for documentation style errors
34+
working-directory: ./docs
35+
run: ./scripts/doc8_style_check.sh
36+

.gitignore

Lines changed: 88 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,94 @@
1-
*.py[cod]
2-
3-
# virtualenv and other misc bits
4-
*.egg-info
5-
/dist
6-
/build
7-
/bin
8-
/lib
9-
/scripts
10-
/Scripts
11-
/Lib
12-
/tmp
13-
.Python
14-
/include
15-
/Include
16-
/local
17-
node_modules/
18-
bower_components/
19-
docs/build
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
208

21-
# Installer logs
22-
debug.log
23-
npm-debug.log
9+
# Test residue
10+
test-db
2411

25-
# IDEs
26-
.project
27-
.pydevproject
28-
.idea
29-
.vscode
12+
# Diagnostic reports (https://nodejs.org/api/report.html)
13+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
3014

15+
# Runtime data
16+
pids
17+
*.pid
18+
*.seed
19+
*.pid.lock
3120
.DS_Store
32-
*~
33-
.*.sw[po]
34-
.build
35-
.ve
36-
.venv
37-
*.bak
38-
/.cache/
3921

22+
# Directory for instrumented libs generated by jscoverage/JSCover
23+
lib-cov
24+
25+
# Coverage directory used by tools like istanbul
26+
coverage
27+
*.lcov
28+
29+
# nyc test coverage
30+
.nyc_output
31+
32+
# node-waf configuration
33+
.lock-wscript
34+
35+
# Compiled binary addons (https://nodejs.org/api/addons.html)
36+
build/Release
37+
release-builds-*
38+
dist/*
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Optional REPL history
57+
.node_repl_history
58+
59+
# Output of 'npm pack'
60+
*.tgz
61+
62+
# Yarn Integrity file
63+
.yarn-integrity
64+
65+
# dotenv environment variables file
66+
.env
67+
.env.test
68+
69+
# parcel-bundler cache (https://parceljs.org/)
70+
.cache
71+
72+
# next.js build output
73+
.next
74+
75+
# nuxt.js build output
76+
.nuxt
77+
78+
# vuepress build output
79+
.vuepress/dist
80+
81+
# Serverless directories
82+
.serverless/
83+
84+
# FuseBox cache
85+
.fusebox/
86+
87+
# DynamoDB Local files
88+
.dynamodb/
89+
90+
# Webpack
91+
.webpack/
4092

41-
# Generated sqlite files
42-
*.sqlite
93+
# Electron-Forge
94+
out/

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm test

0 commit comments

Comments
 (0)