Repair skeleton
This commit is contained in:
21
.eslintrc.cjs
Normal file
21
.eslintrc.cjs
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
// module.exports = {
|
||||||
|
// root: true,
|
||||||
|
// env: { browser: true, es2020: true },
|
||||||
|
// extends: [
|
||||||
|
// 'eslint:recommended',
|
||||||
|
// 'plugin:react/recommended',
|
||||||
|
// 'plugin:react/jsx-runtime',
|
||||||
|
// 'plugin:react-hooks/recommended',
|
||||||
|
// ],
|
||||||
|
// ignorePatterns: ['dist', '.eslintrc.cjs'],
|
||||||
|
// parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
|
||||||
|
// settings: { react: { version: '18.2' } },
|
||||||
|
// plugins: ['react-refresh'],
|
||||||
|
// rules: {
|
||||||
|
// 'react/jsx-no-target-blank': 'off',
|
||||||
|
// 'react-refresh/only-export-components': [
|
||||||
|
// 'warn',
|
||||||
|
// { allowConstantExport: true },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
|
// }
|
||||||
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Auto detect text files and perform LF normalization
|
||||||
|
* text=auto
|
||||||
10
.prettierrc.json
Normal file
10
.prettierrc.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"printWidth": 100,
|
||||||
|
"tabWidth": 4,
|
||||||
|
"useTabs": false,
|
||||||
|
"semi": true,
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "es5",
|
||||||
|
"bracketSpacing": true
|
||||||
|
}
|
||||||
|
|
||||||
22
index.html
Normal file
22
index.html
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/src/assets/freepik/logo-web.png" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
|
||||||
|
<meta name="description" content="COD Maintenance Machine" />
|
||||||
|
<meta name="keywords" content="sypiu, piu, ggcp, permit, cod" />
|
||||||
|
<meta name="author" content="idetama" />
|
||||||
|
<meta property="og:title" content="COD system machine" />
|
||||||
|
<meta property="og:description" content="app for machine system piu" />
|
||||||
|
<meta property="og:image" content="https://www.pi-utilitas.com/img/LOGO_PIU_BnW.ee2ccd30.png" />
|
||||||
|
<meta property="og:url" content="https://www.pi-utilitas.com/" />
|
||||||
|
|
||||||
|
<title>Call of Duty</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="root"></div>
|
||||||
|
<script type="module" src="/src/main.jsx"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
45
package.json
Normal file
45
package.json
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
"name": "antd-vite-react-sypiu",
|
||||||
|
"homepage": "/dashboard/home",
|
||||||
|
"private": true,
|
||||||
|
"version": "1.0.0",
|
||||||
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "vite",
|
||||||
|
"build": "vite build",
|
||||||
|
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
|
||||||
|
"preview": "vite preview"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@ant-design/icons": "^6.0.0",
|
||||||
|
"@nivo/line": "^0.88.0",
|
||||||
|
"@nivo/pie": "^0.88.0",
|
||||||
|
"antd": "^5.15.2",
|
||||||
|
"axios": "^1.8.4",
|
||||||
|
"browser-image-compression": "^2.0.2",
|
||||||
|
"crypto-js": "^4.2.0",
|
||||||
|
"dayjs": "^1.11.13",
|
||||||
|
"exceljs": "^4.4.0",
|
||||||
|
"file-saver": "^2.0.5",
|
||||||
|
"html2canvas": "^1.4.1",
|
||||||
|
"jspdf": "^3.0.1",
|
||||||
|
"mqtt": "^5.14.0",
|
||||||
|
"qrcode": "^1.5.4",
|
||||||
|
"react": "^18.2.0",
|
||||||
|
"react-dom": "^18.2.0",
|
||||||
|
"react-icons": "^4.11.0",
|
||||||
|
"react-router-dom": "^6.22.3",
|
||||||
|
"sweetalert2": "^11.17.2"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/react": "^18.2.64",
|
||||||
|
"@types/react-dom": "^18.2.21",
|
||||||
|
"@vitejs/plugin-react": "^4.2.1",
|
||||||
|
"eslint": "^8.57.0",
|
||||||
|
"eslint-plugin-react": "^7.34.0",
|
||||||
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
|
"eslint-plugin-react-refresh": "^0.4.5",
|
||||||
|
"vite": "^5.1.6"
|
||||||
|
},
|
||||||
|
"packageManager": "pnpm@10.2.1+sha512.398035c7bd696d0ba0b10a688ed558285329d27ea994804a52bad9167d8e3a72bcb993f9699585d3ca25779ac64949ef422757a6c31102c12ab932e5cbe5cc92"
|
||||||
|
}
|
||||||
50
vite.config.js
Normal file
50
vite.config.js
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
/* eslint-disable no-undef */
|
||||||
|
import { defineConfig } from 'vite'
|
||||||
|
import react from '@vitejs/plugin-react'
|
||||||
|
import { resolve } from "path";
|
||||||
|
|
||||||
|
// https://vitejs.dev/config/
|
||||||
|
export default defineConfig({
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
// '@': resolve(__dirname, './src'),
|
||||||
|
// apis: resolve(__dirname, "./src/apis"),
|
||||||
|
assets: resolve(__dirname, "./src/assets"),
|
||||||
|
// components: resolve(__dirname, "./src/components"),
|
||||||
|
// layouts: resolve(__dirname, "./src/layouts"),
|
||||||
|
// pages: resolve(__dirname, "./src/pages"),
|
||||||
|
// utils: resolve(__dirname, "./src/utils"),
|
||||||
|
// store: resolve(__dirname, "./src/store"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
plugins: [react()],
|
||||||
|
server: {
|
||||||
|
// port: 3036
|
||||||
|
port: 8592
|
||||||
|
},
|
||||||
|
preview: {
|
||||||
|
port: 8592
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// export default defineConfig({
|
||||||
|
// resolve: {
|
||||||
|
// alias: {
|
||||||
|
// // '@': resolve(__dirname, './src'),
|
||||||
|
// apis: resolve(__dirname, "./src/apis"),
|
||||||
|
// assets: resolve(__dirname, "./src/assets"),
|
||||||
|
// components: resolve(__dirname, "./src/components"),
|
||||||
|
// layouts: resolve(__dirname, "./src/layouts"),
|
||||||
|
// pages: resolve(__dirname, "./src/pages"),
|
||||||
|
// utils: resolve(__dirname, "./src/utils"),
|
||||||
|
// store: resolve(__dirname, "./src/store"),
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
// plugins: [react()],
|
||||||
|
// server: {
|
||||||
|
// port: 3036
|
||||||
|
// },
|
||||||
|
// preview: {
|
||||||
|
// port: 9525
|
||||||
|
// }
|
||||||
|
// })
|
||||||
Reference in New Issue
Block a user