Adrià Vilanova MartÃnez | 80f6c9f | 2024-11-10 01:09:48 +0100 | [diff] [blame] | 1 | // Run legacy Javascript entry point |
| 2 | import '../../../contentScripts/publicThreadStart'; |
| 3 | |
| 4 | import UiSpacingSharedStylesScript from '../../../features/uiSpacing/presentation/scripts/sharedStyles.script'; |
| 5 | import UiSpacingTwBasicStylesScript from '../../../features/uiSpacing/presentation/scripts/twBasicStyles.script'; |
| 6 | import ScriptRunner from '../../../infrastructure/presentation/scripts/ScriptRunner'; |
| 7 | import ScriptSorterAdapter from '../../../infrastructure/presentation/scripts/ScriptSorter.adapter'; |
| 8 | import { SortedScriptsProviderAdapter } from '../../../infrastructure/presentation/scripts/SortedScriptsProvider.adapter'; |
| 9 | |
| 10 | const scriptRunner = createScriptRunner(); |
| 11 | scriptRunner.run(); |
| 12 | |
| 13 | function createScriptRunner() { |
| 14 | return new ScriptRunner( |
| 15 | new SortedScriptsProviderAdapter( |
| 16 | [ |
| 17 | // Individual feature scripts |
| 18 | new UiSpacingSharedStylesScript(), |
| 19 | new UiSpacingTwBasicStylesScript(), |
| 20 | ], |
| 21 | new ScriptSorterAdapter(), |
| 22 | ).getScripts(), |
| 23 | ); |
| 24 | } |