2022-10-28 16:11:08 +00:00
|
|
|
import {makeT} from 'app/client/lib/localization'
|
|
|
|
|
|
|
|
const t = makeT('ExampleInfo');
|
|
|
|
|
2020-10-02 15:10:00 +00:00
|
|
|
export interface IExampleInfo {
|
|
|
|
id: number;
|
2021-07-28 19:02:06 +00:00
|
|
|
urlId: string;
|
2020-10-02 15:10:00 +00:00
|
|
|
title: string;
|
|
|
|
imgUrl: string;
|
|
|
|
tutorialUrl: string;
|
|
|
|
welcomeCard: WelcomeCard;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface WelcomeCard {
|
|
|
|
title: string;
|
|
|
|
text: string;
|
|
|
|
tutorialName: string;
|
|
|
|
}
|
|
|
|
|
2022-10-28 16:11:08 +00:00
|
|
|
export const buildExamples = (): IExampleInfo[] => [{
|
2020-10-02 15:10:00 +00:00
|
|
|
id: 1, // Identifies the example in UserPrefs.seenExamples
|
2021-07-28 19:02:06 +00:00
|
|
|
urlId: 'lightweight-crm',
|
2022-10-28 16:11:08 +00:00
|
|
|
title: t('Title', {context: "CRM"}),
|
2020-10-02 15:10:00 +00:00
|
|
|
imgUrl: 'https://www.getgrist.com/themes/grist/assets/images/use-cases/lightweight-crm.png',
|
|
|
|
tutorialUrl: 'https://support.getgrist.com/lightweight-crm/',
|
|
|
|
welcomeCard: {
|
2022-10-28 16:11:08 +00:00
|
|
|
title: t('WelcomeTitle', {context: "CRM"}),
|
|
|
|
text: t('WelcomeText', {context: "CRM"}),
|
|
|
|
tutorialName: t('WelcomeTutorialName', {context: "CRM"}),
|
2020-10-02 15:10:00 +00:00
|
|
|
},
|
|
|
|
}, {
|
|
|
|
id: 2, // Identifies the example in UserPrefs.seenExamples
|
2021-07-28 19:02:06 +00:00
|
|
|
urlId: 'investment-research',
|
2022-10-28 16:11:08 +00:00
|
|
|
title: t('Title', {context: "investmentResearch"}),
|
2020-10-02 15:10:00 +00:00
|
|
|
imgUrl: 'https://www.getgrist.com/themes/grist/assets/images/use-cases/data-visualization.png',
|
|
|
|
tutorialUrl: 'https://support.getgrist.com/investment-research/',
|
|
|
|
welcomeCard: {
|
2022-10-28 16:11:08 +00:00
|
|
|
title: t('WelcomeTitle', {context: "investmentResearch"}),
|
|
|
|
text: t('WelcomeText', {context: "investmentResearch"}),
|
|
|
|
tutorialName: t('WelcomeTutorialName', {context: "investmentResearch"}),
|
2020-10-02 15:10:00 +00:00
|
|
|
},
|
|
|
|
}, {
|
|
|
|
id: 3, // Identifies the example in UserPrefs.seenExamples
|
2021-07-28 19:02:06 +00:00
|
|
|
urlId: 'afterschool-program',
|
2022-10-28 16:11:08 +00:00
|
|
|
title: t('Title', {context: "afterschool"}),
|
2020-10-02 15:10:00 +00:00
|
|
|
imgUrl: 'https://www.getgrist.com/themes/grist/assets/images/use-cases/business-management.png',
|
|
|
|
tutorialUrl: 'https://support.getgrist.com/afterschool-program/',
|
|
|
|
welcomeCard: {
|
2022-10-28 16:11:08 +00:00
|
|
|
title: t('WelcomeTitle', {context: "afterschool"}),
|
|
|
|
text: t('WelcomeText', {context: "afterschool"}),
|
|
|
|
tutorialName: t('WelcomeTutorialName', {context: "afterschool"}),
|
2020-10-02 15:10:00 +00:00
|
|
|
},
|
|
|
|
}];
|