-
-
-
-
diff --git a/frontend/src/components/__tests__/HelloWorld.spec.ts b/frontend/src/components/__tests__/HelloWorld.spec.ts
index 25332020..bc865f03 100644
--- a/frontend/src/components/__tests__/HelloWorld.spec.ts
+++ b/frontend/src/components/__tests__/HelloWorld.spec.ts
@@ -4,8 +4,8 @@ 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')
- })
+ it('renders properly', () => {
+ const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } })
+ expect(wrapper.text()).toContain('Hello Vitest')
+ })
})
diff --git a/frontend/src/components/icons/IconCommunity.vue b/frontend/src/components/icons/IconCommunity.vue
index 2dc8b055..36348e2e 100644
--- a/frontend/src/components/icons/IconCommunity.vue
+++ b/frontend/src/components/icons/IconCommunity.vue
@@ -1,7 +1,7 @@
-
-
-
+
+
+
diff --git a/frontend/src/components/icons/IconDocumentation.vue b/frontend/src/components/icons/IconDocumentation.vue
index 6d4791cf..0c0fa761 100644
--- a/frontend/src/components/icons/IconDocumentation.vue
+++ b/frontend/src/components/icons/IconDocumentation.vue
@@ -1,7 +1,7 @@
-
-
-
+
+
+
diff --git a/frontend/src/components/icons/IconEcosystem.vue b/frontend/src/components/icons/IconEcosystem.vue
index c3a4f078..0702bbbe 100644
--- a/frontend/src/components/icons/IconEcosystem.vue
+++ b/frontend/src/components/icons/IconEcosystem.vue
@@ -1,7 +1,7 @@
-
-
-
+
+
+
diff --git a/frontend/src/components/icons/IconSupport.vue b/frontend/src/components/icons/IconSupport.vue
index 7452834d..908b94c4 100644
--- a/frontend/src/components/icons/IconSupport.vue
+++ b/frontend/src/components/icons/IconSupport.vue
@@ -1,7 +1,7 @@
-
-
-
+
+
+
diff --git a/frontend/src/components/icons/IconTooling.vue b/frontend/src/components/icons/IconTooling.vue
index 660598d7..9e820684 100644
--- a/frontend/src/components/icons/IconTooling.vue
+++ b/frontend/src/components/icons/IconTooling.vue
@@ -1,19 +1,19 @@
-
-
-
+
+
+
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index a49ae507..655843cb 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -2,22 +2,22 @@ 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')
- }
- ]
+ 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
diff --git a/frontend/src/stores/counter.ts b/frontend/src/stores/counter.ts
index b6757ba5..5cdda009 100644
--- a/frontend/src/stores/counter.ts
+++ b/frontend/src/stores/counter.ts
@@ -2,11 +2,11 @@ import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
export const useCounterStore = defineStore('counter', () => {
- const count = ref(0)
- const doubleCount = computed(() => count.value * 2)
- function increment() {
- count.value++
- }
+ const count = ref(0)
+ const doubleCount = computed(() => count.value * 2)
+ function increment() {
+ count.value++
+ }
- return { count, doubleCount, increment }
+ return { count, doubleCount, increment }
})
diff --git a/frontend/src/views/AboutView.vue b/frontend/src/views/AboutView.vue
index 756ad2a1..f470365d 100644
--- a/frontend/src/views/AboutView.vue
+++ b/frontend/src/views/AboutView.vue
@@ -1,15 +1,15 @@
-
-
This is an about page
-
+
+
This is an about page
+
diff --git a/frontend/src/views/HomeView.vue b/frontend/src/views/HomeView.vue
index d5c0217e..c3b238e5 100644
--- a/frontend/src/views/HomeView.vue
+++ b/frontend/src/views/HomeView.vue
@@ -3,7 +3,7 @@ import TheWelcome from '../components/TheWelcome.vue'
-
-
-
+
+
+
From 93c52d66c620c49a729db002c61320b166967246 Mon Sep 17 00:00:00 2001
From: reyniersbram <55666730+reyniersbram@users.noreply.github.com>
Date: Sat, 24 Feb 2024 12:48:11 +0100
Subject: [PATCH 3/7] add editorconfig
---
frontend/.editorconfig | 10 ++++++++++
1 file changed, 10 insertions(+)
create mode 100644 frontend/.editorconfig
diff --git a/frontend/.editorconfig b/frontend/.editorconfig
new file mode 100644
index 00000000..88af73ee
--- /dev/null
+++ b/frontend/.editorconfig
@@ -0,0 +1,10 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+indent_style = space
+indent_size = 4
+tab_width = 4
+insert_final_newline = true
+trim_trailing_whitespace = true
From d37ddf9510e9fa3921fa7d3332ff2b3282ab90c4 Mon Sep 17 00:00:00 2001
From: reyniersbram <55666730+reyniersbram@users.noreply.github.com>
Date: Sat, 24 Feb 2024 12:58:08 +0100
Subject: [PATCH 4/7] update .prettierrc, add backend .editorconfig
---
backend/.editorconfig | 10 ++++++++++
frontend/.prettierrc.json | 14 ++++++++------
2 files changed, 18 insertions(+), 6 deletions(-)
create mode 100644 backend/.editorconfig
diff --git a/backend/.editorconfig b/backend/.editorconfig
new file mode 100644
index 00000000..88af73ee
--- /dev/null
+++ b/backend/.editorconfig
@@ -0,0 +1,10 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+indent_style = space
+indent_size = 4
+tab_width = 4
+insert_final_newline = true
+trim_trailing_whitespace = true
diff --git a/frontend/.prettierrc.json b/frontend/.prettierrc.json
index e40e6335..38ea8d96 100644
--- a/frontend/.prettierrc.json
+++ b/frontend/.prettierrc.json
@@ -1,8 +1,10 @@
{
- "$schema": "https://json.schemastore.org/prettierrc",
- "semi": false,
- "tabWidth": 4,
- "singleQuote": true,
- "printWidth": 100,
- "trailingComma": "none"
+ "$schema": "https://json.schemastore.org/prettierrc",
+ "semi": false,
+ "tabWidth": 4,
+ "singleQuote": true,
+ "printWidth": 100,
+ "trailingComma": "es5",
+ "bracketSpacing": true,
+ "vueIndentScriptAndStyle": false
}
From 37b62e480b43c6b6182031de348fd680e5ad0108 Mon Sep 17 00:00:00 2001
From: reyniersbram <55666730+reyniersbram@users.noreply.github.com>
Date: Sat, 24 Feb 2024 13:01:21 +0100
Subject: [PATCH 5/7] update pretterrc
---
frontend/.prettierrc.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontend/.prettierrc.json b/frontend/.prettierrc.json
index 38ea8d96..cd12ad7d 100644
--- a/frontend/.prettierrc.json
+++ b/frontend/.prettierrc.json
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
- "semi": false,
+ "semi": true,
"tabWidth": 4,
"singleQuote": true,
"printWidth": 100,
From 5625538863440a3f4b52ea9b77b37f0d58612c67 Mon Sep 17 00:00:00 2001
From: reyniersbram <55666730+reyniersbram@users.noreply.github.com>
Date: Sat, 24 Feb 2024 13:01:34 +0100
Subject: [PATCH 6/7] format with new pretierrc
---
frontend/src/App.vue | 4 ++--
frontend/src/components/HelloWorld.vue | 4 ++--
frontend/src/components/TheWelcome.vue | 12 ++++++------
.../components/__tests__/HelloWorld.spec.ts | 14 +++++++-------
frontend/src/main.ts | 18 +++++++++---------
frontend/src/router/index.ts | 16 ++++++++--------
frontend/src/stores/counter.ts | 14 +++++++-------
frontend/src/views/HomeView.vue | 2 +-
8 files changed, 42 insertions(+), 42 deletions(-)
diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index 33f1bfd6..72d4f530 100644
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -1,6 +1,6 @@
diff --git a/frontend/src/components/HelloWorld.vue b/frontend/src/components/HelloWorld.vue
index fefd9253..744f65fa 100644
--- a/frontend/src/components/HelloWorld.vue
+++ b/frontend/src/components/HelloWorld.vue
@@ -1,7 +1,7 @@
diff --git a/frontend/src/components/TheWelcome.vue b/frontend/src/components/TheWelcome.vue
index 84c3146b..7002a7c8 100644
--- a/frontend/src/components/TheWelcome.vue
+++ b/frontend/src/components/TheWelcome.vue
@@ -1,10 +1,10 @@
diff --git a/frontend/src/components/__tests__/HelloWorld.spec.ts b/frontend/src/components/__tests__/HelloWorld.spec.ts
index bc865f03..a4490f08 100644
--- a/frontend/src/components/__tests__/HelloWorld.spec.ts
+++ b/frontend/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')
- })
-})
+ const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } });
+ expect(wrapper.text()).toContain('Hello Vitest');
+ });
+});
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index 5dcad83c..841d69f6 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -1,14 +1,14 @@
-import './assets/main.css'
+import './assets/main.css';
-import { createApp } from 'vue'
-import { createPinia } from 'pinia'
+import { createApp } from 'vue';
+import { createPinia } from 'pinia';
-import App from './App.vue'
-import router from './router'
+import App from './App.vue';
+import router from './router';
-const app = createApp(App)
+const app = createApp(App);
-app.use(createPinia())
-app.use(router)
+app.use(createPinia());
+app.use(router);
-app.mount('#app')
+app.mount('#app');
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 655843cb..3e79733a 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -1,5 +1,5 @@
-import { createRouter, createWebHistory } from 'vue-router'
-import HomeView from '../views/HomeView.vue'
+import { createRouter, createWebHistory } from 'vue-router';
+import HomeView from '../views/HomeView.vue';
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
@@ -7,7 +7,7 @@ const router = createRouter({
{
path: '/',
name: 'home',
- component: HomeView
+ component: HomeView,
},
{
path: '/about',
@@ -15,9 +15,9 @@ const router = createRouter({
// route level code-splitting
// this generates a separate chunk (About.[hash].js) for this route
// which is lazy-loaded when the route is visited.
- component: () => import('../views/AboutView.vue')
- }
- ]
-})
+ component: () => import('../views/AboutView.vue'),
+ },
+ ],
+});
-export default router
+export default router;
diff --git a/frontend/src/stores/counter.ts b/frontend/src/stores/counter.ts
index 5cdda009..a4c345e0 100644
--- a/frontend/src/stores/counter.ts
+++ b/frontend/src/stores/counter.ts
@@ -1,12 +1,12 @@
-import { ref, computed } from 'vue'
-import { defineStore } from 'pinia'
+import { ref, computed } from 'vue';
+import { defineStore } from 'pinia';
export const useCounterStore = defineStore('counter', () => {
- const count = ref(0)
- const doubleCount = computed(() => count.value * 2)
+ const count = ref(0);
+ const doubleCount = computed(() => count.value * 2);
function increment() {
- count.value++
+ count.value++;
}
- return { count, doubleCount, increment }
-})
+ return { count, doubleCount, increment };
+});
diff --git a/frontend/src/views/HomeView.vue b/frontend/src/views/HomeView.vue
index c3b238e5..2e7716f1 100644
--- a/frontend/src/views/HomeView.vue
+++ b/frontend/src/views/HomeView.vue
@@ -1,5 +1,5 @@
From 81cf14d35f7b7f21c6dce337225b16ac5f61139c Mon Sep 17 00:00:00 2001
From: reyniersbram <55666730+reyniersbram@users.noreply.github.com>
Date: Sat, 24 Feb 2024 13:08:40 +0100
Subject: [PATCH 7/7] put
-
@@ -20,6 +15,11 @@ import HelloWorld from './components/HelloWorld.vue';
+
+