init repo
This commit is contained in:
commit
f820f0142b
35
.gitignore
vendored
Normal file
35
.gitignore
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
# dependencies
|
||||
node_modules
|
||||
/.pnp
|
||||
.pnp.js
|
||||
|
||||
# editors and IDEs
|
||||
.idea
|
||||
.vscode
|
||||
*.sln
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.swp
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# production
|
||||
build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
*/.envrc
|
||||
*/.direnv
|
||||
data
|
||||
todo
|
||||
.env
|
5
.prettierrc.yml
Normal file
5
.prettierrc.yml
Normal file
@ -0,0 +1,5 @@
|
||||
trailingComma: 'es5'
|
||||
tabWidth: 4
|
||||
semi: true
|
||||
singleQuote: true
|
||||
printWidth: 120
|
32427
package-lock.json
generated
Normal file
32427
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
52
package.json
Normal file
52
package.json
Normal file
@ -0,0 +1,52 @@
|
||||
{
|
||||
"name": "signage",
|
||||
"version": "1.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.10.6",
|
||||
"@mantine/core": "^6.0.6",
|
||||
"@mantine/dropzone": "^6.0.17",
|
||||
"@mantine/ds": "^6.0.8",
|
||||
"@mantine/form": "^6.0.6",
|
||||
"@mantine/hooks": "^6.0.6",
|
||||
"@mantine/notifications": "^6.0.8",
|
||||
"@tabler/icons-react": "^2.16.0",
|
||||
"@testing-library/jest-dom": "^5.16.5",
|
||||
"@testing-library/react": "^13.4.0",
|
||||
"@testing-library/user-event": "^13.5.0",
|
||||
"axios": "^1.3.5",
|
||||
"http-proxy-middleware": "^2.0.6",
|
||||
"moment": "^2.29.4",
|
||||
"react": "^18.2.0",
|
||||
"react-beautiful-dnd": "^13.1.1",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "^6.10.0",
|
||||
"react-scripts": "5.0.1",
|
||||
"tabler-icons-react": "^1.56.0",
|
||||
"web-vitals": "^2.1.4"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "PORT=3008 react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
"react-app",
|
||||
"react-app/jest"
|
||||
]
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
}
|
||||
}
|
18
public/index.html
Normal file
18
public/index.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta name="description" content="Signage" />
|
||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||
<meta name="darkreader" content="disable" />
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<title>Signage</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
23
src/app.js
Normal file
23
src/app.js
Normal file
@ -0,0 +1,23 @@
|
||||
import Layout from './components/layout';
|
||||
import { MantineProvider, ColorSchemeProvider } from '@mantine/core';
|
||||
import { AuthProvider } from './tools/auth-provider';
|
||||
import { Notifications } from '@mantine/notifications';
|
||||
import { useColorSchemeToggle } from './tools/color-scheme-toggle'
|
||||
|
||||
const App = () => {
|
||||
const [ colorScheme, toggleColorScheme ] = useColorSchemeToggle();
|
||||
return (
|
||||
<>
|
||||
<AuthProvider>
|
||||
<ColorSchemeProvider colorScheme={colorScheme} toggleColorScheme={toggleColorScheme}>
|
||||
<MantineProvider withGlobalStyles withNormalizeCSS theme={{ colorScheme }}>
|
||||
<Notifications />
|
||||
<Layout />
|
||||
</MantineProvider>
|
||||
</ColorSchemeProvider>
|
||||
</AuthProvider>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
10
src/index.js
Normal file
10
src/index.js
Normal file
@ -0,0 +1,10 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import App from './app';
|
||||
|
||||
const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>
|
||||
);
|
11
src/setupProxy.js
Normal file
11
src/setupProxy.js
Normal file
@ -0,0 +1,11 @@
|
||||
const { createProxyMiddleware } = require('http-proxy-middleware');
|
||||
|
||||
module.exports = function(app) {
|
||||
app.use(
|
||||
'/api',
|
||||
createProxyMiddleware({
|
||||
target: 'http://192.168.2.183:5500',
|
||||
changeOrigin: true,
|
||||
})
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue
Block a user