-
Notifications
You must be signed in to change notification settings - Fork 2
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
=
committed
Mar 5, 2024
1 parent
98f6eee
commit c3dcc57
Showing
158 changed files
with
3,181 additions
and
3,940 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
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
apps/www/app/[locale]/dashboard/dataset/[id]/edit/components/DistributionList.tsx
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
apps/www/app/[locale]/dashboard/dataset/components/content.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"ignorePatterns": ["**/generated/**/*.ts"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"next" | ||
], | ||
"rules": { | ||
"no-unused-vars": "off", | ||
"@typescript-eslint/no-unused-vars": ["warn"], | ||
"@typescript-eslint/no-explicit-any": ["off"], | ||
"react/display-name": "off", | ||
"@next/next/no-html-link-for-pages": "off", | ||
"prefer-const": "off" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -39,4 +39,4 @@ export function Content() { | |
</ButtonGroup> | ||
</> | ||
); | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ export default async function Home() { | |
<Content /> | ||
</main> | ||
); | ||
} | ||
} |
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
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
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
File renamed without changes.
File renamed without changes.
47 changes: 47 additions & 0 deletions
47
...es/data-exchange/app/[locale]/dashboard/dataset/[id]/edit/components/DistributionList.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { Button, Divider, Icon, Text } from 'opub-ui'; | ||
|
||
import { Icons } from '@/components/icons'; | ||
|
||
export function DistributionList({ | ||
setPage, | ||
}: { | ||
setPage: (page: 'list' | 'create') => void; | ||
setEditId: (id: string) => void; | ||
}) { | ||
return ( | ||
<div> | ||
<Text variant="headingMd">Add Distribution</Text> | ||
<div className="pt-4"> | ||
<Divider /> | ||
</div> | ||
<div className="py-20"> | ||
<NoList setPage={setPage} /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
const NoList = ({ | ||
setPage, | ||
}: { | ||
setPage: (page: 'list' | 'create') => void; | ||
}) => { | ||
return ( | ||
<div className="flex flex-col items-center justify-center p-6"> | ||
<Icon | ||
source={Icons.distribution} | ||
size={64} | ||
stroke={1} | ||
color="interactive" | ||
/> | ||
<div className="pt-4"> | ||
<Text variant="headingSm" color="subdued"> | ||
You have not added any distributions yet. | ||
</Text> | ||
</div> | ||
<div className="pt-6"> | ||
<Button onClick={() => setPage('create')}>Add Distribution</Button> | ||
</div> | ||
</div> | ||
); | ||
}; |
5 changes: 3 additions & 2 deletions
5
...aset/[id]/edit/components/EditDataset.tsx → ...aset/[id]/edit/components/EditDataset.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.
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
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...e]/dashboard/dataset/[id]/edit/layout.tsx → ...e]/dashboard/dataset/[id]/edit/layout.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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions
28
examples/data-exchange/app/[locale]/dashboard/dataset/components/content.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
'use client'; | ||
|
||
import { Box, Icon, Text } from 'opub-ui'; | ||
import { twMerge } from 'tailwind-merge'; | ||
|
||
import { Icons } from '@/components/icons'; | ||
import { LinkButton } from '@/components/Link'; | ||
|
||
export function Content() { | ||
return ( | ||
<div className="flex h-full w-full grow flex-col items-center justify-center"> | ||
<div className={twMerge('h-100 flex flex-col items-center gap-4')}> | ||
<Icon | ||
source={Icons.addDataset} | ||
color="interactive" | ||
stroke={1} | ||
size={80} | ||
/> | ||
<Text variant="headingSm" color="subdued"> | ||
You have not added any datasets yet. | ||
</Text> | ||
<Box paddingBlockStart="4"> | ||
<LinkButton href="/dashboard/dataset/new">Add New Dataset</LinkButton> | ||
</Box> | ||
</div> | ||
</div> | ||
); | ||
} |
2 changes: 1 addition & 1 deletion
2
...board/dataset/components/dataset-form.tsx → ...board/dataset/components/dataset-form.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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 7 additions & 6 deletions
13
apps/www/app/[locale]/layout.tsx → ...les/data-exchange/app/[locale]/layout.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.
Oops, something went wrong.