-
Notifications
You must be signed in to change notification settings - Fork 0
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
527f186
commit c871a4a
Showing
9 changed files
with
75 additions
and
143 deletions.
There are no files selected for viewing
This file was deleted.
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import getPackages from "@/utils/filtering/getPackage" | ||
import ClientPage from "./clientPage" | ||
import AddPage from "@/components/addPage" | ||
|
||
export default async function page() { | ||
const packages = await getPackages({list: 'blacklist', side: 'server'}) | ||
return ( | ||
<ClientPage packages={packages} /> | ||
) | ||
} | ||
const list = 'blacklist' | ||
const packages = await getPackages({list, side: 'server'}) | ||
return <AddPage list={list} packages={packages} /> | ||
} |
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,9 +1,8 @@ | ||
import getPackages from "@/utils/filtering/getPackage" | ||
import ClientPage from "./clientPage" | ||
import AddPage from "@/components/addPage" | ||
|
||
export default async function page() { | ||
const packages = await getPackages({list: 'whitelist', side: 'server'}) | ||
return ( | ||
<ClientPage packages={packages} /> | ||
) | ||
const list = 'whitelist' | ||
const packages = await getPackages({list, side: 'server'}) | ||
return <AddPage list={list} packages={packages} /> | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export default function Trash({className, fill}: {className?: string, fill: string}) { | ||
return ( | ||
<div className={className}> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 24 24" | ||
x="0px" | ||
y="0px" | ||
className={fill} | ||
> | ||
<path d="M4.41612 7.47943C4.51111 7.3656 4.65173 7.2998 4.79999 7.2998H19.2C19.3483 7.2998 19.4889 7.3656 19.5839 7.47943C19.6789 7.59326 19.7184 7.74338 19.6919 7.88925L17.4711 20.1039C17.3241 20.9122 16.6201 21.4998 15.7985 21.4998H8.20148C7.3799 21.4998 6.67587 20.9122 6.5289 20.1039L4.30806 7.88925C4.28154 7.74338 4.32112 7.59326 4.41612 7.47943ZM5.3991 8.2998L7.51277 19.925C7.57329 20.2579 7.86318 20.4998 8.20148 20.4998H15.7985C16.1368 20.4998 16.4267 20.2579 16.4872 19.925L18.6009 8.2998H5.3991Z"/> | ||
<path d="M3.10001 6.5999C3.10001 5.66102 3.86112 4.8999 4.80001 4.8999H19.2C20.1389 4.8999 20.9 5.66102 20.9 6.5999C20.9 7.53879 20.1389 8.2999 19.2 8.2999H4.80001C3.86112 8.2999 3.10001 7.53879 3.10001 6.5999ZM4.80001 5.8999C4.41341 5.8999 4.10001 6.2133 4.10001 6.5999C4.10001 6.9865 4.41341 7.2999 4.80001 7.2999H19.2C19.5866 7.2999 19.9 6.9865 19.9 6.5999C19.9 6.2133 19.5866 5.8999 19.2 5.8999H4.80001Z" /> | ||
<path d="M12 9.7002C12.2761 9.7002 12.5 9.92405 12.5 10.2002V17.4002C12.5 17.6763 12.2761 17.9002 12 17.9002C11.7239 17.9002 11.5 17.6763 11.5 17.4002V10.2002C11.5 9.92405 11.7239 9.7002 12 9.7002Z" /> | ||
<path d="M15.6822 9.70659C15.9546 9.75199 16.1386 10.0096 16.0932 10.282L14.8932 17.482C14.8478 17.7544 14.5902 17.9384 14.3178 17.893C14.0454 17.8476 13.8614 17.59 13.9068 17.3176L15.1068 10.1176C15.1522 9.8452 15.4098 9.66119 15.6822 9.70659Z" /> | ||
<path d="M8.3178 9.70659C8.04542 9.75199 7.86141 10.0096 7.90681 10.282L9.10681 17.482C9.1522 17.7544 9.40982 17.9384 9.6822 17.893C9.95459 17.8476 10.1386 17.59 10.0932 17.3176L8.8932 10.1176C8.8478 9.8452 8.59019 9.66119 8.3178 9.70659Z" /> | ||
<path d="M7.89999 4.2C7.89999 3.26111 8.66111 2.5 9.59999 2.5H14.4C15.3389 2.5 16.1 3.26112 16.1 4.2V5.4C16.1 5.67614 15.8761 5.9 15.6 5.9H8.39999C8.12385 5.9 7.89999 5.67614 7.89999 5.4V4.2ZM9.59999 3.5C9.21339 3.5 8.89999 3.8134 8.89999 4.2V4.9H15.1V4.2C15.1 3.8134 14.7866 3.5 14.4 3.5H9.59999Z" /> | ||
</svg> | ||
</div> | ||
) | ||
} |
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
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