chore: remove uneeded icons svg
41
.vscode/settings.json
vendored
@ -1,49 +1,10 @@
|
|||||||
{
|
{
|
||||||
"typescript.tsdk": "node_modules/typescript/lib",
|
"typescript.tsdk": "node_modules/typescript/lib",
|
||||||
"prettier.configPath": ".prettierrc.json",
|
"prettier.configPath": ".prettierrc.json",
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
"editor.bracketPairColorization.enabled": true,
|
"editor.bracketPairColorization.enabled": true,
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll": true
|
"source.fixAll": true
|
||||||
},
|
|
||||||
"[css]": {
|
|
||||||
"editor.autoClosingBrackets": "always",
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[sass]": {
|
|
||||||
"editor.autoClosingBrackets": "always",
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[scss]": {
|
|
||||||
"editor.autoClosingBrackets": "always",
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[markdown]": {
|
|
||||||
"editor.autoClosingBrackets": "always",
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[json]": {
|
|
||||||
"editor.autoClosingBrackets": "always",
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[jsonc]": {
|
|
||||||
"editor.autoClosingBrackets": "always",
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[typescript]": {
|
|
||||||
"editor.autoClosingBrackets": "always",
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[typescriptreact]": {
|
|
||||||
"editor.autoClosingBrackets": "always",
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[javascript]": {
|
|
||||||
"editor.autoClosingBrackets": "always",
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[javascriptreact]": {
|
|
||||||
"editor.autoClosingBrackets": "always",
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ All work on **Thream/website** happens directly on [GitHub](https://github.com/T
|
|||||||
|
|
||||||
- **Please first discuss** the change you wish to make via issues.
|
- **Please first discuss** the change you wish to make via issues.
|
||||||
|
|
||||||
- Ensure your code respect `eslint` and `prettier`.
|
- Ensure your code respect linting.
|
||||||
|
|
||||||
- Make sure your **code passes the tests**.
|
- Make sure your **code passes the tests**.
|
||||||
|
|
||||||
|
@ -46,17 +46,17 @@ export const Application: React.FC<ApplicationProps> = (props) => {
|
|||||||
|
|
||||||
const { user } = useAuthentication()
|
const { user } = useAuthentication()
|
||||||
|
|
||||||
const [visibleSidebars, setVisibleSidebars] = useState({
|
|
||||||
left: true,
|
|
||||||
right: false
|
|
||||||
})
|
|
||||||
|
|
||||||
const [mounted, setMounted] = useState(false)
|
const [mounted, setMounted] = useState(false)
|
||||||
|
|
||||||
const isMobile = useMediaQuery({
|
const isMobile = useMediaQuery({
|
||||||
query: '(max-width: 900px)'
|
query: '(max-width: 900px)'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const [visibleSidebars, setVisibleSidebars] = useState({
|
||||||
|
left: !isMobile,
|
||||||
|
right: false
|
||||||
|
})
|
||||||
|
|
||||||
const handleToggleSidebars = (direction: DirectionSidebar): void => {
|
const handleToggleSidebars = (direction: DirectionSidebar): void => {
|
||||||
if (!isMobile) {
|
if (!isMobile) {
|
||||||
if (direction === 'left') {
|
if (direction === 'left') {
|
||||||
@ -97,16 +97,6 @@ export const Application: React.FC<ApplicationProps> = (props) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
handleCloseSidebars()
|
|
||||||
}
|
|
||||||
|
|
||||||
const handleCloseSidebars = (): void => {
|
|
||||||
if (isMobile && (visibleSidebars.left || visibleSidebars.right)) {
|
|
||||||
setVisibleSidebars({
|
|
||||||
left: false,
|
|
||||||
right: false
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const swipeableHandlers = useSwipeable({
|
const swipeableHandlers = useSwipeable({
|
||||||
@ -171,7 +161,6 @@ export const Application: React.FC<ApplicationProps> = (props) => {
|
|||||||
|
|
||||||
<main
|
<main
|
||||||
className='h-full-without-header relative flex overflow-hidden'
|
className='h-full-without-header relative flex overflow-hidden'
|
||||||
onClick={handleCloseSidebars}
|
|
||||||
{...swipeableHandlers}
|
{...swipeableHandlers}
|
||||||
>
|
>
|
||||||
<Sidebar
|
<Sidebar
|
||||||
|
@ -8,7 +8,7 @@ export const guildSchema = {
|
|||||||
id,
|
id,
|
||||||
name: Type.String({ minLength: 1, maxLength: 30 }),
|
name: Type.String({ minLength: 1, maxLength: 30 }),
|
||||||
icon: Type.Union([Type.String({ format: 'uri-reference' }), Type.Null()]),
|
icon: Type.Union([Type.String({ format: 'uri-reference' }), Type.Null()]),
|
||||||
description: Type.Union([Type.String({ maxLength: 120 }), Type.Null()]),
|
description: Type.Union([Type.String({ maxLength: 160 }), Type.Null()]),
|
||||||
createdAt: date.createdAt,
|
createdAt: date.createdAt,
|
||||||
updatedAt: date.updatedAt
|
updatedAt: date.updatedAt
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 500 KiB |
Before Width: | Height: | Size: 1.8 MiB |
Before Width: | Height: | Size: 266 KiB |
Before Width: | Height: | Size: 467 KiB |
Before Width: | Height: | Size: 405 KiB |
Before Width: | Height: | Size: 1.1 MiB |
@ -1,3 +0,0 @@
|
|||||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M16.3613 7.30586H10.6944V1.63891C10.6944 -0.546305 7.30544 -0.546305 7.30544 1.63891V7.30586H1.63849C-0.546164 7.30586 -0.546164 10.6948 1.63849 10.6948H7.30544V16.3617C7.30544 18.5469 10.6944 18.5469 10.6944 16.3617V10.6948H16.3613C18.5462 10.6948 18.5462 7.30586 16.3613 7.30586Z" fill="white"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 410 B |
@ -1,3 +0,0 @@
|
|||||||
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M13.4168 1.87575L12.1243 0.583252L7.00016 5.70742L1.876 0.583252L0.583496 1.87575L5.70766 6.99992L0.583496 12.1241L1.876 13.4166L7.00016 8.29242L12.1243 13.4166L13.4168 12.1241L8.29266 6.99992L13.4168 1.87575Z" fill="#E12C2C"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 340 B |
@ -1,3 +0,0 @@
|
|||||||
<svg width="14" height="18" viewBox="0 0 14 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M0.999739 15.8457H13.0003C13.2536 15.8458 13.4975 15.9495 13.6827 16.1358C13.8678 16.3221 13.9804 16.5772 13.9977 16.8494C14.0149 17.1217 13.9356 17.3909 13.7757 17.6026C13.6158 17.8143 13.3873 17.9527 13.1363 17.9899L13.0003 18H0.999739C0.746363 17.9999 0.502462 17.8962 0.31732 17.7099C0.132177 17.5236 0.0195974 17.2686 0.00232728 16.9963C-0.0149428 16.724 0.0643848 16.4548 0.224281 16.2431C0.384178 16.0314 0.612722 15.893 0.863733 15.8558L0.999739 15.8457ZM6.86399 0.0100533L7 0C7.24166 1.09767e-05 7.47514 0.0942754 7.65727 0.265361C7.8394 0.436446 7.95784 0.672778 7.99071 0.930651L8.00004 1.07714V10.73L11.0068 7.49283C11.1764 7.31025 11.4012 7.19936 11.6404 7.18038C11.8795 7.1614 12.117 7.23559 12.3096 7.38943L12.4216 7.49283C12.5911 7.67547 12.694 7.91764 12.7117 8.17519C12.7293 8.43275 12.6604 8.68855 12.5176 8.89599L12.4216 9.01663L7.7067 14.0936C7.53737 14.276 7.31289 14.3869 7.07407 14.4061C6.83525 14.4254 6.59794 14.3517 6.40531 14.1984L6.2933 14.0936L1.57843 9.01663C1.3995 8.82443 1.29476 8.5664 1.28526 8.29441C1.27576 8.02241 1.36222 7.75664 1.52724 7.55051C1.69227 7.34438 1.92363 7.21318 2.1748 7.1833C2.42597 7.15341 2.67834 7.22706 2.88115 7.38943L2.99316 7.49283L5.99996 10.7329V1.07714C5.99997 0.816851 6.08748 0.565368 6.24632 0.369201C6.40516 0.173033 6.62458 0.0454529 6.86399 0.0100533Z" fill="white" fill-opacity="0.8"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 1.4 KiB |
@ -1,3 +0,0 @@
|
|||||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M0.750122 13.8126V17.2501H4.18762L14.326 7.11176L10.8885 3.67426L0.750122 13.8126ZM16.9843 4.45343C17.3418 4.09593 17.3418 3.51843 16.9843 3.16093L14.8393 1.01593C14.4818 0.658428 13.9043 0.658428 13.5468 1.01593L11.8693 2.69343L15.3068 6.13093L16.9843 4.45343Z" fill="#429D89"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 392 B |
@ -1,3 +0,0 @@
|
|||||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M9.99 0C4.47 0 0 4.48 0 10C0 15.52 4.47 20 9.99 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 9.99 0ZM6.5 6C7.33 6 8 6.67 8 7.5C8 8.33 7.33 9 6.5 9C5.67 9 5 8.33 5 7.5C5 6.67 5.67 6 6.5 6ZM14.71 12.72C13.8 14.67 12.04 16 10 16C7.96 16 6.2 14.67 5.29 12.72C5.13 12.39 5.37 12 5.74 12H14.26C14.63 12 14.87 12.39 14.71 12.72ZM13.5 9C12.67 9 12 8.33 12 7.5C12 6.67 12.67 6 13.5 6C14.33 6 15 6.67 15 7.5C15 8.33 14.33 9 13.5 9Z" fill="white"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 548 B |
@ -1,3 +0,0 @@
|
|||||||
<svg width="21" height="26" viewBox="0 0 21 26" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M2.625 0C1.92881 0 1.26113 0.273928 0.768845 0.761522C0.276562 1.24912 0 1.91044 0 2.6V23.4C0 24.0896 0.276562 24.7509 0.768845 25.2385C1.26113 25.7261 1.92881 26 2.625 26H18.375C19.0712 26 19.7389 25.7261 20.2312 25.2385C20.7234 24.7509 21 24.0896 21 23.4V7.8L13.125 0H2.625ZM13.125 9.1H11.8125V2.6L18.375 9.1H13.125Z" fill="white" fill-opacity="0.8"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 466 B |
@ -1,5 +0,0 @@
|
|||||||
<svg width="21" height="6" viewBox="0 0 21 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M0.858398 2.89899C0.858398 1.44854 2.03422 0.27272 3.48467 0.27272C4.93512 0.27272 6.11095 1.44854 6.11095 2.89899V3.10099C6.11095 4.55144 4.93512 5.72727 3.48467 5.72727C2.03422 5.72727 0.858398 4.55144 0.858398 3.10099V2.89899Z" fill="#7C818F"/>
|
|
||||||
<path d="M7.86182 2.89899C7.86182 1.44854 9.03764 0.27272 10.4881 0.27272C11.9385 0.27272 13.1144 1.44854 13.1144 2.89899V3.10099C13.1144 4.55144 11.9385 5.72727 10.4881 5.72727C9.03764 5.72727 7.86182 4.55144 7.86182 3.10099V2.89899Z" fill="#7C818F"/>
|
|
||||||
<path d="M14.8652 2.89899C14.8652 1.44854 16.0411 0.27272 17.4915 0.27272C18.942 0.27272 20.1178 1.44854 20.1178 2.89899V3.10099C20.1178 4.55144 18.942 5.72727 17.4915 5.72727C16.0411 5.72727 14.8652 4.55144 14.8652 3.10099V2.89899Z" fill="#7C818F"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 862 B |
@ -1,3 +0,0 @@
|
|||||||
<svg width="21" height="18" viewBox="0 0 21 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M0.900692 18L20.7493 9L0.900692 0L0.891235 7L15.0756 9L0.891235 11L0.900692 18Z" fill="#429D89"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 210 B |
@ -1,3 +0,0 @@
|
|||||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M17.1401 10.936C17.1761 10.636 17.2001 10.324 17.2001 10C17.2001 9.67602 17.1761 9.36403 17.1281 9.06402L19.1561 7.48002C19.3361 7.33602 19.3841 7.07202 19.2761 6.86802L17.3561 3.54402C17.2361 3.32802 16.9841 3.25602 16.7681 3.32802L14.3801 4.28802C13.8761 3.90402 13.3481 3.59202 12.7601 3.35202L12.4001 0.808024C12.3641 0.568024 12.1601 0.400024 11.9201 0.400024H8.08011C7.84011 0.400024 7.64811 0.568024 7.61211 0.808024L7.25211 3.35202C6.66411 3.59202 6.12411 3.91602 5.63211 4.28802L3.24411 3.32802C3.02811 3.24402 2.77611 3.32802 2.65611 3.54402L0.736107 6.86802C0.616107 7.08402 0.664107 7.33602 0.856107 7.48002L2.88411 9.06402C2.83611 9.36403 2.80011 9.68802 2.80011 10C2.80011 10.312 2.82411 10.636 2.87211 10.936L0.844106 12.52C0.664106 12.664 0.616107 12.928 0.724107 13.132L2.64411 16.456C2.76411 16.672 3.01611 16.744 3.23211 16.672L5.62011 15.712C6.12411 16.096 6.65211 16.408 7.24011 16.648L7.60011 19.192C7.64811 19.432 7.84011 19.6 8.08011 19.6H11.9201C12.1601 19.6 12.3641 19.432 12.3881 19.192L12.7481 16.648C13.3361 16.408 13.8761 16.084 14.3681 15.712L16.7561 16.672C16.9721 16.756 17.2241 16.672 17.3441 16.456L19.2641 13.132C19.3841 12.916 19.3361 12.664 19.1441 12.52L17.1401 10.936ZM10.0001 13.6C8.02011 13.6 6.40011 11.98 6.40011 10C6.40011 8.02002 8.02011 6.40002 10.0001 6.40002C11.9801 6.40002 13.6001 8.02002 13.6001 10C13.6001 11.98 11.9801 13.6 10.0001 13.6Z" fill="white"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 1.5 KiB |