Skip to content

Commit

Permalink
put <script>s after <template>s
Browse files Browse the repository at this point in the history
  • Loading branch information
reyniersbram committed Feb 24, 2024
1 parent 5625538 commit 81cf14d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
10 changes: 5 additions & 5 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
<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" />
Expand All @@ -20,6 +15,11 @@ import HelloWorld from './components/HelloWorld.vue';
<RouterView />
</template>

<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router';
import HelloWorld from './components/HelloWorld.vue';
</script>

<style scoped>
header {
line-height: 1.5;
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
<script setup lang="ts">
defineProps<{
msg: string;
}>();
</script>

<template>
<div class="greetings">
<h1 class="green">{{ msg }}</h1>
Expand All @@ -15,6 +9,12 @@ defineProps<{
</div>
</template>

<script setup lang="ts">
defineProps<{
msg: string;
}>();
</script>

<style scoped>
h1 {
font-weight: 500;
Expand Down
18 changes: 9 additions & 9 deletions frontend/src/components/TheWelcome.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
<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';
</script>

<template>
<WelcomeItem>
<template #icon>
Expand Down Expand Up @@ -89,3 +80,12 @@ import SupportIcon from './icons/IconSupport.vue';
<a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>.
</WelcomeItem>
</template>

<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';
</script>
8 changes: 4 additions & 4 deletions frontend/src/views/HomeView.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script setup lang="ts">
import TheWelcome from '../components/TheWelcome.vue';
</script>

<template>
<main>
<TheWelcome />
</main>
</template>

<script setup lang="ts">
import TheWelcome from '../components/TheWelcome.vue';
</script>

0 comments on commit 81cf14d

Please sign in to comment.