- ),
- 'targets' => array( 'desktop', 'mobile' ),
- );
- $modules['oojs-ui.styles'] = array(
- 'position' => 'top',
- 'styles' => 'resources/src/oojs-ui-local.css', // HACK, see inside the file
- 'skinStyles' => array_combine(
- array_keys( $themes ),
- array_map( function ( $theme ) {
- // TODO Allow extensions to specify this path somehow
- return "resources/lib/oojs-ui/oojs-ui-$theme-noimages.css";
- }, array_values( $themes ) )
- ),
- 'targets' => array( 'desktop', 'mobile' ),
- );
+ ],
+ 'targets' => [ 'desktop', 'mobile' ],
+ ];
+ // Windows and dialogs module.
+ $modules['oojs-ui-windows'] = [
+ 'scripts' => 'resources/lib/oojs-ui/oojs-ui-windows.js',
+ 'skinStyles' => $getSkinSpecific( 'windows' ),
+ 'dependencies' => 'oojs-ui-core',
+ 'messages' => [
+ 'ooui-dialog-message-accept',
+ 'ooui-dialog-message-reject',
+ 'ooui-dialog-process-continue',
+ 'ooui-dialog-process-dismiss',
+ 'ooui-dialog-process-error',
+ 'ooui-dialog-process-retry',
+ ],
+ 'targets' => [ 'desktop', 'mobile' ],
+ ];