first commit
This commit is contained in:
18
modules/ps_accounts/views/css/general.css
Normal file
18
modules/ps_accounts/views/css/general.css
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
28
modules/ps_accounts/views/css/index.php
Normal file
28
modules/ps_accounts/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;
|
||||
28
modules/ps_accounts/views/img/index.php
Normal file
28
modules/ps_accounts/views/img/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_accounts/views/img/prestashop-logo.png
Normal file
BIN
modules/ps_accounts/views/img/prestashop-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.6 KiB |
28
modules/ps_accounts/views/index.php
Normal file
28
modules/ps_accounts/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;
|
||||
296
modules/ps_accounts/views/js/app.js
Normal file
296
modules/ps_accounts/views/js/app.js
Normal file
File diff suppressed because one or more lines are too long
126
modules/ps_accounts/views/js/chunk-vendors.js
Normal file
126
modules/ps_accounts/views/js/chunk-vendors.js
Normal file
File diff suppressed because one or more lines are too long
18
modules/ps_accounts/views/js/general.js
Normal file
18
modules/ps_accounts/views/js/general.js
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
20
modules/ps_accounts/views/js/index.js
Normal file
20
modules/ps_accounts/views/js/index.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
(function(n){function t(t){for(var o,c,i=t[0],u=t[1],l=t[2],d=0,p=[];d<i.length;d++)c=i[d],Object.prototype.hasOwnProperty.call(r,c)&&r[c]&&p.push(r[c][0]),r[c]=0;for(o in u)Object.prototype.hasOwnProperty.call(u,o)&&(n[o]=u[o]);s&&s(t);while(p.length)p.shift()();return a.push.apply(a,l||[]),e()}function e(){for(var n,t=0;t<a.length;t++){for(var e=a[t],o=!0,i=1;i<e.length;i++){var u=e[i];0!==r[u]&&(o=!1)}o&&(a.splice(t--,1),n=c(c.s=e[0]))}return n}var o={},r={index:0},a=[];function c(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,c),e.l=!0,e.exports}c.m=n,c.c=o,c.d=function(n,t,e){c.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},c.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},c.t=function(n,t){if(1&t&&(n=c(n)),8&t)return n;if(4&t&&"object"===typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(c.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var o in n)c.d(e,o,function(t){return n[t]}.bind(null,o));return e},c.n=function(n){var t=n&&n.__esModule?function(){return n["default"]}:function(){return n};return c.d(t,"a",t),t},c.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},c.p="";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],u=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var s=u;a.push([0,"chunk-vendors"]),e()})({0:function(n,t,e){n.exports=e("6cfb")},"6cfb":function(n,t,e){"use strict";e.r(t);e("e260"),e("e6cf"),e("cca6"),e("a79d");var o=e("2b0e"),r=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"app-container"},[n._m(0),e("div",{staticClass:"app-body"},[n.loaded?e("div",[e("p",{domProps:{innerHTML:n._s(n.fact)}})]):e("div",[e("p",[n._v(" loaded ")])])]),e("div",{staticClass:"app-footer"},[e("ps_account",{attrs:{buttonText:"valider"}})],1)])},a=[function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"app-header"},[e("h2",[n._v("ps account")])])}],c=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"ps_account text-center"},[e("button",{staticClass:"btn btn-primary",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),n.connectSSO()}}},[n._v(" "+n._s(n.buttonText)+" ")])])},i=[],u={name:"PsAccount",props:{buttonText:String},methods:{connectSSO:function(){window.open(this.$parent.sso_url,"_blank")}}},l=u,s=(e("c9df"),e("2877")),d=Object(s["a"])(l,c,i,!1,null,"2a745a2c",null),p=d.exports,f=e("bc3a"),h=e.n(f),v=e("2ef0");function _(n){var t=new FormData;return t.append("ajax",!0),t.append("action",n.action),t.append("controller",n.controller),Object(v["forEach"])(n.data,(function(n,e){t.append(e,n)})),h.a.post(ajax_controller_url,t).then((function(n){return n.data})).catch((function(n){console.log(n)}))}var b={name:"app",components:{ps_account:p},data:function(){return{fact:null,api_url:null,sso_url:null,loaded:!1,ready:{loading:!1}}},coed:{},watch:{ready:{deep:!0,handler:"isFullLoaded"}},methods:{showChunk:function(n){this.fact=n.value},ajaxProcessStandAliveUserConnexion:function(){var n=this;_({action:"StandAliveUserConnexion",controller:"AdminAjaxPsAccounts"}).then((function(t){console.log(t.data),!1!==t&&0!=t.state&&n.showChunk(t)})).catch((function(n){console.log(n)}))},loadingCompleted:function(){this.ready.loading=!0},isFullLoaded:function(){this.ready.loading&&(this.loaded=!0)}},created:function(){this.sso_url=Object({NODE_ENV:"production",BASE_URL:""}).VUE_APP_SSO_URL,this.api_url=Object({NODE_ENV:"production",BASE_URL:""}).VUE_APP_API_URL,window.setTimeout(this.loadingCompleted,2e3)},mounted:function(){var n=this;this.ajaxProcessStandAliveUserConnexion(),window.setInterval((function(){n.ajaxProcessStandAliveUserConnexion()}),5e3)}},m=b,x=(e("a59f"),Object(s["a"])(m,r,a,!1,null,null,null)),y=x.exports,g=e("5f5b");e("f9e3"),e("2dd8");o["default"].use(g["a"]),o["default"].config.productionTip=!1,new o["default"]({render:function(n){return n(y)}}).$mount("#app")},"8ce0":function(n,t,e){},a59f:function(n,t,e){"use strict";var o=e("cdc5"),r=e.n(o);r.a},c9df:function(n,t,e){"use strict";var o=e("8ce0"),r=e.n(o);r.a},cdc5:function(n,t,e){}});
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
modules/ps_accounts/views/js/index.js.map
Normal file
1
modules/ps_accounts/views/js/index.js.map
Normal file
File diff suppressed because one or more lines are too long
28
modules/ps_accounts/views/js/index.php
Normal file
28
modules/ps_accounts/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_accounts/views/js/settings.js
Normal file
1
modules/ps_accounts/views/js/settings.js
Normal file
File diff suppressed because one or more lines are too long
1
modules/ps_accounts/views/js/settingsOnBoarding.js
Normal file
1
modules/ps_accounts/views/js/settingsOnBoarding.js
Normal file
@@ -0,0 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["settingsOnBoarding"],{"036b":function(t,n,o){var i=o("24fb");n=i(!1),n.push([t.i,"section[data-v-c01c0900]{margin-bottom:35px}",""]),t.exports=n},"0e0f":function(t,n,o){"use strict";o("8564")},"0ff7":function(t,n,o){"use strict";o.r(n);var i=function(){var t=this,n=t.$createElement,o=t._self._c||n;return o("div",{staticClass:"pt-5"},[o("section",[o("ConfigInformation",{attrs:{app:t.app}})],1),o("section",[o("div",{staticClass:"m-auto p-0 container"},[o("PsAccounts",{attrs:{"force-show-plans":!0}})],1)])])},e=[],s=(o("b64b"),o("5530")),c=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("b-container",{staticClass:"m-auto p-0",attrs:{id:"config-information"}},[i("div",{staticClass:"d-flex"},[i("b-col",{staticClass:"p-16 m-auto text-center",attrs:{sm:"4",md:"4",lg:"4"}},[i("img",{attrs:{src:o("3875"),width:"300"}})]),i("b-col",{staticClass:"p-4",attrs:{sm:"8",md:"8",lg:"8"}},[i("h1",[t._v(t._s(t.$t("configure.incentivePanel.title")))]),i("section",["settings"===t.app?i("div",[i("h2",[t._v(t._s(t.$t("configure.incentivePanel.howTo")))]),i("p",[t._v(" "+t._s(t.$t("configure.incentivePanel.createPsAccount"))+" ")]),i("p",[t._v(" "+t._s(t.$t("configure.incentivePanel.linkPsAccount"))+" ")])]):t._e()])])],1)])},a=[],r={name:"ConfigInformation",props:["app","configurationPage"],methods:{startSetup:function(){window.open(this.configurationPage)}}},f=r,p=(o("17b4"),o("2877")),l=Object(p["a"])(f,c,a,!1,null,null,null),u=l.exports,g=o("a85d"),d=o("cebc"),m={components:{PsAccounts:g["PsAccounts"],ConfigInformation:u},methods:Object(s["a"])({},Object(d["c"])({getListProperty:"getListProperty"})),data:function(){return{loading:!0,unwatch:""}},created:function(){var t=this;this.googleLinked&&(this.loading=!0,this.getListProperty()),this.unwatch=this.$store.watch((function(t,n){return{googleLinked:t.settings.googleLinked,countProperty:t.settings.countProperty,listProperty:t.settings.state.listPropertySuccess}}),(function(n){n.googleLinked&&Object.keys(n.listProperty).length<n.countProperty&&t.getListProperty(),Object.keys(n.listProperty).length>=n.countProperty&&(t.loading=!1)}),{immediate:!0})},beforeDestroy:function(){this.unwatch()},computed:{app:function(){return this.$store.state.app.app},connectedAccount:function(){return this.$store.state.settings.connectedAccount}}},h=m,b=(o("0e0f"),Object(p["a"])(h,i,e,!1,null,"c01c0900",null));n["default"]=b.exports},"17b4":function(t,n,o){"use strict";o("cfb7")},3875:function(t,n,o){t.exports=o.p+"img/prestashop-logo.png"},8564:function(t,n,o){var i=o("036b");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var e=o("499e").default;e("fad89efa",i,!0,{sourceMap:!1,shadowMode:!1})},"98b9":function(t,n,o){var i=o("24fb");n=i(!1),n.push([t.i,"#config-information{background-color:#fff}#config-information h1{font-size:18px}#config-information h2{font-size:16px}#config-information img{max-width:100%}#config-information .material-icons{color:#4cbb6c}#config-information section{margin-left:30px}#config-information section ul{padding-left:15px;color:#6c868e}#config-information section ul li{padding-left:10px;line-height:26px}#config-information section .dashboard-app{text-align:center}#config-information section .dashboard-app .btn-primary{color:#fff!important}",""]),t.exports=n},cfb7:function(t,n,o){var i=o("98b9");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var e=o("499e").default;e("021252a4",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
||||
23
modules/ps_accounts/views/templates/admin/accessDenied.tpl
Normal file
23
modules/ps_accounts/views/templates/admin/accessDenied.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
{**
|
||||
* 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="{$pathApp|escape:'htmlall':'UTF-8'}" rel=preload as=script>
|
||||
|
||||
<div id="psaccounts"></div>
|
||||
|
||||
<script src="{$pathApp|escape:'htmlall':'UTF-8'}"></script>
|
||||
@@ -0,0 +1,24 @@
|
||||
{**
|
||||
* 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="{$pathApp|escape:'htmlall':'UTF-8'}" rel=preload as=script>
|
||||
|
||||
<div id="psaccounts"></div>
|
||||
|
||||
<script src="{$pathApp|escape:'htmlall':'UTF-8'}"></script>
|
||||
|
||||
34
modules/ps_accounts/views/templates/admin/app.tpl
Normal file
34
modules/ps_accounts/views/templates/admin/app.tpl
Normal file
@@ -0,0 +1,34 @@
|
||||
{**
|
||||
* 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>
|
||||
|
||||
23
modules/ps_accounts/views/templates/admin/configure.tpl
Normal file
23
modules/ps_accounts/views/templates/admin/configure.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
{**
|
||||
* 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="{$pathApp|escape:'htmlall':'UTF-8'}" rel=preload as=script>
|
||||
|
||||
<div id="psaccounts"></div>
|
||||
|
||||
<script src="{$pathApp|escape:'htmlall':'UTF-8'}"></script>
|
||||
66
modules/ps_accounts/views/templates/admin/debug.tpl
Normal file
66
modules/ps_accounts/views/templates/admin/debug.tpl
Normal file
@@ -0,0 +1,66 @@
|
||||
{**
|
||||
* 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
|
||||
*}
|
||||
<div id="psaccounts">
|
||||
<h2>Shop & module information</h2>
|
||||
<ul>
|
||||
<li>Shop ID : {$config.shopId}</li>
|
||||
<li>Module version : {$config.moduleVersion}</li>
|
||||
<li>Prestashop version : {$config.psVersion}</li>
|
||||
<li>PHP version : {$config.phpVersion}</li>
|
||||
<li>Shop UID : {$config.shopUuidV4}</li>
|
||||
<li>Firebase email : {$config.firebase_email}</li>
|
||||
<li>Is Firebase email verified : {$config.firebase_email_is_verified}</li>
|
||||
<li>Firebase ID token : {$config.firebase_id_token}</li>
|
||||
<li>Firebase refresh token : {$config.firebase_refresh_token}</li>
|
||||
</ul>
|
||||
<div class="unlink-shop">
|
||||
{if $config.isShopLinked}
|
||||
<button onclick="unlinkShop()">Unlink shop</button>
|
||||
{else}
|
||||
<div>This shop is not linked</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="unlink-message"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function unlinkShop()
|
||||
{
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '{$config.unlinkShopUrl}',
|
||||
dataType: 'json',
|
||||
success: function (response) {
|
||||
$('.unlink-message').html('The shop (with uid : ' + response.uid + ') has been successfully unlinked.');
|
||||
$('.unlink-shop').hide();
|
||||
},
|
||||
error: function (response) {
|
||||
$('.unlink-message').html(response.error + '. The response code is :' + response.statusCode);
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/** Hide native multistore module activation panel, because of visual regressions on non-bootstrap content */
|
||||
#psaccounts ul li {
|
||||
word-break: break-all;
|
||||
margin: 5px 0px;
|
||||
}
|
||||
</style>
|
||||
23
modules/ps_accounts/views/templates/admin/error.tpl
Normal file
23
modules/ps_accounts/views/templates/admin/error.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
{**
|
||||
* 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="{$pathApp|escape:'htmlall':'UTF-8'}" rel=preload as=script>
|
||||
|
||||
<div id="psaccounts"></div>
|
||||
|
||||
<script src="{$pathApp|escape:'htmlall':'UTF-8'}"></script>
|
||||
28
modules/ps_accounts/views/templates/admin/index.php
Normal file
28
modules/ps_accounts/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,23 @@
|
||||
{**
|
||||
* 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="{$pathApp|escape:'htmlall':'UTF-8'}" rel=preload as=script>
|
||||
|
||||
<div id="psaccounts"></div>
|
||||
|
||||
<script src="{$pathApp|escape:'htmlall':'UTF-8'}"></script>
|
||||
28
modules/ps_accounts/views/templates/index.php
Normal file
28
modules/ps_accounts/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;
|
||||
Reference in New Issue
Block a user