mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-08-28 19:46:41 +08:00
feat: enhance app descriptors with additional metadata and support for various file types
This commit is contained in:
@@ -46,7 +46,15 @@ function registerPluginAsApp(p: PluginItem) {
|
||||
});
|
||||
}
|
||||
|
||||
loadApps();
|
||||
const appsLoadedPromise = loadApps();
|
||||
|
||||
export async function ensureAppsLoaded() {
|
||||
await appsLoadedPromise;
|
||||
}
|
||||
|
||||
export function listSystemApps(): AppDescriptor[] {
|
||||
return apps.filter(a => !a.key.startsWith('plugin:'));
|
||||
}
|
||||
|
||||
export function getAppsForEntry(entry: VfsEntry): AppDescriptor[] {
|
||||
return apps.filter(a => a.supported(entry));
|
||||
|
||||
Reference in New Issue
Block a user