/
vshmidt
/
label-studio
Обзор
Документация
Войти
/
vshmidt
/
label-studio
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
web/apps/playground/src/utils/embedFeatureFlags.ts
16 строк
514 B
bmartel
feat: FIT-14: LabelStudio Playground 2.0 (#7521)
22 май 2025, 00:00
Не верифицирован
22 май 2025, 00:00
8613469
Код
Авторство
О чём код?
// Get the feature flags from the root feature_flags.json file import rawFeatureFlags from "../../../../../label_studio/feature_flags.json"; // Embed the feature flags in the playground app const embedFeatureFlags = () => { // @ts-ignore window.FEATURE_FLAGS = window.FEATURE_FLAGS ?? {}; const featureFlags = JSON.parse(JSON.stringify(rawFeatureFlags)); for (const flag of Object.values(featureFlags.flags)) { // @ts-ignore window.FEATURE_FLAGS[flag.key] = flag.on; } }; embedFeatureFlags();