-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
4,077 additions
and
645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'develop' | ||
pull_request: | ||
branches: | ||
- 'develop' | ||
types: [opened, synchronize] | ||
|
||
# allow for manual builds from feature branches | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-create-release: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Git Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: get-npm-version | ||
id: package-version | ||
uses: martinbeentjes/npm-get-version-action@main | ||
|
||
- run: yarn install | ||
- run: yarn build | ||
env: | ||
CI: '' # disable CI mode as it makes build fail on warnings | ||
|
||
- name: Upload build to artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: editor | ||
path: | | ||
build/assets/* | ||
build/index.html | ||
serve.js | ||
- name: 'If build on master branch, bump version on develop' | ||
if: ${{ github.ref_name == 'master' }} | ||
uses: phips28/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
target-branch: develop | ||
skip-tag: true | ||
|
||
- name: 'If build on master branch, download artifact' | ||
if: ${{ github.ref_name == 'master' }} | ||
uses: actions/download-artifact@v3 | ||
with: | ||
path: artifact | ||
name: editor | ||
|
||
- name: 'If build on master branch, zip release asset' | ||
if: ${{ github.ref_name == 'master' }} | ||
uses: thedoctor0/zip-release@main | ||
with: | ||
type: zip | ||
directory: artifact | ||
filename: editor.zip | ||
|
||
- name: 'If build on master branch, create release' | ||
if: ${{ github.ref_name == 'master' }} | ||
uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
title: Release-${{ steps.package-version.outputs.current-version}} | ||
automatic_release_tag: ${{ steps.package-version.outputs.current-version}} | ||
draft: true | ||
prerelease: false | ||
files: artifact/editor.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="/sdl_logo192.png"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<link rel="apple-touch-icon" href="/sdl_logo192.png" /> | ||
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/> | ||
<title>Parameter Editor</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "Parameter Editor", | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,71 @@ | ||
{ | ||
"name": "generic-referencedata-editor", | ||
"version": "0.0.1", | ||
"description": "", | ||
"version": "1.0.0", | ||
"private": true, | ||
"keywords": [], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/zzeekk/generic-referencedata-editor.git" | ||
}, | ||
"author": "", | ||
"license": "", | ||
"type": "module", | ||
"dependencies": { | ||
"@emotion/react": "^11.10.6", | ||
"@emotion/styled": "^11.10.6", | ||
"@mui/icons-material": "^5.8.4", | ||
"@mui/material": "^5.15.16", | ||
"@rjsf/core": "^5.18.3", | ||
"@rjsf/mui": "^5.18.3", | ||
"@rjsf/utils": "^5.18.3", | ||
"@rjsf/validator-ajv8": "^5.18.3", | ||
"@types/jest": "^27.5.2", | ||
"@types/node": "^16.11.43", | ||
"@types/react": "^18.0.2", | ||
"@types/react-dom": "^18.0.6", | ||
"@types/react-resizable": "^3.0.4", | ||
"@types/react-router-dom": "^5.1.5", | ||
"@types/styled-components": "^5.1.9", | ||
"@vitejs/plugin-react": "^4.2.0", | ||
"antd": "^5.4.7", | ||
"assert": "^2.1.0", | ||
"ka-table": "^8.2.0", | ||
"polished": "^4.3.1", | ||
"react": "^18.3.1", | ||
"react-custom-scrollbars-2": "^4.4.0", | ||
"react-dom": "^18.2.0", | ||
"react-hook-form": "^7.51.4", | ||
"react-resizable": "^3.0.5", | ||
"react-tooltip": "^4.2.17", | ||
"typescript": "^4.7.4", | ||
"vite": "^5.0.0" | ||
}, | ||
"devDependencies": {}, | ||
"scripts": { | ||
"build": "webpack", | ||
"dev": "webpack-dev-server --inline --progress", | ||
"start": "node serve.js" | ||
"start": "vite --force", | ||
"build": "vite build", | ||
"serve": "vite preview", | ||
"lint": "npx eslint src --ext .js,.jsx,.ts,.tsx --max-warnings=0", | ||
"run": "node serve.js" | ||
}, | ||
"dependencies": { | ||
"@babel/core": "^7.20.12", | ||
"angular": "^1.6.10", | ||
"angular-base64": "^2.0.5", | ||
"angular-datatables": "^0.6.2", | ||
"angular-route": "^1.6.9", | ||
"angular-schema-form-bootstrap": "git+https://github.com/zzeekk/angular-schema-form-bootstrap.git#develop", | ||
"angular-ui-bootstrap": "^2.5.6", | ||
"babel-polyfill": "^6.26.0", | ||
"bootstrap-vertical-tabs": "^1.2.2", | ||
"bootstrap3": "^3.3.5", | ||
"browserslist": "^4.21.4", | ||
"express": "^4.16.3", | ||
"html-webpack-plugin": "^5.5.0", | ||
"jquery": "^3.3.1" | ||
"eslintConfig": { | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest" | ||
] | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"peerDependencies": { | ||
"react": "18.0.2", | ||
"react-dom": "18.0.2" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^6.26.3", | ||
"babel-loader": "^9.1.2", | ||
"babel-preset-env": "^1.7.0", | ||
"css-loader": "^6.7.1", | ||
"file-loader": "^6.2.0", | ||
"html-loader": "^0.5.5", | ||
"imports-loader": "^0.8.0", | ||
"style-loader": "^0.21.0", | ||
"webpack": "^5.75.0", | ||
"webpack-cli": "^4.9.2", | ||
"webpack-dev-server": "^4.9.0" | ||
} | ||
"homepage": "./" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.