listen 443 ssl default_server;
openssl genrsa -out rootCA.key 2048
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem
ssl_certificate /etc/nginx/ssh/rootCA.pem;
ssl_certificate_key /etc/nginx/ssh/rootCA.key;
"@babel/preset-env": "^7.26.0",
{
test: /\.js$/,
exclude: /(node_modules|vendor)/,
loader: 'babel-loader',
query: {
cacheDirectory: true,
presets: ['babel-preset-env']
}
},
{
test: /\.js$/,
exclude: /(node_modules|vendor)/,
loader: 'babel-loader',
options: {
cacheDirectory: true,
presets: ['@babel/preset-env']
}
}
dnf remove php
sudo dnf -y install http://rpms.remirepo.net/enterprise/remi-release-9.rpm -y
sudo dnf module reset php -y
sudo dnf module install php:remi-8.1
namespace Sprint\Migration;
class AddSortFieldInHighloadBlock20240926165615 extends Version
{
protected $author = 'https://github.com/JastaFly';
protected $description = 'Добавляет поле сортировки в Highload-блок';
protected $moduleVersion = '4.12.6';
private HelperManager $helperManager;
private int $hlBlockManufacturersId;
/**
* @throws Exceptions\HelperException
* @return bool|void
*/
public function __construct()
{
$this->helperManager = $this->getHelperManager();
$this->hlBlockManufacturersId = $this->helperManager->Hlblock()->getHlblockIdIfExists(
'highloadBlockName'
);
}
public function up()
{
$this->helperManager->Hlblock()->saveField(
$this->hlBlockManufacturersId,
[
'FIELD_NAME' => 'UF_SORT',
'USER_TYPE_ID' => 'double',
'XML_ID' => '',
'SORT' => '100',
'MULTIPLE' => 'N',
'MANDATORY' => 'N',
'SHOW_FILTER' => 'N',
'SHOW_IN_LIST' => 'Y',
'EDIT_IN_LIST' => 'Y',
'IS_SEARCHABLE' => 'N',
'SETTINGS' => [
'PRECISION' => 4,
'SIZE' => 20,
'MIN_VALUE' => 0.0,
'MAX_VALUE' => 0.0,
'DEFAULT_VALUE' => NULL,
],
'EDIT_FORM_LABEL' => ['en' => 'Sorting', 'ru' => 'Сортировка'],
'LIST_COLUMN_LABEL' => ['en' => 'Sorting', 'ru' => 'Сортировка'],
'LIST_FILTER_LABEL' => ['en' => 'Sorting', 'ru' => 'Сортировка'],
'ERROR_MESSAGE' => ['en' => 'Sorting', 'ru' => 'Сортировка'],
'HELP_MESSAGE' => ['en' => 'Sorting', 'ru' => 'Сортировка']
]
);
}
public function down()
{
$deleteResult = $this->helperManager->Hlblock()->deleteField($this->hlBlockManufacturersId, 'UF_SORT');
if ($deleteResult) {
$this->outSuccess('Всё ok. Свойство сортировки добавлено');
} else {
$this->outError('Не ok. Свойство сортировки не добавлено');
}
}
}
AddEventHandler('main', 'OnBuildGlobalMenu', 'deleteForbiddenMenuItems', 200);
function deleteForbiddenMenuItems(&$aGlobalMenu)
{
unset(
$aGlobalMenu['global_menu_sitecore'],
$aGlobalMenu['global_menu_custom_core'],
$aGlobalMenu['global_menu_content'],
$aGlobalMenu['global_menu_marketing'],
$aGlobalMenu['global_menu_services'],
$aGlobalMenu['global_menu_marketplace'],
$aGlobalMenu['global_menu_crm_site_master']
);
}
.adm- {
display: none;
}