mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
refactor: upgrade to vue-showdown4
This commit is contained in:
parent
1b8dd46395
commit
2a7733611d
8 changed files with 10 additions and 22 deletions
|
@ -25,7 +25,7 @@
|
||||||
"vue": "3.3.4",
|
"vue": "3.3.4",
|
||||||
"vue-i18n": "^9.10.1",
|
"vue-i18n": "^9.10.1",
|
||||||
"vue-router": "^4.3.0",
|
"vue-router": "^4.3.0",
|
||||||
"vue-showdown": "^2.4.1",
|
"vue-showdown": "^4.2.0",
|
||||||
"vuex": "^4.1.0"
|
"vuex": "^4.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
<VueShowdown
|
<VueShowdown
|
||||||
v-if="description"
|
v-if="description"
|
||||||
:markdown="description"
|
:markdown="description"
|
||||||
flavor="github"
|
|
||||||
:class="{
|
:class="{
|
||||||
['alert p-1 px-2 alert-' + descriptionVariant]: descriptionVariant,
|
['alert p-1 px-2 alert-' + descriptionVariant]: descriptionVariant,
|
||||||
}"
|
}"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<VueShowdown :markdown="label" flavor="github" />
|
<VueShowdown :markdown="label" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -6,12 +6,7 @@
|
||||||
>
|
>
|
||||||
<YIcon :iname="icon_" class="mr-md-3 mb-md-0 mb-2" :variant="type" />
|
<YIcon :iname="icon_" class="mr-md-3 mb-md-0 mb-2" :variant="type" />
|
||||||
|
|
||||||
<VueShowdown
|
<VueShowdown :markdown="label" tag="span" class="markdown" />
|
||||||
:markdown="label"
|
|
||||||
flavor="github"
|
|
||||||
tag="span"
|
|
||||||
class="markdown"
|
|
||||||
/>
|
|
||||||
</BAlert>
|
</BAlert>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { createApp, configureCompat } from 'vue'
|
import { createApp, configureCompat } from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import BootstrapVue from 'bootstrap-vue'
|
import BootstrapVue from 'bootstrap-vue'
|
||||||
import VueShowdown from 'vue-showdown'
|
import { VueShowdownPlugin } from 'vue-showdown'
|
||||||
|
|
||||||
import store from './store'
|
import store from './store'
|
||||||
import router from './router'
|
import router from './router'
|
||||||
|
@ -29,7 +29,8 @@ app.use(BootstrapVue, {
|
||||||
BBadge: { pill: true },
|
BBadge: { pill: true },
|
||||||
})
|
})
|
||||||
|
|
||||||
app.use(VueShowdown, {
|
app.use(VueShowdownPlugin, {
|
||||||
|
flavor: 'github',
|
||||||
options: {
|
options: {
|
||||||
emoji: true,
|
emoji: true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
v-for="[name, notif] in app.doc.notifications.postInstall"
|
v-for="[name, notif] in app.doc.notifications.postInstall"
|
||||||
:key="name"
|
:key="name"
|
||||||
:markdown="notif"
|
:markdown="notif"
|
||||||
flavor="github"
|
|
||||||
:options="{ headerLevelStart: 4 }"
|
:options="{ headerLevelStart: 4 }"
|
||||||
/>
|
/>
|
||||||
</YAlert>
|
</YAlert>
|
||||||
|
@ -64,7 +63,6 @@
|
||||||
v-for="[name, notif] in app.doc.notifications.postUpgrade"
|
v-for="[name, notif] in app.doc.notifications.postUpgrade"
|
||||||
:key="name"
|
:key="name"
|
||||||
:markdown="notif"
|
:markdown="notif"
|
||||||
flavor="github"
|
|
||||||
:options="{ headerLevelStart: 4 }"
|
:options="{ headerLevelStart: 4 }"
|
||||||
/>
|
/>
|
||||||
</YAlert>
|
</YAlert>
|
||||||
|
@ -118,7 +116,7 @@
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<VueShowdown :markdown="app.description" flavor="github" />
|
<VueShowdown :markdown="app.description" />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<YAlert v-if="config_panel_err" class="mb-4" variant="danger" icon="bug">
|
<YAlert v-if="config_panel_err" class="mb-4" variant="danger" icon="bug">
|
||||||
|
@ -279,7 +277,7 @@
|
||||||
<YIcon iname="book" class="mr-2" />
|
<YIcon iname="book" class="mr-2" />
|
||||||
{{ name === 'admin' ? $t('app.doc.admin.title') : name }}
|
{{ name === 'admin' ? $t('app.doc.admin.title') : name }}
|
||||||
</template>
|
</template>
|
||||||
<VueShowdown :markdown="content" flavor="github" />
|
<VueShowdown :markdown="content" />
|
||||||
</BTab>
|
</BTab>
|
||||||
</BTabs>
|
</BTabs>
|
||||||
</BCard>
|
</BCard>
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
</template>
|
</template>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<VueShowdown :markdown="app.description" flavor="github" />
|
<VueShowdown :markdown="app.description" />
|
||||||
|
|
||||||
<BImg
|
<BImg
|
||||||
v-if="app.screenshot"
|
v-if="app.screenshot"
|
||||||
|
@ -120,11 +120,7 @@
|
||||||
v-t="'app.install.problems.lowquality'"
|
v-t="'app.install.problems.lowquality'"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<VueShowdown
|
<VueShowdown v-if="app.preInstall" :markdown="app.preInstall" />
|
||||||
v-if="app.preInstall"
|
|
||||||
:markdown="app.preInstall"
|
|
||||||
flavor="github"
|
|
||||||
/>
|
|
||||||
</YAlert>
|
</YAlert>
|
||||||
|
|
||||||
<YAlert
|
<YAlert
|
||||||
|
|
|
@ -127,7 +127,6 @@
|
||||||
<BCardBody>
|
<BCardBody>
|
||||||
<VueShowdown
|
<VueShowdown
|
||||||
:markdown="notif"
|
:markdown="notif"
|
||||||
flavor="github"
|
|
||||||
:options="{ headerLevelStart: 6 }"
|
:options="{ headerLevelStart: 6 }"
|
||||||
/>
|
/>
|
||||||
</BCardBody>
|
</BCardBody>
|
||||||
|
|
Loading…
Reference in a new issue