-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
182 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import './base.css'; | ||
@import "./base.css"; | ||
|
||
#app { | ||
max-width: 1280px; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { describe, it, expect } from 'vitest' | ||
import { describe, it, expect } from "vitest"; | ||
|
||
import { mount } from '@vue/test-utils' | ||
import HelloWorld from '../HelloWorld.vue' | ||
import { mount } from "@vue/test-utils"; | ||
import HelloWorld from "../HelloWorld.vue"; | ||
|
||
describe('HelloWorld', () => { | ||
it('renders properly', () => { | ||
const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } }) | ||
expect(wrapper.text()).toContain('Hello Vitest') | ||
}) | ||
}) | ||
describe("HelloWorld", () => { | ||
it("renders properly", () => { | ||
const wrapper = mount(HelloWorld, { props: { msg: "Hello Vitest" } }); | ||
expect(wrapper.text()).toContain("Hello Vitest"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import './assets/main.css' | ||
import "./assets/main.css"; | ||
|
||
import { createApp } from 'vue' | ||
import { createPinia } from 'pinia' | ||
import { createApp } from "vue"; | ||
import { createPinia } from "pinia"; | ||
|
||
import App from './App.vue' | ||
import router from './router' | ||
import App from "./App.vue"; | ||
import router from "./router"; | ||
|
||
const app = createApp(App) | ||
const app = createApp(App); | ||
|
||
app.use(createPinia()) | ||
app.use(router) | ||
app.use(createPinia()); | ||
app.use(router); | ||
|
||
app.mount('#app') | ||
app.mount("#app"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import { createRouter, createWebHistory } from 'vue-router' | ||
import HomeView from '../views/HomeView.vue' | ||
import { createRouter, createWebHistory } from "vue-router"; | ||
import HomeView from "../views/HomeView.vue"; | ||
|
||
const router = createRouter({ | ||
history: createWebHistory(import.meta.env.BASE_URL), | ||
routes: [ | ||
{ | ||
path: '/', | ||
name: 'home', | ||
component: HomeView | ||
path: "/", | ||
name: "home", | ||
component: HomeView, | ||
}, | ||
{ | ||
path: '/about', | ||
name: 'about', | ||
path: "/about", | ||
name: "about", | ||
// route level code-splitting | ||
// this generates a separate chunk (About.[hash].js) for this route | ||
// which is lazy-loaded when the route is visited. | ||
component: () => import('../views/AboutView.vue') | ||
} | ||
] | ||
}) | ||
component: () => import("../views/AboutView.vue"), | ||
}, | ||
], | ||
}); | ||
|
||
export default router | ||
export default router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { ref, computed } from 'vue' | ||
import { defineStore } from 'pinia' | ||
import { ref, computed } from "vue"; | ||
import { defineStore } from "pinia"; | ||
|
||
export const useCounterStore = defineStore('counter', () => { | ||
const count = ref(0) | ||
const doubleCount = computed(() => count.value * 2) | ||
export const useCounterStore = defineStore("counter", () => { | ||
const count = ref(0); | ||
const doubleCount = computed(() => count.value * 2); | ||
function increment() { | ||
count.value++ | ||
count.value++; | ||
} | ||
|
||
return { count, doubleCount, increment } | ||
}) | ||
return { count, doubleCount, increment }; | ||
}); |
Oops, something went wrong.