add strapi
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
<main class="splash">
|
||||
<svg-wordmark />
|
||||
|
||||
<div class="content">
|
||||
<strapi-blocks :content="content" />
|
||||
</div>
|
||||
|
||||
<a :href="downloadUrl" download>
|
||||
<btn :disabled="loading">
|
||||
{{ loading ? 'Checking for updates…' : `Download for ${os}` }}
|
||||
@@ -15,10 +19,13 @@ import { ref, computed, onMounted } from 'vue'
|
||||
import SvgWordmark from '@/components/svg/Wordmark.vue'
|
||||
import useDetectOS from '@/composables/useDetectOS'
|
||||
import Btn from '@/components/Btn.vue'
|
||||
import { StrapiBlocks } from 'vue-strapi-blocks-renderer'
|
||||
import { useData } from 'vike-vue/useData'
|
||||
|
||||
const BASE_URL = 'https://s3.takerofnotes.com'
|
||||
|
||||
const { os } = useDetectOS()
|
||||
const { global } = useData()
|
||||
|
||||
const version = ref(null)
|
||||
const downloadPath = ref(null)
|
||||
@@ -28,6 +35,7 @@ const downloadUrl = computed(() => {
|
||||
if (!downloadPath.value || os.value === 'Unknown') return null
|
||||
return `${BASE_URL}/dist/${os.value.toLowerCase()}/${version.value}/${downloadPath.value}`
|
||||
})
|
||||
const content = computed(() => global?.content)
|
||||
|
||||
onMounted(async () => {
|
||||
try {
|
||||
@@ -66,5 +74,9 @@ main.splash {
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
.content {
|
||||
max-width: desktop-vw(600px);
|
||||
margin: 1em auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user