mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(dashboard): add new privacy fields
This commit is contained in:
parent
73e4120d47
commit
47ed819ea2
5 changed files with 13 additions and 3 deletions
|
|
@ -5,6 +5,8 @@ export interface SystemPrivacy {
|
|||
front_history_privacy?: string,
|
||||
group_list_privacy?: string,
|
||||
pronoun_privacy?: string,
|
||||
avatar_privacy?: string,
|
||||
name_privacy?: string
|
||||
}
|
||||
|
||||
export interface System {
|
||||
|
|
@ -40,7 +42,8 @@ export interface MemberPrivacy {
|
|||
birthday_privacy?: string,
|
||||
pronoun_privacy?: string,
|
||||
avatar_privacy?: string,
|
||||
metadata_privacy?: string
|
||||
metadata_privacy?: string,
|
||||
proxy_privacy?: string
|
||||
}
|
||||
|
||||
interface proxytag {
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
name_privacy: "Name",
|
||||
pronoun_privacy: "Pronouns",
|
||||
visibility: "Visibility",
|
||||
proxy_privacy: "Proxy Tags"
|
||||
};
|
||||
|
||||
async function submit() {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,9 @@
|
|||
front_privacy: "Front",
|
||||
front_history_privacy: "Front history",
|
||||
group_list_privacy: "Group list",
|
||||
pronoun_privacy: "Pronouns"
|
||||
pronoun_privacy: "Pronouns",
|
||||
avatar_privacy: "Avatar",
|
||||
name_privacy: "Name"
|
||||
};
|
||||
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,9 @@
|
|||
front_privacy: "Front",
|
||||
front_history_privacy: "Front history",
|
||||
group_list_privacy: "Group list",
|
||||
pronoun_privacy: "Pronouns"
|
||||
pronoun_privacy: "Pronouns",
|
||||
avatar_privacy: "Avatar",
|
||||
name_privacy: "Name"
|
||||
};
|
||||
|
||||
async function submit() {
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
pronoun_privacy: "no change",
|
||||
visibility: "no change",
|
||||
metadata_privacy: "no change",
|
||||
proxy_privacy: "no change",
|
||||
};
|
||||
|
||||
const privacyNames: { [P in keyof MemberPrivacy]-?: string; } = {
|
||||
|
|
@ -33,6 +34,7 @@
|
|||
name_privacy: "Name",
|
||||
pronoun_privacy: "Pronouns",
|
||||
visibility: "Visibility",
|
||||
proxy_privacy: "Proxy Tags"
|
||||
};
|
||||
|
||||
async function submit() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue