Replace game with soundtrack terminology and add fuzzy/exact search
- Replace all 'game' references with 'soundtrack' throughout frontend (112 occurrences) - Add radio buttons for fuzzy/exact search in SearchModal - Fuzzy search is default and uses /findfuzzy endpoint - Exact search uses existing /find endpoint - Fix syntax errors in SyncProgressModal from previous refactoring Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="extraButtonsDiv">
|
||||
<button @click="resetPlaylist">Reset playlist</button>
|
||||
<button @click="resetPoints">Reset points</button>
|
||||
<button @click="handleSyncButtonClick">Sync games</button>
|
||||
<button @click="handleSyncButtonClick">Sync soundtracks</button>
|
||||
<button @click="startSoundTest">Sound test</button>
|
||||
<button @click="showSearchModal">Search</button>
|
||||
<sync-progress-modal
|
||||
@@ -47,7 +47,7 @@ export default {
|
||||
async startSync() {
|
||||
try {
|
||||
// Start the sync
|
||||
const response = await this.APIsyncGames();
|
||||
const response = await this.APIsyncSoundtracks();
|
||||
// Check if sync was actually started or if one is in progress
|
||||
if (response && (response.status === 423 || (response.data && response.data.includes("in progress")))) {
|
||||
// Sync is already in progress - show modal with polling
|
||||
@@ -93,7 +93,7 @@ export default {
|
||||
this.$store.dispatch("updatePlaylistHistory", this.emptyPlaylist);
|
||||
this.$store.dispatch("setCurrentlyLoadingTrack", "N/A");
|
||||
this.$store.dispatch("setCurrentTrackHidden", false);
|
||||
this.$store.dispatch("reloadGamesList", true);
|
||||
this.$store.dispatch("reloadSoundtracksList", true);
|
||||
},
|
||||
startSoundTest() {
|
||||
this.$emit("start-sound-test");
|
||||
@@ -116,7 +116,7 @@ export default {
|
||||
});
|
||||
});
|
||||
},
|
||||
APIsyncGames() {
|
||||
APIsyncSoundtracks() {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.axios({
|
||||
method: "get",
|
||||
|
||||
Reference in New Issue
Block a user