This commit is contained in:
qt-coder 2021-06-21 11:18:30 +08:00
parent 047c1fa01a
commit 5f91198af5
21 changed files with 1807 additions and 788 deletions

View file

@ -19,6 +19,11 @@
"static/chunks/main.js", "static/chunks/main.js",
"static/chunks/pages/index.js" "static/chunks/pages/index.js"
], ],
"/404": [
"static/chunks/webpack.js",
"static/chunks/main.js",
"static/chunks/pages/404.js"
],
"/_app": [ "/_app": [
"static/chunks/webpack.js", "static/chunks/webpack.js",
"static/chunks/main.js", "static/chunks/main.js",
@ -33,6 +38,11 @@
"static/chunks/webpack.js", "static/chunks/webpack.js",
"static/chunks/main.js", "static/chunks/main.js",
"static/chunks/pages/controlpanel.js" "static/chunks/pages/controlpanel.js"
],
"/controlpanel/commands": [
"static/chunks/webpack.js",
"static/chunks/main.js",
"static/chunks/pages/controlpanel/commands.js"
] ]
}, },
"ampFirstPages": [] "ampFirstPages": []

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -3,5 +3,7 @@
"/_error": "pages/_error.js", "/_error": "pages/_error.js",
"/_document": "pages/_document.js", "/_document": "pages/_document.js",
"/": "pages/index.js", "/": "pages/index.js",
"/controlpanel": "pages/controlpanel.js" "/controlpanel/commands": "pages/controlpanel/commands.js",
"/controlpanel": "pages/controlpanel.js",
"/404": "pages/404.js"
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
self.__BUILD_MANIFEST = {__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static\u002Fchunks\u002Fpages\u002Findex.js"],"/_error":["static\u002Fchunks\u002Fpages\u002F_error.js"],"/controlpanel":["static\u002Fchunks\u002Fpages\u002Fcontrolpanel.js"],sortedPages:["\u002F","\u002F_app","\u002F_error","\u002Fcontrolpanel"]};self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB() self.__BUILD_MANIFEST = {__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static\u002Fchunks\u002Fpages\u002Findex.js"],"/404":["static\u002Fchunks\u002Fpages\u002F404.js"],"/_error":["static\u002Fchunks\u002Fpages\u002F_error.js"],"/controlpanel":["static\u002Fchunks\u002Fpages\u002Fcontrolpanel.js"],"/controlpanel/commands":["static\u002Fchunks\u002Fpages\u002Fcontrolpanel\u002Fcommands.js"],sortedPages:["\u002F","\u002F404","\u002F_app","\u002F_error","\u002Fcontrolpanel","\u002Fcontrolpanel\u002Fcommands"]};self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB()

View file

@ -1 +0,0 @@
{"c":["webpack"],"r":[],"m":[]}

View file

@ -1 +0,0 @@
{"c":["webpack"],"r":[],"m":[]}

View file

@ -1,12 +0,0 @@
self["webpackHotUpdate_N_E"]("webpack",{},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ "use strict";
/******/
/******/ /* webpack/runtime/getFullHash */
/******/ !function() {
/******/ __webpack_require__.h = function() { return "137b7d098b3ecd58f1a8"; }
/******/ }();
/******/
/******/ }
);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9fTl9FL3dlYnBhY2svcnVudGltZS9nZXRGdWxsSGFzaCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7VUFBQSxvQ0FBb0MsK0JBQStCLEUiLCJmaWxlIjoic3RhdGljL3dlYnBhY2svd2VicGFjay4zZGRlOWEzODM0ZTA3ZDMzYjE3Ny5ob3QtdXBkYXRlLmpzIiwic291cmNlc0NvbnRlbnQiOlsiX193ZWJwYWNrX3JlcXVpcmVfXy5oID0gZnVuY3Rpb24oKSB7IHJldHVybiBcIjEzN2I3ZDA5OGIzZWNkNThmMWE4XCI7IH0iXSwic291cmNlUm9vdCI6IiJ9

View file

