add new note search file types (module, flash) and optimize file type query
This commit is contained in:
parent
5276d6024d
commit
ed981a6970
8 changed files with 135 additions and 59 deletions
|
|
@ -22,13 +22,15 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<MkInput v-if="noteSearchableScope === 'global'" v-model="hostInput" :disabled="hostSelect !== 'specified'" :large="true" type="search">
|
||||
<template #prefix><i class="ti ti-server"></i></template>
|
||||
</MkInput>
|
||||
<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">
|
||||
|
|
@ -97,7 +99,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';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue