1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Add reminder todos for better extension loading #784

This commit is contained in:
Patrik J. Braun 2024-04-12 23:45:49 +02:00
parent 479257a3e1
commit 1ae44e8d7f
2 changed files with 4 additions and 1 deletions

View File

@ -102,6 +102,8 @@ export class ExtensionConfigTemplateLoader {
if (ext.template) { if (ext.template) {
c.configs = new ext.template(); c.configs = new ext.template();
} }
// TODO: this does not hold if the order of the extensions mixes up.
// TODO: experiment with a map instead of an array
config.Extensions.extensions.push(c); config.Extensions.extensions.push(c);
} }

View File

@ -59,7 +59,8 @@ export class ServerExtensionsConfig extends ClientExtensionsConfig {
}) })
folder: string = 'extensions'; folder: string = 'extensions';
// TODO: this does not hold if the order of the extensions mixes up.
// TODO: experiment with a map instead of an array
@ConfigProperty({ @ConfigProperty({
arrayType: ServerExtensionsEntryConfig, arrayType: ServerExtensionsEntryConfig,
tags: { tags: {