更新前后端配置并清理仓库内容

This commit is contained in:
2026-04-12 16:37:36 +08:00
parent dbd72610c1
commit d373ce1da9
20 changed files with 362 additions and 63 deletions

View File

@@ -0,0 +1,12 @@
/** 避免源码中出现 https/http 连续字符,否则 Tailwind 扫描会误生成无效任意属性类 */
const c = String.fromCharCode(58);
const tlsScheme = String.fromCharCode(104, 116, 116, 112, 115);
const plainScheme = String.fromCharCode(104, 116, 116, 112);
export function tlsHost(host) {
return `${tlsScheme}${c}//${host}`;
}
export function loopbackPort(host, port) {
return `${plainScheme}${c}//${host}${c}${port}`;
}