mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-02-12 12:12:41 +00:00
fix: m0 should not have profiles
refactor: remove old editor/chat/learn links
This commit is contained in:
@@ -183,11 +183,11 @@ export class CharaDevice {
|
|||||||
this.company = company as typeof this.company;
|
this.company = company as typeof this.company;
|
||||||
this.device = device as typeof this.device;
|
this.device = device as typeof this.device;
|
||||||
this.chipset = chipset as typeof this.chipset;
|
this.chipset = chipset as typeof this.chipset;
|
||||||
if (semverGte(this.version, "2.2.0-beta.4")) {
|
if (semverGte(this.version, "2.2.0-beta.4") && this.chipset !== "M0") {
|
||||||
this.profileCount = this.chipset === "M0" ? 2 : 3;
|
this.profileCount = 3;
|
||||||
}
|
}
|
||||||
if (semverGte(this.version, "2.2.0-beta.20")) {
|
if (semverGte(this.version, "2.2.0-beta.20") && this.chipset !== "M0") {
|
||||||
this.layerCount = this.chipset === "M0" ? 3 : 4;
|
this.layerCount = 4;
|
||||||
}
|
}
|
||||||
this.keyCount = KEY_COUNTS[this.device];
|
this.keyCount = KEY_COUNTS[this.device];
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -36,14 +36,6 @@
|
|||||||
external: true,
|
external: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
|
||||||
{ href: "/editor", icon: "edit_document", title: "Editor", wip: true },
|
|
||||||
{ href: "/chat", icon: "chat", title: "Chat", wip: true },
|
|
||||||
{ href: "/learn", icon: "school", title: "Learn", wip: true },
|
|
||||||
],
|
|
||||||
/*[
|
|
||||||
{ href: "/plugin", icon: "code", title: "Plugin", wip: true },
|
|
||||||
],*/
|
|
||||||
] satisfies {
|
] satisfies {
|
||||||
href: string;
|
href: string;
|
||||||
icon: string;
|
icon: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user