Fixed #3
This commit is contained in:
parent
047c1fa01a
commit
5f91198af5
21 changed files with 1807 additions and 788 deletions
|
@ -19,6 +19,11 @@
|
|||
"static/chunks/main.js",
|
||||
"static/chunks/pages/index.js"
|
||||
],
|
||||
"/404": [
|
||||
"static/chunks/webpack.js",
|
||||
"static/chunks/main.js",
|
||||
"static/chunks/pages/404.js"
|
||||
],
|
||||
"/_app": [
|
||||
"static/chunks/webpack.js",
|
||||
"static/chunks/main.js",
|
||||
|
@ -33,6 +38,11 @@
|
|||
"static/chunks/webpack.js",
|
||||
"static/chunks/main.js",
|
||||
"static/chunks/pages/controlpanel.js"
|
||||
],
|
||||
"/controlpanel/commands": [
|
||||
"static/chunks/webpack.js",
|
||||
"static/chunks/main.js",
|
||||
"static/chunks/pages/controlpanel/commands.js"
|
||||
]
|
||||
},
|
||||
"ampFirstPages": []
|
||||
|
|
BIN
.next/cache/webpack/client-development/0.pack
vendored
BIN
.next/cache/webpack/client-development/0.pack
vendored
Binary file not shown.
BIN
.next/cache/webpack/client-development/index.pack
vendored
BIN
.next/cache/webpack/client-development/index.pack
vendored
Binary file not shown.
BIN
.next/cache/webpack/server-development/0.pack
vendored
BIN
.next/cache/webpack/server-development/0.pack
vendored
Binary file not shown.
BIN
.next/cache/webpack/server-development/index.pack
vendored
BIN
.next/cache/webpack/server-development/index.pack
vendored
Binary file not shown.
|
@ -3,5 +3,7 @@
|
|||
"/_error": "pages/_error.js",
|
||||
"/_document": "pages/_document.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
|
@ -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()
|
|
@ -1 +0,0 @@
|
|||
{"c":["webpack"],"r":[],"m":[]}
|
|
@ -1 +0,0 @@
|
|||
{"c":["webpack"],"r":[],"m":[]}
|
|
@ -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
|
|
@ -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==
|
11
pages/404.js
11
pages/404.js
|
@ -1,3 +1,12 @@
|
|||
import Head from 'next/head'
|
||||
|
||||
export default function Custom404() {
|
||||
return <h1>404 - Page Not Found</h1>
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>404</title>
|
||||
</Head>
|
||||
<h1>404 - Page Not Found</h1>
|
||||
</>
|
||||
)
|
||||
}
|
|
@ -1,9 +1,13 @@
|
|||
import '../styles/globals.css'
|
||||
import Navbar from '../components/Navbar'
|
||||
import Head from 'next/head'
|
||||
|
||||
function MyApp({ Component, pageProps }) {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>Cath Dashboard</title>
|
||||
</Head>
|
||||
<Navbar/>
|
||||
<div className='page-container'>
|
||||
<Component {...pageProps} />
|
||||
|
|
|
@ -7,6 +7,7 @@ import TableContainer from '@material-ui/core/TableContainer';
|
|||
import TableHead from '@material-ui/core/TableHead';
|
||||
import TableRow from '@material-ui/core/TableRow';
|
||||
import Paper from '@material-ui/core/Paper';
|
||||
import Head from 'next/head'
|
||||
|
||||
const useStyles = makeStyles({
|
||||
table: {
|
||||
|
@ -29,28 +30,33 @@ function Commands() {
|
|||
const classes = useStyles();
|
||||
|
||||
return (
|
||||
<TableContainer component={Paper} style={{ background: '#1F1B24' }}>
|
||||
<Table className={classes.table} aria-label="simple table">
|
||||
<TableHead>
|
||||
<TableRow>
|
||||
<TableCell style={{ color: '#fff' }}>Commands</TableCell>
|
||||
<TableCell align="right" style={{ color: '#fff' }}>Description</TableCell>
|
||||
<TableCell align="right" style={{ color: '#fff' }}>Status</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
<TableBody>
|
||||
{rows.map((row) => (
|
||||
<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>
|
||||
<>
|
||||
<Head>
|
||||
<title>Cath Commands</title>
|
||||
</Head>
|
||||
<TableContainer component={Paper} style={{ background: '#1F1B24' }}>
|
||||
<Table className={classes.table} aria-label="simple table">
|
||||
<TableHead>
|
||||
<TableRow>
|
||||
<TableCell style={{ color: '#fff' }}>Commands</TableCell>
|
||||
<TableCell align="right" style={{ color: '#fff' }}>Description</TableCell>
|
||||
<TableCell align="right" style={{ color: '#fff' }}>Status</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
</TableBody>
|
||||
</Table>
|
||||
</TableContainer>
|
||||
</TableHead>
|
||||
<TableBody>
|
||||
{rows.map((row) => (
|
||||
<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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,18 @@
|
|||
import React from 'react'
|
||||
import CardContainer from '../../components/CardContainer'
|
||||
import Head from 'next/head'
|
||||
|
||||
function index() {
|
||||
return (
|
||||
<div>
|
||||
<h1>Control Panel</h1>
|
||||
<CardContainer link='/controlpanel/commands'>Commands</CardContainer>
|
||||
</div>
|
||||
<>
|
||||
<Head>
|
||||
<title>Cath Control Panel</title>
|
||||
</Head>
|
||||
<div>
|
||||
<h1>Control Panel</h1>
|
||||
<CardContainer link='/controlpanel/commands'>Commands</CardContainer>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue