π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Export css spinner into a dedicated component
Smaug6739778346944988
diff --git a/frontend/app/components/LoaderSpinner.vue b/frontend/app/components/LoaderSpinner.vuenew file mode 100644index 00000000..d62c78d8--- /dev/null+++ b/frontend/app/components/LoaderSpinner.vue@@ -0,0 +1,25 @@+<template>+ <div class="loading-spinner" />+</template>++<style scoped>+.loading-spinner {+ width: 50px;+ height: 50px;+ margin: 20px auto;+ border: 5px solid #f3f3f3;+ border-radius: 50%;+ animation: spin 1s linear infinite;+ border-top: 5px solid var(--primary);+}++@keyframes spin {+ 0% {+ transform: rotate(0deg);+ }++ 100% {+ transform: rotate(360deg);+ }+}+</style>diff --git a/frontend/app/pages/dashboard/cdn/index.vue b/frontend/app/pages/dashboard/cdn/index.vueindex b565ef51..c6617b3b 100644--- a/frontend/app/pages/dashboard/cdn/index.vue+++ b/frontend/app/pages/dashboard/cdn/index.vue@@ -7,7 +7,7 @@<AppDrop ref="dropComponent" @select="selectFile" /><div style="display: flex; width: 100%; padding: 12px 0; align-items: center; flex-direction: column; gap: 10px"><AppButton type="primary" :disabled="!selectedFile" @click="submitFile">Upload on server</AppButton>- <div v-if="isLoading" class="loading-spinner" />+ <LoaderSpinner v-if="isLoading" class="loading-spinner" /></div><div v-if="fileLink" class="link-section"><input v-model="fileLink" type="text" readonly />@@ -133,15 +133,6 @@ const bulkDelete = async (lines: Field[]) => {gap: 10px;}-.loading-spinner {- width: 50px;- height: 50px;- border: 5px solid #f3f3f3;- border-radius: 50%;- animation: spin 1s linear infinite;- border-top: 5px solid var(--primary);-}-.bulk-actions {display: flex;width: 100%;@@ -243,14 +234,4 @@ const bulkDelete = async (lines: Field[]) => {}}}--@keyframes spin {- 0% {- transform: rotate(0deg);- }-- 100% {- transform: rotate(360deg);- }-}</style>diff --git a/frontend/app/pages/dashboard/settings/_views/backups.vue b/frontend/app/pages/dashboard/settings/_views/backups.vueindex d87a8fba..c5f14a15 100644--- a/frontend/app/pages/dashboard/settings/_views/backups.vue+++ b/frontend/app/pages/dashboard/settings/_views/backups.vue@@ -4,7 +4,7 @@<div class="main"><p>Click the button below to create a backup of your data.</p><AppButton type="primary" @click="submitFile">Create Backup</AppButton>- <div v-if="isLoading" class="loading-spinner" />+ <LoaderSpinner v-if="isLoading" /><div v-if="downloadLink" class="link-section"><p>Your backup is ready. You can copy the link to share it or download it.</p><input v-model="downloadLink" type="text" readonly placeholder="Backup Link" />@@ -45,24 +45,4 @@ watchEffect(() => (currentPage.value = route.query.p || 'profile'));margin: auto;text-align: center;}--.loading-spinner {- width: 50px;- height: 50px;- margin: 20px auto;- border: 5px solid #f3f3f3;- border-radius: 50%;- animation: spin 1s linear infinite;- border-top: 5px solid var(--primary);-}--@keyframes spin {- 0% {- transform: rotate(0deg);- }-- 100% {- transform: rotate(360deg);- }-}</style>