✨ feat(view): Add AnyTLS protocol support and enhance node configuration options
This commit is contained in:
+11
-10
@@ -8,21 +8,21 @@ import { NextIntlClientProvider } from 'next-intl';
|
||||
import { getLocale, getMessages } from 'next-intl/server';
|
||||
import { PublicEnvScript } from 'next-runtime-env';
|
||||
import { unstable_noStore as noStore } from 'next/cache';
|
||||
import { Geist, Geist_Mono } from 'next/font/google';
|
||||
// import { Geist, Geist_Mono } from 'next/font/google';
|
||||
import { cookies } from 'next/headers';
|
||||
import { Metadata, Viewport } from 'next/types';
|
||||
import NextTopLoader from 'nextjs-toploader';
|
||||
import React from 'react';
|
||||
|
||||
const fontSans = Geist({
|
||||
subsets: ['latin'],
|
||||
variable: '--font-sans',
|
||||
});
|
||||
// const fontSans = Geist({
|
||||
// subsets: ['latin'],
|
||||
// variable: '--font-sans',
|
||||
// });
|
||||
|
||||
const fontMono = Geist_Mono({
|
||||
subsets: ['latin'],
|
||||
variable: '--font-mono',
|
||||
});
|
||||
// const fontMono = Geist_Mono({
|
||||
// subsets: ['latin'],
|
||||
// variable: '--font-mono',
|
||||
// });
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
noStore();
|
||||
@@ -106,7 +106,8 @@ export default async function RootLayout({
|
||||
</head>
|
||||
<body
|
||||
suppressHydrationWarning
|
||||
className={`${fontSans.variable} ${fontMono.variable} size-full min-h-[calc(100dvh-env(safe-area-inset-top))] font-sans antialiased`}
|
||||
// ${fontSans.variable} ${fontMono.variable}
|
||||
className={`size-full min-h-[calc(100dvh-env(safe-area-inset-top))] font-sans antialiased`}
|
||||
>
|
||||
<NextIntlClientProvider messages={messages}>
|
||||
<NextTopLoader showSpinner={false} />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore
|
||||
/* eslint-disable */
|
||||
|
||||
import request from '@/utils/request';
|
||||
|
||||
/** Apple Login Callback POST /v1/auth/oauth/callback/apple */
|
||||
|
||||
+49
-1
@@ -28,6 +28,11 @@ declare namespace API {
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type AnyTLS = {
|
||||
port: number;
|
||||
security_config: SecurityConfig;
|
||||
};
|
||||
|
||||
type AppleLoginCallbackRequest = {
|
||||
code: string;
|
||||
id_token: string;
|
||||
@@ -81,6 +86,40 @@ declare namespace API {
|
||||
is_default: boolean;
|
||||
};
|
||||
|
||||
type AppUserSubcbribe = {
|
||||
id: number;
|
||||
name: string;
|
||||
upload: number;
|
||||
traffic: number;
|
||||
download: number;
|
||||
device_limit: number;
|
||||
start_time: string;
|
||||
expire_time: string;
|
||||
list: AppUserSubscbribeNode[];
|
||||
};
|
||||
|
||||
type AppUserSubscbribeNode = {
|
||||
id: number;
|
||||
name: string;
|
||||
uuid: string;
|
||||
protocol: string;
|
||||
relay_mode: string;
|
||||
relay_node: string;
|
||||
server_addr: string;
|
||||
speed_limit: number;
|
||||
tags: string[];
|
||||
traffic: number;
|
||||
traffic_ratio: number;
|
||||
upload: number;
|
||||
config: string;
|
||||
country: string;
|
||||
city: string;
|
||||
latitude: string;
|
||||
longitude: string;
|
||||
created_at: number;
|
||||
download: number;
|
||||
};
|
||||
|
||||
type AuthConfig = {
|
||||
mobile: MobileAuthenticateConfig;
|
||||
email: EmailAuthticateConfig;
|
||||
@@ -473,7 +512,7 @@ declare namespace API {
|
||||
type PurchaseOrderRequest = {
|
||||
subscribe_id: number;
|
||||
quantity: number;
|
||||
payment: number;
|
||||
payment?: number;
|
||||
coupon?: string;
|
||||
};
|
||||
|
||||
@@ -526,6 +565,11 @@ declare namespace API {
|
||||
total: number;
|
||||
};
|
||||
|
||||
type QueryUserAffiliateCountResponse = {
|
||||
registers: number;
|
||||
total_commission: number;
|
||||
};
|
||||
|
||||
type QueryUserAffiliateListRequest = {
|
||||
page: number;
|
||||
size: number;
|
||||
@@ -830,6 +874,10 @@ declare namespace API {
|
||||
|
||||
type Tuic = {
|
||||
port: number;
|
||||
disable_sni: boolean;
|
||||
reduce_rtt: boolean;
|
||||
udp_relay_mode: string;
|
||||
congestion_controller: string;
|
||||
security_config: SecurityConfig;
|
||||
};
|
||||
|
||||
|
||||
Vendored
+46
-2
@@ -28,6 +28,11 @@ declare namespace API {
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type AnyTLS = {
|
||||
port: number;
|
||||
security_config: SecurityConfig;
|
||||
};
|
||||
|
||||
type Application = {
|
||||
id: number;
|
||||
icon: string;
|
||||
@@ -75,6 +80,40 @@ declare namespace API {
|
||||
is_default: boolean;
|
||||
};
|
||||
|
||||
type AppUserSubcbribe = {
|
||||
id: number;
|
||||
name: string;
|
||||
upload: number;
|
||||
traffic: number;
|
||||
download: number;
|
||||
device_limit: number;
|
||||
start_time: string;
|
||||
expire_time: string;
|
||||
list: AppUserSubscbribeNode[];
|
||||
};
|
||||
|
||||
type AppUserSubscbribeNode = {
|
||||
id: number;
|
||||
name: string;
|
||||
uuid: string;
|
||||
protocol: string;
|
||||
relay_mode: string;
|
||||
relay_node: string;
|
||||
server_addr: string;
|
||||
speed_limit: number;
|
||||
tags: string[];
|
||||
traffic: number;
|
||||
traffic_ratio: number;
|
||||
upload: number;
|
||||
config: string;
|
||||
country: string;
|
||||
city: string;
|
||||
latitude: string;
|
||||
longitude: string;
|
||||
created_at: number;
|
||||
download: number;
|
||||
};
|
||||
|
||||
type AuthConfig = {
|
||||
mobile: MobileAuthenticateConfig;
|
||||
email: EmailAuthticateConfig;
|
||||
@@ -448,6 +487,7 @@ declare namespace API {
|
||||
subscribe_id: number;
|
||||
quantity: number;
|
||||
coupon?: string;
|
||||
invite_code?: string;
|
||||
turnstile_token?: string;
|
||||
};
|
||||
|
||||
@@ -466,7 +506,7 @@ declare namespace API {
|
||||
};
|
||||
|
||||
type PrePurchaseOrderRequest = {
|
||||
payment: number;
|
||||
payment?: number;
|
||||
subscribe_id: number;
|
||||
quantity: number;
|
||||
coupon?: string;
|
||||
@@ -511,7 +551,7 @@ declare namespace API {
|
||||
type PurchaseOrderRequest = {
|
||||
subscribe_id: number;
|
||||
quantity: number;
|
||||
payment: number;
|
||||
payment?: number;
|
||||
coupon?: string;
|
||||
};
|
||||
|
||||
@@ -899,6 +939,10 @@ declare namespace API {
|
||||
|
||||
type Tuic = {
|
||||
port: number;
|
||||
disable_sni: boolean;
|
||||
reduce_rtt: boolean;
|
||||
udp_relay_mode: string;
|
||||
congestion_controller: string;
|
||||
security_config: SecurityConfig;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user