From 3f0c3cc6b7584ab60e61322f0a37d236dd901092 Mon Sep 17 00:00:00 2001 From: Chunxian Zhang <1836891291@qq.com> Date: Fri, 5 Aug 2022 02:46:47 +0800 Subject: [PATCH] =?UTF-8?q?fe-37=20=E4=BF=AE=E6=94=B9=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E6=9D=A1=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lazy-timer-fe/src/App.js | 2 +- lazy-timer-fe/src/components/Footer.jsx | 2 +- lazy-timer-fe/src/components/Sidebar.jsx | 4 +-- lazy-timer-fe/src/data/dummy.js | 49 +++++++++++++++++++++----------- 4 files changed, 36 insertions(+), 21 deletions(-) diff --git a/lazy-timer-fe/src/App.js b/lazy-timer-fe/src/App.js index fc9612c..6bfa38d 100644 --- a/lazy-timer-fe/src/App.js +++ b/lazy-timer-fe/src/App.js @@ -66,7 +66,7 @@ const App = () => { {/* dashboard */} )} /> - )} /> + )} /> {/* pages */} } /> diff --git a/lazy-timer-fe/src/components/Footer.jsx b/lazy-timer-fe/src/components/Footer.jsx index fab337a..455dfb3 100644 --- a/lazy-timer-fe/src/components/Footer.jsx +++ b/lazy-timer-fe/src/components/Footer.jsx @@ -3,7 +3,7 @@ import React from 'react'; const Footer = () => (

- © 2022 All rights reserved by Shoppy.com + © 2022 All rights reserved by 1836891291@qq.com

); diff --git a/lazy-timer-fe/src/components/Sidebar.jsx b/lazy-timer-fe/src/components/Sidebar.jsx index 6817233..a60c3dc 100644 --- a/lazy-timer-fe/src/components/Sidebar.jsx +++ b/lazy-timer-fe/src/components/Sidebar.jsx @@ -46,8 +46,8 @@ const Sidebar = () => {

{item.links.map((link) => ( ({ backgroundColor: isActive ? currentColor : '', diff --git a/lazy-timer-fe/src/data/dummy.js b/lazy-timer-fe/src/data/dummy.js index 92823bd..01545d8 100644 --- a/lazy-timer-fe/src/data/dummy.js +++ b/lazy-timer-fe/src/data/dummy.js @@ -471,87 +471,102 @@ export const employeesGrid = [ export const links = [ { - title: 'Dashboard', + title: '数据面板', links: [ { - name: 'ecommerce', + name: '总览', + englishName: 'overview', icon: , }, - ], - }, - - { - title: 'Pages', - links: [ { - name: 'orders', + name: '表格', + englishName: 'customers', + icon: , + }, + { + name: '屏幕使用时间', + englishName: 'orders', icon: , }, { - name: 'employees', + name: '第一次屏幕使用', + englishName: 'employees', icon: , }, { - name: 'customers', + name: '最后一次屏幕使用', + englishName: 'customers', icon: , }, ], }, { - title: 'Apps', + title: '标签', links: [ { - name: 'calendar', + name: '学习', + englishName: 'calendar', icon: , }, { - name: 'kanban', + name: '工作', + englishName: 'kanban', icon: , }, { - name: 'editor', + name: '娱乐', + englishName: 'editor', icon: , }, { - name: 'color-picker', + name: '生活', + englishName: 'color-picker', icon: , }, ], }, { - title: 'Charts', + title: '单项', links: [ { name: 'line', + englishName: 'line', icon: , }, { name: 'area', + englishName: 'area', icon: , }, { name: 'bar', + englishName: 'bar', icon: , }, { name: 'pie', + englishName: 'pie', icon: , }, { name: 'financial', + englishName: 'financial', icon: , }, { name: 'color-mapping', + englishName: 'color-mapping', icon: , }, { name: 'pyramid', + englishName: 'pyramid', icon: , }, { name: 'stacked', + englishName: 'stacked', icon: , }, ],