-
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
Showing
35 changed files
with
449 additions
and
282 deletions.
There are no files selected for viewing
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
app/(pages)/(with-nav)/subjects/loading.tsx → ...es)/(empty)/share/[subjectId]/loading.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
import PageBreadcrumb from '@/_components/page-breadcrumb'; | ||
import Spinner from '@/_components/spinner'; | ||
|
||
const Loading = () => ( | ||
<> | ||
<PageBreadcrumb skeleton /> | ||
<Spinner className="mx-auto" /> | ||
</> | ||
); | ||
|
||
export default Loading; |
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,22 @@ | ||
import Notifications from '@/_components/notifications'; | ||
import PageBreadcrumb from '@/_components/page-breadcrumb'; | ||
import getCurrentUser from '@/_queries/get-current-user'; | ||
import listNotifications from '@/_queries/list-notifications'; | ||
|
||
const Page = async () => { | ||
const [{ data: notifications }, user] = await Promise.all([ | ||
listNotifications(), | ||
getCurrentUser(), | ||
]); | ||
|
||
if (!notifications || !user) return null; | ||
|
||
return ( | ||
<> | ||
<PageBreadcrumb last="Inbox" /> | ||
<Notifications notifications={notifications} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Page; |
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 @@ | ||
import PageBreadcrumb from '@/_components/page-breadcrumb'; | ||
import Spinner from '@/_components/spinner'; | ||
|
||
const Loading = () => ( | ||
<> | ||
<PageBreadcrumb skeleton /> | ||
<Spinner className="mx-auto" /> | ||
</> | ||
); | ||
|
||
export default Loading; |
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,18 @@ | ||
import FilterableInputs from '@/_components/filterable-inputs'; | ||
import PageBreadcrumb from '@/_components/page-breadcrumb'; | ||
import listInputsWithUses from '@/_queries/list-inputs-with-uses'; | ||
import { sortBy } from 'lodash'; | ||
|
||
const Page = async () => { | ||
const [{ data: inputs }] = await Promise.all([listInputsWithUses()]); | ||
if (!inputs) return null; | ||
|
||
return ( | ||
<> | ||
<PageBreadcrumb last="Inputs" /> | ||
<FilterableInputs inputs={sortBy(inputs, ['subjects[0].name', 'type'])} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Page; |
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,11 @@ | ||
import PageBreadcrumb from '@/_components/page-breadcrumb'; | ||
import Spinner from '@/_components/spinner'; | ||
|
||
const Loading = () => ( | ||
<> | ||
<PageBreadcrumb skeleton /> | ||
<Spinner className="mx-auto" /> | ||
</> | ||
); | ||
|
||
export default Loading; |
File renamed without changes.
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 @@ | ||
import PageBreadcrumb from '@/_components/page-breadcrumb'; | ||
import Spinner from '@/_components/spinner'; | ||
|
||
const Loading = () => ( | ||
<> | ||
<PageBreadcrumb skeleton /> | ||
<Spinner className="mx-auto" /> | ||
</> | ||
); | ||
|
||
export default Loading; |
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,11 @@ | ||
import PageBreadcrumb from '@/_components/page-breadcrumb'; | ||
import Spinner from '@/_components/spinner'; | ||
|
||
const Loading = () => ( | ||
<> | ||
<PageBreadcrumb skeleton /> | ||
<Spinner className="mx-auto" /> | ||
</> | ||
); | ||
|
||
export default Loading; |
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 @@ | ||
import FilterableTemplates from '@/_components/filterable-templates'; | ||
import PageBreadcrumb from '@/_components/page-breadcrumb'; | ||
import listTemplates from '@/_queries/list-templates'; | ||
import { sortBy } from 'lodash'; | ||
|
||
const Page = async () => { | ||
const [{ data: templates }] = await Promise.all([listTemplates()]); | ||
if (!templates) return null; | ||
|
||
return ( | ||
<> | ||
<PageBreadcrumb last="Templates" /> | ||
<FilterableTemplates | ||
templates={sortBy(templates, ['subjects[0].name', 'type'])} | ||
/> | ||
</> | ||
); | ||
}; | ||
|
||
export default Page; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.