Merge pull request #632 from Materialious/update/1.6.3

Update/1.6.3
This commit is contained in:
Ward
2024-10-09 09:49:10 +13:00
committed by GitHub
12 changed files with 667 additions and 534 deletions
+2 -1
View File
@@ -14,4 +14,5 @@ yarn.lock
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
resources/android/**/*
android/release.jks*
android/release.jks*
!static/nodejs-android/package-lock.json
+2 -2
View File
@@ -7,8 +7,8 @@ android {
applicationId "us.materialio.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 53
versionName "1.6.2"
versionCode 54
versionName "1.6.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
@@ -25,6 +25,30 @@
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="materialious-auth" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="youtube.com"
android:pathPrefix="/watch" />
<data
android:scheme="https"
android:host="www.youtube.com"
android:pathPrefix="/watch" />
<data
android:scheme="https"
android:host="m.youtube.com"
android:pathPrefix="/watch" />
<data
android:scheme="https"
android:host="youtu.be"
android:pathPrefix="/watch" />
</intent-filter>
</activity>
<provider
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "Materialious",
"version": "1.6.2",
"version": "1.6.3",
"description": "Modern material design for Invidious.",
"author": {
"name": "Ward Pearce",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "materialious",
"version": "1.6.2",
"version": "1.6.3",
"private": true,
"scripts": {
"dev": "vite dev",
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -231,7 +231,7 @@ export function bookmarkletSaveToUrl(): string {
persistedStores.forEach((store) => {
let value = get(store.store);
if (value !== null) {
if (value !== null && value !== undefined) {
url.searchParams.set(store.name, value.toString());
}
});
@@ -9,6 +9,7 @@
"title": "Title",
"searchPlaceholder": "Search (ctrl + k)",
"delete": "Delete",
"donate": "Donate",
"deleteAllHistory": "Delete all history",
"skipping": "Skipping",
"replies": "replies",
+22 -8
View File
@@ -86,15 +86,29 @@
// Auth response handling for Mobile
App.addListener('appUrlOpen', (data) => {
const authUrl = new URL(data.url);
const username = authUrl.searchParams.get('username');
const token = authUrl.searchParams.get('token');
const url = new URL(data.url);
if (username && token) {
authStore.set({
username: username,
token: token
});
if (data.url.includes('youtu')) {
let videoId = url.searchParams.get('v');
if (!videoId) {
videoId = url.pathname.split('/')[1];
}
if (!videoId) {
return;
}
goto(`/watch/${videoId}`);
} else {
const username = url.searchParams.get('username');
const token = url.searchParams.get('token');
if (username && token) {
authStore.set({
username: username,
token: token
});
}
}
});
+54
View File
@@ -0,0 +1,54 @@
{
"name": "cors-patch",
"version": "0.0.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cors-patch",
"version": "0.0.1",
"dependencies": {
"cors-anywhere": "^0.4.4"
}
},
"node_modules/cors-anywhere": {
"version": "0.4.4",
"resolved": "https://registry.npmjs.org/cors-anywhere/-/cors-anywhere-0.4.4.tgz",
"integrity": "sha512-8OBFwnzMgR4mNrAeAyOLB2EruS2z7u02of2bOu7i9kKYlZG+niS7CTHLPgEXKWW2NAOJWRry9RRCaL9lJRjNqg==",
"dependencies": {
"http-proxy": "1.11.1",
"proxy-from-env": "0.0.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/eventemitter3": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-1.2.0.tgz",
"integrity": "sha512-DOFqA1MF46fmZl2xtzXR3MPCRsXqgoFqdXcrCVYM3JNnfUeHTm/fh/v/iU7gBFpwkuBmoJPAm5GuhdDfSEJMJA=="
},
"node_modules/http-proxy": {
"version": "1.11.1",
"resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.11.1.tgz",
"integrity": "sha512-qz7jZarkVG3G6GMq+4VRJPSN4NkIjL4VMTNhKGd8jc25BumeJjWWvnY3A7OkCGa8W1TTxbaK3dcE0ijFalITVA==",
"dependencies": {
"eventemitter3": "1.x.x",
"requires-port": "0.x.x"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/proxy-from-env": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-0.0.1.tgz",
"integrity": "sha512-B9Hnta3CATuMS0q6kt5hEezOPM+V3dgaRewkFtFoaRQYTVNsHqUvFXmndH06z3QO1ZdDnRELv5vfY6zAj/gG7A=="
},
"node_modules/requires-port": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/requires-port/-/requires-port-0.0.1.tgz",
"integrity": "sha512-AzPDCliPoWDSvEVYRQmpzuPhGGEnPrQz9YiOEvn+UdB9ixBpw+4IOZWtwctmpzySLZTy7ynpn47V14H4yaowtA=="
}
}
}
+1 -1
View File
@@ -77,4 +77,4 @@ main.root {
main.root::-webkit-scrollbar {
display: none !important;
}
}
}
+1 -1
View File
@@ -5,7 +5,7 @@ import json
import os
import re
LATEST_VERSION = "1.6.2"
LATEST_VERSION = "1.6.3"
WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious")
ROOT_PACKAGE = os.path.join(WORKING_DIR, "package.json")