mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 04:04:16 +00:00
show signup reason in user admin screen
This commit is contained in:
4
locales/index.d.ts
vendored
4
locales/index.d.ts
vendored
@@ -13257,6 +13257,10 @@ export interface Locale extends ILocale {
|
||||
* ActivityPub user data in its raw form. These fields are public and accessible to other instances.
|
||||
*/
|
||||
"rawApDescription": string;
|
||||
/**
|
||||
* Signup Reason
|
||||
*/
|
||||
"signupReason": string;
|
||||
}
|
||||
declare const locales: {
|
||||
[lang: string]: Locale;
|
||||
|
||||
@@ -73,6 +73,16 @@ export const packedUserLiteSchema = {
|
||||
type: 'string',
|
||||
nullable: true, optional: false,
|
||||
},
|
||||
description: {
|
||||
type: 'string',
|
||||
nullable: true, optional: false,
|
||||
example: 'Hi masters, I am Ai!',
|
||||
},
|
||||
createdAt: {
|
||||
type: 'string',
|
||||
nullable: false, optional: false,
|
||||
format: 'date-time',
|
||||
},
|
||||
avatarDecorations: {
|
||||
type: 'array',
|
||||
nullable: false, optional: false,
|
||||
@@ -278,11 +288,6 @@ export const packedUserDetailedNotMeOnlySchema = {
|
||||
nullable: false, optional: false,
|
||||
},
|
||||
},
|
||||
createdAt: {
|
||||
type: 'string',
|
||||
nullable: false, optional: false,
|
||||
format: 'date-time',
|
||||
},
|
||||
updatedAt: {
|
||||
type: 'string',
|
||||
nullable: true, optional: false,
|
||||
@@ -324,11 +329,6 @@ export const packedUserDetailedNotMeOnlySchema = {
|
||||
nullable: false, optional: false,
|
||||
example: false,
|
||||
},
|
||||
description: {
|
||||
type: 'string',
|
||||
nullable: true, optional: false,
|
||||
example: 'Hi masters, I am Ai!',
|
||||
},
|
||||
location: {
|
||||
type: 'string',
|
||||
nullable: true, optional: false,
|
||||
|
||||
@@ -221,6 +221,10 @@ export const meta = {
|
||||
},
|
||||
},
|
||||
},
|
||||
signupReason: {
|
||||
type: 'string',
|
||||
optional: false, nullable: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
|
||||
@@ -19,7 +19,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
<div>{{ email }}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div :class="$style.label">Reason</div>
|
||||
<div :class="$style.label">{{ i18n.ts.signupReason }}</div>
|
||||
<div>{{ reason }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -130,6 +130,11 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
</div>
|
||||
</FormSection>
|
||||
|
||||
<FormSection v-else-if="info.signupReason">
|
||||
<template #label>{{ i18n.ts.signupReason }}</template>
|
||||
{{ info.signupReason }}
|
||||
</FormSection>
|
||||
|
||||
<FormSection v-if="!isSystem && user && iAmModerator">
|
||||
<div class="_gaps">
|
||||
<MkSwitch v-model="silenced" @update:modelValue="toggleSilence">{{ i18n.ts.silence }}</MkSwitch>
|
||||
|
||||
@@ -4246,6 +4246,10 @@ export type components = {
|
||||
/** Format: url */
|
||||
avatarUrl: string | null;
|
||||
avatarBlurhash: string | null;
|
||||
/** @example Hi masters, I am Ai! */
|
||||
description: string | null;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
avatarDecorations: {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
@@ -4304,8 +4308,6 @@ export type components = {
|
||||
movedTo: string | null;
|
||||
alsoKnownAs: string[] | null;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** Format: date-time */
|
||||
updatedAt: string | null;
|
||||
/** Format: date-time */
|
||||
lastFetchedAt: string | null;
|
||||
@@ -4319,8 +4321,6 @@ export type components = {
|
||||
isSilenced: boolean;
|
||||
/** @example false */
|
||||
isSuspended: boolean;
|
||||
/** @example Hi masters, I am Ai! */
|
||||
description: string | null;
|
||||
location: string | null;
|
||||
/** @example 2018-03-12 */
|
||||
birthday: string | null;
|
||||
@@ -11236,6 +11236,7 @@ export type operations = {
|
||||
remoteFollowing: number;
|
||||
remoteFollowers: number;
|
||||
};
|
||||
signupReason: string | null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -628,3 +628,5 @@ noteFooterLabel: "Note controls"
|
||||
rawUserDescription: "Packed user data in its raw form. Most of these fields are public and visible to all users."
|
||||
rawInfoDescription: "Extended user data in its raw form. These fields are private and can only be accessed by moderators."
|
||||
rawApDescription: "ActivityPub user data in its raw form. These fields are public and accessible to other instances."
|
||||
|
||||
signupReason: "Signup Reason"
|
||||
|
||||
Reference in New Issue
Block a user