summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrainDoctor <traindoctor@protonmail.com>2024-02-04 18:51:12 -0800
committerTrainDoctor <traindoctor@protonmail.com>2024-02-04 18:51:12 -0800
commit82cb4860e0b069f6feb259f7d68d78a65896dacc (patch)
tree42f6079794fa66059578e2fe6d35fd25b7060ee2
parent498ca9b13d5fc951a4d1be7b0f4e0f5e9aef0fc6 (diff)
downloaddecky-bazzite-buddy-82cb4860e0b069f6feb259f7d68d78a65896dacc.tar.gz
decky-bazzite-buddy-82cb4860e0b069f6feb259f7d68d78a65896dacc.zip
Update DFL and fix navigation
-rw-r--r--package.json2
-rw-r--r--pnpm-lock.yaml22
-rwxr-xr-xsrc/index.tsx8
3 files changed, 16 insertions, 16 deletions
diff --git a/package.json b/package.json
index 570eae3..0b7d8c2 100644
--- a/package.json
+++ b/package.json
@@ -39,7 +39,7 @@
"typescript": "^4.7.4"
},
"dependencies": {
- "decky-frontend-lib": "^3.21.1",
+ "decky-frontend-lib": "^3.24.5",
"react-icons": "^4.4.0"
},
"pnpm": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index ba88465..e37b140 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1,9 +1,13 @@
lockfileVersion: '6.0'
+settings:
+ autoInstallPeers: true
+ excludeLinksFromLockfile: false
+
dependencies:
decky-frontend-lib:
- specifier: ^3.21.1
- version: 3.21.1
+ specifier: ^3.24.5
+ version: 3.24.5
react-icons:
specifier: ^4.4.0
version: 4.9.0
@@ -430,8 +434,8 @@ packages:
resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==}
dev: true
- /decky-frontend-lib@3.21.1:
- resolution: {integrity: sha512-30605ET9qqZ6St6I9WmMmLGgSrTIdMwo7xy85+lRaF1miUd2icOGEJjwnbVcZDdkal+1fJ3tNEDXlchVfG4TrA==}
+ /decky-frontend-lib@3.24.5:
+ resolution: {integrity: sha512-eYlbKDOOcIBPI0b76Rqvlryq2ym/QNiry4xf2pFrXmBa1f95dflqbQAb2gTq9uHEa5gFmeV4lUcMPGJ3M14Xqw==}
dev: false
/deepmerge@4.3.1:
@@ -514,8 +518,8 @@ packages:
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
dev: true
- /fsevents@2.3.2:
- resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==}
+ /fsevents@2.3.3:
+ resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
os: [darwin]
requiresBuild: true
@@ -739,7 +743,7 @@ packages:
engines: {node: '>=10.0.0'}
hasBin: true
optionalDependencies:
- fsevents: 2.3.2
+ fsevents: 2.3.3
dev: true
/safe-buffer@5.2.1:
@@ -936,7 +940,3 @@ packages:
/wrappy@1.0.2:
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
dev: true
-
-settings:
- autoInstallPeers: true
- excludeLinksFromLockfile: false
diff --git a/src/index.tsx b/src/index.tsx
index a1f4bc5..b43e86a 100755
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -4,9 +4,9 @@ import {
DialogButton,
Menu,
MenuItem,
+ Navigation,
PanelSection,
PanelSectionRow,
- Router,
ServerAPI,
showContextMenu,
staticClasses,
@@ -67,8 +67,8 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({serverAPI}) => {
<ButtonItem
layout="below"
onClick={() => {
- Router.CloseSideMenus();
- Router.Navigate("/decky-plugin-test");
+ Navigation.CloseSideMenus();
+ Navigation.Navigate("/decky-plugin-test");
}}
>
Router
@@ -82,7 +82,7 @@ const DeckyPluginRouterTest: VFC = () => {
return (
<div style={{ marginTop: "50px", color: "white" }}>
Hello World!
- <DialogButton onClick={() => Router.NavigateToLibraryTab()}>
+ <DialogButton onClick={() => Navigation.NavigateToLibraryTab()}>
Go to Library
</DialogButton>
</div>