fix: remove obsolete files and update service worker version
This commit is contained in:
parent
d2b5e00ae4
commit
a575cc1de3
|
|
@ -68,7 +68,6 @@ export const _ = {
|
|||
const build_path = dir.data(`/code/${site_id}/site/typings.d.ts`);
|
||||
let file = Bun.file(build_path);
|
||||
|
||||
console.log(build_path)
|
||||
if (!(await file.exists())) {
|
||||
const root = `/code/${site_id}/site/src`;
|
||||
await initFrontEnd(root, site_id);
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +1,2 @@
|
|||
±`dØœ©ròLô•‹éÀ9YÆÕTÁU¯&_§NÇØ%øVìÄ<C3AC>T‘Y*²VGŠæhT‹8Áu<05><>Ç
<L]«dC"Fi®Ó…Mc ÝOœó•Ní¢éЀ±S]Æ×µìÓ©žòÏü’ïpR¼Hb<>ËÓ¬È Aù‚Ê#÷ÀpÌ„1?›Ñ€gDiB òf1çr?0ôÁ2âbʱ,߸<C39F>¾‡PãÛn‡<øñÇúÑʶª)Búw}})¬T†d´=¿\•ïÿ`Ë»ªUŒáþb7áÓãX>
ž¸À®<|…+ݧ<C39D>ã!Á)hLK"aG¦K=P;<+qœ$, n€Ù|1¿¬›
|
||||
±`äÁœ©ròM¼218'Ë„†ÕTÁÑÏ"_gn
ñ%ø]¤Ñq·"l,:dí)-œg‹8aè4R7x¸ºö‚
ˆ8¥Å¬UoV—1°j²\#8GU@ØÄÀ9Œ<39>§ÇúêVŽ“OùGôâN@J$ !\¬'uzÎ ÛwÊ—p
|
||||
&?œÜÓ! ôÙž ´Ú€^{0äšýÑfñ!®ZýWg;Â@õ[|AøÑ{·Ú|i»ûü1O?zX¦ãVýB4ËUÿ¥°j\iVIFë¢ç<C2A2>ó²t°Ý»¦Uœá¡dˆI<CB86>·
°‚Ä5<C384>¡\ù5¥¦,lŸö!5q¾,‰º.õ ö¤Û䆬qQ½~à±
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
|
|
@ -0,0 +1,2 @@
|
|||
.ContextMenu{background:#fff;border:1px solid #ccc;outline:0}.MenuItem{text-align:left;background:#fff;border-bottom:1px solid #ececeb;outline:0;justify-content:space-between;width:100%;margin:0;padding:3px 5px 3px 10px;font-size:14px;line-height:1.5;display:flex}.MenuItem:hover .hot-key{border-color:#fff!important}.MenuItem:last-child{border-bottom:0}.MenuItem.open{background:#ddd}.MenuItem:disabled{color:#ccc}.MenuItem:focus,.MenuItem:not([disabled]):active{color:#fff;background:#527dff}
|
||||
/*# sourceMappingURL=ed.f0595191.css.map */
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,2 @@
|
|||
@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(source-sans-3-cyrillic-ext-400-normal.092a473c.woff2)format("woff2"),url(source-sans-3-cyrillic-ext-400-normal.ff53f249.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(source-sans-3-cyrillic-400-normal.f971b9ad.woff2)format("woff2"),url(source-sans-3-cyrillic-400-normal.d31f6c55.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(source-sans-3-greek-ext-400-normal.2f1e4560.woff2)format("woff2"),url(source-sans-3-greek-ext-400-normal.e253957a.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(source-sans-3-greek-400-normal.30e09ac6.woff2)format("woff2"),url(source-sans-3-greek-400-normal.a9365509.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(source-sans-3-vietnamese-400-normal.8175b15f.woff2)format("woff2"),url(source-sans-3-vietnamese-400-normal.a0f67db9.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(source-sans-3-latin-ext-400-normal.8180fdee.woff2)format("woff2"),url(source-sans-3-latin-ext-400-normal.0483ba2f.woff)format("woff");unicode-range:U+100-2AF,U+304,U+308,U+329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(source-sans-3-latin-400-normal.43f5aafe.woff2)format("woff2"),url(source-sans-3-latin-400-normal.6f62a854.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
|
||||
/*# sourceMappingURL=index.5278b069.css.map */
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(jetbrains-mono-cyrillic-ext-400-normal.01f99d06.woff2)format("woff2"),url(jetbrains-mono-cyrillic-ext-400-normal.b19dae56.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(jetbrains-mono-cyrillic-400-normal.c27eb9dd.woff2)format("woff2"),url(jetbrains-mono-cyrillic-400-normal.12e183dd.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(jetbrains-mono-greek-400-normal.fab63212.woff2)format("woff2"),url(jetbrains-mono-greek-400-normal.69c2db8b.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(jetbrains-mono-vietnamese-400-normal.72fde104.woff2)format("woff2"),url(jetbrains-mono-vietnamese-400-normal.cde33dd0.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(jetbrains-mono-latin-ext-400-normal.510ef9e7.woff2)format("woff2"),url(jetbrains-mono-latin-ext-400-normal.8522e56b.woff)format("woff");unicode-range:U+100-2AF,U+304,U+308,U+329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(jetbrains-mono-latin-400-normal.785c446b.woff2)format("woff2"),url(jetbrains-mono-latin-400-normal.f1e9154a.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
|
||||
/*# sourceMappingURL=index.d6a5dd12.css.map */
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0"><title>Prasi: App Builder</title><link rel="stylesheet" href="/index.f3513746.css"><link rel="stylesheet" crossorigin href="/index.d6a5dd12.css"><link rel="stylesheet" crossorigin href="/index.5278b069.css"><script src="/index.runtime.a3d7f961.js"></script><script>window.__REACT_DEVTOOLS_GLOBAL_HOOK__={isDisabled:!0,_renderers:{}};</script></head><body classname="flex-col flex-1 w-full min-h-screen flex opacity-0"> <div id="root"></div> <script src="/index.f9a0b8af.js" defer></script> </body></html>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,2 @@
|
|||
!function(e,r,t,n,o){var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},i="function"==typeof f[n]&&f[n],s=i.cache||{},a="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function d(r,t){if(!s[r]){if(!e[r]){var o="function"==typeof f[n]&&f[n];if(!t&&o)return o(r,!0);if(i)return i(r,!0);if(a&&"string"==typeof r)return a(r);var c=Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}l.resolve=function(t){var n=e[r][1][t];return null!=n?n:t},l.cache={};var u=s[r]=new d.Module(r);e[r][0].call(u.exports,l,u,u.exports,this)}return s[r].exports;function l(e){var r=l.resolve(e);return!1===r?{}:d(r)}}d.isParcelRequire=!0,d.Module=function(e){this.id=e,this.bundle=d,this.exports={}},d.modules=e,d.cache=s,d.parent=i,d.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]},Object.defineProperty(d,"root",{get:function(){return f[n]}}),f[n]=d;for(var c=0;c<r.length;c++)d(r[c])}({"1gwlL":[function(e,r,t){e("483d81254de90d1c").register(e("e997c0f52321ab57").getBundleURL("5btbX"),JSON.parse('["5btbX","index.f9a0b8af.js","51CIF","login.729781e5.js","lWnYB","logout.150df938.js","h2EQ2","register.46daa674.js","b1ger","all.1ee07229.js","ikCXc","ed.229d9857.js","fG1Xp","wasm_gzip.922c2de1.wasm","a06ck","standalone.d4ef49b4.js","dVyrU","estree.77f58917.js","gkR2P","typescript.264d3a10.js","j1vrr","dist.477afcf4.js","bqVt6","esm.72b78f35.js","hydmX","index.module.f4641cc5.js","8U2pR","ed.f0595191.css","kvQTi","sworker.js"]'))},{"483d81254de90d1c":"6dXzV",e997c0f52321ab57:"1ILkO"}],"6dXzV":[function(e,r,t){var n=new Map;r.exports.register=function(e,r){for(var t=0;t<r.length-1;t+=2)n.set(r[t],{baseUrl:e,path:r[t+1]})},r.exports.resolve=function(e){var r=n.get(e);if(null==r)throw Error("Could not resolve bundle with id "+e);return new URL(r.path,r.baseUrl).toString()}},{}],"1ILkO":[function(e,r,t){var n={};function o(e){return(""+e).replace(/^((?:https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/.+)\/[^/]+$/,"$1")+"/"}t.getBundleURL=function(e){var r=n[e];return r||(r=function(){try{throw Error()}catch(r){var e=(""+r.stack).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^)\n]+/g);if(e)return o(e[2])}return"/"}(),n[e]=r),r},t.getBaseURL=o,t.getOrigin=function(e){var r=(""+e).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^/]+/);if(!r)throw Error("Origin not found");return r[0]}},{}]},["1gwlL"],0,"parcelRequire2d1f");
|
||||
//# sourceMappingURL=index.runtime.a3d7f961.js.map
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,49 @@
|
|||
!function(e,t,r,n,i){var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},l="function"==typeof s[n]&&s[n],o=l.cache||{},a="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function u(t,r){if(!o[t]){if(!e[t]){var i="function"==typeof s[n]&&s[n];if(!r&&i)return i(t,!0);if(l)return l(t,!0);if(a&&"string"==typeof t)return a(t);var d=Error("Cannot find module '"+t+"'");throw d.code="MODULE_NOT_FOUND",d}f.resolve=function(r){var n=e[t][1][r];return null!=n?n:r},f.cache={};var c=o[t]=new u.Module(t);e[t][0].call(c.exports,f,c,c.exports,this)}return o[t].exports;function f(e){var t=f.resolve(e);return!1===t?{}:u(t)}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=o,u.parent=l,u.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(u,"root",{get:function(){return s[n]}}),s[n]=u;for(var d=0;d<t.length;d++)u(t[d])}({cXyXr:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react/jsx-runtime"),i=e("web-utils"),s=e("../../../utils/ui/loading"),l=e("../../../utils/ui/form.style"),o=e("../../../utils/ui/form/input");r.default=(0,i.page)({url:"/login",component:({})=>{let e=(0,i.useLocal)({username:"",password:"",submitting:!1,init:!1},async()=>{let t=await _api.session();if(t&&t.id){let e=window.redirectTo;e?navigate(e):(localStorage.setItem("prasi-session",JSON.stringify(t)),navigate("/ed/"))}else e.init=!0,e.render()});return e.init?(0,n.jsx)("div",{className:"flex flex-1 flex-col items-center justify-center",children:(0,n.jsxs)("form",{onSubmit:async t=>{if(t.preventDefault(),e.submitting=!0,e.render(),"failed"===(await _api.login(e.username,e.password)).status)e.submitting=!1,e.render();else{let e=window.redirectTo;e?(location.href.includes("localhost")&&e.includes("/editor")&&(e=e.replace("/editor","/ed")),navigate(e)):(location.href.includes("localhost"),navigate("/ed"))}},className:cx("border-[3px] border-black",l.formStyle),children:[(0,n.jsx)("div",{className:"title",children:"Login"}),(0,n.jsxs)("label",{className:"mt-3",children:[(0,n.jsx)("span",{children:"Username"}),(0,n.jsx)(o.Input,{form:e,name:"username"})]}),(0,n.jsxs)("label",{children:[(0,n.jsx)("span",{children:"Password"}),(0,n.jsx)(o.Input,{form:e,name:"password",type:"password"})]}),(0,n.jsx)("button",{type:"submit",disabled:e.submitting,children:e.submitting?"Loading...":"Submit"}),(0,n.jsx)("div",{className:"pt-2",children:(0,n.jsx)("a",{href:"/register",className:"cursor-pointer underline",children:"Register"})})]})}):(0,n.jsx)(s.Loading,{})}})},{"react/jsx-runtime":"f4Tol","web-utils":"ccU4J","../../../utils/ui/loading":"loFlS","../../../utils/ui/form.style":"jUQFK","../../../utils/ui/form/input":"1FhYR","@parcel/transformer-js/src/esmodule-helpers.js":"2GYoY"}],jUQFK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"formStyle",()=>i);let i=css`
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
|
||||
.title {
|
||||
font-size: 18px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
margin-bottom: 10px;
|
||||
|
||||
> span {
|
||||
font-size: 14px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
input,
|
||||
select {
|
||||
border: 3px solid black;
|
||||
padding: 3px;
|
||||
width: 300px;
|
||||
font-size: 15px;
|
||||
|
||||
&:disabled {
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
color: white;
|
||||
padding: 5px;
|
||||
}
|
||||
button[type="submit"] {
|
||||
background: black;
|
||||
|
||||
&:disabled {
|
||||
background: #999;
|
||||
}
|
||||
}
|
||||
`},{"@parcel/transformer-js/src/esmodule-helpers.js":"2GYoY"}],"1FhYR":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Input",()=>s);var i=e("react/jsx-runtime");let s=e=>{let t={...e},{form:r,name:n}=e;delete t.form,delete t.name;let s=null;t.onChange&&(s=t.onChange,delete t.onChange);let l=r[n];return l instanceof URL&&(l=l.toString()),(0,i.jsx)("input",{value:l||"",spellCheck:!1,onInput:e=>{if(r[n]=e.currentTarget.value,s){let t=s(e.currentTarget.value);void 0!==t&&(r[n]=t)}r.render()},...t})}},{"react/jsx-runtime":"f4Tol","@parcel/transformer-js/src/esmodule-helpers.js":"2GYoY"}]},[],0,"parcelRequire2d1f");
|
||||
//# sourceMappingURL=login.729781e5.js.map
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
!function(e,o,r,n,t){var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},l="function"==typeof i[n]&&i[n],u=l.cache||{},f="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function s(o,r){if(!u[o]){if(!e[o]){var t="function"==typeof i[n]&&i[n];if(!r&&t)return t(o,!0);if(l)return l(o,!0);if(f&&"string"==typeof o)return f(o);var a=Error("Cannot find module '"+o+"'");throw a.code="MODULE_NOT_FOUND",a}d.resolve=function(r){var n=e[o][1][r];return null!=n?n:r},d.cache={};var c=u[o]=new s.Module(o);e[o][0].call(c.exports,d,c,c.exports,this)}return u[o].exports;function d(e){var o=d.resolve(e);return!1===o?{}:s(o)}}s.isParcelRequire=!0,s.Module=function(e){this.id=e,this.bundle=s,this.exports={}},s.modules=e,s.cache=u,s.parent=l,s.register=function(o,r){e[o]=[function(e,o){o.exports=r},{}]},Object.defineProperty(s,"root",{get:function(){return i[n]}}),i[n]=s;for(var a=0;a<o.length;a++)s(o[a])}({"1NKJn":[function(e,o,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react/jsx-runtime"),t=e("web-utils"),i=e("../../../utils/ui/loading");r.default=(0,t.page)({url:"/logout",component:({})=>(localStorage.clear(),_api.logout().then(()=>{location.href="/login"}),(0,n.jsx)(i.Loading,{}))})},{"react/jsx-runtime":"f4Tol","web-utils":"ccU4J","../../../utils/ui/loading":"loFlS","@parcel/transformer-js/src/esmodule-helpers.js":"2GYoY"}]},[],0,"parcelRequire2d1f");
|
||||
//# sourceMappingURL=logout.150df938.js.map
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
!function(e,r,t,n,s){var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},l="function"==typeof i[n]&&i[n],o=l.cache||{},a="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function u(r,t){if(!o[r]){if(!e[r]){var s="function"==typeof i[n]&&i[n];if(!t&&s)return s(r,!0);if(l)return l(r,!0);if(a&&"string"==typeof r)return a(r);var d=Error("Cannot find module '"+r+"'");throw d.code="MODULE_NOT_FOUND",d}p.resolve=function(t){var n=e[r][1][t];return null!=n?n:t},p.cache={};var c=o[r]=new u.Module(r);e[r][0].call(c.exports,p,c,c.exports,this)}return o[r].exports;function p(e){var r=p.resolve(e);return!1===r?{}:u(r)}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=o,u.parent=l,u.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]},Object.defineProperty(u,"root",{get:function(){return i[n]}}),i[n]=u;for(var d=0;d<r.length;d++)u(r[d])}({Pi9M3:[function(e,r,t){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(t);var n=e("react/jsx-runtime"),s=e("web-utils"),i=e("../../../utils/ui/loading"),l=e("../../../utils/ui/form.style"),o=e("../../../utils/ui/form/input");t.default=(0,s.page)({url:"/register",component:({})=>{let e=(0,s.useLocal)({username:"",password:"",email:"",submitting:!1,init:!1},async()=>{let r=await _api.session();r&&r.id?navigate("/ed"):(e.init=!0,e.render())});return e.init?(0,n.jsx)("div",{className:"flex flex-1 flex-col items-center justify-center",children:(0,n.jsxs)("form",{onSubmit:async r=>{r.preventDefault(),e.submitting=!0,e.render();let t=await _api.register({username:e.username,password:e.password,email:e.email});"failed"===t.status?(e.submitting=!1,e.render(),alert(t.reason)):(await _api.login(e.username,e.password),alert("Registration success!"),navigate("/ed"))},className:cx("border-[3px] border-black",l.formStyle),children:[(0,n.jsx)("div",{className:"title",children:"Register"}),(0,n.jsxs)("label",{className:"mt-3",children:[(0,n.jsx)("span",{children:"Username"}),(0,n.jsx)(o.Input,{form:e,name:"username"})]}),(0,n.jsxs)("label",{children:[(0,n.jsx)("span",{children:"Password"}),(0,n.jsx)(o.Input,{form:e,name:"password",type:"password"})]}),(0,n.jsxs)("label",{children:[(0,n.jsx)("span",{children:"Email"}),(0,n.jsx)(o.Input,{form:e,name:"email"})]}),(0,n.jsx)("button",{type:"submit",disabled:e.submitting,children:e.submitting?"Loading...":"Submit"}),(0,n.jsx)("div",{className:"pt-2",children:(0,n.jsx)("a",{href:"/login",className:"cursor-pointer underline",children:"Login"})})]})}):(0,n.jsx)(i.Loading,{})}})},{"react/jsx-runtime":"f4Tol","web-utils":"ccU4J","../../../utils/ui/loading":"loFlS","../../../utils/ui/form.style":"jUQFK","../../../utils/ui/form/input":"1FhYR","@parcel/transformer-js/src/esmodule-helpers.js":"2GYoY"}],jUQFK:[function(e,r,t){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(t),n.export(t,"formStyle",()=>s);let s=css`
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
|
||||
.title {
|
||||
font-size: 18px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
margin-bottom: 10px;
|
||||
|
||||
> span {
|
||||
font-size: 14px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
input,
|
||||
select {
|
||||
border: 3px solid black;
|
||||
padding: 3px;
|
||||
width: 300px;
|
||||
font-size: 15px;
|
||||
|
||||
&:disabled {
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
color: white;
|
||||
padding: 5px;
|
||||
}
|
||||
button[type="submit"] {
|
||||
background: black;
|
||||
|
||||
&:disabled {
|
||||
background: #999;
|
||||
}
|
||||
}
|
||||
`},{"@parcel/transformer-js/src/esmodule-helpers.js":"2GYoY"}],"1FhYR":[function(e,r,t){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(t),n.export(t,"Input",()=>i);var s=e("react/jsx-runtime");let i=e=>{let r={...e},{form:t,name:n}=e;delete r.form,delete r.name;let i=null;r.onChange&&(i=r.onChange,delete r.onChange);let l=t[n];return l instanceof URL&&(l=l.toString()),(0,s.jsx)("input",{value:l||"",spellCheck:!1,onInput:e=>{if(t[n]=e.currentTarget.value,i){let r=i(e.currentTarget.value);void 0!==r&&(t[n]=r)}t.render()},...r})}},{"react/jsx-runtime":"f4Tol","@parcel/transformer-js/src/esmodule-helpers.js":"2GYoY"}]},[],0,"parcelRequire2d1f");
|
||||
//# sourceMappingURL=register.46daa674.js.map
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
|
|
@ -190,7 +190,7 @@ const manifest = [
|
|||
"/index.module.7282dc17.js",
|
||||
"/ed.400f6bfd.css"
|
||||
];
|
||||
const version = "5c74ed0c";
|
||||
const version = "ac42c40d";
|
||||
(0, _serviceWorker._register)(manifest, version);
|
||||
|
||||
},{"@parcel/service-worker":"et5Hi"}],"et5Hi":[function(require,module,exports) {
|
||||
|
|
@ -564,7 +564,7 @@ function _routerNodeToTable(initialPath, initialNode) {
|
|||
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
||||
parcelHelpers.defineInteropFlag(exports);
|
||||
parcelHelpers.export(exports, "version", ()=>version);
|
||||
const version = "u8acymc";
|
||||
const version = "c4787o8";
|
||||
|
||||
},{"@parcel/transformer-js/src/esmodule-helpers.js":"jpDjm"}],"lXNsG":[function(require,module,exports) {
|
||||
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
||||
|
|
|
|||
Loading…
Reference in New Issue