1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
jscore.php
См. документацию.
1<?php
2
3$pathJS = '/bitrix/js/main/core';
4$pathCSS = '/bitrix/js/main/core/css';
5$pathCSSPanel = '/bitrix/panel/main';
6$pathLang = BX_ROOT.'/modules/main';
7//WARNING: Don't use CUserOptions here! CJSCore::Init can be called from php_interface/init.php where no $USER exists
8
9$amChartsPath = '/bitrix/js/main/amcharts/3.21/';
10$amCharts4Path = '/bitrix/js/main/amcharts/4.8.5/';
11
13 'ajax' => array(
14 'js' => $pathJS.'/core_ajax.js',
15 ),
16 'admin' => array(
17 'js' => $pathJS.'/core_admin.js',
18 'css' => array($pathCSS.'/core_panel.css', $pathCSSPanel.'/admin-public.css'),
19 'lang' => $pathLang.'/js_core_admin.php',
20 'rel' => array('ui.design-tokens', 'ui.fonts.opensans', 'ajax'),
21 'use' => CJSCore::USE_PUBLIC,
22 ),
23 'admin_interface' => array(
24 'js' => $pathJS.'/core_admin_interface.js',
25 'lang' => $pathLang.'/js_core_admin_interface.php',
26 'css' => $pathCSSPanel.'/admin-public.css',
27 'rel' => array('ui.design-tokens', 'ui.fonts.opensans', 'ajax', 'popup', 'window', 'date', 'fx', 'ui.date-picker'),
28 'lang_additional' => array(
29 'TITLE_PREFIX' => COption::GetOptionString("main", "site_name", $_SERVER["SERVER_NAME"] ?? '')
30 . " - ",
31 ),
32 ),
33 "admin_login" => array(
34 'js' => $pathJS."/core_admin_login.js",
35 'css' => $pathCSSPanel."/login.css",
36 'rel' => array("ajax", "window"),
37 ),
38 'autosave' => array(
39 'js' => $pathJS.'/core_autosave.js',
40 'lang' => $pathLang.'/js_core_autosave.php',
41 'rel' => array('ajax', 'main.pageobject'),
42 ),
43 'fx' => array(
44 'js' => $pathJS.'/core_fx.js',
45 ),
46 'dd' => array(
47 'js' => $pathJS.'/core_dd.js',
48 ),
49 'dnd' => array(
50 'js' => '/bitrix/js/main/dd.js',
51 ),
52 'webrtc' => array(
53 'js' => $pathJS.'/core_webrtc.js',
54 'rel' => array('webrtc_adapter')
55 ),
56 'popup' => array(
57 'rel' => array('main.popup')
58 ),
59 'tags' => array(
60 'js' => $pathJS.'/core_tags.js',
61 'css' => $pathCSS.'/core_tags.css',
62 'lang' => $pathLang.'/js_core_tags.php',
63 'rel' => array('ui.design-tokens', 'popup'),
64 ),
65 'timer' => array(
66 'js' => $pathJS.'/core_timer.js',
67 ),
68 'tooltip' => array(
69 'js' => $pathJS.'/core_tooltip.js',
70 'css' => $pathCSS.'/core_tooltip.css',
71 'rel' => array('ajax', 'ui.tooltip'),
72 'lang_additional' => array('TOOLTIP_ENABLED' => (IsModuleInstalled("socialnetwork") && COption::GetOptionString("socialnetwork", "allow_tooltip", "Y") == "Y" ? "Y" : "N")),
73 ),
74 'translit' => array(
75 'js' => $pathJS.'/core_translit.js',
76 'lang' => $pathLang.'/js_core_translit.php',
77 'lang_additional' => array('YANDEX_KEY' => COption::GetOptionString('main', 'translate_key_yandex', '')),
78 ),
79 'image' => array(
80 'js' => $pathJS.'/core_image.js',
81 'css' => $pathCSS.'/core_image.css',
82 'rel' => array('ls'),
83 ),
84 'viewer' => array(
85 'js' => $pathJS.'/core_viewer.js',
86 'css' => $pathCSS.'/core_viewer.css',
87 'lang' => $pathLang.'/js_core_viewer.php',
88 'rel' => array('ui.design-tokens', 'ui.fonts.opensans', 'ls', 'ajax', 'popup', 'loader',),
89 'lang_additional' => array('DISK_MYOFFICE' => COption::GetOptionString('disk', 'demo_myoffice', false))
90 ),
91 'window' => array(
92 'js' => $pathJS.'/core_window.js',
93 //'css' => $pathCSS.'/core_window.css',
94 'css' => $pathCSSPanel.'/popup.css',
95 'rel' => array('ui.design-tokens', 'ajax', 'main.pageobject'),
96 'lang' => $pathLang.'/js_core.php',
97 ),
98 'access' => array(
99 'js' => $pathJS.'/core_access.js',
100 'css' => $pathCSS.'/core_access.css',
101 'rel' => array('ui.design-tokens', 'popup', 'ajax', 'finder'),
102 'lang' => $pathLang.'/js_core_access.php',
103 ),
104 'finder' => array(
105 'js' => $pathJS.'/core_finder.js',
106 'css' => $pathCSS.'/core_finder.css',
107 'rel' => array('ui.design-tokens', 'popup', 'ajax', 'db_indexeddb',),
108 ),
109 'user' => array(
110 'js' => $pathJS.'/core_user.js',
111 'lang' => $pathLang.'/js_core_user.php',
112 'rel' => array('date'),
113 'lang_additional' => array(
114 'LIMIT_ONLINE' => method_exists('CUser', 'GetSecondsForLimitOnline')? CUser::GetSecondsForLimitOnline(): 1440 // we use this condition because has a fatal error while running updater "main 17.5.0" witch calling the OnAfterEpilog event.
115 ),
116 ),
117 'date' => array(
118 'js' => $pathJS.'/core_date.js',
119 'css' => $pathCSS.'/core_date.css',
120 'lang_additional' => array(
121 'WEEK_START' => \Bitrix\Main\Context::getCurrent()->getCulture()->getWeekStart(),
122 ),
123 'rel' => array('ui.design-tokens', 'main.date', 'popup'),
124 ),
125 'ls' => array(
126 'js' => $pathJS.'/core_ls.js'
127 ),
128 'db' => array(
129 'js' => $pathJS.'/core_db.js',
130 ),
131 'db_indexeddb' => array(
132 'js' => $pathJS.'/core_db_indexeddb.js',
133 ),
134 'fc' => array(
135 'js' => $pathJS . '/core_frame_cache.js',
136 'rel' => array('ui.dexie','ajax', 'ls', 'fx')
137 ),
138 'avatar_editor' => array(
139 'rel' => array('ui.avatar-editor'),
140 ),
141 'canvas' => array(
142 'js' => $pathJS.'/core_canvas.js',
143 'css' => $pathCSS.'/core_canvas.css',
144 'lang' => $pathLang.'/js_core_canvas.php',
145 'rel' => array('ui.design-tokens', 'popup'),
146 ),
147 'uploader' => array(
148 'js' => array(
149 $pathJS.'/core_uploader/common.js',
150 $pathJS.'/core_uploader/uploader.js',
151 $pathJS.'/core_uploader/file.js',
152 $pathJS.'/core_uploader/queue.js',
153 ),
154 'lang_additional' => array(
155 "phpMaxFileUploads" => ini_get("max_file_uploads"),
156 "phpPostMaxSize" => CUtil::Unformat(ini_get("post_max_size")),
157 "phpUploadMaxFilesize" => CUtil::Unformat(ini_get("upload_max_filesize")),
158 "bxImageExtensions" => CFile::GetImageExtensions(),
159 "bxUploaderLog" => COption::GetOptionString("main", "uploaderLog", "N"),
160 "bxQuota"=> CDiskQuota::getInstance()->GetDiskQuota()
161 ),
162 'lang' => $pathLang.'/js_core_uploader.php',
163 'rel' => array('ajax', 'dd'),
164 'bundle_js' => 'coreuploader'
165 ),
166 'site_speed' => array(
167 'js' => $pathJS.'/site_speed/site_speed.js',
168 'lang' => $pathLang.'/js_site_speed.php',
169 'rel' => array('amcharts_serial', 'ajax', "date")
170 ),
171 'qrcode' => [
172 'rel' => ['main.qrcode']
173 ],
174 'fileinput' => array(
175 'js' => $pathJS.'/core_fileinput.js',
176 'css' => $pathCSS.'/core_fileinput.css',
177 'lang' => $pathLang.'/js_core_fileinput.php',
178 'rel' => array("ui.design-tokens", "ajax", "window", "popup", "uploader", "canvas", "dd",)
179 ),
180 'clipboard' => array(
181 'js' => $pathJS.'/core_clipboard.js',
182 'lang' => $pathLang.'/js_core_clipboard.php',
183 'rel' => array("popup")
184 ),
185 'recorder' => array(
186 'js' => '/bitrix/js/main/recorder/recorder.js',
187 'rel' => array('lamejs')
188 ),
189 'pin' => array(
190 'js' => '/bitrix/js/main/pin/pin.js',
191 'css' => '/bitrix/js/main/pin/css/pin.css'
192 ),
193 'ui_select' => array(
194 'js' => $pathJS.'/core_ui_select.js',
195 'css' => $pathCSS.'/core_ui_select.css',
196 'rel' => array('popup')
197 ),
198 'ui_date' => array(
199 'js' => $pathJS.'/core_ui_date.js',
200 'css' => $pathCSS.'/core_ui_date.css',
201 'rel' => array('ui_factory', 'ui.date-picker'),
202 ),
203 'ui_factory' => array(
204 'js' => $pathJS.'/core_ui_factory.js',
205 'css' => $pathCSS.'/core_ui_control.css',
206 'rel' => array('ui.design-tokens', 'decl',)
207 ),
208 'ui' => array(
209 'rel' => array(
210 'ui_factory',
211 'ui_select',
212 'ui_date'
213 )
214 ),
215 'resize_observer' => array(
216 'js' => array(
217 $pathJS.'/resize_observer/resize_observer_collection.js',
218 $pathJS.'/resize_observer/resize_observer_item_collection.js',
219 $pathJS.'/resize_observer/resize_observer_item_rect.js',
220 $pathJS.'/resize_observer/resize_observer_item.js',
221 $pathJS.'/resize_observer/resize_observer.js'
222 )
223 ),
224 'decl' => array(
225 'js' => $pathJS.'/core_decl.js'
226 ),
227 'drag_drop' => array(
228 'js' => $pathJS.'/core_dragdrop.js'
229 ),
230 'kanban' => array(
231 'rel' => array('main.kanban'),
232 ),
233 'color_picker' => array(
234 'js' => array(
235 '/bitrix/js/main/colorpicker/colorpicker.js',
236 ),
237 'css' => array(
238 '/bitrix/js/main/colorpicker/css/colorpicker.css',
239 ),
240 'lang' => $pathLang.'/js/colorpicker.php',
241 'rel' => array('ui.design-tokens', 'popup',),
242 ),
243 'masked_input' => array(
244 'js' => array(
245 '/bitrix/js/main/masked_input.js'
246 )
247 ),
248 'fullscreen' => array(
249 'js' => $pathJS.'/core_fullscreen.js'
250 ),
251 'spotlight' => array(
252 'js' => '/bitrix/js/main/spotlight/spotlight.js',
253 'css' => '/bitrix/js/main/spotlight/css/spotlight.css',
254 'lang' => $pathLang.'/js/spotlight.php',
255 'rel' => array('ui.dialogs.messagebox', 'ajax'),
256 'bundle_js' => 'spotlight',
257 'bundle_css' => 'spotlight',
258 ),
259 'sidepanel' => array(
260 'rel' => array(
261 'main.sidepanel',
262 ),
263 ),
264 'admin_sidepanel' => array(
265 'js' => array(
266 '/bitrix/js/main/admin_sidepanel.js',
267 ),
268 'rel' => array('admin_interface', 'sidepanel'),
269 ),
270 'helper' => array(
271 'js' => '/bitrix/js/main/helper/helper.js',
272 'css' => '/bitrix/js/main/helper/css/helper.css',
273 'rel' => array('sidepanel', 'ajax', 'ui.fonts.opensans'),
274 'lang' => $pathLang.'/js/helper.php',
275 ),
276 'webrtc_adapter' => array(
277 'js' => '/bitrix/js/main/webrtc/adapter.js'
278 ),
279
280 'update_stepper' => array(
281 'js' => $pathJS.'/core_update_stepper.js',
282 'css' => $pathCSS.'/core_update_stepper.css',
283 'lang' => $pathLang.'/js_core_update_stepper.php',
284 'rel' => array('ajax', 'ui.design-tokens', 'ui.fonts.opensans'),
285 ),
286 'uf' => array(
287 'js' => $pathJS.'/core_uf.js',
288 'css' => $pathCSS.'/core_uf.css',
289 'rel' => array('ajax'),
290 'oninit' => function()
291 {
292 $templateId = (defined('SITE_TEMPLATE_ID') ? SITE_TEMPLATE_ID : '');
293 return array(
294 'lang_additional' => array(
295 'UF_SITE_TPL' => $templateId,
296 'UF_SITE_TPL_SIGN' => \Bitrix\Main\UserField\Dispatcher::instance()->getSignatureManager()->getSignature($templateId),
297 ),
298 );
299 }
300 ),
301 'phone_number' => array(
302 'js' => '/bitrix/js/main/phonenumber/phonenumber.js',
303 'css' => '/bitrix/js/main/phonenumber/css/phonenumber.css',
304 'oninit' => function()
305 {
306 return array(
307 'lang_additional' => array(
308 'phone_number_default_country' => \Bitrix\Main\PhoneNumber\Parser::getDefaultCountry(),
309 'user_default_country' => \Bitrix\Main\PhoneNumber\Parser::getUserDefaultCountry()
310 )
311 );
312 },
313 'rel' => array('popup'),
314 ),
315 'loader' => array(
316 'rel' => [
317 'main.loader'
318 ]
319 ),
320 'phone_auth' => array(
321 'js' => $pathJS.'/core_phone_auth.js',
322 'lang' => $pathLang.'/js_core_phone_auth.php',
323 'rel' => array('ajax'),
324 ),
325 'message' => array(
326 'js' => $pathJS.'/core_message.js',
327 'skip_core' => true,
328 ),
329
330 /* auto loaded libs */
331
332 'promise' => array(
333 'js' => $pathJS.'/core_promise.js',
334 'skip_core' => true,
335 ),
336 'loadext' => array(
337 'js' => array(
338 '/bitrix/js/main/loadext/loadext.js',
339 '/bitrix/js/main/loadext/extension.js',
340 ),
341 'rel' => array('main.polyfill.promise'),
342 ),
343
344 /* external libs */
345 'jquery' => array(
346 // does not exist after main 25.300.0
347 'js' => '/bitrix/js/main/jquery/jquery-1.12.4.min.js',
348 'skip_core' => true,
349 ),
350 'jquery_src' => array(
351 // does not exist after main 25.300.0
352 'js' => '/bitrix/js/main/jquery/jquery-1.12.4.js',
353 'skip_core' => true,
354 ),
355 'jquery2' => array(
356 // does not exist after main 25.300.0
357 'js' => '/bitrix/js/main/jquery/jquery-2.2.4.min.js',
358 'skip_core' => true,
359 ),
360 'jquery2_src' => array(
361 // does not exist after main 25.300.0
362 'js' => '/bitrix/js/main/jquery/jquery-2.2.4.js',
363 'skip_core' => true,
364 ),
365 'jquery3' => array(
366 'js' => '/bitrix/js/main/jquery/jquery-3.6.0.min.js',
367 'skip_core' => true,
368 ),
369 'jquery3_src' => array(
370 'js' => '/bitrix/js/main/jquery/jquery-3.6.0.js',
371 'skip_core' => true,
372 ),
373 'amcharts' => array(
374 'js' => $amChartsPath.'amcharts.js',
375 'lang_additional' => array(
376 'AMCHARTS_PATH' => $amChartsPath, // will be needed in 3.14
377 'AMCHARTS_IMAGES_PATH' => $amChartsPath.'images/',
378 ),
379 'skip_core' => true,
380 ),
381 'amcharts_i18n' => array(
382 'js' => $amChartsPath.LANGUAGE_ID.'/'.LANGUAGE_ID.'.js',
383 'skip_core' => true,
384 ),
385 'amcharts_funnel' => array(
386 'js' => $amChartsPath.'funnel.js',
387 'rel' => array('amcharts'),
388 'skip_core' => true,
389 ),
390 'amcharts_gauge' => array(
391 'js' => $amChartsPath.'gauge.js',
392 'rel' => array('amcharts'),
393 'skip_core' => true,
394 ),
395 'amcharts_pie' => array(
396 'js' => $amChartsPath.'pie.js',
397 'rel' => array('amcharts'),
398 'skip_core' => true,
399 ),
400 'amcharts_radar' => array(
401 'js' => $amChartsPath.'radar.js',
402 'rel' => array('amcharts'),
403 'skip_core' => true,
404 ),
405 'amcharts_serial' => array(
406 'js' => $amChartsPath.'serial.js',
407 'rel' => array('amcharts'),
408 'skip_core' => true,
409 ),
410 'amcharts_xy' => array(
411 'js' => $amChartsPath.'xy.js',
412 'rel' => array('amcharts'),
413 'skip_core' => true,
414 ),
415 'amcharts4_core' => array(
416 'js' => [
417 $amCharts4Path.'core.js',
418 $amCharts4Path.'init.js',
419 ],
420 'skip_core' => true,
421 ),
422 'amcharts4' => array(
423 'js' => [
424 $amCharts4Path.'charts.js',
425 ],
426 'skip_core' => true,
427 'rel' => array('amcharts4_core')
428 ),
429 'amcharts4_theme_animated' => array(
430 'js' => [
431 $amCharts4Path.'themes/animated.js',
432 ],
433 'skip_core' => true,
434 'rel' => array('amcharts4_core')
435 ),
436 'amcharts4_maps' => array(
437 'js' => $amCharts4Path.'maps.js',
438 'skip_core' => true,
439 ),
440 'lamejs' => array(
441 'js' => '/bitrix/js/main/recorder/recorder.js'
442 ),
443 'wwallPopup' => array(
444 'rel' => array('main.wwallpopup'),
445 'skip_core' => true,
446 ),
447);
448
449\Bitrix\Main\Page\Asset::getInstance()->addJsKernelInfo(
450 'main',
451 array(
452 '/bitrix/js/main/pageobject/dist/pageobject.bundle.js',
453 '/bitrix/js/main/core/core.js',
454 '/bitrix/js/main/core/core_tooltip.js',
455 '/bitrix/js/main/date/main.date.js',
456 '/bitrix/js/main/core/core_date.js',
457 '/bitrix/js/main/core/core_timer.js',
458 '/bitrix/js/main/core/core_fx.js',
459 '/bitrix/js/main/core/core_window.js',
460 '/bitrix/js/main/core/core_autosave.js',
461 '/bitrix/js/main/rating_like.js',
462 '/bitrix/js/main/session.js',
463 '/bitrix/js/main/dd.js',
464 '/bitrix/js/main/utils.js',
465 '/bitrix/js/main/core/core_dd.js',
466 '/bitrix/js/main/core/core_webrtc.js',
467 '/bitrix/js/main/core/core_uf.js'
468 )
469);
470
471\Bitrix\Main\Page\Asset::getInstance()->addCssKernelInfo(
472 'main',
473 array(
474 '/bitrix/js/main/core/css/core_tooltip.css',
475 '/bitrix/js/main/core/css/core_date.css',
476 '/bitrix/js/main/core/css/core_uf.css'
477 )
478);
479
480foreach ($arJSCoreConfig as $ext => $arExt)
481{
482 CJSCore::RegisterExt($ext, $arExt);
483}
const BX_ROOT
Определения bx_root.php:3
static getInstance()
Определения quota.php:12
const USE_PUBLIC
Определения jscore.php:12
static RegisterExt($name, $arPaths)
Определения jscore.php:28
$templateId
Определения component_props2.php:51
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$pathCSS
Определения jscore.php:4
$amChartsPath
Определения jscore.php:9
$amCharts4Path
Определения jscore.php:10
$arJSCoreConfig
Определения jscore.php:12
$pathCSSPanel
Определения jscore.php:5
$pathLang
Определения jscore.php:6
$pathJS
Определения jscore.php:3
$_SERVER["DOCUMENT_ROOT"]
Определения cron_frame.php:9
IsModuleInstalled($module_id)
Определения tools.php:5301