Skip to content

Commit 78d3d14

Browse files
authored
Merge branch 'NCUAppTeam:main' into main
2 parents 1c55448 + b67c05e commit 78d3d14

21 files changed

+669
-112
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dev-dist
1717
.idea
1818
.DS_Store
1919
.env
20+
2021
*.suo
2122
*.ntvs*
2223
*.njsproj

package-lock.json

Lines changed: 60 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
"test": "playwright test"
1212
},
1313
"dependencies": {
14+
"@heroicons/react": "^2.1.5",
1415
"@supabase/supabase-js": "^2.45.3",
1516
"@tanstack/react-router": "^1.56.2",
17+
"flowbite-react-icons": "^1.1.0",
1618
"react": "^18.3.1",
1719
"react-dom": "^18.3.1",
18-
"supabase": "^1.200.3"
20+
"supabase": "^1.223.10"
1921
},
2022
"devDependencies": {
2123
"@playwright/test": "^1.47.0",

src/components/Common/Center.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/components/DrawerOption.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Link } from "@tanstack/react-router";
2+
import { CaretDown, CaretRight } from "flowbite-react-icons/solid";
23
import { useState } from "react";
3-
import { HStack, SidebarArrowDownIcon, SidebarArrowRightIcon, VStack } from "../components";
4+
import { HStack, VStack } from "../components";
45

56
const options = [
67
{ name: "首頁", engName: "Home", pageNav: "/" },
@@ -29,9 +30,9 @@ export const DrawerOption = () => {
2930
<HStack className="bg-blue-200" key={option.name}>
3031
<div className="flex items-center" onClick={() => toggleOption(option.name)}>
3132
{openOptions[option.name] ? (
32-
<SidebarArrowDownIcon fill="currentColor" stroke={"#B1B1B1"} size={20} />
33+
<CaretDown />
3334
) : (
34-
<SidebarArrowRightIcon fill="currentColor" stroke={"#B1B1B1"} size={20} />
35+
<CaretRight />
3536
)}
3637
</div>
3738
<Link to={option.pageNav}>

src/components/icons/BellIcon.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
import React from 'react';
3+
import IconProps from '../interface/IconProps';
4+
import { BasicIcon } from './BasicIcon';
5+
6+
export const BellIcon: React.FC<IconProps> = ({ fill, stroke, size }) => (
7+
<BasicIcon fill={fill} stroke={stroke} size={size}>
8+
<path stroke-linecap="round" stroke-linejoin="round" d="M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0" />
9+
</BasicIcon>
10+
);
11+
12+
export default BellIcon;

src/components/icons/ClockIcon.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
import React from 'react';
3+
import IconProps from '../interface/IconProps';
4+
import { BasicIcon } from './BasicIcon';
5+
6+
export const ClockIcon: React.FC<IconProps> = ({ fill, stroke, size }) => (
7+
<BasicIcon fill={fill} stroke={stroke} size={size}>
8+
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/>
9+
</BasicIcon>
10+
);
11+
12+
export default ClockIcon;

src/components/icons/PinIcon.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
import React from 'react';
3+
import IconProps from '../interface/IconProps';
4+
import { BasicIcon } from './BasicIcon';
5+
6+
export const PinIcon: React.FC<IconProps> = ({ fill, stroke, size }) => (
7+
<BasicIcon fill={fill} stroke={stroke} size={size}>
8+
<path fill-rule="evenodd" d="m7.539 14.841.003.003.002.002a.755.755 0 0 0 .912 0l.002-.002.003-.003.012-.009a5.57 5.57 0 0 0 .19-.153 15.588 15.588 0 0 0 2.046-2.082c1.101-1.362 2.291-3.342 2.291-5.597A5 5 0 0 0 3 7c0 2.255 1.19 4.235 2.292 5.597a15.591 15.591 0 0 0 2.046 2.082 8.916 8.916 0 0 0 .189.153l.012.01ZM8 8.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" clip-rule="evenodd" />
9+
</BasicIcon>
10+
);
11+
12+
export default PinIcon;

src/components/icons/PlusIcon.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
import IconProps from '../interface/IconProps';
3+
import { BasicIcon } from './BasicIcon';
4+
5+
export const PlusIcon: React.FC<IconProps> = ({ fill, stroke, size }) => (
6+
<BasicIcon fill={fill} stroke={stroke} size={size}>
7+
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
8+
</BasicIcon>
9+
);
10+
11+
export default PlusIcon;

src/components/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
// Common Components
2-
export { Center } from './Common/Center';
32
export { Button } from './Common/customButton';
43
export { HStack } from './Common/HStack';
54
export { Image } from './Common/Image';
65
export { VStack } from './Common/VStack';
76
export { Header } from './Header';
87
// Icons
8+
export { BellIcon } from './icons/BellIcon';
99
export { CalendarIcon } from './icons/CalendarIcon';
10+
export { ClockIcon } from './icons/ClockIcon';
1011
export { LogoutIcon } from './icons/LogoutIcon';
12+
export { PinIcon } from './icons/PinIcon';
13+
export { PlusIcon } from './icons/PlusIcon';
1114
export { SidebarArrowDownIcon } from './icons/SidebarArrowDownIcon';
1215
export { SidebarArrowRightIcon } from './icons/SidebarArrowRightIcon';
1316

0 commit comments

Comments
 (0)