Follow upstream recommendation to have html templates below script in .vue files

This commit is contained in:
Johannes Zellner
2025-01-19 12:00:22 +01:00
parent 0280059c13
commit dfb3285e18
21 changed files with 1008 additions and 1021 deletions
+22 -22
View File
@@ -1,25 +1,3 @@
<template>
<div class="content">
<h1 class="section-header">{{ $t('support.title') }}</h1>
<Section :title="$t('support.help.title')">
<div v-html="description"></div>
</Section>
<Section :title="$t('support.remoteSupport.title')">
<h2 class="text-center" v-show="!ready"><i class="fa fa-circle-notch fa-spin"></i></h2>
<div v-show="ready">
<p>{{ $t('support.remoteSupport.description') }}</p>
<b>{{ $t('support.remoteSupport.warning') }}</b>
<br/>
<br/>
<b class="pull-left text-danger text-bold" v-show="toggleSshSupportError">{{ toggleSshSupportError }}</b>
<Button :danger="sshSupportEnabled ? true : null" @click="toggleSshSupport()">{{ sshSupportEnabled ? $t('support.remoteSupport.disableAction') : $t('support.remoteSupport.enableAction') }}</Button>
</div>
</Section>
</div>
</template>
<script>
import { fetcher, Button } from 'pankow';
@@ -71,3 +49,25 @@ export default {
};
</script>
<template>
<div class="content">
<h1 class="section-header">{{ $t('support.title') }}</h1>
<Section :title="$t('support.help.title')">
<div v-html="description"></div>
</Section>
<Section :title="$t('support.remoteSupport.title')">
<h2 class="text-center" v-show="!ready"><i class="fa fa-circle-notch fa-spin"></i></h2>
<div v-show="ready">
<p>{{ $t('support.remoteSupport.description') }}</p>
<b>{{ $t('support.remoteSupport.warning') }}</b>
<br/>
<br/>
<b class="pull-left text-danger text-bold" v-show="toggleSshSupportError">{{ toggleSshSupportError }}</b>
<Button :danger="sshSupportEnabled ? true : null" @click="toggleSshSupport()">{{ sshSupportEnabled ? $t('support.remoteSupport.disableAction') : $t('support.remoteSupport.enableAction') }}</Button>
</div>
</Section>
</div>
</template>