Skip to content

Commit

Permalink
add test site
Browse files Browse the repository at this point in the history
Signed-off-by: misilelaboratory <[email protected]>
  • Loading branch information
MisileLab committed Mar 4, 2024
1 parent 8f0ee8d commit 797721b
Show file tree
Hide file tree
Showing 20 changed files with 482 additions and 332 deletions.
56 changes: 0 additions & 56 deletions dist/assets/index-7R55vlA8.js

This file was deleted.

58 changes: 58 additions & 0 deletions dist/assets/index-BwA1AyMN.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/assets/index-Cdnxcrd8.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/assets/index-D7OeI8Bu.css

This file was deleted.

34 changes: 34 additions & 0 deletions dist/dark/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 17 additions & 17 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<!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" />
<link rel="icon" href="/logo.svg"/>
<title>AnA</title>
<script type="module" crossorigin src="/assets/index-7R55vlA8.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-D7OeI8Bu.css">
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>

</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" />
<link rel="icon" href="/dark/logo.svg"/>
<title>Lambda</title>
<script type="module" crossorigin src="/assets/index-BwA1AyMN.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Cdnxcrd8.css">
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>

</body>
</html>
Expand Down
34 changes: 34 additions & 0 deletions dist/light/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
3 changes: 1 addition & 2 deletions projects/lambda/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
28 changes: 7 additions & 21 deletions projects/lambda/frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

166 changes: 166 additions & 0 deletions projects/lambda/frontend/src/Admin.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div>
<ColorModeScript />
<ColorModeProvider>
<div class="h-screen flex flex-col">
<NavBar />
<div class="flex flex-grow justify-center items-center">
<Card class="flex h-5/6 w-fit flex-col">
<Table>
<TableHeader>
<TableRow>
<TableHead>이름</TableHead>
<TableHead>학번</TableHead>
<TableHead>시간</TableHead>
</TableRow>
</TableHeader>
<TableBody>
<Index each={testdata}>
{(i) => {
return (<TableRow onClick={()=>console.log(i())}>
<TableCell>{i().name}</TableCell>
<TableCell>{i().number}</TableCell>
<TableCell>{i().time.toString()}</TableCell>
</TableRow>)
}}
</Index>
</TableBody>
</Table>
</Card>
</div>
</div>
</ColorModeProvider>
</div>
);
};

export default Admin;
1 change: 1 addition & 0 deletions projects/lambda/frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const App: Component = () => {
<div class="flex flex-col justify-center mb-20 items-center">
<img src={`/${(()=>{const {colorMode} = useColorMode();return colorMode();})()}/logo.svg`} alt="Lambda" width={200} />
<h1 class="mt-4 font-bold text-5xl">Lambda</h1>
<h2 class="mt-2 font-normal text-4xl">The simplest form</h2>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 797721b

Please sign in to comment.