mirror of
https://github.com/enso-org/enso.git
synced 2024-12-20 08:31:50 +03:00
1e93e69523
- Fixes https://github.com/enso-org/cloud-v2/issues/781 - Implement parser for search query - Change all UI (labels column, labels side panel, searcher in top bar) to use search query parser - Change "remove label from asset" to right click - Also add a tooltip to notify user that right click removes the label - Change click action on label on asset, to toggle the label from the search - Stop sending the list of labels for filtering on the server side Unrelated changes: - Switch dashboard dev server to use Vite. All other servers should be unaffected. - `ide watch` works - `ide build` works - `gui watch` works - `dashboard build` works # Important Notes There are quite a lot of new interactions with the search bar which should probably all be tested.
31 lines
873 B
TypeScript
31 lines
873 B
TypeScript
/** @file Configuration for vite. */
|
|
import * as vite from 'vite'
|
|
import vitePluginYaml from '@modyfi/vite-plugin-yaml'
|
|
|
|
// =================
|
|
// === Constants ===
|
|
// =================
|
|
|
|
const SERVER_PORT = 8080
|
|
|
|
// =====================
|
|
// === Configuration ===
|
|
// =====================
|
|
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
|
|
export default vite.defineConfig({
|
|
server: { port: SERVER_PORT },
|
|
plugins: [vitePluginYaml()],
|
|
define: {
|
|
IS_VITE: JSON.stringify(true),
|
|
REDIRECT_OVERRIDE: JSON.stringify(`http://localhost:${SERVER_PORT}`),
|
|
CLOUD_ENV:
|
|
process.env.ENSO_CLOUD_ENV != null
|
|
? JSON.stringify(process.env.ENSO_CLOUD_ENV)
|
|
: 'undefined',
|
|
// Single hardcoded usage of `global` in by aws-amplify.
|
|
'global.TYPED_ARRAY_SUPPORT': JSON.stringify(true),
|
|
},
|
|
})
|