Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mubaidr committed Jan 12, 2024
1 parent 93d0ea9 commit 0b6d953
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@vue/compiler-sfc": "^3.4.10",
"@vueuse/core": "^10.7.1",
"autoprefixer": "^10.4.16",
"chrome-types": "^0.1.248",
"chrome-types": "^0.1.249",
"daisyui": "^4.6.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/setup/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
body {}
3 changes: 2 additions & 1 deletion src/setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import '@/assets/base.scss'
import { createApp } from 'vue'
import { createRouter, createWebHashHistory } from 'vue-router/auto'
import App from './app.vue'
import './index.scss'

export interface ISetup {
setupType: 'install' | 'update'
Expand All @@ -24,7 +25,7 @@ const router = createRouter({
})

router.beforeEach((to, _from, next) => {
if (to.path === '/') {
if (to.path === '/' || to.path === '/setup') {
if (setupType === 'install') {
return next('/setup/install')
} else if (setupType === 'update') {
Expand Down
2 changes: 1 addition & 1 deletion src/setup/pages/update.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const version = __VERSION__
</script>

<template>
<div class="grid update-grid">
<div>
<div
class="flex flex-col gap-y-4"
style="grid-area: title"
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { VueRouterAutoImports } from 'unplugin-vue-router'
import VueRouter from 'unplugin-vue-router/vite'
import { URL, fileURLToPath } from 'url'
import { defineConfig, type Plugin } from 'vite'
// import VueDevTools from 'vite-plugin-vue-devtools'
import { defineViteConfig as define } from './define.config'
import manifest from './manifest.config'
import packageJson from './package.json'
Expand Down Expand Up @@ -112,7 +113,7 @@ export default defineConfig({
strictPort: true,
hmr: {
port: 8889,
overlay: false,
overlay: true,
},
},
optimizeDeps: {
Expand Down

0 comments on commit 0b6d953

Please sign in to comment.