Skip to content

Commit

Permalink
Merge pull request #3333 from reactioncommerce/release-1.5.9
Browse files Browse the repository at this point in the history
Release 1.5.9
  • Loading branch information
spencern authored Nov 21, 2017
2 parents efe64c6 + 83b7b04 commit 7f0899f
Show file tree
Hide file tree
Showing 58 changed files with 595 additions and 413 deletions.
14 changes: 0 additions & 14 deletions client/templates/layout.html

This file was deleted.

11 changes: 0 additions & 11 deletions client/templates/layout.js

This file was deleted.

5 changes: 3 additions & 2 deletions imports/plugins/core/accounts/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ Reaction.registerPackage({
route: "/dashboard/account/settings",
container: "accounts",
workflow: "coreAccountsWorkflow",
template: "accountsSettings"
template: "accountsSettings",
showForShopTypes: ["primary"]
}, {
route: "/dashboard/accounts",
name: "dashboard/accounts",
Expand All @@ -57,7 +58,7 @@ Reaction.registerPackage({
enabled: true,
structure: {
template: "accountsDashboard",
layoutHeader: "layoutHeader",
layoutHeader: "NavBar",
layoutFooter: "",
notFound: "notFound",
dashboardHeader: "dashboardHeader",
Expand Down
1 change: 0 additions & 1 deletion imports/plugins/core/checkout/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import "./templates/cartIcon/cartIcon.js";
import "./templates/checkout/addressBook/addressBook.html";
import "./templates/checkout/completed/completed.html";
import "./templates/checkout/completed/completed.js";
import "./templates/checkout/header/header.html";
import "./templates/checkout/login/login.html";
import "./templates/checkout/login/login.js";
import "./templates/checkout/progressBar/progressBar.html";
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion imports/plugins/core/checkout/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Reaction.registerPackage({
enabled: true,
structure: {
template: "cartCheckout",
layoutHeader: "checkoutHeader",
layoutHeader: "NavBarCheckout",
layoutFooter: "",
notFound: "notFound",
dashboardHeader: "",
Expand Down
2 changes: 1 addition & 1 deletion imports/plugins/core/dashboard/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Reaction.registerPackage({
enabled: true,
structure: {
template: "dashboardPackages",
layoutHeader: "layoutHeader",
layoutHeader: "NavBar",
layoutFooter: "",
notFound: "notFound",
dashboardHeader: "dashboardHeader",
Expand Down
2 changes: 1 addition & 1 deletion imports/plugins/core/email/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Reaction.registerPackage({
enabled: true,
structure: {
template: "email",
layoutHeader: "layoutHeader",
layoutHeader: "NavBar",
layoutFooter: "",
notFound: "notFound",
dashboardHeader: "dashboardHeader",
Expand Down
19 changes: 10 additions & 9 deletions imports/plugins/core/layout/client/components/coreLayout.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
import React from "react";
import PropTypes from "prop-types";
import classnames from "classnames";
import { Components, registerComponent } from "@reactioncommerce/reaction-components";
import { getComponent, registerComponent } from "@reactioncommerce/reaction-components";
import Blaze from "meteor/gadicc:blaze-react-component";
import { Template } from "meteor/templating";

const CoreLayout = ({ actionViewIsOpen, structure }) => {
const { layoutFooter, template } = structure || {};
const { layoutHeader, layoutFooter, template } = structure || {};

const pageClassName = classnames({
"page": true,
"show-settings": actionViewIsOpen
});

const headerComponent = layoutHeader && getComponent(layoutHeader);
const footerComponent = layoutFooter && getComponent(layoutFooter);

return (
<div className={pageClassName} id="reactionAppContainer">
<Components.NavBar />

{headerComponent && React.createElement(headerComponent, {})}

<Blaze template="cartDrawer" className="reaction-cart-drawer" />

{ Template[template] &&
{Template[template] &&
<main>
<Blaze template={template} />
</main>
}
</main>}

{ Template[layoutFooter] &&
<Blaze template={layoutFooter} className="reaction-navigation-footer footer-default" />
}
{footerComponent && React.createElement(footerComponent, {})}
</div>
);
};
Expand Down
17 changes: 17 additions & 0 deletions imports/plugins/core/layout/client/components/footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";
import { registerComponent } from "/imports/plugins/core/components/lib";

const Footer = () => (
<div className="reaction-navigation-footer footer-default">
<nav className="navbar-bottom" role="navigation">
<div className="row">
{/* Footer content */}
</div>
</nav>
</div>
);


registerComponent("Footer", Footer);

export default Footer;
7 changes: 2 additions & 5 deletions imports/plugins/core/layout/client/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import "./templates/layout/admin/admin.html";
import "./templates/layout/admin/admin.js";
import "./templates/layout/alerts/alerts.html";
import "./templates/layout/alerts/alerts.js";
import "./templates/layout/alerts/inlineAlerts.js";
import "./templates/layout/alerts/reactionAlerts.js";
import "./templates/layout/createContentMenu/createContentMenu.html";
import "./templates/layout/createContentMenu/createContentMenu.js";
import "./templates/layout/footer/footer.html";
import "./templates/layout/header/brand.html";
import "./templates/layout/header/button.html";
import "./templates/layout/header/header.html";
import "./templates/layout/header/header.js";
import "./templates/layout/header/tags.html";
import "./templates/layout/notFound/notFound.html";
import "./templates/layout/notFound/notFound.js";
Expand All @@ -20,5 +15,7 @@ import "./templates/layout/notice/unauthorized.js";
import "./templates/theme/theme.html";
import "./templates/theme/theme.js";

import "./components/footer";

export CoreLayout from "./components/coreLayout";
export PrintLayout from "./components/printLayout";

This file was deleted.

157 changes: 0 additions & 157 deletions imports/plugins/core/layout/client/templates/layout/admin/admin.js

This file was deleted.

This file was deleted.

Loading

0 comments on commit 7f0899f

Please sign in to comment.