@ -1,23 +0,0 @@
self["webpackHotUpdate_N_E"]("webpack",{},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ "use strict";
/******/
/******/ /* webpack/runtime/getFullHash */
/******/ !function() {
/******/ __webpack_require__.h = function() { return "3dde9a3834e07d33b177"; }
/******/ }();
/******/
/******/ /* webpack/runtime/compat */
/******/
/******/
/******/ // noop fns to prevent runtime errors during initialization
/******/ if (typeof self !== "undefined") {
/******/ self.$RefreshReg$ = function () {};
/******/ self.$RefreshSig$ = function () {
/******/ return function (type) {
/******/ return type;
/******/ };
/******/ };
/******/ }}
);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9fTl9FL3dlYnBhY2svcnVudGltZS9nZXRGdWxsSGFzaCIsIndlYnBhY2s6Ly9fTl9FL3dlYnBhY2svcnVudGltZS9jb21wYXQiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O1VBQUEsb0NBQW9DLCtCQUErQixFOzs7Ozs7U0NFbkU7U0FDQTtTQUNBO1NBQ0E7U0FDQTtTQUNBO1NBQ0E7U0FDQTtTQUNBLEMiLCJmaWxlIjoic3RhdGljL3dlYnBhY2svd2VicGFjay5mOTEzYTAwNmY1ZWYxZmIyOTRlZi5ob3QtdXBkYXRlLmpzIiwic291cmNlc0NvbnRlbnQiOlsiX193ZWJwYWNrX3JlcXVpcmVfXy5oID0gZnVuY3Rpb24oKSB7IHJldHVybiBcIjNkZGU5YTM4MzRlMDdkMzNiMTc3XCI7IH0iLCJcblxuLy8gbm9vcCBmbnMgdG8gcHJldmVudCBydW50aW1lIGVycm9ycyBkdXJpbmcgaW5pdGlhbGl6YXRpb25cbmlmICh0eXBlb2Ygc2VsZiAhPT0gXCJ1bmRlZmluZWRcIikge1xuXHRzZWxmLiRSZWZyZXNoUmVnJCA9IGZ1bmN0aW9uICgpIHt9O1xuXHRzZWxmLiRSZWZyZXNoU2lnJCA9IGZ1bmN0aW9uICgpIHtcblx0XHRyZXR1cm4gZnVuY3Rpb24gKHR5cGUpIHtcblx0XHRcdHJldHVybiB0eXBlO1xuXHRcdH07XG5cdH07XG59Il0sInNvdXJjZVJvb3QiOiIifQ==

View file

@ -1,3 +1,12 @@
import Head from 'next/head'
export default function Custom404() { export default function Custom404() {
return <h1>404 - Page Not Found</h1> return (
<>
<Head>
<title>404</title>
</Head>
<h1>404 - Page Not Found</h1>
</>
)
} }

View file

@ -1,9 +1,13 @@
import '../styles/globals.css' import '../styles/globals.css'
import Navbar from '../components/Navbar' import Navbar from '../components/Navbar'
import Head from 'next/head'
function MyApp({ Component, pageProps }) { function MyApp({ Component, pageProps }) {
return ( return (
<> <>
<Head>
<title>Cath Dashboard</title>
</Head>
<Navbar/> <Navbar/>
<div className='page-container'> <div className='page-container'>
<Component {...pageProps} /> <Component {...pageProps} />

View file

@ -7,6 +7,7 @@ import TableContainer from '@material-ui/core/TableContainer';
import TableHead from '@material-ui/core/TableHead'; import TableHead from '@material-ui/core/TableHead';
import TableRow from '@material-ui/core/TableRow'; import TableRow from '@material-ui/core/TableRow';
import Paper from '@material-ui/core/Paper'; import Paper from '@material-ui/core/Paper';
import Head from 'next/head'
const useStyles = makeStyles({ const useStyles = makeStyles({
table: { table: {
@ -29,28 +30,33 @@ function Commands() {
const classes = useStyles(); const classes = useStyles();
return ( return (
<TableContainer component={Paper} style={{ background: '#1F1B24' }}> <>
<Table className={classes.table} aria-label="simple table"> <Head>
<TableHead> <title>Cath Commands</title>
<TableRow> </Head>
<TableCell style={{ color: '#fff' }}>Commands</TableCell> <TableContainer component={Paper} style={{ background: '#1F1B24' }}>
<TableCell align="right" style={{ color: '#fff' }}>Description</TableCell> <Table className={classes.table} aria-label="simple table">
<TableCell align="right" style={{ color: '#fff' }}>Status</TableCell> <TableHead>
</TableRow> <TableRow>
</TableHead> <TableCell style={{ color: '#fff' }}>Commands</TableCell>
<TableBody> <TableCell align="right" style={{ color: '#fff' }}>Description</TableCell>
{rows.map((row) => ( <TableCell align="right" style={{ color: '#fff' }}>Status</TableCell>
<TableRow key={row.name}>
<TableCell component="th" scope="row" style={{ color: '#fff' }}>
{row.name}
</TableCell>
<TableCell align="right" style={{ color: '#fff' }}>{row.description}</TableCell>
<TableCell align="right" style={{ color: '#fff' }}>{row.status ? 'Online' : 'Offline'}</TableCell>
</TableRow> </TableRow>
))} </TableHead>
</TableBody> <TableBody>
</Table> {rows.map((row) => (
</TableContainer> <TableRow key={row.name}>
<TableCell component="th" scope="row" style={{ color: '#fff' }}>
{row.name}
</TableCell>
<TableCell align="right" style={{ color: '#fff' }}>{row.description}</TableCell>
<TableCell align="right" style={{ color: '#fff' }}>{row.status ? 'Online' : 'Offline'}</TableCell>
</TableRow>
))}
</TableBody>
</Table>
</TableContainer>
</>
); );
} }

View file

@ -1,12 +1,18 @@
import React from 'react' import React from 'react'
import CardContainer from '../../components/CardContainer' import CardContainer from '../../components/CardContainer'
import Head from 'next/head'
function index() { function index() {
return ( return (
<div> <>
<h1>Control Panel</h1> <Head>
<CardContainer link='/controlpanel/commands'>Commands</CardContainer> <title>Cath Control Panel</title>
</div> </Head>
<div>
<h1>Control Panel</h1>
<CardContainer link='/controlpanel/commands'>Commands</CardContainer>
</div>
</>
) )
} }