From 70424bc3c4f29d8e40ee254f5d5ae7912aed6692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Tue, 14 Nov 2023 09:49:45 +0100 Subject: [PATCH] style: applied prettier --- src/assets/base.css | 8 +- src/assets/main.css | 2 +- src/components/HelloWorld.vue | 7 +- src/components/TheWelcome.vue | 87 ++++++++++++++------- src/components/WelcomeItem.vue | 4 +- src/components/__tests__/HelloWorld.spec.ts | 18 ++--- src/components/icons/IconCommunity.vue | 7 +- src/components/icons/IconDocumentation.vue | 7 +- src/components/icons/IconEcosystem.vue | 7 +- src/components/icons/IconSupport.vue | 7 +- src/index.html | 7 +- src/main.ts | 18 ++--- src/router/index.ts | 24 +++--- src/stores/counter.ts | 16 ++-- src/subscription.html | 85 ++++++++++---------- src/views/HomeView.vue | 2 +- 16 files changed, 182 insertions(+), 124 deletions(-) diff --git a/src/assets/base.css b/src/assets/base.css index 8816868..4d16fc2 100644 --- a/src/assets/base.css +++ b/src/assets/base.css @@ -70,14 +70,14 @@ body { Inter, -apple-system, BlinkMacSystemFont, - 'Segoe UI', + "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - 'Fira Sans', - 'Droid Sans', - 'Helvetica Neue', + "Fira Sans", + "Droid Sans", + "Helvetica Neue", sans-serif; font-size: 15px; text-rendering: optimizeLegibility; diff --git a/src/assets/main.css b/src/assets/main.css index e8667cd..c133f91 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -1,4 +1,4 @@ -@import './base.css'; +@import "./base.css"; #app { max-width: 1280px; diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue index 38d821e..d28b7ee 100644 --- a/src/components/HelloWorld.vue +++ b/src/components/HelloWorld.vue @@ -1,7 +1,7 @@ diff --git a/src/components/TheWelcome.vue b/src/components/TheWelcome.vue index 49d8f73..82aba17 100644 --- a/src/components/TheWelcome.vue +++ b/src/components/TheWelcome.vue @@ -1,10 +1,10 @@ - As an independent project, Vue relies on community backing for its sustainability. You can help - us by - becoming a sponsor. + As an independent project, Vue relies on community backing for its + sustainability. You can help us by + becoming a sponsor. diff --git a/src/components/WelcomeItem.vue b/src/components/WelcomeItem.vue index 6d7086a..d40a319 100644 --- a/src/components/WelcomeItem.vue +++ b/src/components/WelcomeItem.vue @@ -59,7 +59,7 @@ h3 { } .item:before { - content: ' '; + content: " "; border-left: 1px solid var(--color-border); position: absolute; left: 0; @@ -68,7 +68,7 @@ h3 { } .item:after { - content: ' '; + content: " "; border-left: 1px solid var(--color-border); position: absolute; left: 0; diff --git a/src/components/__tests__/HelloWorld.spec.ts b/src/components/__tests__/HelloWorld.spec.ts index 2533202..da11e2e 100644 --- a/src/components/__tests__/HelloWorld.spec.ts +++ b/src/components/__tests__/HelloWorld.spec.ts @@ -1,11 +1,11 @@ -import { describe, it, expect } from 'vitest' +import { describe, it, expect } from "vitest"; -import { mount } from '@vue/test-utils' -import HelloWorld from '../HelloWorld.vue' +import { mount } from "@vue/test-utils"; +import HelloWorld from "../HelloWorld.vue"; -describe('HelloWorld', () => { - it('renders properly', () => { - const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } }) - expect(wrapper.text()).toContain('Hello Vitest') - }) -}) +describe("HelloWorld", () => { + it("renders properly", () => { + const wrapper = mount(HelloWorld, { props: { msg: "Hello Vitest" } }); + expect(wrapper.text()).toContain("Hello Vitest"); + }); +}); diff --git a/src/components/icons/IconCommunity.vue b/src/components/icons/IconCommunity.vue index 2dc8b05..ea8ddef 100644 --- a/src/components/icons/IconCommunity.vue +++ b/src/components/icons/IconCommunity.vue @@ -1,5 +1,10 @@