Skip to content

Commit 4b4ee4d

Browse files
authored
Merge pull request #9 from DTStack/feat_css
Feat css
2 parents 0431e06 + c72102e commit 4b4ee4d

Some content is hidden

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

44 files changed

+2705
-102
lines changed

.DS_Store

-6 KB
Binary file not shown.

.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next"
3+
}

.github/workflows/CI.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [feat_*]
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: 'set Node.js'
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: 14
17+
18+
- name: install dependencies
19+
run: npm install
20+
21+
- name: run lint
22+
run: npm run lint
23+
24+
build:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- name: 'set Node.js'
30+
uses: actions/setup-node@v2
31+
with:
32+
node-version: 14
33+
34+
- name: install dependencies
35+
run: npm install
36+
37+
- name: run build
38+
run: npm run build

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Dependency directories
2+
node_modules/
3+
4+
build/
5+
dist
6+
.vscode
7+
.idea
8+
.next
9+
.DS_Store
10+
out

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# UED landing
2+
3+
4+
## Get Start
5+
6+
- 1、static page
7+
8+
``` bash
9+
npm run dev
10+
```
11+
12+
- 2、dev node server
13+
14+
``` bash
15+
npm run dev:node
16+
```
17+
18+
- 3、lint
19+
20+
``` bash
21+
npm run lint
22+
```
23+
24+
25+
## Deploy
26+
27+
``` bash
28+
npm run deploy
29+
```
30+
31+
32+
## Interface document
33+
34+
https://www.apifox.cn/apidoc/shared-c119f3d8-9f58-48bd-9584-0ed56c50d653

next.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
const nextConfig = {
22
distDir: 'build',
3+
images: {
4+
domains: [
5+
'assets.dtstack.com',
6+
],
7+
},
38
}
49

510
module.exports = nextConfig

package.json

+14-1
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,39 @@
55
"main": "index.js",
66
"scripts": {
77
"dev": "next dev",
8+
"dev:node": "NODE_ENV=development node server/index.js",
89
"build": "next build",
10+
"export": "next export",
911
"start": "PORT=3003 next start",
12+
"deploy": "./script/deploy.sh",
1013
"lint": "next lint"
1114
},
1215
"repository": {
1316
"type": "git",
14-
"url": "ssh://[email protected]:10022/mumiao/ued-landing.git"
17+
"url": "https://github.com/DTStack/UED"
1518
},
1619
"keywords": [],
1720
"author": "",
1821
"license": "ISC",
1922
"dependencies": {
23+
"@ant-design/icons": "^4.7.0",
2024
"antd": "^4.21.7",
25+
"axios": "^0.27.2",
26+
"koa": "^2.13.4",
27+
"koa-router": "^12.0.0",
28+
"koa2-cors": "^2.0.6",
29+
"mongoose": "^6.5.1",
2130
"next": "^12.2.2",
31+
"node-schedule": "^2.1.0",
2232
"react": "^18.2.0",
2333
"react-dom": "^18.2.0"
2434
},
2535
"devDependencies": {
36+
"@types/react": "^18.0.15",
2637
"commitizen": "^4.2.4",
2738
"cz-conventional-changelog": "^3.3.0",
39+
"eslint": "^8.21.0",
40+
"eslint-config-next": "12.2.3",
2841
"sass": "^1.53.0"
2942
},
3043
"config": {

0 commit comments

Comments
 (0)