feat: restore QR code handoff, clickable app store buttons, and tool studio on dedicated tool page

This commit is contained in:
2026-11-05 10:26:19 +05:30
parent 51afbf573b
commit 6300cd9cc9
8 changed files with 534 additions and 75 deletions
+4
View File
@@ -167,6 +167,10 @@ export function getAllCategories(): CategoryItem[] {
}
export function getTemplate(name: string): any {
const mgmtPath = path.join(MANAGEMENT_DIR, 'templates', `${name}.json`);
if (fs.existsSync(mgmtPath)) {
return readJsonFile(mgmtPath);
}
const filePath = path.join(CONTENT_DIR, 'templates', `${name}.json`);
return readJsonFile(filePath);
}