-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Closes #8077 # Important Notes Tests are still WIP
- Loading branch information
1 parent
90d3445
commit 168e222
Showing
58 changed files
with
1,827 additions
and
1,036 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
/// <reference types="vite/client" /> | ||
|
||
declare const PROJECT_MANAGER_URL: string | ||
declare const HISTOIRE: boolean | undefined | ||
declare const RUNNING_VITEST: boolean | ||
|
||
declare module 'builtins' { | ||
export const VisualizationContainer: typeof import('@/components/VisualizationContainer.vue').default | ||
export const useVisualizationConfig: typeof import('@/providers/visualizationConfig').useVisualizationConfig | ||
export const defineKeybinds: typeof import('@/util/shortcuts').defineKeybinds | ||
} |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import * as fs from 'node:fs/promises' | ||
|
||
/** @type {{ name: string | undefined, inputType: string | undefined }[]} */ | ||
const visualizationMetadata = [] | ||
|
||
const order = [ | ||
'JSON', | ||
'Table', | ||
'Scatter Plot', | ||
'Histogram', | ||
'Heatmap', | ||
'SQL Query', | ||
'Geo Map', | ||
'Image', | ||
'Warnings', | ||
] | ||
|
||
console.info('Listing and reading visualization files...') | ||
for (const path of [ | ||
...(await fs.readdir('./public/visualizations')).map((path) => './public/visualizations/' + path), | ||
...(await fs.readdir('./src/components/visualizations')).map( | ||
(path) => './src/components/visualizations/' + path, | ||
), | ||
]) { | ||
if (!path.endsWith('Visualization.vue')) continue | ||
const file = await fs.readFile(path, 'utf-8') | ||
const name = file.match(/(?<=export\s+const\s+name\s+=\s+['"])[^'"]*/)?.[0] | ||
const inputType = file.match(/(?<=export\s+const\s+inputType\s+=\s+['"])[^'"]*/)?.[0] | ||
visualizationMetadata.push({ name, inputType }) | ||
} | ||
visualizationMetadata.sort((a, b) => order.indexOf(a.name ?? '') - order.indexOf(b.name ?? '')) | ||
|
||
console.info('Writing visualization metadata to "./src/stores/visualization/metadata.json"...') | ||
await fs.writeFile( | ||
'./src/stores/visualization/metadata.json', | ||
JSON.stringify(visualizationMetadata, undefined, 2) + '\n', | ||
) | ||
console.info('Done.') |
File renamed without changes.
Oops, something went wrong.