forked from ProfessionalWiki/Maps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Maps.resources.php
106 lines (96 loc) · 2.13 KB
/
Maps.resources.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
/**
* Definition of Maps resource loader modules.
*
* @since 3.0
*
* @licence GNU GPL v2+
* @author Jeroen De Dauw < [email protected] >
* @author Daniel Werner < [email protected] >
*
* @codeCoverageIgnoreStart
*/
return call_user_func( function() {
$pathParts = ( explode( DIRECTORY_SEPARATOR . 'extensions' . DIRECTORY_SEPARATOR, __DIR__, 2 ) );
$moduleTemplate = [
'position' => 'top',
'localBasePath' => __DIR__ . '/includes',
'remoteExtPath' => end( $pathParts ) . '/includes',
'group' => 'ext.maps',
'targets' => [
'mobile',
'desktop'
]
];
return [
'ext.maps.common' => $moduleTemplate + [
'messages' => [
'maps-load-failed',
] ,
'scripts' => [
'ext.maps.common.js',
],
],
'ext.maps.layers' => $moduleTemplate + [
'styles' => [
'ext.maps.layers.css'
]
],
'ext.maps.coord' => $moduleTemplate + [
'messages' => [
'maps-abb-north',
'maps-abb-east',
'maps-abb-south',
'maps-abb-west',
],
'scripts' => [
'ext.maps.coord.js'
],
],
'ext.maps.resizable' => $moduleTemplate + [
'dependencies' => 'jquery.ui.resizable',
],
'mapeditor' => $moduleTemplate + [
'scripts' => [
'editor/js/jquery.miniColors.js',
'editor/js/mapeditor.iefixes.js',
'editor/js/mapeditor.js',
],
'styles' => [
'editor/css/jquery.miniColors.css',
'editor/css/mapeditor.css',
],
'messages' => [
'mapeditor-parser-error',
'mapeditor-none-text',
'mapeditor-done-button',
'mapeditor-remove-button',
'mapeditor-import-button',
'mapeditor-export-button',
'mapeditor-import-button2',
'mapeditor-select-button',
'mapeditor-mapparam-button',
'mapeditor-clear-button',
'mapeditor-imageoverlay-button',
],
'dependencies' => [
'ext.maps.common',
'jquery.ui.autocomplete',
'jquery.ui.slider',
'jquery.ui.dialog',
],
],
'ext.maps.services' => $moduleTemplate + [
'group' => 'ext.maps',
'scripts' => [
'ext.maps.services.js',
],
'dependencies' => [
'ext.maps.common',
'ext.maps.layers',
'ext.maps.coord'
]
]
];
} );
// @codeCoverageIgnoreEnd