48 lines
1.9 KiB
TypeScript
48 lines
1.9 KiB
TypeScript
// Module ID: 11290
|
|
// Function ID: 11291
|
|
// Name: ConjureTemplates
|
|
// Dependencies: [11215, 1126, 3849, 2]
|
|
// Exports: conjureTemplates, startConjureTemplateProject, templateImportMessage
|
|
|
|
// Module 11290 (ConjureTemplates)
|
|
import intl7 from "intl" /* 1126 */;
|
|
import _modDef3849 from "module_3849" /* 3849 */;
|
|
import ConjureConnectionStore from "ConjureConnectionStore" /* 11215 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const sendUserMessage = ConjureConnectionStore.sendUserMessage;
|
|
const result = size.fileFinishedImporting("modules/conjure/templates/ConjureTemplates.tsx");
|
|
|
|
export const CONJURE_TEMPLATE_IDS = ["moderation-bot", "feature-showcase", "rust-sphere"];
|
|
export const conjureTemplates = function conjureTemplates() {
|
|
let intl;
|
|
let intl2;
|
|
let intl3;
|
|
let intl4;
|
|
let intl5;
|
|
let intl6;
|
|
const obj = { id: "moderation-bot", name: intl.string(_modDef3849.lGLnE8), description: intl2.string(_modDef3849["pAC6k/"]), wizard: true };
|
|
intl = intl7.intl;
|
|
intl2 = intl7.intl;
|
|
const items = [obj, , ];
|
|
const obj2 = { id: "feature-showcase", name: intl3.string(_modDef3849.uJKQTs), description: intl4.string(_modDef3849["+dKy/B"]) };
|
|
intl3 = intl7.intl;
|
|
intl4 = intl7.intl;
|
|
items[1] = obj2;
|
|
const obj3 = { id: "rust-sphere", name: intl5.string(_modDef3849.iF5Oru), description: intl6.string(_modDef3849.NbDDO6) };
|
|
intl5 = intl7.intl;
|
|
intl6 = intl7.intl;
|
|
items[2] = obj3;
|
|
return items;
|
|
};
|
|
export const templateImportMessage = function templateImportMessage(templateName) {
|
|
const intl = intl7.intl;
|
|
const obj = { templateName };
|
|
return intl.formatToPlainString(_modDef3849["0PQip6"], obj);
|
|
};
|
|
export const startConjureTemplateProject = function startConjureTemplateProject(arg0, name) {
|
|
name = name.name;
|
|
const intl = intl7.intl;
|
|
const obj = { templateId: name.id };
|
|
sendUserMessage(arg0, intl.formatToPlainString(_modDef3849["0PQip6"], { templateName: name }), undefined, obj);
|
|
};
|