Compare commits

..

23 Commits
v1.5.1 ... main

Author SHA1 Message Date
semantic-release-bot
3aa1becf7a 🔖 chore(release): v1.6.3 [skip ci]
## [1.6.3](https://github.com/perfect-panel/ppanel-web/compare/v1.6.2...v1.6.3) (2025-12-08)

### 🐛 Bug Fixes

* **docker**: Update Dockerfiles to create non-root user with proper permissions ([1bfebb6](https://github.com/perfect-panel/ppanel-web/commit/1bfebb6))
2025-12-08 08:26:20 +00:00
web@ppanel
1bfebb698a 🐛 fix(docker): Update Dockerfiles to create non-root user with proper permissions 2025-12-08 08:23:52 +00:00
semantic-release-bot
d5d8d7e0df 🔖 chore(release): v1.6.2 [skip ci]
## [1.6.2](https://github.com/perfect-panel/ppanel-web/compare/v1.6.1...v1.6.2) (2025-12-08)

### 🐛 Bug Fixes

* **package**: Update dependencies and upgrade React and Next.js versions. ([7d0866e](https://github.com/perfect-panel/ppanel-web/commit/7d0866e))
2025-12-08 07:53:30 +00:00
web@ppanel
7d0866e2dc 🐛 fix(package): Update dependencies and upgrade React and Next.js versions. 2025-12-08 07:51:08 +00:00
semantic-release-bot
ea3964ebe5 🔖 chore(release): v1.6.1 [skip ci]
## [1.6.1](https://github.com/perfect-panel/ppanel-web/compare/v1.6.0...v1.6.1) (2025-11-05)

### 🐛 Bug Fixes

* Fixing issues with generating standard and quantum-resistant encryption keys ([5eac6a9](https://github.com/perfect-panel/ppanel-web/commit/5eac6a9))
2025-11-05 04:45:55 +00:00
web
5eac6a9f4a 🐛 fix: Fixing issues with generating standard and quantum-resistant encryption keys 2025-11-04 20:40:53 -08:00
web@ppanel
2182400adc
Merge pull request #61 from Ember-Moth/main
fix: 服务器编辑时合并协议默认配置
2025-11-04 19:51:05 -08:00
Ember Moth
5318b9cf44
Refactor protocol configuration logic in server form 2025-11-02 16:48:41 +08:00
semantic-release-bot
705391f82a 🔖 chore(release): v1.6.0 [skip ci]
# [1.6.0](https://github.com/perfect-panel/ppanel-web/compare/v1.5.4...v1.6.0) (2025-10-28)

###  Features

* Add server installation dialog and commands ([4429c9d](https://github.com/perfect-panel/ppanel-web/commit/4429c9d))

### 🐛 Bug Fixes

* Add typeRoots configuration to ensure type definitions are resolved correctly ([ad60ea9](https://github.com/perfect-panel/ppanel-web/commit/ad60ea9))
2025-10-28 09:13:37 +00:00
web
4429c9ddc9 feat: Add server installation dialog and commands 2025-10-28 02:10:12 -07:00
web
ad60ea9b18 🐛 fix: Add typeRoots configuration to ensure type definitions are resolved correctly 2025-10-27 04:05:20 -07:00
semantic-release-bot
5025fd1103 🔖 chore(release): v1.5.4 [skip ci]
## [1.5.4](https://github.com/perfect-panel/ppanel-web/compare/v1.5.3...v1.5.4) (2025-10-26)

### 🐛 Bug Fixes

* Update generateRealityKeyPair to use async key generation ([e60e369](https://github.com/perfect-panel/ppanel-web/commit/e60e369))
* Update the wallet localization file and add new fields such as automatic reset and recharge ([88aa965](https://github.com/perfect-panel/ppanel-web/commit/88aa965))
2025-10-26 18:24:43 +00:00
web
88aa9656b2 🐛 fix: Update the wallet localization file and add new fields such as automatic reset and recharge 2025-10-26 11:20:52 -07:00
web
e60e369bbe 🐛 fix: Update generateRealityKeyPair to use async key generation 2025-10-26 08:48:52 -07:00
semantic-release-bot
c3d0ef8317 🔖 chore(release): v1.5.3 [skip ci]
## [1.5.3](https://github.com/perfect-panel/ppanel-web/compare/v1.5.2...v1.5.3) (2025-10-21)

### 🐛 Bug Fixes

* Fix bugs ([a46657d](https://github.com/perfect-panel/ppanel-web/commit/a46657d))
* Fix dependencies ([8bd25d6](https://github.com/perfect-panel/ppanel-web/commit/8bd25d6))
* Remove unnecessary migration function code and add device configuration options ([521a7a9](https://github.com/perfect-panel/ppanel-web/commit/521a7a9))
* Update bun.lockb to reflect dependency changes ([ca892dd](https://github.com/perfect-panel/ppanel-web/commit/ca892dd))
2025-10-21 12:32:02 +00:00
web
8bd25d651b 🐛 fix: Fix dependencies 2025-10-21 05:28:40 -07:00
web
ca892dd359 🐛 fix: Update bun.lockb to reflect dependency changes 2025-10-21 04:38:50 -07:00
web
521a7a97fb 🐛 fix: Remove unnecessary migration function code and add device configuration options 2025-10-21 04:33:29 -07:00
web
a46657d5ef 🐛 fix: Fix bugs 2025-10-21 04:10:34 -07:00
semantic-release-bot
c2bfee1f31 🔖 chore(release): v1.5.2 [skip ci]
## [1.5.2](https://github.com/perfect-panel/ppanel-web/compare/v1.5.1...v1.5.2) (2025-09-29)

### 🐛 Bug Fixes

* Add step attribute to datetime-local inputs for precise time selection in forms ([32fd181](https://github.com/perfect-panel/ppanel-web/commit/32fd181))
* Rename 'hysteria2' to 'hysteria' across protocol definitions and schemas for consistency ([5816dd5](https://github.com/perfect-panel/ppanel-web/commit/5816dd5))
* Update protocol options in ServerConfig for accuracy and consistency ([9266529](https://github.com/perfect-panel/ppanel-web/commit/9266529))
2025-09-29 10:01:27 +00:00
web
32fd181b52 🐛 fix: Add step attribute to datetime-local inputs for precise time selection in forms 2025-09-29 02:43:39 -07:00
web
5816dd5198 🐛 fix: Rename 'hysteria2' to 'hysteria' across protocol definitions and schemas for consistency 2025-09-29 02:32:28 -07:00
web
92665293ec 🐛 fix: Update protocol options in ServerConfig for accuracy and consistency 2025-09-29 02:18:16 -07:00
89 changed files with 5150 additions and 250 deletions

View File

@ -1,29 +1,93 @@
<a name="readme-top"></a> <a name="readme-top"></a>
# Changelog # Changelog
## [1.5.1](https://github.com/perfect-panel/ppanel-web/compare/v1.5.0...v1.5.1) (2025-09-28) ## [1.6.3](https://github.com/perfect-panel/ppanel-web/compare/v1.6.2...v1.6.3) (2025-12-08)
### 🐛 Bug Fixes ### 🐛 Bug Fixes
* Simplify protocol enable checks by removing unnecessary false comparisons ([4828700](https://github.com/perfect-panel/ppanel-web/commit/4828700)) * **docker**: Update Dockerfiles to create non-root user with proper permissions ([1bfebb6](https://github.com/perfect-panel/ppanel-web/commit/1bfebb6))
# [1.5.0](https://github.com/perfect-panel/ppanel-web/compare/v1.4.8...v1.5.0) (2025-09-28) ## [1.6.2](https://github.com/perfect-panel/ppanel-web/compare/v1.6.1...v1.6.2) (2025-12-08)
### 🐛 Bug Fixes
* **package**: Update dependencies and upgrade React and Next.js versions. ([7d0866e](https://github.com/perfect-panel/ppanel-web/commit/7d0866e))
## [1.6.1](https://github.com/perfect-panel/ppanel-web/compare/v1.6.0...v1.6.1) (2025-11-05)
### 🐛 Bug Fixes
* Fixing issues with generating standard and quantum-resistant encryption keys ([5eac6a9](https://github.com/perfect-panel/ppanel-web/commit/5eac6a9))
<a name="readme-top"></a>
# Changelog
# [1.6.0](https://github.com/perfect-panel/ppanel-web/compare/v1.5.4...v1.6.0) (2025-10-28)
### ✨ Features ### ✨ Features
* Update server configuration translations for multiple languages ([fc43de1](https://github.com/perfect-panel/ppanel-web/commit/fc43de1)) - Add server installation dialog and commands ([4429c9d](https://github.com/perfect-panel/ppanel-web/commit/4429c9d))
### 🐛 Bug Fixes ### 🐛 Bug Fixes
* Add DynamicMultiplier component for managing node multipliers and update ServersPage layout ([bb6671c](https://github.com/perfect-panel/ppanel-web/commit/bb6671c)) - Add typeRoots configuration to ensure type definitions are resolved correctly ([ad60ea9](https://github.com/perfect-panel/ppanel-web/commit/ad60ea9))
* Remove unnecessary blank lines in multiple index files for cleaner code structure ([6a823b8](https://github.com/perfect-panel/ppanel-web/commit/6a823b8))
* Remove unused ratio variable from server traffic log and server form for cleaner code ([55034dc](https://github.com/perfect-panel/ppanel-web/commit/55034dc)) <a name="readme-top"></a>
* Update Badge variants and restructure traffic ratio display in ServersPage ([3d778e5](https://github.com/perfect-panel/ppanel-web/commit/3d778e5))
* Update minimum ratio value to 0 in protocol fields and adjust related schemas; enhance unit conversion in ServerConfig ([3b6ef17](https://github.com/perfect-panel/ppanel-web/commit/3b6ef17)) # Changelog
* Update protocol fields to use 'obfs' instead of 'security' and adjust related configurations ([4abdd36](https://github.com/perfect-panel/ppanel-web/commit/4abdd36))
## [1.5.4](https://github.com/perfect-panel/ppanel-web/compare/v1.5.3...v1.5.4) (2025-10-26)
### 🐛 Bug Fixes
- Update generateRealityKeyPair to use async key generation ([e60e369](https://github.com/perfect-panel/ppanel-web/commit/e60e369))
- Update the wallet localization file and add new fields such as automatic reset and recharge ([88aa965](https://github.com/perfect-panel/ppanel-web/commit/88aa965))
## [1.5.3](https://github.com/perfect-panel/ppanel-web/compare/v1.5.2...v1.5.3) (2025-10-21)
### 🐛 Bug Fixes
- Fix bugs ([a46657d](https://github.com/perfect-panel/ppanel-web/commit/a46657d))
- Fix dependencies ([8bd25d6](https://github.com/perfect-panel/ppanel-web/commit/8bd25d6))
- Remove unnecessary migration function code and add device configuration options ([521a7a9](https://github.com/perfect-panel/ppanel-web/commit/521a7a9))
- Update bun.lockb to reflect dependency changes ([ca892dd](https://github.com/perfect-panel/ppanel-web/commit/ca892dd))
<a name="readme-top"></a>
# Changelog
## [1.5.2](https://github.com/perfect-panel/ppanel-web/compare/v1.5.1...v1.5.2) (2025-09-29)
### 🐛 Bug Fixes
- Add step attribute to datetime-local inputs for precise time selection in forms ([32fd181](https://github.com/perfect-panel/ppanel-web/commit/32fd181))
- Rename 'hysteria2' to 'hysteria' across protocol definitions and schemas for consistency ([5816dd5](https://github.com/perfect-panel/ppanel-web/commit/5816dd5))
- Update protocol options in ServerConfig for accuracy and consistency ([9266529](https://github.com/perfect-panel/ppanel-web/commit/9266529))
## [1.5.1](https://github.com/perfect-panel/ppanel-web/compare/v1.5.0...v1.5.1) (2025-09-28)
### 🐛 Bug Fixes
- Simplify protocol enable checks by removing unnecessary false comparisons ([4828700](https://github.com/perfect-panel/ppanel-web/commit/4828700))
# [1.5.0](https://github.com/perfect-panel/ppanel-web/compare/v1.4.8...v1.5.0) (2025-09-28)
### ✨ Features
- Update server configuration translations for multiple languages ([fc43de1](https://github.com/perfect-panel/ppanel-web/commit/fc43de1))
### 🐛 Bug Fixes
- Add DynamicMultiplier component for managing node multipliers and update ServersPage layout ([bb6671c](https://github.com/perfect-panel/ppanel-web/commit/bb6671c))
- Remove unnecessary blank lines in multiple index files for cleaner code structure ([6a823b8](https://github.com/perfect-panel/ppanel-web/commit/6a823b8))
- Remove unused ratio variable from server traffic log and server form for cleaner code ([55034dc](https://github.com/perfect-panel/ppanel-web/commit/55034dc))
- Update Badge variants and restructure traffic ratio display in ServersPage ([3d778e5](https://github.com/perfect-panel/ppanel-web/commit/3d778e5))
- Update minimum ratio value to 0 in protocol fields and adjust related schemas; enhance unit conversion in ServerConfig ([3b6ef17](https://github.com/perfect-panel/ppanel-web/commit/3b6ef17))
- Update protocol fields to use 'obfs' instead of 'security' and adjust related configurations ([4abdd36](https://github.com/perfect-panel/ppanel-web/commit/4abdd36))
<a name="readme-top"></a> <a name="readme-top"></a>

View File

@ -225,6 +225,7 @@ export default function AdsForm<T extends Record<string, any>>({
<FormControl> <FormControl>
<EnhancedInput <EnhancedInput
type='datetime-local' type='datetime-local'
step='1'
placeholder={t('form.enterStartTime')} placeholder={t('form.enterStartTime')}
value={field.value ? new Date(field.value).toISOString().slice(0, 16) : ''} value={field.value ? new Date(field.value).toISOString().slice(0, 16) : ''}
min={Number(new Date().toISOString().slice(0, 16))} min={Number(new Date().toISOString().slice(0, 16))}
@ -253,6 +254,7 @@ export default function AdsForm<T extends Record<string, any>>({
<FormControl> <FormControl>
<EnhancedInput <EnhancedInput
type='datetime-local' type='datetime-local'
step='1'
placeholder={t('form.enterEndTime')} placeholder={t('form.enterEndTime')}
value={ value={
field.value ? new Date(field.value).toISOString().slice(0, 16) : '' field.value ? new Date(field.value).toISOString().slice(0, 16) : ''

View File

@ -366,6 +366,7 @@ export default function EmailBroadcastForm() {
<FormControl> <FormControl>
<EnhancedInput <EnhancedInput
type='datetime-local' type='datetime-local'
step='1'
disabled={form.watch('scope') === 5} // ScopeSkip disabled={form.watch('scope') === 5} // ScopeSkip
value={field.value} value={field.value}
onValueChange={field.onChange} onValueChange={field.onChange}
@ -384,6 +385,7 @@ export default function EmailBroadcastForm() {
<FormControl> <FormControl>
<EnhancedInput <EnhancedInput
type='datetime-local' type='datetime-local'
step='1'
disabled={form.watch('scope') === 5} // ScopeSkip disabled={form.watch('scope') === 5} // ScopeSkip
value={field.value} value={field.value}
onValueChange={field.onChange} onValueChange={field.onChange}
@ -425,6 +427,7 @@ export default function EmailBroadcastForm() {
<FormControl> <FormControl>
<EnhancedInput <EnhancedInput
type='datetime-local' type='datetime-local'
step='1'
placeholder={t('leaveEmptyForImmediateSend')} placeholder={t('leaveEmptyForImmediateSend')}
value={field.value} value={field.value}
onValueChange={field.onChange} onValueChange={field.onChange}

View File

@ -269,6 +269,7 @@ export default function QuotaBroadcastForm() {
<FormControl> <FormControl>
<EnhancedInput <EnhancedInput
type='datetime-local' type='datetime-local'
step='1'
value={field.value} value={field.value}
onValueChange={field.onChange} onValueChange={field.onChange}
/> />
@ -286,6 +287,7 @@ export default function QuotaBroadcastForm() {
<FormControl> <FormControl>
<EnhancedInput <EnhancedInput
type='datetime-local' type='datetime-local'
step='1'
value={field.value} value={field.value}
onValueChange={field.onChange} onValueChange={field.onChange}
/> />

View File

@ -36,9 +36,13 @@ export type ProtocolName =
| 'vmess' | 'vmess'
| 'vless' | 'vless'
| 'trojan' | 'trojan'
| 'hysteria2' | 'hysteria'
| 'tuic' | 'tuic'
| 'anytls'; | 'anytls'
| 'naive'
| 'http'
| 'socks'
| 'mieru';
const buildSchema = (t: ReturnType<typeof useTranslations>) => const buildSchema = (t: ReturnType<typeof useTranslations>) =>
z.object({ z.object({

View File

@ -79,8 +79,18 @@ export default function DynamicMultiplier() {
<div className='space-y-4 pt-4'> <div className='space-y-4 pt-4'>
<ArrayInput<API.TimePeriod> <ArrayInput<API.TimePeriod>
fields={[ fields={[
{ name: 'start_time', prefix: t('server_config.fields.start_time'), type: 'time' }, {
{ name: 'end_time', prefix: t('server_config.fields.end_time'), type: 'time' }, name: 'start_time',
prefix: t('server_config.fields.start_time'),
type: 'time',
step: '1',
},
{
name: 'end_time',
prefix: t('server_config.fields.end_time'),
type: 'time',
step: '1',
},
{ {
name: 'multiplier', name: 'multiplier',
prefix: t('server_config.fields.multiplier'), prefix: t('server_config.fields.multiplier'),

View File

@ -3,7 +3,7 @@ export const protocols = [
'vmess', 'vmess',
'vless', 'vless',
'trojan', 'trojan',
'hysteria2', 'hysteria',
'tuic', 'tuic',
'anytls', 'anytls',
'socks', 'socks',
@ -64,7 +64,7 @@ export const SECURITY = {
vmess: ['none', 'tls'] as const, vmess: ['none', 'tls'] as const,
vless: ['none', 'tls', 'reality'] as const, vless: ['none', 'tls', 'reality'] as const,
trojan: ['tls'] as const, trojan: ['tls'] as const,
hysteria2: ['tls'] as const, hysteria: ['tls'] as const,
tuic: ['tls'] as const, tuic: ['tls'] as const,
anytls: ['tls'] as const, anytls: ['tls'] as const,
naive: ['none', 'tls'] as const, naive: ['none', 'tls'] as const,

View File

@ -90,9 +90,9 @@ export function getProtocolDefaultConfig(proto: ProtocolType) {
cert_dns_env: null, cert_dns_env: null,
ratio: 1, ratio: 1,
} as any; } as any;
case 'hysteria2': case 'hysteria':
return { return {
type: 'hysteria2', type: 'hysteria',
enable: false, enable: false,
port: null, port: null,
hop_ports: null, hop_ports: null,

View File

@ -444,7 +444,16 @@ export const PROTOCOL_FIELDS: Record<string, FieldConfig[]> = {
placeholder: (t) => t('encryption_private_key_placeholder'), placeholder: (t) => t('encryption_private_key_placeholder'),
group: 'encryption', group: 'encryption',
generate: { generate: {
function: generateMLKEM768KeyPair, functions: [
{
label: (t) => t('generate_standard_encryption_key'),
function: generateRealityKeyPair,
},
{
label: (t) => t('generate_quantum_resistant_key'),
function: generateMLKEM768KeyPair,
},
],
updateFields: { updateFields: {
encryption_private_key: 'privateKey', encryption_private_key: 'privateKey',
encryption_password: 'publicKey', encryption_password: 'publicKey',
@ -603,7 +612,7 @@ export const PROTOCOL_FIELDS: Record<string, FieldConfig[]> = {
condition: (p) => p.security === 'tls' && p.cert_mode === 'dns', condition: (p) => p.security === 'tls' && p.cert_mode === 'dns',
}, },
], ],
hysteria2: [ hysteria: [
{ {
name: 'ratio', name: 'ratio',
type: 'number', type: 'number',

View File

@ -104,16 +104,16 @@ const trojan = z.object({
cert_dns_env: nullableString, cert_dns_env: nullableString,
}); });
const hysteria2 = z.object({ const hysteria = z.object({
ratio: nullableRatio, ratio: nullableRatio,
type: z.literal('hysteria2'), type: z.literal('hysteria'),
enable: nullableBool, enable: nullableBool,
hop_ports: nullableString, hop_ports: nullableString,
hop_interval: z.number().nullish(), hop_interval: z.number().nullish(),
obfs_password: nullableString, obfs_password: nullableString,
obfs: z.enum(['none', 'salamander'] as const).nullish(), obfs: z.enum(['none', 'salamander'] as const).nullish(),
port: nullablePort, port: nullablePort,
security: z.enum(SECURITY.hysteria2).nullish(), security: z.enum(SECURITY.hysteria).nullish(),
sni: nullableString, sni: nullableString,
allow_insecure: nullableBool, allow_insecure: nullableBool,
fingerprint: nullableString, fingerprint: nullableString,
@ -207,7 +207,7 @@ export const protocolApiScheme = z.discriminatedUnion('type', [
vmess, vmess,
vless, vless,
trojan, trojan,
hysteria2, hysteria,
tuic, tuic,
anytls, anytls,
socks, socks,

View File

@ -12,7 +12,11 @@ export type FieldConfig = {
step?: number; step?: number;
suffix?: string; suffix?: string;
generate?: { generate?: {
function: () => Promise<string | Record<string, string>> | string | Record<string, string>; function?: () => Promise<string | Record<string, string>> | string | Record<string, string>;
functions?: {
label: string | ((t: (key: string) => string, protocol: any) => string);
function: () => Promise<string | Record<string, string>> | string | Record<string, string>;
}[];
updateFields?: Record<string, string>; updateFields?: Record<string, string>;
}; };
condition?: (protocol: any, values: any) => boolean; condition?: (protocol: any, values: any) => boolean;

View File

@ -1,4 +1,4 @@
import { x25519 } from '@noble/curves/ed25519'; import { x25519 } from '@noble/curves/ed25519.js';
import { toB64Url } from './util'; import { toB64Url } from './util';
/** /**

View File

@ -5,14 +5,11 @@ import {
createServer, createServer,
deleteServer, deleteServer,
filterServerList, filterServerList,
hasMigrateSeverNode,
migrateServerNode,
resetSortWithServer, resetSortWithServer,
updateServer, updateServer,
} from '@/services/admin/server'; } from '@/services/admin/server';
import { useNode } from '@/store/node'; import { useNode } from '@/store/node';
import { useServer } from '@/store/server'; import { useServer } from '@/store/server';
import { useQuery } from '@tanstack/react-query';
import { Badge } from '@workspace/ui/components/badge'; import { Badge } from '@workspace/ui/components/badge';
import { Button } from '@workspace/ui/components/button'; import { Button } from '@workspace/ui/components/button';
import { ConfirmButton } from '@workspace/ui/custom-components/confirm-button'; import { ConfirmButton } from '@workspace/ui/custom-components/confirm-button';
@ -24,6 +21,7 @@ import DynamicMultiplier from './dynamic-multiplier';
import OnlineUsersCell from './online-users-cell'; import OnlineUsersCell from './online-users-cell';
import ServerConfig from './server-config'; import ServerConfig from './server-config';
import ServerForm from './server-form'; import ServerForm from './server-form';
import ServerInstall from './server-install';
function PctBar({ value }: { value: number }) { function PctBar({ value }: { value: number }) {
const v = value.toFixed(2); const v = value.toFixed(2);
@ -63,36 +61,8 @@ export default function ServersPage() {
const { fetchServers } = useServer(); const { fetchServers } = useServer();
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [migrating, setMigrating] = useState(false);
const ref = useRef<ProTableActions>(null); const ref = useRef<ProTableActions>(null);
const { data: hasMigrate, refetch: refetchHasMigrate } = useQuery({
queryKey: ['hasMigrateSeverNode'],
queryFn: async () => {
const { data } = await hasMigrateSeverNode();
return data.data?.has_migrate;
},
});
const handleMigrate = async () => {
setMigrating(true);
try {
const { data } = await migrateServerNode();
const fail = data.data?.fail || 0;
if (fail > 0) {
toast.error(data.data?.message);
} else {
toast.success(t('migrated'));
}
refetchHasMigrate();
ref.current?.refresh();
} catch (error) {
toast.error(t('migrateFailed'));
} finally {
setMigrating(false);
}
};
return ( return (
<div className='space-y-4'> <div className='space-y-4'>
<div className='grid grid-cols-1 gap-4 md:grid-cols-2'> <div className='grid grid-cols-1 gap-4 md:grid-cols-2'>
@ -105,11 +75,6 @@ export default function ServersPage() {
title: t('pageTitle'), title: t('pageTitle'),
toolbar: ( toolbar: (
<div className='flex gap-2'> <div className='flex gap-2'>
{hasMigrate && (
<Button variant='outline' onClick={handleMigrate} disabled={migrating}>
{migrating ? t('migrating') : t('migrate')}
</Button>
)}
<ServerForm <ServerForm
trigger={t('create')} trigger={t('create')}
title={t('drawerCreateTitle')} title={t('drawerCreateTitle')}
@ -259,6 +224,7 @@ export default function ServersPage() {
} }
}} }}
/>, />,
<ServerInstall key='install' server={row} />,
<ConfirmButton <ConfirmButton
key='delete' key='delete'
trigger={ trigger={

View File

@ -43,6 +43,7 @@ import { useEffect, useState } from 'react';
import { useForm } from 'react-hook-form'; import { useForm } from 'react-hook-form';
import { toast } from 'sonner'; import { toast } from 'sonner';
import { z } from 'zod'; import { z } from 'zod';
import { SS_CIPHERS } from './form-schema';
const dnsConfigSchema = z.object({ const dnsConfigSchema = z.object({
proto: z.string(), // z.enum(['tcp', 'udp', 'tls', 'https', 'quic']), proto: z.string(), // z.enum(['tcp', 'udp', 'tls', 'https', 'quic']),
@ -53,25 +54,9 @@ const dnsConfigSchema = z.object({
const outboundConfigSchema = z.object({ const outboundConfigSchema = z.object({
name: z.string(), name: z.string(),
protocol: z.string(), protocol: z.string(),
// z.enum([
// 'http',
// 'https',
// 'socks5',
// 'shadowsocks',
// 'vmess',
// 'vless',
// 'trojan',
// 'hysteria2',
// 'tuic',
// 'naive',
// 'brook',
// 'snell',
// 'wireguard',
// 'direct',
// 'reject',
// ]),
address: z.string(), address: z.string(),
port: z.number(), port: z.number(),
cipher: z.string().optional(),
password: z.string().optional(), password: z.string().optional(),
rules: z.array(z.string()).optional(), rules: z.array(z.string()).optional(),
}); });
@ -109,7 +94,7 @@ export default function ServerConfig() {
node_pull_interval: undefined, node_pull_interval: undefined,
node_push_interval: undefined, node_push_interval: undefined,
traffic_report_threshold: undefined, traffic_report_threshold: undefined,
ip_strategy: undefined, ip_strategy: 'prefer_ipv4',
dns: [], dns: [],
block: [], block: [],
outbound: [], outbound: [],
@ -123,7 +108,8 @@ export default function ServerConfig() {
node_pull_interval: cfgResp.node_pull_interval as number | undefined, node_pull_interval: cfgResp.node_pull_interval as number | undefined,
node_push_interval: cfgResp.node_push_interval as number | undefined, node_push_interval: cfgResp.node_push_interval as number | undefined,
traffic_report_threshold: cfgResp.traffic_report_threshold as number | undefined, traffic_report_threshold: cfgResp.traffic_report_threshold as number | undefined,
ip_strategy: cfgResp.ip_strategy as 'prefer_ipv4' | 'prefer_ipv6' | undefined, ip_strategy:
(cfgResp.ip_strategy as 'prefer_ipv4' | 'prefer_ipv6' | undefined) || 'prefer_ipv4',
dns: cfgResp.dns || [], dns: cfgResp.dns || [],
block: cfgResp.block || [], block: cfgResp.block || [],
outbound: cfgResp.outbound || [], outbound: cfgResp.outbound || [],
@ -381,89 +367,104 @@ export default function ServerConfig() {
<FormField <FormField
control={form.control} control={form.control}
name='outbound' name='outbound'
render={({ field }) => ( render={({ field }) => {
<FormItem> return (
<FormControl> <FormItem>
<ArrayInput <FormControl>
className='grid grid-cols-2 gap-2' <ArrayInput
fields={[ className='grid grid-cols-2 gap-2'
{ fields={[
name: 'name', {
type: 'text', name: 'name',
className: 'col-span-2', type: 'text',
placeholder: t('server_config.fields.outbound_name_placeholder'), className: 'col-span-2',
}, placeholder: t('server_config.fields.outbound_name_placeholder'),
{ },
name: 'protocol', {
type: 'select', name: 'protocol',
placeholder: t( type: 'select',
'server_config.fields.outbound_protocol_placeholder', placeholder: t(
), 'server_config.fields.outbound_protocol_placeholder',
options: [ ),
{ label: 'HTTP', value: 'http' }, options: [
{ label: 'HTTPS', value: 'https' }, { label: 'HTTP', value: 'http' },
{ label: 'SOCKS5', value: 'socks5' }, { label: 'SOCKS', value: 'socks' },
{ label: 'Shadowsocks', value: 'shadowsocks' }, { label: 'Shadowsocks', value: 'shadowsocks' },
{ label: 'VMess', value: 'vmess' }, { label: 'Brook', value: 'brook' },
{ label: 'VLESS', value: 'vless' }, { label: 'Snell', value: 'snell' },
{ label: 'Trojan', value: 'trojan' }, { label: 'VMess', value: 'vmess' },
{ label: 'Hysteria2', value: 'hysteria2' }, { label: 'VLESS', value: 'vless' },
{ label: 'TUIC', value: 'tuic' }, { label: 'Trojan', value: 'trojan' },
{ label: 'NaiveProxy', value: 'naive' }, { label: 'WireGuard', value: 'wireguard' },
{ label: 'Brook', value: 'brook' }, { label: 'Hysteria', value: 'hysteria' },
{ label: 'Snell', value: 'snell' }, { label: 'TUIC', value: 'tuic' },
{ label: 'WireGuard', value: 'wireguard' }, { label: 'AnyTLS', value: 'anytls' },
{ label: 'Direct', value: 'direct' }, { label: 'Naive', value: 'naive' },
{ label: 'Reject', value: 'reject' }, { label: 'Direct', value: 'direct' },
], { label: 'Reject', value: 'reject' },
}, ],
{ },
name: 'address', {
type: 'text', name: 'cipher',
placeholder: t('server_config.fields.outbound_address_placeholder'), type: 'select',
}, options: SS_CIPHERS.map((cipher) => ({
{ label: cipher,
name: 'port', value: cipher,
type: 'number', })),
placeholder: t('server_config.fields.outbound_port_placeholder'), visible: (item: Record<string, any>) =>
}, item.protocol === 'shadowsocks',
{ },
name: 'password', {
type: 'text', name: 'address',
placeholder: t( type: 'text',
'server_config.fields.outbound_password_placeholder', placeholder: t(
), 'server_config.fields.outbound_address_placeholder',
}, ),
{ },
name: 'rules', {
type: 'textarea', name: 'port',
className: 'col-span-2', type: 'number',
placeholder: t('server_config.fields.outbound_rules_placeholder'), placeholder: t('server_config.fields.outbound_port_placeholder'),
}, },
]} {
value={(field.value || []).map((item) => ({ name: 'password',
...item, type: 'text',
rules: Array.isArray(item.rules) ? item.rules.join('\n') : '', placeholder: t(
}))} 'server_config.fields.outbound_password_placeholder',
onChange={(values) => { ),
const converted = values.map((item: any) => ({ },
name: item.name, {
protocol: item.protocol, name: 'rules',
address: item.address, type: 'textarea',
port: item.port, className: 'col-span-2',
password: item.password, placeholder: t('server_config.fields.outbound_rules_placeholder'),
rules: },
typeof item.rules === 'string' ]}
? item.rules.split('\n').map((r: string) => r.trim()) value={(field.value || []).map((item) => ({
: item.rules || [], ...item,
})); rules: Array.isArray(item.rules) ? item.rules.join('\n') : '',
field.onChange(converted); }))}
}} onChange={(values) => {
/> const converted = values.map((item: any) => ({
</FormControl> name: item.name,
<FormMessage /> protocol: item.protocol,
</FormItem> address: item.address,
)} port: item.port,
cipher: item.cipher,
password: item.password,
rules:
typeof item.rules === 'string'
? item.rules.split('\n').map((r: string) => r.trim())
: item.rules || [],
}));
field.onChange(converted);
}}
/>
</FormControl>
<FormMessage />
</FormItem>
);
}}
/> />
</TabsContent> </TabsContent>

View File

@ -10,6 +10,12 @@ import {
} from '@workspace/ui/components/accordion'; } from '@workspace/ui/components/accordion';
import { Badge } from '@workspace/ui/components/badge'; import { Badge } from '@workspace/ui/components/badge';
import { Button } from '@workspace/ui/components/button'; import { Button } from '@workspace/ui/components/button';
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from '@workspace/ui/components/dropdown-menu';
import { import {
Form, Form,
FormControl, FormControl,
@ -99,29 +105,68 @@ function DynamicField({
onValueChange={(v) => fieldProps.onChange(v)} onValueChange={(v) => fieldProps.onChange(v)}
suffix={ suffix={
field.generate ? ( field.generate ? (
<Button field.generate.functions && field.generate.functions.length > 0 ? (
type='button' <DropdownMenu>
variant='ghost' <DropdownMenuTrigger asChild>
onClick={async () => { <Button type='button' variant='ghost' size='sm'>
const result = await field.generate!.function(); <Icon icon='mdi:key' className='h-4 w-4' />
if (typeof result === 'string') { </Button>
fieldProps.onChange(result); </DropdownMenuTrigger>
} else if (field.generate!.updateFields) { <DropdownMenuContent align='end'>
Object.entries(field.generate!.updateFields).forEach( {field.generate.functions.map((genFunc, idx) => (
([fieldName, resultKey]) => { <DropdownMenuItem
const fullFieldName = `protocols.${protocolIndex}.${fieldName}`; key={idx}
form.setValue(fullFieldName, (result as any)[resultKey]); onClick={async () => {
}, const result = await genFunc.function();
); if (typeof result === 'string') {
} else { fieldProps.onChange(result);
if (result.privateKey) { } else if (field.generate!.updateFields) {
fieldProps.onChange(result.privateKey); Object.entries(field.generate!.updateFields).forEach(
([fieldName, resultKey]) => {
const fullFieldName = `protocols.${protocolIndex}.${fieldName}`;
form.setValue(fullFieldName, (result as any)[resultKey]);
},
);
} else {
if (result.privateKey) {
fieldProps.onChange(result.privateKey);
}
}
}}
>
{typeof genFunc.label === 'function'
? genFunc.label(t, protocolData)
: genFunc.label}
</DropdownMenuItem>
))}
</DropdownMenuContent>
</DropdownMenu>
) : field.generate.function ? (
<Button
type='button'
variant='ghost'
size='sm'
onClick={async () => {
const result = await field.generate!.function!();
if (typeof result === 'string') {
fieldProps.onChange(result);
} else if (field.generate!.updateFields) {
Object.entries(field.generate!.updateFields).forEach(
([fieldName, resultKey]) => {
const fullFieldName = `protocols.${protocolIndex}.${fieldName}`;
form.setValue(fullFieldName, (result as any)[resultKey]);
},
);
} else {
if (result.privateKey) {
fieldProps.onChange(result.privateKey);
}
} }
} }}
}} >
> <Icon icon='mdi:key' className='h-4 w-4' />
<Icon icon='mdi:key' className='h-4 w-4' /> </Button>
</Button> ) : null
) : ( ) : (
field.suffix field.suffix
) )
@ -356,7 +401,8 @@ export default function ServerForm(props: {
...initialValues, ...initialValues,
protocols: PROTOCOLS.map((type) => { protocols: PROTOCOLS.map((type) => {
const existingProtocol = initialValues.protocols?.find((p) => p.type === type); const existingProtocol = initialValues.protocols?.find((p) => p.type === type);
return existingProtocol || getProtocolDefaultConfig(type); const defaultConfig = getProtocolDefaultConfig(type);
return existingProtocol ? { ...defaultConfig, ...existingProtocol } : defaultConfig;
}), }),
}); });
} }

View File

@ -0,0 +1,119 @@
'use client';
import { getNodeConfig } from '@/services/admin/system';
import { useQuery } from '@tanstack/react-query';
import { Button } from '@workspace/ui/components/button';
import {
Dialog,
DialogContent,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
} from '@workspace/ui/components/dialog';
import { Input } from '@workspace/ui/components/input';
import { Label } from '@workspace/ui/components/label';
import { useTranslations } from 'next-intl';
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { toast } from 'sonner';
type Props = {
server: API.Server;
};
export default function ServerInstall({ server }: Props) {
const t = useTranslations('servers');
const [open, setOpen] = useState(false);
const [domain, setDomain] = useState('');
const { data: cfgResp } = useQuery({
queryKey: ['getNodeConfig'],
queryFn: async () => {
const { data } = await getNodeConfig();
return data.data as API.NodeConfig | undefined;
},
enabled: open,
});
useEffect(() => {
if (open) {
const host = localStorage.getItem('API_HOST') ?? window.location.origin;
setDomain(host);
}
}, [open]);
const installCommand = useMemo(() => {
const secret = cfgResp?.node_secret ?? '';
return `wget -N https://raw.githubusercontent.com/perfect-panel/ppanel-node/master/scripts/install.sh && bash install.sh --api-host ${domain} --server-id ${server.id} --secret-key ${secret}`;
}, [domain, server.id, cfgResp?.node_secret]);
async function handleCopy() {
try {
if (navigator?.clipboard?.writeText) {
await navigator.clipboard.writeText(installCommand);
} else {
// fallback for environments without clipboard API
const el = document.createElement('textarea');
el.value = installCommand;
document.body.appendChild(el);
el.select();
document.execCommand('copy');
document.body.removeChild(el);
}
toast.success(t('copied'));
setOpen(false);
} catch (error) {
toast.error(t('copyFailed'));
}
}
const onDomainChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
setDomain(e.target.value);
localStorage.setItem('API_HOST', e.target.value);
}, []);
return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>
<Button variant='secondary'>{t('connect')}</Button>
</DialogTrigger>
<DialogContent className='w-[720px] max-w-full md:max-w-screen-md'>
<DialogHeader>
<DialogTitle>{t('oneClickInstall')}</DialogTitle>
</DialogHeader>
<div className='space-y-4'>
<div>
<Label>{t('apiHost')}</Label>
<div className='flex items-center gap-2'>
<Input
value={domain}
placeholder={t('apiHostPlaceholder')}
onChange={onDomainChange}
/>
</div>
</div>
<div>
<Label>{t('installCommand')}</Label>
<div className='flex flex-col gap-2'>
<textarea
readOnly
aria-label={t('installCommand')}
value={installCommand}
className='min-h-[88px] w-full rounded border p-2 font-mono text-sm'
/>
</div>
</div>
</div>
<DialogFooter className='flex-row justify-end gap-2 pt-3'>
<Button variant='outline' onClick={() => setOpen(false)}>
{t('close')}
</Button>
<Button onClick={handleCopy}>{t('copyAndClose')}</Button>
</DialogFooter>
</DialogContent>
</Dialog>
);
}

View File

@ -1,6 +1,7 @@
'use client'; 'use client';
import useGlobalStore, { GlobalStore } from '@/config/use-global'; import useGlobalStore, { GlobalStore } from '@/config/use-global';
import { useStatsStore } from '@/store/stats';
import { Logout } from '@/utils/common'; import { Logout } from '@/utils/common';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryStreamedHydration } from '@tanstack/react-query-next-experimental'; import { ReactQueryStreamedHydration } from '@tanstack/react-query-next-experimental';
@ -42,6 +43,12 @@ export default function Providers({
setCommon(common); setCommon(common);
}, [setCommon, common]); }, [setCommon, common]);
const { stats } = useStatsStore();
useEffect(() => {
stats();
}, []);
return ( return (
<NextThemesProvider attribute='class' defaultTheme='system' enableSystem> <NextThemesProvider attribute='class' defaultTheme='system' enableSystem>
<QueryClientProvider client={queryClient}> <QueryClientProvider client={queryClient}>

View File

@ -45,6 +45,12 @@ export const useGlobalStore = create<GlobalStore>((set, get) => ({
ip_register_limit: 0, ip_register_limit: 0,
ip_register_limit_duration: 0, ip_register_limit_duration: 0,
}, },
device: {
enable: false,
show_ads: false,
enable_security: false,
only_real_device: false,
},
}, },
invite: { invite: {
forced_invite: false, forced_invite: false,

View File

@ -5,6 +5,8 @@
}, },
"address": "Adresa", "address": "Adresa",
"address_placeholder": "Adresa serveru", "address_placeholder": "Adresa serveru",
"apiHost": "API hostitel",
"apiHostPlaceholder": "http(s)://example.com",
"bandwidth_placeholder": "Zadejte šířku pásma, nechte prázdné pro BBR", "bandwidth_placeholder": "Zadejte šířku pásma, nechte prázdné pro BBR",
"basic": "Základní konfigurace", "basic": "Základní konfigurace",
"cancel": "Zrušit", "cancel": "Zrušit",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Tuto akci nelze vrátit zpět.", "confirmDeleteDesc": "Tuto akci nelze vrátit zpět.",
"confirmDeleteTitle": "Smazat tento server?", "confirmDeleteTitle": "Smazat tento server?",
"congestion_controller": "Ovladač přetížení", "congestion_controller": "Ovladač přetížení",
"connect": "Připojit",
"copied": "Zkopírováno", "copied": "Zkopírováno",
"copy": "Kopírovat", "copy": "Kopírovat",
"country": "Země", "country": "Země",
@ -47,11 +50,14 @@
"expired": "Vypršelo", "expired": "Vypršelo",
"extra": "Další konfigurace", "extra": "Další konfigurace",
"flow": "Tok", "flow": "Tok",
"generate_quantum_resistant_key": "Generovat kvantově odolný klíč",
"generate_standard_encryption_key": "Generovat standardní šifrovací klíč",
"hop_interval": "Interval skoku", "hop_interval": "Interval skoku",
"hop_ports": "Porty skoku", "hop_ports": "Porty skoku",
"hop_ports_placeholder": "např. 1-65535", "hop_ports_placeholder": "např. 1-65535",
"host": "Hostitel", "host": "Hostitel",
"id": "ID", "id": "ID",
"installCommand": "Instalační příkaz",
"ipAddresses": "IP adresy", "ipAddresses": "IP adresy",
"memory": "Paměť", "memory": "Paměť",
"migrate": "Migrace dat", "migrate": "Migrace dat",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Zadejte heslo pro obfuskaci", "obfs_password_placeholder": "Zadejte heslo pro obfuskaci",
"obfs_path": "Obfs cesta", "obfs_path": "Obfs cesta",
"offline": "Offline", "offline": "Offline",
"oneClickInstall": "Instalace jedním kliknutím",
"online": "Online", "online": "Online",
"onlineUsers": "Online uživatelé", "onlineUsers": "Online uživatelé",
"padding_scheme": "Schéma vycpání", "padding_scheme": "Schéma vycpání",

View File

@ -5,6 +5,8 @@
}, },
"address": "Adresse", "address": "Adresse",
"address_placeholder": "Serveradresse", "address_placeholder": "Serveradresse",
"apiHost": "API-Host",
"apiHostPlaceholder": "http(s)://beispiel.de",
"bandwidth_placeholder": "Geben Sie die Bandbreite ein, lassen Sie das Feld leer für BBR", "bandwidth_placeholder": "Geben Sie die Bandbreite ein, lassen Sie das Feld leer für BBR",
"basic": "Grundkonfiguration", "basic": "Grundkonfiguration",
"cancel": "Abbrechen", "cancel": "Abbrechen",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Diese Aktion kann nicht rückgängig gemacht werden.", "confirmDeleteDesc": "Diese Aktion kann nicht rückgängig gemacht werden.",
"confirmDeleteTitle": "Diesen Server löschen?", "confirmDeleteTitle": "Diesen Server löschen?",
"congestion_controller": "Staukontroller", "congestion_controller": "Staukontroller",
"connect": "Verbinden",
"copied": "Kopiert", "copied": "Kopiert",
"copy": "Kopieren", "copy": "Kopieren",
"country": "Land", "country": "Land",
@ -47,11 +50,14 @@
"expired": "Abgelaufen", "expired": "Abgelaufen",
"extra": "Zusätzliche Konfiguration", "extra": "Zusätzliche Konfiguration",
"flow": "Fluss", "flow": "Fluss",
"generate_quantum_resistant_key": "Quantenresistenten Schlüssel generieren",
"generate_standard_encryption_key": "Standard-Verschlüsselungsschlüssel generieren",
"hop_interval": "Hop-Intervall", "hop_interval": "Hop-Intervall",
"hop_ports": "Hop-Ports", "hop_ports": "Hop-Ports",
"hop_ports_placeholder": "z.B. 1-65535", "hop_ports_placeholder": "z.B. 1-65535",
"host": "Host", "host": "Host",
"id": "ID", "id": "ID",
"installCommand": "Installationsbefehl",
"ipAddresses": "IP-Adressen", "ipAddresses": "IP-Adressen",
"memory": "Speicher", "memory": "Speicher",
"migrate": "Daten migrieren", "migrate": "Daten migrieren",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Obfuskationspasswort eingeben", "obfs_password_placeholder": "Obfuskationspasswort eingeben",
"obfs_path": "Obfs-Pfad", "obfs_path": "Obfs-Pfad",
"offline": "Offline", "offline": "Offline",
"oneClickInstall": "Ein-Klick-Installation",
"online": "Online", "online": "Online",
"onlineUsers": "Online-Benutzer", "onlineUsers": "Online-Benutzer",
"padding_scheme": "Polsterungsschema", "padding_scheme": "Polsterungsschema",

View File

@ -5,6 +5,8 @@
}, },
"address": "Address", "address": "Address",
"address_placeholder": "Server address", "address_placeholder": "Server address",
"apiHost": "API Host",
"apiHostPlaceholder": "http(s)://example.com",
"bandwidth_placeholder": "Enter bandwidth, leave empty for BBR", "bandwidth_placeholder": "Enter bandwidth, leave empty for BBR",
"basic": "Basic Configuration", "basic": "Basic Configuration",
"cancel": "Cancel", "cancel": "Cancel",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "This action cannot be undone.", "confirmDeleteDesc": "This action cannot be undone.",
"confirmDeleteTitle": "Delete this server?", "confirmDeleteTitle": "Delete this server?",
"congestion_controller": "Congestion controller", "congestion_controller": "Congestion controller",
"connect": "Connect",
"copied": "Copied", "copied": "Copied",
"copy": "Copy", "copy": "Copy",
"country": "Country", "country": "Country",
@ -47,11 +50,14 @@
"expired": "Expired", "expired": "Expired",
"extra": "Extra Configuration", "extra": "Extra Configuration",
"flow": "Flow", "flow": "Flow",
"generate_quantum_resistant_key": "Generate Quantum-Resistant Key",
"generate_standard_encryption_key": "Generate Standard Encryption Key",
"hop_interval": "Hop interval", "hop_interval": "Hop interval",
"hop_ports": "Hop ports", "hop_ports": "Hop ports",
"hop_ports_placeholder": "e.g. 1-65535", "hop_ports_placeholder": "e.g. 1-65535",
"host": "Host", "host": "Host",
"id": "ID", "id": "ID",
"installCommand": "Install command",
"ipAddresses": "IP addresses", "ipAddresses": "IP addresses",
"memory": "Memory", "memory": "Memory",
"migrate": "Migrate Data", "migrate": "Migrate Data",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Enter obfuscation password", "obfs_password_placeholder": "Enter obfuscation password",
"obfs_path": "Obfs Path", "obfs_path": "Obfs Path",
"offline": "Offline", "offline": "Offline",
"oneClickInstall": "One-click Install",
"online": "Online", "online": "Online",
"onlineUsers": "Online users", "onlineUsers": "Online users",
"padding_scheme": "Padding Scheme", "padding_scheme": "Padding Scheme",

View File

@ -5,6 +5,8 @@
}, },
"address": "Dirección", "address": "Dirección",
"address_placeholder": "Dirección del servidor", "address_placeholder": "Dirección del servidor",
"apiHost": "Host de API",
"apiHostPlaceholder": "http(s)://ejemplo.com",
"bandwidth_placeholder": "Introduce el ancho de banda, deja vacío para BBR", "bandwidth_placeholder": "Introduce el ancho de banda, deja vacío para BBR",
"basic": "Configuración Básica", "basic": "Configuración Básica",
"cancel": "Cancelar", "cancel": "Cancelar",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Esta acción no se puede deshacer.", "confirmDeleteDesc": "Esta acción no se puede deshacer.",
"confirmDeleteTitle": "¿Eliminar este servidor?", "confirmDeleteTitle": "¿Eliminar este servidor?",
"congestion_controller": "Controlador de congestión", "congestion_controller": "Controlador de congestión",
"connect": "Conectar",
"copied": "Copiado", "copied": "Copiado",
"copy": "Copiar", "copy": "Copiar",
"country": "País", "country": "País",
@ -47,11 +50,14 @@
"expired": "Expirado", "expired": "Expirado",
"extra": "Configuración Extra", "extra": "Configuración Extra",
"flow": "Flujo", "flow": "Flujo",
"generate_quantum_resistant_key": "Generar clave resistente a cuánticos",
"generate_standard_encryption_key": "Generar clave de cifrado estándar",
"hop_interval": "Intervalo de salto", "hop_interval": "Intervalo de salto",
"hop_ports": "Puertos de salto", "hop_ports": "Puertos de salto",
"hop_ports_placeholder": "p. ej. 1-65535", "hop_ports_placeholder": "p. ej. 1-65535",
"host": "Host", "host": "Host",
"id": "ID", "id": "ID",
"installCommand": "Comando de instalación",
"ipAddresses": "Direcciones IP", "ipAddresses": "Direcciones IP",
"memory": "Memoria", "memory": "Memoria",
"migrate": "Migrar datos", "migrate": "Migrar datos",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Ingrese la contraseña de ofuscación", "obfs_password_placeholder": "Ingrese la contraseña de ofuscación",
"obfs_path": "Ruta de Ofuscación", "obfs_path": "Ruta de Ofuscación",
"offline": "Desconectado", "offline": "Desconectado",
"oneClickInstall": "Instalación con un clic",
"online": "Conectado", "online": "Conectado",
"onlineUsers": "Usuarios en línea", "onlineUsers": "Usuarios en línea",
"padding_scheme": "Esquema de Relleno", "padding_scheme": "Esquema de Relleno",

View File

@ -5,6 +5,8 @@
}, },
"address": "Dirección", "address": "Dirección",
"address_placeholder": "Dirección del servidor", "address_placeholder": "Dirección del servidor",
"apiHost": "Host de API",
"apiHostPlaceholder": "http(s)://ejemplo.com",
"bandwidth_placeholder": "Ingresa el ancho de banda, deja vacío para BBR", "bandwidth_placeholder": "Ingresa el ancho de banda, deja vacío para BBR",
"basic": "Configuración Básica", "basic": "Configuración Básica",
"cancel": "Cancelar", "cancel": "Cancelar",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Esta acción no se puede deshacer.", "confirmDeleteDesc": "Esta acción no se puede deshacer.",
"confirmDeleteTitle": "¿Eliminar este servidor?", "confirmDeleteTitle": "¿Eliminar este servidor?",
"congestion_controller": "Controlador de congestión", "congestion_controller": "Controlador de congestión",
"connect": "Conectar",
"copied": "Copiado", "copied": "Copiado",
"copy": "Copiar", "copy": "Copiar",
"country": "País", "country": "País",
@ -47,11 +50,14 @@
"expired": "Expirado", "expired": "Expirado",
"extra": "Configuración Extra", "extra": "Configuración Extra",
"flow": "Flujo", "flow": "Flujo",
"generate_quantum_resistant_key": "Generar clave resistente a cuánticos",
"generate_standard_encryption_key": "Generar clave de cifrado estándar",
"hop_interval": "Intervalo de salto", "hop_interval": "Intervalo de salto",
"hop_ports": "Puertos de salto", "hop_ports": "Puertos de salto",
"hop_ports_placeholder": "p. ej. 1-65535", "hop_ports_placeholder": "p. ej. 1-65535",
"host": "Host", "host": "Host",
"id": "ID", "id": "ID",
"installCommand": "Comando de instalación",
"ipAddresses": "Direcciones IP", "ipAddresses": "Direcciones IP",
"memory": "Memoria", "memory": "Memoria",
"migrate": "Migrar datos", "migrate": "Migrar datos",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Ingresa la contraseña de ofuscación", "obfs_password_placeholder": "Ingresa la contraseña de ofuscación",
"obfs_path": "Ruta de Ofuscación", "obfs_path": "Ruta de Ofuscación",
"offline": "Desconectado", "offline": "Desconectado",
"oneClickInstall": "Instalación con un clic",
"online": "Conectado", "online": "Conectado",
"onlineUsers": "Usuarios en línea", "onlineUsers": "Usuarios en línea",
"padding_scheme": "Esquema de Relleno", "padding_scheme": "Esquema de Relleno",

View File

@ -5,6 +5,8 @@
}, },
"address": "آدرس", "address": "آدرس",
"address_placeholder": "آدرس سرور", "address_placeholder": "آدرس سرور",
"apiHost": "میزبان API",
"apiHostPlaceholder": "http(s)://example.com",
"bandwidth_placeholder": "عرض پهنای باند، برای BBR خالی بگذارید", "bandwidth_placeholder": "عرض پهنای باند، برای BBR خالی بگذارید",
"basic": "پیکربندی پایه", "basic": "پیکربندی پایه",
"cancel": "لغو", "cancel": "لغو",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "این عمل قابل بازگشت نیست.", "confirmDeleteDesc": "این عمل قابل بازگشت نیست.",
"confirmDeleteTitle": "آیا این سرور را حذف کنید؟", "confirmDeleteTitle": "آیا این سرور را حذف کنید؟",
"congestion_controller": "کنترل‌کننده ترافیک", "congestion_controller": "کنترل‌کننده ترافیک",
"connect": "اتصال",
"copied": "کپی شد", "copied": "کپی شد",
"copy": "کپی", "copy": "کپی",
"country": "کشور", "country": "کشور",
@ -47,11 +50,14 @@
"expired": "منقضی شده", "expired": "منقضی شده",
"extra": "پیکربندی اضافی", "extra": "پیکربندی اضافی",
"flow": "جریان", "flow": "جریان",
"generate_quantum_resistant_key": "تولید کلید مقاوم در برابر کوانتوم",
"generate_standard_encryption_key": "تولید کلید رمزگذاری استاندارد",
"hop_interval": "فاصله پرش", "hop_interval": "فاصله پرش",
"hop_ports": "پورت‌های پرش", "hop_ports": "پورت‌های پرش",
"hop_ports_placeholder": "مثلاً 1-65535", "hop_ports_placeholder": "مثلاً 1-65535",
"host": "میزبان", "host": "میزبان",
"id": "شناسه", "id": "شناسه",
"installCommand": "دستور نصب",
"ipAddresses": "آدرس‌های IP", "ipAddresses": "آدرس‌های IP",
"memory": "حافظه", "memory": "حافظه",
"migrate": "انتقال داده", "migrate": "انتقال داده",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "رمز عبور اختفا را وارد کنید", "obfs_password_placeholder": "رمز عبور اختفا را وارد کنید",
"obfs_path": "مسیر پنهان‌سازی", "obfs_path": "مسیر پنهان‌سازی",
"offline": "آفلاین", "offline": "آفلاین",
"oneClickInstall": "نصب با یک کلیک",
"online": "آنلاین", "online": "آنلاین",
"onlineUsers": "کاربران آنلاین", "onlineUsers": "کاربران آنلاین",
"padding_scheme": "طرح پدینگ", "padding_scheme": "طرح پدینگ",

View File

@ -5,6 +5,8 @@
}, },
"address": "Osoite", "address": "Osoite",
"address_placeholder": "Palvelimen osoite", "address_placeholder": "Palvelimen osoite",
"apiHost": "API-isäntä",
"apiHostPlaceholder": "http(s)://esimerkki.com",
"bandwidth_placeholder": "Syötä kaistanleveys, jätä tyhjäksi BBR:lle", "bandwidth_placeholder": "Syötä kaistanleveys, jätä tyhjäksi BBR:lle",
"basic": "Perusasetukset", "basic": "Perusasetukset",
"cancel": "Peruuta", "cancel": "Peruuta",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Tätä toimintoa ei voi peruuttaa.", "confirmDeleteDesc": "Tätä toimintoa ei voi peruuttaa.",
"confirmDeleteTitle": "Poista tämä palvelin?", "confirmDeleteTitle": "Poista tämä palvelin?",
"congestion_controller": "Ruuhkansäätö", "congestion_controller": "Ruuhkansäätö",
"connect": "Yhdistä",
"copied": "Kopioitu", "copied": "Kopioitu",
"copy": "Kopioi", "copy": "Kopioi",
"country": "Maa", "country": "Maa",
@ -47,11 +50,14 @@
"expired": "Vanhentunut", "expired": "Vanhentunut",
"extra": "Lisäasetukset", "extra": "Lisäasetukset",
"flow": "Virta", "flow": "Virta",
"generate_quantum_resistant_key": "Luo kvanttikestävä avain",
"generate_standard_encryption_key": "Luo standardi salausavain",
"hop_interval": "Hyppyvälit", "hop_interval": "Hyppyvälit",
"hop_ports": "Hyppysatamat", "hop_ports": "Hyppysatamat",
"hop_ports_placeholder": "esim. 1-65535", "hop_ports_placeholder": "esim. 1-65535",
"host": "Isäntä", "host": "Isäntä",
"id": "ID", "id": "ID",
"installCommand": "Asennuskomento",
"ipAddresses": "IP-osoitteet", "ipAddresses": "IP-osoitteet",
"memory": "Muisti", "memory": "Muisti",
"migrate": "Siirrä tiedot", "migrate": "Siirrä tiedot",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Syötä häilytyssalasana", "obfs_password_placeholder": "Syötä häilytyssalasana",
"obfs_path": "Häilytys polku", "obfs_path": "Häilytys polku",
"offline": "Offline", "offline": "Offline",
"oneClickInstall": "Yhden napsautuksen asennus",
"online": "Online", "online": "Online",
"onlineUsers": "Verkossa olevat käyttäjät", "onlineUsers": "Verkossa olevat käyttäjät",
"padding_scheme": "Täyttökaavio", "padding_scheme": "Täyttökaavio",

View File

@ -5,6 +5,8 @@
}, },
"address": "Adresse", "address": "Adresse",
"address_placeholder": "Adresse du serveur", "address_placeholder": "Adresse du serveur",
"apiHost": "Hôte API",
"apiHostPlaceholder": "http(s)://exemple.com",
"bandwidth_placeholder": "Entrez la bande passante, laissez vide pour BBR", "bandwidth_placeholder": "Entrez la bande passante, laissez vide pour BBR",
"basic": "Configuration de base", "basic": "Configuration de base",
"cancel": "Annuler", "cancel": "Annuler",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Cette action ne peut pas être annulée.", "confirmDeleteDesc": "Cette action ne peut pas être annulée.",
"confirmDeleteTitle": "Supprimer ce serveur ?", "confirmDeleteTitle": "Supprimer ce serveur ?",
"congestion_controller": "Contrôleur de congestion", "congestion_controller": "Contrôleur de congestion",
"connect": "Se connecter",
"copied": "Copié", "copied": "Copié",
"copy": "Copier", "copy": "Copier",
"country": "Pays", "country": "Pays",
@ -47,11 +50,14 @@
"expired": "Expiré", "expired": "Expiré",
"extra": "Configuration supplémentaire", "extra": "Configuration supplémentaire",
"flow": "Flux", "flow": "Flux",
"generate_quantum_resistant_key": "Générer une clé résistante aux quantiques",
"generate_standard_encryption_key": "Générer une clé de chiffrement standard",
"hop_interval": "Intervalle de saut", "hop_interval": "Intervalle de saut",
"hop_ports": "Ports de saut", "hop_ports": "Ports de saut",
"hop_ports_placeholder": "ex. 1-65535", "hop_ports_placeholder": "ex. 1-65535",
"host": "Hôte", "host": "Hôte",
"id": "ID", "id": "ID",
"installCommand": "Commande d'installation",
"ipAddresses": "Adresses IP", "ipAddresses": "Adresses IP",
"memory": "Mémoire", "memory": "Mémoire",
"migrate": "Migrer les données", "migrate": "Migrer les données",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Entrez le mot de passe d'obfuscation", "obfs_password_placeholder": "Entrez le mot de passe d'obfuscation",
"obfs_path": "Chemin Obfs", "obfs_path": "Chemin Obfs",
"offline": "Hors ligne", "offline": "Hors ligne",
"oneClickInstall": "Installation en un clic",
"online": "En ligne", "online": "En ligne",
"onlineUsers": "Utilisateurs en ligne", "onlineUsers": "Utilisateurs en ligne",
"padding_scheme": "Schéma de remplissage", "padding_scheme": "Schéma de remplissage",

View File

@ -5,6 +5,8 @@
}, },
"address": "पता", "address": "पता",
"address_placeholder": "सर्वर का पता", "address_placeholder": "सर्वर का पता",
"apiHost": "एपीआई होस्ट",
"apiHostPlaceholder": "http(s)://example.com",
"bandwidth_placeholder": "बैंडविड्थ दर्ज करें, BBR के लिए खाली छोड़ें", "bandwidth_placeholder": "बैंडविड्थ दर्ज करें, BBR के लिए खाली छोड़ें",
"basic": "बुनियादी कॉन्फ़िगरेशन", "basic": "बुनियादी कॉन्फ़िगरेशन",
"cancel": "रद्द करें", "cancel": "रद्द करें",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "यह क्रिया पूर्ववत नहीं की जा सकती।", "confirmDeleteDesc": "यह क्रिया पूर्ववत नहीं की जा सकती।",
"confirmDeleteTitle": "क्या इस सर्वर को हटाएं?", "confirmDeleteTitle": "क्या इस सर्वर को हटाएं?",
"congestion_controller": "भीड़ नियंत्रण", "congestion_controller": "भीड़ नियंत्रण",
"connect": "जोड़ें",
"copied": "कॉपी किया गया", "copied": "कॉपी किया गया",
"copy": "कॉपी करें", "copy": "कॉपी करें",
"country": "देश", "country": "देश",
@ -47,11 +50,14 @@
"expired": "समय समाप्त", "expired": "समय समाप्त",
"extra": "अतिरिक्त कॉन्फ़िगरेशन", "extra": "अतिरिक्त कॉन्फ़िगरेशन",
"flow": "प्रवाह", "flow": "प्रवाह",
"generate_quantum_resistant_key": "क्वांटम-प्रतिरोधी कुंजी उत्पन्न करें",
"generate_standard_encryption_key": "मानक एन्क्रिप्शन कुंजी उत्पन्न करें",
"hop_interval": "हॉप अंतराल", "hop_interval": "हॉप अंतराल",
"hop_ports": "हॉप पोर्ट", "hop_ports": "हॉप पोर्ट",
"hop_ports_placeholder": "जैसे 1-65535", "hop_ports_placeholder": "जैसे 1-65535",
"host": "होस्ट", "host": "होस्ट",
"id": "आईडी", "id": "आईडी",
"installCommand": "इंस्टॉल कमांड",
"ipAddresses": "आईपी पते", "ipAddresses": "आईपी पते",
"memory": "मेमोरी", "memory": "मेमोरी",
"migrate": "डेटा माइग्रेट करें", "migrate": "डेटा माइग्रेट करें",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "अवशोषण पासवर्ड दर्ज करें", "obfs_password_placeholder": "अवशोषण पासवर्ड दर्ज करें",
"obfs_path": "ओबफ्स पथ", "obfs_path": "ओबफ्स पथ",
"offline": "ऑफलाइन", "offline": "ऑफलाइन",
"oneClickInstall": "एक-क्लिक इंस्टॉलेशन",
"online": "ऑनलाइन", "online": "ऑनलाइन",
"onlineUsers": "ऑनलाइन उपयोगकर्ता", "onlineUsers": "ऑनलाइन उपयोगकर्ता",
"padding_scheme": "पैडिंग योजना", "padding_scheme": "पैडिंग योजना",

View File

@ -5,6 +5,8 @@
}, },
"address": "Cím", "address": "Cím",
"address_placeholder": "Szerver cím", "address_placeholder": "Szerver cím",
"apiHost": "API gazda",
"apiHostPlaceholder": "http(s)://pelda.com",
"bandwidth_placeholder": "Adja meg a sávszélességet, hagyja üresen a BBR-hez", "bandwidth_placeholder": "Adja meg a sávszélességet, hagyja üresen a BBR-hez",
"basic": "Alapértelmezett Beállítások", "basic": "Alapértelmezett Beállítások",
"cancel": "Mégse", "cancel": "Mégse",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Ez a művelet nem vonható vissza.", "confirmDeleteDesc": "Ez a művelet nem vonható vissza.",
"confirmDeleteTitle": "Törölni szeretné ezt a szervert?", "confirmDeleteTitle": "Törölni szeretné ezt a szervert?",
"congestion_controller": "Torlaszkezelő", "congestion_controller": "Torlaszkezelő",
"connect": "Csatlakozás",
"copied": "Másolva", "copied": "Másolva",
"copy": "Másolás", "copy": "Másolás",
"country": "Ország", "country": "Ország",
@ -47,11 +50,14 @@
"expired": "Lejárt", "expired": "Lejárt",
"extra": "További konfiguráció", "extra": "További konfiguráció",
"flow": "Forgalom", "flow": "Forgalom",
"generate_quantum_resistant_key": "Kvantumálló kulcs generálása",
"generate_standard_encryption_key": "Szabványos titkosítási kulcs generálása",
"hop_interval": "Ugrás időköz", "hop_interval": "Ugrás időköz",
"hop_ports": "Ugrás portok", "hop_ports": "Ugrás portok",
"hop_ports_placeholder": "pl. 1-65535", "hop_ports_placeholder": "pl. 1-65535",
"host": "Gazda", "host": "Gazda",
"id": "ID", "id": "ID",
"installCommand": "Telepítési parancs",
"ipAddresses": "IP címek", "ipAddresses": "IP címek",
"memory": "Memória", "memory": "Memória",
"migrate": "Adatok migrálása", "migrate": "Adatok migrálása",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Adja meg az obfuszkálás jelszót", "obfs_password_placeholder": "Adja meg az obfuszkálás jelszót",
"obfs_path": "Obfs útvonal", "obfs_path": "Obfs útvonal",
"offline": "Offline", "offline": "Offline",
"oneClickInstall": "Egylépéses telepítés",
"online": "Online", "online": "Online",
"onlineUsers": "Online felhasználók", "onlineUsers": "Online felhasználók",
"padding_scheme": "Kitöltési Sémák", "padding_scheme": "Kitöltési Sémák",

View File

@ -5,6 +5,8 @@
}, },
"address": "アドレス", "address": "アドレス",
"address_placeholder": "サーバーアドレス", "address_placeholder": "サーバーアドレス",
"apiHost": "APIホスト",
"apiHostPlaceholder": "http(s)://example.com",
"bandwidth_placeholder": "帯域幅を入力してください。BBRの場合は空白のままにしてください。", "bandwidth_placeholder": "帯域幅を入力してください。BBRの場合は空白のままにしてください。",
"basic": "基本設定", "basic": "基本設定",
"cancel": "キャンセル", "cancel": "キャンセル",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "この操作は元に戻せません。", "confirmDeleteDesc": "この操作は元に戻せません。",
"confirmDeleteTitle": "このサーバーを削除しますか?", "confirmDeleteTitle": "このサーバーを削除しますか?",
"congestion_controller": "混雑制御", "congestion_controller": "混雑制御",
"connect": "接続",
"copied": "コピーしました", "copied": "コピーしました",
"copy": "コピー", "copy": "コピー",
"country": "国", "country": "国",
@ -47,11 +50,14 @@
"expired": "期限切れ", "expired": "期限切れ",
"extra": "追加設定", "extra": "追加設定",
"flow": "フロー", "flow": "フロー",
"generate_quantum_resistant_key": "量子耐性キーを生成",
"generate_standard_encryption_key": "標準暗号化キーを生成",
"hop_interval": "ホップ間隔", "hop_interval": "ホップ間隔",
"hop_ports": "ホップポート", "hop_ports": "ホップポート",
"hop_ports_placeholder": "例: 1-65535", "hop_ports_placeholder": "例: 1-65535",
"host": "ホスト", "host": "ホスト",
"id": "ID", "id": "ID",
"installCommand": "インストールコマンド",
"ipAddresses": "IPアドレス", "ipAddresses": "IPアドレス",
"memory": "メモリ", "memory": "メモリ",
"migrate": "データを移行する", "migrate": "データを移行する",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "難読化パスワードを入力してください", "obfs_password_placeholder": "難読化パスワードを入力してください",
"obfs_path": "難読化パス", "obfs_path": "難読化パス",
"offline": "オフライン", "offline": "オフライン",
"oneClickInstall": "ワンクリックインストール",
"online": "オンライン", "online": "オンライン",
"onlineUsers": "オンラインユーザー", "onlineUsers": "オンラインユーザー",
"padding_scheme": "パディングスキーム", "padding_scheme": "パディングスキーム",

View File

@ -5,6 +5,8 @@
}, },
"address": "주소", "address": "주소",
"address_placeholder": "서버 주소", "address_placeholder": "서버 주소",
"apiHost": "API 호스트",
"apiHostPlaceholder": "http(s)://example.com",
"bandwidth_placeholder": "대역폭을 입력하세요. BBR을 사용하려면 비워 두세요.", "bandwidth_placeholder": "대역폭을 입력하세요. BBR을 사용하려면 비워 두세요.",
"basic": "기본 설정", "basic": "기본 설정",
"cancel": "취소", "cancel": "취소",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "이 작업은 실행 취소할 수 없습니다.", "confirmDeleteDesc": "이 작업은 실행 취소할 수 없습니다.",
"confirmDeleteTitle": "이 서버를 삭제하시겠습니까?", "confirmDeleteTitle": "이 서버를 삭제하시겠습니까?",
"congestion_controller": "혼잡 제어기", "congestion_controller": "혼잡 제어기",
"connect": "연결",
"copied": "복사됨", "copied": "복사됨",
"copy": "복사", "copy": "복사",
"country": "국가", "country": "국가",
@ -47,11 +50,14 @@
"expired": "만료됨", "expired": "만료됨",
"extra": "추가 구성", "extra": "추가 구성",
"flow": "흐름", "flow": "흐름",
"generate_quantum_resistant_key": "양자 저항 키 생성",
"generate_standard_encryption_key": "표준 암호화 키 생성",
"hop_interval": "홉 간격", "hop_interval": "홉 간격",
"hop_ports": "홉 포트", "hop_ports": "홉 포트",
"hop_ports_placeholder": "예: 1-65535", "hop_ports_placeholder": "예: 1-65535",
"host": "호스트", "host": "호스트",
"id": "ID", "id": "ID",
"installCommand": "설치 명령",
"ipAddresses": "IP 주소", "ipAddresses": "IP 주소",
"memory": "메모리", "memory": "메모리",
"migrate": "데이터 마이그레이션", "migrate": "데이터 마이그레이션",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "난독화 비밀번호를 입력하세요", "obfs_password_placeholder": "난독화 비밀번호를 입력하세요",
"obfs_path": "난독화 경로", "obfs_path": "난독화 경로",
"offline": "오프라인", "offline": "오프라인",
"oneClickInstall": "원클릭 설치",
"online": "온라인", "online": "온라인",
"onlineUsers": "온라인 사용자", "onlineUsers": "온라인 사용자",
"padding_scheme": "패딩 규칙", "padding_scheme": "패딩 규칙",

View File

@ -5,6 +5,8 @@
}, },
"address": "Adresse", "address": "Adresse",
"address_placeholder": "Serveradresse", "address_placeholder": "Serveradresse",
"apiHost": "API-vert",
"apiHostPlaceholder": "http(s)://eksempel.com",
"bandwidth_placeholder": "Skriv inn båndbredde, la stå tomt for BBR", "bandwidth_placeholder": "Skriv inn båndbredde, la stå tomt for BBR",
"basic": "Grunnleggende Konfigurasjon", "basic": "Grunnleggende Konfigurasjon",
"cancel": "Avbryt", "cancel": "Avbryt",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Denne handlingen kan ikke angres.", "confirmDeleteDesc": "Denne handlingen kan ikke angres.",
"confirmDeleteTitle": "Slette denne serveren?", "confirmDeleteTitle": "Slette denne serveren?",
"congestion_controller": "Kongestjonskontroller", "congestion_controller": "Kongestjonskontroller",
"connect": "Koble til",
"copied": "Kopiert", "copied": "Kopiert",
"copy": "Kopier", "copy": "Kopier",
"country": "Land", "country": "Land",
@ -47,11 +50,14 @@
"expired": "Utløpt", "expired": "Utløpt",
"extra": "Ekstra konfigurasjon", "extra": "Ekstra konfigurasjon",
"flow": "Flyt", "flow": "Flyt",
"generate_quantum_resistant_key": "Generer kvantumresistent nøkkel",
"generate_standard_encryption_key": "Generer standard krypteringsnøkkel",
"hop_interval": "Hoppintervall", "hop_interval": "Hoppintervall",
"hop_ports": "Hoppporter", "hop_ports": "Hoppporter",
"hop_ports_placeholder": "f.eks. 1-65535", "hop_ports_placeholder": "f.eks. 1-65535",
"host": "Vert", "host": "Vert",
"id": "ID", "id": "ID",
"installCommand": "Installasjonskommando",
"ipAddresses": "IP-adresser", "ipAddresses": "IP-adresser",
"memory": "Minne", "memory": "Minne",
"migrate": "Migrer data", "migrate": "Migrer data",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Skriv inn obfuskasjonspassord", "obfs_password_placeholder": "Skriv inn obfuskasjonspassord",
"obfs_path": "Obfs Sti", "obfs_path": "Obfs Sti",
"offline": "Frakoblet", "offline": "Frakoblet",
"oneClickInstall": "Én-klikk installasjon",
"online": "På nett", "online": "På nett",
"onlineUsers": "Brukere på nett", "onlineUsers": "Brukere på nett",
"padding_scheme": "Polstring Skjema", "padding_scheme": "Polstring Skjema",

View File

@ -5,6 +5,8 @@
}, },
"address": "Adres", "address": "Adres",
"address_placeholder": "Adres serwera", "address_placeholder": "Adres serwera",
"apiHost": "Host API",
"apiHostPlaceholder": "http(s)://przyklad.com",
"bandwidth_placeholder": "Wprowadź przepustowość, pozostaw puste dla BBR", "bandwidth_placeholder": "Wprowadź przepustowość, pozostaw puste dla BBR",
"basic": "Podstawowa konfiguracja", "basic": "Podstawowa konfiguracja",
"cancel": "Anuluj", "cancel": "Anuluj",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Ta akcja nie może być cofnięta.", "confirmDeleteDesc": "Ta akcja nie może być cofnięta.",
"confirmDeleteTitle": "Usunąć ten serwer?", "confirmDeleteTitle": "Usunąć ten serwer?",
"congestion_controller": "Kontroler przeciążenia", "congestion_controller": "Kontroler przeciążenia",
"connect": "Połącz",
"copied": "Skopiowano", "copied": "Skopiowano",
"copy": "Kopiuj", "copy": "Kopiuj",
"country": "Kraj", "country": "Kraj",
@ -47,11 +50,14 @@
"expired": "Wygasł", "expired": "Wygasł",
"extra": "Dodatkowa konfiguracja", "extra": "Dodatkowa konfiguracja",
"flow": "Przepływ", "flow": "Przepływ",
"generate_quantum_resistant_key": "Generuj klucz odporny na kwanty",
"generate_standard_encryption_key": "Generuj standardowy klucz szyfrowania",
"hop_interval": "Interwał skoku", "hop_interval": "Interwał skoku",
"hop_ports": "Porty skoku", "hop_ports": "Porty skoku",
"hop_ports_placeholder": "np. 1-65535", "hop_ports_placeholder": "np. 1-65535",
"host": "Host", "host": "Host",
"id": "ID", "id": "ID",
"installCommand": "Polecenie instalacji",
"ipAddresses": "Adresy IP", "ipAddresses": "Adresy IP",
"memory": "Pamięć", "memory": "Pamięć",
"migrate": "Migracja danych", "migrate": "Migracja danych",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Wprowadź hasło obfuskacji", "obfs_password_placeholder": "Wprowadź hasło obfuskacji",
"obfs_path": "Ścieżka obfuskacji", "obfs_path": "Ścieżka obfuskacji",
"offline": "Offline", "offline": "Offline",
"oneClickInstall": "Instalacja jednym kliknięciem",
"online": "Online", "online": "Online",
"onlineUsers": "Użytkownicy online", "onlineUsers": "Użytkownicy online",
"padding_scheme": "Schemat wypełnienia", "padding_scheme": "Schemat wypełnienia",

View File

@ -5,6 +5,8 @@
}, },
"address": "Endereço", "address": "Endereço",
"address_placeholder": "Endereço do servidor", "address_placeholder": "Endereço do servidor",
"apiHost": "Host da API",
"apiHostPlaceholder": "http(s)://exemplo.com",
"bandwidth_placeholder": "Insira a largura de banda, deixe em branco para BBR", "bandwidth_placeholder": "Insira a largura de banda, deixe em branco para BBR",
"basic": "Configuração Básica", "basic": "Configuração Básica",
"cancel": "Cancelar", "cancel": "Cancelar",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Esta ação não pode ser desfeita.", "confirmDeleteDesc": "Esta ação não pode ser desfeita.",
"confirmDeleteTitle": "Excluir este servidor?", "confirmDeleteTitle": "Excluir este servidor?",
"congestion_controller": "Controlador de congestionamento", "congestion_controller": "Controlador de congestionamento",
"connect": "Conectar",
"copied": "Copiado", "copied": "Copiado",
"copy": "Copiar", "copy": "Copiar",
"country": "País", "country": "País",
@ -47,11 +50,14 @@
"expired": "Expirado", "expired": "Expirado",
"extra": "Configuração Extra", "extra": "Configuração Extra",
"flow": "Fluxo", "flow": "Fluxo",
"generate_quantum_resistant_key": "Gerar chave resistente a quânticos",
"generate_standard_encryption_key": "Gerar chave de criptografia padrão",
"hop_interval": "Intervalo de salto", "hop_interval": "Intervalo de salto",
"hop_ports": "Portas de salto", "hop_ports": "Portas de salto",
"hop_ports_placeholder": "ex. 1-65535", "hop_ports_placeholder": "ex. 1-65535",
"host": "Host", "host": "Host",
"id": "ID", "id": "ID",
"installCommand": "Comando de instalação",
"ipAddresses": "Endereços IP", "ipAddresses": "Endereços IP",
"memory": "Memória", "memory": "Memória",
"migrate": "Migrar Dados", "migrate": "Migrar Dados",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Insira a senha de ofuscação", "obfs_password_placeholder": "Insira a senha de ofuscação",
"obfs_path": "Caminho de Ofuscação", "obfs_path": "Caminho de Ofuscação",
"offline": "Offline", "offline": "Offline",
"oneClickInstall": "Instalação com um clique",
"online": "Online", "online": "Online",
"onlineUsers": "Usuários online", "onlineUsers": "Usuários online",
"padding_scheme": "Esquema de Preenchimento", "padding_scheme": "Esquema de Preenchimento",

View File

@ -5,6 +5,8 @@
}, },
"address": "Adresă", "address": "Adresă",
"address_placeholder": "Adresă server", "address_placeholder": "Adresă server",
"apiHost": "Gazda API",
"apiHostPlaceholder": "http(s)://exemplu.com",
"bandwidth_placeholder": "Introduceți lățimea de bandă, lăsați liber pentru BBR", "bandwidth_placeholder": "Introduceți lățimea de bandă, lăsați liber pentru BBR",
"basic": "Configurare de bază", "basic": "Configurare de bază",
"cancel": "Anulează", "cancel": "Anulează",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Această acțiune nu poate fi anulată.", "confirmDeleteDesc": "Această acțiune nu poate fi anulată.",
"confirmDeleteTitle": "Șterge acest server?", "confirmDeleteTitle": "Șterge acest server?",
"congestion_controller": "Controler de congestie", "congestion_controller": "Controler de congestie",
"connect": "Conectare",
"copied": "Copiat", "copied": "Copiat",
"copy": "Copiază", "copy": "Copiază",
"country": "Țară", "country": "Țară",
@ -47,11 +50,14 @@
"expired": "Expirat", "expired": "Expirat",
"extra": "Configurație suplimentară", "extra": "Configurație suplimentară",
"flow": "Flux", "flow": "Flux",
"generate_quantum_resistant_key": "Generează cheie rezistentă la cuantică",
"generate_standard_encryption_key": "Generează cheie de criptare standard",
"hop_interval": "Interval de hop", "hop_interval": "Interval de hop",
"hop_ports": "Porturi hop", "hop_ports": "Porturi hop",
"hop_ports_placeholder": "de ex. 1-65535", "hop_ports_placeholder": "de ex. 1-65535",
"host": "Gazdă", "host": "Gazdă",
"id": "ID", "id": "ID",
"installCommand": "Comandă de instalare",
"ipAddresses": "Adrese IP", "ipAddresses": "Adrese IP",
"memory": "Memorie", "memory": "Memorie",
"migrate": "Migrați datele", "migrate": "Migrați datele",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Introdu parola de obfuscare", "obfs_password_placeholder": "Introdu parola de obfuscare",
"obfs_path": "Cale Obfs", "obfs_path": "Cale Obfs",
"offline": "Offline", "offline": "Offline",
"oneClickInstall": "Instalare cu un singur clic",
"online": "Online", "online": "Online",
"onlineUsers": "Utilizatori online", "onlineUsers": "Utilizatori online",
"padding_scheme": "Schema de umplere", "padding_scheme": "Schema de umplere",

View File

@ -5,6 +5,8 @@
}, },
"address": "Адрес", "address": "Адрес",
"address_placeholder": "Адрес сервера", "address_placeholder": "Адрес сервера",
"apiHost": "API хост",
"apiHostPlaceholder": "http(s)://пример.ком",
"bandwidth_placeholder": "Введите пропускную способность, оставьте пустым для BBR", "bandwidth_placeholder": "Введите пропускную способность, оставьте пустым для BBR",
"basic": "Базовая конфигурация", "basic": "Базовая конфигурация",
"cancel": "Отмена", "cancel": "Отмена",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Это действие нельзя отменить.", "confirmDeleteDesc": "Это действие нельзя отменить.",
"confirmDeleteTitle": "Удалить этот сервер?", "confirmDeleteTitle": "Удалить этот сервер?",
"congestion_controller": "Контроллер перегрузки", "congestion_controller": "Контроллер перегрузки",
"connect": "Подключить",
"copied": "Скопировано", "copied": "Скопировано",
"copy": "Копировать", "copy": "Копировать",
"country": "Страна", "country": "Страна",
@ -47,11 +50,14 @@
"expired": "Истекло", "expired": "Истекло",
"extra": "Дополнительная конфигурация", "extra": "Дополнительная конфигурация",
"flow": "Поток", "flow": "Поток",
"generate_quantum_resistant_key": "Генерировать квантово-устойчивый ключ",
"generate_standard_encryption_key": "Генерировать стандартный ключ шифрования",
"hop_interval": "Интервал перехода", "hop_interval": "Интервал перехода",
"hop_ports": "Порты перехода", "hop_ports": "Порты перехода",
"hop_ports_placeholder": "например, 1-65535", "hop_ports_placeholder": "например, 1-65535",
"host": "Хост", "host": "Хост",
"id": "ID", "id": "ID",
"installCommand": "Команда установки",
"ipAddresses": "IP-адреса", "ipAddresses": "IP-адреса",
"memory": "Память", "memory": "Память",
"migrate": "Перенести данные", "migrate": "Перенести данные",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Введите пароль обфускации", "obfs_password_placeholder": "Введите пароль обфускации",
"obfs_path": "Обфусцированный путь", "obfs_path": "Обфусцированный путь",
"offline": "Офлайн", "offline": "Офлайн",
"oneClickInstall": "Установка в один клик",
"online": "Онлайн", "online": "Онлайн",
"onlineUsers": "Онлайн пользователи", "onlineUsers": "Онлайн пользователи",
"padding_scheme": "Схема выравнивания", "padding_scheme": "Схема выравнивания",

View File

@ -5,6 +5,8 @@
}, },
"address": "ที่อยู่", "address": "ที่อยู่",
"address_placeholder": "ที่อยู่เซิร์ฟเวอร์", "address_placeholder": "ที่อยู่เซิร์ฟเวอร์",
"apiHost": "โฮสต์ API",
"apiHostPlaceholder": "http(s)://example.com",
"bandwidth_placeholder": "กรุณากรอกแบนด์วิธ ทิ้งว่างไว้สำหรับ BBR", "bandwidth_placeholder": "กรุณากรอกแบนด์วิธ ทิ้งว่างไว้สำหรับ BBR",
"basic": "การตั้งค่าพื้นฐาน", "basic": "การตั้งค่าพื้นฐาน",
"cancel": "ยกเลิก", "cancel": "ยกเลิก",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "การกระทำนี้ไม่สามารถย้อนกลับได้", "confirmDeleteDesc": "การกระทำนี้ไม่สามารถย้อนกลับได้",
"confirmDeleteTitle": "ลบเซิร์ฟเวอร์นี้หรือไม่?", "confirmDeleteTitle": "ลบเซิร์ฟเวอร์นี้หรือไม่?",
"congestion_controller": "ตัวควบคุมความแออัด", "congestion_controller": "ตัวควบคุมความแออัด",
"connect": "เชื่อมต่อ",
"copied": "คัดลอกแล้ว", "copied": "คัดลอกแล้ว",
"copy": "คัดลอก", "copy": "คัดลอก",
"country": "ประเทศ", "country": "ประเทศ",
@ -47,11 +50,14 @@
"expired": "หมดอายุ", "expired": "หมดอายุ",
"extra": "การกำหนดค่าพิเศษ", "extra": "การกำหนดค่าพิเศษ",
"flow": "การไหล", "flow": "การไหล",
"generate_quantum_resistant_key": "สร้างคีย์ต้านทานควอนตัม",
"generate_standard_encryption_key": "สร้างคีย์เข้ารหัสมาตรฐาน",
"hop_interval": "ช่วงเวลาการกระโดด", "hop_interval": "ช่วงเวลาการกระโดด",
"hop_ports": "พอร์ตการกระโดด", "hop_ports": "พอร์ตการกระโดด",
"hop_ports_placeholder": "เช่น 1-65535", "hop_ports_placeholder": "เช่น 1-65535",
"host": "โฮสต์", "host": "โฮสต์",
"id": "ID", "id": "ID",
"installCommand": "คำสั่งติดตั้ง",
"ipAddresses": "ที่อยู่ IP", "ipAddresses": "ที่อยู่ IP",
"memory": "หน่วยความจำ", "memory": "หน่วยความจำ",
"migrate": "ย้ายข้อมูล", "migrate": "ย้ายข้อมูล",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "กรอกรหัสผ่านการปกปิด", "obfs_password_placeholder": "กรอกรหัสผ่านการปกปิด",
"obfs_path": "เส้นทางการทำให้ไม่สามารถอ่านได้", "obfs_path": "เส้นทางการทำให้ไม่สามารถอ่านได้",
"offline": "ออฟไลน์", "offline": "ออฟไลน์",
"oneClickInstall": "ติดตั้งด้วยคลิกเดียว",
"online": "ออนไลน์", "online": "ออนไลน์",
"onlineUsers": "ผู้ใช้งานออนไลน์", "onlineUsers": "ผู้ใช้งานออนไลน์",
"padding_scheme": "รูปแบบการเติม", "padding_scheme": "รูปแบบการเติม",

View File

@ -5,6 +5,8 @@
}, },
"address": "Adres", "address": "Adres",
"address_placeholder": "Sunucu adresi", "address_placeholder": "Sunucu adresi",
"apiHost": "API Sunucusu",
"apiHostPlaceholder": "http(s)://ornek.com",
"bandwidth_placeholder": "Bant genişliğini girin, BBR için boş bırakın", "bandwidth_placeholder": "Bant genişliğini girin, BBR için boş bırakın",
"basic": "Temel Yapılandırma", "basic": "Temel Yapılandırma",
"cancel": "İptal", "cancel": "İptal",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Bu işlem geri alınamaz.", "confirmDeleteDesc": "Bu işlem geri alınamaz.",
"confirmDeleteTitle": "Bu sunucuyu silmek istiyor musunuz?", "confirmDeleteTitle": "Bu sunucuyu silmek istiyor musunuz?",
"congestion_controller": "Tıkanıklık kontrolörü", "congestion_controller": "Tıkanıklık kontrolörü",
"connect": "Bağlan",
"copied": "Kopyalandı", "copied": "Kopyalandı",
"copy": "Kopyala", "copy": "Kopyala",
"country": "Ülke", "country": "Ülke",
@ -47,11 +50,14 @@
"expired": "Süresi dolmuş", "expired": "Süresi dolmuş",
"extra": "Ek Yapılandırma", "extra": "Ek Yapılandırma",
"flow": "Akış", "flow": "Akış",
"generate_quantum_resistant_key": "Kuantuma Dayanıklı Anahtar Oluştur",
"generate_standard_encryption_key": "Standart Şifreleme Anahtarı Oluştur",
"hop_interval": "Atlama aralığı", "hop_interval": "Atlama aralığı",
"hop_ports": "Atlama portları", "hop_ports": "Atlama portları",
"hop_ports_placeholder": "örn. 1-65535", "hop_ports_placeholder": "örn. 1-65535",
"host": "Ana bilgisayar", "host": "Ana bilgisayar",
"id": "ID", "id": "ID",
"installCommand": "Kurulum komutu",
"ipAddresses": "IP adresleri", "ipAddresses": "IP adresleri",
"memory": "Bellek", "memory": "Bellek",
"migrate": "Veri Taşı", "migrate": "Veri Taşı",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Gizleme şifresini girin", "obfs_password_placeholder": "Gizleme şifresini girin",
"obfs_path": "Obfs Yolu", "obfs_path": "Obfs Yolu",
"offline": "Çevrimdışı", "offline": "Çevrimdışı",
"oneClickInstall": "Tek Tıkla Kurulum",
"online": "Çevrimiçi", "online": "Çevrimiçi",
"onlineUsers": "Çevrimiçi kullanıcılar", "onlineUsers": "Çevrimiçi kullanıcılar",
"padding_scheme": "Dolgu Şeması", "padding_scheme": "Dolgu Şeması",

View File

@ -5,6 +5,8 @@
}, },
"address": "Адреса", "address": "Адреса",
"address_placeholder": "Адреса сервера", "address_placeholder": "Адреса сервера",
"apiHost": "API хост",
"apiHostPlaceholder": "http(s)://example.com",
"bandwidth_placeholder": "Введіть пропускну здатність, залиште порожнім для BBR", "bandwidth_placeholder": "Введіть пропускну здатність, залиште порожнім для BBR",
"basic": "Базова конфігурація", "basic": "Базова конфігурація",
"cancel": "Скасувати", "cancel": "Скасувати",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Цю дію не можна скасувати.", "confirmDeleteDesc": "Цю дію не можна скасувати.",
"confirmDeleteTitle": "Видалити цей сервер?", "confirmDeleteTitle": "Видалити цей сервер?",
"congestion_controller": "Контролер перевантаження", "congestion_controller": "Контролер перевантаження",
"connect": "Підключити",
"copied": "Скопійовано", "copied": "Скопійовано",
"copy": "Копіювати", "copy": "Копіювати",
"country": "Країна", "country": "Країна",
@ -47,11 +50,14 @@
"expired": "Термін дії закінчився", "expired": "Термін дії закінчився",
"extra": "Додаткова конфігурація", "extra": "Додаткова конфігурація",
"flow": "Потік", "flow": "Потік",
"generate_quantum_resistant_key": "Згенерувати квантово-стійкий ключ",
"generate_standard_encryption_key": "Згенерувати стандартний ключ шифрування",
"hop_interval": "Інтервал стрибка", "hop_interval": "Інтервал стрибка",
"hop_ports": "Порти стрибка", "hop_ports": "Порти стрибка",
"hop_ports_placeholder": "наприклад, 1-65535", "hop_ports_placeholder": "наприклад, 1-65535",
"host": "Хост", "host": "Хост",
"id": "ID", "id": "ID",
"installCommand": "Команда встановлення",
"ipAddresses": "IP адреси", "ipAddresses": "IP адреси",
"memory": "Пам'ять", "memory": "Пам'ять",
"migrate": "Міграція даних", "migrate": "Міграція даних",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Введіть пароль обфускації", "obfs_password_placeholder": "Введіть пароль обфускації",
"obfs_path": "Обфускаційний шлях", "obfs_path": "Обфускаційний шлях",
"offline": "Офлайн", "offline": "Офлайн",
"oneClickInstall": "Встановлення в один клік",
"online": "Онлайн", "online": "Онлайн",
"onlineUsers": "Онлайн користувачі", "onlineUsers": "Онлайн користувачі",
"padding_scheme": "Схема заповнення", "padding_scheme": "Схема заповнення",

View File

@ -5,6 +5,8 @@
}, },
"address": "Địa chỉ", "address": "Địa chỉ",
"address_placeholder": "Địa chỉ máy chủ", "address_placeholder": "Địa chỉ máy chủ",
"apiHost": "Máy chủ API",
"apiHostPlaceholder": "http(s)://example.com",
"bandwidth_placeholder": "Nhập băng thông, để trống cho BBR", "bandwidth_placeholder": "Nhập băng thông, để trống cho BBR",
"basic": "Cấu Hình Cơ Bản", "basic": "Cấu Hình Cơ Bản",
"cancel": "Hủy", "cancel": "Hủy",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "Hành động này không thể hoàn tác.", "confirmDeleteDesc": "Hành động này không thể hoàn tác.",
"confirmDeleteTitle": "Xóa máy chủ này?", "confirmDeleteTitle": "Xóa máy chủ này?",
"congestion_controller": "Bộ điều khiển tắc nghẽn", "congestion_controller": "Bộ điều khiển tắc nghẽn",
"connect": "Kết nối",
"copied": "Đã sao chép", "copied": "Đã sao chép",
"copy": "Sao chép", "copy": "Sao chép",
"country": "Quốc gia", "country": "Quốc gia",
@ -47,11 +50,14 @@
"expired": "Đã hết hạn", "expired": "Đã hết hạn",
"extra": "Cấu hình thêm", "extra": "Cấu hình thêm",
"flow": "Lưu lượng", "flow": "Lưu lượng",
"generate_quantum_resistant_key": "Tạo khóa chống lượng tử",
"generate_standard_encryption_key": "Tạo khóa mã hóa tiêu chuẩn",
"hop_interval": "Khoảng thời gian nhảy", "hop_interval": "Khoảng thời gian nhảy",
"hop_ports": "Cổng nhảy", "hop_ports": "Cổng nhảy",
"hop_ports_placeholder": "vd. 1-65535", "hop_ports_placeholder": "vd. 1-65535",
"host": "Máy chủ", "host": "Máy chủ",
"id": "ID", "id": "ID",
"installCommand": "Lệnh cài đặt",
"ipAddresses": "Địa chỉ IP", "ipAddresses": "Địa chỉ IP",
"memory": "Bộ nhớ", "memory": "Bộ nhớ",
"migrate": "Di chuyển dữ liệu", "migrate": "Di chuyển dữ liệu",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "Nhập mật khẩu làm mờ", "obfs_password_placeholder": "Nhập mật khẩu làm mờ",
"obfs_path": "Đường dẫn Obfs", "obfs_path": "Đường dẫn Obfs",
"offline": "Ngoại tuyến", "offline": "Ngoại tuyến",
"oneClickInstall": "Cài đặt một lần nhấp",
"online": "Trực tuyến", "online": "Trực tuyến",
"onlineUsers": "Người dùng trực tuyến", "onlineUsers": "Người dùng trực tuyến",
"padding_scheme": "Sơ Đồ Đệm", "padding_scheme": "Sơ Đồ Đệm",

View File

@ -5,6 +5,8 @@
}, },
"address": "地址", "address": "地址",
"address_placeholder": "服务器地址", "address_placeholder": "服务器地址",
"apiHost": "API Host",
"apiHostPlaceholder": "http(s)://example.com",
"bandwidth_placeholder": "请输入带宽留空则使用BBR", "bandwidth_placeholder": "请输入带宽留空则使用BBR",
"basic": "基础配置", "basic": "基础配置",
"cancel": "取消", "cancel": "取消",
@ -13,12 +15,16 @@
"cert_mode": "证书模式", "cert_mode": "证书模式",
"cipher": "加密算法", "cipher": "加密算法",
"city": "城市", "city": "城市",
"close": "关闭",
"confirm": "确认", "confirm": "确认",
"confirmDeleteDesc": "该操作不可撤销。", "confirmDeleteDesc": "该操作不可撤销。",
"confirmDeleteTitle": "确认删除该服务器?", "confirmDeleteTitle": "确认删除该服务器?",
"congestion_controller": "拥塞控制", "congestion_controller": "拥塞控制",
"connect": "对接",
"copied": "已复制", "copied": "已复制",
"copy": "复制", "copy": "复制",
"copyAndClose": "复制并关闭",
"copyFailed": "复制失败",
"country": "国家", "country": "国家",
"cpu": "CPU", "cpu": "CPU",
"create": "新建", "create": "新建",
@ -47,11 +53,14 @@
"expired": "已过期", "expired": "已过期",
"extra": "额外配置", "extra": "额外配置",
"flow": "流控", "flow": "流控",
"generate_quantum_resistant_key": "生成抗量子密钥",
"generate_standard_encryption_key": "生成标准加密密钥",
"hop_interval": "跳跃端口间隔", "hop_interval": "跳跃端口间隔",
"hop_ports": "跳跃端口", "hop_ports": "跳跃端口",
"hop_ports_placeholder": "例如 1-65535", "hop_ports_placeholder": "例如 1-65535",
"host": "Host", "host": "Host",
"id": "编号", "id": "编号",
"installCommand": "一键安装命令",
"ipAddresses": "IP 地址", "ipAddresses": "IP 地址",
"memory": "内存", "memory": "内存",
"migrate": "迁移数据", "migrate": "迁移数据",
@ -69,6 +78,7 @@
"obfs_password_placeholder": "输入混淆密码", "obfs_password_placeholder": "输入混淆密码",
"obfs_path": "混淆路径", "obfs_path": "混淆路径",
"offline": "离线", "offline": "离线",
"oneClickInstall": "一键接入",
"online": "在线", "online": "在线",
"onlineUsers": "在线人数", "onlineUsers": "在线人数",
"padding_scheme": "填充方案", "padding_scheme": "填充方案",

View File

@ -5,6 +5,8 @@
}, },
"address": "地址", "address": "地址",
"address_placeholder": "伺服器地址", "address_placeholder": "伺服器地址",
"apiHost": "API 主機",
"apiHostPlaceholder": "http(s)://example.com",
"bandwidth_placeholder": "輸入帶寬留空以使用BBR", "bandwidth_placeholder": "輸入帶寬留空以使用BBR",
"basic": "基本配置", "basic": "基本配置",
"cancel": "取消", "cancel": "取消",
@ -17,6 +19,7 @@
"confirmDeleteDesc": "此操作無法撤銷。", "confirmDeleteDesc": "此操作無法撤銷。",
"confirmDeleteTitle": "刪除此伺服器?", "confirmDeleteTitle": "刪除此伺服器?",
"congestion_controller": "擁塞控制器", "congestion_controller": "擁塞控制器",
"connect": "連接",
"copied": "已複製", "copied": "已複製",
"copy": "複製", "copy": "複製",
"country": "國家", "country": "國家",
@ -47,11 +50,14 @@
"expired": "已過期", "expired": "已過期",
"extra": "額外配置", "extra": "額外配置",
"flow": "流量", "flow": "流量",
"generate_quantum_resistant_key": "生成抗量子密鑰",
"generate_standard_encryption_key": "生成標準加密密鑰",
"hop_interval": "跳躍間隔", "hop_interval": "跳躍間隔",
"hop_ports": "跳躍端口", "hop_ports": "跳躍端口",
"hop_ports_placeholder": "例如 1-65535", "hop_ports_placeholder": "例如 1-65535",
"host": "主機", "host": "主機",
"id": "ID", "id": "ID",
"installCommand": "安裝命令",
"ipAddresses": "IP 地址", "ipAddresses": "IP 地址",
"memory": "內存", "memory": "內存",
"migrate": "遷移數據", "migrate": "遷移數據",
@ -69,6 +75,7 @@
"obfs_password_placeholder": "輸入混淆密碼", "obfs_password_placeholder": "輸入混淆密碼",
"obfs_path": "混淆路徑", "obfs_path": "混淆路徑",
"offline": "離線", "offline": "離線",
"oneClickInstall": "一鍵安裝",
"online": "在線", "online": "在線",
"onlineUsers": "在線用戶", "onlineUsers": "在線用戶",
"padding_scheme": "填充方案", "padding_scheme": "填充方案",

View File

@ -11,7 +11,8 @@
}, },
"dependencies": { "dependencies": {
"@lottiefiles/dotlottie-react": "^0.15.1", "@lottiefiles/dotlottie-react": "^0.15.1",
"@noble/curves": "^2.0.0", "@noble/curves": "^2.0.1",
"@noble/ed25519": "^3.0.0",
"@tanstack/react-query": "^5.85.5", "@tanstack/react-query": "^5.85.5",
"@tanstack/react-query-next-experimental": "^5.85.5", "@tanstack/react-query-next-experimental": "^5.85.5",
"@workspace/ui": "workspace:*", "@workspace/ui": "workspace:*",
@ -20,14 +21,14 @@
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"mlkem-wasm": "^0.0.6", "mlkem-wasm": "^0.0.6",
"nanoid": "^5.1.5", "nanoid": "^5.1.5",
"next": "^15.5.2", "next": "^15.5.7",
"next-intl": "^3.26.3", "next-intl": "^3.26.3",
"next-runtime-env": "^3.3.0", "next-runtime-env": "^3.3.0",
"next-themes": "^0.4.6", "next-themes": "^0.4.6",
"nextjs-toploader": "^3.8.16", "nextjs-toploader": "^3.8.16",
"radash": "^12.1.1", "radash": "^12.1.1",
"react": "^19.1.1", "react": "^19.2.1",
"react-dom": "^19.1.1", "react-dom": "^19.2.1",
"react-turnstile": "^1.1.4", "react-turnstile": "^1.1.4",
"universal-cookie": "^8.0.1", "universal-cookie": "^8.0.1",
"zustand": "^5.0.8" "zustand": "^5.0.8"
@ -35,8 +36,8 @@
"devDependencies": { "devDependencies": {
"@types/js-yaml": "^4.0.9", "@types/js-yaml": "^4.0.9",
"@types/node": "^24.3.0", "@types/node": "^24.3.0",
"@types/react": "^19.1.11", "@types/react": "^19.2.7",
"@types/react-dom": "^19.1.8", "@types/react-dom": "^19.2.3",
"@types/rtl-detect": "^1.0.3", "@types/rtl-detect": "^1.0.3",
"@workspace/eslint-config": "workspace:*", "@workspace/eslint-config": "workspace:*",
"@workspace/typescript-config": "workspace:*", "@workspace/typescript-config": "workspace:*",

View File

@ -76,6 +76,17 @@ export async function updateNodeConfig(body: API.NodeConfig, options?: { [key: s
}); });
} }
/** PreView Node Multiplier GET /v1/admin/system/node_multiplier/preview */
export async function preViewNodeMultiplier(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.PreViewNodeMultiplierResponse }>(
'/v1/admin/system/node_multiplier/preview',
{
method: 'GET',
...(options || {}),
},
);
}
/** get Privacy Policy Config GET /v1/admin/system/privacy */ /** get Privacy Policy Config GET /v1/admin/system/privacy */
export async function getPrivacyPolicyConfig(options?: { [key: string]: any }) { export async function getPrivacyPolicyConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.PrivacyPolicyConfig }>('/v1/admin/system/privacy', { return request<API.Response & { data?: API.PrivacyPolicyConfig }>('/v1/admin/system/privacy', {

View File

@ -108,6 +108,7 @@ declare namespace API {
type AuthConfig = { type AuthConfig = {
mobile: MobileAuthenticateConfig; mobile: MobileAuthenticateConfig;
email: EmailAuthticateConfig; email: EmailAuthticateConfig;
device: DeviceAuthticateConfig;
register: PubilcRegisterConfig; register: PubilcRegisterConfig;
}; };
@ -456,6 +457,13 @@ declare namespace API {
user_subscribe_id: number; user_subscribe_id: number;
}; };
type DeviceAuthticateConfig = {
enable: boolean;
show_ads: boolean;
enable_security: boolean;
only_real_device: boolean;
};
type Document = { type Document = {
id: number; id: number;
title: string; title: string;
@ -1495,6 +1503,11 @@ declare namespace API {
orderNo: string; orderNo: string;
}; };
type PreViewNodeMultiplierResponse = {
current_time: string;
ratio: number;
};
type PreviewSubscribeTemplateParams = { type PreviewSubscribeTemplateParams = {
id: number; id: number;
}; };

View File

@ -47,6 +47,18 @@ export async function userLogin(body: API.UserLoginRequest, options?: { [key: st
}); });
} }
/** Device Login POST /v1/auth/login/device */
export async function deviceLogin(body: API.DeviceLoginRequest, options?: { [key: string]: any }) {
return request<API.Response & { data?: API.LoginResponse }>('/v1/auth/login/device', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** User Telephone login POST /v1/auth/login/telephone */ /** User Telephone login POST /v1/auth/login/telephone */
export async function telephoneLogin( export async function telephoneLogin(
body: API.TelephoneLoginRequest, body: API.TelephoneLoginRequest,

View File

@ -114,6 +114,7 @@ declare namespace API {
type AuthConfig = { type AuthConfig = {
mobile: MobileAuthenticateConfig; mobile: MobileAuthenticateConfig;
email: EmailAuthticateConfig; email: EmailAuthticateConfig;
device: DeviceAuthticateConfig;
register: PubilcRegisterConfig; register: PubilcRegisterConfig;
}; };
@ -211,6 +212,19 @@ declare namespace API {
currency_symbol: string; currency_symbol: string;
}; };
type DeviceAuthticateConfig = {
enable: boolean;
show_ads: boolean;
enable_security: boolean;
only_real_device: boolean;
};
type DeviceLoginRequest = {
identifier: string;
user_agent: string;
cf_token?: string;
};
type Document = { type Document = {
id: number; id: number;
title: string; title: string;
@ -706,6 +720,7 @@ declare namespace API {
}; };
type ResetPasswordRequest = { type ResetPasswordRequest = {
identifier: string;
email: string; email: string;
password: string; password: string;
code?: string; code?: string;
@ -898,6 +913,7 @@ declare namespace API {
}; };
type TelephoneLoginRequest = { type TelephoneLoginRequest = {
identifier: string;
telephone: string; telephone: string;
telephone_code: string; telephone_code: string;
telephone_area_code: string; telephone_area_code: string;
@ -906,6 +922,7 @@ declare namespace API {
}; };
type TelephoneRegisterRequest = { type TelephoneRegisterRequest = {
identifier: string;
telephone: string; telephone: string;
telephone_area_code: string; telephone_area_code: string;
password: string; password: string;
@ -915,6 +932,7 @@ declare namespace API {
}; };
type TelephoneResetPasswordRequest = { type TelephoneResetPasswordRequest = {
identifier: string;
telephone: string; telephone: string;
telephone_area_code: string; telephone_area_code: string;
password: string; password: string;
@ -1035,12 +1053,14 @@ declare namespace API {
}; };
type UserLoginRequest = { type UserLoginRequest = {
identifier: string;
email: string; email: string;
password: string; password: string;
cf_token?: string; cf_token?: string;
}; };
type UserRegisterRequest = { type UserRegisterRequest = {
identifier: string;
email: string; email: string;
password: string; password: string;
invite?: string; invite?: string;

74
apps/admin/store/stats.ts Normal file
View File

@ -0,0 +1,74 @@
import { create } from 'zustand';
// Fixed remote stats endpoint and required header
export const REQUIRED_HEADER_NAME = 'stats';
export const REQUIRED_HEADER_VALUE = 'ppanel.dev';
const STATS_URL = 'https://stats.ppanel.dev';
const STATS_LOADED_KEY = 'ppanel:stats:loaded';
interface StatsState {
loading: boolean;
loaded: boolean;
stats: () => Promise<void>;
}
async function hashHostname(hostname: string): Promise<string> {
try {
const encoder = new TextEncoder();
const data = encoder.encode(hostname);
const hashBuffer = await crypto.subtle.digest('SHA-256', data);
const hashArray = Array.from(new Uint8Array(hashBuffer));
return hashArray.map((b) => b.toString(16).padStart(2, '0')).join('');
} catch (e) {
return '';
}
}
export const useStatsStore = create<StatsState>((set) => ({
loading: false,
loaded:
typeof window !== 'undefined' ? Boolean(window.localStorage.getItem(STATS_LOADED_KEY)) : false,
stats: async () => {
// if already recorded, skip
if (typeof window !== 'undefined') {
try {
if (window.localStorage.getItem(STATS_LOADED_KEY)) return;
} catch {}
}
set({ loading: true });
try {
const hostname =
typeof window !== 'undefined' && window.location ? window.location.hostname : '';
const domain = hostname ? await hashHostname(hostname) : '';
await fetch(STATS_URL, {
method: 'POST',
headers: {
[REQUIRED_HEADER_NAME]: REQUIRED_HEADER_VALUE,
'Content-Type': 'application/json',
},
body: JSON.stringify({
domain,
}),
});
set({ loaded: true });
if (typeof window !== 'undefined') {
try {
window.localStorage.setItem(STATS_LOADED_KEY, '1');
} catch {}
}
} catch (error) {
// treat as completed to avoid repeated attempts
set({ loaded: false });
if (typeof window !== 'undefined') {
try {
window.localStorage.setItem(STATS_LOADED_KEY, '0');
} catch {}
}
} finally {
set({ loading: false });
}
},
}));

View File

@ -20,6 +20,7 @@ export default function PhoneAuthForm() {
const [type, setType] = useState<'login' | 'register' | 'reset'>('login'); const [type, setType] = useState<'login' | 'register' | 'reset'>('login');
const [loading, startTransition] = useTransition(); const [loading, startTransition] = useTransition();
const [initialValues, setInitialValues] = useState<API.TelephoneLoginRequest>({ const [initialValues, setInitialValues] = useState<API.TelephoneLoginRequest>({
identifier: '',
telephone: '', telephone: '',
telephone_area_code: '1', telephone_area_code: '1',
password: '', password: '',

View File

@ -19,6 +19,8 @@ export default function Certification({ platform, children }: CertificationProps
oAuthLoginGetToken({ oAuthLoginGetToken({
method: platform, method: platform,
callback: searchParams, callback: searchParams,
// @ts-ignore
invite: localStorage.getItem('invite') || '',
}) })
.then((res) => { .then((res) => {
const token = res?.data?.data?.token; const token = res?.data?.data?.token;

View File

@ -48,6 +48,12 @@ export const useGlobalStore = create<GlobalStore>((set, get) => ({
ip_register_limit: 0, ip_register_limit: 0,
ip_register_limit_duration: 0, ip_register_limit_duration: 0,
}, },
device: {
enable: false,
show_ads: false,
enable_security: false,
only_real_device: false,
},
}, },
invite: { invite: {
forced_invite: false, forced_invite: false,

View File

@ -13,6 +13,22 @@
"3": "Koupit", "3": "Koupit",
"4": "Vrácení peněz", "4": "Vrácení peněz",
"5": "Odměna", "5": "Odměna",
"6": "Provize" "6": "Provize",
"231": "Automatické resetování",
"232": "Předběžný reset",
"233": "Placený reset",
"321": "Dobití",
"322": "Výběr",
"323": "Platba",
"324": "Vrácení peněz",
"325": "Odměna",
"326": "Úprava administrátora",
"331": "Nákup",
"332": "Obnovení",
"333": "Vrácení peněz",
"334": "Výběr",
"335": "Úprava administrátora",
"341": "Navýšení",
"342": "Snížení"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "Kaufen", "3": "Kaufen",
"4": "Rückerstattung", "4": "Rückerstattung",
"5": "Belohnung", "5": "Belohnung",
"6": "Provision" "6": "Provision",
"231": "Automatisches Zurücksetzen",
"232": "Vorzeitiges Zurücksetzen",
"233": "Kostenpflichtiges Zurücksetzen",
"321": "Aufladen",
"322": "Abheben",
"323": "Zahlung",
"324": "Rückerstattung",
"325": "Belohnung",
"326": "Admin-Anpassung",
"331": "Kauf",
"332": "Verlängerung",
"333": "Rückerstattung",
"334": "Abheben",
"335": "Admin-Anpassung",
"341": "Erhöhung",
"342": "Reduzierung"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "Purchase", "3": "Purchase",
"4": "Refund", "4": "Refund",
"5": "Reward", "5": "Reward",
"6": "Commission" "6": "Commission",
"231": "Auto Reset",
"232": "Advance Reset",
"233": "Paid Reset",
"321": "Recharge",
"322": "Withdraw",
"323": "Payment",
"324": "Refund",
"325": "Reward",
"326": "Admin Adjust",
"331": "Purchase",
"332": "Renewal",
"333": "Refund",
"334": "Withdraw",
"335": "Admin Adjust",
"341": "Increase",
"342": "Reduce"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "compra", "3": "compra",
"4": "reembolso", "4": "reembolso",
"5": "recompensa", "5": "recompensa",
"6": "comisión" "6": "comisión",
"231": "restablecimiento automático",
"232": "restablecimiento anticipado",
"233": "restablecimiento de pago",
"321": "recarga",
"322": "retiro",
"323": "pago",
"324": "reembolso",
"325": "recompensa",
"326": "ajuste de administrador",
"331": "compra",
"332": "renovación",
"333": "reembolso",
"334": "retiro",
"335": "ajuste de administrador",
"341": "incremento",
"342": "reducción"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "Compra", "3": "Compra",
"4": "Reembolso", "4": "Reembolso",
"5": "Recompensa", "5": "Recompensa",
"6": "Comisión" "6": "Comisión",
"231": "Restablecimiento automático",
"232": "Restablecimiento anticipado",
"233": "Restablecimiento de pago",
"321": "Recarga",
"322": "Retiro",
"323": "Pago",
"324": "Reembolso",
"325": "Recompensa",
"326": "Ajuste de administrador",
"331": "Compra",
"332": "Renovación",
"333": "Reembolso",
"334": "Retiro",
"335": "Ajuste de administrador",
"341": "Incremento",
"342": "Reducción"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "خرید", "3": "خرید",
"4": "بازپرداخت", "4": "بازپرداخت",
"5": "پاداش", "5": "پاداش",
"6": "کمیسیون" "6": "کمیسیون",
"231": "بازنشانی خودکار",
"232": "بازنشانی پیشاپیش",
"233": "بازنشانی پولی",
"321": "شارژ",
"322": "برداشت",
"323": "پرداخت",
"324": "بازپرداخت",
"325": "پاداش",
"326": "تنظیم مدیر",
"331": "خرید",
"332": "تمدید",
"333": "بازپرداخت",
"334": "برداشت",
"335": "تنظیم مدیر",
"341": "افزایش",
"342": "کاهش"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "Osto", "3": "Osto",
"4": "Hyvitys", "4": "Hyvitys",
"5": "Palkinto", "5": "Palkinto",
"6": "Komissio" "6": "Komissio",
"231": "Automaattinen nollaus",
"232": "Ennakkonollaus",
"233": "Maksullinen nollaus",
"321": "Lataus",
"322": "Nosto",
"323": "Maksu",
"324": "Hyvitys",
"325": "Palkinto",
"326": "Ylläpitäjän säätö",
"331": "Osto",
"332": "Uusiminen",
"333": "Hyvitys",
"334": "Nosto",
"335": "Ylläpitäjän säätö",
"341": "Lisäys",
"342": "Vähennys"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "Achat", "3": "Achat",
"4": "Remboursement", "4": "Remboursement",
"5": "Récompense", "5": "Récompense",
"6": "Commission" "6": "Commission",
"231": "Réinitialisation automatique",
"232": "Réinitialisation anticipée",
"233": "Réinitialisation payante",
"321": "Recharge",
"322": "Retrait",
"323": "Paiement",
"324": "Remboursement",
"325": "Récompense",
"326": "Ajustement administrateur",
"331": "Achat",
"332": "Renouvellement",
"333": "Remboursement",
"334": "Retrait",
"335": "Ajustement administrateur",
"341": "Augmentation",
"342": "Réduction"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "खरीद", "3": "खरीद",
"4": "वापसी", "4": "वापसी",
"5": "इनाम", "5": "इनाम",
"6": "कमीशन" "6": "कमीशन",
"231": "स्वचालित रीसेट",
"232": "अग्रिम रीसेट",
"233": "सशुल्क रीसेट",
"321": "रिचार्ज",
"322": "निकासी",
"323": "भुगतान",
"324": "वापसी",
"325": "इनाम",
"326": "व्यवस्थापक समायोजन",
"331": "खरीद",
"332": "नवीनीकरण",
"333": "वापसी",
"334": "निकासी",
"335": "व्यवस्थापक समायोजन",
"341": "वृद्धि",
"342": "कमी"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "Vásárlás", "3": "Vásárlás",
"4": "Visszatérítés", "4": "Visszatérítés",
"5": "Jutalom", "5": "Jutalom",
"6": "Jutalék" "6": "Jutalék",
"231": "Automatikus visszaállítás",
"232": "Előzetes visszaállítás",
"233": "Fizetős visszaállítás",
"321": "Feltöltés",
"322": "Kivétel",
"323": "Fizetés",
"324": "Visszatérítés",
"325": "Jutalom",
"326": "Admin módosítás",
"331": "Vásárlás",
"332": "Megújítás",
"333": "Visszatérítés",
"334": "Kivétel",
"335": "Admin módosítás",
"341": "Növelés",
"342": "Csökkentés"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "購入", "3": "購入",
"4": "返金", "4": "返金",
"5": "報酬", "5": "報酬",
"6": "手数料" "6": "手数料",
"231": "自動リセット",
"232": "事前リセット",
"233": "有料リセット",
"321": "チャージ",
"322": "引き出し",
"323": "支払い",
"324": "返金",
"325": "報酬",
"326": "管理者調整",
"331": "購入",
"332": "更新",
"333": "返金",
"334": "引き出し",
"335": "管理者調整",
"341": "増加",
"342": "減少"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "구매", "3": "구매",
"4": "환불", "4": "환불",
"5": "보상", "5": "보상",
"6": "커미션" "6": "커미션",
"231": "자동 초기화",
"232": "사전 초기화",
"233": "유료 초기화",
"321": "충전",
"322": "출금",
"323": "결제",
"324": "환불",
"325": "보상",
"326": "관리자 조정",
"331": "구매",
"332": "갱신",
"333": "환불",
"334": "출금",
"335": "관리자 조정",
"341": "증가",
"342": "감소"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "Kjøp", "3": "Kjøp",
"4": "Refusjon", "4": "Refusjon",
"5": "Belønning", "5": "Belønning",
"6": "Kommisjon" "6": "Kommisjon",
"231": "Automatisk tilbakestilling",
"232": "Forhåndstilbakestilling",
"233": "Betalt tilbakestilling",
"321": "Innskudd",
"322": "Uttak",
"323": "Betaling",
"324": "Refusjon",
"325": "Belønning",
"326": "Admin-justering",
"331": "Kjøp",
"332": "Fornyelse",
"333": "Refusjon",
"334": "Uttak",
"335": "Admin-justering",
"341": "Økning",
"342": "Reduksjon"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "Zakup", "3": "Zakup",
"4": "Zwrot", "4": "Zwrot",
"5": "Nagroda", "5": "Nagroda",
"6": "Prowizja" "6": "Prowizja",
"231": "Automatyczne resetowanie",
"232": "Wcześniejszy reset",
"233": "Płatny reset",
"321": "Doładowanie",
"322": "Wypłata",
"323": "Płatność",
"324": "Zwrot",
"325": "Nagroda",
"326": "Korekta administratora",
"331": "Zakup",
"332": "Odnowienie",
"333": "Zwrot",
"334": "Wypłata",
"335": "Korekta administratora",
"341": "Zwiększenie",
"342": "Zmniejszenie"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "compra", "3": "compra",
"4": "reembolso", "4": "reembolso",
"5": "recompensa", "5": "recompensa",
"6": "comissão" "6": "comissão",
"231": "redefinição automática",
"232": "redefinição antecipada",
"233": "redefinição paga",
"321": "recarga",
"322": "retirada",
"323": "pagamento",
"324": "reembolso",
"325": "recompensa",
"326": "ajuste do administrador",
"331": "compra",
"332": "renovação",
"333": "reembolso",
"334": "retirada",
"335": "ajuste do administrador",
"341": "aumento",
"342": "redução"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "Cumpărare", "3": "Cumpărare",
"4": "Rambursare", "4": "Rambursare",
"5": "Recompensă", "5": "Recompensă",
"6": "Comision" "6": "Comision",
"231": "Resetare automată",
"232": "Resetare în avans",
"233": "Resetare plătită",
"321": "Reîncărcare",
"322": "Retragere",
"323": "Plată",
"324": "Rambursare",
"325": "Recompensă",
"326": "Ajustare administrator",
"331": "Cumpărare",
"332": "Reînnoire",
"333": "Rambursare",
"334": "Retragere",
"335": "Ajustare administrator",
"341": "Creștere",
"342": "Reducere"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "Покупка", "3": "Покупка",
"4": "Возврат", "4": "Возврат",
"5": "Награда", "5": "Награда",
"6": "Комиссия" "6": "Комиссия",
"231": "Автосброс",
"232": "Предварительный сброс",
"233": "Платный сброс",
"321": "Пополнение",
"322": "Вывод",
"323": "Оплата",
"324": "Возврат",
"325": "Награда",
"326": "Корректировка администратора",
"331": "Покупка",
"332": "Продление",
"333": "Возврат",
"334": "Вывод",
"335": "Корректировка администратора",
"341": "Увеличение",
"342": "Уменьшение"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "ซื้อ", "3": "ซื้อ",
"4": "คืนเงิน", "4": "คืนเงิน",
"5": "รางวัล", "5": "รางวัล",
"6": "ค่าคอมมิชชั่น" "6": "ค่าคอมมิชชั่น",
"231": "รีเซ็ตอัตโนมัติ",
"232": "รีเซ็ตล่วงหน้า",
"233": "รีเซ็ตแบบเสียค่าใช้จ่าย",
"321": "เติมเงิน",
"322": "ถอนเงิน",
"323": "การชำระเงิน",
"324": "คืนเงิน",
"325": "รางวัล",
"326": "ปรับโดยผู้ดูแล",
"331": "ซื้อ",
"332": "ต่ออายุ",
"333": "คืนเงิน",
"334": "ถอนเงิน",
"335": "ปรับโดยผู้ดูแล",
"341": "เพิ่มขึ้น",
"342": "ลดลง"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "Satın Alma", "3": "Satın Alma",
"4": "İade", "4": "İade",
"5": "Ödül", "5": "Ödül",
"6": "Komisyon" "6": "Komisyon",
"231": "Otomatik Sıfırlama",
"232": "Önceden Sıfırlama",
"233": "Ücretli Sıfırlama",
"321": "Yükleme",
"322": "Çekme",
"323": "Ödeme",
"324": "İade",
"325": "Ödül",
"326": "Yönetici Ayarı",
"331": "Satın Alma",
"332": "Yenileme",
"333": "İade",
"334": "Çekme",
"335": "Yönetici Ayarı",
"341": "Artış",
"342": "Azaltma"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "Покупка", "3": "Покупка",
"4": "Повернення коштів", "4": "Повернення коштів",
"5": "Нагорода", "5": "Нагорода",
"6": "Комісія" "6": "Комісія",
"231": "Автоскидання",
"232": "Попереднє скидання",
"233": "Платне скидання",
"321": "Поповнення",
"322": "Виведення",
"323": "Платіж",
"324": "Повернення коштів",
"325": "Нагорода",
"326": "Коригування адміністратора",
"331": "Покупка",
"332": "Поновлення",
"333": "Повернення коштів",
"334": "Виведення",
"335": "Коригування адміністратора",
"341": "Збільшення",
"342": "Зменшення"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "Mua", "3": "Mua",
"4": "Hoàn tiền", "4": "Hoàn tiền",
"5": "Thưởng", "5": "Thưởng",
"6": "Hoa hồng" "6": "Hoa hồng",
"231": "Tự động đặt lại",
"232": "Đặt lại trước hạn",
"233": "Đặt lại trả phí",
"321": "Nạp tiền",
"322": "Rút tiền",
"323": "Thanh toán",
"324": "Hoàn tiền",
"325": "Thưởng",
"326": "Điều chỉnh quản trị",
"331": "Mua",
"332": "Gia hạn",
"333": "Hoàn tiền",
"334": "Rút tiền",
"335": "Điều chỉnh quản trị",
"341": "Tăng",
"342": "Giảm"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "购买", "3": "购买",
"4": "退款", "4": "退款",
"5": "奖励", "5": "奖励",
"6": "佣金" "6": "佣金",
"231": "自动重置",
"232": "提前重置",
"233": "付费重置",
"321": "充值",
"322": "提取",
"323": "付款",
"324": "退款",
"325": "奖励",
"326": "管理员调整",
"331": "购买",
"332": "续订",
"333": "退款",
"334": "提取",
"335": "管理员调整",
"341": "增加",
"342": "减少"
} }
} }

View File

@ -13,6 +13,22 @@
"3": "購買", "3": "購買",
"4": "退款", "4": "退款",
"5": "獎勵", "5": "獎勵",
"6": "佣金" "6": "佣金",
"231": "自動重置",
"232": "預先重置",
"233": "付費重置",
"321": "充值",
"322": "提取",
"323": "付款",
"324": "退款",
"325": "獎勵",
"326": "管理員調整",
"331": "購買",
"332": "續訂",
"333": "退款",
"334": "提取",
"335": "管理員調整",
"341": "增加",
"342": "減少"
} }
} }

View File

@ -20,16 +20,16 @@
"framer-motion": "^12.23.12", "framer-motion": "^12.23.12",
"gray-matter": "^4.0.3", "gray-matter": "^4.0.3",
"lucide-react": "^0.542.0", "lucide-react": "^0.542.0",
"next": "^15.5.2", "next": "^15.5.7",
"next-intl": "^3.26.3", "next-intl": "^3.26.3",
"next-runtime-env": "^3.3.0", "next-runtime-env": "^3.3.0",
"next-themes": "^0.4.6", "next-themes": "^0.4.6",
"nextjs-toploader": "^3.8.16", "nextjs-toploader": "^3.8.16",
"qrcode.react": "^4.2.0", "qrcode.react": "^4.2.0",
"radash": "^12.1.1", "radash": "^12.1.1",
"react": "^19.1.1", "react": "^19.2.1",
"react-copy-to-clipboard": "^5.1.0", "react-copy-to-clipboard": "^5.1.0",
"react-dom": "^19.1.1", "react-dom": "^19.2.1",
"react-turnstile": "^1.1.4", "react-turnstile": "^1.1.4",
"rtl-detect": "^1.1.2", "rtl-detect": "^1.1.2",
"ua-parser-js": "^2.0.4", "ua-parser-js": "^2.0.4",
@ -38,9 +38,9 @@
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^24.3.0", "@types/node": "^24.3.0",
"@types/react": "^19.1.11", "@types/react": "^19.2.7",
"@types/react-copy-to-clipboard": "^5.0.7", "@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^19.1.8", "@types/react-dom": "^19.2.3",
"@types/rtl-detect": "^1.0.3", "@types/rtl-detect": "^1.0.3",
"@workspace/eslint-config": "workspace:*", "@workspace/eslint-config": "workspace:*",
"@workspace/typescript-config": "workspace:*", "@workspace/typescript-config": "workspace:*",
@ -77,7 +77,7 @@
"zh-CN", "zh-CN",
"zh-HK" "zh-HK"
], ],
"modelName": "gpt-4o-mini", "modelName": "gpt-4o",
"experimental": { "experimental": {
"jsonMode": true "jsonMode": true
}, },

View File

@ -47,6 +47,18 @@ export async function userLogin(body: API.UserLoginRequest, options?: { [key: st
}); });
} }
/** Device Login POST /v1/auth/login/device */
export async function deviceLogin(body: API.DeviceLoginRequest, options?: { [key: string]: any }) {
return request<API.Response & { data?: API.LoginResponse }>('/v1/auth/login/device', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** User Telephone login POST /v1/auth/login/telephone */ /** User Telephone login POST /v1/auth/login/telephone */
export async function telephoneLogin( export async function telephoneLogin(
body: API.TelephoneLoginRequest, body: API.TelephoneLoginRequest,

View File

@ -114,6 +114,7 @@ declare namespace API {
type AuthConfig = { type AuthConfig = {
mobile: MobileAuthenticateConfig; mobile: MobileAuthenticateConfig;
email: EmailAuthticateConfig; email: EmailAuthticateConfig;
device: DeviceAuthticateConfig;
register: PubilcRegisterConfig; register: PubilcRegisterConfig;
}; };
@ -211,6 +212,19 @@ declare namespace API {
currency_symbol: string; currency_symbol: string;
}; };
type DeviceAuthticateConfig = {
enable: boolean;
show_ads: boolean;
enable_security: boolean;
only_real_device: boolean;
};
type DeviceLoginRequest = {
identifier: string;
user_agent: string;
cf_token?: string;
};
type Document = { type Document = {
id: number; id: number;
title: string; title: string;
@ -706,6 +720,7 @@ declare namespace API {
}; };
type ResetPasswordRequest = { type ResetPasswordRequest = {
identifier: string;
email: string; email: string;
password: string; password: string;
code?: string; code?: string;
@ -898,6 +913,7 @@ declare namespace API {
}; };
type TelephoneLoginRequest = { type TelephoneLoginRequest = {
identifier: string;
telephone: string; telephone: string;
telephone_code: string; telephone_code: string;
telephone_area_code: string; telephone_area_code: string;
@ -906,6 +922,7 @@ declare namespace API {
}; };
type TelephoneRegisterRequest = { type TelephoneRegisterRequest = {
identifier: string;
telephone: string; telephone: string;
telephone_area_code: string; telephone_area_code: string;
password: string; password: string;
@ -915,6 +932,7 @@ declare namespace API {
}; };
type TelephoneResetPasswordRequest = { type TelephoneResetPasswordRequest = {
identifier: string;
telephone: string; telephone: string;
telephone_area_code: string; telephone_area_code: string;
password: string; password: string;
@ -1035,12 +1053,14 @@ declare namespace API {
}; };
type UserLoginRequest = { type UserLoginRequest = {
identifier: string;
email: string; email: string;
password: string; password: string;
cf_token?: string; cf_token?: string;
}; };
type UserRegisterRequest = { type UserRegisterRequest = {
identifier: string;
email: string; email: string;
password: string; password: string;
invite?: string; invite?: string;

View File

@ -19,3 +19,14 @@ export async function querySubscribeList(
}, },
); );
} }
/** Get user subscribe node info GET /v1/public/subscribe/node/list */
export async function queryUserSubscribeNodeList(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.QueryUserSubscribeNodeListResponse }>(
'/v1/public/subscribe/node/list',
{
method: 'GET',
...(options || {}),
},
);
}

View File

@ -108,6 +108,7 @@ declare namespace API {
type AuthConfig = { type AuthConfig = {
mobile: MobileAuthenticateConfig; mobile: MobileAuthenticateConfig;
email: EmailAuthticateConfig; email: EmailAuthticateConfig;
device: DeviceAuthticateConfig;
register: PubilcRegisterConfig; register: PubilcRegisterConfig;
}; };
@ -204,6 +205,13 @@ declare namespace API {
currency_symbol: string; currency_symbol: string;
}; };
type DeviceAuthticateConfig = {
enable: boolean;
show_ads: boolean;
enable_security: boolean;
only_real_device: boolean;
};
type Document = { type Document = {
id: number; id: number;
title: string; title: string;
@ -256,6 +264,11 @@ declare namespace API {
list: PaymentMethod[]; list: PaymentMethod[];
}; };
type GetDeviceListResponse = {
list: UserDevice[];
total: number;
};
type GetLoginLogParams = { type GetLoginLogParams = {
page: number; page: number;
size: number; size: number;
@ -799,6 +812,10 @@ declare namespace API {
total: number; total: number;
}; };
type QueryUserSubscribeNodeListResponse = {
list: UserSubscribeInfo[];
};
type RechargeOrderRequest = { type RechargeOrderRequest = {
amount: number; amount: number;
payment: number; payment: number;
@ -1039,6 +1056,10 @@ declare namespace API {
security_config: SecurityConfig; security_config: SecurityConfig;
}; };
type UnbindDeviceRequest = {
id: number;
};
type UnbindOAuthRequest = { type UnbindOAuthRequest = {
method: string; method: string;
}; };
@ -1150,6 +1171,26 @@ declare namespace API {
updated_at: number; updated_at: number;
}; };
type UserSubscribeInfo = {
id: number;
user_id: number;
order_id: number;
subscribe_id: number;
start_time: number;
expire_time: number;
finished_at: number;
reset_time: number;
traffic: number;
download: number;
upload: number;
token: string;
status: number;
created_at: number;
updated_at: number;
is_try_out: boolean;
nodes: UserSubscribeNodeInfo[];
};
type UserSubscribeLog = { type UserSubscribeLog = {
id: number; id: number;
user_id: number; user_id: number;
@ -1160,6 +1201,19 @@ declare namespace API {
timestamp: number; timestamp: number;
}; };
type UserSubscribeNodeInfo = {
id: number;
name: string;
uuid: string;
protocol: string;
port: number;
address: string;
tags: string[];
country: string;
city: string;
created_at: number;
};
type VerifyCodeConfig = { type VerifyCodeConfig = {
verify_code_expire_time: number; verify_code_expire_time: number;
verify_code_limit: number; verify_code_limit: number;

View File

@ -128,6 +128,14 @@ export async function queryUserCommissionLog(
); );
} }
/** Get Device List GET /v1/public/user/devices */
export async function getDeviceList(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.GetDeviceListResponse }>('/v1/public/user/devices', {
method: 'GET',
...(options || {}),
});
}
/** Query User Info GET /v1/public/user/info */ /** Query User Info GET /v1/public/user/info */
export async function queryUserInfo(options?: { [key: string]: any }) { export async function queryUserInfo(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.User }>('/v1/public/user/info', { return request<API.Response & { data?: API.User }>('/v1/public/user/info', {
@ -236,6 +244,21 @@ export async function resetUserSubscribeToken(
}); });
} }
/** Unbind Device PUT /v1/public/user/unbind_device */
export async function unbindDevice(
body: API.UnbindDeviceRequest,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: any }>('/v1/public/user/unbind_device', {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** Unbind OAuth POST /v1/public/user/unbind_oauth */ /** Unbind OAuth POST /v1/public/user/unbind_oauth */
export async function unbindOAuth(body: API.UnbindOAuthRequest, options?: { [key: string]: any }) { export async function unbindOAuth(body: API.UnbindOAuthRequest, options?: { [key: string]: any }) {
return request<API.Response & { data?: any }>('/v1/public/user/unbind_oauth', { return request<API.Response & { data?: any }>('/v1/public/user/unbind_oauth', {

3766
bun.lock Normal file

File diff suppressed because it is too large Load Diff

BIN
bun.lockb

Binary file not shown.

View File

@ -5,17 +5,21 @@ FROM oven/bun:latest AS base
WORKDIR /app WORKDIR /app
# Create a non-root user for running the production application # Create a non-root user for running the production application
RUN addgroup --system --gid 1001 nodejs \ RUN apt-get update \
&& adduser --system --uid 1001 nextjs && apt-get install -y --no-install-recommends adduser \
&& rm -rf /var/lib/apt/lists/* \
# Change to non-root user && addgroup --system --gid 1001 nodejs \
USER nextjs && adduser --system --uid 1001 --ingroup nodejs --home /nonexistent --shell /usr/sbin/nologin nextjs
# Copy necessary files for production # Copy necessary files for production
COPY ./apps/admin/.next/standalone ./ COPY ./apps/admin/.next/standalone ./
COPY ./apps/admin/.next/static ./apps/admin/.next/static COPY ./apps/admin/.next/static ./apps/admin/.next/static
COPY ./apps/admin/public ./apps/admin/public COPY ./apps/admin/public ./apps/admin/public
# Change to non-root user
RUN chown -R nextjs:nodejs /app
USER nextjs
# Disable Next.js telemetry at runtime # Disable Next.js telemetry at runtime
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1

View File

@ -5,17 +5,19 @@ FROM oven/bun:latest AS base
WORKDIR /app WORKDIR /app
# Create non-root user and set permissions # Create non-root user and set permissions
RUN addgroup --system --gid 1001 nodejs \ RUN apt-get update \
&& adduser --system --uid 1001 nextjs && apt-get install -y --no-install-recommends adduser \
&& rm -rf /var/lib/apt/lists/* \
&& addgroup --system --gid 1001 nodejs \
&& adduser --system --uid 1001 --ingroup nodejs --home /nonexistent --shell /usr/sbin/nologin nextjs
# Copy build output and static files # Copy build output and static files
COPY ./apps/user/.next/standalone ./ COPY ./apps/user/.next/standalone ./
COPY ./apps/user/.next/static ./apps/user/.next/static COPY ./apps/user/.next/static ./apps/user/.next/static
COPY ./apps/user/public ./apps/user/public COPY ./apps/user/public ./apps/user/public
# Change ownership to non-root user # Change to non-root user
RUN chown -R nextjs:nodejs /app RUN chown -R nextjs:nodejs /app
USER nextjs USER nextjs
# Disable Next.js telemetry # Disable Next.js telemetry

View File

@ -1,6 +1,6 @@
{ {
"name": "ppanel-web", "name": "ppanel-web",
"version": "1.5.1", "version": "1.6.3",
"private": true, "private": true,
"homepage": "https://github.com/perfect-panel/ppanel-web", "homepage": "https://github.com/perfect-panel/ppanel-web",
"bugs": { "bugs": {
@ -12,8 +12,8 @@
}, },
"license": "GUN", "license": "GUN",
"workspaces": [ "workspaces": [
"apps/*", "packages/*",
"packages/*" "apps/*"
], ],
"scripts": { "scripts": {
"build": "turbo build", "build": "turbo build",
@ -47,21 +47,104 @@
] ]
}, },
"prettier": "@workspace/prettier-config", "prettier": "@workspace/prettier-config",
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@hookform/resolvers": "^5.2.1",
"@iconify-json/flagpack": "^1.2.2",
"@iconify-json/logos": "^1.2.4",
"@iconify-json/mdi": "^1.2.2",
"@iconify-json/simple-icons": "^1.2.20",
"@iconify-json/uil": "^1.2.3",
"@iconify/react": "^5.2.0",
"@lottiefiles/dotlottie-react": "^0.15.1",
"@monaco-editor/react": "^4.7.0",
"@noble/curves": "^2.0.1",
"@radix-ui/react-accordion": "^1.2.12",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-aspect-ratio": "^1.1.7",
"@radix-ui/react-avatar": "^1.1.10",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-collapsible": "^1.1.12",
"@radix-ui/react-context-menu": "^2.2.16",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-hover-card": "^1.1.15",
"@radix-ui/react-label": "^2.1.7",
"@radix-ui/react-menubar": "^1.1.16",
"@radix-ui/react-navigation-menu": "^1.2.14",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-progress": "^1.1.7",
"@radix-ui/react-radio-group": "^1.3.8",
"@radix-ui/react-scroll-area": "^1.2.10",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-separator": "^1.1.7",
"@radix-ui/react-slider": "^1.3.6",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-switch": "^1.2.6",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-toast": "^1.2.4",
"@radix-ui/react-toggle": "^1.1.10",
"@radix-ui/react-toggle-group": "^1.1.11",
"@radix-ui/react-tooltip": "^1.2.8",
"@tanstack/react-table": "^8.20.6",
"ahooks": "^3.9.4",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"date-fns": "^4.1.0",
"embla-carousel-react": "^8.6.0",
"framer-motion": "^11.18.1",
"input-otp": "^1.4.2",
"lucide-react": "^0.542.0",
"mathjs": "^14.0.1",
"monaco-editor": "^0.54.0 ",
"monaco-themes": "^0.4.6",
"motion": "^11.18.1",
"next-themes": "^0.4.6",
"react-day-picker": "^9.9.0",
"react-hook-form": "^7.62.0",
"react-markdown": "^9.0.3",
"react-resizable-panels": "^3.0.5",
"react-syntax-highlighter": "^15.6.1",
"recharts": "2.15.4",
"rehype-katex": "^7.0.1",
"rehype-raw": "^7.0.0",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
"remark-toc": "^9.0.0",
"rtl-detect": "^1.1.2",
"sonner": "^2.0.7",
"tailwind-merge": "^2.6.0",
"tailwindcss-animate": "^1.0.7",
"vaul": "^1.1.2",
"zod": "^4.1.5"
},
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.38.0",
"@netlify/plugin-nextjs": "^5.12.1", "@netlify/plugin-nextjs": "^5.12.1",
"@umijs/openapi": "^1.13.15", "@umijs/openapi": "^1.13.15",
"@workspace/commitlint-config": "workspace:*", "@workspace/commitlint-config": "workspace:*",
"@workspace/eslint-config": "workspace:*", "@workspace/eslint-config": "workspace:*",
"@workspace/prettier-config": "workspace:*", "@workspace/prettier-config": "workspace:*",
"@workspace/typescript-config": "workspace:*", "@workspace/typescript-config": "workspace:*",
"autoprefixer": "^10.4.21",
"commitlint": "^19.6.1",
"eslint": "^9.17.0",
"husky": "^9.1.7", "husky": "^9.1.7",
"lint-staged": "^16.1.5", "lint-staged": "^16.1.5",
"postcss": "^8.5.6",
"prettier": "^3.4.2",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"semantic-release": "21.1.2", "semantic-release": "21.1.2",
"semantic-release-config-gitmoji": "^1.5.3", "semantic-release-config-gitmoji": "^1.5.3",
"tailwindcss": "^3.4.17",
"turbo": "^2.5.6", "turbo": "^2.5.6",
"typescript": "^5.9.2" "typescript": "^5.9.2"
}, },
"packageManager": "bun@1.1.43", "packageManager": "bun@1.3.0",
"engines": { "engines": {
"node": ">=20" "node": ">=20"
} }

View File

@ -11,6 +11,7 @@
"moduleDetection": "force", "moduleDetection": "force",
"moduleResolution": "NodeNext", "moduleResolution": "NodeNext",
"noUncheckedIndexedAccess": true, "noUncheckedIndexedAccess": true,
"typeRoots": ["./node_modules/@types"],
"resolveJsonModule": true, "resolveJsonModule": true,
"skipLibCheck": true, "skipLibCheck": true,
"strict": true, "strict": true,

View File

@ -20,6 +20,7 @@
"dependencies": { "dependencies": {
"@dnd-kit/core": "^6.3.1", "@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0", "@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@hookform/resolvers": "^5.2.1", "@hookform/resolvers": "^5.2.1",
"@iconify-json/flagpack": "^1.2.2", "@iconify-json/flagpack": "^1.2.2",
"@iconify-json/logos": "^1.2.4", "@iconify-json/logos": "^1.2.4",
@ -27,7 +28,7 @@
"@iconify-json/simple-icons": "^1.2.20", "@iconify-json/simple-icons": "^1.2.20",
"@iconify-json/uil": "^1.2.3", "@iconify-json/uil": "^1.2.3",
"@iconify/react": "^5.2.0", "@iconify/react": "^5.2.0",
"@monaco-editor/react": "^4.6.0", "@monaco-editor/react": "^4.7.0",
"@radix-ui/react-accordion": "^1.2.12", "@radix-ui/react-accordion": "^1.2.12",
"@radix-ui/react-alert-dialog": "^1.1.15", "@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-aspect-ratio": "^1.1.7", "@radix-ui/react-aspect-ratio": "^1.1.7",
@ -65,6 +66,7 @@
"input-otp": "^1.4.2", "input-otp": "^1.4.2",
"lucide-react": "^0.542.0", "lucide-react": "^0.542.0",
"mathjs": "^14.0.1", "mathjs": "^14.0.1",
"monaco-editor": "^0.54.0 ",
"monaco-themes": "^0.4.6", "monaco-themes": "^0.4.6",
"motion": "^11.18.1", "motion": "^11.18.1",
"next-themes": "^0.4.6", "next-themes": "^0.4.6",
@ -89,16 +91,16 @@
"devDependencies": { "devDependencies": {
"@turbo/gen": "^2.5.6", "@turbo/gen": "^2.5.6",
"@types/node": "^24.3.0", "@types/node": "^24.3.0",
"@types/react": "^19.1.12", "@types/react": "^19.2.7",
"@types/react-dom": "^19.1.9", "@types/react-dom": "^19.2.3",
"@types/react-syntax-highlighter": "^15.5.13", "@types/react-syntax-highlighter": "^15.5.13",
"@types/rtl-detect": "^1.0.3", "@types/rtl-detect": "^1.0.3",
"@workspace/eslint-config": "workspace:*", "@workspace/eslint-config": "workspace:*",
"@workspace/typescript-config": "workspace:*", "@workspace/typescript-config": "workspace:*",
"autoprefixer": "^10.4.21", "autoprefixer": "^10.4.21",
"postcss": "^8.5.6", "postcss": "^8.5.6",
"react": "^19.1.1", "react": "^19.2.1",
"react-dom": "^19.1.1", "react-dom": "^19.2.1",
"tailwindcss": "^3.4.17", "tailwindcss": "^3.4.17",
"typescript": "^5.9.2" "typescript": "^5.9.2"
} }

View File

@ -12,6 +12,8 @@ interface FieldConfig extends Omit<EnhancedInputProps, 'type'> {
name: string; name: string;
type: 'text' | 'number' | 'select' | 'time' | 'boolean' | 'textarea'; type: 'text' | 'number' | 'select' | 'time' | 'boolean' | 'textarea';
options?: { label: string; value: string }[]; options?: { label: string; value: string }[];
// optional per-item visibility function: returns true to show the field for the given item
visible?: (item: Record<string, any>) => boolean;
} }
interface ObjectInputProps<T> { interface ObjectInputProps<T> {
@ -40,6 +42,8 @@ export function ObjectInput<T extends Record<string, any>>({
onChange(updatedInternalState); onChange(updatedInternalState);
}; };
const renderField = (field: FieldConfig) => { const renderField = (field: FieldConfig) => {
// if visible callback exists and returns false for current item, don't render
if (field.visible && !field.visible(internalState)) return null;
switch (field.type) { switch (field.type) {
case 'select': case 'select':
return ( return (
@ -86,11 +90,15 @@ export function ObjectInput<T extends Record<string, any>>({
}; };
return ( return (
<div className={cn('flex flex-1 flex-wrap gap-4', className)}> <div className={cn('flex flex-1 flex-wrap gap-4', className)}>
{fields.map((field) => ( {fields.map((field) => {
<div key={field.name} className={cn('flex-1', field.className)}> const node = renderField(field);
{renderField(field)} if (node === null) return null; // don't render wrapper if field hidden
</div> return (
))} <div key={field.name} className={cn('flex-1', field.className)}>
{node}
</div>
);
})}
</div> </div>
); );
} }

View File

@ -2,7 +2,6 @@
import { Button } from '@workspace/ui/components/button'; import { Button } from '@workspace/ui/components/button';
import { cn } from '@workspace/ui/lib/utils'; import { cn } from '@workspace/ui/lib/utils';
import 'katex/dist/katex.min.css';
import { Check, Copy } from 'lucide-react'; import { Check, Copy } from 'lucide-react';
import { useCallback, useState } from 'react'; import { useCallback, useState } from 'react';
import ReactMarkdown, { Components } from 'react-markdown'; import ReactMarkdown, { Components } from 'react-markdown';

View File

@ -143,9 +143,9 @@ export function ProTable<
header: texts?.actions, header: texts?.actions,
cell: ({ row }) => ( cell: ({ row }) => (
<div className='flex items-center justify-end gap-2'> <div className='flex items-center justify-end gap-2'>
{actions {actions?.render?.(row.original).map((item, index) => (
?.render?.(row.original) <Fragment key={index}>{item}</Fragment>
.map((item, index) => <Fragment key={index}>{item}</Fragment>)} ))}
</div> </div>
), ),
enableSorting: false, enableSorting: false,