Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Change custom button name

Smaug67391791f8227711
diff --git a/frontend/components/AButton.vue b/frontend/components/AppButton.vue
similarity index 100%
rename from frontend/components/AButton.vue
rename to frontend/components/AppButton.vue
diff --git a/frontend/components/DocumentCardHeaderActionRow.vue b/frontend/components/DocumentCardHeaderActionRow.vue
index 6f615764..cf6e41ef 100644
--- a/frontend/components/DocumentCardHeaderActionRow.vue
+++ b/frontend/components/DocumentCardHeaderActionRow.vue
@@ -21,8 +21,8 @@
<h3>Delete document</h3>
<p>Are you sure you want to delete this document?</p>
<p style="opacity: 0.7">This action is irreversible</p>
- <AButton @click="deleteDoc" style="float: right" type="danger">Confirm</AButton>
- <AButton @click="showDeleteModal = false" style="float: right" type="link">Cancel</AButton>
+ <AppButton @click="deleteDoc" style="float: right" type="danger">Confirm</AppButton>
+ <AppButton @click="showDeleteModal = false" style="float: right" type="link">Cancel</AppButton>
</Modal>
</span>
</template>
diff --git a/frontend/pages/dashboard/admin/users/[id].vue b/frontend/pages/dashboard/admin/users/[id].vue
index 65fe7cb6..cd049687 100644
--- a/frontend/pages/dashboard/admin/users/[id].vue
+++ b/frontend/pages/dashboard/admin/users/[id].vue
@@ -38,7 +38,7 @@
</div>
</div>
- <AButton @click="saveChanges" type="success">Save Changes</AButton>
+ <AppButton @click="saveChanges" type="success">Save Changes</AppButton>
</div>
<div v-else>No user found.</div>
</div>
@@ -46,7 +46,7 @@
<script setup lang="ts">
import type { User } from '@/stores';
-import AButton from '~/components/AButton.vue';
+import AppButton from '~/components/AppButton.vue';
const route = useRoute();
const user = ref<User | undefined>(undefined);
diff --git a/frontend/pages/dashboard/categories/edit.vue b/frontend/pages/dashboard/categories/edit.vue
index f84144c9..df6c0b95 100644
--- a/frontend/pages/dashboard/categories/edit.vue
+++ b/frontend/pages/dashboard/categories/edit.vue
@@ -29,8 +29,8 @@
<input type="number" v-model.number="category.order" id="order" />
</div>
<div style="display: flex; justify-content: flex-end">
- <AButton type="danger" @click="deleteCategory()">Delete</AButton>
- <AButton type="primary" class="btn primary">Update</AButton>
+ <AppButton type="danger" @click="deleteCategory()">Delete</AppButton>
+ <AppButton type="primary" class="btn primary">Update</AppButton>
</div>
</form>
</div>
diff --git a/frontend/pages/dashboard/categories/new.vue b/frontend/pages/dashboard/categories/new.vue
index a6cdedaf..a839cbae 100644
--- a/frontend/pages/dashboard/categories/new.vue
+++ b/frontend/pages/dashboard/categories/new.vue
@@ -24,7 +24,7 @@
<label for="order">Order</label>
<input type="number" v-model.number="category.order" id="order" />
</div>
- <AButton type="primary">Create</AButton>
+ <AppButton type="primary">Create</AppButton>
</form>
</div>
</div>
diff --git a/frontend/pages/dashboard/cdn.vue b/frontend/pages/dashboard/cdn.vue
index 54d3f17a..9ce2cca0 100644
--- a/frontend/pages/dashboard/cdn.vue
+++ b/frontend/pages/dashboard/cdn.vue
@@ -9,11 +9,11 @@
</div>
<div v-else>Drop file here or <span class="clickable" @click="triggerFileSelect">click to select from computed</span>.</div>
</div>
- <AButton @click="submitFile" type="primary" :disabled="!selectedFile">Upload on server</AButton>
+ <AppButton @click="submitFile" type="primary" :disabled="!selectedFile">Upload on server</AppButton>
<div v-if="isLoading" class="loading-spinner"></div>
<div v-if="fileLink" class="link-section">
<input type="text" v-model="fileLink" readonly />
- <AButton @click="copyLink" type="primary">Copy link</AButton>
+ <AppButton @click="copyLink" type="primary">Copy link</AppButton>
</div>
<div v-if="ressourcesStore.ressources.length" class="ressources-list">
<DataTable :headers="headers" :rows="rows" />
diff --git a/frontend/pages/dashboard/settings.vue b/frontend/pages/dashboard/settings.vue
index 2ce0296e..69056788 100644
--- a/frontend/pages/dashboard/settings.vue
+++ b/frontend/pages/dashboard/settings.vue
@@ -46,7 +46,7 @@
<img :src="avatarPreview || useAvatar(store.user)" class="avatar" @click="selectAvatar" />
<input ref="avatarInput" type="file" accept="image/*" @change="previewAvatar" style="display: none" />
</div>
- <AButton type="primary">Update profile</AButton>
+ <AppButton type="primary">Update profile</AppButton>
</form>
</div>
<div v-show="currentPage === 'preferences'" class="page preferences">
@@ -85,23 +85,23 @@
<span style="display: flex"><label for="password_confirm">Confirm password</label> <span v-if="errorMessages.passwordNotMatch" class="err"> Password do not match !</span></span>
<input id="password_confirm" type="password" required v-model="passwordConfirmValue" />
</div>
- <AButton type="danger">Change password</AButton>
+ <AppButton type="danger">Change password</AppButton>
</form>
<h2>Danger</h2>
- <AButton type="danger" @click="logoutUser">Log out</AButton>
- <AButton type="danger" @click="logoutUserAll">Log out from all devices</AButton>
+ <AppButton type="danger" @click="logoutUser">Log out</AppButton>
+ <AppButton type="danger" @click="logoutUserAll">Log out from all devices</AppButton>
</div>
<div v-show="currentPage == 'backup'" class="page backup_page">
<h1>Create a Database Backup</h1>
<p>Click the button below to create a backup of your database.</p>
- <AButton @click="submitFile" type="primary">Create Backup</AButton>
+ <AppButton @click="submitFile" type="primary">Create Backup</AppButton>
<div v-if="isLoading" class="loading-spinner"></div>
<div class="link-section" v-if="downloadLink">
<p>Your backup is ready. You can copy the link to share it or download it.</p>
<input type="text" v-model="downloadLink" readonly placeholder="Backup Link" />
<div style="display: flex">
- <AButton @click="copyLink" type="secondary">Copy Link</AButton>
- <a :href="downloadLink" download><AButton type="primary">Download Backup</AButton></a>
+ <AppButton @click="copyLink" type="secondary">Copy Link</AppButton>
+ <a :href="downloadLink" download><AppButton type="primary">Download Backup</AppButton></a>
</div>
</div>
</div>