diff --git a/Dockerfile b/Dockerfile index 4038e99..22ff83f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /srv COPY ./package.json ./package-lock.json /srv/ RUN npm install -COPY tsconfig.json tsconfig.app.json tsconfig.node.json vite.config.ts /srv/ +COPY tsconfig.json tsconfig.app.json tsconfig.node.json vite.config.ts .env.development .env.production /srv/ COPY src /srv/src COPY public /srv/public diff --git a/docker-compose.yml b/docker-compose.yml index dd785e4..738eb3d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: "3.7" services: gate: - image: registry.gitlab.com/standa-fifik/battle-caster:latest + image: registry.gitlab.com/standa-fifik/battle-caster:0.2.4 build: context: . dockerfile: Dockerfile diff --git a/public/soundfx/sword slash/52752_438046_438045_Medieval_Weapons_-_Metal_Weapon_Swing-_Whoosh_normal.aac b/public/soundfx/sword slash/52752_438046_438045_Medieval_Weapons_-_Metal_Weapon_Swing-_Whoosh_normal.aac deleted file mode 100644 index 9e10240..0000000 Binary files a/public/soundfx/sword slash/52752_438046_438045_Medieval_Weapons_-_Metal_Weapon_Swing-_Whoosh_normal.aac and /dev/null differ diff --git a/public/soundfx/sword slash/52753_438048_438047_Medieval_Weapons_-_Metal_Weapon_Swing_normal.aac b/public/soundfx/sword slash/52753_438048_438047_Medieval_Weapons_-_Metal_Weapon_Swing_normal.aac deleted file mode 100644 index a9c501f..0000000 Binary files a/public/soundfx/sword slash/52753_438048_438047_Medieval_Weapons_-_Metal_Weapon_Swing_normal.aac and /dev/null differ diff --git a/public/soundfx/sword slash/762456_762424_Shinobi_Vol_2_-_Sword_Slash_01_-_MASTERED_-_2496.aac b/public/soundfx/sword slash/762456_762424_Shinobi_Vol_2_-_Sword_Slash_01_-_MASTERED_-_2496.aac deleted file mode 100644 index ec238cb..0000000 Binary files a/public/soundfx/sword slash/762456_762424_Shinobi_Vol_2_-_Sword_Slash_01_-_MASTERED_-_2496.aac and /dev/null differ diff --git a/public/soundfx/sword slash/99157_719601_Throwing_Weapon_Hits_Body (1).aac b/public/soundfx/sword slash/99157_719601_Throwing_Weapon_Hits_Body (1).aac deleted file mode 100644 index e074141..0000000 Binary files a/public/soundfx/sword slash/99157_719601_Throwing_Weapon_Hits_Body (1).aac and /dev/null differ diff --git a/public/soundfx/sword slash/99157_719601_Throwing_Weapon_Hits_Body.aac b/public/soundfx/sword slash/99157_719601_Throwing_Weapon_Hits_Body.aac deleted file mode 100644 index e074141..0000000 Binary files a/public/soundfx/sword slash/99157_719601_Throwing_Weapon_Hits_Body.aac and /dev/null differ diff --git a/src/components/Audio/AudioCard.vue b/src/components/Audio/AudioCard.vue index 6c59e80..01c1bfa 100644 --- a/src/components/Audio/AudioCard.vue +++ b/src/components/Audio/AudioCard.vue @@ -96,7 +96,7 @@ function openPopover() { } function onDragover(event: DragEvent) { - const data = event.dataTransfer?.getData('application/json'); + // const data = event.dataTransfer?.getData('application/json'); event.preventDefault(); } diff --git a/src/components/Audio/Parallel.vue b/src/components/Audio/Parallel.vue index 2a57c93..c18134c 100644 --- a/src/components/Audio/Parallel.vue +++ b/src/components/Audio/Parallel.vue @@ -23,7 +23,7 @@ :class="{ 'a-parallel__song--playing': song.isPlaying }" - v-for="(song, idx) in node.sounds()" + v-for="(song) in node.sounds()" :key="song.options.vFile.name" @click="playTrack(song)" > diff --git a/src/components/FileManager/FileManager.vue b/src/components/FileManager/FileManager.vue index 38991d1..1adfc6e 100644 --- a/src/components/FileManager/FileManager.vue +++ b/src/components/FileManager/FileManager.vue @@ -76,8 +76,12 @@ watch(search, async (value) => { searchAbort.abort(); } searchAbort = new AbortController(); + let numberOfResults = 0; for await (let result of fs.search(value, searchAbort.signal)) { searchResults.value.push(result); + if (numberOfResults++ > 100) { + break; + } } }); diff --git a/src/model/Audio/ParallelGroupNode.ts b/src/model/Audio/ParallelGroupNode.ts index 946ccf7..17daef7 100644 --- a/src/model/Audio/ParallelGroupNode.ts +++ b/src/model/Audio/ParallelGroupNode.ts @@ -16,7 +16,7 @@ export class ParallelGroupNode extends SoundGroupNode { + this.soundNodes.forEach((sound) => { if (this.enabledTracks.has(sound.id)) { sound.play(); } diff --git a/src/model/Audio/SoundNode.ts b/src/model/Audio/SoundNode.ts index 9940c89..d4b1516 100644 --- a/src/model/Audio/SoundNode.ts +++ b/src/model/Audio/SoundNode.ts @@ -146,7 +146,7 @@ export class MediaElementSoundNode extends SoundNode { this._isPlaying = false; }); - this.mediaElement.addEventListener('playing', (event) => { + this.mediaElement.addEventListener('playing', () => { this._isPlaying = true; }); this.mediaElement.addEventListener('pause', () => { diff --git a/src/model/FileSystem/MountedFs.ts b/src/model/FileSystem/MountedFs.ts index 932a69a..e922f1b 100644 --- a/src/model/FileSystem/MountedFs.ts +++ b/src/model/FileSystem/MountedFs.ts @@ -58,7 +58,7 @@ export class MountedFs implements Fs { } async *search(query: string, cancelToken?: AbortSignal) { - query = query.toLocaleLowerCase(); + const queries: string[] = query.toLocaleLowerCase().split(' '); for (const fs of this.filesystems.values()) { const dirQueue = [fs.root]; while (dirQueue.length > 0) { @@ -71,7 +71,7 @@ export class MountedFs implements Fs { } if (child.type === 'directory') { dirQueue.push(child); - } else if (child.name.toLocaleLowerCase().includes(query)) { + } else if (queries.every((query) => [child.source, ...child.path].join('/').toLocaleLowerCase().includes(query))) { yield child; } } diff --git a/src/model/Remote/Channels/WebRTCChannel.ts b/src/model/Remote/Channels/WebRTCChannel.ts index 69eb5f1..8f22b41 100644 --- a/src/model/Remote/Channels/WebRTCChannel.ts +++ b/src/model/Remote/Channels/WebRTCChannel.ts @@ -126,7 +126,7 @@ export class WebRtcChannelSummon extends MessageEmitter implements JsonChannelSu } this.peer.ontrack = (event) => { event.streams.forEach((stream) => { - stream.getTracks().forEach((track) => { + stream.getTracks().forEach(() => { if (event.track.kind === 'audio') { const audioElement = document.createElement('audio'); audioElement.srcObject = stream; // Attach the received stream diff --git a/src/modules/map/MapScene.vue b/src/modules/map/MapScene.vue index 4482b48..cf8dbf8 100644 --- a/src/modules/map/MapScene.vue +++ b/src/modules/map/MapScene.vue @@ -107,7 +107,7 @@ const dynamicStyle = computed(() => { }); -function onVideoLoaded(event: Event) { +function onVideoLoaded() { mediaDimensions.value = { width: video.value!.videoWidth, height: video.value!.videoHeight, diff --git a/vite.config.ts b/vite.config.ts index ebe425a..e099423 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,9 +15,6 @@ export default defineConfig({ }, }, }, - define: { - 'import.meta.env.CHROMECAST_APP_ID': JSON.stringify(process.env.VITE_CHROMECAST_APP_ID) - }, plugins: [ vue({ template: {