Skip to content

Commit dfecddb

Browse files
authored
Merge pull request #77 from GoodDay360/build
Build
2 parents 6826f87 + a861874 commit dfecddb

File tree

10 files changed

+36
-18
lines changed

10 files changed

+36
-18
lines changed

bun.lock

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"@types/semver": "^7.7.1",
5151
"@typescript-eslint/eslint-plugin": "^8.44.0",
5252
"@typescript-eslint/parser": "^8.44.0",
53+
"baseline-browser-mapping": "^2.8.27",
5354
"eslint-plugin-solid": "^0.14.5",
5455
"eslint-plugin-unused-imports": "^4.2.0",
5556
"typescript": "^5.9.2",

snap/snapcraft.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: hyperionbox
22
base: core22
3-
version: '2.1.2'
4-
summary: An open-source anime and movie streaming desktop app. # 79 char long summary
3+
version: '2.1.3'
4+
summary: An open-source anime and movie streaming app. # 79 char long summary
55
description: |
66
An open-source anime and movie streaming app that support watch progress and download for many sources.
77

src-tauri/Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "HyperionBox"
3-
version = "2.1.2"
3+
version = "2.1.3"
44
description = "A Tauri App"
55
authors = ["goodday360"]
66
edition = "2021"

src-tauri/src/commands/link_plugin.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use crate::commands::local_manifest::{get_local_manifest, save_local_manifest};
22
use crate::models::local_manifest::{LinkPlugin, LocalManifest};
33
use crate::commands::hypersync::favorite::{add_favorite_cache};
44
use crate::commands::favorite::{get_tag_from_favorite};
5+
use crate::commands::methods::view;
56

67
#[tauri::command]
78
pub async fn link_plugin(
@@ -20,6 +21,8 @@ pub async fn link_plugin(
2021

2122
save_local_manifest(source.clone(), from_id.clone(), manifest_data).await?;
2223

24+
view::view(source.clone(), from_id.clone(), true).await.ok();
25+
2326
let tags = get_tag_from_favorite(source.clone(), from_id.clone()).await?;
2427
if tags.len() > 0 {
2528
add_favorite_cache(source.clone(), from_id.clone()).await?;

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "HyperionBox",
4-
"version": "2.1.2",
4+
"version": "2.1.3",
55
"identifier": "io.github.goodday360.hyperionbox",
66
"build": {
77
"beforeDevCommand": "bun run dev",

src/home/components/home.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,14 +393,15 @@ export default function Home() {
393393
<div class={`${styles.content_data_container} ${["android","ios" ].includes(platform()) && "hide_scrollbar"}`}
394394
onWheel={(e) => {
395395
const el = e.currentTarget;
396-
const hasOverflow = el.scrollWidth > el.clientWidth;
397-
if (!hasOverflow) return;
396+
const isOverflowing = el.scrollWidth > el.clientWidth;
398397

398+
if (isOverflowing) {
399399
e.preventDefault();
400-
e.currentTarget.scrollBy({
400+
el.scrollBy({
401401
left: e.deltaY,
402402
behavior: "smooth",
403403
});
404+
}
404405
}}
405406
>
406407
<For each={item.data}>

src/plugins/components/plugins.tsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,16 @@ export default function Plugin() {
142142
console.log(data);
143143
SET_INSTALLED_PLUGIN_DATA(data);
144144
if (current_tab() === 0) {
145-
if (Object.keys(SEARCH_IN_PLUGIN_DATA()).length === 0) {
145+
if ((Object.keys(SEARCH_IN_PLUGIN_DATA()).length === 0) || (Object.keys(SEARCH_IN_PLUGIN_DATA()).length !== Object.keys(INSTALLED_PLUGIN_DATA()).length)) {
146146
request_search_in_plugin()
147+
}else{
148+
set_is_loading(false);
147149
}
148-
};
150+
}else{
151+
set_is_loading(false);
152+
}
149153
})
150-
.finally(() => {
154+
.catch(() => {
151155
set_is_loading(false);
152156
})
153157

@@ -303,11 +307,16 @@ export default function Plugin() {
303307
</div>
304308
<div class={`${styles.content_data_container} ${["android","ios" ].includes(platform()) && "hide_scrollbar"}`}
305309
onWheel={(e) => {
310+
const el = e.currentTarget;
311+
const isOverflowing = el.scrollWidth > el.clientWidth;
312+
313+
if (isOverflowing) {
306314
e.preventDefault();
307-
e.currentTarget.scrollBy({
315+
el.scrollBy({
308316
left: e.deltaY,
309317
behavior: "smooth",
310318
});
319+
}
311320
}}
312321
>
313322
{SEARCH_IN_PLUGIN_DATA()[plugin_id].length > 0

src/view/components/view.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,15 @@ export default function View() {
326326
<div class={`${styles.season_container} ${["android","ios" ].includes(platform()) && "hide_scrollbar"}`}
327327
onWheel={(e) => {
328328
const el = e.currentTarget;
329-
const hasOverflow = el.scrollWidth > el.clientWidth;
330-
if (!hasOverflow) return;
329+
const isOverflowing = el.scrollWidth > el.clientWidth;
331330

331+
if (isOverflowing) {
332332
e.preventDefault();
333-
e.currentTarget.scrollBy({
333+
el.scrollBy({
334334
left: e.deltaY,
335335
behavior: "smooth",
336336
});
337+
}
337338
}}
338339
>
339340
<For each={[...Array(DATA()?.manifest_data?.episode_list?.length ?? 0)]}>

0 commit comments

Comments
 (0)