This commit is contained in:
cnwhy
2023-11-10 16:27:49 +08:00
parent 7cca1e7d6a
commit 4104cf07d8
5 changed files with 15 additions and 18 deletions
+8 -3
View File
@@ -1,14 +1,19 @@
name: CI
name: Deploy gh-pages
on:
push:
branches:
- master
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
- name: Install & Build
uses: actions/setup-node@v3
with:
node-version: "18.x"
@@ -16,7 +21,7 @@ jobs:
- run: npm install
- run: npm run build
- name: Deploy # 部署
uses: JamesIves/github-pages-deploy-action@v4.3.3
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # 部署后提交到那个分支
folder: dist # 这里填打包好的目录名称
+2 -2
View File
@@ -2,9 +2,9 @@
<html>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>GOST API Manage</title>
</head>
<body>
<div id="root"></div>
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

+1 -10
View File
@@ -43,7 +43,7 @@ const Home: React.FC = () => {
columns={columns}
></BetaSchemaForm> */}
<LoginForm
title="GOST(v3) 动态配制客户端"
title="GOST API Manage"
subTitle="首先连接API服务"
layout="horizontal"
submitter={{
@@ -91,15 +91,6 @@ const Home: React.FC = () => {
placeholder={"password"}
/>
</LoginForm>
<div>
<table>
<tr>
<th></th>
<th></th>
</tr>
<tbody></tbody>
</table>
</div>
</div>
);
};
+4 -3
View File
@@ -1,7 +1,8 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
base: "./",
plugins: [react()],
})
});