summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/search.note.vue
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-02-13 17:02:52 -0500
committerHazelnoot <acomputerdog@gmail.com>2025-02-13 17:04:50 -0500
commit667262dcfb0fd4ce894e3431b38908c3cef16a80 (patch)
tree46ef65ccdccb8f6c2441d35c3c8d6ab365424784 /packages/frontend/src/pages/search.note.vue
parentfix pgroona note.text query (diff)
parentmerge: Add new note search file types (module, flash), optimize search query,... (diff)
downloadsharkey-667262dcfb0fd4ce894e3431b38908c3cef16a80.tar.gz
sharkey-667262dcfb0fd4ce894e3431b38908c3cef16a80.tar.bz2
sharkey-667262dcfb0fd4ce894e3431b38908c3cef16a80.zip
Merge branch 'develop' into merge/2024-02-03
# Conflicts: # locales/index.d.ts # packages/backend/src/core/SearchService.ts # packages/frontend/src/pages/search.note.vue # packages/misskey-js/src/autogen/types.ts # sharkey-locales/en-US.yml
Diffstat (limited to 'packages/frontend/src/pages/search.note.vue')
-rw-r--r--packages/frontend/src/pages/search.note.vue16
1 files changed, 9 insertions, 7 deletions
diff --git a/packages/frontend/src/pages/search.note.vue b/packages/frontend/src/pages/search.note.vue
index 73b2839a44..d5f96efb8e 100644
--- a/packages/frontend/src/pages/search.note.vue
+++ b/packages/frontend/src/pages/search.note.vue
@@ -25,14 +25,16 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkInput>
</template>
- <MkSwitch v-model="order">Sort by newest to oldest</MkSwitch>
+ <MkSwitch v-model="order">{{ i18n.ts._noteSearch.newestToOldest }}</MkSwitch>
<MkSelect v-model="filetype" small>
- <template #label>File Type</template>
- <option :value="null">None</option>
- <option value="image">Images</option>
- <option value="video">Videos</option>
- <option value="audio">Audio</option>
+ <template #label>{{ i18n.ts._noteSearch.fileType }}</template>
+ <option :value="null">{{ i18n.ts._noteSearch._fileType.none }}</option>
+ <option value="image">{{ i18n.ts._noteSearch._fileType.image }}</option>
+ <option value="video">{{ i18n.ts._noteSearch._fileType.video }}</option>
+ <option value="audio">{{ i18n.ts._noteSearch._fileType.audio }}</option>
+ <option value="module">{{ i18n.ts._noteSearch._fileType.module }}</option>
+ <option value="flash">{{ i18n.ts._noteSearch._fileType.flash }}</option>
</MkSelect>
<MkFolder :defaultOpen="true">
@@ -101,7 +103,7 @@ const notePagination = ref<Paging>();
const user = ref<UserDetailed | null>(null);
const hostInput = ref(toRef(props, 'host').value);
const order = ref(false);
-const filetype = ref(null);
+const filetype = ref<'image' | 'video' | 'audio' | 'module' | 'flash' | null>(null);
const noteSearchableScope = instance.noteSearchableScope ?? 'local';