generated from MisileLab/Base-repository
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: misilelaboratory <[email protected]>
- Loading branch information
Showing
20 changed files
with
482 additions
and
332 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.