623e007fae
Project CI / AI game creator shell Rust shard 2/4 (push) Successful in 7m36s
Project CI / AI game creator shell Rust shard 3/4 (push) Successful in 7m37s
Project CI / AI game creator shell Rust shard 4/4 (push) Successful in 7m42s
Project CI / AI game creator shell Rust shard 1/4 (push) Successful in 7m51s
Project CI / AI game creator shell Rust smoke (push) Successful in 1m55s
Project CI / AI game creator shell Rust crates (push) Successful in 4m15s
Project CI / Repository checks (push) Successful in 4m45s
Project CI / Frontend tests (push) Successful in 7m47s
Project CI / Native shell tests (push) Successful in 9m33s
Project CI / Backend tests (push) Successful in 10m9s
Project CI / AI game creator shell web tests (push) Successful in 4m38s
区分发布渠道与系统,支持 dev、release 和自定义渠道 允许网站通过服务端配置选择客户端下载检测渠道 接入模板库灰度权限并阻断退出和切号后的异步操作 补齐发布、下载、灰度与会话竞态测试及当前规范
24 lines
598 B
TypeScript
24 lines
598 B
TypeScript
import { requestJson } from './apiClient';
|
|
|
|
const FRONTEND_RUNTIME_CONFIG_API = '/api/runtime/frontend-config';
|
|
|
|
export type FrontendRuntimeConfig = {
|
|
imageEditorAgentSidebarEnabled: boolean;
|
|
agcTemplateLibraryEnabled: boolean;
|
|
};
|
|
|
|
export async function loadFrontendRuntimeConfig() {
|
|
return requestJson<FrontendRuntimeConfig>(
|
|
FRONTEND_RUNTIME_CONFIG_API,
|
|
{ method: 'GET' },
|
|
'读取前端运行时配置失败',
|
|
{
|
|
authImpact: 'local',
|
|
skipAuth: true,
|
|
skipRefresh: true,
|
|
notifyAuthStateChange: false,
|
|
clearAuthOnUnauthorized: false,
|
|
},
|
|
);
|
|
}
|