Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
import textToLinkRewriteCopier from '@components/text-to-link-rewrite-copier';
import Serp from '@app/utils/serp/index';
const {$} = window;
$(() => {
new window.prestashop.component.ChoiceTree('#cms_page_page_category_id');
window.prestashop.component.initComponents(
[
'TranslatableInput',
'TranslatableField',
'TinyMCEEditor',
'TextWithRecommendedLengthCounter',
],
);
const translatorInput = window.prestashop.instance.translatableInput;
new Serp(
{
container: '#serp-app',
defaultTitle: 'input[name^="cms_page[title]"]',
watchedTitle: 'input[name^="cms_page[meta_title]"]',
defaultDescription: 'input[name^="cms_page[description]"]',
watchedDescription: 'input[name^="cms_page[meta_description]"]',
watchedMetaUrl: 'input[name^="cms_page[friendly_url]"]',
multiLanguageInput: `${translatorInput.localeInputSelector}:not(.d-none)`,
multiLanguageItem: translatorInput.localeItemSelector,
},
$('#serp-app').data('cms-url'),
);
new window.prestashop.component.TaggableField({
tokenFieldSelector: 'input.js-taggable-field',
options: {
createTokensOnBlur: true,
},
});
new window.prestashop.component.PreviewOpener('.js-preview-url');
textToLinkRewriteCopier({
sourceElementSelector: 'input.js-copier-source-title',
/* eslint-disable-next-line max-len */
destinationElementSelector: `${translatorInput.localeInputSelector}:not(.d-none) input.js-copier-destination-friendly-url`,
});
new window.prestashop.component.ChoiceTree('#cms_page_shop_association').enableAutoCheckChildren();
});

View File

@@ -0,0 +1,61 @@
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
import textToLinkRewriteCopier from '@components/text-to-link-rewrite-copier';
import ShowcaseCard from '@components/showcase-card/showcase-card';
import ShowcaseCardCloseExtension from '@components/showcase-card/extension/showcase-card-close-extension';
const {$} = window;
$(() => {
const cmsCategory = new window.prestashop.component.Grid('cms_page_category');
cmsCategory.addExtension(new window.prestashop.component.GridExtensions.ReloadListExtension());
cmsCategory.addExtension(new window.prestashop.component.GridExtensions.ExportToSqlManagerExtension());
cmsCategory.addExtension(new window.prestashop.component.GridExtensions.FiltersResetExtension());
cmsCategory.addExtension(new window.prestashop.component.GridExtensions.SortingExtension());
cmsCategory.addExtension(new window.prestashop.component.GridExtensions.LinkRowActionExtension());
cmsCategory.addExtension(new window.prestashop.component.GridExtensions.SubmitBulkActionExtension());
cmsCategory.addExtension(new window.prestashop.component.GridExtensions.BulkActionCheckboxExtension());
cmsCategory.addExtension(new window.prestashop.component.GridExtensions.SubmitRowActionExtension());
cmsCategory.addExtension(new window.prestashop.component.GridExtensions.ColumnTogglingExtension());
cmsCategory.addExtension(new window.prestashop.component.GridExtensions.PositionExtension(cmsCategory));
cmsCategory.addExtension(new window.prestashop.component.GridExtensions.FiltersSubmitButtonEnablerExtension());
window.prestashop.component.initComponents(
[
'TranslatableInput',
],
);
const translatorInput = window.prestashop.instance.translatableInput;
textToLinkRewriteCopier({
sourceElementSelector: 'input[name^="cms_page_category[name]"]',
/* eslint-disable-next-line max-len */
destinationElementSelector: `${translatorInput.localeInputSelector}:not(.d-none) input[name^="cms_page_category[friendly_url]"]`,
});
new window.prestashop.component.ChoiceTree('#cms_page_category_parent_category');
const shopChoiceTree = new window.prestashop.component.ChoiceTree('#cms_page_category_shop_association');
shopChoiceTree.enableAutoCheckChildren();
const cmsGrid = new window.prestashop.component.Grid('cms_page');
cmsGrid.addExtension(new window.prestashop.component.GridExtensions.ReloadListExtension());
cmsGrid.addExtension(new window.prestashop.component.GridExtensions.ExportToSqlManagerExtension());
cmsGrid.addExtension(new window.prestashop.component.GridExtensions.FiltersResetExtension());
cmsGrid.addExtension(new window.prestashop.component.GridExtensions.SortingExtension());
cmsGrid.addExtension(new window.prestashop.component.GridExtensions.ColumnTogglingExtension());
cmsGrid.addExtension(new window.prestashop.component.GridExtensions.BulkActionCheckboxExtension());
cmsGrid.addExtension(new window.prestashop.component.GridExtensions.SubmitBulkActionExtension());
cmsGrid.addExtension(new window.prestashop.component.GridExtensions.SubmitRowActionExtension());
cmsGrid.addExtension(new window.prestashop.component.GridExtensions.PositionExtension(cmsGrid));
cmsGrid.addExtension(new window.prestashop.component.GridExtensions.FiltersSubmitButtonEnablerExtension());
cmsGrid.addExtension(new window.prestashop.component.GridExtensions.LinkRowActionExtension());
const helperBlock = new ShowcaseCard('cms-pages-showcase-card');
helperBlock.addExtension(new ShowcaseCardCloseExtension());
});