2023-06-27 11:51:04 +00:00
|
|
|
import {Feature} from "../storage/exports.js";
|
2022-02-23 13:52:06 +00:00
|
|
|
import {
|
|
|
|
AboutSetting,
|
2022-02-23 17:17:22 +00:00
|
|
|
AnonymizeUsernamesSetting,
|
2022-02-23 13:52:06 +00:00
|
|
|
AutocompleteSetting,
|
|
|
|
BackToTopSetting,
|
2023-06-30 11:26:39 +00:00
|
|
|
HideTopicsSetting,
|
2022-02-23 13:52:06 +00:00
|
|
|
HideVotesSetting,
|
|
|
|
JumpToNewCommentSetting,
|
|
|
|
MarkdownToolbarSetting,
|
2023-07-11 17:07:13 +00:00
|
|
|
MiscellaneousSetting,
|
2022-02-27 21:51:54 +00:00
|
|
|
ThemedLogoSetting,
|
2022-02-23 13:52:06 +00:00
|
|
|
UserLabelsSetting,
|
2022-02-25 00:06:24 +00:00
|
|
|
UsernameColorsSetting,
|
2023-06-23 10:52:03 +00:00
|
|
|
} from "./components/exports.js";
|
2022-02-23 13:52:06 +00:00
|
|
|
|
2023-06-23 10:52:03 +00:00
|
|
|
type FeatureData = {
|
2022-02-25 13:47:20 +00:00
|
|
|
availableSince: Date;
|
2023-07-15 09:13:04 +00:00
|
|
|
lastUpdated?: Date;
|
2022-02-25 00:34:11 +00:00
|
|
|
index: number;
|
2023-06-23 10:52:03 +00:00
|
|
|
key: Feature;
|
2022-02-25 00:34:11 +00:00
|
|
|
title: string;
|
2023-06-23 10:52:03 +00:00
|
|
|
component: any;
|
2022-02-25 00:34:11 +00:00
|
|
|
};
|
|
|
|
|
2023-06-23 10:52:03 +00:00
|
|
|
export const features: FeatureData[] = [
|
2022-02-23 17:17:22 +00:00
|
|
|
{
|
2023-06-23 10:52:03 +00:00
|
|
|
availableSince: new Date("2022-02-23"),
|
2022-02-23 17:17:22 +00:00
|
|
|
index: 0,
|
2023-06-23 10:52:03 +00:00
|
|
|
key: Feature.AnonymizeUsernames,
|
|
|
|
title: "Anonymize Usernames",
|
|
|
|
component: AnonymizeUsernamesSetting,
|
2022-02-23 17:17:22 +00:00
|
|
|
},
|
2022-02-23 13:52:06 +00:00
|
|
|
{
|
2023-06-23 10:52:03 +00:00
|
|
|
availableSince: new Date("2020-10-03"),
|
2022-02-23 13:52:06 +00:00
|
|
|
index: 0,
|
2023-06-23 10:52:03 +00:00
|
|
|
key: Feature.Autocomplete,
|
|
|
|
title: "Autocomplete",
|
|
|
|
component: AutocompleteSetting,
|
2022-02-23 13:52:06 +00:00
|
|
|
},
|
|
|
|
{
|
2023-06-23 10:52:03 +00:00
|
|
|
availableSince: new Date("2019-11-10"),
|
2022-02-23 13:52:06 +00:00
|
|
|
index: 0,
|
2023-06-23 10:52:03 +00:00
|
|
|
key: Feature.BackToTop,
|
|
|
|
title: "Back To Top",
|
|
|
|
component: BackToTopSetting,
|
2022-02-23 13:52:06 +00:00
|
|
|
},
|
2023-06-30 11:26:39 +00:00
|
|
|
{
|
2023-07-04 18:15:17 +00:00
|
|
|
availableSince: new Date("2023-07-01"),
|
2023-06-30 11:26:39 +00:00
|
|
|
index: 0,
|
|
|
|
key: Feature.HideTopics,
|
|
|
|
title: "Hide Topics",
|
|
|
|
component: HideTopicsSetting,
|
|
|
|
},
|
2022-02-23 13:52:06 +00:00
|
|
|
{
|
2023-06-23 10:52:03 +00:00
|
|
|
availableSince: new Date("2019-11-12"),
|
2022-02-23 13:52:06 +00:00
|
|
|
index: 0,
|
2023-06-23 10:52:03 +00:00
|
|
|
key: Feature.HideVotes,
|
|
|
|
title: "Hide Votes",
|
|
|
|
component: HideVotesSetting,
|
2022-02-23 13:52:06 +00:00
|
|
|
},
|
|
|
|
{
|
2023-06-23 10:52:03 +00:00
|
|
|
availableSince: new Date("2019-11-10"),
|
2022-02-23 13:52:06 +00:00
|
|
|
index: 0,
|
2023-06-23 10:52:03 +00:00
|
|
|
key: Feature.JumpToNewComment,
|
|
|
|
title: "Jump To New Comment",
|
|
|
|
component: JumpToNewCommentSetting,
|
2022-02-23 13:52:06 +00:00
|
|
|
},
|
|
|
|
{
|
2023-06-23 10:52:03 +00:00
|
|
|
availableSince: new Date("2019-11-12"),
|
2022-02-23 13:52:06 +00:00
|
|
|
index: 0,
|
2023-06-23 10:52:03 +00:00
|
|
|
key: Feature.MarkdownToolbar,
|
|
|
|
title: "Markdown Toolbar",
|
|
|
|
component: MarkdownToolbarSetting,
|
2022-02-23 13:52:06 +00:00
|
|
|
},
|
2023-07-11 17:07:13 +00:00
|
|
|
{
|
|
|
|
availableSince: new Date("2023-07-16"),
|
2023-07-15 09:13:04 +00:00
|
|
|
lastUpdated: new Date("2023-07-16"),
|
2023-07-11 17:07:13 +00:00
|
|
|
index: 0,
|
|
|
|
key: Feature.Miscellaneous,
|
|
|
|
title: "Miscellaneous",
|
|
|
|
component: MiscellaneousSetting,
|
|
|
|
},
|
2022-02-27 21:51:54 +00:00
|
|
|
{
|
2023-06-23 10:52:03 +00:00
|
|
|
availableSince: new Date("2022-02-27"),
|
2022-02-27 21:51:54 +00:00
|
|
|
index: 0,
|
2023-06-23 10:52:03 +00:00
|
|
|
key: Feature.ThemedLogo,
|
|
|
|
title: "Themed Logo",
|
|
|
|
component: ThemedLogoSetting,
|
2022-02-27 21:51:54 +00:00
|
|
|
},
|
2022-02-23 13:52:06 +00:00
|
|
|
{
|
2023-06-23 10:52:03 +00:00
|
|
|
availableSince: new Date("2019-11-10"),
|
2022-02-23 13:52:06 +00:00
|
|
|
index: 0,
|
2023-06-23 10:52:03 +00:00
|
|
|
key: Feature.UserLabels,
|
|
|
|
title: "User Labels",
|
|
|
|
component: UserLabelsSetting,
|
2022-02-23 13:52:06 +00:00
|
|
|
},
|
2022-02-25 00:06:24 +00:00
|
|
|
{
|
2023-06-23 10:52:03 +00:00
|
|
|
availableSince: new Date("2022-02-25"),
|
2023-07-15 09:13:04 +00:00
|
|
|
lastUpdated: new Date("2023-07-16"),
|
2022-02-25 00:06:24 +00:00
|
|
|
index: 0,
|
2023-06-23 10:52:03 +00:00
|
|
|
key: Feature.UsernameColors,
|
|
|
|
title: "Username Colors",
|
|
|
|
component: UsernameColorsSetting,
|
2022-02-25 00:06:24 +00:00
|
|
|
},
|
2022-02-23 13:52:06 +00:00
|
|
|
{
|
2023-06-23 10:52:03 +00:00
|
|
|
availableSince: new Date("2019-11-10"),
|
2022-02-23 13:52:06 +00:00
|
|
|
index: 1,
|
2023-06-23 10:52:03 +00:00
|
|
|
key: Feature.Debug,
|
|
|
|
title: "About & Info",
|
|
|
|
component: AboutSetting,
|
2022-02-23 13:52:06 +00:00
|
|
|
},
|
2022-02-25 00:34:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
features.sort((a, b) => a.index - b.index);
|