✨ feat(api): Add an interface to obtain user subscription details, update related type definitions and localized text
This commit is contained in:
@@ -76,7 +76,7 @@ export default function Page() {
|
||||
return (
|
||||
<>
|
||||
{description && <li className='text-muted-foreground'>{description}</li>}
|
||||
{features.map(
|
||||
{features?.map(
|
||||
(
|
||||
feature: {
|
||||
icon: string;
|
||||
|
||||
@@ -71,7 +71,7 @@ export function Content({ subscriptionData }: ProductShowcaseProps) {
|
||||
return (
|
||||
<>
|
||||
{description && <li className='text-muted-foreground'>{description}</li>}
|
||||
{features.map(
|
||||
{features?.map(
|
||||
(
|
||||
feature: {
|
||||
type: string;
|
||||
|
||||
+12
-11
@@ -142,7 +142,13 @@ declare namespace API {
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type Currency = {
|
||||
currency_unit: string;
|
||||
currency_symbol: string;
|
||||
};
|
||||
|
||||
type CurrencyConfig = {
|
||||
access_key: string;
|
||||
currency_unit: string;
|
||||
currency_symbol: string;
|
||||
};
|
||||
@@ -214,7 +220,7 @@ declare namespace API {
|
||||
verify: VeifyConfig;
|
||||
auth: AuthConfig;
|
||||
invite: InviteConfig;
|
||||
currency: CurrencyConfig;
|
||||
currency: Currency;
|
||||
subscribe: SubscribeConfig;
|
||||
verify_code: PubilcVerifyCodeConfig;
|
||||
oauth_methods: string[];
|
||||
@@ -300,9 +306,11 @@ declare namespace API {
|
||||
};
|
||||
|
||||
type NodeStatus = {
|
||||
online_users: OnlineUser[];
|
||||
status: ServerStatus;
|
||||
last_at: number;
|
||||
online: Record<string, any>;
|
||||
cpu: number;
|
||||
mem: number;
|
||||
disk: number;
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type OAthLoginRequest = {
|
||||
@@ -639,13 +647,6 @@ declare namespace API {
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type ServerStatus = {
|
||||
cpu: number;
|
||||
mem: number;
|
||||
disk: number;
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type Shadowsocks = {
|
||||
method: string;
|
||||
port: number;
|
||||
|
||||
Vendored
+6
-10
@@ -160,6 +160,7 @@ declare namespace API {
|
||||
};
|
||||
|
||||
type CurrencyConfig = {
|
||||
access_key: string;
|
||||
currency_unit: string;
|
||||
currency_symbol: string;
|
||||
};
|
||||
@@ -331,9 +332,11 @@ declare namespace API {
|
||||
};
|
||||
|
||||
type NodeStatus = {
|
||||
online_users: OnlineUser[];
|
||||
status: ServerStatus;
|
||||
last_at: number;
|
||||
online: Record<string, any>;
|
||||
cpu: number;
|
||||
mem: number;
|
||||
disk: number;
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type OnlineUser = {
|
||||
@@ -757,13 +760,6 @@ declare namespace API {
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type ServerStatus = {
|
||||
cpu: number;
|
||||
mem: number;
|
||||
disk: number;
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type Shadowsocks = {
|
||||
method: string;
|
||||
port: number;
|
||||
|
||||
Reference in New Issue
Block a user