-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #446 from visualize-admin/updates
- Loading branch information
Showing
23 changed files
with
2,078 additions
and
2,075 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 |
---|---|---|
|
@@ -24,3 +24,4 @@ jobs: | |
- run: yarn lint | ||
- run: yarn typecheck | ||
- run: yarn test | ||
- run: yarn build:npm |
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,28 @@ | ||
import { AppLayout } from "../components/layout"; | ||
import { SelectDatasetStep } from "../configurator/components/select-dataset-step"; | ||
import { ConfiguratorStateProvider } from "../src"; | ||
|
||
export type BrowseParams = { | ||
type?: "theme" | "organization" | "dataset"; | ||
subtype?: "theme" | "organization"; | ||
iri?: string; | ||
subiri?: string; | ||
topic?: string; | ||
search?: string; | ||
order?: string; | ||
includeDrafts?: boolean; | ||
dataset?: string; | ||
}; | ||
|
||
// Generic component for all browse subpages | ||
export const DatasetBrowser = () => { | ||
return ( | ||
<AppLayout> | ||
<ConfiguratorStateProvider chartId="new" allowDefaultRedirect={false}> | ||
<SelectDatasetStep /> | ||
</ConfiguratorStateProvider> | ||
</AppLayout> | ||
); | ||
}; | ||
|
||
export default DatasetBrowser; |
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 @@ | ||
export { default as DatasetBrowser } from "./dataset-browser"; |
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
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
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
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,2 +1,3 @@ | ||
import { GenericBrowse } from "./index"; | ||
export default GenericBrowse; | ||
import { DatasetBrowser } from "../../browser"; | ||
|
||
export default DatasetBrowser; |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import { GenericBrowse } from "../../../index"; | ||
export default GenericBrowse; | ||
import { DatasetBrowser } from "../../../../../browser"; | ||
export default DatasetBrowser; |
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,33 +1,3 @@ | ||
import React from "react"; | ||
import { AppLayout } from "../../components/layout"; | ||
import { SelectDatasetStep } from "../../configurator/components/select-dataset-step"; | ||
import { ConfiguratorStateProvider } from "../../src"; | ||
import { DatasetBrowser } from "../../browser"; | ||
|
||
export type BrowseParams = { | ||
type?: "theme" | "organization" | "dataset"; | ||
subtype?: "theme" | "organization"; | ||
iri?: string; | ||
subiri?: string; | ||
topic?: string; | ||
search?: string; | ||
order?: string; | ||
includeDrafts?: boolean; | ||
dataset?: string; | ||
}; | ||
|
||
// Generic component for all browse subpages | ||
export const GenericBrowse = () => { | ||
return ( | ||
<AppLayout> | ||
<ConfiguratorStateProvider chartId="new" allowDefaultRedirect={false}> | ||
<SelectDatasetStep /> | ||
</ConfiguratorStateProvider> | ||
</AppLayout> | ||
); | ||
}; | ||
|
||
const IndexBrowse = () => { | ||
return <GenericBrowse />; | ||
}; | ||
|
||
export default IndexBrowse; | ||
export default DatasetBrowser; |
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
Oops, something went wrong.