Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit b564dddc authored by Nicolas's avatar Nicolas
Browse files

Ajout des paramètres system.xml et de la configuration par défaut - Not Working Yet

parent 38b5ebed
No related branches found
No related tags found
No related merge requests found
# Changelog
## [1.8.12] - 2020-04-19
### Added
- Ajout des paramétrages System.xml
## [1.7.12] - 2020-04-19
### Added
- Mise en place du GraphQL
- Ajout des dépendances pour le GraphQL
## [1.6.12] - 2020-04-19
### Added
- Mise en place de la classe PdfRepository pour supprimer le load (deprecated)
......
......@@ -2,12 +2,20 @@
"name": "nicolasbejean/mediamanager",
"description": "Gestionnaire de médias",
"type": "magento2-module",
"version": "1.7.12",
"version": "1.8.12",
"require": {
"php": "~7.1.3||~7.2.0||~7.3.0",
"magento/framework": "102.0.*",
"magento/module-widget": "101.0.*",
"nicolasbejean/base": ">=1.3.2"
"magento/module-backend": "101.0.*",
"magento/module-catalog": "103.0.*",
"magento/module-email": "101.0.*",
"magento/module-media-storage": "100.3.*",
"magento/module-store": "101.0.*",
"magento/module-theme": "101.0.*",
"magento/module-ui": "101.1.*",
"magento/module-variable": "100.3.*",
"magento/module-widget": "101.1.*",
"nicolasbejean/base": ">=1.4.2"
},
"suggest": {
"magento/module-graph-ql": "100.3.*",
......
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="mediamanagerimage" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Media Manager Image (Not Working Yet)</label>
<tab>nicolasbejean</tab>
<resource>NicolasBejean_MediaManager::image</resource>
<group id="resize" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Image Resize Settings</label>
<comment>Default Resize Settings (Not Working Yet)</comment>
<field id="constrain_only" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Constrain Only</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Guarantee, that image picture will not be bigger, than it was. It is false by default.</comment>
</field>
<field id="keep_aspect_ratio" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Keep Aspect Ratio</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Guarantee, that image picture width/height will not be distorted. It is true by default.</comment>
</field>
<field id="keep_transparency" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Keep Transparency</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Guarantee, that image will not lose transparency if any. It is true by default.</comment>
</field>
<field id="keep_frame" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Keep Frame</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Guarantee, that image will have dimensions, set in $width/$height. Not applicable, if keepAspectRatio(false).</comment>
</field>
<field id="background_color" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color</label>
<comment>Default white</comment>
</field>
</group>
<group id="save" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Image Saved Settings</label>
<comment>Default Save Settings (Not Working Yet)</comment>
<field id="identifier" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Identifier</label>
</field>
<field id="basename" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Basename</label>
</field>
<field id="width" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Width</label>
</field>
<field id="height" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Height</label>
</field>
<field id="compression" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Compression</label>
</field>
</group>
</section>
<section id="mediamanagerpdf" translate="label" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Media Manager PDF (Not Working Yet)</label>
<tab>nicolasbejean</tab>
<resource>NicolasBejean_MediaManager::pdf</resource>
<group id="resize" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Image Resize Settings</label>
<comment>Default Resize Settings (Not Working Yet)</comment>
<field id="constrain_only" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Constrain Only</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Guarantee, that image picture will not be bigger, than it was. It is false by default.</comment>
</field>
<field id="keep_aspect_ratio" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Keep Aspect Ratio</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Guarantee, that image picture width/height will not be distorted. It is true by default.</comment>
</field>
<field id="keep_transparency" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Keep Transparency</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Guarantee, that image will not lose transparency if any. It is true by default.</comment>
</field>
<field id="keep_frame" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Keep Frame</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Guarantee, that image will have dimensions, set in $width/$height. Not applicable, if keepAspectRatio(false).</comment>
</field>
<field id="background_color" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color</label>
<comment>Default white</comment>
</field>
</group>
<group id="save" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Image Saved Settings</label>
<comment>Default Save Settings (Not Working Yet)</comment>
<field id="identifier" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Identifier</label>
</field>
<field id="basename" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Basename</label>
</field>
<field id="width" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Width</label>
</field>
<field id="height" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Height</label>
</field>
<field id="compression" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Compression</label>
</field>
</group>
</section>
<section id="mediamanagervideo" translate="label" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Media Manager Video (Not Working Yet)</label>
<tab>nicolasbejean</tab>
<resource>NicolasBejean_MediaManager::video</resource>
<group id="resize" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Image Resize Settings</label>
<comment>Default Resize Settings (Not Working Yet)</comment>
<field id="constrain_only" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Constrain Only</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Guarantee, that image picture will not be bigger, than it was. It is false by default.</comment>
</field>
<field id="keep_aspect_ratio" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Keep Aspect Ratio</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Guarantee, that image picture width/height will not be distorted. It is true by default.</comment>
</field>
<field id="keep_transparency" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Keep Transparency</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Guarantee, that image will not lose transparency if any. It is true by default.</comment>
</field>
<field id="keep_frame" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Keep Frame</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Guarantee, that image will have dimensions, set in $width/$height. Not applicable, if keepAspectRatio(false).</comment>
</field>
<field id="background_color" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Color</label>
<comment>Default white</comment>
</field>
</group>
<group id="save" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Image Saved Settings</label>
<comment>Default Save Settings (Not Working Yet)</comment>
<field id="identifier" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Identifier</label>
</field>
<field id="basename" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Basename</label>
</field>
<field id="width" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Width</label>
</field>
<field id="height" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Height</label>
</field>
<field id="compression" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Compression</label>
</field>
</group>
</section>
</system>
</config>
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<mediamanagerimage>
<resize>
<constrain_only>0</constrain_only>
<keep_aspect_ratio>1</keep_aspect_ratio>
<keep_transparency>1</keep_transparency>
<keep_frame>0</keep_frame>
<background_color>#ffffff</background_color>
</resize>
<save>
<identifier>mmi</identifier>
<basename></basename>
<width>1920</width>
<height>1080</height>
<compression>60</compression>
</save>
</mediamanagerimage>
<mediamanagerpdf>
<resize>
<constrain_only>0</constrain_only>
<keep_aspect_ratio>1</keep_aspect_ratio>
<keep_transparency>1</keep_transparency>
<keep_frame>0</keep_frame>
<background_color>#ffffff</background_color>
</resize>
<save>
<identifier>mmp</identifier>
<basename></basename>
<width>1920</width>
<height>1080</height>
<compression>60</compression>
</save>
</mediamanagerpdf>
<mediamanagervideo>
<resize>
<constrain_only>0</constrain_only>
<keep_aspect_ratio>1</keep_aspect_ratio>
<keep_transparency>1</keep_transparency>
<keep_frame>0</keep_frame>
<background_color>#ffffff</background_color>
</resize>
<save>
<identifier>mmv</identifier>
<basename></basename>
<width>1920</width>
<height>1080</height>
<compression>60</compression>
</save>
</mediamanagervideo>
</default>
</config>
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="NicolasBejean_MediaManager" setup_version="1.7.12">
<module name="NicolasBejean_MediaManager" setup_version="1.8.12">
<sequence>
<module name="Magento_Widget" />
<module name="Magento_Store"/>
<module name="Magento_Theme"/>
<module name="Magento_Variable"/>
<module name="Magento_GraphQl"/>
<module name="NicolasBejean_Base"/>
</sequence>
</module>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment