-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove old canvas deprecated properties
- Loading branch information
Showing
39 changed files
with
70 additions
and
396 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 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
10 changes: 5 additions & 5 deletions
10
...vas-components/render/VegaRenderer.svelte → ...n/src/components/vega/VegaRenderer.svelte
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
1 change: 1 addition & 0 deletions
1
...n/src/features/canvas-components/types.ts → web-common/src/components/vega/types.ts
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.
10 changes: 5 additions & 5 deletions
10
.../canvas-components/render/vega-tooltip.ts → ...ommon/src/components/vega/vega-tooltip.ts
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
69 changes: 0 additions & 69 deletions
69
web-common/src/features/canvas-components/ComponentDataDisplay.svelte
This file was deleted.
Oops, something went wrong.
5 changes: 1 addition & 4 deletions
5
...-components/ComponentStatusDisplay.svelte → ..._deprecated/ComponentStatusDisplay.svelte
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...s/prompt/ChartPromptHistoryDisplay.svelte → ...d/prompt/ChartPromptHistoryDisplay.svelte
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...as-components/prompt/chartPromptStatus.ts → ...ts_deprecated/prompt/chartPromptStatus.ts
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
2 changes: 1 addition & 1 deletion
2
...s-components/prompt/generateChart.spec.ts → ...s_deprecated/prompt/generateChart.spec.ts
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
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
37 changes: 16 additions & 21 deletions
37
web-common/src/features/canvas/CanvasThemeProvider.svelte
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,29 +1,24 @@ | ||
<script lang="ts"> | ||
// import { page } from "$app/stores"; | ||
// import { getStateManagers } from "@rilldata/web-common/features/canvas/state-managers/state-managers"; | ||
// import { setTheme } from "@rilldata/web-common/features/themes/actions"; | ||
// import { useTheme } from "@rilldata/web-common/features/themes/selectors"; | ||
// import { runtime } from "@rilldata/web-common/runtime-client/runtime-store"; | ||
// import { onMount } from "svelte"; | ||
import { page } from "$app/stores"; | ||
import { getCanvasStateManagers } from "@rilldata/web-common/features/canvas/state-managers/state-managers"; | ||
import { setTheme } from "@rilldata/web-common/features/themes/actions"; | ||
import { useTheme } from "@rilldata/web-common/features/themes/selectors"; | ||
import { runtime } from "@rilldata/web-common/runtime-client/runtime-store"; | ||
import { onMount } from "svelte"; | ||
// const { validSpecStore } = getStateManagers(); | ||
// $: themeFromUrl = $page.url.searchParams.get("theme"); | ||
const { validSpecStore } = getCanvasStateManagers(); | ||
$: themeFromUrl = $page.url.searchParams.get("theme"); | ||
// let theme: ReturnType<typeof useTheme>; | ||
// $: themeName = themeFromUrl ?? $validSpecStore?.theme | ||
// $: if (themeName) theme = useTheme($runtime.instanceId, themeName); | ||
let theme: ReturnType<typeof useTheme>; | ||
$: themeName = themeFromUrl ?? $validSpecStore?.theme; | ||
$: if (themeName) theme = useTheme($runtime.instanceId, themeName); | ||
// $: setTheme( | ||
// $theme?.data?.theme?.spec ?? $validSpecStore?.embeddedTheme, | ||
// ); | ||
$: setTheme($theme?.data?.theme?.spec ?? $validSpecStore?.embeddedTheme); | ||
// onMount(() => { | ||
// // Handle the case where we have data in cache but the dashboard is not mounted yet | ||
// setTheme( | ||
// $theme?.data?.theme?.spec ?? | ||
// $validSpecStore?.data?.explore?.embeddedTheme, | ||
// ); | ||
// }); | ||
onMount(() => { | ||
// Handle the case where we have data in cache but the dashboard is not mounted yet | ||
setTheme($theme?.data?.theme?.spec ?? $validSpecStore?.embeddedTheme); | ||
}); | ||
</script> | ||
|
||
<slot /> |
Oops, something went wrong.