Compare commits

...

20 Commits

Author SHA1 Message Date
Kairee Wu 80df346ec3
Merge pull request #12 from krwu/dependabot/npm_and_yarn/webpack-5.82.0
build(deps): bump webpack from 5.75.0 to 5.82.0
4 years ago
dependabot[bot] da6726e223
build(deps): bump webpack from 5.75.0 to 5.82.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.82.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.82.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
4 years ago
semantic-release-bot bed2cd0724 chore(release): 2.0.3 [skip ci]
## [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](dac1abc111))
4 years ago
kaireewu dac1abc111
fix: http-cache-semantics vulnerable 4 years ago
Kairee Wu 0394e1e410
Merge pull request #11 from krwu/dependabot/npm_and_yarn/json5-1.0.2
build(deps): bump json5 from 1.0.1 to 1.0.2
4 years ago
dependabot[bot] b3f50add57
build(deps): bump json5 from 1.0.1 to 1.0.2
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
4 years ago
Kairee Wu d25d7fa890
Merge pull request #10 from krwu/dependabot/npm_and_yarn/minimatch-and-recursive-readdir-3.1.2
build(deps): bump minimatch and recursive-readdir
4 years ago
dependabot[bot] 1dfa29f3d1
build(deps): bump minimatch and recursive-readdir
Bumps [minimatch](https://github.com/isaacs/minimatch) and [recursive-readdir](https://github.com/jergason/recursive-readdir). These dependencies needed to be updated together.

Updates `minimatch` from 3.0.4 to 3.1.2
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

Updates `recursive-readdir` from 2.2.2 to 2.2.3
- [Release notes](https://github.com/jergason/recursive-readdir/releases)
- [Changelog](https://github.com/jergason/recursive-readdir/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jergason/recursive-readdir/commits/v2.2.3)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
- dependency-name: recursive-readdir
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
4 years ago
Kairee Wu 3c2d44013e
Merge pull request #9 from krwu/dependabot/npm_and_yarn/loader-utils-2.0.4
build(deps): bump loader-utils from 2.0.3 to 2.0.4
4 years ago
dependabot[bot] 54b7548879
build(deps): bump loader-utils from 2.0.3 to 2.0.4
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.3...v2.0.4)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
4 years ago
Kairee Wu e419c00c50
Merge pull request #8 from krwu/dependabot/npm_and_yarn/loader-utils-2.0.3
build(deps): bump loader-utils from 2.0.2 to 2.0.3
4 years ago
dependabot[bot] 4872457bfb
build(deps): bump loader-utils from 2.0.2 to 2.0.3
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.3/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.2...v2.0.3)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
4 years ago
semantic-release-bot fab7d28d70 chore(release): 2.0.2 [skip ci]
## [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](10db0cbb2d))
4 years ago
Kairee Wu 10db0cbb2d
fix(npm): potential security vulnerabilities 4 years ago
kaireewu 35bdebe5d9
build(npm): upgrade dependencies [skip ci] 4 years ago
semantic-release-bot 33e6bfb1b5 chore(release): 2.0.1 [skip ci]
## [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](d5a1dd007c))
4 years ago
kaireewu d5a1dd007c
perf: clean unnecessary packages 4 years ago
kaireewu 556d0f31ff
build(react): upgrade to react 18 4 years ago
semantic-release-bot 487fd2b6c8 chore(release): 2.0.0 [skip ci]
# [2.0.0](https://github.com/krwu/ServerStatus-web/compare/v1.4.0...v2.0.0) (2022-06-14)

### Features

* upgrade dependencies ([eeff4c0](eeff4c0eaf))

### BREAKING CHANGES

* - react-scripts upgraded to v5
- semantic-release upgraded to v19
- dropped support for Node <= 15
4 years ago
kaireewu eeff4c0eaf
feat: upgrade dependencies
BREAKING CHANGE:
- react-scripts upgraded to v5
- semantic-release upgraded to v19
- dropped support for Node <= 15
4 years ago

@ -10,30 +10,16 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Setup Node.js environment - name: Setup Node.js environment
uses: actions/setup-node@v1 uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: 18
check-latest: true cache: 'npm'
# - 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: yarn install run: npm ci
- name: Build - name: Build
run: yarn build run: npm run 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,4 +24,3 @@ npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
yarn.lock yarn.lock
package-lock.json

@ -1,3 +1,38 @@
## [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)
### Features
* upgrade dependencies ([eeff4c0](https://github.com/krwu/ServerStatus-web/commit/eeff4c0eaf59122bc984be4ab3970dbaf72164d1))
### BREAKING CHANGES
* - react-scripts upgraded to v5
- semantic-release upgraded to v19
- dropped support for Node <= 15
# [1.4.0](https://github.com/krwu/ServerStatus-web/compare/v1.3.0...v1.4.0) (2022-02-19) # [1.4.0](https://github.com/krwu/ServerStatus-web/compare/v1.3.0...v1.4.0) (2022-02-19)

@ -1,9 +0,0 @@
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,6 +9,9 @@
"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"
@ -21,28 +24,14 @@
}, },
"dependencies": { "dependencies": {
"@ant-design/icons": "^4.6.4", "@ant-design/icons": "^4.6.4",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@types/jest": "^26.0.15",
"@types/node": "16.0.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"antd": "^4.0.0", "antd": "^4.0.0",
"babel-plugin-import": "^1.13.1", "react": "18",
"customize-cra": "^1.0.0", "react-dom": "18",
"react": "^17.0.2", "react-intl-universal": "^2.5.3"
"react-app-rewired": "^2.2.1",
"react-dom": "^17.0.2",
"react-intl-universal": "^2.4.2",
"react-scripts": "5.0.0",
"typescript": "^4.1.2",
"web-vitals": "^1.0.1"
}, },
"scripts": { "scripts": {
"start": "react-app-rewired start", "start": "react-scripts start",
"build": "react-app-rewired build", "build": "react-scripts build",
"test": "react-app-rewired test",
"eject": "react-scripts eject" "eject": "react-scripts eject"
}, },
"eslintConfig": { "eslintConfig": {
@ -53,7 +42,7 @@
}, },
"browserslist": { "browserslist": {
"production": [ "production": [
">0.2%", ">5%",
"not dead", "not dead",
"not op_mini all" "not op_mini all"
], ],
@ -64,8 +53,21 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@semantic-release/changelog": "^6.0.0", "@babel/core": ">=7.0.0-0 <8.0.0",
"@semantic-release/git": "^10.0.0", "@babel/plugin-syntax-flow": "^7.14.5",
"semantic-release": "^18.0.0" "@babel/plugin-transform-react-jsx": "^7.14.9",
"@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"
} }
} }

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

@ -3,6 +3,7 @@ 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,12 +1,17 @@
import React from 'react'; import { StrictMode } from 'react';
import ReactDOM from 'react-dom'; import { createRoot } from 'react-dom/client';
import './index.css'; import './index.css';
import App from './App'; import App from './App';
import reportWebVitals from './reportWebVitals'; // import reportWebVitals from './reportWebVitals';
ReactDOM.render(<App />, document.getElementById('root')); const el = 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))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals(); // reportWebVitals();

@ -1,15 +0,0 @@
import { ReportHandler } from 'web-vitals';
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
});
}
};
export default reportWebVitals;

@ -1,5 +0,0 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';
Loading…
Cancel
Save