Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
395 changes: 344 additions & 51 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "enhancer",
"module": "src/content/index.ts",
"type": "module",
"version": "5.1.15",
"version": "5.1.16",
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@preact/preset-vite": "^2.10.2",
Expand All @@ -13,7 +13,7 @@
"concurrently": "^9.1.2",
"husky": "^9.1.7",
"jszip": "^3.10.1",
"vite": "^7.0.5",
"vite": "^7.1.11",
"vite-plugin-generate-file": "^0.3.1",
"vite-tsconfig-paths": "^5.1.4"
},
Expand Down
1 change: 1 addition & 0 deletions public/assets/settings/experimental.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 18 additions & 13 deletions src/platforms/kick/modules/settings/settings.module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,40 +50,45 @@ export default class SettingsModule extends KickModule {
title: "Channel",
iconUrl: await this.commonUtils().getAssetFile(this.workerService(), "settings/channel.svg"),
},
{
title: "Experimental",
iconUrl: await this.commonUtils().getAssetFile(this.workerService(), "settings/experimental.svg"),
},
{
title: "About",
iconUrl: await this.commonUtils().getAssetFile(this.workerService(), "settings/about.svg"),
},
];
] as const;
const tabIndexes = Object.fromEntries(this.SETTINGS_TABS.map((tab, index) => [tab.title, index]));
const brandIcons = {
website: await this.commonUtils().getAssetFile(this.workerService(), "brands/website.svg"),
github: await this.commonUtils().getAssetFile(this.workerService(), "brands/github.svg"),
twitter: await this.commonUtils().getAssetFile(this.workerService(), "brands/twitter.svg"),
discord: await this.commonUtils().getAssetFile(this.workerService(), "brands/discord.svg"),
};
} as const;
this.SETTING_DEFINITIONS = [
{
id: "streamLatencyEnabled",
title: "Enable Stream Latency",
description: "Shows the current stream delay on top of the chat.",
type: "toggle",
tabIndex: 0,
tabIndex: tabIndexes.General,
requiresRefreshToDisable: true,
},
{
id: "realVideoTimeEnabled",
title: "Enable Real Video Time",
description: "Displays the real-world time of the VOD.",
type: "toggle",
tabIndex: 0,
tabIndex: tabIndexes.General,
requiresRefreshToDisable: true,
},
{
id: "realVideoTimeFormat12h",
title: "Use 12-Hour Time Format",
description: "Display real video time in 12-hour format (AM/PM) instead of 24-hour format.",
type: "toggle",
tabIndex: 0,
tabIndex: tabIndexes.General,
},
{
id: "chatImagesEnabled",
Expand All @@ -93,21 +98,21 @@ export default class SettingsModule extends KickModule {
confirmOnEnable: true,
confirmationMessage:
"Enhancer is not responsible for the content of images sent in the chat by users. By enabling this option, you can see images in the chat that may not look good. We do not moderate them in any way, we simply display them. Are you sure you want to enable this option?",
tabIndex: 1,
tabIndex: tabIndexes.Chat,
},
{
id: "chatImagesOnHover",
title: "Show Images on Hover",
description: "Images are hidden until you hover your mouse to reveal them.",
type: "toggle",
tabIndex: 1,
tabIndex: tabIndexes.Chat,
},
{
id: "chatImagesSize",
title: "Chat Image Size",
description: "Maximum size of images allowed in chat messages (in megabytes).",
type: "number",
tabIndex: 1,
tabIndex: tabIndexes.Chat,
min: 1,
step: 1,
},
Expand All @@ -116,14 +121,14 @@ export default class SettingsModule extends KickModule {
title: "Enable Chat Badges",
description: "Show custom chat badges from Enhancer extension.",
type: "toggle",
tabIndex: 1,
tabIndex: tabIndexes.Chat,
},
{
id: "chatNicknameCustomizationEnabled",
title: "Enable Nickname Customization",
description: "Show custom chat nickname customizations from Enhancer extension in chat.",
type: "toggle",
tabIndex: 1,
tabIndex: tabIndexes.Chat,
},
// {
// id: "chatMessageMenuEnabled",
Expand All @@ -137,7 +142,7 @@ export default class SettingsModule extends KickModule {
title: "Quick Access Links",
description: "Manage your quick access links with custom names and URLs",
type: "array",
tabIndex: 2,
tabIndex: tabIndexes.Channel,
arrayItemFields: [
{ name: "title", placeholder: "Enter link name..." },
{ name: "url", placeholder: "Enter URL..." },
Expand All @@ -148,7 +153,7 @@ export default class SettingsModule extends KickModule {
title: "Watchtime List",
description: "Watchtime List",
type: "text",
tabIndex: 2,
tabIndex: tabIndexes.Channel,
content: () => {
return <WatchtimeListComponent platform="kick" workerService={workerService} />;
},
Expand All @@ -159,7 +164,7 @@ export default class SettingsModule extends KickModule {
title: "About This Extension",
description: "Information about the extension",
type: "text",
tabIndex: 3,
tabIndex: tabIndexes.About,
content: () => {
return <EnhancerAboutComponent icons={brandIcons} />;
},
Expand Down
Loading