Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
cache-dependency-path: vortex-web/package-lock.json
- run: npm ci
- run: npm run wasm
- run: npm run format:check
- run: npm run lint
- run: npm run typecheck
- run: npm run build-storybook
6 changes: 6 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
7 changes: 7 additions & 0 deletions vortex-web/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"printWidth": 100,
"tabWidth": 2
}
13 changes: 4 additions & 9 deletions vortex-web/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@
import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
"stories": [
"../src/**/*.mdx",
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
],
"addons": [
"@storybook/addon-docs",
],
"framework": "@storybook/react-vite"
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: ['@storybook/addon-docs'],
framework: '@storybook/react-vite',
};
export default config;
export default config;
35 changes: 30 additions & 5 deletions vortex-web/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,43 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright the Vortex contributors

import type { Preview } from '@storybook/react-vite'
import '../src/index.css'
import type { Preview } from '@storybook/react-vite';
import '../src/index.css';

const preview: Preview = {
globalTypes: {
theme: {
description: 'Color theme',
toolbar: {
title: 'Theme',
icon: 'paintbrush',
items: [
{ value: 'light', title: 'Light', icon: 'sun' },
{ value: 'dark', title: 'Dark', icon: 'moon' },
],
dynamicTitle: true,
},
},
},
initialGlobals: {
theme: 'light',
},
decorators: [
(Story, context) => {
const theme = context.globals.theme || 'light';
document.documentElement.classList.toggle('dark', theme === 'dark');
document.documentElement.classList.toggle('light', theme === 'light');
return Story();
},
],
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export default preview;
export default preview;
13 changes: 12 additions & 1 deletion vortex-web/crate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,27 @@ publish = false
crate-type = ["cdylib", "rlib"]

[dependencies]
arrow-array = { workspace = true }
arrow-ipc = { workspace = true }
arrow-schema = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
vortex = { path = "../../vortex", default-features = false, features = [
"files",
] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
futures = { workspace = true }
wasm-bindgen = "0.2.104"
wasm-bindgen-futures = { workspace = true }
console_error_panic_hook = "0.1.7"
js-sys = "0.3.81"
web-sys = { version = "0.3.81", features = ["console", "File", "FileReader"] }
web-sys = { version = "0.3.81", features = [
"Blob",
"console",
"File",
"FileReader",
] }

[lints]
workspace = true
Loading
Loading