summaryrefslogtreecommitdiff
path: root/packages/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/client/src')
-rw-r--r--packages/client/src/pages/favorites.vue34
1 files changed, 13 insertions, 21 deletions
diff --git a/packages/client/src/pages/favorites.vue b/packages/client/src/pages/favorites.vue
index faab864744..4a2ecb0341 100644
--- a/packages/client/src/pages/favorites.vue
+++ b/packages/client/src/pages/favorites.vue
@@ -6,31 +6,23 @@
</div>
</template>
-<script lang="ts">
-import { defineComponent } from 'vue';
+<script lang="ts" setup>
import XNotes from '@/components/notes.vue';
-import * as os from '@/os';
import * as symbols from '@/symbols';
+import { i18n } from '@/i18n';
-export default defineComponent({
- components: {
- XNotes
- },
+const pagination = {
+ endpoint: 'i/favorites',
+ limit: 10,
+ params: () => ({
+ })
+};
- data() {
- return {
- [symbols.PAGE_INFO]: {
- title: this.$ts.favorites,
- icon: 'fas fa-star',
- bg: 'var(--bg)',
- },
- pagination: {
- endpoint: 'i/favorites',
- limit: 10,
- params: () => ({
- })
- },
- };
+defineExpose({
+ [symbols.PAGE_INFO]: {
+ title: i18n.locale.favorites,
+ icon: 'fas fa-star',
+ bg: 'var(--bg)',
},
});
</script>