diff --git a/materialious/android/app/build.gradle b/materialious/android/app/build.gradle index 910c19a3..c1e9141b 100644 --- a/materialious/android/app/build.gradle +++ b/materialious/android/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "us.materialio.app" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 87 - versionName "1.7.5" + versionCode 88 + versionName "1.7.6" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. diff --git a/materialious/electron/package.json b/materialious/electron/package.json index b7cbcb82..b7db87eb 100644 --- a/materialious/electron/package.json +++ b/materialious/electron/package.json @@ -1,6 +1,6 @@ { "name": "Materialious", - "version": "1.7.5", + "version": "1.7.6", "description": "Modern material design for Invidious.", "author": { "name": "Ward Pearce", @@ -41,4 +41,4 @@ "capacitor", "electron" ] -} +} \ No newline at end of file diff --git a/materialious/package.json b/materialious/package.json index 9a7b6fcf..28ee5a24 100644 --- a/materialious/package.json +++ b/materialious/package.json @@ -1,6 +1,6 @@ { "name": "materialious", - "version": "1.7.5", + "version": "1.7.6", "private": true, "scripts": { "dev": "vite dev", @@ -75,4 +75,4 @@ "vidstack": "^1.12.12", "youtubei.js": "^12.2.0" } -} +} \ No newline at end of file diff --git a/materialious/src/routes/(app)/playlists/+page.svelte b/materialious/src/routes/(app)/playlists/+page.svelte index 58bdb64b..bca08ff7 100644 --- a/materialious/src/routes/(app)/playlists/+page.svelte +++ b/materialious/src/routes/(app)/playlists/+page.svelte @@ -8,7 +8,9 @@ import { ui } from 'beercss'; import { _ } from 'svelte-i18n'; - let { data = $bindable() } = $props(); + let { data } = $props(); + + let playlists = $state(data); activePageStore.set('playlists'); @@ -21,7 +23,7 @@ async function removePlaylistItem(playlistId: string) { await deletePersonalPlaylist(playlistId); - data.playlists = data.playlists.filter((item) => { + playlists.playlists = playlists.playlists.filter((item) => { if (item.playlistId !== playlistId) { return item; } @@ -31,14 +33,14 @@ async function createPlaylist() { await postPersonalPlaylist(playlistTitle, playlistPrivacy); await ui('#create-playlist'); - data.playlists = await getPersonalPlaylists(); + playlists.playlists = await getPersonalPlaylists(); }
- {#each data.playlists as playlist} + {#each playlists.playlists as playlist}
diff --git a/materialious/src/routes/(app)/search/[slug]/+page.svelte b/materialious/src/routes/(app)/search/[slug]/+page.svelte index a1f45b35..a2f3e8d4 100644 --- a/materialious/src/routes/(app)/search/[slug]/+page.svelte +++ b/materialious/src/routes/(app)/search/[slug]/+page.svelte @@ -10,30 +10,32 @@ import { _ } from 'svelte-i18n'; import InfiniteLoading, { type InfiniteEvent } from 'svelte-infinite-loading'; - let { data = $bindable() } = $props(); + let { data } = $props(); + + let searchResults = $state(data); let currentPage = 1; activePageStore.set(null); async function changeType(type: 'playlist' | 'all' | 'video' | 'channel') { - data.searchType = type; + searchResults.searchType = type; currentPage = 1; - data.search = []; - data.search = await getSearch(data.slug, { type: type }); + searchResults.search = []; + searchResults.search = await getSearch(searchResults.slug, { type: type }); } async function loadMore(event: InfiniteEvent) { currentPage++; - const newSearch = await getSearch(data.slug, { + const newSearch = await getSearch(searchResults.slug, { page: currentPage.toString(), - type: data.searchType + type: searchResults.searchType }); if (newSearch.length === 0) { event.detail.complete(); } else { - data.search = [...data.search, ...newSearch]; + searchResults.search = [...searchResults.search, ...newSearch]; event.detail.loaded(); } } @@ -42,7 +44,7 @@ -{#if data.search.length > 0} +{#if searchResults.search.length > 0}
- {#each data.search as item} + {#each searchResults.search as item} {#key item}
diff --git a/update_versions.py b/update_versions.py index cec44660..0c510371 100644 --- a/update_versions.py +++ b/update_versions.py @@ -5,7 +5,7 @@ import json import os import re -LATEST_VERSION = "1.7.5" +LATEST_VERSION = "1.7.6" WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious") ROOT_PACKAGE = os.path.join(WORKING_DIR, "package.json")