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
180 additions
and
6 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 was deleted.
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,2 @@ | ||
@use "layout"; | ||
@use "welcome"; |
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,17 @@ | ||
@use "../variables" as *; | ||
|
||
$e: "#ua"; | ||
|
||
#{$e} { | ||
&__main { | ||
display: grid; | ||
gap: 2rem; | ||
} | ||
|
||
&__container { | ||
display: grid; | ||
gap: 2rem; | ||
padding: 4rem; | ||
background-color: var(--#{$ua-prefix}white); | ||
} | ||
} |
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,9 @@ | ||
@use "../variables" as *; | ||
|
||
$e: ".welcome-page"; | ||
|
||
#{$ua-id} { | ||
#{$e} { | ||
|
||
} | ||
} |
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,5 +1,5 @@ | ||
@use "components"; | ||
@use "layout"; | ||
@use "layouts"; | ||
|
||
.upgradestep { | ||
padding-right: 5px; | ||
|
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,38 @@ | ||
/** | ||
* 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 PageLayout from "../../../views/templates/layouts/page.html.twig"; | ||
import Stepper from "../components/Stepper.stories"; | ||
|
||
export default { | ||
title: "Layouts/Pages/Base", // Title for the Storybook category | ||
component: PageLayout, // Default component | ||
args: { | ||
...Stepper.args, // Default args spread from Stepper if needed | ||
}, | ||
}; | ||
|
||
// 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* 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 WelcomeLayout from "../../../views/templates/layouts/welcome.html.twig"; | ||
import RadioCard from "../components/RadioCard.stories"; | ||
|
||
export default { | ||
title: "Layouts/Pages/Welcome", // Title for the Storybook category | ||
component: WelcomeLayout, // Default component | ||
args: { | ||
...RadioCard.args, | ||
}, | ||
}; | ||
|
||
// 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
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,33 @@ | ||
{% block update_assistant %} | ||
<div id="ua__main"> | ||
{% block stepper %} | ||
<div id="ua__stepper"> | ||
{% include '@ModuleAutoUpgrade/components/stepper.html.twig' %} | ||
</div> | ||
{% endblock %} | ||
|
||
{% block container %} | ||
<div id="ua__container" class="{% block page_class %}default-page{% endblock %}"> | ||
{% block container_inner %} | ||
<div class="page__title"> | ||
{% block title %} | ||
{# Default title or leave empty for child templates to provide #} | ||
{% endblock %} | ||
</div> | ||
|
||
<div class="page__content"> | ||
{% block content %} | ||
{# Default content or leave empty for child templates to provide #} | ||
{% endblock %} | ||
</div> | ||
|
||
<div class="page__buttons"> | ||
{% block buttons %} | ||
{# Default buttons or leave empty for child templates to provide #} | ||
{% endblock %} | ||
</div> | ||
{% endblock %} | ||
</div> | ||
{% endblock %} | ||
</div> | ||
{% endblock %} |
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,33 @@ | ||
{% extends '@ModuleAutoUpgrade/layouts/page.html.twig' %} | ||
|
||
{% block stepper %}{% endblock %} | ||
|
||
{% block page_class %}welcome-page{% endblock %} | ||
|
||
{% block title %} | ||
<h1>Welcome to PrestaShop Update Assistant</h1> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
{% include '@ModuleAutoUpgrade/components/radio-card.html.twig' with { | ||
checked: true, | ||
title: "Update your store", | ||
message: "Update your store to benefit from the latest improvements, bug fixes and security patches.", | ||
badgeLabel: "", | ||
releaseNote: "", | ||
} %} | ||
{% include '@ModuleAutoUpgrade/components/radio-card.html.twig' with { | ||
checked: true, | ||
title: "Restore from a backup", | ||
message: "Use this feature if the update failed or if your store or a module is no longer working properly.", | ||
disabled: true, | ||
badgeLabel: "", | ||
releaseNote: "", | ||
} %} | ||
{% endblock %} | ||
|
||
{% block buttons %} | ||
<button class="btn btn-lg btn-primary" type="button"> | ||
Get Started | ||
</button> | ||
{% endblock %} |