Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar73a committed Jan 22, 2024
2 parents c7d1bcd + 6a776b2 commit 41f5281
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 44 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
Expand Up @@ -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']
Expand Down
18 changes: 9 additions & 9 deletions src/stores/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ 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()
const searchItem: SearchItem = {
id: eventItem.id,
type: 'event',
title: eventItem.name,
searchContent: Object.values(eventItem).join(", ").toLocaleLowerCase()
}

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

}
})

0 comments on commit 41f5281

Please sign in to comment.