* feat: model hub revamp UI * chore: model description - consistent markdown css * chore: add model versions dropdown * chore: integrate APIs - model sources * chore: update model display name * chore: lint fix * chore: page transition animation * feat: model search dropdown - deeplink * chore: bump cortex version * chore: add remote model sources * chore: model download state * chore: fix model metadata label * chore: polish model detail page markdown * test: fix test cases * chore: initialize default Hub model sources * chore: fix model stats * chore: clean up click outside and inside hooks * feat: change hub banner * chore: lint fix * chore: fix css long model id
19 lines
561 B
JavaScript
19 lines
561 B
JavaScript
import { defineConfig } from 'rolldown'
|
|
import settingJson from './resources/settings.json' with { type: 'json' }
|
|
import modelSources from './resources/default.json' with { type: 'json' }
|
|
|
|
export default defineConfig({
|
|
input: 'src/index.ts',
|
|
output: {
|
|
format: 'esm',
|
|
file: 'dist/index.js',
|
|
},
|
|
platform: 'browser',
|
|
define: {
|
|
SETTINGS: JSON.stringify(settingJson),
|
|
API_URL: JSON.stringify('http://127.0.0.1:39291'),
|
|
SOCKET_URL: JSON.stringify('ws://127.0.0.1:39291'),
|
|
DEFAULT_MODEL_SOURCES: JSON.stringify(modelSources),
|
|
},
|
|
})
|