2022-12-27 18:35:03 +00:00
|
|
|
import {makeT} from 'app/client/lib/localization';
|
2022-10-28 16:11:08 +00:00
|
|
|
|
|
|
|
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-12-06 15:36:14 +00:00
|
|
|
title: t('Lightweight 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-12-06 15:36:14 +00:00
|
|
|
title: t('Welcome to the Lightweight CRM template'),
|
|
|
|
text: t('Check out our related tutorial for how to link data, and create high-productivity layouts.'),
|
|
|
|
tutorialName: t("Tutorial: Create a 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-12-06 15:36:14 +00:00
|
|
|
title: t('Investment Research'),
|
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-12-06 15:36:14 +00:00
|
|
|
title: t("Welcome to the Investment Research template"),
|
2023-01-03 16:45:14 +00:00
|
|
|
text: t("Check out our related tutorial to learn how to create " +
|
|
|
|
"summary tables and charts, and to link charts dynamically."),
|
2022-12-06 15:36:14 +00:00
|
|
|
tutorialName: t("Tutorial: Analyze & Visualize"),
|
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-12-06 15:36:14 +00:00
|
|
|
title: t('Afterschool Program'),
|
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-12-06 15:36:14 +00:00
|
|
|
title: t("Welcome to the Afterschool Program template"),
|
|
|
|
text: t("Check out our related tutorial for how to model business data, use formulas, and manage complexity."),
|
|
|
|
tutorialName: t("Tutorial: Manage Business Data"),
|
2020-10-02 15:10:00 +00:00
|
|
|
},
|
|
|
|
}];
|