From 797721b224a761ad39580b40dd027d7c32dfb4ad Mon Sep 17 00:00:00 2001 From: misilelaboratory Date: Mon, 4 Mar 2024 16:28:15 +0900 Subject: [PATCH] add test site Signed-off-by: misilelaboratory --- dist/assets/index-7R55vlA8.js | 56 ----- dist/assets/index-BwA1AyMN.js | 58 +++++ dist/assets/index-Cdnxcrd8.css | 1 + dist/assets/index-D7OeI8Bu.css | 1 - dist/dark/logo.svg | 34 +++ dist/index.html | 34 +-- dist/light/logo.svg | 34 +++ dist/{logo.svg => universal/ana.svg} | 0 projects/lambda/frontend/package.json | 3 +- projects/lambda/frontend/pnpm-lock.yaml | 28 +-- projects/lambda/frontend/src/Admin.tsx | 166 +++++++++++++ projects/lambda/frontend/src/App.tsx | 1 + projects/lambda/frontend/src/ana.tsx | 51 +++- .../lambda/frontend/src/components/navbar.tsx | 4 + .../frontend/src/components/ui/charts.tsx | 226 ------------------ .../frontend/src/components/ui/input.tsx | 20 ++ .../frontend/src/components/ui/table.tsx | 68 ++++++ .../frontend/src/components/ui/textarea.tsx | 19 ++ projects/lambda/frontend/src/definition.tsx | 8 - projects/lambda/frontend/src/index.tsx | 2 + 20 files changed, 482 insertions(+), 332 deletions(-) delete mode 100644 dist/assets/index-7R55vlA8.js create mode 100644 dist/assets/index-BwA1AyMN.js create mode 100644 dist/assets/index-Cdnxcrd8.css delete mode 100644 dist/assets/index-D7OeI8Bu.css create mode 100644 dist/dark/logo.svg create mode 100644 dist/light/logo.svg rename dist/{logo.svg => universal/ana.svg} (100%) create mode 100644 projects/lambda/frontend/src/Admin.tsx delete mode 100644 projects/lambda/frontend/src/components/ui/charts.tsx create mode 100644 projects/lambda/frontend/src/components/ui/input.tsx create mode 100644 projects/lambda/frontend/src/components/ui/table.tsx create mode 100644 projects/lambda/frontend/src/components/ui/textarea.tsx diff --git a/dist/assets/index-7R55vlA8.js b/dist/assets/index-7R55vlA8.js deleted file mode 100644 index 9760cb11f..000000000 --- a/dist/assets/index-7R55vlA8.js +++ /dev/null @@ -1,56 +0,0 @@ -var Zd=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Zv=Zd((eS,zn)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(i){if(i.ep)return;i.ep=!0;const r=s(i);fetch(i.href,r)}})();const Jd=(e,t)=>e===t,Vn=Symbol("solid-proxy"),Bn={equals:Jd};let hl=pl;const Ne=1,Hn=2,dl={owned:null,cleanups:null,context:null,owner:null};var J=null;let Di=null,Qd=null,ot=null,Mt=null,pe=null,ri=0;function ul(e,t){const s=ot,n=J,i=e.length===0,r=t===void 0?n:t,o=i?dl:{owned:null,cleanups:null,context:r?r.context:null,owner:r},a=i?e:()=>e(()=>Yt(()=>li(o)));J=o,ot=null;try{return ss(a,!0)}finally{ot=s,J=n}}function Oe(e,t){t=t?Object.assign({},Bn,t):Bn;const s={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=i=>(typeof i=="function"&&(i=i(s.value)),gl(s,i));return[fl.bind(s),n]}function Kt(e,t,s){const n=kr(e,t,!1,Ne);sn(n)}function oi(e,t,s){hl=ou;const n=kr(e,t,!1,Ne);(!s||!s.render)&&(n.user=!0),pe?pe.push(n):sn(n)}function xt(e,t,s){s=s?Object.assign({},Bn,s):Bn;const n=kr(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=s.equals||void 0,sn(n),fl.bind(n)}function Yt(e){if(ot===null)return e();const t=ot;ot=null;try{return e()}finally{ot=t}}function vr(e,t,s){const n=Array.isArray(e);let i,r=s&&s.defer;return o=>{let a;if(n){a=Array(e.length);for(let c=0;ct(a,i,o));return i=a,l}}function tu(e){oi(()=>Yt(e))}function en(e){return J===null||(J.cleanups===null?J.cleanups=[e]:J.cleanups.push(e)),e}function eu(){return J}function su(e,t){const s=J,n=ot;J=e,ot=null;try{return ss(t,!0)}catch(i){Or(i)}finally{J=s,ot=n}}function nu(e){const t=ot,s=J;return Promise.resolve().then(()=>{ot=t,J=s;let n;return ss(e,!1),ot=J=null,n?n.done:void 0})}function Sr(e,t){const s=Symbol("context");return{id:s,Provider:lu(s),defaultValue:e}}function ai(e){return J&&J.context&&J.context[e.id]!==void 0?J.context[e.id]:e.defaultValue}function Mr(e){const t=xt(e),s=xt(()=>Ji(t()));return s.toArray=()=>{const n=s();return Array.isArray(n)?n:n!=null?[n]:[]},s}function fl(){if(this.sources&&this.state)if(this.state===Ne)sn(this);else{const e=Mt;Mt=null,ss(()=>$n(this),!1),Mt=e}if(ot){const e=this.observers?this.observers.length:0;ot.sources?(ot.sources.push(this),ot.sourceSlots.push(e)):(ot.sources=[this],ot.sourceSlots=[e]),this.observers?(this.observers.push(ot),this.observerSlots.push(ot.sources.length-1)):(this.observers=[ot],this.observerSlots=[ot.sources.length-1])}return this.value}function gl(e,t,s){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&ss(()=>{for(let i=0;i1e6)throw Mt=[],new Error},!1)),t}function sn(e){if(!e.fn)return;li(e);const t=ri;iu(e,e.value,t)}function iu(e,t,s){let n;const i=J,r=ot;ot=J=e;try{n=e.fn(t)}catch(o){return e.pure&&(e.state=Ne,e.owned&&e.owned.forEach(li),e.owned=null),e.updatedAt=s+1,Or(o)}finally{ot=r,J=i}(!e.updatedAt||e.updatedAt<=s)&&(e.updatedAt!=null&&"observers"in e?gl(e,n):e.value=n,e.updatedAt=s)}function kr(e,t,s,n=Ne,i){const r={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:J,context:J?J.context:null,pure:s};return J===null||J!==dl&&(J.owned?J.owned.push(r):J.owned=[r]),r}function jn(e){if(e.state===0)return;if(e.state===Hn)return $n(e);if(e.suspense&&Yt(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;s--)if(e=t[s],e.state===Ne)sn(e);else if(e.state===Hn){const n=Mt;Mt=null,ss(()=>$n(e,t[0]),!1),Mt=n}}function ss(e,t){if(Mt)return e();let s=!1;t||(Mt=[]),pe?s=!0:pe=[],ri++;try{const n=e();return ru(s),n}catch(n){s||(pe=null),Mt=null,Or(n)}}function ru(e){if(Mt&&(pl(Mt),Mt=null),e)return;const t=pe;pe=null,t.length&&ss(()=>hl(t),!1)}function pl(e){for(let t=0;t=0;t--)li(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function au(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Or(e,t=J){throw au(e)}function Ji(e){if(typeof e=="function"&&!e.length)return Ji(e());if(Array.isArray(e)){const t=[];for(let s=0;si=Yt(()=>(J.context={...J.context,[e]:n.value},Mr(()=>n.children))),void 0),i}}function B(e,t){return Yt(()=>e(t||{}))}function gn(){return!0}const Qi={get(e,t,s){return t===Vn?s:e.get(t)},has(e,t){return t===Vn?!0:e.has(t)},set:gn,deleteProperty:gn,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:gn,deleteProperty:gn}},ownKeys(e){return e.keys()}};function Pi(e){return(e=typeof e=="function"?e():e)?e:{}}function cu(){for(let e=0,t=this.length;e=0;a--){const l=Pi(e[a])[o];if(l!==void 0)return l}},has(o){for(let a=e.length-1;a>=0;a--)if(o in Pi(e[a]))return!0;return!1},keys(){const o=[];for(let a=0;a=0;o--){const a=e[o];if(!a)continue;const l=Object.getOwnPropertyNames(a);for(let c=l.length-1;c>=0;c--){const h=l[c];if(h==="__proto__"||h==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,h);if(!n[h])n[h]=d.get?{enumerable:!0,configurable:!0,get:cu.bind(s[h]=[d.get.bind(a)])}:d.value!==void 0?d:void 0;else{const u=s[h];u&&(d.get?u.push(d.get.bind(a)):d.value!==void 0&&u.push(()=>d.value))}}}const i={},r=Object.keys(n);for(let o=r.length-1;o>=0;o--){const a=r[o],l=n[a];l&&l.get?Object.defineProperty(i,a,l):i[a]=l?l.value:void 0}return i}function Qt(e,...t){if(Vn in e){const i=new Set(t.length>1?t.flat():t[0]),r=t.map(o=>new Proxy({get(a){return o.includes(a)?e[a]:void 0},has(a){return o.includes(a)&&a in e},keys(){return o.filter(a=>a in e)}},Qi));return r.push(new Proxy({get(o){return i.has(o)?void 0:e[o]},has(o){return i.has(o)?!1:o in e},keys(){return Object.keys(e).filter(o=>!i.has(o))}},Qi)),r}const s={},n=t.map(()=>({}));for(const i of Object.getOwnPropertyNames(e)){const r=Object.getOwnPropertyDescriptor(e,i),o=!r.get&&!r.set&&r.enumerable&&r.writable&&r.configurable;let a=!1,l=0;for(const c of t)c.includes(i)&&(a=!0,o?n[l][i]=r.value:Object.defineProperty(n[l],i,r)),++l;a||(o?s[i]=r.value:Object.defineProperty(s,i,r))}return[...n,s]}const hu=e=>`Stale read from <${e}>.`;function bl(e){const t=e.keyed,s=xt(()=>e.when,void 0,{equals:(n,i)=>t?n===i:!n==!i});return xt(()=>{const n=s();if(n){const i=e.children;return typeof i=="function"&&i.length>0?Yt(()=>i(t?n:()=>{if(!Yt(s))throw hu("Show");return e.when})):i}return e.fallback},void 0,void 0)}const du=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],uu=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...du]),fu=new Set(["innerHTML","textContent","innerText","children"]),gu=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),pu=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function mu(e,t){const s=pu[e];return typeof s=="object"?s[t]?s.$:void 0:s}const bu=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),yu={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function _u(e,t,s){let n=s.length,i=t.length,r=n,o=0,a=0,l=t[i-1].nextSibling,c=null;for(;oh-a){const b=t[o];for(;a{i=r,t===document?e():Wt(t,e(),t.firstChild?null:void 0,s)},n.owner),()=>{i(),t.textContent=""}}function Z(e,t,s){let n;const i=()=>{const o=document.createElement("template");return o.innerHTML=e,s?o.content.firstChild.firstChild:o.content.firstChild},r=t?()=>Yt(()=>document.importNode(n||(n=i()),!0)):()=>(n||(n=i())).cloneNode(!0);return r.cloneNode=r,r}function Dr(e,t=window.document){const s=t[vo]||(t[vo]=new Set);for(let n=0,i=e.length;ni.call(e,s[1],r))}else e.addEventListener(t,s)}function Mu(e,t,s={}){const n=Object.keys(t||{}),i=Object.keys(s);let r,o;for(r=0,o=i.length;ri.children=ms(e,t.children,i.children)),Kt(()=>t.ref&&t.ref(e)),Kt(()=>Du(e,t,s,!0,i,!0)),i}function Ou(e,t,s){return Yt(()=>e(t,s))}function Wt(e,t,s,n){if(s!==void 0&&!n&&(n=[]),typeof t!="function")return ms(e,t,n,s);Kt(i=>ms(e,t(),i,s),n)}function Du(e,t,s,n,i={},r=!1){t||(t={});for(const o in i)if(!(o in t)){if(o==="children")continue;i[o]=Mo(e,o,null,i[o],s,r)}for(const o in t){if(o==="children"){n||ms(e,t.children);continue}const a=t[o];i[o]=Mo(e,o,a,i[o],s,r)}}function Pu(e){return e.toLowerCase().replace(/-([a-z])/g,(t,s)=>s.toUpperCase())}function So(e,t,s){const n=t.trim().split(/\s+/);for(let i=0,r=n.length;i-1&&yu[t.split(":")[0]];d?wu(e,d,t,s):ps(e,gu[t]||t,s)}return s}function Tu(e){const t=`$$${e.type}`;let s=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==s&&Object.defineProperty(e,"target",{configurable:!0,value:s}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return s||document}});s;){const n=s[t];if(n&&!s.disabled){const i=s[`${t}Data`];if(i!==void 0?n.call(s,i,e):n.call(s,e),e.cancelBubble)return}s=s._$host||s.parentNode||s.host}}function ms(e,t,s,n,i){for(;typeof s=="function";)s=s();if(t===s)return s;const r=typeof t,o=n!==void 0;if(e=o&&s[0]&&s[0].parentNode||e,r==="string"||r==="number")if(r==="number"&&(t=t.toString()),o){let a=s[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),s=rs(e,s,n,a)}else s!==""&&typeof s=="string"?s=e.firstChild.data=t:s=e.textContent=t;else if(t==null||r==="boolean")s=rs(e,s,n);else{if(r==="function")return Kt(()=>{let a=t();for(;typeof a=="function";)a=a();s=ms(e,a,s,n)}),()=>s;if(Array.isArray(t)){const a=[],l=s&&Array.isArray(s);if(tr(a,t,s,i))return Kt(()=>s=ms(e,a,s,n,!0)),()=>s;if(a.length===0){if(s=rs(e,s,n),o)return s}else l?s.length===0?ko(e,a,n):_u(e,s,a):(s&&rs(e),ko(e,a));s=a}else if(t.nodeType){if(Array.isArray(s)){if(o)return s=rs(e,s,n,t);rs(e,s,null,t)}else s==null||s===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);s=t}}return s}function tr(e,t,s,n){let i=!1;for(let r=0,o=t.length;r=0;o--){const a=t[o];if(i!==a){const l=a.parentNode===e;!r&&!o?l?e.replaceChild(i,a):e.insertBefore(i,s):l&&a.remove()}else r=!0}}else e.insertBefore(i,s);return[i]}const Cu=!1;/*! - * Original code by Chakra UI - * MIT Licensed, Copyright (c) 2019 Segun Adebayo. - * - * Credits to the Chakra UI team: - * https://github.com/chakra-ui/chakra-ui/blob/main/packages/color-mode/src/color-mode-context.ts - */const yl=Sr();function Au(){const e=ai(yl);if(e===void 0)throw new Error("[kobalte]: `useColorMode` must be used within a `ColorModeProvider`");return e}/*! - * Original code by Chakra UI - * MIT Licensed, Copyright (c) 2019 Segun Adebayo. - * - * Credits to the Chakra UI team: - * https://github.com/chakra-ui/chakra-ui/blob/main/packages/color-mode/src/storage-manager.ts - */const _l="kb-color-mode";function Eu(e){return{ssr:!1,type:"localStorage",get:t=>{let s;try{s=localStorage.getItem(e)}catch{}return s??t},set:t=>{try{localStorage.setItem(e,t)}catch{}}}}const Ru=Eu(_l);/*! - * Original code by Chakra UI - * MIT Licensed, Copyright (c) 2019 Segun Adebayo. - * - * Credits to the Chakra UI team: - * https://github.com/chakra-ui/chakra-ui/blob/main/packages/color-mode/src/color-mode.utils.ts - */const Pr="system";function xl(){return window.matchMedia("(prefers-color-scheme: dark)")}function Lu(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}function Iu(e,t=!0){const s=t?Lu():void 0;document.documentElement.dataset.kbTheme=e,document.documentElement.style.colorScheme=e,s?.()}function wl(e){return xl().matches??e==="dark"?"dark":"light"}function Fu(e){const t="light",s=e.get(t)??t;return s==="system"?wl():s}function Nu(e){const t=xl(),s=n=>{e(n.matches?"dark":"light")};return t.addEventListener("change",s),()=>{t.removeEventListener("change",s)}}function vl(e){const t=()=>e.initialColorMode??Pr,s=()=>e.storageManager??Ru;let n;const[i,r]=Oe(Fu(s())),o=h=>{r(h),Iu(h,e.disableTransitionOnChange)},a=h=>{n&&(n(),n=void 0);const d=h==="system";d&&(n=Nu(o)),o(d?wl():h),s().set(h)},l=()=>{a(i()==="dark"?"light":"dark")};oi(()=>{a(s().get()??t())}),en(()=>{n?.()});const c={colorMode:i,setColorMode:a,toggleColorMode:l};return B(yl.Provider,{value:c,get children(){return e.children}})}var Wu=Z(" - - - - -
- - - + + + + + + + + Lambda + + + + + +
+ + + diff --git a/dist/light/logo.svg b/dist/light/logo.svg new file mode 100644 index 000000000..9e31448c0 --- /dev/null +++ b/dist/light/logo.svg @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/dist/logo.svg b/dist/universal/ana.svg similarity index 100% rename from dist/logo.svg rename to dist/universal/ana.svg diff --git a/projects/lambda/frontend/package.json b/projects/lambda/frontend/package.json index e56077e50..74997ff45 100644 --- a/projects/lambda/frontend/package.json +++ b/projects/lambda/frontend/package.json @@ -23,10 +23,9 @@ "dependencies": { "@kobalte/core": "0.12.2", "@solidjs/router": "0.12.4", - "chart.js": "4.4.2", "clsx": "2.1.0", + "dayjs": "1.11.10", "mobile-device-detect": "0.4.3", - "moment": "2.30.1", "solid-js": "1.8.15", "tailwindcss-animate": "1.0.7", "vite-tsconfig-paths": "4.3.1" diff --git a/projects/lambda/frontend/pnpm-lock.yaml b/projects/lambda/frontend/pnpm-lock.yaml index 00c1952e3..bdec1fa92 100644 --- a/projects/lambda/frontend/pnpm-lock.yaml +++ b/projects/lambda/frontend/pnpm-lock.yaml @@ -11,18 +11,15 @@ dependencies: '@solidjs/router': specifier: 0.12.4 version: 0.12.4(solid-js@1.8.15) - chart.js: - specifier: 4.4.2 - version: 4.4.2 clsx: specifier: 2.1.0 version: 2.1.0 + dayjs: + specifier: 1.11.10 + version: 1.11.10 mobile-device-detect: specifier: 0.4.3 version: 0.4.3 - moment: - specifier: 2.30.1 - version: 2.30.1 solid-js: specifier: 1.8.15 version: 1.8.15 @@ -591,10 +588,6 @@ packages: solid-js: 1.8.15 dev: false - /@kurkle/color@0.3.2: - resolution: {integrity: sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw==} - dev: false - /@nodelib/fs.scandir@2.1.5: resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -1096,13 +1089,6 @@ packages: supports-color: 5.5.0 dev: true - /chart.js@4.4.2: - resolution: {integrity: sha512-6GD7iKwFpP5kbSD4MeRRRlTnQvxfQREy36uEtm1hzHzcOqwWx0YEHuspuoNlslu+nciLIB7fjjsHkUv/FzFcOg==} - engines: {pnpm: '>=8'} - dependencies: - '@kurkle/color': 0.3.2 - dev: false - /chokidar@3.6.0: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} @@ -1176,6 +1162,10 @@ packages: /csstype@3.1.3: resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + /dayjs@1.11.10: + resolution: {integrity: sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==} + dev: false + /debug@4.3.4: resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} engines: {node: '>=6.0'} @@ -1458,10 +1448,6 @@ packages: resolution: {integrity: sha512-SN9EBE9SoJgkb83kuUVoIp3R9OGYE5dYEnLEz2oLooh0DzgtQ72BJmpNGqrgFvmfE4iLR2CaVJ3RjUcStheVZg==} dev: false - /moment@2.30.1: - resolution: {integrity: sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==} - dev: false - /ms@2.1.2: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} diff --git a/projects/lambda/frontend/src/Admin.tsx b/projects/lambda/frontend/src/Admin.tsx new file mode 100644 index 000000000..6db81a2ec --- /dev/null +++ b/projects/lambda/frontend/src/Admin.tsx @@ -0,0 +1,166 @@ +import { Index, type Component } from 'solid-js'; +import { ColorModeProvider, ColorModeScript} from '@kobalte/core'; +import NavBar from './components/navbar'; +import { Card } from './components/ui/card'; +import dayjs, { unix } from "dayjs"; +import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from './components/ui/table'; + +const testdata = [{ + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw", + why: ":sunglasses:", + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}, { + number: "00000", + name: "a", + pnumber: "01011112222", + me: "I use nixos btw\n".repeat(10), + why: ":sunglasses:\n".repeat(10), + time: dayjs() +}] + +const Admin: Component = () => { + return ( +
+ + +
+ +
+ + + + + 이름 + 학번 + 시간 + + + + + {(i) => { + return (console.log(i())}> + {i().name} + {i().number} + {i().time.toString()} + ) + }} + + +
+
+
+
+
+
+ ); +}; + +export default Admin; diff --git a/projects/lambda/frontend/src/App.tsx b/projects/lambda/frontend/src/App.tsx index 2b2bd9810..47924b62a 100644 --- a/projects/lambda/frontend/src/App.tsx +++ b/projects/lambda/frontend/src/App.tsx @@ -13,6 +13,7 @@ const App: Component = () => {
{const {colorMode} = useColorMode();return colorMode();})()}/logo.svg`} alt="Lambda" width={200} />

Lambda

+

The simplest form

diff --git a/projects/lambda/frontend/src/ana.tsx b/projects/lambda/frontend/src/ana.tsx index e25e67d62..b68ffbf20 100644 --- a/projects/lambda/frontend/src/ana.tsx +++ b/projects/lambda/frontend/src/ana.tsx @@ -1,14 +1,63 @@ import { JSX } from "solid-js"; import NavBar from "./components/navbar"; import { ColorModeProvider, ColorModeScript } from "@kobalte/core"; +import { Card, CardContent, CardHeader, CardTitle } from "./components/ui/card"; +import { Col, Grid } from "./components/ui/grid"; +import { Textarea } from "./components/ui/textarea"; +import { Input } from "./components/ui/input"; +import { Button } from "./components/ui/button"; export default function AnA(): JSX.Element { return (
- +
+ +
+ +
+

AnA 지원 폼

+ + + {CardwithInput("학번")} + {CardwithInput("이름")} + {CardwithInput("전화번호")} + + + + + {CardwithTextArea("자기 소개(250자 제한)")} + {CardwithTextArea("동아리 지원 이유(250자 제한)")} + + + +
+
+
+
); } + +function _CardShorcut(title: string, content: JSX.Element, classes: string | undefined = "") { + return ( + + + {title} + + + {content} + + + ); +} + +function CardwithInput(title: string) { + return _CardShorcut(title, ) +} + +function CardwithTextArea(title: string) { + return _CardShorcut(title,