Adjust formatting accordingly with Prettier config

This commit is contained in:
Maciej Pędzich 2023-05-23 10:05:53 +02:00
parent deb3d07612
commit f86fcb61e5
11 changed files with 50 additions and 61 deletions

View File

@ -7,5 +7,5 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import HelloWorld from '@/components/HelloWorld.vue' import HelloWorld from '@/components/HelloWorld.vue';
</script> </script>

View File

@ -18,11 +18,7 @@
target="_blank" target="_blank"
variant="text" variant="text"
> >
<v-icon <v-icon icon="mdi-view-dashboard" size="large" start />
icon="mdi-view-dashboard"
size="large"
start
/>
Components Components
</v-btn> </v-btn>
@ -38,11 +34,7 @@
target="_blank" target="_blank"
variant="flat" variant="flat"
> >
<v-icon <v-icon icon="mdi-speedometer" size="large" start />
icon="mdi-speedometer"
size="large"
start
/>
Get Started Get Started
</v-btn> </v-btn>
@ -56,11 +48,7 @@
target="_blank" target="_blank"
variant="text" variant="text"
> >
<v-icon <v-icon icon="mdi-account-group" size="large" start />
icon="mdi-account-group"
size="large"
start
/>
Community Community
</v-btn> </v-btn>
@ -71,5 +59,5 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
// //
</script> </script>

View File

@ -5,5 +5,5 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import DefaultView from './View.vue' import DefaultView from './View.vue';
</script> </script>

View File

@ -5,5 +5,5 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
// //
</script> </script>

View File

@ -5,16 +5,16 @@
*/ */
// Components // Components
import App from './App.vue' import App from './App.vue';
// Composables // Composables
import { createApp } from 'vue' import { createApp } from 'vue';
// Plugins // Plugins
import { registerPlugins } from '@/plugins' import { registerPlugins } from '@/plugins';
const app = createApp(App) const app = createApp(App);
registerPlugins(app) registerPlugins(app);
app.mount('#app') app.mount('#app');

View File

@ -5,16 +5,14 @@
*/ */
// Plugins // Plugins
import { loadFonts } from './webfontloader' import { loadFonts } from './webfontloader';
import vuetify from './vuetify' import vuetify from './vuetify';
import router from '../router' import router from '../router';
// Types // Types
import type { App } from 'vue' import type { App } from 'vue';
export function registerPlugins (app: App) { export function registerPlugins(app: App) {
loadFonts() loadFonts();
app app.use(vuetify).use(router);
.use(vuetify)
.use(router)
} }

View File

@ -5,11 +5,11 @@
*/ */
// Styles // Styles
import '@mdi/font/css/materialdesignicons.css' import '@mdi/font/css/materialdesignicons.css';
import 'vuetify/styles' import 'vuetify/styles';
// Composables // Composables
import { createVuetify } from 'vuetify' import { createVuetify } from 'vuetify';
// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides // https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
export default createVuetify({ export default createVuetify({
@ -18,9 +18,9 @@ export default createVuetify({
light: { light: {
colors: { colors: {
primary: '#1867C0', primary: '#1867C0',
secondary: '#5CBBF6', secondary: '#5CBBF6'
}, }
}, }
}, }
}, }
}) });

View File

@ -4,12 +4,14 @@
* webfontloader documentation: https://github.com/typekit/webfontloader * webfontloader documentation: https://github.com/typekit/webfontloader
*/ */
export async function loadFonts () { export async function loadFonts() {
const webFontLoader = await import(/* webpackChunkName: "webfontloader" */'webfontloader') const webFontLoader = await import(
/* webpackChunkName: "webfontloader" */ 'webfontloader'
);
webFontLoader.load({ webFontLoader.load({
google: { google: {
families: ['Roboto:100,300,400,500,700,900&display=swap'], families: ['Roboto:100,300,400,500,700,900&display=swap']
}, }
}) });
} }

View File

@ -1,5 +1,5 @@
// Composables // Composables
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHistory } from 'vue-router';
const routes = [ const routes = [
{ {
@ -12,15 +12,16 @@ const routes = [
// route level code-splitting // route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route // this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited. // which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "home" */ '@/views/Home.vue'), component: () =>
}, import(/* webpackChunkName: "home" */ '@/views/Home.vue')
], }
}, ]
] }
];
const router = createRouter({ const router = createRouter({
history: createWebHistory(process.env.BASE_URL), history: createWebHistory(process.env.BASE_URL),
routes, routes
}) });
export default router export default router;

View File

@ -3,5 +3,5 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import HelloWorld from '@/components/HelloWorld.vue' import HelloWorld from '@/components/HelloWorld.vue';
</script> </script>

6
src/vite-env.d.ts vendored
View File

@ -1,7 +1,7 @@
/// <reference types="vite/client" /> /// <reference types="vite/client" />
declare module '*.vue' { declare module '*.vue' {
import type { DefineComponent } from 'vue' import type { DefineComponent } from 'vue';
const component: DefineComponent<{}, {}, any> const component: DefineComponent<{}, {}, any>;
export default component export default component;
} }