-
({{ i18n.ts.private }})
RN:
diff --git a/packages/client/src/components/notes.vue b/packages/client/src/components/notes.vue
index cb0474efd..21cf24a3b 100644
--- a/packages/client/src/components/notes.vue
+++ b/packages/client/src/components/notes.vue
@@ -3,7 +3,7 @@
-
{{ $ts.noNotes }}
+
{{ i18n.ts.noNotes }}
@@ -21,8 +21,8 @@
import { ref } from 'vue';
import XNote from '@/components/note.vue';
import XList from '@/components/date-separated-list.vue';
-import MkPagination from '@/components/ui/pagination.vue';
-import { Paging } from '@/components/ui/pagination.vue';
+import MkPagination, { Paging } from '@/components/ui/pagination.vue';
+import { i18n } from '@/i18n';
const props = defineProps<{
pagination: Paging;
diff --git a/packages/client/src/components/notification.vue b/packages/client/src/components/notification.vue
index 10cbe2090..9589970a4 100644
--- a/packages/client/src/components/notification.vue
+++ b/packages/client/src/components/notification.vue
@@ -61,10 +61,10 @@
-
{{ $ts.youGotNewFollower }}
-
{{ $ts.followRequestAccepted }}
-
{{ $ts.receiveFollowRequest }} |
-
{{ $ts.groupInvited }}: {{ notification.invitation.group.name }} |
+
{{ i18n.ts.youGotNewFollower }}
+
{{ i18n.ts.followRequestAccepted }}
+
{{ i18n.ts.receiveFollowRequest }} |
+
{{ i18n.ts.groupInvited }}: {{ notification.invitation.group.name }} |
diff --git a/packages/client/src/components/notifications.vue b/packages/client/src/components/notifications.vue
index 5c4adcf3e..444540bb5 100644
--- a/packages/client/src/components/notifications.vue
+++ b/packages/client/src/components/notifications.vue
@@ -3,7 +3,7 @@
-
{{ $ts.noNotifications }}
+
{{ i18n.ts.noNotifications }}
@@ -26,6 +26,7 @@ import XNote from '@/components/note.vue';
import * as os from '@/os';
import { stream } from '@/stream';
import { $i } from '@/account';
+import { i18n } from '@/i18n';
const props = defineProps<{
includeTypes?: typeof notificationTypes[number][];
diff --git a/packages/client/src/components/page-window.vue b/packages/client/src/components/page-window.vue
index 98140b95c..43d75b0cf 100644
--- a/packages/client/src/components/page-window.vue
+++ b/packages/client/src/components/page-window.vue
@@ -114,7 +114,7 @@ function menu(ev) {
function back() {
history.pop();
- router.change(history[history.length - 1].path, history[history.length - 1].key);
+ router.replace(history[history.length - 1].path, history[history.length - 1].key);
}
function close() {
diff --git a/packages/client/src/components/page/page.post.vue b/packages/client/src/components/page/page.post.vue
index 3401f945b..1b11e6f48 100644
--- a/packages/client/src/components/page/page.post.vue
+++ b/packages/client/src/components/page/page.post.vue
@@ -54,7 +54,6 @@ export default defineComponent({
canvas.toBlob(blob => {
const formData = new FormData();
formData.append('file', blob);
- formData.append('i', this.$i.token);
if (this.$store.state.uploadFolder) {
formData.append('folderId', this.$store.state.uploadFolder);
}
@@ -62,6 +61,9 @@ export default defineComponent({
fetch(apiUrl + '/drive/files/create', {
method: 'POST',
body: formData,
+ headers: {
+ authorization: `Bearer ${this.$i.token}`,
+ },
})
.then(response => response.json())
.then(f => {
diff --git a/packages/client/src/components/page/page.text.vue b/packages/client/src/components/page/page.text.vue
index 8d2955466..1e07da8c0 100644
--- a/packages/client/src/components/page/page.text.vue
+++ b/packages/client/src/components/page/page.text.vue
@@ -1,58 +1,47 @@
-
+
-