[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix(ui): Use web hash history in ui (fix #3481) (#3487)

Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>

authored by

Segev Finer
Vladimir
and committed by
GitHub
(Aug 24, 2023, 2:38 PM +0200) 8caabaa1 7dac0594

+3 -4
+2 -3
packages/ui/client/global-setup.ts
··· 1 1 /// <reference types="vite-plugin-pages/client" /> 2 2 3 - import { createRouter as _createRouter, createWebHistory } from 'vue-router' 3 + import { createRouter as _createRouter, createWebHashHistory } from 'vue-router' 4 4 import FloatingVue, { VTooltip } from 'floating-vue' 5 5 import routes from 'virtual:generated-pages' 6 6 import 'd3-graph-controller/default.css' ··· 11 11 import './styles/main.css' 12 12 import 'floating-vue/dist/style.css' 13 13 import 'uno.css' 14 - import { BASE_PATH } from './constants' 15 14 16 15 export const directives = { 17 16 tooltip: VTooltip, ··· 22 21 23 22 export function createRouter() { 24 23 return _createRouter({ 25 - history: createWebHistory(BASE_PATH), 24 + history: createWebHashHistory(), 26 25 routes, 27 26 }) 28 27 }
+1 -1
packages/ui/client/composables/params.ts
··· 3 3 view: null | 'graph' | 'editor' | 'console' 4 4 } 5 5 6 - export const params = useUrlSearchParams<Params>('hash-params', { 6 + export const params = useUrlSearchParams<Params>('hash', { 7 7 initialValue: { 8 8 file: '', 9 9 view: null,