MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / getStatusText

Function getStatusText

devtools/modules/utils.js:117–126  ·  view source on GitHub ↗
(status)

Source from the content-addressed store, hash-verified

115}
116
117export function getStatusText(status) {
118 const statusMap = {
119 'connecting': '连接中',
120 'open': '已连接',
121 'closed': '已关闭',
122 'error': '错误',
123 'archived': '归档'
124 };
125 return statusMap[status] || status;
126}
127
128export function escapeRegex(string) {
129 return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');

Callers 1

showStatisticsModalFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected