This commit is contained in:
Elijah Lucian 2021-03-17 10:33:11 -06:00
parent 2b495779d3
commit 8ca4d55045
12 changed files with 51 additions and 19422 deletions

View File

@ -1,25 +1,25 @@
{ {
"files": { "files": {
"main.css": "/static/css/main.2aeebbe9.chunk.css", "main.css": "/static/css/main.2aeebbe9.chunk.css",
"main.js": "/static/js/main.4fce879a.chunk.js", "main.js": "/static/js/main.f6d60162.chunk.js",
"main.js.map": "/static/js/main.4fce879a.chunk.js.map", "main.js.map": "/static/js/main.f6d60162.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.bd34c7ed.js", "runtime-main.js": "/static/js/runtime-main.bd34c7ed.js",
"runtime-main.js.map": "/static/js/runtime-main.bd34c7ed.js.map", "runtime-main.js.map": "/static/js/runtime-main.bd34c7ed.js.map",
"static/css/2.015dc0ab.chunk.css": "/static/css/2.015dc0ab.chunk.css", "static/css/2.015dc0ab.chunk.css": "/static/css/2.015dc0ab.chunk.css",
"static/js/2.f435e38a.chunk.js": "/static/js/2.f435e38a.chunk.js", "static/js/2.59f895bd.chunk.js": "/static/js/2.59f895bd.chunk.js",
"static/js/2.f435e38a.chunk.js.map": "/static/js/2.f435e38a.chunk.js.map", "static/js/2.59f895bd.chunk.js.map": "/static/js/2.59f895bd.chunk.js.map",
"static/js/3.5458f0cb.chunk.js": "/static/js/3.5458f0cb.chunk.js", "static/js/3.5458f0cb.chunk.js": "/static/js/3.5458f0cb.chunk.js",
"static/js/3.5458f0cb.chunk.js.map": "/static/js/3.5458f0cb.chunk.js.map", "static/js/3.5458f0cb.chunk.js.map": "/static/js/3.5458f0cb.chunk.js.map",
"index.html": "/index.html", "index.html": "/index.html",
"static/css/2.015dc0ab.chunk.css.map": "/static/css/2.015dc0ab.chunk.css.map", "static/css/2.015dc0ab.chunk.css.map": "/static/css/2.015dc0ab.chunk.css.map",
"static/css/main.2aeebbe9.chunk.css.map": "/static/css/main.2aeebbe9.chunk.css.map", "static/css/main.2aeebbe9.chunk.css.map": "/static/css/main.2aeebbe9.chunk.css.map",
"static/js/2.f435e38a.chunk.js.LICENSE.txt": "/static/js/2.f435e38a.chunk.js.LICENSE.txt" "static/js/2.59f895bd.chunk.js.LICENSE.txt": "/static/js/2.59f895bd.chunk.js.LICENSE.txt"
}, },
"entrypoints": [ "entrypoints": [
"static/js/runtime-main.bd34c7ed.js", "static/js/runtime-main.bd34c7ed.js",
"static/css/2.015dc0ab.chunk.css", "static/css/2.015dc0ab.chunk.css",
"static/js/2.f435e38a.chunk.js", "static/js/2.59f895bd.chunk.js",
"static/css/main.2aeebbe9.chunk.css", "static/css/main.2aeebbe9.chunk.css",
"static/js/main.4fce879a.chunk.js" "static/js/main.f6d60162.chunk.js"
] ]
} }

View File

@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="3D Shock by Tanner and Elijah enterprises"/><link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⚡</text></svg>"><link rel="manifest" href="/manifest.json"/><title>3D Shock!</title><link href="/static/css/2.015dc0ab.chunk.css" rel="stylesheet"><link href="/static/css/main.2aeebbe9.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);p.length;)p.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==o[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"5458f0cb"}[e]+".chunk.js"}(e);var c=new Error;u=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,r[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonpclient=this.webpackJsonpclient||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var f=c;r()}([])</script><script src="/static/js/2.f435e38a.chunk.js"></script><script src="/static/js/main.4fce879a.chunk.js"></script></body></html> <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="3D Shock by Tanner and Elijah enterprises"/><link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⚡</text></svg>"><link rel="manifest" href="/manifest.json"/><title>3D Shock!</title><link href="/static/css/2.015dc0ab.chunk.css" rel="stylesheet"><link href="/static/css/main.2aeebbe9.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);p.length;)p.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==o[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"5458f0cb"}[e]+".chunk.js"}(e);var c=new Error;u=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,r[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonpclient=this.webpackJsonpclient||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var f=c;r()}([])</script><script src="/static/js/2.59f895bd.chunk.js"></script><script src="/static/js/main.f6d60162.chunk.js"></script></body></html>

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

19428
client/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +1,27 @@
import { Button, Divider, Form, Input, message, Row, Typography } from 'antd' import { Button, Divider, Form, Input, message, Row, Typography } from 'antd'
import FormItem from 'antd/lib/form/FormItem' import FormItem from 'antd/lib/form/FormItem'
import { Store } from 'antd/lib/form/interface'
import { Content } from 'antd/lib/layout/layout' import { Content } from 'antd/lib/layout/layout'
import React from 'react' import React from 'react'
import { useState } from 'react' import { useState } from 'react'
import { useHistory } from 'react-router-dom' import { useHistory } from 'react-router-dom'
import { createClient } from '../api' import { createClient } from '../api'
type FormData = {
name: string
email: string
phone: string
}
export const Dashboard = () => { export const Dashboard = () => {
const history = useHistory() const history = useHistory()
const [error, setError] = useState<string | null>(null) const [error, setError] = useState<string | null>(null)
const [form] = Form.useForm<FormData>()
const handleReset = () => {} const handleReset = () => {
form.resetFields()
}
const handleSubmit = async (values: Store) => { const handleSubmit = async (values: FormData) => {
if (values.phone.length < 10) { if (values.phone.length < 10) {
// helpful message // helpful message
message.error('Check all fields!') message.error('Check all fields!')
@ -40,6 +48,7 @@ export const Dashboard = () => {
</Typography.Text> </Typography.Text>
<Divider /> <Divider />
<Form <Form
form={form}
className="dashboard-form" className="dashboard-form"
onFinish={handleSubmit} onFinish={handleSubmit}
labelCol={{ span: 8 }} labelCol={{ span: 8 }}