feat: restore QR code handoff, clickable app store buttons, and tool studio on dedicated tool page
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user