This commit is contained in:
cutemeli
2025-12-22 10:35:30 +00:00
parent 0bfc6c8425
commit 5ce7ca2c5d
38927 changed files with 0 additions and 4594700 deletions

View File

@@ -1,115 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php $prefixElement = $this->element->getElement('installationPrefix'); ?>
<div class='form-row<?php echo $prefixElement && $prefixElement->hasErrors() ? ' error' : ''?>'>
<div class='field-name'>
<?php echo $this->elementPart($this->element->getElement('domain'))->label(); ?>
</div>
<div class='field-value'>
<span>
<?php echo $this->elementPart($this->element->getElement('protocol'))->content(); ?>
<span></span>
://
<?php echo $this->elementPart($this->element->getElement('domain'))->content(); ?>
<?php
if ($prefixElement) {
echo ' / ';
echo $this->elementPart($prefixElement)->content();
}
?>
<span class="ajax-loading" style="display: none;"><?php echo $this->lmsg('loading');?></span>
<span class="hint"><?php echo $this->lmsg('httpsContentHint');?></span>
</span>
<span id="object-switcher"></span>
<?php if ($prefixElement && $prefixElement->hasErrors()): ?>
<span class='field-errors'><?php echo $this->elementPart($prefixElement)->errors() ?></span>
<?php else: ?>
<span class='field-errors' style="display: none;"></span>
<?php endif; ?>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
(function () {
var contextsOptions = <?php echo json_encode($this->contextsOptions) ?>;
var protocolSelect = document.getElementById('<?php echo $this->element->getElement('protocol')->getId(); ?>');
var domainSelect = document.getElementById('<?php echo $this->element->getElement('domain')->getId(); ?>');
var onContextChange = function (doNotChangePrefix) {
if ('select' === domainSelect.tagName.toLowerCase()) {
document.getElementById('<?php echo $this->contextIdElement->getId(); ?>').value = domainSelect.value;
} else if ('select' === protocolSelect.tagName.toLowerCase()) {
document.getElementById('<?php echo $this->contextIdElement->getId(); ?>').value = Object.keys(contextsOptions[protocolSelect.value])[0];
}
var value = document.getElementById('<?php echo $this->contextIdElement->getId();?>').value.split("-");
if ('select' === protocolSelect.tagName.toLowerCase()) {
var hideSelector = Object.keys(contextsOptions).every(function (protocol) {
return protocol === protocolSelect.value || 'undefined' === typeof contextsOptions[protocol][value[0] + '-' + value[1] + '-' + protocol];
});
if (hideSelector) {
protocolSelect.style.display = 'none';
protocolSelect.nextElementSibling.innerHTML = protocolSelect.value;
} else {
protocolSelect.style.display = '';
protocolSelect.nextElementSibling.innerHTML = '';
}
}
if (true === doNotChangePrefix) {
return;
}
<?php if ($prefixElement): ?>
new Ajax.Request(Jsw.prepareUrl('/app/get-install-prefix/domainId/' + value[1] + '/metaId/' + '<?php echo $this->metaId; ?>'), {
method: 'get',
onCreate: function () {
document.querySelector('.ajax-loading').style.display = '';
var sendButtonWrapper = document.getElementById('btn-send');
if (sendButtonWrapper) {
sendButtonWrapper.disabled = true;
sendButtonWrapper.classList.add('disabled');
}
},
onSuccess: function (response) {
document.querySelector('.ajax-loading').style.display = 'none';
var sendButtonWrapper = document.getElementById('btn-send');
if (sendButtonWrapper) {
sendButtonWrapper.disabled = false;
sendButtonWrapper.classList.remove('disabled');
}
var response = JSON.parse(response.responseText);
if (response.redirect) {
Jsw.redirect(response.redirect);
return;
}
var prefix = (response.prefix) ? response.prefix : '';
document.getElementById('<?php echo $this->element->getElement('installationPrefix')->getId();?>').value = prefix;
}
});
<?php endif; ?>
};
var onProtocolChange = function () {
if ('select' === domainSelect.tagName.toLowerCase()) {
var newOptions = contextsOptions[protocolSelect.value];
var currentValue = document.getElementById('<?php echo $this->contextIdElement->getId();?>').value.split("-");
domainSelect.innerHTML = Object.keys(newOptions)
.map(contextId => '<option value="' + contextId + '">' + newOptions[contextId] + '</option>')
.join('');
var newValue = currentValue[0] + '-' + currentValue[1] + '-' + protocolSelect.value;
if ('undefined' !== typeof newOptions[newValue]) {
domainSelect.value = newValue;
}
}
onContextChange(true);
};
protocolSelect.addEventListener('change', onProtocolChange);
domainSelect.addEventListener('change', onContextChange);
onContextChange(true);
})();
//]]>
</script>

View File

@@ -1,9 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class='form-row'>
<div class='single-row'>
<p><?php echo $this->escape($this->captions['doYouAcceptLicense']); ?></p>
<iframe src="<?php echo $this->baseUrl($this->licenseContent) ?>" width="800px;" height="400px;"></iframe>
</div>
</div>

