Compare commits

..

No commits in common. 'master' and 'v2.0.0' have entirely different histories.

@ -10,16 +10,30 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v2
- name: Setup Node.js environment - name: Setup Node.js environment
uses: actions/setup-node@v3 uses: actions/setup-node@v1
with: with:
node-version: 18 node-version: '14'
cache: 'npm' check-latest: true
# - name: Cache node modules
# uses: actions/cache@v2
# env:
# cache-name: cache-node-modules
# with:
# path: ~/.npm
# key: ${{ runner.os }}-node-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-${{ env.cache-name }}-
# ${{ runner.os }}-node-
# ${{ runner.os }}-
- name: Install dependencies - name: Install dependencies
run: npm ci run: yarn install
- name: Build - name: Build
run: npm run build run: yarn build
- name: Rename output dir - name: Rename output dir
run: mv build sergate run: mv build sergate
- name: Make zip file - name: Make zip file

1
.gitignore vendored

@ -24,3 +24,4 @@ npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
yarn.lock yarn.lock
package-lock.json

@ -1,24 +1,3 @@
## [2.0.3](https://github.com/krwu/ServerStatus-web/compare/v2.0.2...v2.0.3) (2023-03-07)
### Bug Fixes
* http-cache-semantics vulnerable ([dac1abc](https://github.com/krwu/ServerStatus-web/commit/dac1abc1112c6a6388f691e7697bb0dc5fd93558))
## [2.0.2](https://github.com/krwu/ServerStatus-web/compare/v2.0.1...v2.0.2) (2022-09-13)
### Bug Fixes
* **npm:** potential security vulnerabilities ([10db0cb](https://github.com/krwu/ServerStatus-web/commit/10db0cbb2d37d2be7a43e9279c2c60099237c1fa))
## [2.0.1](https://github.com/krwu/ServerStatus-web/compare/v2.0.0...v2.0.1) (2022-07-14)
### Performance Improvements
* clean unnecessary packages ([d5a1dd0](https://github.com/krwu/ServerStatus-web/commit/d5a1dd007cecafe7b4461e98667410ae099b6e3d))
# [2.0.0](https://github.com/krwu/ServerStatus-web/compare/v1.4.0...v2.0.0) (2022-06-14) # [2.0.0](https://github.com/krwu/ServerStatus-web/compare/v1.4.0...v2.0.0) (2022-06-14)

@ -0,0 +1,9 @@
const { override, fixBabelImports } = require('customize-cra');
module.exports = override(
fixBabelImports('import', {
libraryName: 'antd',
libraryDirectory: 'es',
style: 'css',
}),
);

24178
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -9,9 +9,6 @@
"ant design" "ant design"
], ],
"private": true, "private": true,
"engines": {
"node": ">=18"
},
"homepage": ".", "homepage": ".",
"bugs": { "bugs": {
"url": "https://github.com/krwu/ServerStatus-web/issues" "url": "https://github.com/krwu/ServerStatus-web/issues"
@ -24,14 +21,22 @@
}, },
"dependencies": { "dependencies": {
"@ant-design/icons": "^4.6.4", "@ant-design/icons": "^4.6.4",
"@types/node": "16.0.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"antd": "^4.0.0", "antd": "^4.0.0",
"react": "18", "babel-plugin-import": "^1.13.1",
"react-dom": "18", "customize-cra": "^1.0.0",
"react-intl-universal": "^2.5.3" "react": "^17.0.2",
"react-app-rewired": "^2.2.1",
"react-dom": "^17.0.2",
"react-intl-universal": "^2.5.3",
"react-scripts": "^5.0.1",
"typescript": "^4.1.2"
}, },
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-app-rewired start",
"build": "react-scripts build", "build": "react-app-rewired build",
"eject": "react-scripts eject" "eject": "react-scripts eject"
}, },
"eslintConfig": { "eslintConfig": {
@ -42,7 +47,7 @@
}, },
"browserslist": { "browserslist": {
"production": [ "production": [
">5%", ">0.2%",
"not dead", "not dead",
"not op_mini all" "not op_mini all"
], ],
@ -53,21 +58,8 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@babel/core": ">=7.0.0-0 <8.0.0", "@semantic-release/changelog": "^6.0.0",
"@babel/plugin-syntax-flow": "^7.14.5", "@semantic-release/git": "^10.0.0",
"@babel/plugin-transform-react-jsx": "^7.14.9", "semantic-release": "^19.0.3"
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/git": "^10.0.1",
"@svgr/webpack": "^6.2.1",
"@types/node": "^18.14.6",
"@types/react": "18",
"@types/react-dom": "18",
"babel-plugin-import": "^1.13.1",
"react-scripts": "^5.0.1",
"semantic-release": "^20.1.1",
"typescript": "^4.1.2"
},
"overrides": {
"@svgr/webpack": "$@svgr/webpack"
} }
} }

@ -1 +0,0 @@
@import '~antd/dist/antd.css';

@ -3,7 +3,6 @@ import "./App.css";
import intl from "react-intl-universal"; import intl from "react-intl-universal";
import React, { useState, useEffect } from "react"; import React, { useState, useEffect } from "react";
import { Layout, Row, Col, Spin } from "antd"; import { Layout, Row, Col, Spin } from "antd";
import ServerRow from "./ServerRow"; import ServerRow from "./ServerRow";
require("intl/locale-data/jsonp/en.js"); require("intl/locale-data/jsonp/en.js");

@ -1,15 +1,10 @@
import { StrictMode } from 'react'; import React from 'react';
import { createRoot } from 'react-dom/client'; import ReactDOM from 'react-dom';
import './index.css'; import './index.css';
import App from './App'; import App from './App';
// import reportWebVitals from './reportWebVitals'; // import reportWebVitals from './reportWebVitals';
const el = document.getElementById('root'); ReactDOM.render(<App />, document.getElementById('root'));
if (el === null) {
throw new Error('root container missing in index.html');
}
const root = createRoot(el);
root.render(<StrictMode><App /></StrictMode>);
// If you want to start measuring performance in your app, pass a function // If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log)) // to log results (for example: reportWebVitals(console.log))

Loading…
Cancel
Save