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
9 changed files
with
191 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@use "../variables" as *; | ||
|
||
$e: ".content"; | ||
|
||
#{$ua-id} { | ||
#{$e} { | ||
&__container { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 2rem; | ||
} | ||
|
||
&__section { | ||
font-size: 1rem; | ||
|
||
.h3 { | ||
/* stylelint-disable */ | ||
margin: 0 !important; | ||
margin-block-end: 1rem !important; | ||
border: none !important; | ||
background-color: transparent !important; | ||
/* stylelint-enable */ | ||
} | ||
} | ||
} | ||
} |
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,65 @@ | ||
/** | ||
* 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 PostUpdateChecklistLayout from "../../../views/templates/layouts/post-update-checklist.html.twig"; | ||
import Stepper from "../components/Stepper.stories"; | ||
|
||
export default { | ||
title: "Layouts/Pages/Post update checklist", // Title for the Storybook category | ||
component: PostUpdateChecklistLayout, // Default component | ||
args: { | ||
psBaseUri: "/", | ||
upToDate: true, | ||
noLocalArchive: true, | ||
currentPrestashopVersion: "8.1.6", | ||
currentPhpVersion: "8.1", | ||
...Stepper.args, | ||
steps: [ | ||
{ | ||
state: "done", | ||
title: "Version choice", | ||
}, | ||
{ | ||
state: "done", | ||
title: "Update options", | ||
}, | ||
{ | ||
state: "done", | ||
title: "Backup", | ||
}, | ||
{ | ||
state: "done", | ||
title: "Update", | ||
}, | ||
{ | ||
state: "current", | ||
title: "Post-update", | ||
}, | ||
], | ||
}, | ||
}; | ||
|
||
// Default story for PageLayout | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{% extends '@ModuleAutoUpgrade/layouts/page.html.twig' %} | ||
|
||
{% block page_class %}post-update-checklist-page{% endblock %} | ||
|
||
{% block title %} | ||
<h1>{{ 'Post-update checklist'|trans({}) }}</h1> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="content__container"> | ||
{% include '@ModuleAutoUpgrade/components/alert.html.twig' with { | ||
title: "Your store is up to date", | ||
message: "Before continuing with your tasks, please review the following checklist to ensure smooth operation after recent updates.", | ||
alertStatus: "success", | ||
buttonLabel: "", | ||
buttonUrl: "", | ||
} %} | ||
|
||
<div class="content__section"> | ||
<h3 class="h3">{{ 'Next steps'|trans({}) }}</h3> | ||
|
||
<ul> | ||
<li>{{ '<b>Open the developer documentation</b> to keep this checklist at-hand.'|trans({})|raw }}</li> | ||
<li>{{ '<b>Re-enable and check your modules</b> one by one to prevent any compatibility issue.'|trans({})|raw }}</li> | ||
<li>{{ '<b>Make sure your store’s front office is working properly:</b> try to create an account, place an order, add a product, etc.'|trans({})|raw }}</li> | ||
<li>{{ '<b>Disable the maintenance mode</b> in General settings > Maintenance.'|trans({})|raw }}</li> | ||
</ul> | ||
</div> | ||
|
||
<div class="content__section"> | ||
<h3 class="h3">{{ 'Troubleshooting'|trans({}) }}</h3> | ||
|
||
<ul> | ||
<li>{{ 'If some images don’t appear in the front office, try regenerating thumbnails in Preferences > Images.'|trans({}) }}</li> | ||
<li>{{ 'If something\'s wrong, you can restore a backup with this module. Your backup is available at {admin}/autoupgrade/backup.'|trans({}) }}</li> | ||
<li>{{ 'If you can\'t access your back office, try enabling the debug mode manually in config/defines.inc.php by setting _PS_MODE_DEV_ to true.'|trans({}) }}</li> | ||
</ul> | ||
</div> | ||
|
||
<div class="content__section"> | ||
<a class="link" href="#"> | ||
{{ 'Download update logs'|trans({}) }} <i class="material-icons">file_upload</i> | ||
</a> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block buttons_inner %} | ||
<button class="btn btn-lg btn-default" type="button"> | ||
<i class="material-icons"> | ||
exit_to_app | ||
</i> | ||
{{ 'Exit'|trans({}) }} | ||
</button> | ||
|
||
<button class="btn btn-lg btn-primary" type="button"> | ||
<i class="material-icons"> | ||
launch | ||
</i> | ||
{{ 'Open developer documentation'|trans({}) }} | ||
</button> | ||
{% endblock %} |
Oops, something went wrong.