blob: 7f3b60277ea46657d2c646e55b2e061ca70e2f67 [file] [log] [blame]
Adrià Vilanova Martínez33a009c2024-11-09 22:41:56 +01001import Script, {
2 ConcreteScript,
3} from '../../common/architecture/scripts/Script';
4import ScriptFilterListProvider from '../../common/architecture/scripts/ScriptFilterListProvider';
5
6export default class StandaloneScripts extends ScriptFilterListProvider {
7 private scripts: ConcreteScript[] = [];
8 private initializedScripts: Script[];
9
10 protected getUnfilteredScriptsList() {
11 if (this.initializedScripts === undefined) {
12 this.initializedScripts = this.scripts.map((script) => new script());
13 }
14 return this.initializedScripts;
15 }
16}