forked from PrestaShop/autoupgrade
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
142 additions
and
12 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@use "../variables" as *; | ||
|
||
$e: ".backup-page"; | ||
|
||
#{$ua-id} { | ||
#{$e} { | ||
&__container { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 2rem; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@use "backup"; | ||
@use "layout"; | ||
@use "page"; | ||
@use "version-choice"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* 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 3.0 (AFL-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 [email protected] so we can send you a copy immediately. | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer | ||
* versions in the future. If you wish to customize PrestaShop for your | ||
* needs please refer to https://devdocs.prestashop.com/ for more information. | ||
* | ||
* @author PrestaShop SA and Contributors <[email protected]> | ||
* @copyright Since 2007 PrestaShop SA and Contributors | ||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) | ||
*/ | ||
|
||
import BackupLayout from "../../../views/templates/layouts/backup.html.twig"; | ||
|
||
export default { | ||
component: BackupLayout, | ||
title: "Layouts/Pages/Backup", | ||
args: { | ||
steps: [ | ||
{ | ||
state: "current", | ||
title: "Backup selection", | ||
}, | ||
{ | ||
state: "normal", | ||
title: "Restore", | ||
}, | ||
{ | ||
state: "normal", | ||
title: "Post-restore", | ||
}, | ||
], | ||
}, | ||
}; | ||
|
||
export const Default = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{% extends '@ModuleAutoUpgrade/layouts/page.html.twig' %} | ||
|
||
{% block page_class %}backup-page{% endblock %} | ||
|
||
{% block title %} | ||
<h1>{{ 'Back up your store'|trans({}) }}</h1> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="backup-page__container"> | ||
<div class="backup-page__section"> | ||
<p>{{ 'Backing up your store\'s files, database, and images means you can restore to a previous version if something goes wrong during the update. This keeps your data safe and ensures your business stays up and running.'|trans({}) }}</p> | ||
</div> | ||
|
||
<div class="backup-page__section"> | ||
{% include '@ModuleAutoUpgrade/components/render-bool.html.twig' with { | ||
field: { | ||
id: "backup_files_db", | ||
title: "Back up files and database", | ||
desc: "", | ||
js: { | ||
on: 'onclick="enableFeature()"', | ||
off: 'onclick="disableFeature()"', | ||
}, | ||
type: 'bool', | ||
required: true, | ||
disabled: true, | ||
}, | ||
key: "PS_AUTOUP_BACKUP_FILES_DB", | ||
val: true, | ||
} %} | ||
|
||
{% include '@ModuleAutoUpgrade/components/render-bool.html.twig' with { | ||
field: { | ||
id: "backup_files_db", | ||
title: "Include images", | ||
desc: "", | ||
js: { | ||
on: 'onclick="enableFeature()"', | ||
off: 'onclick="disableFeature()"', | ||
}, | ||
type: 'bool', | ||
required: true, | ||
disabled: true, | ||
}, | ||
key: "PS_AUTOUP_BACKUP_WITH_IMAGES", | ||
val: false, | ||
} %} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block buttons_inner %} | ||
<button class="btn btn-lg btn-primary" type="button"> | ||
{{ 'Launch backup'|trans({}) }} | ||
</button> | ||
{% endblock %} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters