-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial frontend via yarn create vuetify
- Loading branch information
Showing
27 changed files
with
3,146 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
> 1% | ||
last 2 versions | ||
not dead | ||
not ie 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[*.{js,jsx,ts,tsx,vue}] | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* .eslint.js | ||
* | ||
* ESLint configuration file. | ||
*/ | ||
|
||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true, | ||
}, | ||
extends: [ | ||
'plugin:vue/vue3-essential', | ||
'eslint:recommended', | ||
'@vue/eslint-config-typescript', | ||
], | ||
rules: { | ||
'vue/multi-word-component-names': 'off', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Vuetify (Default) | ||
|
||
This is the official scaffolding tool for Vuetify, designed to give you a head start in building your new Vuetify application. It sets up a base template with all the necessary configurations and standard directory structure, enabling you to begin development without the hassle of setting up the project from scratch. | ||
|
||
## ❗️ Important Links | ||
|
||
- 📄 [Docs](https://vuetifyjs.com/) | ||
- 🚨 [Issues](https://issues.vuetifyjs.com/) | ||
- 🏬 [Store](https://store.vuetifyjs.com/) | ||
- 🎮 [Playground](https://play.vuetifyjs.com/) | ||
- 💬 [Discord](https://community.vuetifyjs.com) | ||
|
||
## 💿 Install | ||
|
||
Set up your project using your preferred package manager. Use the corresponding command to install the dependencies: | ||
|
||
| Package Manager | Command | | ||
|---------------------------------------------------------------|----------------| | ||
| [yarn](https://yarnpkg.com/getting-started) | `yarn install` | | ||
| [npm](https://docs.npmjs.com/cli/v7/commands/npm-install) | `npm install` | | ||
| [pnpm](https://pnpm.io/installation) | `pnpm install` | | ||
| [bun](https://bun.sh/#getting-started) | `bun install` | | ||
|
||
After completing the installation, your environment is ready for Vuetify development. | ||
|
||
## ✨ Features | ||
|
||
- 🖼️ **Optimized Front-End Stack**: Leverage the latest Vue 3 and Vuetify 3 for a modern, reactive UI development experience. [Vue 3](https://v3.vuejs.org/) | [Vuetify 3](https://vuetifyjs.com/en/) | ||
- 🗃️ **State Management**: Integrated with [Pinia](https://pinia.vuejs.org/), the intuitive, modular state management solution for Vue. | ||
- 🚦 **Routing and Layouts**: Utilizes Vue Router for SPA navigation and vite-plugin-vue-layouts for organizing Vue file layouts. [Vue Router](https://router.vuejs.org/) | [vite-plugin-vue-layouts](https://github.com/JohnCampionJr/vite-plugin-vue-layouts) | ||
- 💻 **Enhanced Development Experience**: Benefit from TypeScript's static type checking and the ESLint plugin suite for Vue, ensuring code quality and consistency. [TypeScript](https://www.typescriptlang.org/) | [ESLint Plugin Vue](https://eslint.vuejs.org/) | ||
- ⚡ **Next-Gen Tooling**: Powered by Vite, experience fast cold starts and instant HMR (Hot Module Replacement). [Vite](https://vitejs.dev/) | ||
- 🧩 **Automated Component Importing**: Streamline your workflow with unplugin-vue-components, automatically importing components as you use them. [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components) | ||
- 🛠️ **Strongly-Typed Vue**: Use vue-tsc for type-checking your Vue components, and enjoy a robust development experience. [vue-tsc](https://github.com/johnsoncodehk/volar/tree/master/packages/vue-tsc) | ||
|
||
These features are curated to provide a seamless development experience from setup to deployment, ensuring that your Vuetify application is both powerful and maintainable. | ||
|
||
## 💡 Usage | ||
|
||
This section covers how to start the development server and build your project for production. | ||
|
||
### Starting the Development Server | ||
|
||
To start the development server with hot-reload, run the following command. The server will be accessible at [http://localhost:3000](http://localhost:3000): | ||
|
||
```bash | ||
yarn dev | ||
``` | ||
|
||
(Repeat for npm, pnpm, and bun with respective commands.) | ||
|
||
> Add NODE_OPTIONS='--no-warnings' to suppress the JSON import warnings that happen as part of the Vuetify import mapping. If you are on Node [v21.3.0](https://nodejs.org/en/blog/release/v21.3.0) or higher, you can change this to NODE_OPTIONS='--disable-warning=5401'. If you don't mind the warning, you can remove this from your package.json dev script. | ||
### Building for Production | ||
|
||
To build your project for production, use: | ||
|
||
```bash | ||
yarn build | ||
``` | ||
|
||
(Repeat for npm, pnpm, and bun with respective commands.) | ||
|
||
Once the build process is completed, your application will be ready for deployment in a production environment. | ||
|
||
## 💪 Support Vuetify Development | ||
|
||
This project is built with [Vuetify](https://vuetifyjs.com/en/), a UI Library with a comprehensive collection of Vue components. Vuetify is an MIT licensed Open Source project that has been made possible due to the generous contributions by our [sponsors and backers](https://vuetifyjs.com/introduction/sponsors-and-backers/). If you are interested in supporting this project, please consider: | ||
|
||
- [Requesting Enterprise Support](https://support.vuetifyjs.com/) | ||
- [Sponsoring John on Github](https://github.com/users/johnleider/sponsorship) | ||
- [Sponsoring Kael on Github](https://github.com/users/kaelwd/sponsorship) | ||
- [Supporting the team on Open Collective](https://opencollective.com/vuetify) | ||
- [Becoming a sponsor on Patreon](https://www.patreon.com/vuetify) | ||
- [Becoming a subscriber on Tidelift](https://tidelift.com/subscription/npm/vuetify) | ||
- [Making a one-time donation with Paypal](https://paypal.me/vuetify) | ||
|
||
## 📑 License | ||
[MIT](http://opensource.org/licenses/MIT) | ||
|
||
Copyright (c) 2016-present Vuetify, LLC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!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>Welcome to Vuetify 3</title> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "frontend", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vue-tsc --noEmit && vite build", | ||
"preview": "vite preview", | ||
"lint": "eslint . --fix --ignore-path .gitignore" | ||
}, | ||
"dependencies": { | ||
"@mdi/font": "7.0.96", | ||
"core-js": "^3.34.0", | ||
"roboto-fontface": "*", | ||
"vue": "^3.3.0", | ||
"vuetify": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/types": "^7.23.0", | ||
"@types/node": "^20.10.0", | ||
"@vitejs/plugin-vue": "^4.5.0", | ||
"@vue/eslint-config-typescript": "^12.0.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-standard": "^17.1.0", | ||
"eslint-plugin-import": "^2.29.0", | ||
"eslint-plugin-n": "^16.4.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-vue": "^9.19.0", | ||
"sass": "^1.69.0", | ||
"typescript": "^5.3.0", | ||
"unplugin-fonts": "^1.1.0", | ||
"unplugin-vue-components": "^0.26.0", | ||
"unplugin-vue-router": "^0.7.0", | ||
"vite": "^5.0.0", | ||
"vite-plugin-vuetify": "^2.0.0", | ||
"vue-router": "^4.2.0", | ||
"vue-tsc": "^1.8.0" | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<template> | ||
<v-app> | ||
<v-main> | ||
<router-view /> | ||
</v-main> | ||
</v-app> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
// | ||
</script> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<template> | ||
<v-container class="fill-height"> | ||
<v-responsive class="align-center text-center fill-height"> | ||
<v-img height="300" src="@/assets/logo.svg" /> | ||
|
||
<div class="text-body-2 font-weight-light mb-n1">Welcome to</div> | ||
|
||
<h1 class="text-h2 font-weight-bold">Vuetify</h1> | ||
|
||
<div class="py-14" /> | ||
|
||
<v-row class="d-flex align-center justify-center"> | ||
<v-col cols="auto"> | ||
<v-btn | ||
href="https://vuetifyjs.com/components/all/" | ||
min-width="164" | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
variant="text" | ||
> | ||
<v-icon | ||
icon="mdi-view-dashboard" | ||
size="large" | ||
start | ||
/> | ||
|
||
Components | ||
</v-btn> | ||
</v-col> | ||
|
||
<v-col cols="auto"> | ||
<v-btn | ||
color="primary" | ||
href="https://vuetifyjs.com/introduction/why-vuetify/#feature-guides" | ||
min-width="228" | ||
rel="noopener noreferrer" | ||
size="x-large" | ||
target="_blank" | ||
variant="flat" | ||
> | ||
<v-icon | ||
icon="mdi-speedometer" | ||
size="large" | ||
start | ||
/> | ||
|
||
Get Started | ||
</v-btn> | ||
</v-col> | ||
|
||
<v-col cols="auto"> | ||
<v-btn | ||
href="https://community.vuetifyjs.com/" | ||
min-width="164" | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
variant="text" | ||
> | ||
<v-icon | ||
icon="mdi-account-group" | ||
size="large" | ||
start | ||
/> | ||
|
||
Community | ||
</v-btn> | ||
</v-col> | ||
</v-row> | ||
</v-responsive> | ||
</v-container> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
// | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Components | ||
|
||
Vue template files in this folder are automatically imported. | ||
|
||
## 🚀 Usage | ||
|
||
Importing is handled by [unplugin-vue-components](https://github.com/unplugin/unplugin-vue-components). This plugin automatically imports `.vue` files created in the `src/components` directory, and registers them as global components. This means that you can use any component in your application without having to manually import it. | ||
|
||
The following example assumes a component located at `src/components/MyComponent.vue`: | ||
|
||
```vue | ||
<template> | ||
<div> | ||
<MyComponent /> | ||
</div> | ||
</template> | ||
<script lang="ts" setup> | ||
// | ||
</script> | ||
``` | ||
|
||
When your template is rendered, the component's import will automatically be inlined, which renders to this: | ||
|
||
```vue | ||
<template> | ||
<div> | ||
<MyComponent /> | ||
</div> | ||
</template> | ||
<script lang="ts" setup> | ||
import MyComponent from '@/components/MyComponent.vue' | ||
</script> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* main.ts | ||
* | ||
* Bootstraps Vuetify and other plugins then mounts the App` | ||
*/ | ||
|
||
// Plugins | ||
import { registerPlugins } from '@/plugins' | ||
|
||
// Components | ||
import App from './App.vue' | ||
|
||
// Composables | ||
import { createApp } from 'vue' | ||
|
||
const app = createApp(App) | ||
|
||
registerPlugins(app) | ||
|
||
app.mount('#app') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Pages | ||
|
||
Vue components created in this folder will automatically be converted to navigatable routes. | ||
|
||
Full documentation for this feature can be found in the Official [unplugin-vue-router](https://github.com/posva/unplugin-vue-router) repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<template> | ||
<HelloWorld /> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
// | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Plugins | ||
|
||
Plugins are a way to extend the functionality of your Vue application. Use this folder for registering plugins that you want to use globally. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* plugins/index.ts | ||
* | ||
* Automatically included in `./src/main.ts` | ||
*/ | ||
|
||
// Plugins | ||
import vuetify from './vuetify' | ||
import router from '../router' | ||
|
||
// Types | ||
import type { App } from 'vue' | ||
|
||
export function registerPlugins (app: App) { | ||
app | ||
.use(vuetify) | ||
.use(router) | ||
} |
Oops, something went wrong.