View File

@@ -1,9 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class='form-row'>
<div class='single-row'>
<p><?php echo $this->escape($this->captions['doYouAcceptLicense']); ?></p>
<textarea cols="80" rows="24" readonly="readonly" class="ta-eula"><?php echo $this->escape($this->licenseContent); ?></textarea>
</div>
</div>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<a href="<?php echo $this->licenseContent; ?>" target="_blank"><?php echo $this->escape($this->captions['doYouAcceptLicense']); ?></a>

View File

@@ -1,6 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<a href="<?php echo $this->baseUrl($this->link); ?>">
<?php echo $this->escape($this->title); ?>
</a>

View File

@@ -1,31 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div class="apps-manager objects-management-box clearfix">
<?php echo $this->partial('app/_tabs.phtml', array('tabs' => $this->tabs, 'current' => $this->currentTab)); ?>
<div id="objects-details" class="objects-details">
<div id="objects-details-content" class="objects-details-content">
<div class="objects-details-content-area">
<?php if ($this->subTitle): ?>
<div class="objects-details-heading">
<div class="objects-details-heading-area">
<h3><span><?php echo $this->subTitle; ?></span></h3>
</div>
</div>
<?php endif; ?>
<?php echo $this->content; ?>
</div> <!-- /objects-content-area -->
</div>
</div> <!-- /objects-details -->
<script type='text/javascript'>
Plesk.require('app/app/apscatalog', function (FormApsCatalog) {
Jsw.onReady(function () {
FormApsCatalog.initLayout();
});
});
</script>
</div> <!-- /objects-management-box -->

View File

@@ -1,27 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<div id="objects-list" class="objects-list">
<div class="objects-content">
<div id="objects-list-content-area" class="objects-content-area">
<div class="objects-nav-container">
<?php $lastTab = end($this->tabs); ?>
<?php foreach ($this->tabs as $tab): ?>
<div class="objects-nav <?php if ($this->current == $tab['id']) echo 'objects-nav-active' ?>">
<ul class="objects-nav-list">
<li class="objects-nav-item objects-nav-indent aps-item-<?php echo $tab['cssClass']; ?> <?php if ($this->current == $tab['id']) echo 'objects-nav-item-active' ?>">
<a href="<?php echo $this->baseUrl($tab['link']); ?>" class="objects-nav-block">
<span class="objects-nav-icon"><img src="<?php echo $this->skinUrl($tab['icon']); ?>" alt=""></span>
<span class="objects-nav-name"><?php echo $tab['title']; ?></span>
<span class="objects-nav-info"><?php echo $tab['description']; ?></span>
</a>
</li>
</ul>
</div>
<?php if ($tab != $lastTab) echo '<hr>'; ?>
<?php endforeach; ?>
</div>
</div>
</div>
</div> <!-- /objects-list -->

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>

View File

@@ -1,9 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<p><?php echo $this->lmsg('description'); ?></p>
<?= $this->requireJs('app/app/progress', [
'renderTo' => 'main',
'requestUrl' => '/smb/app/download-progress-data/catalogId/' . $this->catalogId . '/taskId/' . $this->taskId,
'redirectUrl' => '/smb/app/select/packageId/%packageId%' . $this->additionalInstallParams,
]) ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,12 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<p><?php echo $this->lmsg('description'); ?></p>
<?= $this->requireJs('app/app/progress', [
'renderTo' => 'main',
'catalogId' => $this->catalogId,
'taskId' => $this->taskId,
'requestUrl' => '/smb/app/install-progress-data/taskId/' . $this->taskId,
'redirectUrl' => '/smb/service/index/resourceId/%resourceId%' . $this->additionalInstallParams,
'timeout' => 1000,
]) ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>

View File

@@ -1,39 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php $instancesList = $this->instancesList->fetchData(); ?>
<div class="objects-details-heading">
<div class="objects-details-heading-area">
<div class="toolbar" id="installed-apps-toolbar">
</div>
<h3>
<span><?php echo $this->lmsg('tabTitle') ?></span>
</h3>
</div>
</div>
<div class="object-details-hint"><?php echo $this->lmsg('whereAreApps') ?></div>
<div class="objects-content">
<div class="list-box" id="installed-apps-list"></div>
</div>
<?= $this->requireJs('app/app/installed', [
'updates' => $this->updatesList,
'instancesList' => $instancesList,
'domainIdParam' => $this->domainIdParam,
]) ?>
<?php if (!count($instancesList['data'])): ?>
<hr>
<?php if (isset($this->catalogLinks['marketplace']) && isset($this->catalogLinks['apscatalog'])): ?>
<div class="object-details-hint">
<?php
foreach ($this->catalogLinks as &$link) {
$link = $this->baseUrl($link);
}
$this->catalogLinks['_escape'] = false;
echo $this->lmsg('installAppHint', $this->catalogLinks);
?>
</div>
<?php endif; ?>
<?php echo $this->form; ?>
<?php endif; ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>

View File

@@ -1,4 +0,0 @@
<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form ?>