-
Notifications
You must be signed in to change notification settings - Fork 13
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
66577e5
commit 5cf01ee
Showing
6 changed files
with
57 additions
and
0 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,11 @@ | ||
nodejs 22.12.0 | ||
python 3.13.1 | ||
pnpm 9.15.1 | ||
oc 4.13.3 | ||
kubectl 1.32.0 | ||
terraform 1.5.7 | ||
helm 3.16.4 | ||
shfmt 3.10.0 | ||
act 0.2.70 | ||
jq 1.7.1 | ||
mongodb-database-tools 0.8.2 |
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,17 @@ | ||
'use client'; | ||
|
||
import { useSnapshot } from 'valtio/react'; | ||
import { GlobalPermissions } from '@/constants'; | ||
import createClientPage from '@/core/client-page'; | ||
import { pageState } from './state'; | ||
|
||
const eventsPage = createClientPage({ | ||
permissions: [GlobalPermissions.ViewEvents], | ||
fallbackUrl: '/login?callbackUrl=/home', | ||
}); | ||
|
||
export default eventsPage(() => { | ||
const snap = useSnapshot({ pageState }); | ||
|
||
return <div></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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Prisma } from '@prisma/client'; | ||
|
||
export const eventSorts = [ | ||
{ | ||
label: 'Create date (new to old)', | ||
sortKey: 'createdAt', | ||
sortOrder: Prisma.SortOrder.desc, | ||
}, | ||
{ | ||
label: 'Create date (old to new)', | ||
sortKey: 'createdAt', | ||
sortOrder: Prisma.SortOrder.asc, | ||
}, | ||
]; | ||
|
||
const initialValue = { | ||
page: 1, | ||
pageSize: 10, | ||
sortValue: eventSorts[0].label, | ||
sortKey: eventSorts[0].sortKey, | ||
sortOrder: eventSorts[0].sortOrder, | ||
}; | ||
|
||
export const pageState = initialValue; |
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