Skip to content

Commit

Permalink
feat: demo data
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxy0551 committed Dec 16, 2023
1 parent e233eec commit 1215111
Show file tree
Hide file tree
Showing 10 changed files with 519 additions and 13 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
### mysql 5.7

建表语句: `/src/mysql/base-table.sql`
demo 数据: `/src/mysql/demo-data.sql`

### 基础依赖

Expand Down
2 changes: 0 additions & 2 deletions src/mysql/base-table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ CREATE TABLE `project` (
PRIMARY KEY (`projectId`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '项目表';


INSERT INTO project (name, appName) values ('汇总', 'default');
INSERT INTO project (devopsProjectIds, name, appName) values ('7,15', '离线', 'batch'), ('9,15', '实时', 'stream'), ('12,15', '控制台', 'console'), ('1,15', 'API', 'dataApi'), ('13,15', '资产', 'dataAssets'), ('3,15', '标签', 'tag'), ('2,15', '指标', 'easyIndex'), ('11,15', 'portal', 'portal'), ('16,15', '数据湖', 'dataLake');


-- ----------------------------
Expand Down
514 changes: 514 additions & 0 deletions src/mysql/demo-data.sql

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions src/mysql/some.sql

This file was deleted.

Binary file added website/src/assets/logo/antd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/assets/logo/react.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/assets/logo/vite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion website/src/const/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const IS_USEFUL_TEXT = [
*/
const scoreColor = {
orangeMin: 50,
greenMin: 80,
greenMin: 90,
};

export const getScoreColor = (score: number) => {
Expand Down
2 changes: 1 addition & 1 deletion website/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Routers from './routers';
import './main.less';

const yiceRole = localStorage.getItem('yice-role');
!yiceRole && localStorage.setItem('yice-role', YICE_ROLE.USER);
!yiceRole && localStorage.setItem('yice-role', YICE_ROLE.ADMIN);

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<ConfigProvider locale={zhCN}>
Expand Down
4 changes: 2 additions & 2 deletions website/src/views/home/components/versions/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { CustomIconComponentProps } from '@ant-design/icons/lib/components/
const ScheduleSvg = () => (
<svg width="13.5px" height="12.75px" viewBox="0 0 13.5 12.75">
<g id="页面-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
<g id="离线开发" transform="translate(-1385.25, -209.5)" fill="#64698B">
<g id="schedule-svg" transform="translate(-1385.25, -209.5)" fill="#64698B">
<g id="Button/次按钮/默认/32/灰色边框备份-9" transform="translate(1376, 200)">
<g id="icon/线性/添加" transform="translate(9.25, 9.5)">
<path
Expand All @@ -24,7 +24,7 @@ const ScheduleSvg = () => (
const PatchDataSvg = () => (
<svg width="12.5755539px" height="13.5px" viewBox="0 0 12.5755539 13.5" version="1.1">
<g id="页面-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
<g id="离线开发" transform="translate(-1341.853, -209.532)" fill="#64698B">
<g id="patch-data-svg" transform="translate(-1341.853, -209.532)" fill="#64698B">
<g id="Button/次按钮/默认/32/灰色边框备份-8" transform="translate(1332, 200)">
<g id="icon/线性/添加" transform="translate(9.853, 9.532)">
<path
Expand Down

0 comments on commit 1215111

Please sign in to comment.