first commit

This commit is contained in:
2024-10-28 22:14:22 +01:00
commit b65352c452
40581 changed files with 5712079 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
drwxr-xr-x 4 30094 users 5 Oct 6 10:16 .
drwxr-xr-x 8 30094 users 9 Oct 6 10:16 ..
drwxr-xr-x 2 30094 users 10 Oct 6 10:16 admin
drwxr-xr-x 2 30094 users 4 Oct 6 10:16 backoffice
-rw-r--r-- 1 30094 users 1127 Apr 5 2022 index.php

View File

@@ -0,0 +1,10 @@
drwxr-xr-x 2 30094 users 10 Oct 6 10:16 .
drwxr-xr-x 4 30094 users 5 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 988 Oct 14 2021 accessDenied.tpl
-rw-r--r-- 1 30094 users 989 Oct 14 2021 alreadyOnboarded.tpl
-rw-r--r-- 1 30094 users 1488 Apr 5 2022 app.tpl
-rw-r--r-- 1 30094 users 988 Oct 14 2021 configure.tpl
-rw-r--r-- 1 30094 users 2467 Apr 5 2022 debug.tpl
-rw-r--r-- 1 30094 users 988 Oct 14 2021 error.tpl
-rw-r--r-- 1 30094 users 1127 Apr 5 2022 index.php
-rw-r--r-- 1 30094 users 988 Oct 14 2021 onboardingFinished.tpl

View 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>

View File

@@ -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>

View File

@@ -0,0 +1,36 @@
{**
* 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>
<link href="{$urlAccountsCdn|escape:'htmlall':'UTF-8'}" rel=preload as=script>
<div id="app"></div>
<script src="{$urlAccountsCdn|escape:'htmlall':'UTF-8'}" type="text/javascript" defer></script>
<script src="{$pathVendor|escape:'htmlall':'UTF-8'}" defer></script>
<script src="{$pathApp|escape:'htmlall':'UTF-8'}" defer></script>
<style>
/** Hide native multistore module activation panel, because of visual regressions on non-bootstrap content */
#content.nobootstrap div.bootstrap.panel {
display: none;
}
</style>

View 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>

View File

@@ -0,0 +1,75 @@
{**
* 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>
<li>Shop Linked : {if $config.isShopLinked}YES{else}NO{/if}</li>
</ul>
<div>
<button onclick="callAction('unlinkShop', 'The shop has been successfully unlinked.')">Unlink shop</button>
<button onclick="callAction('resetLinkAccount', 'Link account data has been cleared.')">Clear link account data</button>
</div>
<div id="action-message"></div>
</div>
<script>
/**
*
* @param action unlinkShop | resetLinkAccount
*/
adminAjaxCall = async (action) => {
return new Promise((resolve, reject) => {
$.ajax({
type: 'POST',
url: '{$config.adminAjaxUrl}&action=' + action,
dataType: 'json',
success: (data) => resolve(data),
error: (xhr) => reject(xhr),
});
});
}
function callAction(action, successMessage='Action succeeded !') {
$('#action-message').html('Processing request...');
adminAjaxCall(action)
.then(() => {
$('#action-message').html(successMessage);
})
.catch((xhr) => {
$('#action-message').html('An error occurred : ' + xhr.status + ' : ' + xhr.statusText);
});
}
</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>

View 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>

View 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;

View 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>

View File

@@ -0,0 +1,4 @@
drwxr-xr-x 2 30094 users 4 Oct 6 10:16 .
drwxr-xr-x 4 30094 users 5 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 313 Apr 5 2022 delete_url_warning.twig
-rw-r--r-- 1 30094 users 326 Apr 5 2022 update_url_warning.twig

View File

@@ -0,0 +1,9 @@
<div class="row">
<div class="col-sm">
<div class="alert alert-warning" role="alert">
<div class="alert-text">
{{ 'Some shops are linked to your PrestaShop account. Delete these shops will impact your live settings.'|trans({}, 'Modules.ps_accounts') }}
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,9 @@
<div class="row">
<div class="col-sm">
<div class="alert alert-warning" role="alert">
<div class="alert-text">
{{ 'This shop is linked to your PrestaShop account. Unlink your shop if you do not want to impact your live settings.'|trans({}, 'Modules.ps_accounts') }}
</div>
</div>
</div>
</div>

View 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;