Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump undici from 5.28.2 to 5.28.3 #34

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions kmexplorer/components/SuggestCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
:staticheight="false"
icon
:nolink="true"
@click="addEnabledLanguage(kara.language)"
/>
<tag
v-if="kara.source && canSeeSource"
Expand Down Expand Up @@ -49,9 +50,10 @@

<script setup lang="ts">
import { storeToRefs } from 'pinia';
import { useLocalStorageStore } from '~/store/localStorage';
import { useAuthStore } from '~/store/auth';
import type { Suggestion } from '~/../kmserver-core/src/types/suggestions';
import { useAuthStore } from '~/store/auth';
import { useLocalStorageStore } from '~/store/localStorage';
import { useMenubarStore } from '~/store/menubar';

const props = defineProps<{
kara: Suggestion
Expand All @@ -65,6 +67,7 @@
const { loggedIn, user } = storeToRefs(useAuthStore());
const { karas } = storeToRefs(useLocalStorageStore());
const { addKara } = useLocalStorageStore();
const { addEnabledLanguage } = useMenubarStore();
const { locale } = useI18n();

const canDelete = computed(() => loggedIn.value && !!user?.value?.roles?.admin);
Expand Down
2 changes: 1 addition & 1 deletion kmexplorer/pages/suggest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@

const route = useRoute();

watch(enabledLanguages, () => setPage(1));
watch(enabledLanguages, () => setPage(1), { deep: true });
watch(search, () => setPage(1));
watch(sort, () => setPage(1), { deep: true });

Expand Down
5 changes: 5 additions & 0 deletions kmexplorer/store/menubar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ export const useMenubarStore = defineStore('menubar', {
setEnabledLanguages(languages: string[]) {
this.enabledLanguages = languages;
},
addEnabledLanguage(language: string) {
if (this.enabledLanguages.indexOf(language) === -1) {
this.enabledLanguages.push(language);
}
},
reset() {
this.resultsCount = 0;
this.search = '';
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14267,11 +14267,11 @@ __metadata:
linkType: hard

"undici@npm:^5.28.2":
version: 5.28.2
resolution: "undici@npm:5.28.2"
version: 5.28.3
resolution: "undici@npm:5.28.3"
dependencies:
"@fastify/busboy": ^2.0.0
checksum: f9e9335803f962fff07c3c11c6d50bbc76248bacf97035047155adb29c3622a65bd6bff23a22218189740133149d22e63b68131d8c40e78ac6cb4b6d686a6dfa
checksum: fa1e65aff896c5e2ee23637b632e306f9e3a2b32a3dc0b23ea71e5555ad350bcc25713aea894b3dccc0b7dc2c5e92a5a58435ebc2033b731a5524506f573dfd2
languageName: node
linkType: hard

Expand Down