Skip to content

Commit

Permalink
Merge pull request #59 from trustpilot/minify-js-css
Browse files Browse the repository at this point in the history
Minify js css
  • Loading branch information
Povilas Kačinskas authored Nov 18, 2019
2 parents 25ab7a3 + 350ad67 commit 6d7789b
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 465 deletions.
Empty file modified Helper/TrustpilotPluginStatus.php
100644 → 100755
Empty file.
8 changes: 4 additions & 4 deletions Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Config
const TRUSTPILOT_GENERAL_CONFIGURATION = 'general';
const TRUSTPILOT_TRUSTBOX_CONFIGURATION = 'trustbox';
const TRUSTPILOT_INTEGRATION_KEY = 'key';
const TRUSTPILOT_PLUGIN_VERSION = '2.6.502';
const TRUSTPILOT_PLUGIN_VERSION = '2.6.519';
const TRUSTPILOT_SCRIPT = 'TrustpilotScriptUrl';
const TRUSTPILOT_INTEGRATION_APP = 'IntegrationAppUrl';
const TRUSTPILOT_WIDGET_SCRIPT = 'WidgetScriptUrl';
Expand All @@ -27,9 +27,9 @@ class Config
const TRUSTPILOT_SCRIPT_URL = 'https://invitejs.trustpilot.com/tp.min.js';
const TRUSTPILOT_INTEGRATION_APP_URL = '//ecommscript-integrationapp.trustpilot.com';
const TRUSTPILOT_WIDGET_SCRIPT_URL = '//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js';
const TRUSTPILOT_PREVIEW_SCRIPT_URL = '//ecommplugins-scripts.trustpilot.com/v2.1/js/preview.js';
const TRUSTPILOT_PREVIEW_CSS_URL = '//ecommplugins-scripts.trustpilot.com/v2.1/css/preview.css';
const TRUSTPILOT_TRUSTBOX_PREVIEW_URL = '//ecommplugins-trustboxpreview.trustpilot.com/v1.0/trustboxpreview.js';
const TRUSTPILOT_PREVIEW_SCRIPT_URL = '//ecommplugins-scripts.trustpilot.com/v2.1/js/preview.min.js';
const TRUSTPILOT_PREVIEW_CSS_URL = '//ecommplugins-scripts.trustpilot.com/v2.1/css/preview.min.css';
const TRUSTPILOT_TRUSTBOX_PREVIEW_URL = '//ecommplugins-trustboxpreview.trustpilot.com/v1.0/trustboxpreview.min.js';
const TRUSTPILOT_IS_FROM_MARKETPLACE = 'false';
const TRUSTPILOT_PRODUCT_ID_PREFIX = 'TRUSTPILOT_SKU_VALUE_';
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "trustpilot/module-reviews",
"description": "The Trustpilot Review extension makes it simple and easy for merchants to collect reviews from their customers to power their marketing efforts, increase sales conversion, build their online reputation and draw business insights.",
"type": "magento2-module",
"version": "2.6.502",
"version": "2.6.519",
"license": [
"OSL-3.0"
],
Expand Down
4 changes: 2 additions & 2 deletions view/adminhtml/layout/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<script src="Trustpilot_Reviews::js/admin.js"/>
<css src="Trustpilot_Reviews::css/trustpilot.css"/>
<script src="Trustpilot_Reviews::js/admin.min.js"/>
<css src="Trustpilot_Reviews::css/trustpilot.min.css"/>
</head>
</page>
3 changes: 3 additions & 0 deletions view/adminhtml/web/css/trustpilot-message.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions view/adminhtml/web/css/trustpilot.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
src:url('../fonts/trustpilot.eot');
src:url('../fonts/trustpilot.eot?#iefix') format('embedded-opentype'),url('../fonts/trustpilot.woff') format('woff'),url('../fonts/trustpilot.ttf') format('truetype'),url('../fonts/trustpilot.svg') format('svg');font-weight:normal;font-style:normal
}

.admin__menu .level-0.item-trustpilot > a::before {
content: '\e900';
font-size: 2.6rem;
Expand All @@ -16,7 +16,7 @@
display:none;
}

@import url('trustpilot-message.css');
@import url('trustpilot-message.min.css');

#row_trustpilotGeneral_general_trustpilot_admin .label {
display: none;
Expand Down
145 changes: 5 additions & 140 deletions view/adminhtml/web/css/trustpilot.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6d7789b

Please sign in to comment.