-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef05af3
commit 7d2eea5
Showing
75 changed files
with
1,530 additions
and
1,094 deletions.
There are no files selected for viewing
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,16 @@ | ||
dist | ||
node_modules | ||
.env | ||
tailwind.config.js | ||
|
||
# Ignore artifacts: | ||
build | ||
coverage | ||
|
||
# Ignore all HTML files: | ||
**/*.html | ||
|
||
vite-env.d.ts | ||
vite.config.ts | ||
|
||
**.md |
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,9 @@ | ||
{ | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": false, | ||
"trailingComma": "all", | ||
"printWidth": 80, | ||
"useTabs": false, | ||
"endOfLine":"auto" | ||
} |
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
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 |
---|---|---|
@@ -1,49 +1,57 @@ | ||
import { atom} from "recoil"; | ||
import { ChannelListArray, Guild, Roles, ServerList,ServerWithPresenceObject, User, userData} from "../Interface"; | ||
import { atom } from "recoil"; | ||
import { | ||
ChannelListArray, | ||
Guild, | ||
Roles, | ||
ServerList, | ||
ServerWithPresenceObject, | ||
User, | ||
userData, | ||
} from "../Interface"; | ||
|
||
export const ToggleState = atom({ | ||
key: "toggleState", | ||
default: false, | ||
}) | ||
key: "toggleState", | ||
default: false, | ||
}); | ||
export const ModerationPath = atom({ | ||
key:"ModerationPath", | ||
default:" " | ||
}) | ||
key: "ModerationPath", | ||
default: " ", | ||
}); | ||
export const NotifPopup = atom({ | ||
key:"NotifPopup", | ||
default:false | ||
}) | ||
key: "NotifPopup", | ||
default: false, | ||
}); | ||
|
||
export const UserData =atom<userData>({ | ||
key:"UserData", | ||
default:{ | ||
user:{} as User, | ||
guilds:[] as Guild[] | ||
} | ||
}) | ||
export const UserData = atom<userData>({ | ||
key: "UserData", | ||
default: { | ||
user: {} as User, | ||
guilds: [] as Guild[], | ||
}, | ||
}); | ||
export const Loading = atom({ | ||
key:"loading", | ||
default:true | ||
}) | ||
key: "loading", | ||
default: true, | ||
}); | ||
export const ChannelId = atom({ | ||
key:"ChannelIt", | ||
default:"" | ||
}) | ||
key: "ChannelIt", | ||
default: "", | ||
}); | ||
|
||
export const ChannelArray = atom<ChannelListArray[]>({ | ||
key:"ChannelArrayInterface", | ||
default: [] as ChannelListArray[] | ||
}) | ||
key: "ChannelArrayInterface", | ||
default: [] as ChannelListArray[], | ||
}); | ||
export const RoleArray = atom<Roles[]>({ | ||
key:'roles', | ||
default:[] as Roles[] | ||
}) | ||
key: "roles", | ||
default: [] as Roles[], | ||
}); | ||
|
||
export const AllServer = atom<ServerList[]>({ | ||
key:"Server List", | ||
default:[] as ServerList[] | ||
}) | ||
export const ServerWithPresenceArray=atom<ServerWithPresenceObject[]>({ | ||
key:"Server with Presence", | ||
default:[] as ServerWithPresenceObject[] | ||
}) | ||
key: "Server List", | ||
default: [] as ServerList[], | ||
}); | ||
export const ServerWithPresenceArray = atom<ServerWithPresenceObject[]>({ | ||
key: "Server with Presence", | ||
default: [] as ServerWithPresenceObject[], | ||
}); |
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
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 |
---|---|---|
@@ -1,35 +1,29 @@ | ||
import {Button }from "./Button"; | ||
import { Button } from "./Button"; | ||
|
||
interface Props { | ||
img:string; | ||
heading:string; | ||
description:string; | ||
buttonDesc:string; | ||
route:string | ||
|
||
img: string; | ||
heading: string; | ||
description: string; | ||
buttonDesc: string; | ||
route: string; | ||
} | ||
|
||
function Card(props:Props):JSX.Element { | ||
const {img,heading,description,buttonDesc,route}= props | ||
function Card(props: Props): JSX.Element { | ||
const { img, heading, description, buttonDesc, route } = props; | ||
return ( | ||
<div className="flex flex-col items-start justify-center gap-1 p-4 text-white rounded-lg bg-cardBox "> | ||
<div className="my-1"> | ||
<img src={img} className="h-7 w-7" alt="Icon" /> | ||
</div> | ||
<div className="my-1 text-xl font-medium text-white"> | ||
{heading} | ||
</div> | ||
<div className="my-1 text-base font-normal cursor-default "> | ||
{description} | ||
</div> | ||
<div className="my-1"> | ||
<Button | ||
route={route} | ||
text={buttonDesc} | ||
/> | ||
</div> | ||
<div className="my-1"> | ||
<img src={img} className="h-7 w-7" alt="Icon" /> | ||
</div> | ||
<div className="my-1 text-xl font-medium text-white">{heading}</div> | ||
<div className="my-1 text-base font-normal cursor-default "> | ||
{description} | ||
</div> | ||
<div className="my-1"> | ||
<Button route={route} text={buttonDesc} /> | ||
</div> | ||
</div> | ||
) | ||
); | ||
} | ||
|
||
export default Card | ||
export default Card; |
Oops, something went wrong.