mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-10 23:41:57 +00:00
Compare commits
2 Commits
v3.2.3
...
v2.10.9-pre1
| Author | SHA1 | Date | |
|---|---|---|---|
| 8f26fdec2d | |||
| 29d651bed6 |
@@ -186,6 +186,18 @@ class PluginBrowser:
|
|||||||
else:
|
else:
|
||||||
logger.fatal(f"Could not fetch from URL. {await res.text()}")
|
logger.fatal(f"Could not fetch from URL. {await res.text()}")
|
||||||
|
|
||||||
|
storeUrl = ""
|
||||||
|
match self.settings.getSetting("store", 0):
|
||||||
|
case 0: storeUrl = "https://plugins.deckbrew.xyz/plugins" # default
|
||||||
|
case 1: storeUrl = "https://testing.deckbrew.xyz/plugins" # testing
|
||||||
|
case 2: storeUrl = self.settings.getSetting("store-url", "https://plugins.deckbrew.xyz/plugins") # custom
|
||||||
|
case _: storeUrl = "https://plugins.deckbrew.xyz/plugins"
|
||||||
|
logger.info(f"Incrementing installs for {name} from URL {storeUrl} (version {version})")
|
||||||
|
async with ClientSession() as client:
|
||||||
|
res = await client.post(storeUrl+f"/{name}/versions/{version}/increment?isUpdate={isInstalled}", ssl=get_ssl_context())
|
||||||
|
if res.status != 200:
|
||||||
|
logger.error(f"Server did not accept install count increment request. code: {res.status}")
|
||||||
|
|
||||||
# Check to make sure we got the file
|
# Check to make sure we got the file
|
||||||
if res_zip is None:
|
if res_zip is None:
|
||||||
logger.fatal(f"Could not fetch {artifact}")
|
logger.fatal(f"Could not fetch {artifact}")
|
||||||
|
|||||||
@@ -1,12 +1,4 @@
|
|||||||
import {
|
import { ButtonItem, Focusable, PanelSection, PanelSectionRow } from 'decky-frontend-lib';
|
||||||
ButtonItem,
|
|
||||||
Focusable,
|
|
||||||
PanelSection,
|
|
||||||
PanelSectionRow,
|
|
||||||
joinClassNames,
|
|
||||||
scrollClasses,
|
|
||||||
staticClasses,
|
|
||||||
} from 'decky-frontend-lib';
|
|
||||||
import { VFC, useEffect, useState } from 'react';
|
import { VFC, useEffect, useState } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FaEyeSlash } from 'react-icons/fa';
|
import { FaEyeSlash } from 'react-icons/fa';
|
||||||
@@ -36,10 +28,7 @@ const PluginView: VFC = () => {
|
|||||||
return (
|
return (
|
||||||
<Focusable onCancelButton={closeActivePlugin}>
|
<Focusable onCancelButton={closeActivePlugin}>
|
||||||
<TitleView />
|
<TitleView />
|
||||||
<div
|
<div style={{ height: '100%', paddingTop: '16px' }}>
|
||||||
className={joinClassNames(staticClasses.TabGroupPanel, scrollClasses.ScrollPanel, scrollClasses.ScrollY)}
|
|
||||||
style={{ height: '100%' }}
|
|
||||||
>
|
|
||||||
{(visible || activePlugin.alwaysRender) && activePlugin.content}
|
{(visible || activePlugin.alwaysRender) && activePlugin.content}
|
||||||
</div>
|
</div>
|
||||||
</Focusable>
|
</Focusable>
|
||||||
@@ -48,7 +37,11 @@ const PluginView: VFC = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TitleView />
|
<TitleView />
|
||||||
<div className={joinClassNames(staticClasses.TabGroupPanel, scrollClasses.ScrollPanel, scrollClasses.ScrollY)}>
|
<div
|
||||||
|
style={{
|
||||||
|
paddingTop: '16px',
|
||||||
|
}}
|
||||||
|
>
|
||||||
<PanelSection>
|
<PanelSection>
|
||||||
{pluginList
|
{pluginList
|
||||||
.filter((p) => p.content)
|
.filter((p) => p.content)
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ const titleStyles: CSSProperties = {
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
paddingTop: '3px',
|
paddingTop: '3px',
|
||||||
paddingRight: '16px',
|
paddingRight: '16px',
|
||||||
|
position: 'sticky',
|
||||||
|
top: '0px',
|
||||||
};
|
};
|
||||||
|
|
||||||
const TitleView: VFC = () => {
|
const TitleView: VFC = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user