The definitive list of the best of (consumer facing) open source.
Removed boilerplate
Lucas83429c85127e
diff --git a/apps/web-client/src/App.vue b/apps/web-client/src/App.vueindex 7905b05..194d1dd 100644--- a/apps/web-client/src/App.vue+++ b/apps/web-client/src/App.vue@@ -1,85 +1,17 @@<script setup lang="ts">-import { RouterLink, RouterView } from 'vue-router'-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>- <RouterLink to="/">Home</RouterLink>- <RouterLink to="/about">About</RouterLink>- </nav>- </div>+</header><RouterView /></template><style scoped>-header {- line-height: 1.5;- max-height: 100vh;-}--.logo {- display: block;- margin: 0 auto 2rem;-}--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) {- header {- display: flex;- place-items: center;- padding-right: calc(var(--section-gap) / 2);- }-- .logo {- margin: 0 2rem 0 0;- }-- header .wrapper {- display: flex;- place-items: flex-start;- flex-wrap: wrap;- }-- nav {- text-align: left;- margin-left: -1rem;- font-size: 1rem;- padding: 1rem 0;- margin-top: 1rem;- }-}</style>diff --git a/apps/web-client/src/assets/logo.svg b/apps/web-client/src/assets/logo.svgdeleted file mode 100644index 7565660..0000000--- a/apps/web-client/src/assets/logo.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69"><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>diff --git a/apps/web-client/src/assets/main.css b/apps/web-client/src/assets/main.cssindex bbadd1d..132b49a 100644--- a/apps/web-client/src/assets/main.css+++ b/apps/web-client/src/assets/main.css@@ -16,6 +16,18 @@ a,padding: 3px;}+html {+ background-color: black;+}++.line-x {+ @apply min-h-px bg-gray2;+}++.line-y {+ @apply min-w-px bg-gray2;+}+@media (hover: hover) {a:hover {background-color: hsla(160, 100%, 37%, 0.2);diff --git a/apps/web-client/src/components/HelloWorld.vue b/apps/web-client/src/components/HelloWorld.vuedeleted file mode 100644index d174cf8..0000000--- a/apps/web-client/src/components/HelloWorld.vue+++ /dev/null@@ -1,41 +0,0 @@-<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 href="https://vite.dev/" target="_blank" rel="noopener">Vite</a> +- <a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>. What's next?- </h3>- </div>-</template>--<style scoped>-h1 {- font-weight: 500;- font-size: 2.6rem;- position: relative;- top: -10px;-}--h3 {- font-size: 1.2rem;-}--.greetings h1,-.greetings h3 {- text-align: center;-}--@media (min-width: 1024px) {- .greetings h1,- .greetings h3 {- text-align: left;- }-}-</style>diff --git a/apps/web-client/src/components/Main.vue b/apps/web-client/src/components/Main.vuenew file mode 100644index 0000000..9d25ff3--- /dev/null+++ b/apps/web-client/src/components/Main.vue@@ -0,0 +1,9 @@+<template>+ <div class="item">++ </div>+</template>++<style scoped>++</style>diff --git a/apps/web-client/src/components/TheWelcome.vue b/apps/web-client/src/components/TheWelcome.vuedeleted file mode 100644index 8b731d9..0000000--- a/apps/web-client/src/components/TheWelcome.vue+++ /dev/null@@ -1,95 +0,0 @@-<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'--const openReadmeInEditor = () => fetch('/__open-in-editor?file=README.md')-</script>--<template>- <WelcomeItem>- <template #icon>- <DocumentationIcon />- </template>- <template #heading>Documentation</template>-- Vue’s- <a href="https://vuejs.org/" target="_blank" rel="noopener">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://vite.dev/guide/features.html" target="_blank" rel="noopener">Vite</a>. The- recommended IDE setup is- <a href="https://code.visualstudio.com/" target="_blank" rel="noopener">VSCode</a>- +- <a href="https://github.com/vuejs/language-tools" target="_blank" rel="noopener"- >Vue - Official</a- >. If you need to test your components and web pages, check out- <a href="https://vitest.dev/" target="_blank" rel="noopener">Vitest</a>- and- <a href="https://www.cypress.io/" target="_blank" rel="noopener">Cypress</a>- /- <a href="https://playwright.dev/" target="_blank" rel="noopener">Playwright</a>.-- <br />-- More instructions are available in- <a href="javascript:void(0)" @click="openReadmeInEditor"><code>README.md</code></a- >.- </WelcomeItem>-- <WelcomeItem>- <template #icon>- <EcosystemIcon />- </template>- <template #heading>Ecosystem</template>-- Get official tools and libraries for your project:- <a href="https://pinia.vuejs.org/" target="_blank" rel="noopener">Pinia</a>,- <a href="https://router.vuejs.org/" target="_blank" rel="noopener">Vue Router</a>,- <a href="https://test-utils.vuejs.org/" target="_blank" rel="noopener">Vue Test Utils</a>, and- <a href="https://github.com/vuejs/devtools" target="_blank" rel="noopener">Vue Dev Tools</a>. If- you need more resources, we suggest paying- <a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">Awesome Vue</a>- a visit.- </WelcomeItem>-- <WelcomeItem>- <template #icon>- <CommunityIcon />- </template>- <template #heading>Community</template>-- Got stuck? Ask your question on- <a href="https://chat.vuejs.org" target="_blank" rel="noopener">Vue Land</a>- (our official Discord server), or- <a href="https://stackoverflow.com/questions/tagged/vue.js" target="_blank" rel="noopener"- >StackOverflow</a- >. You should also follow the official- <a href="https://bsky.app/profile/vuejs.org" target="_blank" rel="noopener">@vuejs.org</a>- Bluesky account or the- <a href="https://x.com/vuejs" target="_blank" rel="noopener">@vuejs</a>- X 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 href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>.- </WelcomeItem>-</template>diff --git a/apps/web-client/src/components/WelcomeItem.vue b/apps/web-client/src/components/WelcomeItem.vuedeleted file mode 100644index 6d7086a..0000000--- a/apps/web-client/src/components/WelcomeItem.vue+++ /dev/null@@ -1,87 +0,0 @@-<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;- position: relative;-}--.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>diff --git a/apps/web-client/src/components/__tests__/HelloWorld.spec.ts b/apps/web-client/src/components/__tests__/HelloWorld.spec.tsdeleted file mode 100644index 2533202..0000000--- a/apps/web-client/src/components/__tests__/HelloWorld.spec.ts+++ /dev/null@@ -1,11 +0,0 @@-import { describe, it, expect } from 'vitest'--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')- })-})diff --git a/apps/web-client/src/router/index.ts b/apps/web-client/src/router/index.tsindex 3e49915..e69de29 100644--- a/apps/web-client/src/router/index.ts+++ b/apps/web-client/src/router/index.ts@@ -1,23 +0,0 @@-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 routerdiff --git a/apps/web-client/src/stores/counter.ts b/apps/web-client/src/stores/counter.tsdeleted file mode 100644index b6757ba..0000000--- a/apps/web-client/src/stores/counter.ts+++ /dev/null@@ -1,12 +0,0 @@-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++- }-- return { count, doubleCount, increment }-})diff --git a/apps/web-client/src/views/AboutView.vue b/apps/web-client/src/views/AboutView.vuedeleted file mode 100644index 756ad2a..0000000--- a/apps/web-client/src/views/AboutView.vue+++ /dev/null@@ -1,15 +0,0 @@-<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>diff --git a/apps/web-client/src/views/HomeView.vue b/apps/web-client/src/views/HomeView.vuedeleted file mode 100644index d5c0217..0000000--- a/apps/web-client/src/views/HomeView.vue+++ /dev/null@@ -1,9 +0,0 @@-<script setup lang="ts">-import TheWelcome from '../components/TheWelcome.vue'-</script>--<template>- <main>- <TheWelcome />- </main>-</template>