first commit
28
modules/ps_metrics/views/css/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
BIN
modules/ps_metrics/views/img/google-analytics.png
Normal file
|
After Width: | Height: | Size: 528 KiB |
BIN
modules/ps_metrics/views/img/icon-ps-metrics.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
11
modules/ps_metrics/views/img/index.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
BIN
modules/ps_metrics/views/img/logo-ps-metrics.png
Normal file
|
After Width: | Height: | Size: 208 KiB |
BIN
modules/ps_metrics/views/img/logo.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
modules/ps_metrics/views/img/oh.png
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
modules/ps_metrics/views/img/prestashop-logo.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
modules/ps_metrics/views/img/strong-software.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
modules/ps_metrics/views/img/tipscards.png
Normal file
|
After Width: | Height: | Size: 85 KiB |
BIN
modules/ps_metrics/views/img/why-connect.png
Normal file
|
After Width: | Height: | Size: 68 KiB |
28
modules/ps_metrics/views/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
444
modules/ps_metrics/views/js/app.js
Normal file
430
modules/ps_metrics/views/js/chunk-vendors.js
Normal file
1
modules/ps_metrics/views/js/dashboardActivityOrder.js
Normal file
1
modules/ps_metrics/views/js/dashboardActivityRevenue.js
Normal file
1
modules/ps_metrics/views/js/dashboardActivityVisit.js
Normal file
28
modules/ps_metrics/views/js/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
1
modules/ps_metrics/views/js/settings.js
Normal file
@@ -0,0 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["settings"],{"07df":function(e,t,s){"use strict";s("39cc")},"39cc":function(e,t,s){var r=s("d32a");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=s("499e").default;a("4bde28ee",r,!0,{sourceMap:!1,shadowMode:!1})},"8f07":function(e,t,s){"use strict";s.r(t);var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"settings",attrs:{id:"psmetricsApp"}},[s("Tabs",{attrs:{vertical:e.vertical}},[s("Tab",{attrs:{label:e.$t("general.settings"),to:"/settings/onboarding"}}),s("Tab",{attrs:{label:e.$t("general.help"),to:"/settings/help"}})],1)],1)},a=[],i=s("1c50"),p=s("800d"),n={name:"Home",components:{Tabs:i["a"],Tab:p["a"]},props:{vertical:{type:Boolean,default:!1}}},c=n,o=(s("07df"),s("2877")),d=Object(o["a"])(c,r,a,!1,null,null,null);t["default"]=d.exports},d32a:function(e,t,s){var r=s("24fb");t=r(!1),t.push([e.i,"#psmetricsApp.settings .card-header,#psmetricsApp.settings .card-header .card-header-title{font-weight:600;line-height:24px;line-height:1.5rem}#psmetricsApp.settings .card-header .main-header #header-search-container .input-group:before,#psmetricsApp.settings .card-header .material-icons,#psmetricsApp.settings .card-header .ps-tree-items .tree-name button:before,#psmetricsApp.settings .main-header #header-search-container .card-header .input-group:before,#psmetricsApp.settings .ps-tree-items .tree-name .card-header button:before{color:#6c868e}#psmetricsApp.settings .card-body{padding:2rem}#psmetricsApp.settings .form-group.has-danger:after,#psmetricsApp.settings .form-group.has-success:after,#psmetricsApp.settings .form-group.has-warning:after{right:10px}#psmetricsApp.settings .tab-content.tab-space{padding:.9375rem;background-color:#f1f1f1}",""]),e.exports=t}}]);
|
||||
1
modules/ps_metrics/views/js/settingsHelp.js
Normal file
@@ -0,0 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["settingsHelp"],{"399c":function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"pt-2"},[e("Help",{attrs:{faq:this.$store.state.settings.faq,"readme-url":t.readmeUrl}})],1)},o=[],l=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("b-container",{staticClass:"m-auto p-0"},[s("b-card",{attrs:{"no-body":""},scopedSlots:t._u([{key:"header",fn:function(){return[s("i",{staticClass:"material-icons"},[t._v("help")]),t._v(t._s(t.$t("help.title"))+" ")]},proxy:!0}])},[s("b-card-body",[s("div",{staticClass:"d-flex"},[s("div",{staticClass:"left-block"},[s("div",{staticClass:"module-desc d-flex mb-4"},[s("div",{staticClass:"module-img mr-3"},[s("img",{attrs:{src:e("cf05"),width:"75",height:"75",alt:""}})]),s("div",[s("b",[t._v(t._s(t.$t("help.allowsYouTo.title")))]),s("ul",{staticClass:"mt-3"},[s("li",[t._v(t._s(t.$t("help.allowsYouTo.connect")))]),s("li",[t._v(t._s(t.$t("help.allowsYouTo.collect")))]),s("li",[t._v(t._s(t.$t("help.allowsYouTo.benefit")))])])])]),s("div",{staticClass:"faq"},[s("h1",[t._v(t._s(t.$t("faq.title")))]),s("div",{staticClass:"separator my-3"}),t.faq&&0!=t.faq.categories.length?t._l(t.faq.categories,(function(a,e){return s("v-collapse-group",{key:e,staticClass:"my-3",attrs:{"only-one-active":!0}},[s("h3",{staticClass:"categorie-title"},[t._v(" "+t._s(a.title)+" ")]),t._l(a.blocks,(function(a,o){return s("v-collapse-wrapper",{key:o,ref:e+"_"+o,refInFor:!0},[s("div",{directives:[{name:"collapse-toggle",rawName:"v-collapse-toggle"}],staticClass:"my-3 question"},[s("a",{on:{click:function(e){return e.preventDefault(),t.onTrackQuestion(a.question)}}},[s("i",{staticClass:"material-icons"},[t._v("keyboard_arrow_right")]),t._v(" "+t._s(a.question))])]),s("div",{directives:[{name:"collapse-content",rawName:"v-collapse-content"}],staticClass:"answer",class:"a"+o},[t._v(" "+t._s(a.answer)+" ")])])}))],2)})):[s("b-alert",{attrs:{variant:"warning",show:""}},[s("p",[t._v(t._s(t.$t("faq.noFaq")))])])]],2)]),s("div",{staticClass:"right-block"},[s("div",{staticClass:"doc"},[s("b",{staticClass:"text-muted"},[t._v(t._s(t.$t("help.help.needHelp")))]),s("br"),s("b-button",{staticClass:"mt-3",attrs:{variant:"primary"},on:{click:function(a){return t.onTrackPdf()}}},[t._v(" "+t._s(t.$t("help.help.downloadPdf"))+" ")])],1),s("div",{staticClass:"contact mt-4"},[s("div",[t._v(t._s(t.$t("help.help.couldntFindAnyAnswer")))]),s("div",{staticClass:"mt-2"},[s("b-button",{attrs:{variant:"link"},on:{click:function(a){return t.onTrackMailto()}}},[t._v(" "+t._s(t.$t("help.help.contactUs"))),s("i",{staticClass:"material-icons"},[t._v("arrow_right_alt")])])],1)])])])])],1)],1)},i=[],n={props:["faq","readmeUrl"],methods:{onTrackQuestion:function(t){this.$segment.track("FAQ",{question:t,module:"ps_metrics"})},onTrackMailto:function(){this.$segment.track("mailto",{module:"ps_metrics"}),window.open("mailto:support-metrics@prestashop.com","_blank")},onTrackPdf:function(){this.$segment.track("download user guide",{module:"ps_metrics"}),window.open(this.readmeUrl,"_blank")}}},c=n,r=(e("c03b"),e("2877")),d=Object(r["a"])(c,l,i,!1,null,"8a21f91c",null),p=d.exports,u={components:{Help:p},computed:{readmeUrl:function(){return this.$store.state.app.readmeUrl}}},f=u,v=Object(r["a"])(f,s,o,!1,null,null,null);a["default"]=v.exports},b51a:function(t,a,e){var s=e("24fb");a=s(!1),a.push([t.i,".separator[data-v-8a21f91c]{height:1px;opacity:.2;background:#6b868f;border-bottom:2px solid #6b868f}.left-block[data-v-8a21f91c]{flex-grow:1}.right-block[data-v-8a21f91c]{padding:15px;min-width:350px;text-align:center}.doc[data-v-8a21f91c]{padding:20px}.answer[data-v-8a21f91c],.doc[data-v-8a21f91c]{background-color:#f7f7f7}.answer[data-v-8a21f91c]{margin:0 15px 10px 15px;padding:15px}.icon-expand[data-v-8a21f91c]{transform:rotate(90deg);transition:all .3s}.v-collapse-content[data-v-8a21f91c]{display:none}.v-collapse-content-end[data-v-8a21f91c]{display:block}",""]),t.exports=a},c03b:function(t,a,e){"use strict";e("fdb2")},cf05:function(t,a,e){t.exports=e.p+"img/logo.png"},fdb2:function(t,a,e){var s=e("b51a");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var o=e("499e").default;o("0111e392",s,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
||||
1
modules/ps_metrics/views/js/settingsOnBoarding.js
Normal file
33
modules/ps_metrics/views/templates/admin/app.tpl
Normal file
@@ -0,0 +1,33 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
|
||||
*}
|
||||
|
||||
<link href="{$pathVendor|escape:'htmlall':'UTF-8'}" rel=preload as=script>
|
||||
<link href="{$pathApp|escape:'htmlall':'UTF-8'}" rel=preload as=script>
|
||||
|
||||
<div id="app"></div>
|
||||
|
||||
<script src="{$pathVendor|escape:'htmlall':'UTF-8'}"></script>
|
||||
<script src="{$pathApp|escape:'htmlall':'UTF-8'}"></script>
|
||||
|
||||
<style>
|
||||
/** Hide native multistore module activation panel, because of visual regressions on non-bootstrap content */
|
||||
#content.nobootstrap div.bootstrap.panel {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
28
modules/ps_metrics/views/templates/admin/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,26 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
|
||||
*}
|
||||
|
||||
<link href="{$pathVendor|escape:'htmlall':'UTF-8'}" rel=preload as=script>
|
||||
<link href="{$pathApp|escape:'htmlall':'UTF-8'}" rel=preload as=script>
|
||||
|
||||
<div id="app"></div>
|
||||
|
||||
<script src="{$pathVendor|escape:'htmlall':'UTF-8'}"></script>
|
||||
<script src="{$pathApp|escape:'htmlall':'UTF-8'}"></script>
|
||||
28
modules/ps_metrics/views/templates/hook/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
28
modules/ps_metrics/views/templates/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||