Skip to content

Commit

Permalink
fix: refactored
Browse files Browse the repository at this point in the history
stritti committed Jan 22, 2024
1 parent 4bba053 commit 6730413
Showing 3 changed files with 5 additions and 39 deletions.
34 changes: 0 additions & 34 deletions .devcontainer/devcontainer.json

This file was deleted.

1 change: 0 additions & 1 deletion components.d.ts
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@ declare module 'vue' {
BButton: typeof import('bootstrap-vue-next')['BButton']
BCard: typeof import('bootstrap-vue-next')['BCard']
BCardGroup: typeof import('bootstrap-vue-next')['BCardGroup']
BCardText: typeof import('bootstrap-vue-next')['BCardText']
BCardTitle: typeof import('bootstrap-vue-next')['BCardTitle']
BCollapse: typeof import('bootstrap-vue-next')['BCollapse']
BContainer: typeof import('bootstrap-vue-next')['BContainer']
9 changes: 5 additions & 4 deletions src/stores/search.ts
Original file line number Diff line number Diff line change
@@ -16,18 +16,19 @@ export const useSeachStore = defineStore('search', {
getAll: (state) => state.searchList
},
actions: {
reset() {
clear() {
this.searchList = []
},
addEventList(list: EventItem[]) {
let searchItem: SearchItem

list.forEach(eventItem => {

searchItem.id = eventItem.id
searchItem.type = 'event'
searchItem.title = eventItem.name
searchItem.searchContent = eventItem.name.toLocaleLowerCase()
+ ' ' + eventItem.beschreibung.toLocaleLowerCase()
+ ' ' + eventItem.ort.toLocaleLowerCase()
searchItem.searchContent = Object.values(eventItem).join(", ").toLocaleLowerCase()

this.searchList.push(searchItem)
});
}

0 comments on commit 6730413

Please sign in to comment.