Skip to content

Commit

Permalink
Improved implmentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Amaan-Samar committed Nov 9, 2024
1 parent 02b2b75 commit cd06167
Show file tree
Hide file tree
Showing 8 changed files with 3,607 additions and 617 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
archive
.DS_Store
dist
dist-ssr
Expand Down
3,888 changes: 3,590 additions & 298 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"eslint-plugin-vue": "^9.29.0",
"prettier": "^3.3.3",
"vite": "^5.4.8",
"vite-plugin-pwa": "^0.20.5",
"vite-plugin-vue-devtools": "^7.4.6"
}
}
4 changes: 2 additions & 2 deletions src/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<div class="footer-section">
<h4 class="footer-subtitle">Quick Links</h4>
<nav class="footer-links">
<RouterLink to="/" class="footer-link">Home</RouterLink>
<!-- <RouterLink to="/" class="footer-link">Home</RouterLink> -->
<RouterLink to="/about" class="footer-link">About</RouterLink>
<RouterLink to="/converter" class="footer-link">Converter</RouterLink>
<RouterLink to="/" class="footer-link">Converter</RouterLink>
</nav>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<nav class="nav-container">
<RouterLink to="/" class="logo"> Writing Assistant </RouterLink>
<div class="nav-links">
<RouterLink to="/" class="nav-link">Home</RouterLink>
<RouterLink to="/about" class="nav-link">About</RouterLink>
<RouterLink to="/converter" class="nav-link">Converter</RouterLink>
<!-- <RouterLink to="/" class="nav-link">Home</RouterLink> -->
<!-- <RouterLink to="/converter" class="nav-link">Converter</RouterLink> -->
<!-- <RouterLink to="/about" class="nav-link">About</RouterLink> -->
<a
href="https://github.com/Amaan-Samar/chinese-writing-assistant"
target="_blank"
Expand Down
16 changes: 8 additions & 8 deletions src/router/index.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
// import HomeView from '../views/HomeView.vue'

const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: HomeView,
name: 'converter',
component: () => import('../views/FontConverter.vue'),
},
{
path: '/about',
name: 'about',
component: () => import('../views/AboutView.vue'),
},
{
path: '/converter',
name: 'converter',
component: () => import('../views/FontConverter.vue'),
},
// {
// path: '/converter',
// name: 'converter',
// component: () => import('../views/FontConverter.vue'),
// },
],
})

Expand Down
305 changes: 0 additions & 305 deletions src/views/HomeView.vue

This file was deleted.

3 changes: 2 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { defineConfig } from 'vite'
import { VitePWA } from 'vite-plugin-pwa'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
plugins: [vue()],
plugins: [vue(), VitePWA({ registerType: 'autoUpdate' })],
base: '/chinese-writing-assistant/',
build: {
outDir: 'dist',
Expand Down

0 comments on commit cd06167

Please sign in to comment.