Skip to content

Commit

Permalink
web-client: upgrade to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
tharvik committed Apr 2, 2024
1 parent f251fde commit ff6dcde
Show file tree
Hide file tree
Showing 120 changed files with 7,349 additions and 16,474 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/lint-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,20 +306,13 @@ jobs:
- run: npm ci
- run: npm --workspace=./discojs/discojs-{core,web} run build
- run: npm --workspace=./web-client run test:unit
- uses: cypress-io/github-action@v6
with:
working-directory: ./web-client
install: false
component: true
env:
VUE_APP_SERVER_URL: http://server
- uses: cypress-io/github-action@v6
with:
working-directory: ./web-client
install: false
start: npm start
env:
VUE_APP_SERVER_URL: http://server
VITE_SERVER_URL: http://server

test-cli:
needs: [build-lib-core, build-lib-node, build-server, download-datasets]
Expand Down
1 change: 1 addition & 0 deletions discojs/discojs-core/src/dataset/dataset_builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class DatasetBuilder<Source> {
/**
* Whether a dataset was already produced.
*/
// TODO useless, responsiblity on callers
private _built: boolean

constructor (
Expand Down
3 changes: 1 addition & 2 deletions discojs/discojs-web/src/memory/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* The working model is loaded from IndexedDB for training (model.fit) only.
*/
import { Map } from 'immutable'
import path from 'path'
import * as tf from '@tensorflow/tfjs'

import type { Path, Model, ModelInfo, ModelSource } from '@epfml/discojs-core'
Expand All @@ -25,7 +24,7 @@ export class IndexedDB extends Memory {

const version = source.version ?? 0

return `indexeddb://${path.join(source.type, source.taskID, source.name)}@${version}`
return `indexeddb://${source.type}/${source.taskID}/${source.name}@${version}`
}

override infoFor (source: ModelSource): ModelInfo {
Expand Down
4 changes: 3 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ export default tseslint.config(
]
}
},
{ ignores: ['**/dist/*'] }
{ ignores: ['**/dist/*'] },
// TODO waiting for eslintflat+vue+typescript @ https://eslint.vuejs.org/
{ ignores: ['web-client/*'] }
)
Loading

0 comments on commit ff6dcde

Please sign in to comment.