mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
4740f1f933
Summary: A new onboarding page is now shown to all new users visiting the doc menu for the first time. Tutorial cards on the doc menu have been replaced with a new version that tracks completion progress, alongside a new card that opens the orientation video. Test Plan: Browser tests. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D4296
20 lines
526 B
TypeScript
20 lines
526 B
TypeScript
import {appSettings} from 'app/server/lib/AppSettings';
|
|
|
|
export function getTemplateOrg() {
|
|
let org = appSettings.section('templates').flag('org').readString({
|
|
envVar: 'GRIST_TEMPLATE_ORG',
|
|
});
|
|
if (!org) { return null; }
|
|
|
|
if (process.env.GRIST_ID_PREFIX) {
|
|
org += `-${process.env.GRIST_ID_PREFIX}`;
|
|
}
|
|
return org;
|
|
}
|
|
|
|
export function getOnboardingTutorialDocId() {
|
|
return appSettings.section('tutorials').flag('onboardingTutorialDocId').readString({
|
|
envVar: 'GRIST_ONBOARDING_TUTORIAL_DOC_ID',
|
|
});
|
|
}
|