Skip to content

Commit

Permalink
use the utils package
Browse files Browse the repository at this point in the history
  • Loading branch information
severo committed Nov 15, 2024
1 parent 2b5ea98 commit 872b33c
Show file tree
Hide file tree
Showing 41 changed files with 75 additions and 801 deletions.
4 changes: 1 addition & 3 deletions apps/hyparquet-demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ import { ReactNode } from 'react'
import Page, { PageProps } from './Page.js'
import Welcome from './Welcome.js'

import { AsyncBufferFrom, Row, asyncBufferFrom, parquetQueryWorker } from '@hyparam/utils'
import { DataFrame, rowCache } from 'hightable'
import { FileMetaData, byteLengthFromUrl, parquetMetadataAsync, parquetSchema } from 'hyparquet'
import { useCallback, useEffect, useState } from 'react'
import Dropzone from './Dropzone.js'
import Layout from './Layout.js'
import { asyncBufferFrom } from './utils.js'
import { parquetQueryWorker } from './workers/parquetWorkerClient.js'
import { AsyncBufferFrom, Row } from './workers/types.js'

export default function App(): ReactNode {
const params = new URLSearchParams(location.search)
Expand Down
20 changes: 0 additions & 20 deletions apps/hyparquet-demo/src/utils.ts

This file was deleted.

38 changes: 0 additions & 38 deletions apps/hyparquet-demo/src/workers/parquetWorker.ts

This file was deleted.

62 changes: 0 additions & 62 deletions apps/hyparquet-demo/src/workers/parquetWorkerClient.ts

This file was deleted.

35 changes: 0 additions & 35 deletions apps/hyparquet-demo/src/workers/types.d.ts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"main": "dist/index.umd.min.js",
"unpkg": "dist/index.umd.min.js",
"module": "dist/index.es.min.js",
"types": "es/components/index.d.ts",
"types": "es/index.d.ts",
"exports": {
".": {
"import": "./dist/index.es.min.js",
"require": "./dist/index.umd.min.js",
"types": "./es/components/index.d.ts"
"types": "./es/index.d.ts"
}
},
"files": [
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FileKey, UrlKey } from '../lib/key.js'
import { FileKey, UrlKey } from '@hyparam/utils'

interface BreadcrumbProps {
parsedKey: UrlKey | FileKey
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { FileKey, UrlKey, parquetDataFrame } from '@hyparam/utils'
import { asyncRows } from 'hightable'
import { asyncBufferFromUrl, parquetMetadataAsync } from 'hyparquet'
import { useEffect, useState } from 'react'
import { FileKey, UrlKey } from '../lib/key.js'
import { parquetDataFrame } from '../lib/tableProvider.js'
import Breadcrumb from './Breadcrumb.js'
import Layout from './Layout.js'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FileKey, UrlKey } from '@hyparam/utils'
import { useState } from 'react'
import { FileKey, UrlKey } from '../lib/key.js'
import Breadcrumb from './Breadcrumb.js'
import Layout from './Layout.js'
import Viewer from './Viewer.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { cn } from '@hyparam/utils'
import { FileMetadata, FolderKey, cn, getFileDate, getFileDateShort, getFileSize, listFiles } from '@hyparam/utils'
import { useCallback, useEffect, useRef, useState } from 'react'
import { FileMetadata, getFileDate, getFileDateShort, getFileSize, listFiles } from '../lib/files.js'
import type { FolderKey } from '../lib/key.js'
import Layout, { Spinner } from './Layout.js'

interface FolderProps {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parseKey } from '../lib/key.js'
import { parseKey } from '@hyparam/utils'
import Cell from './Cell.js'
import File from './File.js'
import Folder from './Folder.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { imageTypes } from '../lib/files.js'
import { FileKey, UrlKey } from '../lib/key.js'
import { FileKey, UrlKey, imageTypes } from '@hyparam/utils'
import ImageView from './viewers/ImageView.js'
import MarkdownView from './viewers/MarkdownView.js'
import TableView from './viewers/ParquetView.js'
Expand Down
File renamed without changes.
112 changes: 0 additions & 112 deletions packages/components/src/lib/files.ts

This file was deleted.

42 changes: 0 additions & 42 deletions packages/components/src/lib/key.ts

This file was deleted.

Loading

0 comments on commit 872b33c

Please sign in to comment.