推送模块
This commit is contained in:
12
web/src/lang/backend/en/test/push.ts
Normal file
12
web/src/lang/backend/en/test/push.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export default {
|
||||
connected: 'Push connected (subscribed)',
|
||||
disconnected: 'Disconnected or idle',
|
||||
user_uuid: 'User uuid',
|
||||
user_uuid_placeholder: '10-char public id as in mobile profile',
|
||||
btn_connect: 'Connect & subscribe',
|
||||
btn_disconnect: 'Disconnect',
|
||||
btn_clear: 'Clear log',
|
||||
channel_label: 'Channel',
|
||||
log_title: 'Event log',
|
||||
log_empty: 'No messages yet. Ensure the push worker is running and the server publishes to this channel.',
|
||||
}
|
||||
3
web/src/lang/backend/en/test/pushGamePeriod.ts
Normal file
3
web/src/lang/backend/en/test/pushGamePeriod.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
tip: 'Subscribe to public-game-period (global period channel) for period.tick / period.locked / period.opened. The server must publish to this channel.',
|
||||
}
|
||||
3
web/src/lang/backend/en/test/pushOperationNotice.ts
Normal file
3
web/src/lang/backend/en/test/pushOperationNotice.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
tip: 'Subscribe to public-operation-notice for broadcast notices such as notice.popout. The server must publish to this channel.',
|
||||
}
|
||||
3
web/src/lang/backend/en/test/pushPrivateUser.ts
Normal file
3
web/src/lang/backend/en/test/pushPrivateUser.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
tip: 'Subscribe to private-user-{uuid}: enter the player uuid; auth uses /plugin/webman/push/auth like the mobile client. For bet.accepted, wallet.changed, etc.',
|
||||
}
|
||||
12
web/src/lang/backend/zh-cn/test/push.ts
Normal file
12
web/src/lang/backend/zh-cn/test/push.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export default {
|
||||
connected: '推送服务已连接(已订阅频道)',
|
||||
disconnected: '未连接或已断开',
|
||||
user_uuid: '用户 uuid',
|
||||
user_uuid_placeholder: '与移动端档案一致的 10 位对外标识',
|
||||
btn_connect: '连接并订阅',
|
||||
btn_disconnect: '断开',
|
||||
btn_clear: '清空日志',
|
||||
channel_label: '当前频道',
|
||||
log_title: '事件日志',
|
||||
log_empty: '暂无推送,请确认 push 进程已启动且服务端会向对应频道发消息。',
|
||||
}
|
||||
3
web/src/lang/backend/zh-cn/test/pushGamePeriod.ts
Normal file
3
web/src/lang/backend/zh-cn/test/pushGamePeriod.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
tip: '订阅文档中的「全局对局频道」public-game-period,用于验证 period.tick / period.locked / period.opened 等公共事件(需服务端向该频道推送)。',
|
||||
}
|
||||
3
web/src/lang/backend/zh-cn/test/pushOperationNotice.ts
Normal file
3
web/src/lang/backend/zh-cn/test/pushOperationNotice.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
tip: '订阅文档中的「公告广播频道」public-operation-notice,用于验证 notice.popout 等全站公告类推送(需服务端向该频道推送)。',
|
||||
}
|
||||
3
web/src/lang/backend/zh-cn/test/pushPrivateUser.ts
Normal file
3
web/src/lang/backend/zh-cn/test/pushPrivateUser.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
tip: '订阅「用户私有频道」private-user-{uuid}:请输入玩家 uuid,连接后将走 /plugin/webman/push/auth 鉴权(与移动端一致)。用于验证 bet.accepted、wallet.changed 等私有事件。',
|
||||
}
|
||||
Reference in New Issue
Block a user