// possible options:
// --default
// --typescript / --ts
- // --jsx
// --router / --vue-router
// --pinia
// --with-tests / --tests / --cypress
// if any of the feature flags is set, we would skip the feature prompts
// use `??` instead of `||` once we drop Node.js 12 support
const isFeatureFlagsUsed =
- typeof (argv.default || argv.ts || argv.jsx || argv.router || argv.pinia || argv.tests) ===
- 'boolean'
+ typeof (argv.default || argv.ts || argv.router || argv.pinia || argv.tests) === 'boolean'
let targetDir = argv._[0]
const defaultProjectName = !targetDir ? 'vue-project' : targetDir
// - whether to overwrite the existing directory or not?
// - enter a valid package name for package.json
// - Project language: JavaScript / TypeScript
- // - Add JSX Support?
// - Install Vue Router for SPA development?
// - Install Pinia for state management?
// - Add Cypress for testing?
active: 'Yes',
inactive: 'No'
},
- {
- name: 'needsJsx',
- type: () => (isFeatureFlagsUsed ? null : 'toggle'),
- message: 'Add JSX Support?',
- initial: false,
- active: 'Yes',
- inactive: 'No'
- },
{
name: 'needsRouter',
type: () => (isFeatureFlagsUsed ? null : 'toggle'),
const {
packageName = toValidPackageName(defaultProjectName),
shouldOverwrite,
- needsJsx = argv.jsx,
needsTypeScript = argv.typescript,
needsRouter = argv.router,
needsPinia = argv.pinia,
render('base')
// Add configs.
- if (needsJsx) {
- render('config/jsx')
- }
if (needsRouter) {
render('config/router')
}
"preview": "vite preview --port 5050"
},
"dependencies": {
- "vue": "^3.2.22"
+ "@vue/composition-api": "^1.4.0",
+ "vue": "^2.6.14"
},
"devDependencies": {
- "@vitejs/plugin-vue": "^1.10.0",
- "vite": "^2.6.14"
+ "@vue/runtime-dom": "^3.2.22",
+ "unplugin-vue2-script-setup": "^0.7.1",
+ "vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+ </div>
+ </header>
- <main>
- <TheWelcome />
- </main>
+ <main>
+ <TheWelcome />
+ </main>
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
-import { createApp } from 'vue'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+
import App from './App.vue'
-createApp(App).mount('#app')
+Vue.use(VueCompositionAPI)
+
+const app = new Vue({
+ render: (h) => h(App)
+})
+
+app.$mount('#app')
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# jsx-pinia-with-tests
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Compile and Minify for Production
-
-```sh
-pnpm build
-```
-
-### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction)
-
-```sh
-pnpm test:unit # or `pnpm test:unit:ci` for headless testing
-```
-
-### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
-
-```sh
-pnpm build
-pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
-```
+++ /dev/null
-{
- "baseUrl": "http://localhost:5050",
- "component": {
- "componentFolder": "src",
- "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}"
- }
-}
+++ /dev/null
-{
- "name": "Using fixtures to represent data",
- "email": "hello@cypress.io",
- "body": "Fixtures are a great way to mock data for responses to routes"
-}
+++ /dev/null
-// https://docs.cypress.io/api/introduction/api.html
-
-describe('My First Test', () => {
- it('visits the app root url', () => {
- cy.visit('/')
- cy.contains('h1', 'You did it!')
- })
-})
+++ /dev/null
-{
- "compilerOptions": {
- "target": "es5",
- "lib": ["es5", "dom"],
- "types": ["cypress"]
- },
- "include": ["./**/*"]
-}
+++ /dev/null
-/// <reference types="cypress" />
-// ***********************************************************
-// This example plugins/index.js can be used to load plugins
-//
-// You can change the location of this file or turn off loading
-// the plugins file with the 'pluginsFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/plugins-guide
-// ***********************************************************
-
-// This function is called when a project is opened or re-opened (e.g. due to
-// the project's config changing)
-
-const { startDevServer } = require('@cypress/vite-dev-server')
-
-/**
- * @type {Cypress.PluginConfig}
- */
-// eslint-disable-next-line no-unused-vars
-module.exports = (on, config) => {
- // `on` is used to hook into various events Cypress emits
- // `config` is the resolved Cypress config
- on('dev-server:start', (options) => {
- return startDevServer({ options })
- })
- return config
-}
+++ /dev/null
-// ***********************************************
-// This example commands.js shows you how to
-// create various custom commands and overwrite
-// existing commands.
-//
-// For more comprehensive examples of custom
-// commands please read more here:
-// https://on.cypress.io/custom-commands
-// ***********************************************
-//
-//
-// -- This is a parent command --
-// Cypress.Commands.add('login', (email, password) => { ... })
-//
-//
-// -- This is a child command --
-// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
-//
-//
-// -- This is a dual command --
-// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
-//
-//
-// -- This will overwrite an existing command --
-// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
+++ /dev/null
-// ***********************************************************
-// This example support/index.js is processed and
-// loaded automatically before your test files.
-//
-// This is a great place to put global configuration and
-// behavior that modifies Cypress.
-//
-// You can change the location of this file or turn off
-// automatically serving support files with the
-// 'supportFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/configuration
-// ***********************************************************
-
-// Import commands.js using ES2015 syntax:
-import './commands'
-
-// Alternatively you can use CommonJS syntax:
-// require('./commands')
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.js"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "jsx-pinia-with-tests",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vite build",
- "preview": "vite preview --port 5050",
- "test:unit": "cypress open-ct",
- "test:unit:ci": "cypress run-ct --quiet --reporter spec",
- "test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
- "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
- },
- "dependencies": {
- "pinia": "^2.0.4",
- "vue": "^3.2.22"
- },
- "devDependencies": {
- "@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "cypress": "^8.7.0",
- "start-server-and-test": "^1.14.0",
- "vite": "^2.6.14"
- }
-}
+++ /dev/null
-<script setup>
-import HelloWorld from './components/HelloWorld.vue'
-import TheWelcome from './components/TheWelcome.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
-
- <main>
- <TheWelcome />
- </main>
-</template>
-
-<style>
-@import './assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup>
-defineProps({
- msg: {
- type: String,
- required: true
- }
-})
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup>
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-import { mount } from '@cypress/vue'
-import HelloWorld from '../HelloWorld.vue'
-
-describe('HelloWorld', () => {
- it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- })
-
- it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- cy.get('h1').should('contain', 'Hello Cypress')
- })
-})
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
-import App from './App.vue'
-
-const app = createApp(App)
-
-app.use(createPinia())
-
-app.mount('#app')
+++ /dev/null
-import { defineStore } from 'pinia'
-
-export const useCounterStore = defineStore({
- id: 'counter',
- state: () => ({
- counter: 0
- }),
- getters: {
- doubleCount: (state) => state.counter * 2
- },
- actions: {
- increment() {
- this.counter++
- }
- }
-})
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# jsx-pinia
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Compile and Minify for Production
-
-```sh
-pnpm build
-```
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.js"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "jsx-pinia",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vite build",
- "preview": "vite preview --port 5050"
- },
- "dependencies": {
- "pinia": "^2.0.4",
- "vue": "^3.2.22"
- },
- "devDependencies": {
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "vite": "^2.6.14"
- }
-}
+++ /dev/null
-<script setup>
-import HelloWorld from './components/HelloWorld.vue'
-import TheWelcome from './components/TheWelcome.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
-
- <main>
- <TheWelcome />
- </main>
-</template>
-
-<style>
-@import './assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup>
-defineProps({
- msg: {
- type: String,
- required: true
- }
-})
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup>
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
-import App from './App.vue'
-
-const app = createApp(App)
-
-app.use(createPinia())
-
-app.mount('#app')
+++ /dev/null
-import { defineStore } from 'pinia'
-
-export const useCounterStore = defineStore({
- id: 'counter',
- state: () => ({
- counter: 0
- }),
- getters: {
- doubleCount: (state) => state.counter * 2
- },
- actions: {
- increment() {
- this.counter++
- }
- }
-})
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# jsx-router-pinia-with-tests
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Compile and Minify for Production
-
-```sh
-pnpm build
-```
-
-### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction)
-
-```sh
-pnpm test:unit # or `pnpm test:unit:ci` for headless testing
-```
-
-### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
-
-```sh
-pnpm build
-pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
-```
+++ /dev/null
-{
- "baseUrl": "http://localhost:5050",
- "component": {
- "componentFolder": "src",
- "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}"
- }
-}
+++ /dev/null
-{
- "name": "Using fixtures to represent data",
- "email": "hello@cypress.io",
- "body": "Fixtures are a great way to mock data for responses to routes"
-}
+++ /dev/null
-// https://docs.cypress.io/api/introduction/api.html
-
-describe('My First Test', () => {
- it('visits the app root url', () => {
- cy.visit('/')
- cy.contains('h1', 'You did it!')
- })
-
- it('navigates to the about page', () => {
- cy.visit('/about')
- cy.contains('h1', 'This is an about page')
- })
-})
+++ /dev/null
-{
- "compilerOptions": {
- "target": "es5",
- "lib": ["es5", "dom"],
- "types": ["cypress"]
- },
- "include": ["./**/*"]
-}
+++ /dev/null
-/// <reference types="cypress" />
-// ***********************************************************
-// This example plugins/index.js can be used to load plugins
-//
-// You can change the location of this file or turn off loading
-// the plugins file with the 'pluginsFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/plugins-guide
-// ***********************************************************
-
-// This function is called when a project is opened or re-opened (e.g. due to
-// the project's config changing)
-
-const { startDevServer } = require('@cypress/vite-dev-server')
-
-/**
- * @type {Cypress.PluginConfig}
- */
-// eslint-disable-next-line no-unused-vars
-module.exports = (on, config) => {
- // `on` is used to hook into various events Cypress emits
- // `config` is the resolved Cypress config
- on('dev-server:start', (options) => {
- return startDevServer({ options })
- })
- return config
-}
+++ /dev/null
-// ***********************************************
-// This example commands.js shows you how to
-// create various custom commands and overwrite
-// existing commands.
-//
-// For more comprehensive examples of custom
-// commands please read more here:
-// https://on.cypress.io/custom-commands
-// ***********************************************
-//
-//
-// -- This is a parent command --
-// Cypress.Commands.add('login', (email, password) => { ... })
-//
-//
-// -- This is a child command --
-// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
-//
-//
-// -- This is a dual command --
-// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
-//
-//
-// -- This will overwrite an existing command --
-// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
+++ /dev/null
-// ***********************************************************
-// This example support/index.js is processed and
-// loaded automatically before your test files.
-//
-// This is a great place to put global configuration and
-// behavior that modifies Cypress.
-//
-// You can change the location of this file or turn off
-// automatically serving support files with the
-// 'supportFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/configuration
-// ***********************************************************
-
-// Import commands.js using ES2015 syntax:
-import './commands'
-
-// Alternatively you can use CommonJS syntax:
-// require('./commands')
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.js"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "jsx-router-pinia-with-tests",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vite build",
- "preview": "vite preview --port 5050",
- "test:unit": "cypress open-ct",
- "test:unit:ci": "cypress run-ct --quiet --reporter spec",
- "test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
- "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
- },
- "dependencies": {
- "pinia": "^2.0.4",
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
- },
- "devDependencies": {
- "@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "cypress": "^8.7.0",
- "start-server-and-test": "^1.14.0",
- "vite": "^2.6.14"
- }
-}
+++ /dev/null
-<script setup>
-import HelloWorld from '@/components/HelloWorld.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
-</template>
-
-<style>
-@import '@/assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
- max-height: 100vh;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-nav {
- width: 100%;
- font-size: 12px;
- text-align: center;
- margin-top: 2rem;
-}
-
-nav a.router-link-exact-active {
- color: var(--color-text);
-}
-
-nav a.router-link-exact-active:hover {
- background-color: transparent;
-}
-
-nav a {
- display: inline-block;
- padding: 0 1rem;
- border-left: 1px solid var(--color-border);
-}
-
-nav a:first-of-type {
- border: 0;
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-
- nav {
- text-align: left;
- margin-left: -1rem;
- font-size: 1rem;
-
- padding: 1rem 0;
- margin-top: 1rem;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup>
-defineProps({
- msg: {
- type: String,
- required: true
- }
-})
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup>
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-import { mount } from '@cypress/vue'
-import HelloWorld from '../HelloWorld.vue'
-
-describe('HelloWorld', () => {
- it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- })
-
- it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- cy.get('h1').should('contain', 'Hello Cypress')
- })
-})
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
-
-import App from './App.vue'
-import router from './router'
-
-const app = createApp(App)
-
-app.use(createPinia())
-app.use(router)
-
-app.mount('#app')
+++ /dev/null
-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: '/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')
- }
- ]
-})
-
-export default router
+++ /dev/null
-import { defineStore } from 'pinia'
-
-export const useCounterStore = defineStore({
- id: 'counter',
- state: () => ({
- counter: 0
- }),
- getters: {
- doubleCount: (state) => state.counter * 2
- },
- actions: {
- increment() {
- this.counter++
- }
- }
-})
+++ /dev/null
-<template>
- <div class="about">
- <h1>This is an about page</h1>
- </div>
-</template>
-
-<style>
-@media (min-width: 1024px) {
- .about {
- min-height: 100vh;
- display: flex;
- align-items: center;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import TheWelcome from '@/components/TheWelcome.vue'
-</script>
-
-<template>
- <main>
- <TheWelcome />
- </main>
-</template>
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# jsx-router-pinia
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Compile and Minify for Production
-
-```sh
-pnpm build
-```
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.js"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "jsx-router-pinia",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vite build",
- "preview": "vite preview --port 5050"
- },
- "dependencies": {
- "pinia": "^2.0.4",
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
- },
- "devDependencies": {
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "vite": "^2.6.14"
- }
-}
+++ /dev/null
-<script setup>
-import HelloWorld from '@/components/HelloWorld.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
-</template>
-
-<style>
-@import '@/assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
- max-height: 100vh;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-nav {
- width: 100%;
- font-size: 12px;
- text-align: center;
- margin-top: 2rem;
-}
-
-nav a.router-link-exact-active {
- color: var(--color-text);
-}
-
-nav a.router-link-exact-active:hover {
- background-color: transparent;
-}
-
-nav a {
- display: inline-block;
- padding: 0 1rem;
- border-left: 1px solid var(--color-border);
-}
-
-nav a:first-of-type {
- border: 0;
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-
- nav {
- text-align: left;
- margin-left: -1rem;
- font-size: 1rem;
-
- padding: 1rem 0;
- margin-top: 1rem;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup>
-defineProps({
- msg: {
- type: String,
- required: true
- }
-})
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup>
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
-
-import App from './App.vue'
-import router from './router'
-
-const app = createApp(App)
-
-app.use(createPinia())
-app.use(router)
-
-app.mount('#app')
+++ /dev/null
-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: '/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')
- }
- ]
-})
-
-export default router
+++ /dev/null
-import { defineStore } from 'pinia'
-
-export const useCounterStore = defineStore({
- id: 'counter',
- state: () => ({
- counter: 0
- }),
- getters: {
- doubleCount: (state) => state.counter * 2
- },
- actions: {
- increment() {
- this.counter++
- }
- }
-})
+++ /dev/null
-<template>
- <div class="about">
- <h1>This is an about page</h1>
- </div>
-</template>
-
-<style>
-@media (min-width: 1024px) {
- .about {
- min-height: 100vh;
- display: flex;
- align-items: center;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import TheWelcome from '@/components/TheWelcome.vue'
-</script>
-
-<template>
- <main>
- <TheWelcome />
- </main>
-</template>
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# jsx-router-with-tests
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Compile and Minify for Production
-
-```sh
-pnpm build
-```
-
-### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction)
-
-```sh
-pnpm test:unit # or `pnpm test:unit:ci` for headless testing
-```
-
-### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
-
-```sh
-pnpm build
-pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
-```
+++ /dev/null
-{
- "baseUrl": "http://localhost:5050",
- "component": {
- "componentFolder": "src",
- "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}"
- }
-}
+++ /dev/null
-{
- "name": "Using fixtures to represent data",
- "email": "hello@cypress.io",
- "body": "Fixtures are a great way to mock data for responses to routes"
-}
+++ /dev/null
-// https://docs.cypress.io/api/introduction/api.html
-
-describe('My First Test', () => {
- it('visits the app root url', () => {
- cy.visit('/')
- cy.contains('h1', 'You did it!')
- })
-
- it('navigates to the about page', () => {
- cy.visit('/about')
- cy.contains('h1', 'This is an about page')
- })
-})
+++ /dev/null
-{
- "compilerOptions": {
- "target": "es5",
- "lib": ["es5", "dom"],
- "types": ["cypress"]
- },
- "include": ["./**/*"]
-}
+++ /dev/null
-/// <reference types="cypress" />
-// ***********************************************************
-// This example plugins/index.js can be used to load plugins
-//
-// You can change the location of this file or turn off loading
-// the plugins file with the 'pluginsFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/plugins-guide
-// ***********************************************************
-
-// This function is called when a project is opened or re-opened (e.g. due to
-// the project's config changing)
-
-const { startDevServer } = require('@cypress/vite-dev-server')
-
-/**
- * @type {Cypress.PluginConfig}
- */
-// eslint-disable-next-line no-unused-vars
-module.exports = (on, config) => {
- // `on` is used to hook into various events Cypress emits
- // `config` is the resolved Cypress config
- on('dev-server:start', (options) => {
- return startDevServer({ options })
- })
- return config
-}
+++ /dev/null
-// ***********************************************
-// This example commands.js shows you how to
-// create various custom commands and overwrite
-// existing commands.
-//
-// For more comprehensive examples of custom
-// commands please read more here:
-// https://on.cypress.io/custom-commands
-// ***********************************************
-//
-//
-// -- This is a parent command --
-// Cypress.Commands.add('login', (email, password) => { ... })
-//
-//
-// -- This is a child command --
-// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
-//
-//
-// -- This is a dual command --
-// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
-//
-//
-// -- This will overwrite an existing command --
-// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
+++ /dev/null
-// ***********************************************************
-// This example support/index.js is processed and
-// loaded automatically before your test files.
-//
-// This is a great place to put global configuration and
-// behavior that modifies Cypress.
-//
-// You can change the location of this file or turn off
-// automatically serving support files with the
-// 'supportFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/configuration
-// ***********************************************************
-
-// Import commands.js using ES2015 syntax:
-import './commands'
-
-// Alternatively you can use CommonJS syntax:
-// require('./commands')
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.js"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "jsx-router-with-tests",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vite build",
- "preview": "vite preview --port 5050",
- "test:unit": "cypress open-ct",
- "test:unit:ci": "cypress run-ct --quiet --reporter spec",
- "test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
- "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
- },
- "dependencies": {
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
- },
- "devDependencies": {
- "@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "cypress": "^8.7.0",
- "start-server-and-test": "^1.14.0",
- "vite": "^2.6.14"
- }
-}
+++ /dev/null
-<script setup>
-import HelloWorld from '@/components/HelloWorld.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
-</template>
-
-<style>
-@import '@/assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
- max-height: 100vh;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-nav {
- width: 100%;
- font-size: 12px;
- text-align: center;
- margin-top: 2rem;
-}
-
-nav a.router-link-exact-active {
- color: var(--color-text);
-}
-
-nav a.router-link-exact-active:hover {
- background-color: transparent;
-}
-
-nav a {
- display: inline-block;
- padding: 0 1rem;
- border-left: 1px solid var(--color-border);
-}
-
-nav a:first-of-type {
- border: 0;
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-
- nav {
- text-align: left;
- margin-left: -1rem;
- font-size: 1rem;
-
- padding: 1rem 0;
- margin-top: 1rem;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup>
-defineProps({
- msg: {
- type: String,
- required: true
- }
-})
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup>
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-import { mount } from '@cypress/vue'
-import HelloWorld from '../HelloWorld.vue'
-
-describe('HelloWorld', () => {
- it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- })
-
- it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- cy.get('h1').should('contain', 'Hello Cypress')
- })
-})
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import App from './App.vue'
-import router from './router'
-
-const app = createApp(App)
-
-app.use(router)
-
-app.mount('#app')
+++ /dev/null
-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: '/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')
- }
- ]
-})
-
-export default router
+++ /dev/null
-<template>
- <div class="about">
- <h1>This is an about page</h1>
- </div>
-</template>
-
-<style>
-@media (min-width: 1024px) {
- .about {
- min-height: 100vh;
- display: flex;
- align-items: center;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import TheWelcome from '@/components/TheWelcome.vue'
-</script>
-
-<template>
- <main>
- <TheWelcome />
- </main>
-</template>
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# jsx-router
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Compile and Minify for Production
-
-```sh
-pnpm build
-```
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.js"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "jsx-router",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vite build",
- "preview": "vite preview --port 5050"
- },
- "dependencies": {
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
- },
- "devDependencies": {
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "vite": "^2.6.14"
- }
-}
+++ /dev/null
-<script setup>
-import HelloWorld from '@/components/HelloWorld.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
-</template>
-
-<style>
-@import '@/assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
- max-height: 100vh;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-nav {
- width: 100%;
- font-size: 12px;
- text-align: center;
- margin-top: 2rem;
-}
-
-nav a.router-link-exact-active {
- color: var(--color-text);
-}
-
-nav a.router-link-exact-active:hover {
- background-color: transparent;
-}
-
-nav a {
- display: inline-block;
- padding: 0 1rem;
- border-left: 1px solid var(--color-border);
-}
-
-nav a:first-of-type {
- border: 0;
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-
- nav {
- text-align: left;
- margin-left: -1rem;
- font-size: 1rem;
-
- padding: 1rem 0;
- margin-top: 1rem;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup>
-defineProps({
- msg: {
- type: String,
- required: true
- }
-})
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup>
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import App from './App.vue'
-import router from './router'
-
-const app = createApp(App)
-
-app.use(router)
-
-app.mount('#app')
+++ /dev/null
-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: '/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')
- }
- ]
-})
-
-export default router
+++ /dev/null
-<template>
- <div class="about">
- <h1>This is an about page</h1>
- </div>
-</template>
-
-<style>
-@media (min-width: 1024px) {
- .about {
- min-height: 100vh;
- display: flex;
- align-items: center;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import TheWelcome from '@/components/TheWelcome.vue'
-</script>
-
-<template>
- <main>
- <TheWelcome />
- </main>
-</template>
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# jsx-with-tests
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Compile and Minify for Production
-
-```sh
-pnpm build
-```
-
-### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction)
-
-```sh
-pnpm test:unit # or `pnpm test:unit:ci` for headless testing
-```
-
-### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
-
-```sh
-pnpm build
-pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
-```
+++ /dev/null
-{
- "baseUrl": "http://localhost:5050",
- "component": {
- "componentFolder": "src",
- "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}"
- }
-}
+++ /dev/null
-{
- "name": "Using fixtures to represent data",
- "email": "hello@cypress.io",
- "body": "Fixtures are a great way to mock data for responses to routes"
-}
+++ /dev/null
-// https://docs.cypress.io/api/introduction/api.html
-
-describe('My First Test', () => {
- it('visits the app root url', () => {
- cy.visit('/')
- cy.contains('h1', 'You did it!')
- })
-})
+++ /dev/null
-{
- "compilerOptions": {
- "target": "es5",
- "lib": ["es5", "dom"],
- "types": ["cypress"]
- },
- "include": ["./**/*"]
-}
+++ /dev/null
-/// <reference types="cypress" />
-// ***********************************************************
-// This example plugins/index.js can be used to load plugins
-//
-// You can change the location of this file or turn off loading
-// the plugins file with the 'pluginsFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/plugins-guide
-// ***********************************************************
-
-// This function is called when a project is opened or re-opened (e.g. due to
-// the project's config changing)
-
-const { startDevServer } = require('@cypress/vite-dev-server')
-
-/**
- * @type {Cypress.PluginConfig}
- */
-// eslint-disable-next-line no-unused-vars
-module.exports = (on, config) => {
- // `on` is used to hook into various events Cypress emits
- // `config` is the resolved Cypress config
- on('dev-server:start', (options) => {
- return startDevServer({ options })
- })
- return config
-}
+++ /dev/null
-// ***********************************************
-// This example commands.js shows you how to
-// create various custom commands and overwrite
-// existing commands.
-//
-// For more comprehensive examples of custom
-// commands please read more here:
-// https://on.cypress.io/custom-commands
-// ***********************************************
-//
-//
-// -- This is a parent command --
-// Cypress.Commands.add('login', (email, password) => { ... })
-//
-//
-// -- This is a child command --
-// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
-//
-//
-// -- This is a dual command --
-// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
-//
-//
-// -- This will overwrite an existing command --
-// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
+++ /dev/null
-// ***********************************************************
-// This example support/index.js is processed and
-// loaded automatically before your test files.
-//
-// This is a great place to put global configuration and
-// behavior that modifies Cypress.
-//
-// You can change the location of this file or turn off
-// automatically serving support files with the
-// 'supportFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/configuration
-// ***********************************************************
-
-// Import commands.js using ES2015 syntax:
-import './commands'
-
-// Alternatively you can use CommonJS syntax:
-// require('./commands')
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.js"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "jsx-with-tests",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vite build",
- "preview": "vite preview --port 5050",
- "test:unit": "cypress open-ct",
- "test:unit:ci": "cypress run-ct --quiet --reporter spec",
- "test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
- "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
- },
- "dependencies": {
- "vue": "^3.2.22"
- },
- "devDependencies": {
- "@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "cypress": "^8.7.0",
- "start-server-and-test": "^1.14.0",
- "vite": "^2.6.14"
- }
-}
+++ /dev/null
-<script setup>
-import HelloWorld from './components/HelloWorld.vue'
-import TheWelcome from './components/TheWelcome.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
-
- <main>
- <TheWelcome />
- </main>
-</template>
-
-<style>
-@import './assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup>
-defineProps({
- msg: {
- type: String,
- required: true
- }
-})
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup>
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-import { mount } from '@cypress/vue'
-import HelloWorld from '../HelloWorld.vue'
-
-describe('HelloWorld', () => {
- it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- })
-
- it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- cy.get('h1').should('contain', 'Hello Cypress')
- })
-})
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import App from './App.vue'
-
-createApp(App).mount('#app')
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# jsx
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Compile and Minify for Production
-
-```sh
-pnpm build
-```
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.js"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "jsx",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vite build",
- "preview": "vite preview --port 5050"
- },
- "dependencies": {
- "vue": "^3.2.22"
- },
- "devDependencies": {
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "vite": "^2.6.14"
- }
-}
+++ /dev/null
-<script setup>
-import HelloWorld from './components/HelloWorld.vue'
-import TheWelcome from './components/TheWelcome.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
-
- <main>
- <TheWelcome />
- </main>
-</template>
-
-<style>
-@import './assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup>
-defineProps({
- msg: {
- type: String,
- required: true
- }
-})
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup>
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import App from './App.vue'
-
-createApp(App).mount('#app')
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
},
"dependencies": {
+ "@vue/composition-api": "^1.4.0",
"pinia": "^2.0.4",
- "vue": "^3.2.22"
+ "vue": "^2.6.14"
},
"devDependencies": {
"@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
- "@vitejs/plugin-vue": "^1.10.0",
+ "@cypress/vue": "^2.2.4",
+ "@vue/runtime-dom": "^3.2.22",
"cypress": "^8.7.0",
"start-server-and-test": "^1.14.0",
- "vite": "^2.6.14"
+ "unplugin-vue2-script-setup": "^0.7.1",
+ "vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+ </div>
+ </header>
- <main>
- <TheWelcome />
- </main>
+ <main>
+ <TheWelcome />
+ </main>
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
describe('HelloWorld', () => {
it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
})
it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
cy.get('h1').should('contain', 'Hello Cypress')
})
})
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+import { createPinia, PiniaVuePlugin } from 'pinia'
+
import App from './App.vue'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
+Vue.use(PiniaVuePlugin)
-app.use(createPinia())
+const app = new Vue({
+ pinia: createPinia(),
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
"preview": "vite preview --port 5050"
},
"dependencies": {
+ "@vue/composition-api": "^1.4.0",
"pinia": "^2.0.4",
- "vue": "^3.2.22"
+ "vue": "^2.6.14"
},
"devDependencies": {
- "@vitejs/plugin-vue": "^1.10.0",
- "vite": "^2.6.14"
+ "@vue/runtime-dom": "^3.2.22",
+ "unplugin-vue2-script-setup": "^0.7.1",
+ "vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+ </div>
+ </header>
- <main>
- <TheWelcome />
- </main>
+ <main>
+ <TheWelcome />
+ </main>
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+import { createPinia, PiniaVuePlugin } from 'pinia'
+
import App from './App.vue'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
+Vue.use(PiniaVuePlugin)
-app.use(createPinia())
+const app = new Vue({
+ pinia: createPinia(),
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
},
"dependencies": {
+ "@vue/composition-api": "^1.4.0",
"pinia": "^2.0.4",
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
+ "vue": "^2.6.14",
+ "vue-router": "^3.5.3"
},
"devDependencies": {
"@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
- "@vitejs/plugin-vue": "^1.10.0",
+ "@cypress/vue": "^2.2.4",
+ "@vue/runtime-dom": "^3.2.22",
"cypress": "^8.7.0",
"start-server-and-test": "^1.14.0",
- "vite": "^2.6.14"
+ "unplugin-vue2-script-setup": "^0.7.1",
+ "vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
+
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+
+ <nav>
+ <router-link to="/">Home</router-link>
+ <router-link to="/about">About</router-link>
+ </nav>
+ </div>
+ </header>
+
+ <router-view />
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
describe('HelloWorld', () => {
it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
})
it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
cy.get('h1').should('contain', 'Hello Cypress')
})
})
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+import { createPinia, PiniaVuePlugin } from 'pinia'
import App from './App.vue'
import router from './router'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
+Vue.use(PiniaVuePlugin)
-app.use(createPinia())
-app.use(router)
+const app = new Vue({
+ router,
+ pinia: createPinia(),
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
-import { createRouter, createWebHistory } from 'vue-router'
+import Vue from 'vue'
+import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
-const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+Vue.use(VueRouter)
+
+const router = new VueRouter({
+ mode: 'history',
+ base: import.meta.env.BASE_URL,
routes: [
{
path: '/',
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
"preview": "vite preview --port 5050"
},
"dependencies": {
+ "@vue/composition-api": "^1.4.0",
"pinia": "^2.0.4",
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
+ "vue": "^2.6.14",
+ "vue-router": "^3.5.3"
},
"devDependencies": {
- "@vitejs/plugin-vue": "^1.10.0",
- "vite": "^2.6.14"
+ "@vue/runtime-dom": "^3.2.22",
+ "unplugin-vue2-script-setup": "^0.7.1",
+ "vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
+
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+
+ <nav>
+ <router-link to="/">Home</router-link>
+ <router-link to="/about">About</router-link>
+ </nav>
+ </div>
+ </header>
+
+ <router-view />
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+import { createPinia, PiniaVuePlugin } from 'pinia'
import App from './App.vue'
import router from './router'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
+Vue.use(PiniaVuePlugin)
-app.use(createPinia())
-app.use(router)
+const app = new Vue({
+ router,
+ pinia: createPinia(),
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
-import { createRouter, createWebHistory } from 'vue-router'
+import Vue from 'vue'
+import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
-const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+Vue.use(VueRouter)
+
+const router = new VueRouter({
+ mode: 'history',
+ base: import.meta.env.BASE_URL,
routes: [
{
path: '/',
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
},
"dependencies": {
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
+ "@vue/composition-api": "^1.4.0",
+ "vue": "^2.6.14",
+ "vue-router": "^3.5.3"
},
"devDependencies": {
"@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
- "@vitejs/plugin-vue": "^1.10.0",
+ "@cypress/vue": "^2.2.4",
+ "@vue/runtime-dom": "^3.2.22",
"cypress": "^8.7.0",
"start-server-and-test": "^1.14.0",
- "vite": "^2.6.14"
+ "unplugin-vue2-script-setup": "^0.7.1",
+ "vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
+
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+
+ <nav>
+ <router-link to="/">Home</router-link>
+ <router-link to="/about">About</router-link>
+ </nav>
+ </div>
+ </header>
+
+ <router-view />
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
describe('HelloWorld', () => {
it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
})
it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
cy.get('h1').should('contain', 'Hello Cypress')
})
})
-import { createApp } from 'vue'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+
import App from './App.vue'
import router from './router'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
-app.use(router)
+const app = new Vue({
+ router,
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
-import { createRouter, createWebHistory } from 'vue-router'
+import Vue from 'vue'
+import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
-const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+Vue.use(VueRouter)
+
+const router = new VueRouter({
+ mode: 'history',
+ base: import.meta.env.BASE_URL,
routes: [
{
path: '/',
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
"preview": "vite preview --port 5050"
},
"dependencies": {
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
+ "@vue/composition-api": "^1.4.0",
+ "vue": "^2.6.14",
+ "vue-router": "^3.5.3"
},
"devDependencies": {
- "@vitejs/plugin-vue": "^1.10.0",
- "vite": "^2.6.14"
+ "@vue/runtime-dom": "^3.2.22",
+ "unplugin-vue2-script-setup": "^0.7.1",
+ "vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
+
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+
+ <nav>
+ <router-link to="/">Home</router-link>
+ <router-link to="/about">About</router-link>
+ </nav>
+ </div>
+ </header>
+
+ <router-view />
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
-import { createApp } from 'vue'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+
import App from './App.vue'
import router from './router'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
-app.use(router)
+const app = new Vue({
+ router,
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
-import { createRouter, createWebHistory } from 'vue-router'
+import Vue from 'vue'
+import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
-const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+Vue.use(VueRouter)
+
+const router = new VueRouter({
+ mode: 'history',
+ base: import.meta.env.BASE_URL,
routes: [
{
path: '/',
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# typescript-jsx-pinia-with-tests
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Type Support for `.vue` Imports in TS
-
-Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates.
-
-However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette.
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Type-Check, Compile and Minify for Production
-
-```sh
-pnpm build
-```
-
-### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction)
-
-```sh
-pnpm test:unit # or `pnpm test:unit:ci` for headless testing
-```
-
-### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
-
-```sh
-pnpm build
-pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
-```
+++ /dev/null
-{
- "baseUrl": "http://localhost:5050",
- "component": {
- "componentFolder": "src",
- "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}"
- }
-}
+++ /dev/null
-{
- "name": "Using fixtures to represent data",
- "email": "hello@cypress.io",
- "body": "Fixtures are a great way to mock data for responses to routes"
-}
+++ /dev/null
-// https://docs.cypress.io/api/introduction/api.html
-
-describe('My First Test', () => {
- it('visits the app root url', () => {
- cy.visit('/')
- cy.contains('h1', 'You did it!')
- })
-})
+++ /dev/null
-/// <reference types="cypress" />
-// ***********************************************************
-// This example plugins/index.js can be used to load plugins
-//
-// You can change the location of this file or turn off loading
-// the plugins file with the 'pluginsFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/plugins-guide
-// ***********************************************************
-
-// This function is called when a project is opened or re-opened (e.g. due to
-// the project's config changing)
-
-const { startDevServer } = require('@cypress/vite-dev-server')
-
-/**
- * @type {Cypress.PluginConfig}
- */
-// eslint-disable-next-line no-unused-vars
-module.exports = (on, config) => {
- // `on` is used to hook into various events Cypress emits
- // `config` is the resolved Cypress config
- on('dev-server:start', (options) => {
- return startDevServer({ options })
- })
- return config
-}
+++ /dev/null
-// ***********************************************
-// This example commands.js shows you how to
-// create various custom commands and overwrite
-// existing commands.
-//
-// For more comprehensive examples of custom
-// commands please read more here:
-// https://on.cypress.io/custom-commands
-// ***********************************************
-//
-//
-// -- This is a parent command --
-// Cypress.Commands.add('login', (email, password) => { ... })
-//
-//
-// -- This is a child command --
-// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
-//
-//
-// -- This is a dual command --
-// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
-//
-//
-// -- This will overwrite an existing command --
-// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
+++ /dev/null
-// ***********************************************************
-// This example support/index.js is processed and
-// loaded automatically before your test files.
-//
-// This is a great place to put global configuration and
-// behavior that modifies Cypress.
-//
-// You can change the location of this file or turn off
-// automatically serving support files with the
-// 'supportFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/configuration
-// ***********************************************************
-
-// Import commands.js using ES2015 syntax:
-import './commands'
-
-// Alternatively you can use CommonJS syntax:
-// require('./commands')
+++ /dev/null
-{
- "compilerOptions": {
- "target": "es5",
- "lib": ["es5", "dom"],
- "types": ["cypress"]
- },
- "include": ["./**/*"]
-}
+++ /dev/null
-/// <reference types="vite/client" />
-
-declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
-}
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.ts"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "typescript-jsx-pinia-with-tests",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vue-tsc --noEmit && vite build",
- "preview": "vite preview --port 5050",
- "test:unit": "cypress open-ct",
- "test:unit:ci": "cypress run-ct --quiet --reporter spec",
- "test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
- "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'",
- "typecheck": "vue-tsc --noEmit"
- },
- "dependencies": {
- "pinia": "^2.0.4",
- "vue": "^3.2.22"
- },
- "devDependencies": {
- "@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
- "@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "cypress": "^8.7.0",
- "start-server-and-test": "^1.14.0",
- "typescript": "~4.4.4",
- "vite": "^2.6.14",
- "vue-tsc": "^0.29.6"
- }
-}
+++ /dev/null
-<script setup lang="ts">
-import HelloWorld from './components/HelloWorld.vue'
-import TheWelcome from './components/TheWelcome.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
-
- <main>
- <TheWelcome />
- </main>
-</template>
-
-<style>
-@import './assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup lang="ts">
-defineProps<{
- msg: string
-}>()
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-import { mount } from '@cypress/vue'
-import HelloWorld from '../HelloWorld.vue'
-
-describe('HelloWorld', () => {
- it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- })
-
- it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- cy.get('h1').should('contain', 'Hello Cypress')
- })
-})
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
-import App from './App.vue'
-
-const app = createApp(App)
-
-app.use(createPinia())
-
-app.mount('#app')
+++ /dev/null
-import { defineStore } from 'pinia'
-
-export const useCounterStore = defineStore({
- id: 'counter',
- state: () => ({
- counter: 0
- }),
- getters: {
- doubleCount: (state) => state.counter * 2
- },
- actions: {
- increment() {
- this.counter++
- }
- }
-})
+++ /dev/null
-{
- "compilerOptions": {
- "baseUrl": "./",
- "target": "esnext",
- "useDefineForClassFields": true,
- "module": "esnext",
- "moduleResolution": "node",
- "isolatedModules": true,
- "strict": true,
- "jsx": "preserve",
- "sourceMap": true,
- "resolveJsonModule": true,
- "esModuleInterop": true,
- "paths": {
- "@/*": ["src/*"]
- },
- "lib": ["esnext", "dom", "dom.iterable", "scripthost"],
- "skipLibCheck": true
- },
- "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
-}
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# typescript-jsx-pinia
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Type Support for `.vue` Imports in TS
-
-Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates.
-
-However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette.
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Type-Check, Compile and Minify for Production
-
-```sh
-pnpm build
-```
+++ /dev/null
-/// <reference types="vite/client" />
-
-declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
-}
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.ts"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "typescript-jsx-pinia",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vue-tsc --noEmit && vite build",
- "preview": "vite preview --port 5050",
- "typecheck": "vue-tsc --noEmit"
- },
- "dependencies": {
- "pinia": "^2.0.4",
- "vue": "^3.2.22"
- },
- "devDependencies": {
- "@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "typescript": "~4.4.4",
- "vite": "^2.6.14",
- "vue-tsc": "^0.29.6"
- }
-}
+++ /dev/null
-<script setup lang="ts">
-import HelloWorld from './components/HelloWorld.vue'
-import TheWelcome from './components/TheWelcome.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
-
- <main>
- <TheWelcome />
- </main>
-</template>
-
-<style>
-@import './assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup lang="ts">
-defineProps<{
- msg: string
-}>()
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
-import App from './App.vue'
-
-const app = createApp(App)
-
-app.use(createPinia())
-
-app.mount('#app')
+++ /dev/null
-import { defineStore } from 'pinia'
-
-export const useCounterStore = defineStore({
- id: 'counter',
- state: () => ({
- counter: 0
- }),
- getters: {
- doubleCount: (state) => state.counter * 2
- },
- actions: {
- increment() {
- this.counter++
- }
- }
-})
+++ /dev/null
-{
- "compilerOptions": {
- "baseUrl": "./",
- "target": "esnext",
- "useDefineForClassFields": true,
- "module": "esnext",
- "moduleResolution": "node",
- "isolatedModules": true,
- "strict": true,
- "jsx": "preserve",
- "sourceMap": true,
- "resolveJsonModule": true,
- "esModuleInterop": true,
- "paths": {
- "@/*": ["src/*"]
- },
- "lib": ["esnext", "dom", "dom.iterable", "scripthost"],
- "skipLibCheck": true
- },
- "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
-}
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# typescript-jsx-router-pinia-with-tests
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Type Support for `.vue` Imports in TS
-
-Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates.
-
-However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette.
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Type-Check, Compile and Minify for Production
-
-```sh
-pnpm build
-```
-
-### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction)
-
-```sh
-pnpm test:unit # or `pnpm test:unit:ci` for headless testing
-```
-
-### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
-
-```sh
-pnpm build
-pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
-```
+++ /dev/null
-{
- "baseUrl": "http://localhost:5050",
- "component": {
- "componentFolder": "src",
- "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}"
- }
-}
+++ /dev/null
-{
- "name": "Using fixtures to represent data",
- "email": "hello@cypress.io",
- "body": "Fixtures are a great way to mock data for responses to routes"
-}
+++ /dev/null
-// https://docs.cypress.io/api/introduction/api.html
-
-describe('My First Test', () => {
- it('visits the app root url', () => {
- cy.visit('/')
- cy.contains('h1', 'You did it!')
- })
-
- it('navigates to the about page', () => {
- cy.visit('/about')
- cy.contains('h1', 'This is an about page')
- })
-})
+++ /dev/null
-/// <reference types="cypress" />
-// ***********************************************************
-// This example plugins/index.js can be used to load plugins
-//
-// You can change the location of this file or turn off loading
-// the plugins file with the 'pluginsFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/plugins-guide
-// ***********************************************************
-
-// This function is called when a project is opened or re-opened (e.g. due to
-// the project's config changing)
-
-const { startDevServer } = require('@cypress/vite-dev-server')
-
-/**
- * @type {Cypress.PluginConfig}
- */
-// eslint-disable-next-line no-unused-vars
-module.exports = (on, config) => {
- // `on` is used to hook into various events Cypress emits
- // `config` is the resolved Cypress config
- on('dev-server:start', (options) => {
- return startDevServer({ options })
- })
- return config
-}
+++ /dev/null
-// ***********************************************
-// This example commands.js shows you how to
-// create various custom commands and overwrite
-// existing commands.
-//
-// For more comprehensive examples of custom
-// commands please read more here:
-// https://on.cypress.io/custom-commands
-// ***********************************************
-//
-//
-// -- This is a parent command --
-// Cypress.Commands.add('login', (email, password) => { ... })
-//
-//
-// -- This is a child command --
-// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
-//
-//
-// -- This is a dual command --
-// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
-//
-//
-// -- This will overwrite an existing command --
-// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
+++ /dev/null
-// ***********************************************************
-// This example support/index.js is processed and
-// loaded automatically before your test files.
-//
-// This is a great place to put global configuration and
-// behavior that modifies Cypress.
-//
-// You can change the location of this file or turn off
-// automatically serving support files with the
-// 'supportFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/configuration
-// ***********************************************************
-
-// Import commands.js using ES2015 syntax:
-import './commands'
-
-// Alternatively you can use CommonJS syntax:
-// require('./commands')
+++ /dev/null
-{
- "compilerOptions": {
- "target": "es5",
- "lib": ["es5", "dom"],
- "types": ["cypress"]
- },
- "include": ["./**/*"]
-}
+++ /dev/null
-/// <reference types="vite/client" />
-
-declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
-}
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.ts"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "typescript-jsx-router-pinia-with-tests",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vue-tsc --noEmit && vite build",
- "preview": "vite preview --port 5050",
- "test:unit": "cypress open-ct",
- "test:unit:ci": "cypress run-ct --quiet --reporter spec",
- "test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
- "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'",
- "typecheck": "vue-tsc --noEmit"
- },
- "dependencies": {
- "pinia": "^2.0.4",
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
- },
- "devDependencies": {
- "@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
- "@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "cypress": "^8.7.0",
- "start-server-and-test": "^1.14.0",
- "typescript": "~4.4.4",
- "vite": "^2.6.14",
- "vue-tsc": "^0.29.6"
- }
-}
+++ /dev/null
-<script setup lang="ts">
-import HelloWorld from '@/components/HelloWorld.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
-</template>
-
-<style>
-@import '@/assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
- max-height: 100vh;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-nav {
- width: 100%;
- font-size: 12px;
- text-align: center;
- margin-top: 2rem;
-}
-
-nav a.router-link-exact-active {
- color: var(--color-text);
-}
-
-nav a.router-link-exact-active:hover {
- background-color: transparent;
-}
-
-nav a {
- display: inline-block;
- padding: 0 1rem;
- border-left: 1px solid var(--color-border);
-}
-
-nav a:first-of-type {
- border: 0;
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-
- nav {
- text-align: left;
- margin-left: -1rem;
- font-size: 1rem;
-
- padding: 1rem 0;
- margin-top: 1rem;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup lang="ts">
-defineProps<{
- msg: string
-}>()
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>. What's next?
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-import { mount } from '@cypress/vue'
-import HelloWorld from '../HelloWorld.vue'
-
-describe('HelloWorld', () => {
- it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- })
-
- it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- cy.get('h1').should('contain', 'Hello Cypress')
- })
-})
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
-
-import App from './App.vue'
-import router from './router'
-
-const app = createApp(App)
-
-app.use(createPinia())
-app.use(router)
-
-app.mount('#app')
+++ /dev/null
-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: '/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')
- }
- ]
-})
-
-export default router
+++ /dev/null
-import { defineStore } from 'pinia'
-
-export const useCounterStore = defineStore({
- id: 'counter',
- state: () => ({
- counter: 0
- }),
- getters: {
- doubleCount: (state) => state.counter * 2
- },
- actions: {
- increment() {
- this.counter++
- }
- }
-})
+++ /dev/null
-<template>
- <div class="about">
- <h1>This is an about page</h1>
- </div>
-</template>
-
-<style>
-@media (min-width: 1024px) {
- .about {
- min-height: 100vh;
- display: flex;
- align-items: center;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import TheWelcome from '@/components/TheWelcome.vue'
-</script>
-
-<template>
- <main>
- <TheWelcome />
- </main>
-</template>
+++ /dev/null
-{
- "compilerOptions": {
- "baseUrl": "./",
- "target": "esnext",
- "useDefineForClassFields": true,
- "module": "esnext",
- "moduleResolution": "node",
- "isolatedModules": true,
- "strict": true,
- "jsx": "preserve",
- "sourceMap": true,
- "resolveJsonModule": true,
- "esModuleInterop": true,
- "paths": {
- "@/*": ["src/*"]
- },
- "lib": ["esnext", "dom", "dom.iterable", "scripthost"],
- "skipLibCheck": true
- },
- "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
-}
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# typescript-jsx-router-pinia
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Type Support for `.vue` Imports in TS
-
-Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates.
-
-However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette.
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Type-Check, Compile and Minify for Production
-
-```sh
-pnpm build
-```
+++ /dev/null
-/// <reference types="vite/client" />
-
-declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
-}
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.ts"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "typescript-jsx-router-pinia",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vue-tsc --noEmit && vite build",
- "preview": "vite preview --port 5050",
- "typecheck": "vue-tsc --noEmit"
- },
- "dependencies": {
- "pinia": "^2.0.4",
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
- },
- "devDependencies": {
- "@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "typescript": "~4.4.4",
- "vite": "^2.6.14",
- "vue-tsc": "^0.29.6"
- }
-}
+++ /dev/null
-<script setup lang="ts">
-import HelloWorld from '@/components/HelloWorld.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
-</template>
-
-<style>
-@import '@/assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
- max-height: 100vh;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-nav {
- width: 100%;
- font-size: 12px;
- text-align: center;
- margin-top: 2rem;
-}
-
-nav a.router-link-exact-active {
- color: var(--color-text);
-}
-
-nav a.router-link-exact-active:hover {
- background-color: transparent;
-}
-
-nav a {
- display: inline-block;
- padding: 0 1rem;
- border-left: 1px solid var(--color-border);
-}
-
-nav a:first-of-type {
- border: 0;
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-
- nav {
- text-align: left;
- margin-left: -1rem;
- font-size: 1rem;
-
- padding: 1rem 0;
- margin-top: 1rem;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup lang="ts">
-defineProps<{
- msg: string
-}>()
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>. What's next?
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
-
-import App from './App.vue'
-import router from './router'
-
-const app = createApp(App)
-
-app.use(createPinia())
-app.use(router)
-
-app.mount('#app')
+++ /dev/null
-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: '/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')
- }
- ]
-})
-
-export default router
+++ /dev/null
-import { defineStore } from 'pinia'
-
-export const useCounterStore = defineStore({
- id: 'counter',
- state: () => ({
- counter: 0
- }),
- getters: {
- doubleCount: (state) => state.counter * 2
- },
- actions: {
- increment() {
- this.counter++
- }
- }
-})
+++ /dev/null
-<template>
- <div class="about">
- <h1>This is an about page</h1>
- </div>
-</template>
-
-<style>
-@media (min-width: 1024px) {
- .about {
- min-height: 100vh;
- display: flex;
- align-items: center;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import TheWelcome from '@/components/TheWelcome.vue'
-</script>
-
-<template>
- <main>
- <TheWelcome />
- </main>
-</template>
+++ /dev/null
-{
- "compilerOptions": {
- "baseUrl": "./",
- "target": "esnext",
- "useDefineForClassFields": true,
- "module": "esnext",
- "moduleResolution": "node",
- "isolatedModules": true,
- "strict": true,
- "jsx": "preserve",
- "sourceMap": true,
- "resolveJsonModule": true,
- "esModuleInterop": true,
- "paths": {
- "@/*": ["src/*"]
- },
- "lib": ["esnext", "dom", "dom.iterable", "scripthost"],
- "skipLibCheck": true
- },
- "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
-}
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# typescript-jsx-router-with-tests
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Type Support for `.vue` Imports in TS
-
-Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates.
-
-However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette.
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Type-Check, Compile and Minify for Production
-
-```sh
-pnpm build
-```
-
-### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction)
-
-```sh
-pnpm test:unit # or `pnpm test:unit:ci` for headless testing
-```
-
-### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
-
-```sh
-pnpm build
-pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
-```
+++ /dev/null
-{
- "baseUrl": "http://localhost:5050",
- "component": {
- "componentFolder": "src",
- "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}"
- }
-}
+++ /dev/null
-{
- "name": "Using fixtures to represent data",
- "email": "hello@cypress.io",
- "body": "Fixtures are a great way to mock data for responses to routes"
-}
+++ /dev/null
-// https://docs.cypress.io/api/introduction/api.html
-
-describe('My First Test', () => {
- it('visits the app root url', () => {
- cy.visit('/')
- cy.contains('h1', 'You did it!')
- })
-
- it('navigates to the about page', () => {
- cy.visit('/about')
- cy.contains('h1', 'This is an about page')
- })
-})
+++ /dev/null
-/// <reference types="cypress" />
-// ***********************************************************
-// This example plugins/index.js can be used to load plugins
-//
-// You can change the location of this file or turn off loading
-// the plugins file with the 'pluginsFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/plugins-guide
-// ***********************************************************
-
-// This function is called when a project is opened or re-opened (e.g. due to
-// the project's config changing)
-
-const { startDevServer } = require('@cypress/vite-dev-server')
-
-/**
- * @type {Cypress.PluginConfig}
- */
-// eslint-disable-next-line no-unused-vars
-module.exports = (on, config) => {
- // `on` is used to hook into various events Cypress emits
- // `config` is the resolved Cypress config
- on('dev-server:start', (options) => {
- return startDevServer({ options })
- })
- return config
-}
+++ /dev/null
-// ***********************************************
-// This example commands.js shows you how to
-// create various custom commands and overwrite
-// existing commands.
-//
-// For more comprehensive examples of custom
-// commands please read more here:
-// https://on.cypress.io/custom-commands
-// ***********************************************
-//
-//
-// -- This is a parent command --
-// Cypress.Commands.add('login', (email, password) => { ... })
-//
-//
-// -- This is a child command --
-// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
-//
-//
-// -- This is a dual command --
-// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
-//
-//
-// -- This will overwrite an existing command --
-// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
+++ /dev/null
-// ***********************************************************
-// This example support/index.js is processed and
-// loaded automatically before your test files.
-//
-// This is a great place to put global configuration and
-// behavior that modifies Cypress.
-//
-// You can change the location of this file or turn off
-// automatically serving support files with the
-// 'supportFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/configuration
-// ***********************************************************
-
-// Import commands.js using ES2015 syntax:
-import './commands'
-
-// Alternatively you can use CommonJS syntax:
-// require('./commands')
+++ /dev/null
-{
- "compilerOptions": {
- "target": "es5",
- "lib": ["es5", "dom"],
- "types": ["cypress"]
- },
- "include": ["./**/*"]
-}
+++ /dev/null
-/// <reference types="vite/client" />
-
-declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
-}
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.ts"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "typescript-jsx-router-with-tests",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vue-tsc --noEmit && vite build",
- "preview": "vite preview --port 5050",
- "test:unit": "cypress open-ct",
- "test:unit:ci": "cypress run-ct --quiet --reporter spec",
- "test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
- "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'",
- "typecheck": "vue-tsc --noEmit"
- },
- "dependencies": {
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
- },
- "devDependencies": {
- "@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
- "@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "cypress": "^8.7.0",
- "start-server-and-test": "^1.14.0",
- "typescript": "~4.4.4",
- "vite": "^2.6.14",
- "vue-tsc": "^0.29.6"
- }
-}
+++ /dev/null
-<script setup lang="ts">
-import HelloWorld from '@/components/HelloWorld.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
-</template>
-
-<style>
-@import '@/assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
- max-height: 100vh;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-nav {
- width: 100%;
- font-size: 12px;
- text-align: center;
- margin-top: 2rem;
-}
-
-nav a.router-link-exact-active {
- color: var(--color-text);
-}
-
-nav a.router-link-exact-active:hover {
- background-color: transparent;
-}
-
-nav a {
- display: inline-block;
- padding: 0 1rem;
- border-left: 1px solid var(--color-border);
-}
-
-nav a:first-of-type {
- border: 0;
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-
- nav {
- text-align: left;
- margin-left: -1rem;
- font-size: 1rem;
-
- padding: 1rem 0;
- margin-top: 1rem;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup lang="ts">
-defineProps<{
- msg: string
-}>()
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>. What's next?
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-import { mount } from '@cypress/vue'
-import HelloWorld from '../HelloWorld.vue'
-
-describe('HelloWorld', () => {
- it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- })
-
- it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- cy.get('h1').should('contain', 'Hello Cypress')
- })
-})
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import App from './App.vue'
-import router from './router'
-
-const app = createApp(App)
-
-app.use(router)
-
-app.mount('#app')
+++ /dev/null
-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: '/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')
- }
- ]
-})
-
-export default router
+++ /dev/null
-<template>
- <div class="about">
- <h1>This is an about page</h1>
- </div>
-</template>
-
-<style>
-@media (min-width: 1024px) {
- .about {
- min-height: 100vh;
- display: flex;
- align-items: center;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import TheWelcome from '@/components/TheWelcome.vue'
-</script>
-
-<template>
- <main>
- <TheWelcome />
- </main>
-</template>
+++ /dev/null
-{
- "compilerOptions": {
- "baseUrl": "./",
- "target": "esnext",
- "useDefineForClassFields": true,
- "module": "esnext",
- "moduleResolution": "node",
- "isolatedModules": true,
- "strict": true,
- "jsx": "preserve",
- "sourceMap": true,
- "resolveJsonModule": true,
- "esModuleInterop": true,
- "paths": {
- "@/*": ["src/*"]
- },
- "lib": ["esnext", "dom", "dom.iterable", "scripthost"],
- "skipLibCheck": true
- },
- "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
-}
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# typescript-jsx-router
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Type Support for `.vue` Imports in TS
-
-Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates.
-
-However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette.
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Type-Check, Compile and Minify for Production
-
-```sh
-pnpm build
-```
+++ /dev/null
-/// <reference types="vite/client" />
-
-declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
-}
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.ts"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "typescript-jsx-router",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vue-tsc --noEmit && vite build",
- "preview": "vite preview --port 5050",
- "typecheck": "vue-tsc --noEmit"
- },
- "dependencies": {
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
- },
- "devDependencies": {
- "@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "typescript": "~4.4.4",
- "vite": "^2.6.14",
- "vue-tsc": "^0.29.6"
- }
-}
+++ /dev/null
-<script setup lang="ts">
-import HelloWorld from '@/components/HelloWorld.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
-</template>
-
-<style>
-@import '@/assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
- max-height: 100vh;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-nav {
- width: 100%;
- font-size: 12px;
- text-align: center;
- margin-top: 2rem;
-}
-
-nav a.router-link-exact-active {
- color: var(--color-text);
-}
-
-nav a.router-link-exact-active:hover {
- background-color: transparent;
-}
-
-nav a {
- display: inline-block;
- padding: 0 1rem;
- border-left: 1px solid var(--color-border);
-}
-
-nav a:first-of-type {
- border: 0;
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-
- nav {
- text-align: left;
- margin-left: -1rem;
- font-size: 1rem;
-
- padding: 1rem 0;
- margin-top: 1rem;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup lang="ts">
-defineProps<{
- msg: string
-}>()
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>. What's next?
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import App from './App.vue'
-import router from './router'
-
-const app = createApp(App)
-
-app.use(router)
-
-app.mount('#app')
+++ /dev/null
-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: '/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')
- }
- ]
-})
-
-export default router
+++ /dev/null
-<template>
- <div class="about">
- <h1>This is an about page</h1>
- </div>
-</template>
-
-<style>
-@media (min-width: 1024px) {
- .about {
- min-height: 100vh;
- display: flex;
- align-items: center;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import TheWelcome from '@/components/TheWelcome.vue'
-</script>
-
-<template>
- <main>
- <TheWelcome />
- </main>
-</template>
+++ /dev/null
-{
- "compilerOptions": {
- "baseUrl": "./",
- "target": "esnext",
- "useDefineForClassFields": true,
- "module": "esnext",
- "moduleResolution": "node",
- "isolatedModules": true,
- "strict": true,
- "jsx": "preserve",
- "sourceMap": true,
- "resolveJsonModule": true,
- "esModuleInterop": true,
- "paths": {
- "@/*": ["src/*"]
- },
- "lib": ["esnext", "dom", "dom.iterable", "scripthost"],
- "skipLibCheck": true
- },
- "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
-}
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# typescript-jsx-with-tests
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Type Support for `.vue` Imports in TS
-
-Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates.
-
-However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette.
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Type-Check, Compile and Minify for Production
-
-```sh
-pnpm build
-```
-
-### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction)
-
-```sh
-pnpm test:unit # or `pnpm test:unit:ci` for headless testing
-```
-
-### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
-
-```sh
-pnpm build
-pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
-```
+++ /dev/null
-{
- "baseUrl": "http://localhost:5050",
- "component": {
- "componentFolder": "src",
- "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}"
- }
-}
+++ /dev/null
-{
- "name": "Using fixtures to represent data",
- "email": "hello@cypress.io",
- "body": "Fixtures are a great way to mock data for responses to routes"
-}
+++ /dev/null
-// https://docs.cypress.io/api/introduction/api.html
-
-describe('My First Test', () => {
- it('visits the app root url', () => {
- cy.visit('/')
- cy.contains('h1', 'You did it!')
- })
-})
+++ /dev/null
-/// <reference types="cypress" />
-// ***********************************************************
-// This example plugins/index.js can be used to load plugins
-//
-// You can change the location of this file or turn off loading
-// the plugins file with the 'pluginsFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/plugins-guide
-// ***********************************************************
-
-// This function is called when a project is opened or re-opened (e.g. due to
-// the project's config changing)
-
-const { startDevServer } = require('@cypress/vite-dev-server')
-
-/**
- * @type {Cypress.PluginConfig}
- */
-// eslint-disable-next-line no-unused-vars
-module.exports = (on, config) => {
- // `on` is used to hook into various events Cypress emits
- // `config` is the resolved Cypress config
- on('dev-server:start', (options) => {
- return startDevServer({ options })
- })
- return config
-}
+++ /dev/null
-// ***********************************************
-// This example commands.js shows you how to
-// create various custom commands and overwrite
-// existing commands.
-//
-// For more comprehensive examples of custom
-// commands please read more here:
-// https://on.cypress.io/custom-commands
-// ***********************************************
-//
-//
-// -- This is a parent command --
-// Cypress.Commands.add('login', (email, password) => { ... })
-//
-//
-// -- This is a child command --
-// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
-//
-//
-// -- This is a dual command --
-// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
-//
-//
-// -- This will overwrite an existing command --
-// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
+++ /dev/null
-// ***********************************************************
-// This example support/index.js is processed and
-// loaded automatically before your test files.
-//
-// This is a great place to put global configuration and
-// behavior that modifies Cypress.
-//
-// You can change the location of this file or turn off
-// automatically serving support files with the
-// 'supportFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/configuration
-// ***********************************************************
-
-// Import commands.js using ES2015 syntax:
-import './commands'
-
-// Alternatively you can use CommonJS syntax:
-// require('./commands')
+++ /dev/null
-{
- "compilerOptions": {
- "target": "es5",
- "lib": ["es5", "dom"],
- "types": ["cypress"]
- },
- "include": ["./**/*"]
-}
+++ /dev/null
-/// <reference types="vite/client" />
-
-declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
-}
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.ts"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "typescript-jsx-with-tests",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vue-tsc --noEmit && vite build",
- "preview": "vite preview --port 5050",
- "test:unit": "cypress open-ct",
- "test:unit:ci": "cypress run-ct --quiet --reporter spec",
- "test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
- "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'",
- "typecheck": "vue-tsc --noEmit"
- },
- "dependencies": {
- "vue": "^3.2.22"
- },
- "devDependencies": {
- "@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
- "@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "cypress": "^8.7.0",
- "start-server-and-test": "^1.14.0",
- "typescript": "~4.4.4",
- "vite": "^2.6.14",
- "vue-tsc": "^0.29.6"
- }
-}
+++ /dev/null
-<script setup lang="ts">
-import HelloWorld from './components/HelloWorld.vue'
-import TheWelcome from './components/TheWelcome.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
-
- <main>
- <TheWelcome />
- </main>
-</template>
-
-<style>
-@import './assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup lang="ts">
-defineProps<{
- msg: string
-}>()
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-import { mount } from '@cypress/vue'
-import HelloWorld from '../HelloWorld.vue'
-
-describe('HelloWorld', () => {
- it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- })
-
- it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
- cy.get('h1').should('contain', 'Hello Cypress')
- })
-})
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import App from './App.vue'
-
-createApp(App).mount('#app')
+++ /dev/null
-{
- "compilerOptions": {
- "baseUrl": "./",
- "target": "esnext",
- "useDefineForClassFields": true,
- "module": "esnext",
- "moduleResolution": "node",
- "isolatedModules": true,
- "strict": true,
- "jsx": "preserve",
- "sourceMap": true,
- "resolveJsonModule": true,
- "esModuleInterop": true,
- "paths": {
- "@/*": ["src/*"]
- },
- "lib": ["esnext", "dom", "dom.iterable", "scripthost"],
- "skipLibCheck": true
- },
- "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
-}
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
+++ /dev/null
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-.DS_Store
-dist
-dist-ssr
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+++ /dev/null
-# typescript-jsx
-
-This template should help get you started developing with Vue 3 in Vite.
-
-## Recommended IDE Setup
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
-
-## Type Support for `.vue` Imports in TS
-
-Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates.
-
-However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can run `Volar: Switch TS Plugin on/off` from VSCode command palette.
-
-## Customize configuration
-
-See [Vite Configuration Reference](https://vitejs.dev/config/).
-
-## Project Setup
-
-```sh
-pnpm install
-```
-
-### Compile and Hot-Reload for Development
-
-```sh
-pnpm dev
-```
-
-### Type-Check, Compile and Minify for Production
-
-```sh
-pnpm build
-```
+++ /dev/null
-/// <reference types="vite/client" />
-
-declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
-}
+++ /dev/null
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.ts"></script>
- </body>
-</html>
+++ /dev/null
-{
- "name": "typescript-jsx",
- "version": "0.0.0",
- "scripts": {
- "dev": "vite",
- "build": "vue-tsc --noEmit && vite build",
- "preview": "vite preview --port 5050",
- "typecheck": "vue-tsc --noEmit"
- },
- "dependencies": {
- "vue": "^3.2.22"
- },
- "devDependencies": {
- "@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
- "@vitejs/plugin-vue-jsx": "^1.3.0",
- "typescript": "~4.4.4",
- "vite": "^2.6.14",
- "vue-tsc": "^0.29.6"
- }
-}
+++ /dev/null
-<script setup lang="ts">
-import HelloWorld from './components/HelloWorld.vue'
-import TheWelcome from './components/TheWelcome.vue'
-</script>
-
-<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
-
- <main>
- <TheWelcome />
- </main>
-</template>
-
-<style>
-@import './assets/base.css';
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-header {
- line-height: 1.5;
-}
-
-.logo {
- display: block;
- margin: 0 auto 2rem;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-
- header {
- display: flex;
- place-items: center;
- padding-right: calc(var(--section-gap) / 2);
- }
-
- header .wrapper {
- display: flex;
- place-items: flex-start;
- flex-wrap: wrap;
- }
-
- .logo {
- margin: 0 2rem 0 0;
- }
-}
-</style>
+++ /dev/null
-/* color palette from <https://github.com/vuejs/theme> */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dadarkrk-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
\ No newline at end of file
+++ /dev/null
-<script setup lang="ts">
-defineProps<{
- msg: string
-}>()
-</script>
-
-<template>
- <div class="greetings">
- <h1 class="green">{{ msg }}</h1>
- <h3>
- You’ve successfully created a project with
- <a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
- </h3>
- </div>
-</template>
-
-<style scoped>
-h1 {
- font-weight: 500;
- font-size: 2.6rem;
- top: -10px;
-}
-
-h3 {
- font-size: 1.2rem;
-}
-
-.greetings h1,
-.greetings h3 {
- text-align: center;
-}
-
-@media (min-width: 1024px) {
- .greetings h1,
- .greetings h3 {
- display: block;
- text-align: left;
- }
-}
-</style>
+++ /dev/null
-<script setup lang="ts">
-import WelcomeItem from './WelcomeItem.vue'
-import DocumentationIcon from './icons/IconDocumentation.vue'
-import ToolingIcon from './icons/IconTooling.vue'
-import EcosystemIcon from './icons/IconEcosystem.vue'
-import CommunityIcon from './icons/IconCommunity.vue'
-import SupportIcon from './icons/IconSupport.vue'
-</script>
-
-<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
-
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
-
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
-
- <br />
-
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
-
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
-
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
-
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
-</template>
+++ /dev/null
-<template>
- <div class="item">
- <i>
- <slot name="icon"></slot>
- </i>
- <div class="details">
- <h3>
- <slot name="heading"></slot>
- </h3>
- <slot></slot>
- </div>
- </div>
-</template>
-
-<style scoped>
-.item {
- margin-top: 2rem;
- display: flex;
-}
-
-.details {
- flex: 1;
- margin-left: 1rem;
-}
-
-i {
- display: flex;
- place-items: center;
- place-content: center;
- width: 32px;
- height: 32px;
-
- color: var(--color-text);
-}
-
-h3 {
- font-size: 1.2rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-@media (min-width: 1024px) {
- .item {
- margin-top: 0;
- padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
- }
-
- i {
- top: calc(50% - 25px);
- left: -26px;
- position: absolute;
- border: 1px solid var(--color-border);
- background: var(--color-background);
- border-radius: 8px;
- width: 50px;
- height: 50px;
- }
-
- .item:before {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- bottom: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:after {
- content: ' ';
- border-left: 1px solid var(--color-border);
- position: absolute;
- left: 0;
- top: calc(50% + 25px);
- height: calc(50% - 25px);
- }
-
- .item:first-of-type:before {
- display: none;
- }
-
- .item:last-of-type:after {
- display: none;
- }
-}
-</style>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
- <path
- d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
- <path
- d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
- />
- </svg>
-</template>
+++ /dev/null
-<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
- <path
- d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
- />
- </svg>
-</template>
+++ /dev/null
-<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
-<template>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- aria-hidden="true"
- role="img"
- class="iconify iconify--mdi"
- width="24"
- height="24"
- preserveAspectRatio="xMidYMid meet"
- viewBox="0 0 24 24"
- >
- <path
- d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
- fill="currentColor"
- ></path>
- </svg>
-</template>
+++ /dev/null
-import { createApp } from 'vue'
-import App from './App.vue'
-
-createApp(App).mount('#app')
+++ /dev/null
-{
- "compilerOptions": {
- "baseUrl": "./",
- "target": "esnext",
- "useDefineForClassFields": true,
- "module": "esnext",
- "moduleResolution": "node",
- "isolatedModules": true,
- "strict": true,
- "jsx": "preserve",
- "sourceMap": true,
- "resolveJsonModule": true,
- "esModuleInterop": true,
- "paths": {
- "@/*": ["src/*"]
- },
- "lib": ["esnext", "dom", "dom.iterable", "scripthost"],
- "skipLibCheck": true
- },
- "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
-}
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
/// <reference types="vite/client" />
declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
+ import Vue from 'vue'
+ export default Vue
+}
+
+declare global {
+ namespace JSX {
+ interface Element extends VNode {}
+ interface ElementClass extends Vue {}
+ interface IntrinsicElements {
+ [elem: string]: any
+ }
+ }
}
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
+ "@vue/composition-api": "^1.4.0",
"pinia": "^2.0.4",
- "vue": "^3.2.22"
+ "vue": "^2.6.14"
},
"devDependencies": {
"@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
+ "@cypress/vue": "^2.2.4",
"@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
+ "@vue/runtime-dom": "^3.2.22",
"cypress": "^8.7.0",
"start-server-and-test": "^1.14.0",
"typescript": "~4.4.4",
+ "unplugin-vue2-script-setup": "^0.7.1",
"vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14",
"vue-tsc": "^0.29.6"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+ </div>
+ </header>
- <main>
- <TheWelcome />
- </main>
+ <main>
+ <TheWelcome />
+ </main>
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
describe('HelloWorld', () => {
it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
})
it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
cy.get('h1').should('contain', 'Hello Cypress')
})
})
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+import { createPinia, PiniaVuePlugin } from 'pinia'
+
import App from './App.vue'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
+Vue.use(PiniaVuePlugin)
-app.use(createPinia())
+const app = new Vue({
+ pinia: createPinia(),
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
"skipLibCheck": true
},
+ "vueCompilerOptions": {
+ "experimentalCompatMode": 2
+ },
"include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
}
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
/// <reference types="vite/client" />
declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
+ import Vue from 'vue'
+ export default Vue
+}
+
+declare global {
+ namespace JSX {
+ interface Element extends VNode {}
+ interface ElementClass extends Vue {}
+ interface IntrinsicElements {
+ [elem: string]: any
+ }
+ }
}
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
+ "@vue/composition-api": "^1.4.0",
"pinia": "^2.0.4",
- "vue": "^3.2.22"
+ "vue": "^2.6.14"
},
"devDependencies": {
"@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
+ "@vue/runtime-dom": "^3.2.22",
"typescript": "~4.4.4",
+ "unplugin-vue2-script-setup": "^0.7.1",
"vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14",
"vue-tsc": "^0.29.6"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+ </div>
+ </header>
- <main>
- <TheWelcome />
- </main>
+ <main>
+ <TheWelcome />
+ </main>
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+import { createPinia, PiniaVuePlugin } from 'pinia'
+
import App from './App.vue'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
+Vue.use(PiniaVuePlugin)
-app.use(createPinia())
+const app = new Vue({
+ pinia: createPinia(),
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
"skipLibCheck": true
},
+ "vueCompilerOptions": {
+ "experimentalCompatMode": 2
+ },
"include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
}
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
/// <reference types="vite/client" />
declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
+ import Vue from 'vue'
+ export default Vue
+}
+
+declare global {
+ namespace JSX {
+ interface Element extends VNode {}
+ interface ElementClass extends Vue {}
+ interface IntrinsicElements {
+ [elem: string]: any
+ }
+ }
}
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
+ "@vue/composition-api": "^1.4.0",
"pinia": "^2.0.4",
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
+ "vue": "^2.6.14",
+ "vue-router": "^3.5.3"
},
"devDependencies": {
"@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
+ "@cypress/vue": "^2.2.4",
"@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
+ "@vue/runtime-dom": "^3.2.22",
"cypress": "^8.7.0",
"start-server-and-test": "^1.14.0",
"typescript": "~4.4.4",
+ "unplugin-vue2-script-setup": "^0.7.1",
"vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14",
"vue-tsc": "^0.29.6"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
+
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+
+ <nav>
+ <router-link to="/">Home</router-link>
+ <router-link to="/about">About</router-link>
+ </nav>
+ </div>
+ </header>
+
+ <router-view />
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>. What's next?
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>. What's next?
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
describe('HelloWorld', () => {
it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
})
it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
cy.get('h1').should('contain', 'Hello Cypress')
})
})
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+import { createPinia, PiniaVuePlugin } from 'pinia'
import App from './App.vue'
import router from './router'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
+Vue.use(PiniaVuePlugin)
-app.use(createPinia())
-app.use(router)
+const app = new Vue({
+ router,
+ pinia: createPinia(),
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
-import { createRouter, createWebHistory } from 'vue-router'
+import Vue from 'vue'
+import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
-const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+Vue.use(VueRouter)
+
+const router = new VueRouter({
+ mode: 'history',
+ base: import.meta.env.BASE_URL,
routes: [
{
path: '/',
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
"skipLibCheck": true
},
+ "vueCompilerOptions": {
+ "experimentalCompatMode": 2
+ },
"include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
}
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
/// <reference types="vite/client" />
declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
+ import Vue from 'vue'
+ export default Vue
+}
+
+declare global {
+ namespace JSX {
+ interface Element extends VNode {}
+ interface ElementClass extends Vue {}
+ interface IntrinsicElements {
+ [elem: string]: any
+ }
+ }
}
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
+ "@vue/composition-api": "^1.4.0",
"pinia": "^2.0.4",
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
+ "vue": "^2.6.14",
+ "vue-router": "^3.5.3"
},
"devDependencies": {
"@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
+ "@vue/runtime-dom": "^3.2.22",
"typescript": "~4.4.4",
+ "unplugin-vue2-script-setup": "^0.7.1",
"vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14",
"vue-tsc": "^0.29.6"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
+
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+
+ <nav>
+ <router-link to="/">Home</router-link>
+ <router-link to="/about">About</router-link>
+ </nav>
+ </div>
+ </header>
+
+ <router-view />
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>. What's next?
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>. What's next?
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+import { createPinia, PiniaVuePlugin } from 'pinia'
import App from './App.vue'
import router from './router'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
+Vue.use(PiniaVuePlugin)
-app.use(createPinia())
-app.use(router)
+const app = new Vue({
+ router,
+ pinia: createPinia(),
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
-import { createRouter, createWebHistory } from 'vue-router'
+import Vue from 'vue'
+import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
-const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+Vue.use(VueRouter)
+
+const router = new VueRouter({
+ mode: 'history',
+ base: import.meta.env.BASE_URL,
routes: [
{
path: '/',
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
"skipLibCheck": true
},
+ "vueCompilerOptions": {
+ "experimentalCompatMode": 2
+ },
"include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
}
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
/// <reference types="vite/client" />
declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
+ import Vue from 'vue'
+ export default Vue
+}
+
+declare global {
+ namespace JSX {
+ interface Element extends VNode {}
+ interface ElementClass extends Vue {}
+ interface IntrinsicElements {
+ [elem: string]: any
+ }
+ }
}
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
+ "@vue/composition-api": "^1.4.0",
+ "vue": "^2.6.14",
+ "vue-router": "^3.5.3"
},
"devDependencies": {
"@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
+ "@cypress/vue": "^2.2.4",
"@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
+ "@vue/runtime-dom": "^3.2.22",
"cypress": "^8.7.0",
"start-server-and-test": "^1.14.0",
"typescript": "~4.4.4",
+ "unplugin-vue2-script-setup": "^0.7.1",
"vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14",
"vue-tsc": "^0.29.6"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
+
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+
+ <nav>
+ <router-link to="/">Home</router-link>
+ <router-link to="/about">About</router-link>
+ </nav>
+ </div>
+ </header>
+
+ <router-view />
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>. What's next?
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>. What's next?
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
describe('HelloWorld', () => {
it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
})
it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
cy.get('h1').should('contain', 'Hello Cypress')
})
})
-import { createApp } from 'vue'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+
import App from './App.vue'
import router from './router'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
-app.use(router)
+const app = new Vue({
+ router,
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
-import { createRouter, createWebHistory } from 'vue-router'
+import Vue from 'vue'
+import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
-const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+Vue.use(VueRouter)
+
+const router = new VueRouter({
+ mode: 'history',
+ base: import.meta.env.BASE_URL,
routes: [
{
path: '/',
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
"skipLibCheck": true
},
+ "vueCompilerOptions": {
+ "experimentalCompatMode": 2
+ },
"include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
}
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
/// <reference types="vite/client" />
declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
+ import Vue from 'vue'
+ export default Vue
+}
+
+declare global {
+ namespace JSX {
+ interface Element extends VNode {}
+ interface ElementClass extends Vue {}
+ interface IntrinsicElements {
+ [elem: string]: any
+ }
+ }
}
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
- "vue": "^3.2.22",
- "vue-router": "^4.0.12"
+ "@vue/composition-api": "^1.4.0",
+ "vue": "^2.6.14",
+ "vue-router": "^3.5.3"
},
"devDependencies": {
"@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
+ "@vue/runtime-dom": "^3.2.22",
"typescript": "~4.4.4",
+ "unplugin-vue2-script-setup": "^0.7.1",
"vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14",
"vue-tsc": "^0.29.6"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
+
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+
+ <nav>
+ <router-link to="/">Home</router-link>
+ <router-link to="/about">About</router-link>
+ </nav>
+ </div>
+ </header>
+
+ <router-view />
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>. What's next?
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>. What's next?
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
-import { createApp } from 'vue'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+
import App from './App.vue'
import router from './router'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
-app.use(router)
+const app = new Vue({
+ router,
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
-import { createRouter, createWebHistory } from 'vue-router'
+import Vue from 'vue'
+import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
-const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+Vue.use(VueRouter)
+
+const router = new VueRouter({
+ mode: 'history',
+ base: import.meta.env.BASE_URL,
routes: [
{
path: '/',
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
"skipLibCheck": true
},
+ "vueCompilerOptions": {
+ "experimentalCompatMode": 2
+ },
"include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
}
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
/// <reference types="vite/client" />
declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
+ import Vue from 'vue'
+ export default Vue
+}
+
+declare global {
+ namespace JSX {
+ interface Element extends VNode {}
+ interface ElementClass extends Vue {}
+ interface IntrinsicElements {
+ [elem: string]: any
+ }
+ }
}
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
- "vue": "^3.2.22"
+ "@vue/composition-api": "^1.4.0",
+ "vue": "^2.6.14"
},
"devDependencies": {
"@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
+ "@cypress/vue": "^2.2.4",
"@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
+ "@vue/runtime-dom": "^3.2.22",
"cypress": "^8.7.0",
"start-server-and-test": "^1.14.0",
"typescript": "~4.4.4",
+ "unplugin-vue2-script-setup": "^0.7.1",
"vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14",
"vue-tsc": "^0.29.6"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+ </div>
+ </header>
- <main>
- <TheWelcome />
- </main>
+ <main>
+ <TheWelcome />
+ </main>
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
describe('HelloWorld', () => {
it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
})
it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
cy.get('h1').should('contain', 'Hello Cypress')
})
})
-import { createApp } from 'vue'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+
import App from './App.vue'
-createApp(App).mount('#app')
+Vue.use(VueCompositionAPI)
+
+const app = new Vue({
+ render: (h) => h(App)
+})
+
+app.$mount('#app')
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
"skipLibCheck": true
},
+ "vueCompilerOptions": {
+ "experimentalCompatMode": 2
+ },
"include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
}
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
/// <reference types="vite/client" />
declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
+ import Vue from 'vue'
+ export default Vue
+}
+
+declare global {
+ namespace JSX {
+ interface Element extends VNode {}
+ interface ElementClass extends Vue {}
+ interface IntrinsicElements {
+ [elem: string]: any
+ }
+ }
}
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
- "vue": "^3.2.22"
+ "@vue/composition-api": "^1.4.0",
+ "vue": "^2.6.14"
},
"devDependencies": {
"@types/node": "^16.11.10",
- "@vitejs/plugin-vue": "^1.10.0",
+ "@vue/runtime-dom": "^3.2.22",
"typescript": "~4.4.4",
+ "unplugin-vue2-script-setup": "^0.7.1",
"vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14",
"vue-tsc": "^0.29.6"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+ </div>
+ </header>
- <main>
- <TheWelcome />
- </main>
+ <main>
+ <TheWelcome />
+ </main>
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
-import { createApp } from 'vue'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+
import App from './App.vue'
-createApp(App).mount('#app')
+Vue.use(VueCompositionAPI)
+
+const app = new Vue({
+ render: (h) => h(App)
+})
+
+app.$mount('#app')
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
"skipLibCheck": true
},
+ "vueCompilerOptions": {
+ "experimentalCompatMode": 2
+ },
"include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
}
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
},
"dependencies": {
- "vue": "^3.2.22"
+ "@vue/composition-api": "^1.4.0",
+ "vue": "^2.6.14"
},
"devDependencies": {
"@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
- "@vitejs/plugin-vue": "^1.10.0",
+ "@cypress/vue": "^2.2.4",
+ "@vue/runtime-dom": "^3.2.22",
"cypress": "^8.7.0",
"start-server-and-test": "^1.14.0",
- "vite": "^2.6.14"
+ "unplugin-vue2-script-setup": "^0.7.1",
+ "vite": "^2.6.14",
+ "vite-plugin-vue2": "^1.9.0",
+ "vue-template-compiler": "^2.6.14"
}
}
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+ </div>
+ </header>
- <main>
- <TheWelcome />
- </main>
+ <main>
+ <TheWelcome />
+ </main>
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
describe('HelloWorld', () => {
it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
})
it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
cy.get('h1').should('contain', 'Hello Cypress')
})
})
-import { createApp } from 'vue'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+
import App from './App.vue'
-createApp(App).mount('#app')
+Vue.use(VueCompositionAPI)
+
+const app = new Vue({
+ render: (h) => h(App)
+})
+
+app.$mount('#app')
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
playground/default:
specifiers:
- '@vitejs/plugin-vue': ^1.10.0
- vite: ^2.6.14
- vue: ^3.2.22
- dependencies:
- vue: 3.2.23
- devDependencies:
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- vite: 2.6.14
-
- playground/jsx:
- specifiers:
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- vite: ^2.6.14
- vue: ^3.2.22
- dependencies:
- vue: 3.2.23
- devDependencies:
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- vite: 2.6.14
-
- playground/jsx-pinia:
- specifiers:
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- pinia: ^2.0.4
- vite: ^2.6.14
- vue: ^3.2.22
- dependencies:
- pinia: 2.0.4_vue@3.2.23
- vue: 3.2.23
- devDependencies:
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- vite: 2.6.14
-
- playground/jsx-pinia-with-tests:
- specifiers:
- '@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- cypress: ^8.7.0
- pinia: ^2.0.4
- start-server-and-test: ^1.14.0
- vite: ^2.6.14
- vue: ^3.2.22
- dependencies:
- pinia: 2.0.4_vue@3.2.23
- vue: 3.2.23
- devDependencies:
- '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- cypress: 8.7.0
- start-server-and-test: 1.14.0
- vite: 2.6.14
-
- playground/jsx-router:
- specifiers:
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
- dependencies:
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
- devDependencies:
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- vite: 2.6.14
-
- playground/jsx-router-pinia:
- specifiers:
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- pinia: ^2.0.4
- vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
- dependencies:
- pinia: 2.0.4_vue@3.2.23
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
- devDependencies:
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- vite: 2.6.14
-
- playground/jsx-router-pinia-with-tests:
- specifiers:
- '@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- cypress: ^8.7.0
- pinia: ^2.0.4
- start-server-and-test: ^1.14.0
- vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
- dependencies:
- pinia: 2.0.4_vue@3.2.23
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
- devDependencies:
- '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- cypress: 8.7.0
- start-server-and-test: 1.14.0
- vite: 2.6.14
-
- playground/jsx-router-with-tests:
- specifiers:
- '@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- cypress: ^8.7.0
- start-server-and-test: ^1.14.0
- vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
- dependencies:
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
- devDependencies:
- '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- cypress: 8.7.0
- start-server-and-test: 1.14.0
- vite: 2.6.14
-
- playground/jsx-with-tests:
- specifiers:
- '@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- cypress: ^8.7.0
- start-server-and-test: ^1.14.0
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-template-compiler: ^2.6.14
dependencies:
- vue: 3.2.23
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ vue: 2.6.14
devDependencies:
- '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- cypress: 8.7.0
- start-server-and-test: 1.14.0
+ '@vue/runtime-dom': 3.2.23
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
playground/pinia:
specifiers:
- '@vitejs/plugin-vue': ^1.10.0
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
pinia: ^2.0.4
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-template-compiler: ^2.6.14
dependencies:
- pinia: 2.0.4_vue@3.2.23
- vue: 3.2.23
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ pinia: 2.0.4_5f1bd7414a2bfaaedeb8e06aba7234f1
+ vue: 2.6.14
devDependencies:
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@vue/runtime-dom': 3.2.23
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
playground/pinia-with-tests:
specifiers:
'@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
- '@vitejs/plugin-vue': ^1.10.0
+ '@cypress/vue': ^2.2.4
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
cypress: ^8.7.0
pinia: ^2.0.4
start-server-and-test: ^1.14.0
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-template-compiler: ^2.6.14
dependencies:
- pinia: 2.0.4_vue@3.2.23
- vue: 3.2.23
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ pinia: 2.0.4_5f1bd7414a2bfaaedeb8e06aba7234f1
+ vue: 2.6.14
devDependencies:
'@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@cypress/vue': 2.2.4_e1d60e678c7b9d4654c8db95df3b5b13
+ '@vue/runtime-dom': 3.2.23
cypress: 8.7.0
start-server-and-test: 1.14.0
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
playground/router:
specifiers:
- '@vitejs/plugin-vue': ^1.10.0
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
- dependencies:
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-router: ^3.5.3
+ vue-template-compiler: ^2.6.14
+ dependencies:
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ vue: 2.6.14
+ vue-router: 3.5.3
devDependencies:
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@vue/runtime-dom': 3.2.23
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
playground/router-pinia:
specifiers:
- '@vitejs/plugin-vue': ^1.10.0
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
pinia: ^2.0.4
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
- dependencies:
- pinia: 2.0.4_vue@3.2.23
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-router: ^3.5.3
+ vue-template-compiler: ^2.6.14
+ dependencies:
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ pinia: 2.0.4_5f1bd7414a2bfaaedeb8e06aba7234f1
+ vue: 2.6.14
+ vue-router: 3.5.3
devDependencies:
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@vue/runtime-dom': 3.2.23
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
playground/router-pinia-with-tests:
specifiers:
'@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
- '@vitejs/plugin-vue': ^1.10.0
+ '@cypress/vue': ^2.2.4
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
cypress: ^8.7.0
pinia: ^2.0.4
start-server-and-test: ^1.14.0
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
- dependencies:
- pinia: 2.0.4_vue@3.2.23
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-router: ^3.5.3
+ vue-template-compiler: ^2.6.14
+ dependencies:
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ pinia: 2.0.4_5f1bd7414a2bfaaedeb8e06aba7234f1
+ vue: 2.6.14
+ vue-router: 3.5.3
devDependencies:
'@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@cypress/vue': 2.2.4_e1d60e678c7b9d4654c8db95df3b5b13
+ '@vue/runtime-dom': 3.2.23
cypress: 8.7.0
start-server-and-test: 1.14.0
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
playground/router-with-tests:
specifiers:
'@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
- '@vitejs/plugin-vue': ^1.10.0
+ '@cypress/vue': ^2.2.4
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
cypress: ^8.7.0
start-server-and-test: ^1.14.0
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
- dependencies:
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-router: ^3.5.3
+ vue-template-compiler: ^2.6.14
+ dependencies:
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ vue: 2.6.14
+ vue-router: 3.5.3
devDependencies:
'@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@cypress/vue': 2.2.4_e1d60e678c7b9d4654c8db95df3b5b13
+ '@vue/runtime-dom': 3.2.23
cypress: 8.7.0
start-server-and-test: 1.14.0
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
playground/typescript:
specifiers:
'@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
- typescript: ~4.4.4
- vite: ^2.6.14
- vue: ^3.2.22
- vue-tsc: ^0.29.6
- dependencies:
- vue: 3.2.23
- devDependencies:
- '@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- typescript: 4.4.4
- vite: 2.6.14
- vue-tsc: 0.29.7_typescript@4.4.4
-
- playground/typescript-jsx:
- specifiers:
- '@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- typescript: ~4.4.4
- vite: ^2.6.14
- vue: ^3.2.22
- vue-tsc: ^0.29.6
- dependencies:
- vue: 3.2.23
- devDependencies:
- '@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- typescript: 4.4.4
- vite: 2.6.14
- vue-tsc: 0.29.7_typescript@4.4.4
-
- playground/typescript-jsx-pinia:
- specifiers:
- '@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- pinia: ^2.0.4
- typescript: ~4.4.4
- vite: ^2.6.14
- vue: ^3.2.22
- vue-tsc: ^0.29.6
- dependencies:
- pinia: 2.0.4_typescript@4.4.4+vue@3.2.23
- vue: 3.2.23
- devDependencies:
- '@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- typescript: 4.4.4
- vite: 2.6.14
- vue-tsc: 0.29.7_typescript@4.4.4
-
- playground/typescript-jsx-pinia-with-tests:
- specifiers:
- '@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
- '@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- cypress: ^8.7.0
- pinia: ^2.0.4
- start-server-and-test: ^1.14.0
- typescript: ~4.4.4
- vite: ^2.6.14
- vue: ^3.2.22
- vue-tsc: ^0.29.6
- dependencies:
- pinia: 2.0.4_typescript@4.4.4+vue@3.2.23
- vue: 3.2.23
- devDependencies:
- '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
- '@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- cypress: 8.7.0
- start-server-and-test: 1.14.0
- typescript: 4.4.4
- vite: 2.6.14
- vue-tsc: 0.29.7_typescript@4.4.4
-
- playground/typescript-jsx-router:
- specifiers:
- '@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- typescript: ~4.4.4
- vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
- vue-tsc: ^0.29.6
- dependencies:
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
- devDependencies:
- '@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- typescript: 4.4.4
- vite: 2.6.14
- vue-tsc: 0.29.7_typescript@4.4.4
-
- playground/typescript-jsx-router-pinia:
- specifiers:
- '@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- pinia: ^2.0.4
- typescript: ~4.4.4
- vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
- vue-tsc: ^0.29.6
- dependencies:
- pinia: 2.0.4_typescript@4.4.4+vue@3.2.23
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
- devDependencies:
- '@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- typescript: 4.4.4
- vite: 2.6.14
- vue-tsc: 0.29.7_typescript@4.4.4
-
- playground/typescript-jsx-router-pinia-with-tests:
- specifiers:
- '@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
- '@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- cypress: ^8.7.0
- pinia: ^2.0.4
- start-server-and-test: ^1.14.0
- typescript: ~4.4.4
- vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
- vue-tsc: ^0.29.6
- dependencies:
- pinia: 2.0.4_typescript@4.4.4+vue@3.2.23
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
- devDependencies:
- '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
- '@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- cypress: 8.7.0
- start-server-and-test: 1.14.0
- typescript: 4.4.4
- vite: 2.6.14
- vue-tsc: 0.29.7_typescript@4.4.4
-
- playground/typescript-jsx-router-with-tests:
- specifiers:
- '@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
- '@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- cypress: ^8.7.0
- start-server-and-test: ^1.14.0
- typescript: ~4.4.4
- vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
- vue-tsc: ^0.29.6
- dependencies:
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
- devDependencies:
- '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
- '@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- cypress: 8.7.0
- start-server-and-test: 1.14.0
- typescript: 4.4.4
- vite: 2.6.14
- vue-tsc: 0.29.7_typescript@4.4.4
-
- playground/typescript-jsx-with-tests:
- specifiers:
- '@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
- '@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
- '@vitejs/plugin-vue-jsx': ^1.3.0
- cypress: ^8.7.0
- start-server-and-test: ^1.14.0
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
typescript: ~4.4.4
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-template-compiler: ^2.6.14
vue-tsc: ^0.29.6
dependencies:
- vue: 3.2.23
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ vue: 2.6.14
devDependencies:
- '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
'@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
- '@vitejs/plugin-vue-jsx': 1.3.0
- cypress: 8.7.0
- start-server-and-test: 1.14.0
+ '@vue/runtime-dom': 3.2.23
typescript: 4.4.4
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
vue-tsc: 0.29.7_typescript@4.4.4
playground/typescript-pinia:
specifiers:
'@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
pinia: ^2.0.4
typescript: ~4.4.4
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-template-compiler: ^2.6.14
vue-tsc: ^0.29.6
dependencies:
- pinia: 2.0.4_typescript@4.4.4+vue@3.2.23
- vue: 3.2.23
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ pinia: 2.0.4_3906864f589986c51f71a72116128850
+ vue: 2.6.14
devDependencies:
'@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@vue/runtime-dom': 3.2.23
typescript: 4.4.4
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
vue-tsc: 0.29.7_typescript@4.4.4
playground/typescript-pinia-with-tests:
specifiers:
'@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
+ '@cypress/vue': ^2.2.4
'@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
cypress: ^8.7.0
pinia: ^2.0.4
start-server-and-test: ^1.14.0
typescript: ~4.4.4
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-template-compiler: ^2.6.14
vue-tsc: ^0.29.6
dependencies:
- pinia: 2.0.4_typescript@4.4.4+vue@3.2.23
- vue: 3.2.23
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ pinia: 2.0.4_3906864f589986c51f71a72116128850
+ vue: 2.6.14
devDependencies:
'@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
+ '@cypress/vue': 2.2.4_e1d60e678c7b9d4654c8db95df3b5b13
'@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@vue/runtime-dom': 3.2.23
cypress: 8.7.0
start-server-and-test: 1.14.0
typescript: 4.4.4
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
vue-tsc: 0.29.7_typescript@4.4.4
playground/typescript-router:
specifiers:
'@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
typescript: ~4.4.4
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-router: ^3.5.3
+ vue-template-compiler: ^2.6.14
vue-tsc: ^0.29.6
dependencies:
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ vue: 2.6.14
+ vue-router: 3.5.3
devDependencies:
'@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@vue/runtime-dom': 3.2.23
typescript: 4.4.4
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
vue-tsc: 0.29.7_typescript@4.4.4
playground/typescript-router-pinia:
specifiers:
'@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
pinia: ^2.0.4
typescript: ~4.4.4
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-router: ^3.5.3
+ vue-template-compiler: ^2.6.14
vue-tsc: ^0.29.6
dependencies:
- pinia: 2.0.4_typescript@4.4.4+vue@3.2.23
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ pinia: 2.0.4_3906864f589986c51f71a72116128850
+ vue: 2.6.14
+ vue-router: 3.5.3
devDependencies:
'@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@vue/runtime-dom': 3.2.23
typescript: 4.4.4
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
vue-tsc: 0.29.7_typescript@4.4.4
playground/typescript-router-pinia-with-tests:
specifiers:
'@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
+ '@cypress/vue': ^2.2.4
'@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
cypress: ^8.7.0
pinia: ^2.0.4
start-server-and-test: ^1.14.0
typescript: ~4.4.4
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-router: ^3.5.3
+ vue-template-compiler: ^2.6.14
vue-tsc: ^0.29.6
dependencies:
- pinia: 2.0.4_typescript@4.4.4+vue@3.2.23
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ pinia: 2.0.4_3906864f589986c51f71a72116128850
+ vue: 2.6.14
+ vue-router: 3.5.3
devDependencies:
'@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
+ '@cypress/vue': 2.2.4_e1d60e678c7b9d4654c8db95df3b5b13
'@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@vue/runtime-dom': 3.2.23
cypress: 8.7.0
start-server-and-test: 1.14.0
typescript: 4.4.4
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
vue-tsc: 0.29.7_typescript@4.4.4
playground/typescript-router-with-tests:
specifiers:
'@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
+ '@cypress/vue': ^2.2.4
'@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
cypress: ^8.7.0
start-server-and-test: ^1.14.0
typescript: ~4.4.4
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
- vue-router: ^4.0.12
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-router: ^3.5.3
+ vue-template-compiler: ^2.6.14
vue-tsc: ^0.29.6
dependencies:
- vue: 3.2.23
- vue-router: 4.0.12_vue@3.2.23
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ vue: 2.6.14
+ vue-router: 3.5.3
devDependencies:
'@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
+ '@cypress/vue': 2.2.4_e1d60e678c7b9d4654c8db95df3b5b13
'@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@vue/runtime-dom': 3.2.23
cypress: 8.7.0
start-server-and-test: 1.14.0
typescript: 4.4.4
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
vue-tsc: 0.29.7_typescript@4.4.4
playground/typescript-with-tests:
specifiers:
'@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
+ '@cypress/vue': ^2.2.4
'@types/node': ^16.11.10
- '@vitejs/plugin-vue': ^1.10.0
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
cypress: ^8.7.0
start-server-and-test: ^1.14.0
typescript: ~4.4.4
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-template-compiler: ^2.6.14
vue-tsc: ^0.29.6
dependencies:
- vue: 3.2.23
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ vue: 2.6.14
devDependencies:
'@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
+ '@cypress/vue': 2.2.4_e1d60e678c7b9d4654c8db95df3b5b13
'@types/node': 16.11.10
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@vue/runtime-dom': 3.2.23
cypress: 8.7.0
start-server-and-test: 1.14.0
typescript: 4.4.4
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
vue-tsc: 0.29.7_typescript@4.4.4
playground/with-tests:
specifiers:
'@cypress/vite-dev-server': ^2.2.1
- '@cypress/vue': ^3.0.5
- '@vitejs/plugin-vue': ^1.10.0
+ '@cypress/vue': ^2.2.4
+ '@vue/composition-api': ^1.4.0
+ '@vue/runtime-dom': ^3.2.22
cypress: ^8.7.0
start-server-and-test: ^1.14.0
+ unplugin-vue2-script-setup: ^0.7.1
vite: ^2.6.14
- vue: ^3.2.22
+ vite-plugin-vue2: ^1.9.0
+ vue: ^2.6.14
+ vue-template-compiler: ^2.6.14
dependencies:
- vue: 3.2.23
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ vue: 2.6.14
devDependencies:
'@cypress/vite-dev-server': 2.2.1_vite@2.6.14
- '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.23
- '@vitejs/plugin-vue': 1.10.1_vite@2.6.14
+ '@cypress/vue': 2.2.4_e1d60e678c7b9d4654c8db95df3b5b13
+ '@vue/runtime-dom': 3.2.23
cypress: 8.7.0
start-server-and-test: 1.14.0
+ unplugin-vue2-script-setup: 0.7.1_vite@2.6.14
vite: 2.6.14
+ vite-plugin-vue2: 1.9.0_cd1846aafe4c35f31c699104ee2df148
+ vue-template-compiler: 2.6.14
packages:
+ /@antfu/utils/0.3.0:
+ resolution: {integrity: sha512-UU8TLr/EoXdg7OjMp0h9oDoIAVr+Z/oW9cpOxQQyrsz6Qzd2ms/1CdWx8fl2OQdFpxGmq5Vc4TwfLHId6nAZjA==}
+ dependencies:
+ '@types/throttle-debounce': 2.1.0
+ dev: true
+
/@babel/code-frame/7.16.0:
resolution: {integrity: sha512-IF4EOMEV+bfYwOmNxGzSnjR2EmQod7f1UXOpZM3l4i4o4QNwzjtJAu/HxdjHq0aYBvdqMuQEY1eg0nqW9ZPORA==}
engines: {node: '>=6.9.0'}
resolution: {integrity: sha512-6V0qdPUaiVHH3RtZeLIsc+6pDhbYzHR8ogA8w+f+Wc77DuXto19g2QUwveINoS34Uw+W8/hQDGJCx+i4n7xcng==}
engines: {node: '>=6.0.0'}
hasBin: true
+ dev: true
- /@babel/plugin-syntax-import-meta/7.10.4_@babel+core@7.16.0:
- resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==}
+ /@babel/plugin-proposal-class-properties/7.16.0_@babel+core@7.16.0:
+ resolution: {integrity: sha512-mCF3HcuZSY9Fcx56Lbn+CGdT44ioBMMvjNVldpKtj8tpniETdLjnxdHI1+sDWXIM1nNt+EanJOZ3IG9lzVjs7A==}
+ engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.0
+ '@babel/helper-create-class-features-plugin': 7.16.0_@babel+core@7.16.0
'@babel/helper-plugin-utils': 7.14.5
+ transitivePeerDependencies:
+ - supports-color
dev: true
- /@babel/plugin-syntax-jsx/7.16.0_@babel+core@7.16.0:
- resolution: {integrity: sha512-8zv2+xiPHwly31RK4RmnEYY5zziuF3O7W2kIDW+07ewWDh6Oi0dRq8kwvulRkFgt6DB97RlKs5c1y068iPlCUg==}
+ /@babel/plugin-proposal-decorators/7.16.4_@babel+core@7.16.0:
+ resolution: {integrity: sha512-RESBNX16eNqnBeEVR5sCJpnW0mHiNLNNvGA8PrRuK/4ZJ4TO+6bHleRUuGQYDERVySOKtOhSya/C4MIhwAMAgg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.0
+ '@babel/helper-create-class-features-plugin': 7.16.0_@babel+core@7.16.0
'@babel/helper-plugin-utils': 7.14.5
+ '@babel/plugin-syntax-decorators': 7.16.0_@babel+core@7.16.0
+ transitivePeerDependencies:
+ - supports-color
dev: true
- /@babel/plugin-syntax-typescript/7.16.0_@babel+core@7.16.0:
- resolution: {integrity: sha512-Xv6mEXqVdaqCBfJFyeab0fH2DnUoMsDmhamxsSi4j8nLd4Vtw213WMJr55xxqipC/YVWyPY3K0blJncPYji+dQ==}
+ /@babel/plugin-syntax-decorators/7.16.0_@babel+core@7.16.0:
+ resolution: {integrity: sha512-nxnnngZClvlY13nHJAIDow0S7Qzhq64fQ/NlqS+VER3kjW/4F0jLhXjeL8jcwSwz6Ca3rotT5NJD2T9I7lcv7g==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
'@babel/helper-plugin-utils': 7.14.5
dev: true
- /@babel/plugin-transform-typescript/7.16.1_@babel+core@7.16.0:
- resolution: {integrity: sha512-NO4XoryBng06jjw/qWEU2LhcLJr1tWkhpMam/H4eas/CDKMX/b2/Ylb6EI256Y7+FVPCawwSM1rrJNOpDiz+Lg==}
+ /@babel/plugin-syntax-jsx/7.16.0_@babel+core@7.16.0:
+ resolution: {integrity: sha512-8zv2+xiPHwly31RK4RmnEYY5zziuF3O7W2kIDW+07ewWDh6Oi0dRq8kwvulRkFgt6DB97RlKs5c1y068iPlCUg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.0
- '@babel/helper-create-class-features-plugin': 7.16.0_@babel+core@7.16.0
+ '@babel/helper-plugin-utils': 7.14.5
+ dev: true
+
+ /@babel/plugin-syntax-typescript/7.16.0_@babel+core@7.16.0:
+ resolution: {integrity: sha512-Xv6mEXqVdaqCBfJFyeab0fH2DnUoMsDmhamxsSi4j8nLd4Vtw213WMJr55xxqipC/YVWyPY3K0blJncPYji+dQ==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.16.0
+ '@babel/helper-plugin-utils': 7.14.5
+ dev: true
+
+ /@babel/plugin-transform-typescript/7.16.1_@babel+core@7.16.0:
+ resolution: {integrity: sha512-NO4XoryBng06jjw/qWEU2LhcLJr1tWkhpMam/H4eas/CDKMX/b2/Ylb6EI256Y7+FVPCawwSM1rrJNOpDiz+Lg==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.16.0
+ '@babel/helper-create-class-features-plugin': 7.16.0_@babel+core@7.16.0
'@babel/helper-plugin-utils': 7.14.5
'@babel/plugin-syntax-typescript': 7.16.0_@babel+core@7.16.0
transitivePeerDependencies:
- supports-color
dev: true
- /@cypress/vue/3.0.5_cypress@8.7.0+vue@3.2.23:
- resolution: {integrity: sha512-v6uVMEP04mCJGfc9/oH2ZIYPZ3fRwiOSzjtQ7jT0O2Lt2+SkoEWbDymG0pUFMRM1W8oc7Ep1hqEgZjIop7RXgw==}
+ /@cypress/vue/2.2.4_e1d60e678c7b9d4654c8db95df3b5b13:
+ resolution: {integrity: sha512-ve6aPUj1UHZRpfU9U/NKfsVgzCYVR2CeTdN/knhdWs8sbW5ERgbD1EkEdJ9+VCdqXcIoqRWdMQovnJUmJW6FLA==}
engines: {node: '>=8'}
peerDependencies:
'@cypress/webpack-dev-server': '*'
- babel-loader: '*'
- cypress: '>=7.0.0'
- vue: '>=3.0.0'
+ cypress: '>=4.5.0'
+ vue: ^2.0.0
peerDependenciesMeta:
'@cypress/webpack-dev-server':
optional: true
- babel-loader:
- optional: true
dependencies:
'@cypress/mount-utils': 1.0.2
- '@vue/test-utils': 2.0.0-rc.17_vue@3.2.23
+ '@vue/test-utils': 1.3.0_9065e7474e033a8e4b95615fc8e6c36c
cypress: 8.7.0
- vue: 3.2.23
+ vue: 2.6.14
+ transitivePeerDependencies:
+ - vue-template-compiler
dev: true
/@cypress/xvfb/1.2.4:
resolution: {integrity: sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ==}
dev: true
+ /@types/throttle-debounce/2.1.0:
+ resolution: {integrity: sha512-5eQEtSCoESnh2FsiLTxE121IiE60hnMqcb435fShf4bpLRjEu1Eoekht23y6zXS9Ts3l+Szu3TARnTsA0GkOkQ==}
+ dev: true
+
/@types/yauzl/2.9.2:
resolution: {integrity: sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==}
requiresBuild: true
dev: true
optional: true
- /@vitejs/plugin-vue-jsx/1.3.0:
- resolution: {integrity: sha512-mm2jT63s/DWapVWT62t7xsMmwqsLNj5LUpokSXWnlUv9oxPfZsAymhHs6byWxvuvC5jo3zzFMO7rs8ax4PcyxA==}
- engines: {node: '>=12.0.0'}
- dependencies:
- '@babel/core': 7.16.0
- '@babel/plugin-syntax-import-meta': 7.10.4_@babel+core@7.16.0
- '@babel/plugin-transform-typescript': 7.16.1_@babel+core@7.16.0
- '@rollup/pluginutils': 4.1.1
- '@vue/babel-plugin-jsx': 1.1.1_@babel+core@7.16.0
- hash-sum: 2.0.0
- transitivePeerDependencies:
- - supports-color
- dev: true
-
- /@vitejs/plugin-vue/1.10.1_vite@2.6.14:
- resolution: {integrity: sha512-oL76QETMSpVE9jIScirGB2bYJEVU/+r+g+K7oG+sXPs9TZljqveoVRsmLyXlMZTjpQkLL8gz527cW80NMGVKJg==}
- engines: {node: '>=12.0.0'}
- peerDependencies:
- vite: ^2.5.10
- dependencies:
- vite: 2.6.14
- dev: true
-
/@volar/code-gen/0.29.7:
resolution: {integrity: sha512-PLcTp/37NMKA/urAkKCy+/oOCwNOsw0ywsz3Wc31c94bX6BAcMBHha5F3NPPY8U4CWuxoyxe2Enj0Ojdtkm2Kw==}
dependencies:
vscode-uri: 2.1.2
dev: true
- /@vue/babel-helper-vue-transform-on/1.0.2:
- resolution: {integrity: sha512-hz4R8tS5jMn8lDq6iD+yWL6XNB699pGIVLk7WSJnn1dbpjaazsjZQkieJoRX6gW5zpYSCFqQ7jUquPNY65tQYA==}
+ /@vue/babel-helper-vue-jsx-merge-props/1.2.1:
+ resolution: {integrity: sha512-QOi5OW45e2R20VygMSNhyQHvpdUwQZqGPc748JLGCYEy+yp8fNFNdbNIGAgZmi9e+2JHPd6i6idRuqivyicIkA==}
dev: true
- /@vue/babel-plugin-jsx/1.1.1_@babel+core@7.16.0:
- resolution: {integrity: sha512-j2uVfZjnB5+zkcbc/zsOc0fSNGCMMjaEXP52wdwdIfn0qjFfEYpYZBFKFg+HHnQeJCVrjOeO0YxgaL7DMrym9w==}
+ /@vue/babel-plugin-transform-vue-jsx/1.2.1_@babel+core@7.16.0:
+ resolution: {integrity: sha512-HJuqwACYehQwh1fNT8f4kyzqlNMpBuUK4rSiSES5D4QsYncv5fxFsLyrxFPG2ksO7t5WP+Vgix6tt6yKClwPzA==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
dependencies:
+ '@babel/core': 7.16.0
'@babel/helper-module-imports': 7.16.0
'@babel/plugin-syntax-jsx': 7.16.0_@babel+core@7.16.0
- '@babel/template': 7.16.0
- '@babel/traverse': 7.16.3
- '@babel/types': 7.16.0
- '@vue/babel-helper-vue-transform-on': 1.0.2
- camelcase: 6.2.1
- html-tags: 3.1.0
+ '@vue/babel-helper-vue-jsx-merge-props': 1.2.1
+ html-tags: 2.0.0
+ lodash.kebabcase: 4.1.1
svg-tags: 1.0.0
- transitivePeerDependencies:
- - '@babel/core'
- - supports-color
+ dev: true
+
+ /@vue/babel-preset-jsx/1.2.4_@babel+core@7.16.0:
+ resolution: {integrity: sha512-oRVnmN2a77bYDJzeGSt92AuHXbkIxbf/XXSE3klINnh9AXBmVS1DGa1f0d+dDYpLfsAKElMnqKTQfKn7obcL4w==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.16.0
+ '@vue/babel-helper-vue-jsx-merge-props': 1.2.1
+ '@vue/babel-plugin-transform-vue-jsx': 1.2.1_@babel+core@7.16.0
+ '@vue/babel-sugar-composition-api-inject-h': 1.2.1_@babel+core@7.16.0
+ '@vue/babel-sugar-composition-api-render-instance': 1.2.4_@babel+core@7.16.0
+ '@vue/babel-sugar-functional-vue': 1.2.2_@babel+core@7.16.0
+ '@vue/babel-sugar-inject-h': 1.2.2_@babel+core@7.16.0
+ '@vue/babel-sugar-v-model': 1.2.3_@babel+core@7.16.0
+ '@vue/babel-sugar-v-on': 1.2.3_@babel+core@7.16.0
+ dev: true
+
+ /@vue/babel-sugar-composition-api-inject-h/1.2.1_@babel+core@7.16.0:
+ resolution: {integrity: sha512-4B3L5Z2G+7s+9Bwbf+zPIifkFNcKth7fQwekVbnOA3cr3Pq71q71goWr97sk4/yyzH8phfe5ODVzEjX7HU7ItQ==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.16.0
+ '@babel/plugin-syntax-jsx': 7.16.0_@babel+core@7.16.0
+ dev: true
+
+ /@vue/babel-sugar-composition-api-render-instance/1.2.4_@babel+core@7.16.0:
+ resolution: {integrity: sha512-joha4PZznQMsxQYXtR3MnTgCASC9u3zt9KfBxIeuI5g2gscpTsSKRDzWQt4aqNIpx6cv8On7/m6zmmovlNsG7Q==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.16.0
+ '@babel/plugin-syntax-jsx': 7.16.0_@babel+core@7.16.0
+ dev: true
+
+ /@vue/babel-sugar-functional-vue/1.2.2_@babel+core@7.16.0:
+ resolution: {integrity: sha512-JvbgGn1bjCLByIAU1VOoepHQ1vFsroSA/QkzdiSs657V79q6OwEWLCQtQnEXD/rLTA8rRit4rMOhFpbjRFm82w==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.16.0
+ '@babel/plugin-syntax-jsx': 7.16.0_@babel+core@7.16.0
+ dev: true
+
+ /@vue/babel-sugar-inject-h/1.2.2_@babel+core@7.16.0:
+ resolution: {integrity: sha512-y8vTo00oRkzQTgufeotjCLPAvlhnpSkcHFEp60+LJUwygGcd5Chrpn5480AQp/thrxVm8m2ifAk0LyFel9oCnw==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.16.0
+ '@babel/plugin-syntax-jsx': 7.16.0_@babel+core@7.16.0
+ dev: true
+
+ /@vue/babel-sugar-v-model/1.2.3_@babel+core@7.16.0:
+ resolution: {integrity: sha512-A2jxx87mySr/ulAsSSyYE8un6SIH0NWHiLaCWpodPCVOlQVODCaSpiR4+IMsmBr73haG+oeCuSvMOM+ttWUqRQ==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.16.0
+ '@babel/plugin-syntax-jsx': 7.16.0_@babel+core@7.16.0
+ '@vue/babel-helper-vue-jsx-merge-props': 1.2.1
+ '@vue/babel-plugin-transform-vue-jsx': 1.2.1_@babel+core@7.16.0
+ camelcase: 5.3.1
+ html-tags: 2.0.0
+ svg-tags: 1.0.0
+ dev: true
+
+ /@vue/babel-sugar-v-on/1.2.3_@babel+core@7.16.0:
+ resolution: {integrity: sha512-kt12VJdz/37D3N3eglBywV8GStKNUhNrsxChXIV+o0MwVXORYuhDTHJRKPgLJRb/EY3vM2aRFQdxJBp9CLikjw==}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+ dependencies:
+ '@babel/core': 7.16.0
+ '@babel/plugin-syntax-jsx': 7.16.0_@babel+core@7.16.0
+ '@vue/babel-plugin-transform-vue-jsx': 1.2.1_@babel+core@7.16.0
+ camelcase: 5.3.1
dev: true
/@vue/compiler-core/3.2.23:
'@vue/shared': 3.2.23
estree-walker: 2.0.2
source-map: 0.6.1
+ dev: true
/@vue/compiler-dom/3.2.23:
resolution: {integrity: sha512-X2Nw8QFc5lgoK3kio5ktM95nqmLUH+q+N/PbV4kCHzF1avqv/EGLnAhaaF0Iu4bewNvHJAAhhwPZFeoV/22nbw==}
dependencies:
'@vue/compiler-core': 3.2.23
'@vue/shared': 3.2.23
+ dev: true
- /@vue/compiler-sfc/3.2.23:
- resolution: {integrity: sha512-Aw+pb50Q5zTjyvWod8mNKmYZDRGHJBptmNNWE+84ZxrzEztPgMz8cNYIzWGbwcFVkmJlhvioAMvKnB+LM/sjSA==}
+ /@vue/component-compiler-utils/3.3.0:
+ resolution: {integrity: sha512-97sfH2mYNU+2PzGrmK2haqffDpVASuib9/w2/noxiFi31Z54hW+q3izKQXXQZSNhtiUpAI36uSuYepeBe4wpHQ==}
dependencies:
- '@babel/parser': 7.16.4
- '@vue/compiler-core': 3.2.23
- '@vue/compiler-dom': 3.2.23
- '@vue/compiler-ssr': 3.2.23
- '@vue/ref-transform': 3.2.23
- '@vue/shared': 3.2.23
- estree-walker: 2.0.2
- magic-string: 0.25.7
- postcss: 8.4.4
+ consolidate: 0.15.1
+ hash-sum: 1.0.2
+ lru-cache: 4.1.5
+ merge-source-map: 1.1.0
+ postcss: 7.0.39
+ postcss-selector-parser: 6.0.6
source-map: 0.6.1
- dev: false
+ vue-template-es2015-compiler: 1.9.1
+ optionalDependencies:
+ prettier: 2.5.0
+ dev: true
- /@vue/compiler-ssr/3.2.23:
- resolution: {integrity: sha512-Bqzn4jFyXPK1Ehqiq7e/czS8n62gtYF1Zfeu0DrR5uv+SBllh7LIvZjZU6+c8qbocAd3/T3I3gn2cZGmnDb6zg==}
+ /@vue/composition-api/1.4.0_vue@2.6.14:
+ resolution: {integrity: sha512-fanqJw1cqhkfS1dcpFY52CeR0aWDBr7ub/0ObPWqMnNPdRsMi1gX04Q3aLeRtJEuVeCFewNbqvkPskkSPTVaXQ==}
+ peerDependencies:
+ vue: '>= 2.5 < 3'
dependencies:
- '@vue/compiler-dom': 3.2.23
- '@vue/shared': 3.2.23
+ tslib: 2.3.1
+ vue: 2.6.14
dev: false
/@vue/devtools-api/6.0.0-beta.20.1:
resolution: {integrity: sha512-8RGVr/5Kpgb/EkCjgHXqttgA5IMc6n0lIXFY4TVbMkzdXrvaIhzBd7Te44oIDsTSYVKZLpfHd6/wEnuDqE8vFw==}
dependencies:
'@vue/shared': 3.2.23
+ dev: true
/@vue/ref-transform/3.2.23:
resolution: {integrity: sha512-gW0GD2PSAs/th7mC7tPB/UwpIQxclbApVtsDtscDmOJXb2+cdu60ny+SuHNgfrlUT/JqWKQHq7jFKO4woxLNaA==}
'@vue/shared': 3.2.23
estree-walker: 2.0.2
magic-string: 0.25.7
- dev: false
+ dev: true
/@vue/runtime-core/3.2.23:
resolution: {integrity: sha512-wSI5lmY2kCGLf89iiygqxVh6/5bsawz78Me9n1x4U2bHnN0yf3PWyuhN0WgIE8VfEaF7e75E333uboNEIFjgkg==}
dependencies:
'@vue/reactivity': 3.2.23
'@vue/shared': 3.2.23
- dev: false
+ dev: true
/@vue/runtime-dom/3.2.23:
resolution: {integrity: sha512-z6lp0888NkLmxD9j2sGoll8Kb7J743s8s6w7GbiyUc4WZwm0KJ35B4qTFDMoIU0G7CatS6Z+yRTpPHc6srtByg==}
'@vue/runtime-core': 3.2.23
'@vue/shared': 3.2.23
csstype: 2.6.19
- dev: false
-
- /@vue/server-renderer/3.2.23_vue@3.2.23:
- resolution: {integrity: sha512-mgQ2VAE5WjeZELJKNbwE69uiBNpN+3LyL0ZDki1bJWVwHD2fhPfx7pwyYuiucE81xz2LxVsyGxhKKUL997g8vw==}
- peerDependencies:
- vue: 3.2.23
- dependencies:
- '@vue/compiler-ssr': 3.2.23
- '@vue/shared': 3.2.23
- vue: 3.2.23
- dev: false
+ dev: true
/@vue/shared/3.2.23:
resolution: {integrity: sha512-U+/Jefa0QfXUF2qVy9Dqlrb6HKJSr9/wJcM66wXmWcTOoqg7hOWzF4qruDle51pyF4x3wMn6TSH54UdjKjCKMA==}
+ dev: true
- /@vue/test-utils/2.0.0-rc.17_vue@3.2.23:
- resolution: {integrity: sha512-7LHZKsFRV/HqDoMVY+cJamFzgHgsrmQFalROHC5FMWrzPzd+utG5e11krj1tVsnxYufGA2ABShX4nlcHXED+zQ==}
+ /@vue/test-utils/1.3.0_9065e7474e033a8e4b95615fc8e6c36c:
+ resolution: {integrity: sha512-Xk2Xiyj2k5dFb8eYUKkcN9PzqZSppTlx7LaQWBbdA8tqh3jHr/KHX2/YLhNFc/xwDrgeLybqd+4ZCPJSGPIqeA==}
peerDependencies:
- vue: ^3.0.1
+ vue: 2.x
+ vue-template-compiler: ^2.x
dependencies:
- vue: 3.2.23
+ dom-event-types: 1.0.0
+ lodash: 4.17.21
+ pretty: 2.0.0
+ vue: 2.6.14
+ vue-template-compiler: 2.6.14
+ dev: true
+
+ /abbrev/1.1.1:
+ resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}
dev: true
/acorn/7.4.1:
type-fest: 0.21.3
dev: true
+ /ansi-regex/2.1.1:
+ resolution: {integrity: sha1-w7M6te42DYbg5ijwRorn7yfWVN8=}
+ engines: {node: '>=0.10.0'}
+ dev: true
+
/ansi-regex/5.0.1:
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
engines: {node: '>=8'}
engines: {node: '>=12'}
dev: true
+ /ansi-styles/2.2.1:
+ resolution: {integrity: sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=}
+ engines: {node: '>=0.10.0'}
+ dev: true
+
/ansi-styles/3.2.1:
resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==}
engines: {node: '>=4'}
- debug
dev: true
+ /babel-code-frame/6.26.0:
+ resolution: {integrity: sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=}
+ dependencies:
+ chalk: 1.1.3
+ esutils: 2.0.3
+ js-tokens: 3.0.2
+ dev: true
+
+ /babel-helper-builder-binary-assignment-operator-visitor/6.24.1:
+ resolution: {integrity: sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=}
+ dependencies:
+ babel-helper-explode-assignable-expression: 6.24.1
+ babel-runtime: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-helper-call-delegate/6.24.1:
+ resolution: {integrity: sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=}
+ dependencies:
+ babel-helper-hoist-variables: 6.24.1
+ babel-runtime: 6.26.0
+ babel-traverse: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-helper-define-map/6.26.0:
+ resolution: {integrity: sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=}
+ dependencies:
+ babel-helper-function-name: 6.24.1
+ babel-runtime: 6.26.0
+ babel-types: 6.26.0
+ lodash: 4.17.21
+ dev: true
+
+ /babel-helper-explode-assignable-expression/6.24.1:
+ resolution: {integrity: sha1-8luCz33BBDPFX3BZLVdGQArCLKo=}
+ dependencies:
+ babel-runtime: 6.26.0
+ babel-traverse: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-helper-function-name/6.24.1:
+ resolution: {integrity: sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=}
+ dependencies:
+ babel-helper-get-function-arity: 6.24.1
+ babel-runtime: 6.26.0
+ babel-template: 6.26.0
+ babel-traverse: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-helper-get-function-arity/6.24.1:
+ resolution: {integrity: sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=}
+ dependencies:
+ babel-runtime: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-helper-hoist-variables/6.24.1:
+ resolution: {integrity: sha1-HssnaJydJVE+rbyZFKc/VAi+enY=}
+ dependencies:
+ babel-runtime: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-helper-optimise-call-expression/6.24.1:
+ resolution: {integrity: sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=}
+ dependencies:
+ babel-runtime: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-helper-regex/6.26.0:
+ resolution: {integrity: sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=}
+ dependencies:
+ babel-runtime: 6.26.0
+ babel-types: 6.26.0
+ lodash: 4.17.21
+ dev: true
+
+ /babel-helper-remap-async-to-generator/6.24.1:
+ resolution: {integrity: sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=}
+ dependencies:
+ babel-helper-function-name: 6.24.1
+ babel-runtime: 6.26.0
+ babel-template: 6.26.0
+ babel-traverse: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-helper-replace-supers/6.24.1:
+ resolution: {integrity: sha1-v22/5Dk40XNpohPKiov3S2qQqxo=}
+ dependencies:
+ babel-helper-optimise-call-expression: 6.24.1
+ babel-messages: 6.23.0
+ babel-runtime: 6.26.0
+ babel-template: 6.26.0
+ babel-traverse: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-messages/6.23.0:
+ resolution: {integrity: sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=}
+ dependencies:
+ babel-runtime: 6.26.0
+ dev: true
+
+ /babel-plugin-check-es2015-constants/6.22.0:
+ resolution: {integrity: sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=}
+ dependencies:
+ babel-runtime: 6.26.0
+ dev: true
+
+ /babel-plugin-syntax-async-functions/6.13.0:
+ resolution: {integrity: sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=}
+ dev: true
+
+ /babel-plugin-syntax-exponentiation-operator/6.13.0:
+ resolution: {integrity: sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=}
+ dev: true
+
+ /babel-plugin-syntax-trailing-function-commas/6.22.0:
+ resolution: {integrity: sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=}
+ dev: true
+
+ /babel-plugin-transform-async-to-generator/6.24.1:
+ resolution: {integrity: sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=}
+ dependencies:
+ babel-helper-remap-async-to-generator: 6.24.1
+ babel-plugin-syntax-async-functions: 6.13.0
+ babel-runtime: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-arrow-functions/6.22.0:
+ resolution: {integrity: sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE=}
+ dependencies:
+ babel-runtime: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-block-scoped-functions/6.22.0:
+ resolution: {integrity: sha1-u8UbSflk1wy42OC5ToICRs46YUE=}
+ dependencies:
+ babel-runtime: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-block-scoping/6.26.0:
+ resolution: {integrity: sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=}
+ dependencies:
+ babel-runtime: 6.26.0
+ babel-template: 6.26.0
+ babel-traverse: 6.26.0
+ babel-types: 6.26.0
+ lodash: 4.17.21
+ dev: true
+
+ /babel-plugin-transform-es2015-classes/6.24.1:
+ resolution: {integrity: sha1-WkxYpQyclGHlZLSyo7+ryXolhNs=}
+ dependencies:
+ babel-helper-define-map: 6.26.0
+ babel-helper-function-name: 6.24.1
+ babel-helper-optimise-call-expression: 6.24.1
+ babel-helper-replace-supers: 6.24.1
+ babel-messages: 6.23.0
+ babel-runtime: 6.26.0
+ babel-template: 6.26.0
+ babel-traverse: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-computed-properties/6.24.1:
+ resolution: {integrity: sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM=}
+ dependencies:
+ babel-runtime: 6.26.0
+ babel-template: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-destructuring/6.23.0:
+ resolution: {integrity: sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=}
+ dependencies:
+ babel-runtime: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-duplicate-keys/6.24.1:
+ resolution: {integrity: sha1-c+s9MQypaePvnskcU3QabxV2Qj4=}
+ dependencies:
+ babel-runtime: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-for-of/6.23.0:
+ resolution: {integrity: sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE=}
+ dependencies:
+ babel-runtime: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-function-name/6.24.1:
+ resolution: {integrity: sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=}
+ dependencies:
+ babel-helper-function-name: 6.24.1
+ babel-runtime: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-literals/6.22.0:
+ resolution: {integrity: sha1-T1SgLWzWbPkVKAAZox0xklN3yi4=}
+ dependencies:
+ babel-runtime: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-modules-amd/6.24.1:
+ resolution: {integrity: sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ=}
+ dependencies:
+ babel-plugin-transform-es2015-modules-commonjs: 6.26.2
+ babel-runtime: 6.26.0
+ babel-template: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-modules-commonjs/6.26.2:
+ resolution: {integrity: sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==}
+ dependencies:
+ babel-plugin-transform-strict-mode: 6.24.1
+ babel-runtime: 6.26.0
+ babel-template: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-modules-systemjs/6.24.1:
+ resolution: {integrity: sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM=}
+ dependencies:
+ babel-helper-hoist-variables: 6.24.1
+ babel-runtime: 6.26.0
+ babel-template: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-modules-umd/6.24.1:
+ resolution: {integrity: sha1-rJl+YoXNGO1hdq22B9YCNErThGg=}
+ dependencies:
+ babel-plugin-transform-es2015-modules-amd: 6.24.1
+ babel-runtime: 6.26.0
+ babel-template: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-object-super/6.24.1:
+ resolution: {integrity: sha1-JM72muIcuDp/hgPa0CH1cusnj40=}
+ dependencies:
+ babel-helper-replace-supers: 6.24.1
+ babel-runtime: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-parameters/6.24.1:
+ resolution: {integrity: sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=}
+ dependencies:
+ babel-helper-call-delegate: 6.24.1
+ babel-helper-get-function-arity: 6.24.1
+ babel-runtime: 6.26.0
+ babel-template: 6.26.0
+ babel-traverse: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-shorthand-properties/6.24.1:
+ resolution: {integrity: sha1-JPh11nIch2YbvZmkYi5R8U3jiqA=}
+ dependencies:
+ babel-runtime: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-spread/6.22.0:
+ resolution: {integrity: sha1-1taKmfia7cRTbIGlQujdnxdG+NE=}
+ dependencies:
+ babel-runtime: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-sticky-regex/6.24.1:
+ resolution: {integrity: sha1-AMHNsaynERLN8M9hJsLta0V8zbw=}
+ dependencies:
+ babel-helper-regex: 6.26.0
+ babel-runtime: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-template-literals/6.22.0:
+ resolution: {integrity: sha1-qEs0UPfp+PH2g51taH2oS7EjbY0=}
+ dependencies:
+ babel-runtime: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-typeof-symbol/6.23.0:
+ resolution: {integrity: sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I=}
+ dependencies:
+ babel-runtime: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-es2015-unicode-regex/6.24.1:
+ resolution: {integrity: sha1-04sS9C6nMj9yk4fxinxa4frrNek=}
+ dependencies:
+ babel-helper-regex: 6.26.0
+ babel-runtime: 6.26.0
+ regexpu-core: 2.0.0
+ dev: true
+
+ /babel-plugin-transform-exponentiation-operator/6.24.1:
+ resolution: {integrity: sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=}
+ dependencies:
+ babel-helper-builder-binary-assignment-operator-visitor: 6.24.1
+ babel-plugin-syntax-exponentiation-operator: 6.13.0
+ babel-runtime: 6.26.0
+ dev: true
+
+ /babel-plugin-transform-regenerator/6.26.0:
+ resolution: {integrity: sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8=}
+ dependencies:
+ regenerator-transform: 0.10.1
+ dev: true
+
+ /babel-plugin-transform-strict-mode/6.24.1:
+ resolution: {integrity: sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=}
+ dependencies:
+ babel-runtime: 6.26.0
+ babel-types: 6.26.0
+ dev: true
+
+ /babel-preset-env/1.7.0:
+ resolution: {integrity: sha512-9OR2afuKDneX2/q2EurSftUYM0xGu4O2D9adAhVfADDhrYDaxXV0rBbevVYoY9n6nyX1PmQW/0jtpJvUNr9CHg==}
+ dependencies:
+ babel-plugin-check-es2015-constants: 6.22.0
+ babel-plugin-syntax-trailing-function-commas: 6.22.0
+ babel-plugin-transform-async-to-generator: 6.24.1
+ babel-plugin-transform-es2015-arrow-functions: 6.22.0
+ babel-plugin-transform-es2015-block-scoped-functions: 6.22.0
+ babel-plugin-transform-es2015-block-scoping: 6.26.0
+ babel-plugin-transform-es2015-classes: 6.24.1
+ babel-plugin-transform-es2015-computed-properties: 6.24.1
+ babel-plugin-transform-es2015-destructuring: 6.23.0
+ babel-plugin-transform-es2015-duplicate-keys: 6.24.1
+ babel-plugin-transform-es2015-for-of: 6.23.0
+ babel-plugin-transform-es2015-function-name: 6.24.1
+ babel-plugin-transform-es2015-literals: 6.22.0
+ babel-plugin-transform-es2015-modules-amd: 6.24.1
+ babel-plugin-transform-es2015-modules-commonjs: 6.26.2
+ babel-plugin-transform-es2015-modules-systemjs: 6.24.1
+ babel-plugin-transform-es2015-modules-umd: 6.24.1
+ babel-plugin-transform-es2015-object-super: 6.24.1
+ babel-plugin-transform-es2015-parameters: 6.24.1
+ babel-plugin-transform-es2015-shorthand-properties: 6.24.1
+ babel-plugin-transform-es2015-spread: 6.22.0
+ babel-plugin-transform-es2015-sticky-regex: 6.24.1
+ babel-plugin-transform-es2015-template-literals: 6.22.0
+ babel-plugin-transform-es2015-typeof-symbol: 6.23.0
+ babel-plugin-transform-es2015-unicode-regex: 6.24.1
+ babel-plugin-transform-exponentiation-operator: 6.24.1
+ babel-plugin-transform-regenerator: 6.26.0
+ browserslist: 3.2.8
+ invariant: 2.2.4
+ semver: 5.7.1
+ dev: true
+
+ /babel-runtime/6.26.0:
+ resolution: {integrity: sha1-llxwWGaOgrVde/4E/yM3vItWR/4=}
+ dependencies:
+ core-js: 2.6.12
+ regenerator-runtime: 0.11.1
+ dev: true
+
+ /babel-template/6.26.0:
+ resolution: {integrity: sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=}
+ dependencies:
+ babel-runtime: 6.26.0
+ babel-traverse: 6.26.0
+ babel-types: 6.26.0
+ babylon: 6.18.0
+ lodash: 4.17.21
+ dev: true
+
+ /babel-traverse/6.26.0:
+ resolution: {integrity: sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=}
+ dependencies:
+ babel-code-frame: 6.26.0
+ babel-messages: 6.23.0
+ babel-runtime: 6.26.0
+ babel-types: 6.26.0
+ babylon: 6.18.0
+ debug: 2.6.9
+ globals: 9.18.0
+ invariant: 2.2.4
+ lodash: 4.17.21
+ dev: true
+
+ /babel-types/6.26.0:
+ resolution: {integrity: sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=}
+ dependencies:
+ babel-runtime: 6.26.0
+ esutils: 2.0.3
+ lodash: 4.17.21
+ to-fast-properties: 1.0.3
+ dev: true
+
/babel-walk/3.0.0-canary-5:
resolution: {integrity: sha512-GAwkz0AihzY5bkwIY5QDR+LvsRQgB/B+1foMPvi0FZPMl5fjD7ICiznUiBdLYMH1QYe6vqu4gWYytZOccLouFw==}
engines: {node: '>= 10.0.0'}
'@babel/types': 7.16.0
dev: true
+ /babylon/6.18.0:
+ resolution: {integrity: sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==}
+ hasBin: true
+ dev: true
+
/balanced-match/1.0.2:
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
dev: true
fill-range: 7.0.1
dev: true
+ /browserslist/3.2.8:
+ resolution: {integrity: sha512-WHVocJYavUwVgVViC0ORikPHQquXwVh939TaelZ4WDqpWgTX/FsGhl/+P4qBUAGcRvtOgDgC+xftNWWp2RUTAQ==}
+ hasBin: true
+ dependencies:
+ caniuse-lite: 1.0.30001283
+ electron-to-chromium: 1.4.4
+ dev: true
+
/browserslist/4.18.1:
resolution: {integrity: sha512-8ScCzdpPwR2wQh8IT82CA2VgDwjHyqMovPBZSNH54+tm4Jk2pCuv90gmAdH6J84OCRWi0b4gMe6O6XPXuJnjgQ==}
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
get-intrinsic: 1.1.1
dev: true
- /camelcase/6.2.1:
- resolution: {integrity: sha512-tVI4q5jjFV5CavAU8DXfza/TJcZutVKo/5Foskmsqcm0MsL91moHvwiGNnqaa2o6PF/7yT5ikDRcVcl8Rj6LCA==}
- engines: {node: '>=10'}
+ /camelcase/5.3.1:
+ resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==}
+ engines: {node: '>=6'}
dev: true
/caniuse-lite/1.0.30001283:
resolution: {integrity: sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=}
dev: true
+ /chalk/1.1.3:
+ resolution: {integrity: sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=}
+ engines: {node: '>=0.10.0'}
+ dependencies:
+ ansi-styles: 2.2.1
+ escape-string-regexp: 1.0.5
+ has-ansi: 2.0.0
+ strip-ansi: 3.0.1
+ supports-color: 2.0.0
+ dev: true
+
/chalk/2.4.2:
resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}
engines: {node: '>=4'}
delayed-stream: 1.0.0
dev: true
+ /commander/2.20.3:
+ resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
+ dev: true
+
/commander/5.1.0:
resolution: {integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==}
engines: {node: '>= 6'}
dev: true
- /commander/8.3.0:
- resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}
- engines: {node: '>= 12'}
+ /commander/8.3.0:
+ resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}
+ engines: {node: '>= 12'}
+ dev: true
+
+ /common-tags/1.8.2:
+ resolution: {integrity: sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==}
+ engines: {node: '>=4.0.0'}
+ dev: true
+
+ /concat-map/0.0.1:
+ resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=}
+ dev: true
+
+ /condense-newlines/0.2.1:
+ resolution: {integrity: sha1-PemFVTE5R10yUCyDsC9gaE0kxV8=}
+ engines: {node: '>=0.10.0'}
+ dependencies:
+ extend-shallow: 2.0.1
+ is-whitespace: 0.3.0
+ kind-of: 3.2.2
+ dev: true
+
+ /config-chain/1.1.13:
+ resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==}
+ dependencies:
+ ini: 1.3.8
+ proto-list: 1.2.4
dev: true
- /common-tags/1.8.2:
- resolution: {integrity: sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==}
- engines: {node: '>=4.0.0'}
+ /consolidate/0.15.1:
+ resolution: {integrity: sha512-DW46nrsMJgy9kqAbPt5rKaCr7uFtpo4mSUvLHIUbJEjm0vo+aY5QLwBUq3FK4tRnJr/X0Psc0C4jf/h+HtXSMw==}
+ engines: {node: '>= 0.10.0'}
+ dependencies:
+ bluebird: 3.7.2
dev: true
- /concat-map/0.0.1:
- resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=}
+ /consolidate/0.16.0:
+ resolution: {integrity: sha512-Nhl1wzCslqXYTJVDyJCu3ODohy9OfBMB5uD2BiBTzd7w+QY0lBzafkR8y8755yMYHAaMD4NuzbAw03/xzfw+eQ==}
+ engines: {node: '>= 0.10.0'}
+ dependencies:
+ bluebird: 3.7.2
dev: true
/constantinople/4.0.1:
safe-buffer: 5.1.2
dev: true
+ /core-js/2.6.12:
+ resolution: {integrity: sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==}
+ deprecated: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
+ requiresBuild: true
+ dev: true
+
/core-util-is/1.0.2:
resolution: {integrity: sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=}
dev: true
which: 2.0.2
dev: true
+ /cssesc/3.0.0:
+ resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
+ engines: {node: '>=4'}
+ hasBin: true
+ dev: true
+
/csstype/2.6.19:
resolution: {integrity: sha512-ZVxXaNy28/k3kJg0Fou5MiYpp88j7H9hLZp8PDC3jV0WFjfH5E9xHb56L0W59cPbKbcHXeP4qyT8PrHp8t6LcQ==}
- dev: false
+ dev: true
/cypress/8.7.0:
resolution: {integrity: sha512-b1bMC3VQydC6sXzBMFnSqcvwc9dTZMgcaOzT0vpSD+Gq1yFc+72JDWi55sfUK5eIeNLAtWOGy1NNb6UlhMvB+Q==}
resolution: {integrity: sha512-P6twpd70BcPK34K26uJ1KT3wlhpuOAPoMwJzpsIWUxHZ7wpmbdZL/hQqBDfz7hGurYSa5PhzdhDHtt319hL3ig==}
dev: true
+ /de-indent/1.0.2:
+ resolution: {integrity: sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0=}
+ dev: true
+
+ /debug/2.6.9:
+ resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==}
+ dependencies:
+ ms: 2.0.0
+ dev: true
+
/debug/3.2.7:
resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
dependencies:
- ms: 2.1.3
+ ms: 2.1.2
dev: true
/debug/4.3.2:
object-keys: 1.1.1
dev: true
+ /defu/5.0.0:
+ resolution: {integrity: sha512-VHg73EDeRXlu7oYWRmmrNp/nl7QkdXUxkQQKig0Zk8daNmm84AbGoC8Be6/VVLJEKxn12hR0UBmz8O+xQiAPKQ==}
+ dev: true
+
/delayed-stream/1.0.0:
resolution: {integrity: sha1-3zrhmayt+31ECqrgsp4icrJOxhk=}
engines: {node: '>=0.4.0'}
resolution: {integrity: sha1-6oCxBqh1OHdOijpKWv4pPeSJ4Kk=}
dev: true
+ /dom-event-types/1.0.0:
+ resolution: {integrity: sha512-2G2Vwi2zXTHBGqXHsJ4+ak/iP0N8Ar+G8a7LiD2oup5o4sQWytwqqrZu/O6hIMV0KMID2PL69OhpshLO0n7UJQ==}
+ dev: true
+
/dom-serializer/1.3.2:
resolution: {integrity: sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==}
dependencies:
resolution: {integrity: sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==}
dev: true
+ /domhandler/3.3.0:
+ resolution: {integrity: sha512-J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA==}
+ engines: {node: '>= 4'}
+ dependencies:
+ domelementtype: 2.2.0
+ dev: true
+
/domhandler/4.2.2:
resolution: {integrity: sha512-PzE9aBMsdZO8TK4BnuJwH0QT41wgMbRzuZrHUcpYncEjmQazq8QEaBWgLG7ZyC/DAZKEgglpIA6j4Qn/HmxS3w==}
engines: {node: '>= 4'}
safer-buffer: 2.1.2
dev: true
+ /editorconfig/0.15.3:
+ resolution: {integrity: sha512-M9wIMFx96vq0R4F+gRpY3o2exzb8hEj/n9S8unZtHSvYjibBp/iMufSzvmOcV/laG0ZtuTVGtiJggPOSW2r93g==}
+ hasBin: true
+ dependencies:
+ commander: 2.20.3
+ lru-cache: 4.1.5
+ semver: 5.7.1
+ sigmund: 1.0.1
+ dev: true
+
/electron-to-chromium/1.4.4:
resolution: {integrity: sha512-teHtgwcmVcL46jlFvAaqjyiTLWuMrUQO1JqV303JKB4ysXG6m8fXSFhbjal9st0r9mNskI22AraJZorb1VcLVg==}
dev: true
/estree-walker/2.0.2:
resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
+ dev: true
+
+ /esutils/2.0.3:
+ resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
+ engines: {node: '>=0.10.0'}
+ dev: true
/event-stream/3.3.4:
resolution: {integrity: sha1-SrTJoPWlTbkzi0w02Gv86PSzVXE=}
pify: 2.3.0
dev: true
+ /extend-shallow/2.0.1:
+ resolution: {integrity: sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=}
+ engines: {node: '>=0.10.0'}
+ dependencies:
+ is-extendable: 0.1.1
+ dev: true
+
/extend/3.0.2:
resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}
dev: true
engines: {node: '>=4'}
dev: true
+ /globals/9.18.0:
+ resolution: {integrity: sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==}
+ engines: {node: '>=0.10.0'}
+ dev: true
+
/graceful-fs/4.2.8:
resolution: {integrity: sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==}
dev: true
har-schema: 2.0.0
dev: true
+ /has-ansi/2.0.0:
+ resolution: {integrity: sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=}
+ engines: {node: '>=0.10.0'}
+ dependencies:
+ ansi-regex: 2.1.1
+ dev: true
+
/has-bigints/1.0.1:
resolution: {integrity: sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==}
dev: true
function-bind: 1.1.1
dev: true
+ /hash-sum/1.0.2:
+ resolution: {integrity: sha1-M7QHd3VMZDJXPBIMw4CLvRDUfwQ=}
+ dev: true
+
/hash-sum/2.0.0:
resolution: {integrity: sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==}
dev: true
+ /he/1.2.0:
+ resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==}
+ hasBin: true
+ dev: true
+
/hosted-git-info/2.8.9:
resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==}
dev: true
- /html-tags/3.1.0:
- resolution: {integrity: sha512-1qYz89hW3lFDEazhjW0yVAV87lw8lVkrJocr72XmBkMKsoSVJCQx3W8BXsC7hO2qAt8BoVjYjtAcZ9perqGnNg==}
- engines: {node: '>=8'}
+ /html-tags/2.0.0:
+ resolution: {integrity: sha1-ELMKOGCF9Dzt41PMj6fLDe7qZos=}
+ engines: {node: '>=4'}
+ dev: true
+
+ /htmlparser2/5.0.1:
+ resolution: {integrity: sha512-vKZZra6CSe9qsJzh0BjBGXo8dvzNsq/oGvsjfRdOrrryfeD9UOBEEQdeoqCRmKZchF5h2zOBMQ6YuQ0uRUmdbQ==}
+ dependencies:
+ domelementtype: 2.2.0
+ domhandler: 3.3.0
+ domutils: 2.8.0
+ entities: 2.2.0
dev: true
/htmlparser2/7.2.0:
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
dev: true
+ /ini/1.3.8:
+ resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==}
+ dev: true
+
/ini/2.0.0:
resolution: {integrity: sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==}
engines: {node: '>=10'}
side-channel: 1.0.4
dev: true
+ /invariant/2.2.4:
+ resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==}
+ dependencies:
+ loose-envify: 1.4.0
+ dev: true
+
/is-arrayish/0.2.1:
resolution: {integrity: sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=}
dev: true
has-tostringtag: 1.0.0
dev: true
+ /is-buffer/1.1.6:
+ resolution: {integrity: sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==}
+ dev: true
+
/is-callable/1.2.4:
resolution: {integrity: sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==}
engines: {node: '>= 0.4'}
object-assign: 4.1.1
dev: true
+ /is-extendable/0.1.1:
+ resolution: {integrity: sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=}
+ engines: {node: '>=0.10.0'}
+ dev: true
+
/is-fullwidth-code-point/3.0.0:
resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
engines: {node: '>=8'}
call-bind: 1.0.2
dev: true
+ /is-whitespace/0.3.0:
+ resolution: {integrity: sha1-Fjnssb4DauxppUy7QBz77XEUq38=}
+ engines: {node: '>=0.10.0'}
+ dev: true
+
/isexe/2.0.0:
resolution: {integrity: sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=}
dev: true
'@sideway/pinpoint': 2.0.0
dev: true
+ /js-beautify/1.14.0:
+ resolution: {integrity: sha512-yuck9KirNSCAwyNJbqW+BxJqJ0NLJ4PwBUzQQACl5O3qHMBXVkXb/rD0ilh/Lat/tn88zSZ+CAHOlk0DsY7GuQ==}
+ engines: {node: '>=10'}
+ hasBin: true
+ dependencies:
+ config-chain: 1.1.13
+ editorconfig: 0.15.3
+ glob: 7.2.0
+ nopt: 5.0.0
+ dev: true
+
/js-stringify/1.0.2:
resolution: {integrity: sha1-Fzb939lyTyijaCrcYjCufk6Weds=}
dev: true
+ /js-tokens/3.0.2:
+ resolution: {integrity: sha1-mGbfOVECEw449/mWvOtlRDIJwls=}
+ dev: true
+
/js-tokens/4.0.0:
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
dev: true
resolution: {integrity: sha1-peZUwuWi3rXyAdls77yoDA7y9RM=}
dev: true
+ /jsesc/0.5.0:
+ resolution: {integrity: sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=}
+ hasBin: true
+ dev: true
+
/jsesc/2.5.2:
resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==}
engines: {node: '>=4'}
promise: 7.3.1
dev: true
+ /kind-of/3.2.2:
+ resolution: {integrity: sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=}
+ engines: {node: '>=0.10.0'}
+ dependencies:
+ is-buffer: 1.1.6
+ dev: true
+
/kleur/3.0.3:
resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
engines: {node: '>=6'}
strip-bom: 3.0.0
dev: true
+ /lodash.kebabcase/4.1.1:
+ resolution: {integrity: sha1-hImxyw0p/4gZXM7KRI/21swpXDY=}
+ dev: true
+
/lodash.once/4.1.1:
resolution: {integrity: sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=}
dev: true
wrap-ansi: 6.2.0
dev: true
+ /loose-envify/1.4.0:
+ resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
+ hasBin: true
+ dependencies:
+ js-tokens: 4.0.0
+ dev: true
+
+ /lru-cache/4.1.5:
+ resolution: {integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==}
+ dependencies:
+ pseudomap: 1.0.2
+ yallist: 2.1.2
+ dev: true
+
/lru-cache/6.0.0:
resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}
engines: {node: '>=10'}
resolution: {integrity: sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==}
dependencies:
sourcemap-codec: 1.4.8
- dev: false
+ dev: true
/map-stream/0.1.0:
resolution: {integrity: sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=}
engines: {node: '>= 0.10.0'}
dev: true
+ /merge-source-map/1.1.0:
+ resolution: {integrity: sha512-Qkcp7P2ygktpMPh2mCQZaf3jhN6D3Z/qVZHSdWvQ+2Ef5HgRAPBO57A77+ENm0CPx2+1Ce/MYKi3ymqdfuqibw==}
+ dependencies:
+ source-map: 0.6.1
+ dev: true
+
/merge-stream/2.0.0:
resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
dev: true
resolution: {integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==}
dev: true
- /ms/2.1.2:
- resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
+ /ms/2.0.0:
+ resolution: {integrity: sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=}
dev: true
- /ms/2.1.3:
- resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
+ /ms/2.1.2:
+ resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
dev: true
/nanoid/3.1.30:
resolution: {integrity: sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==}
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
+ dev: true
/nice-try/1.0.5:
resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==}
resolution: {integrity: sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==}
dev: true
+ /nopt/5.0.0:
+ resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==}
+ engines: {node: '>=6'}
+ hasBin: true
+ dependencies:
+ abbrev: 1.1.1
+ dev: true
+
/normalize-package-data/2.5.0:
resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==}
dependencies:
resolution: {integrity: sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=}
dev: true
+ /picocolors/0.2.1:
+ resolution: {integrity: sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==}
+ dev: true
+
/picocolors/1.0.0:
resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==}
+ dev: true
/picomatch/2.3.0:
resolution: {integrity: sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==}
engines: {node: '>=4'}
dev: true
- /pinia/2.0.4_typescript@4.4.4+vue@3.2.23:
+ /pinia/2.0.4_3906864f589986c51f71a72116128850:
resolution: {integrity: sha512-nAc2f9HmOcBbWRlnGDuBGedM1G6uFAR10FnJWP1/dgm1I2tM5jbgKL/3IgynP4mBnPCy//ky7g0WpCZl5Mmxsg==}
peerDependencies:
'@vue/composition-api': ^1.4.0
typescript:
optional: true
dependencies:
+ '@vue/composition-api': 1.4.0_vue@2.6.14
'@vue/devtools-api': 6.0.0-beta.20.1
typescript: 4.4.4
- vue: 3.2.23
- vue-demi: 0.12.1_vue@3.2.23
+ vue: 2.6.14
+ vue-demi: 0.12.1_5f1bd7414a2bfaaedeb8e06aba7234f1
dev: false
- /pinia/2.0.4_vue@3.2.23:
+ /pinia/2.0.4_5f1bd7414a2bfaaedeb8e06aba7234f1:
resolution: {integrity: sha512-nAc2f9HmOcBbWRlnGDuBGedM1G6uFAR10FnJWP1/dgm1I2tM5jbgKL/3IgynP4mBnPCy//ky7g0WpCZl5Mmxsg==}
peerDependencies:
'@vue/composition-api': ^1.4.0
typescript:
optional: true
dependencies:
+ '@vue/composition-api': 1.4.0_vue@2.6.14
'@vue/devtools-api': 6.0.0-beta.20.1
- vue: 3.2.23
- vue-demi: 0.12.1_vue@3.2.23
+ vue: 2.6.14
+ vue-demi: 0.12.1_5f1bd7414a2bfaaedeb8e06aba7234f1
dev: false
+ /postcss-selector-parser/6.0.6:
+ resolution: {integrity: sha512-9LXrvaaX3+mcv5xkg5kFwqSzSH1JIObIx51PrndZwlmznwXRfxMddDvo9gve3gVR8ZTKgoFDdWkbRFmEhT4PMg==}
+ engines: {node: '>=4'}
+ dependencies:
+ cssesc: 3.0.0
+ util-deprecate: 1.0.2
+ dev: true
+
+ /postcss/7.0.39:
+ resolution: {integrity: sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==}
+ engines: {node: '>=6.0.0'}
+ dependencies:
+ picocolors: 0.2.1
+ source-map: 0.6.1
+ dev: true
+
/postcss/8.4.4:
resolution: {integrity: sha512-joU6fBsN6EIer28Lj6GDFoC/5yOZzLCfn0zHAn/MYXI7aPt4m4hK5KC5ovEZXy+lnCjmYIbQWngvju2ddyEr8Q==}
engines: {node: ^10 || ^12 || >=14}
nanoid: 3.1.30
picocolors: 1.0.0
source-map-js: 1.0.1
+ dev: true
/prettier/2.5.0:
resolution: {integrity: sha512-FM/zAKgWTxj40rH03VxzIPdXmj39SwSjwG0heUcNFwI+EMZJnY93yAiKXM3dObIKAM5TA88werc8T/EwhB45eg==}
engines: {node: '>=6'}
dev: true
+ /pretty/2.0.0:
+ resolution: {integrity: sha1-rbx5YLe7/iiaVX3F9zdhmiINBqU=}
+ engines: {node: '>=0.10.0'}
+ dependencies:
+ condense-newlines: 0.2.1
+ extend-shallow: 2.0.1
+ js-beautify: 1.14.0
+ dev: true
+
+ /private/0.1.8:
+ resolution: {integrity: sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==}
+ engines: {node: '>= 0.6'}
+ dev: true
+
/promise/7.3.1:
resolution: {integrity: sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==}
dependencies:
sisteransi: 1.0.5
dev: true
+ /proto-list/1.2.4:
+ resolution: {integrity: sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=}
+ dev: true
+
/proxy-from-env/1.0.0:
resolution: {integrity: sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4=}
dev: true
event-stream: 3.3.4
dev: true
+ /pseudomap/1.0.2:
+ resolution: {integrity: sha1-8FKijacOYYkX7wqKw0wa5aaChrM=}
+ dev: true
+
/psl/1.8.0:
resolution: {integrity: sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==}
dev: true
deprecated: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
dev: true
+ /querystring/0.2.1:
+ resolution: {integrity: sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==}
+ engines: {node: '>=0.4.x'}
+ deprecated: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
+ dev: true
+
/ramda/0.27.1:
resolution: {integrity: sha512-PgIdVpn5y5Yns8vqb8FzBUEYn98V3xcPgawAkkgj0YJ0qDsnHCiNmZYfOGMgOvoB0eWFLpYbhxUR3mxfDIMvpw==}
dev: true
path-type: 3.0.0
dev: true
+ /regenerate/1.4.2:
+ resolution: {integrity: sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==}
+ dev: true
+
+ /regenerator-runtime/0.11.1:
+ resolution: {integrity: sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==}
+ dev: true
+
+ /regenerator-transform/0.10.1:
+ resolution: {integrity: sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q==}
+ dependencies:
+ babel-runtime: 6.26.0
+ babel-types: 6.26.0
+ private: 0.1.8
+ dev: true
+
+ /regexpu-core/2.0.0:
+ resolution: {integrity: sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=}
+ dependencies:
+ regenerate: 1.4.2
+ regjsgen: 0.2.0
+ regjsparser: 0.1.5
+ dev: true
+
+ /regjsgen/0.2.0:
+ resolution: {integrity: sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=}
+ dev: true
+
+ /regjsparser/0.1.5:
+ resolution: {integrity: sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=}
+ hasBin: true
+ dependencies:
+ jsesc: 0.5.0
+ dev: true
+
/request-light/0.5.5:
resolution: {integrity: sha512-AvjfJuhyT6dYfhtIBF+IpTPQco+Td1QJ6PsIJ5xui110vQ5p9HxHk+m1XJqXazLQT6CxxSx9eNv6R/+fu4bZig==}
dev: true
object-inspect: 1.11.0
dev: true
+ /sigmund/1.0.1:
+ resolution: {integrity: sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=}
+ dev: true
+
/signal-exit/3.0.6:
resolution: {integrity: sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ==}
dev: true
resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
dev: true
+ /slash/3.0.0:
+ resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
+ engines: {node: '>=8'}
+ dev: true
+
/slice-ansi/3.0.0:
resolution: {integrity: sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==}
engines: {node: '>=8'}
/source-map-js/1.0.1:
resolution: {integrity: sha512-4+TN2b3tqOCd/kaGRJ/sTYA0tR0mdXx26ipdolxcwtJVqEnqNYvlCAt1q3ypy4QMlYus+Zh34RNtYLoq2oQ4IA==}
engines: {node: '>=0.10.0'}
+ dev: true
/source-map/0.5.7:
resolution: {integrity: sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=}
/source-map/0.6.1:
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
engines: {node: '>=0.10.0'}
+ dev: true
+
+ /source-map/0.7.3:
+ resolution: {integrity: sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==}
+ engines: {node: '>= 8'}
+ dev: true
/sourcemap-codec/1.4.8:
resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==}
- dev: false
+ dev: true
/spdx-correct/3.1.1:
resolution: {integrity: sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==}
define-properties: 1.1.3
dev: true
+ /strip-ansi/3.0.1:
+ resolution: {integrity: sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=}
+ engines: {node: '>=0.10.0'}
+ dependencies:
+ ansi-regex: 2.1.1
+ dev: true
+
/strip-ansi/6.0.1:
resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
engines: {node: '>=8'}
engines: {node: '>=6'}
dev: true
+ /supports-color/2.0.0:
+ resolution: {integrity: sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=}
+ engines: {node: '>=0.8.0'}
+ dev: true
+
/supports-color/5.5.0:
resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}
engines: {node: '>=4'}
rimraf: 3.0.2
dev: true
+ /to-fast-properties/1.0.3:
+ resolution: {integrity: sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=}
+ engines: {node: '>=0.10.0'}
+ dev: true
+
/to-fast-properties/2.0.0:
resolution: {integrity: sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=}
engines: {node: '>=4'}
resolution: {integrity: sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==}
dev: true
+ /tslib/2.3.1:
+ resolution: {integrity: sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==}
+ dev: false
+
/tunnel-agent/0.6.0:
resolution: {integrity: sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=}
dependencies:
engines: {node: '>= 10.0.0'}
dev: true
+ /unplugin-vue2-script-setup/0.7.1_vite@2.6.14:
+ resolution: {integrity: sha512-aE1T1ZM2y0SYpFo4nSvKkhWoH1CbO8eoR6gOvyufPGS4ZRKkueZ9oTy8IvM6NiePhnrhMRoMAPNi+yk1ENT0GQ==}
+ peerDependencies:
+ pug: ^3.0.2
+ peerDependenciesMeta:
+ pug:
+ optional: true
+ dependencies:
+ '@antfu/utils': 0.3.0
+ '@babel/core': 7.16.0
+ '@babel/generator': 7.16.0
+ '@babel/parser': 7.16.4
+ '@babel/traverse': 7.16.3
+ '@babel/types': 7.16.0
+ '@rollup/pluginutils': 4.1.1
+ '@vue/compiler-core': 3.2.23
+ '@vue/ref-transform': 3.2.23
+ '@vue/shared': 3.2.23
+ defu: 5.0.0
+ htmlparser2: 5.0.1
+ magic-string: 0.25.7
+ unplugin: 0.2.21_vite@2.6.14
+ transitivePeerDependencies:
+ - rollup
+ - supports-color
+ - vite
+ - webpack
+ dev: true
+
+ /unplugin/0.2.21_vite@2.6.14:
+ resolution: {integrity: sha512-IJ15/L5XbhnV7J09Zjk0FT5HEkBjkXucWAXQWRsmEtUxmmxwh23yavrmDbCF6ZPxWiVB28+wnKIHePTRRpQPbQ==}
+ peerDependencies:
+ rollup: ^2.50.0
+ vite: ^2.3.0
+ webpack: 4 || 5
+ peerDependenciesMeta:
+ rollup:
+ optional: true
+ vite:
+ optional: true
+ webpack:
+ optional: true
+ dependencies:
+ vite: 2.6.14
+ webpack-virtual-modules: 0.4.3
+ dev: true
+
/untildify/4.0.0:
resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==}
engines: {node: '>=8'}
querystring: 0.2.0
dev: true
+ /util-deprecate/1.0.2:
+ resolution: {integrity: sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=}
+ dev: true
+
/uuid/8.3.2:
resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}
hasBin: true
extsprintf: 1.3.0
dev: true
+ /vite-plugin-vue2/1.9.0_cd1846aafe4c35f31c699104ee2df148:
+ resolution: {integrity: sha512-4vmcoiOmOTGjRnA0hk8tHYqk96ZxRpe4AmeCqJJ8jQuNo+SDF1zXPyhxAUIK1tuK354No77WVHHIimVvZQuvIA==}
+ peerDependencies:
+ vite: ^2.0.0-beta.23
+ vue-template-compiler: ^2.2.0
+ dependencies:
+ '@babel/core': 7.16.0
+ '@babel/parser': 7.16.4
+ '@babel/plugin-proposal-class-properties': 7.16.0_@babel+core@7.16.0
+ '@babel/plugin-proposal-decorators': 7.16.4_@babel+core@7.16.0
+ '@babel/plugin-transform-typescript': 7.16.1_@babel+core@7.16.0
+ '@rollup/pluginutils': 4.1.1
+ '@vue/babel-helper-vue-jsx-merge-props': 1.2.1
+ '@vue/babel-preset-jsx': 1.2.4_@babel+core@7.16.0
+ '@vue/component-compiler-utils': 3.3.0
+ babel-preset-env: 1.7.0
+ consolidate: 0.16.0
+ debug: 4.3.3
+ fs-extra: 9.1.0
+ hash-sum: 2.0.0
+ magic-string: 0.25.7
+ prettier: 2.5.0
+ querystring: 0.2.1
+ rollup: 2.60.1
+ slash: 3.0.0
+ source-map: 0.7.3
+ vite: 2.6.14
+ vue-template-compiler: 2.6.14
+ vue-template-es2015-compiler: 1.9.1
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
/vite/2.6.14:
resolution: {integrity: sha512-2HA9xGyi+EhY2MXo0+A2dRsqsAG3eFNEVIo12olkWhOmc8LfiM+eMdrXf+Ruje9gdXgvSqjLI9freec1RUM5EA==}
engines: {node: '>=12.2.0'}
vscode-typescript-languageservice: 0.29.7
dev: true
- /vue-demi/0.12.1_vue@3.2.23:
+ /vue-demi/0.12.1_5f1bd7414a2bfaaedeb8e06aba7234f1:
resolution: {integrity: sha512-QL3ny+wX8c6Xm1/EZylbgzdoDolye+VpCXRhI2hug9dJTP3OUJ3lmiKN3CsVV3mOJKwFi0nsstbgob0vG7aoIw==}
engines: {node: '>=12'}
hasBin: true
'@vue/composition-api':
optional: true
dependencies:
- vue: 3.2.23
+ '@vue/composition-api': 1.4.0_vue@2.6.14
+ vue: 2.6.14
dev: false
- /vue-router/4.0.12_vue@3.2.23:
- resolution: {integrity: sha512-CPXvfqe+mZLB1kBWssssTiWg4EQERyqJZes7USiqfW9B5N2x+nHlnsM1D3b5CaJ6qgCvMmYJnz+G0iWjNCvXrg==}
- peerDependencies:
- vue: ^3.0.0
- dependencies:
- '@vue/devtools-api': 6.0.0-beta.20.1
- vue: 3.2.23
+ /vue-router/3.5.3:
+ resolution: {integrity: sha512-FUlILrW3DGitS2h+Xaw8aRNvGTwtuaxrRkNSHWTizOfLUie7wuYwezeZ50iflRn8YPV5kxmU2LQuu3nM/b3Zsg==}
dev: false
+ /vue-template-compiler/2.6.14:
+ resolution: {integrity: sha512-ODQS1SyMbjKoO1JBJZojSw6FE4qnh9rIpUZn2EUT86FKizx9uH5z6uXiIrm4/Nb/gwxTi/o17ZDEGWAXHvtC7g==}
+ dependencies:
+ de-indent: 1.0.2
+ he: 1.2.0
+ dev: true
+
+ /vue-template-es2015-compiler/1.9.1:
+ resolution: {integrity: sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==}
+ dev: true
+
/vue-tsc/0.29.7_typescript@4.4.4:
resolution: {integrity: sha512-8jCGovixOZgV6Qu9nOyoTon3HUNUG9YD8cnMHUCGqdu/H21P5D+4k/d8rHzpGvbUlwq5dP2pFCx6rmRwfTfDmA==}
hasBin: true
vscode-vue-languageservice: 0.29.7
dev: true
- /vue/3.2.23:
- resolution: {integrity: sha512-MGp9JZC37lzGhwSu6c1tQxrQbXbw7XKFqtYh7SFwNrNK899FPxGAHwSHMZijMChTSC3uZrD2BGO/3EHOgMJ0cw==}
- dependencies:
- '@vue/compiler-dom': 3.2.23
- '@vue/compiler-sfc': 3.2.23
- '@vue/runtime-dom': 3.2.23
- '@vue/server-renderer': 3.2.23_vue@3.2.23
- '@vue/shared': 3.2.23
+ /vue/2.6.14:
+ resolution: {integrity: sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==}
dev: false
/wait-on/6.0.0_debug@4.3.2:
- debug
dev: true
+ /webpack-virtual-modules/0.4.3:
+ resolution: {integrity: sha512-5NUqC2JquIL2pBAAo/VfBP6KuGkHIZQXW/lNKupLPfhViwh8wNsu0BObtl09yuKZszeEUfbXz8xhrHvSG16Nqw==}
+ dev: true
+
/which-boxed-primitive/1.0.2:
resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==}
dependencies:
resolution: {integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=}
dev: true
+ /yallist/2.1.2:
+ resolution: {integrity: sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=}
+ dev: true
+
/yallist/4.0.0:
resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
dev: true
}
}
-const featureFlags = ['typescript', 'jsx', 'router', 'pinia', 'with-tests']
+const featureFlags = ['typescript', 'router', 'pinia', 'with-tests']
// The following code & comments are generated by GitHub CoPilot.
function fullCombination(arr) {
"preview": "vite preview --port 5050"
},
"dependencies": {
- "vue": "^3.2.22"
+ "@vue/composition-api": "^1.4.0",
+ "vue": "^2.6.14"
},
"devDependencies": {
- "@vitejs/plugin-vue": "^1.10.0",
- "vite": "^2.6.14"
+ "@vue/runtime-dom": "^3.2.22",
+ "unplugin-vue2-script-setup": "^0.7.1",
+ "vite-plugin-vue2": "^1.9.0",
+ "vite": "^2.6.14",
+ "vue-template-compiler": "^2.6.14"
}
}
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
+import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()],
+ plugins: [
+ vue2({
+ jsx: true
+ }),
+ scriptSetup()
+ ],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+ </div>
+ </header>
- <main>
- <TheWelcome />
- </main>
+ <main>
+ <TheWelcome />
+ </main>
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
describe('HelloWorld', () => {
it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
})
it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
cy.get('h1').should('contain', 'Hello Cypress')
})
})
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
+
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+
+ <nav>
+ <router-link to="/">Home</router-link>
+ <router-link to="/about">About</router-link>
+ </nav>
+ </div>
+ </header>
+
+ <router-view />
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
describe('HelloWorld', () => {
it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
})
it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
cy.get('h1').should('contain', 'Hello Cypress')
})
})
-import { createRouter, createWebHistory } from 'vue-router'
+import Vue from 'vue'
+import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
-const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+Vue.use(VueRouter)
+
+const router = new VueRouter({
+ mode: 'history',
+ base: import.meta.env.BASE_URL,
routes: [
{
path: '/',
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
- </div>
- </header>
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+ </div>
+ </header>
- <main>
- <TheWelcome />
- </main>
+ <main>
+ <TheWelcome />
+ </main>
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>.
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>.
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
describe('HelloWorld', () => {
it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
})
it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
cy.get('h1').should('contain', 'Hello Cypress')
})
})
</script>
<template>
- <header>
- <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
-
- <div class="wrapper">
- <HelloWorld msg="You did it!" />
-
- <nav>
- <router-link to="/">Home</router-link>
- <router-link to="/about">About</router-link>
- </nav>
- </div>
- </header>
-
- <router-view />
+ <div id="app">
+ <header>
+ <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
+
+ <div class="wrapper">
+ <HelloWorld msg="You did it!" />
+
+ <nav>
+ <router-link to="/">Home</router-link>
+ <router-link to="/about">About</router-link>
+ </nav>
+ </div>
+ </header>
+
+ <router-view />
+ </div>
</template>
<style>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
- <a target="_blank" href="https://v3.vuejs.org/">Vue 3</a>. What's next?
+ <a target="_blank" href="https://vuejs.org/">Vue 2</a>. What's next?
</h3>
</div>
</template>
</script>
<template>
- <WelcomeItem>
- <template #icon>
- <DocumentationIcon />
- </template>
- <template #heading>Documentation</template>
+ <div>
+ <WelcomeItem>
+ <template #icon>
+ <DocumentationIcon />
+ </template>
+ <template #heading>Documentation</template>
- Vue’s
- <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
- provides you with all information you need to get started.
- </WelcomeItem>
+ Vue’s
+ <a target="_blank" href="https://v3.vuejs.org/">official documentation</a>
+ provides you with all information you need to get started.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <ToolingIcon />
- </template>
- <template #heading>Tooling</template>
+ <WelcomeItem>
+ <template #icon>
+ <ToolingIcon />
+ </template>
+ <template #heading>Tooling</template>
- This project is served and bundled with
- <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
- your components and web pages, check out
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
- <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
- >Cypress Component Testing</a
- >.
+ This project is served and bundled with
+ <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
+ setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to
+ test your components and web pages, check out
+ <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
+ <a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
+ >Cypress Component Testing</a
+ >.
- <br />
+ <br />
- More instructions are available in <code>README.md</code>.
- </WelcomeItem>
+ More instructions are available in <code>README.md</code>.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <EcosystemIcon />
- </template>
- <template #heading>Ecosystem</template>
+ <WelcomeItem>
+ <template #icon>
+ <EcosystemIcon />
+ </template>
+ <template #heading>Ecosystem</template>
- Get official tools and libraries for your project:
- <a target="_blank" href="https://next.vuex.vuejs.org/">Vuex</a>,
- <a target="_blank" href="https://next.router.vuejs.org/">Vue Router</a>,
- <a target="_blank" href="https://next.vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
- resources, we suggest paying
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
- a visit.
- </WelcomeItem>
+ Get official tools and libraries for your project:
+ <a target="_blank" href="https://vuex.vuejs.org/">Vuex</a>,
+ <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
+ <a target="_blank" href="https://vue-test-utils.vuejs.org/">Vue Test Utils</a>, and
+ <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need
+ more resources, we suggest paying
+ <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
+ a visit.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <CommunityIcon />
- </template>
- <template #heading>Community</template>
+ <WelcomeItem>
+ <template #icon>
+ <CommunityIcon />
+ </template>
+ <template #heading>Community</template>
- Got stuck? Ask your question on
- <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
- You should also subscribe to
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
- twitter account for latest news in the Vue world.
- </WelcomeItem>
+ Got stuck? Ask your question on
+ <a target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
+ <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
+ You should also subscribe to
+ <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
+ <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
+ twitter account for latest news in the Vue world.
+ </WelcomeItem>
- <WelcomeItem>
- <template #icon>
- <SupportIcon />
- </template>
- <template #heading>Support Vue</template>
+ <WelcomeItem>
+ <template #icon>
+ <SupportIcon />
+ </template>
+ <template #heading>Support Vue</template>
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
- </WelcomeItem>
+ As an independent project, Vue relies on community backing for its sustainability. You can
+ help us by
+ <a target="_blank" href="https://vuejs.org/support-vuejs/">becoming a sponsor</a>.
+ </WelcomeItem>
+ </div>
</template>
describe('HelloWorld', () => {
it('playground', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
})
it('renders properly', () => {
- mount(HelloWorld, { props: { msg: 'Hello Cypress' } })
+ mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
cy.get('h1').should('contain', 'Hello Cypress')
})
})
+++ /dev/null
-import { createApp } from 'vue'
-import App from './App.vue'
-import router from './router'
-
-const app = createApp(App)
-
-app.use(router)
-
-app.mount('#app')
-import { createRouter, createWebHistory } from 'vue-router'
+import Vue from 'vue'
+import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
-const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+Vue.use(VueRouter)
+
+const router = new VueRouter({
+ mode: 'history',
+ base: import.meta.env.BASE_URL,
routes: [
{
path: '/',
},
"devDependencies": {
"@cypress/vite-dev-server": "^2.2.1",
- "@cypress/vue": "^3.0.5",
+ "@cypress/vue": "^2.2.4",
"cypress": "^8.7.0",
"start-server-and-test": "^1.14.0"
}
+++ /dev/null
-{
- "devDependencies": {
- "@vitejs/plugin-vue-jsx": "^1.3.0"
- }
-}
+++ /dev/null
-import { fileURLToPath } from 'url'
-
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import vueJsx from '@vitejs/plugin-vue-jsx'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [vue(), vueJsx()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-})
{
"dependencies": {
- "vue-router": "^4.0.12"
+ "vue-router": "^3.5.3"
}
}
/// <reference types="vite/client" />
declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line
- const component: DefineComponent<{}, {}, any>
- export default component
+ import Vue from 'vue'
+ export default Vue
+}
+
+declare global {
+ namespace JSX {
+ interface Element extends VNode {}
+ interface ElementClass extends Vue {}
+ interface IntrinsicElements {
+ [elem: string]: any
+ }
+ }
}
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
"skipLibCheck": true
},
+ "vueCompilerOptions": {
+ "experimentalCompatMode": 2
+ },
"include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
}
+++ /dev/null
-{
- "dependencies": {
- "vuex": "^4.0.2"
- }
-}
+++ /dev/null
-import { createStore } from 'vuex'
-
-export default createStore({
- state: {},
- mutations: {},
- actions: {},
- modules: {}
-})
-import { createApp } from 'vue'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+
import App from './App.vue'
-createApp(App).mount('#app')
+Vue.use(VueCompositionAPI)
+
+const app = new Vue({
+ render: (h) => h(App)
+})
+
+app.$mount('#app')
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+import { createPinia, PiniaVuePlugin } from 'pinia'
+
import App from './App.vue'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
+Vue.use(PiniaVuePlugin)
-app.use(createPinia())
+const app = new Vue({
+ pinia: createPinia(),
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+import { createPinia, PiniaVuePlugin } from 'pinia'
import App from './App.vue'
import router from './router'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
+Vue.use(PiniaVuePlugin)
-app.use(createPinia())
-app.use(router)
+const app = new Vue({
+ router,
+ pinia: createPinia(),
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
-import { createApp } from 'vue'
+import Vue from 'vue'
+import VueCompositionAPI from '@vue/composition-api'
+
import App from './App.vue'
import router from './router'
-const app = createApp(App)
+Vue.use(VueCompositionAPI)
-app.use(router)
+const app = new Vue({
+ router,
+ render: (h) => h(App)
+})
-app.mount('#app')
+app.$mount('#app')
}) {
let readme = `# ${projectName}
-This template should help get you started developing with Vue 3 in Vite.
+This template should help get you started developing with Vue 2 in Vite.
## Recommended IDE Setup