Sfoglia il codice sorgente

fe-01 初始化react17项目

master
Chunxian Zhang 3 anni fa
parent
commit
9a1304dcf6
5 ha cambiato i file con 1588 aggiunte e 617 eliminazioni
  1. +1509
    -559
      lazy-timer-fe/package-lock.json
  2. +28
    -12
      lazy-timer-fe/package.json
  3. +37
    -28
      lazy-timer-fe/src/App.css
  4. +9
    -11
      lazy-timer-fe/src/index.css
  5. +5
    -7
      lazy-timer-fe/src/index.tsx

+ 1509
- 559
lazy-timer-fe/package-lock.json
File diff soppresso perché troppo grande
Vedi File


+ 28
- 12
lazy-timer-fe/package.json Vedi File

@ -1,19 +1,24 @@
{ {
"name": "lazy-timer-fe", "name": "project_syncfusion_dashboard",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@testing-library/jest-dom": "^5.16.5", "@syncfusion/ej2": "^19.4.48",
"@testing-library/react": "^13.3.0", "@syncfusion/ej2-react-calendars": "^19.4.48",
"@testing-library/user-event": "^13.5.0", "@syncfusion/ej2-react-charts": "^19.4.50",
"@types/jest": "^27.5.2", "@syncfusion/ej2-react-dropdowns": "^19.4.52",
"@types/node": "^16.11.56", "@syncfusion/ej2-react-grids": "^19.4.50",
"@types/react": "^18.0.17", "@syncfusion/ej2-react-inputs": "^19.4.52",
"@types/react-dom": "^18.0.6", "@syncfusion/ej2-react-kanban": "^19.4.48",
"react": "^18.2.0", "@syncfusion/ej2-react-popups": "^19.4.52",
"react-dom": "^18.2.0", "@syncfusion/ej2-react-richtexteditor": "^19.4.50",
"react-scripts": "5.0.1", "@syncfusion/ej2-react-schedule": "^19.4.50",
"typescript": "^4.7.4", "react": "^17.0.2",
"react-dom": "^17.0.2",
"react-icons": "^4.3.1",
"react-router-dom": "^6.2.1",
"react-scripts": "5.0.0",
"typescript": "^4.5.5",
"web-vitals": "^2.1.4" "web-vitals": "^2.1.4"
}, },
"scripts": { "scripts": {
@ -39,5 +44,16 @@
"last 1 firefox version", "last 1 firefox version",
"last 1 safari version" "last 1 safari version"
] ]
},
"devDependencies": {
"autoprefixer": "^10.4.2",
"eslint": "^8.9.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"postcss": "^8.4.6",
"tailwindcss": "^3.0.19"
} }
} }

+ 37
- 28
lazy-timer-fe/src/App.css Vedi File

@ -1,38 +1,47 @@
.App { @import url('https://cdn.syncfusion.com/ej2/material.css');
text-align: center;
}
.App-logo { .sidebar {
height: 40vmin; box-shadow: rgb(113 122 131 / 11%) 0px 7px 30px 0px;
pointer-events: none;
} }
.nav-item,
@media (prefers-reduced-motion: no-preference) { .navbar {
.App-logo { z-index: 10000;
animation: App-logo-spin infinite 20s linear; }
@media screen and (max-width:800px) {
.sidebar{
z-index: 10000000;
} }
} }
.App-header { .e-dlg-center-center, .e-quick-popup-wrapper.e-device{
background-color: #282c34; z-index: 1000000 !important;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
} }
.App-link { ::-webkit-scrollbar {
color: #61dafb; width: 6px;
}
::-webkit-scrollbar-thumb {
background-color: rgb(216, 216, 216);
border-radius: 40px;
}
::-webkit-scrollbar-track {
background-color: transparent;
} }
@keyframes App-logo-spin { /* color-picker style */
from { #preview {
transform: rotate(0deg); background: transparent
} url('https://ej2.syncfusion.com/react/demos/src/color-picker/images/pen.png')
to { no-repeat;
transform: rotate(360deg); display: inline-block;
} height: 80px;
margin: 10px 0;
min-width: 300px;
max-width: 600px;
background-color: #008000;
} }
.e-input-group:not(.e-float-icon-left), .e-input-group.e-success:not(.e-float-icon-left), .e-input-group.e-warning:not(.e-float-icon-left), .e-input-group.e-error:not(.e-float-icon-left), .e-input-group.e-control-wrapper:not(.e-float-icon-left), .e-input-group.e-control-wrapper.e-success:not(.e-float-icon-left), .e-input-group.e-control-wrapper.e-warning:not(.e-float-icon-left), .e-input-group.e-control-wrapper.e-error:not(.e-float-icon-left){
border: none;
}

+ 9
- 11
lazy-timer-fe/src/index.css Vedi File

@ -1,13 +1,11 @@
body { @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code { body{
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', margin: 0;
monospace; padding:0;
font-family: "Open Sans", sans-serif;
} }
@tailwind base;
@tailwind components;
@tailwind utilities;

+ 5
- 7
lazy-timer-fe/src/index.tsx Vedi File

@ -1,16 +1,14 @@
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom/client'; import ReactDOM from 'react-dom';
import './index.css'; import './index.css';
import App from './App'; import App from './App'
import reportWebVitals from './reportWebVitals'; import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot( ReactDOM.render(
document.getElementById('root') as HTMLElement
);
root.render(
<React.StrictMode> <React.StrictMode>
<App /> <App />
</React.StrictMode> </React.StrictMode>,
document.getElementById('root')
); );
// 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

||||||
x
 
000:0
Caricamento…
Annulla
Salva