Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"no-array-constructor": 2, // http://eslint.org/docs/rules/no-array-constructor
"no-spaced-func": 2, // http://eslint.org/docs/rules/no-spaced-func
"no-trailing-spaces": 2, // http://eslint.org/docs/rules/no-trailing-spaces
"no-extra-parens": 2, // http://eslint.org/docs/rules/no-extra-parens
"no-extra-parens": [2, "functions"], // http://eslint.org/docs/rules/no-extra-parens
"no-underscore-dangle": 0, // http://eslint.org/docs/rules/no-underscore-dangle
"one-var": [2, "never"], // http://eslint.org/docs/rules/one-var
"padded-blocks": [2, "never"], // http://eslint.org/docs/rules/padded-blocks
Expand Down
4 changes: 2 additions & 2 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ reactioncommerce:[email protected]
reactioncommerce:[email protected]
reactioncommerce:[email protected]
reactioncommerce:[email protected]
reactioncommerce:reaction-product-variant@1.0.1
reactioncommerce:reaction-product-variant@1.1.0
reactioncommerce:[email protected]
reactioncommerce:[email protected]
reactioncommerce:[email protected]
reactioncommerce:[email protected]
reactioncommerce:[email protected]
reactioncommerce:[email protected]
reactioncommerce:[email protected].0
reactioncommerce:[email protected].1
reactioncommerce:[email protected]
reactioncommerce:[email protected]
[email protected]
Expand Down
2 changes: 2 additions & 0 deletions packages/reaction-collections/client/collections.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Export collections for client
export const Collections = ReactionCore.Collections;
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ReactionCore.Collections.Packages.attachSchema(ReactionCore.Schemas.PackageConfi
/**
* ReactionCore Collections Products
*/
ReactionCore.Collections.Products = new Mongo.Collection("Products");
export const Products = ReactionCore.Collections.Products = new Mongo.Collection("Products");

ReactionCore.Collections.Products.attachSchema(ReactionCore.Schemas.Product,
{ selector: { type: "simple" } });
Expand Down
4 changes: 4 additions & 0 deletions packages/reaction-collections/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ Package.onUse(function (api) {
api.imply("meteorhacks:subs-manager");
api.imply("reactioncommerce:reaction-schemas");

// Main modules
api.mainModule("client/collections.js", "client");
api.mainModule("server/collections.js", "server");

// ensure schemas vars are passed through
api.export("ReactionCore");
api.export("ReactionSubscriptions");
Expand Down
2 changes: 2 additions & 0 deletions packages/reaction-collections/server/collections.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Export collections for server
export const Collections = ReactionCore.Collections;
37 changes: 37 additions & 0 deletions packages/reaction-core-theme/default/alerts.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,40 @@
margin-bottom: 2rem;
}
}

.rui.alert {
display: flex;
padding: 0;
border-radius: 0;
}

.rui.alert > .content {
flex: 1 1 auto;
padding: 20px;
.padding-right(10px);
}

.rui.alert > .controls {
display: flex;
justify-content: center;
align-items: center;
}

.rui.alert > .controls .control {
flex: 0 0 auto;
width: 44px;
min-height: 44px;
}

.rui.alert .s-alert-close {
display: flex;
justify-content: center;
align-items: center;
position: static;
text-indent: 0;
height: auto;
transform: none;
&:before, &:after {
content: none;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,25 @@
}
}

.pdp-container .rui.tag.edit {
width: 100%;
}

.pdp-container .rui.tags > .rui.item {
width: 50%;

@media only screen and (max-width: @screen-md-max) {
width: 100%;
}
}

.pdp-container .rui.tags > .rui.item .fa-bookmark {
color: @btn-success-bg;
}

.pdp-container .rui.tags > .rui.item input {
width: 0;
}


@media only screen and (max-width: @screen-xs-max) {
Expand Down
53 changes: 29 additions & 24 deletions packages/reaction-layout/client/templates/layout/alerts/alerts.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,42 @@
</body>

<template name="reactionToastAlert">
<div class="custom-alert-class s-alert-box s-alert-{{this.condition}} s-alert-{{position}} s-alert-effect-{{effect}} s-alert-show" id="{{_id}}" style="{{boxPosition}}">
<div class="s-alert-box-inner">
<div class="alert-header">
<h1><i class="fa fa-{{sAlertIcon}}"></i> {{sAlertTitle}}</h1>
</div>
<div class="alert-content">
<i class="fa fa-fw fa-cog"></i>
{{message}}
</div>
<div class="rui alert s-alert-box s-alert-{{this.condition}} s-alert-{{position}} s-alert-effect-{{effect}} s-alert-show" id="{{_id}}" style="{{boxPosition}}">
<div class="content">
{{#if sAlertTitle}}
<div class="header">
<h1><i class="fa fa-{{sAlertIcon}}"></i> {{sAlertTitle}}</h1>
</div>
<span class="s-alert-close"></span>
{{/if}}
<div class="message">
{{message}}
</div>
</div>
<div class="controls">
<span class="control s-alert-close">
<i class="fa fa-times"></i>
</span>
</div>
</div>
</template>

<template name="inlineAlerts">
{{#each alerts placement id}}
{{> inlineAlert}}
{{/each}}
{{#each alerts placement id}}
{{> inlineAlert}}
{{/each}}
</template>


<template name="inlineAlert">
<div class="alert alert-{{mode}} {{#if options.dismissable}}alert-dismissable{{/if}} {{#if isFirstRender}}hide{{/if}} {{options.classes}}">
{{#if options.dismissable}}
<!--suppress CheckDtdReferences -->
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{/if}}
{{#unless options.html}}
{{message}}
{{else}}
{{{message}}}
{{/unless}}
</div>
<div class="alert alert-{{mode}} {{#if options.dismissable}}alert-dismissable{{/if}} {{#if isFirstRender}}hide{{/if}} {{options.classes}}">
{{#if options.dismissable}}
<!--suppress CheckDtdReferences -->
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{/if}}
{{#unless options.html}}
{{message}}
{{else}}
{{{message}}}
{{/unless}}
</div>
</template>
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@

// Extends Bootstaps alerts and add more alert types


Meteor.startup(function () {

sAlert.config({
effect: 'stackslide',
position: 'bottom-left',
timeout: 5000,
html: false,
onRouteClose: true,
stack: true,
// or you can pass an object:
// stack: {
// spacing: 10 // in px
// limit: 3 // when fourth alert appears all previous ones are cleared
// }
offset: 0, // in px - will be added to first alert (bottom or top - depends of the position in config)
beep: false,
// examples:
// beep: '/beep.mp3' // or you can pass an object:
// beep: {
// info: '/beep-info.mp3',
// error: '/beep-error.mp3',
// success: '/beep-success.mp3',
// warning: '/beep-warning.mp3'
// }
//onClose: _.noop //
// examples:
// onClose: function() {
// /* Code here will be executed once the alert closes. */
// }
});

sAlert.config({
effect: "stackslide",
position: "bottom-left",
timeout: 5000,
html: false,
onRouteClose: true,
stack: true,
// or you can pass an object:
// stack: {
// spacing: 10 // in px
// limit: 3 // when fourth alert appears all previous ones are cleared
// }
offset: 0, // in px - will be added to first alert (bottom or top - depends of the position in config)
beep: false
// examples:
// beep: '/beep.mp3' // or you can pass an object:
// beep: {
// info: '/beep-info.mp3',
// error: '/beep-error.mp3',
// success: '/beep-success.mp3',
// warning: '/beep-warning.mp3'
// }
// onClose: _.noop //
// examples:
// onClose: function() {
// /* Code here will be executed once the alert closes. */
// }
});
});

Object.assign(Alerts, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ <h2 id="pageTitle">{{>fieldComponent field="pageTitle" value=pageTitle}}</h2>
<div class="col-sm-5 pdp-left-column">
{{> productImageGallery}}
<!-- Product Tags -->
{{>tagsComponent tags=tags}}
<h3 data-i18n="productDetail.details">Details</h3>
{{#if showTagTitle}}
<h3 data-i18n="productDetail.tags">Tags</h3>
{{/if}}
{{> tagList tagListProps}}

{{#if showDetailTitle}}
<h3 data-i18n="productDetail.details">Details</h3>
{{/if}}
{{> metaComponent }}
</div>
<!-- END Left Side -->
Expand Down
Loading