fix: model user assignment by service instead of port
This commit is contained in:
@@ -51,8 +51,7 @@ export const dashboardSnapshot = {
|
||||
id: 'u-1',
|
||||
username: 'night-shift',
|
||||
password: 'kettle!23',
|
||||
host: 'edge.example.net',
|
||||
port: 1080,
|
||||
serviceId: 'socks-main',
|
||||
status: 'live' as const,
|
||||
usedBytes: 621_805_568,
|
||||
quotaBytes: 1_073_741_824,
|
||||
@@ -61,8 +60,7 @@ export const dashboardSnapshot = {
|
||||
id: 'u-2',
|
||||
username: 'ops-east',
|
||||
password: 'east/line',
|
||||
host: 'edge.example.net',
|
||||
port: 1080,
|
||||
serviceId: 'socks-main',
|
||||
status: 'warn' as const,
|
||||
usedBytes: 949_010_432,
|
||||
quotaBytes: 1_073_741_824,
|
||||
@@ -71,8 +69,7 @@ export const dashboardSnapshot = {
|
||||
id: 'u-3',
|
||||
username: 'lab-unlimited',
|
||||
password: 'open lane',
|
||||
host: 'edge.example.net',
|
||||
port: 2080,
|
||||
serviceId: 'socks-lab',
|
||||
status: 'idle' as const,
|
||||
usedBytes: 42_844_160,
|
||||
quotaBytes: null,
|
||||
@@ -81,8 +78,7 @@ export const dashboardSnapshot = {
|
||||
id: 'u-4',
|
||||
username: 'burst-user',
|
||||
password: 'spent-all',
|
||||
host: 'edge.example.net',
|
||||
port: 2080,
|
||||
serviceId: 'socks-lab',
|
||||
status: 'fail' as const,
|
||||
usedBytes: 1_228_800_000,
|
||||
quotaBytes: 1_073_741_824,
|
||||
@@ -95,22 +91,40 @@ export const dashboardSnapshot = {
|
||||
storageMode: 'flat files for config and counters',
|
||||
services: [
|
||||
{
|
||||
name: 'socks',
|
||||
id: 'socks-main',
|
||||
name: 'SOCKS5 main',
|
||||
protocol: 'socks5',
|
||||
description: 'Primary SOCKS5 entrypoint with user auth.',
|
||||
port: 1080,
|
||||
enabled: true,
|
||||
assignable: true,
|
||||
},
|
||||
{
|
||||
name: 'admin',
|
||||
id: 'socks-lab',
|
||||
name: 'SOCKS5 lab',
|
||||
protocol: 'socks5',
|
||||
description: 'Secondary SOCKS5 service for lab and overflow users.',
|
||||
port: 2080,
|
||||
enabled: true,
|
||||
assignable: true,
|
||||
},
|
||||
{
|
||||
id: 'admin',
|
||||
name: 'Admin',
|
||||
protocol: 'http',
|
||||
description: 'Restricted admin visibility endpoint.',
|
||||
port: 8081,
|
||||
enabled: true,
|
||||
assignable: false,
|
||||
},
|
||||
{
|
||||
name: 'proxy',
|
||||
id: 'proxy',
|
||||
name: 'HTTP proxy',
|
||||
protocol: 'http',
|
||||
description: 'Optional HTTP/HTTPS proxy profile.',
|
||||
port: 3128,
|
||||
enabled: false,
|
||||
assignable: true,
|
||||
},
|
||||
],
|
||||
previewConfig: `daemon
|
||||
|
||||
Reference in New Issue
Block a user