mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-25 12:28:53 +02:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4644df8202 | ||
|
|
7d3b5e8123 | ||
|
|
0a4ef14239 | ||
|
|
a592883a2e |
14
CHANGELOG.md
14
CHANGELOG.md
@@ -1,3 +1,17 @@
|
|||||||
|
## [1.7.3](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.7.2...v1.7.3) (2022-08-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **Router:** Add more members to Router interface ([#12](https://github.com/SteamDeckHomebrew/decky-frontend-lib/issues/12)) ([7d3b5e8](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/7d3b5e8123f6eeead1e2e227985069e54fe52572))
|
||||||
|
|
||||||
|
## [1.7.2](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.7.1...v1.7.2) (2022-08-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **utils:** allow prop reassigns to fail ([a592883](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/a592883a2eba52ba18876989acf939d12fa61fd3))
|
||||||
|
|
||||||
## [1.7.1](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.7.0...v1.7.1) (2022-08-17)
|
## [1.7.1](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.7.0...v1.7.1) (2022-08-17)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "decky-frontend-lib",
|
"name": "decky-frontend-lib",
|
||||||
"version": "1.7.1",
|
"version": "1.7.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "decky-frontend-lib",
|
"name": "decky-frontend-lib",
|
||||||
"version": "1.7.1",
|
"version": "1.7.3",
|
||||||
"license": "GPL-2.0-or-later",
|
"license": "GPL-2.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"minimist": "^1.2.6"
|
"minimist": "^1.2.6"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "decky-frontend-lib",
|
"name": "decky-frontend-lib",
|
||||||
"version": "1.7.1",
|
"version": "1.7.3",
|
||||||
"description": "A library for building decky plugins",
|
"description": "A library for building decky plugins",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|||||||
@@ -69,14 +69,24 @@ export interface Router {
|
|||||||
GetQuickAccessTab(): QuickAccessTab;
|
GetQuickAccessTab(): QuickAccessTab;
|
||||||
Navigate(path: string): void;
|
Navigate(path: string): void;
|
||||||
NavigateBackOrOpenMenu(): void;
|
NavigateBackOrOpenMenu(): void;
|
||||||
|
NavigateToAppProperties(): void
|
||||||
|
NavigateToBugForum(): void
|
||||||
NavigateToExternalWeb(url: string): void;
|
NavigateToExternalWeb(url: string): void;
|
||||||
|
NavigateToHelp(): void
|
||||||
|
NavigateToInvites(): void
|
||||||
NavigateToRunningApp(replace?: boolean): void;
|
NavigateToRunningApp(replace?: boolean): void;
|
||||||
NavigateToStore(): void;
|
NavigateToStorage(): void
|
||||||
|
NavigateToStore(): void
|
||||||
|
NavigateToStoreApp(appId: number | string): void
|
||||||
|
NavigateToStoreFreeToPlay(): void
|
||||||
|
NavigateToStoreManual(): void
|
||||||
|
NavigateToStoreNewReleases(): void
|
||||||
|
NavigateToStoreOnSale(): void
|
||||||
ToggleSideMenu(sideMenu: SideMenu): void;
|
ToggleSideMenu(sideMenu: SideMenu): void;
|
||||||
CloseSideMenus(): void;
|
CloseSideMenus(): void;
|
||||||
OpenSideMenu(sideMenu: SideMenu): void;
|
OpenSideMenu(sideMenu: SideMenu): void;
|
||||||
OpenPowerMenu(unknown?: any): void;
|
OpenPowerMenu(unknown?: any): void;
|
||||||
get RunningApps(): any;
|
get RunningApps(): AppOverview[];
|
||||||
get MainRunningApp(): AppOverview | undefined;
|
get MainRunningApp(): AppOverview | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -90,10 +90,14 @@ export function wrapReactClass(node: any, prop?: any) {
|
|||||||
const cls = node[prop || "type"];
|
const cls = node[prop || "type"];
|
||||||
const wrappedCls = class extends cls {};
|
const wrappedCls = class extends cls {};
|
||||||
Object.getOwnPropertyNames(cls.prototype).forEach((prop: any) => {
|
Object.getOwnPropertyNames(cls.prototype).forEach((prop: any) => {
|
||||||
wrappedCls.prototype[prop] = cls.prototype[prop]
|
try {
|
||||||
|
wrappedCls.prototype[prop] = cls.prototype[prop]
|
||||||
|
} catch (e) {}
|
||||||
});
|
});
|
||||||
Object.getOwnPropertyNames(cls).forEach((prop: any) => {
|
Object.getOwnPropertyNames(cls).forEach((prop: any) => {
|
||||||
if (prop != "prototype") wrappedCls[prop] = cls[prop]
|
try {
|
||||||
|
if (prop != "prototype") wrappedCls[prop] = cls[prop]
|
||||||
|
} catch (e) {}
|
||||||
});
|
});
|
||||||
wrappedCls.prototype.__proto__ = cls.prototype.__proto__;
|
wrappedCls.prototype.__proto__ = cls.prototype.__proto__;
|
||||||
return node[prop || "type"] = wrappedCls;
|
return node[prop || "type"] = wrappedCls;
|
||||||
|
|||||||
Reference in New Issue
Block a user