Fixed bugs and updated to latest meteor.
This commit is contained in:
@@ -16,3 +16,4 @@ notices-for-facebook-graph-api-2
|
|||||||
1.4.3-split-account-service-packages
|
1.4.3-split-account-service-packages
|
||||||
1.5-add-dynamic-import-package
|
1.5-add-dynamic-import-package
|
||||||
1.7-split-underscore-from-meteor-base
|
1.7-split-underscore-from-meteor-base
|
||||||
|
1.8.3-split-jquery-from-blaze
|
||||||
|
|||||||
@@ -5,24 +5,23 @@
|
|||||||
# but you can also edit it by hand.
|
# but you can also edit it by hand.
|
||||||
|
|
||||||
meteor-base@1.4.0 # Packages every Meteor app needs to have
|
meteor-base@1.4.0 # Packages every Meteor app needs to have
|
||||||
mobile-experience@1.0.5 # Packages for a great mobile UX
|
mobile-experience@1.1.0 # Packages for a great mobile UX
|
||||||
mongo@1.6.2 # The database Meteor supports right now
|
mongo@1.10.0 # The database Meteor supports right now
|
||||||
blaze-html-templates@1.0.4 # Compile .html files into Meteor Blaze views
|
blaze-html-templates@1.0.4 # Compile .html files into Meteor Blaze views
|
||||||
reactive-var@1.0.11 # Reactive variable for tracker
|
reactive-var@1.0.11 # Reactive variable for tracker
|
||||||
reactive-dict@1.3.0 # ???
|
|
||||||
tracker@1.2.0 # Meteor's client-side reactive programming library
|
tracker@1.2.0 # Meteor's client-side reactive programming library
|
||||||
tomwasd:history-polyfill # Adds IE 8/9 support for HTML5 history.
|
tomwasd:history-polyfill # Adds IE 8/9 support for HTML5 history.
|
||||||
email@1.2.3 # Adds the Meteor/Email package for sending lost password emails
|
email@2.0.0 # Adds the Meteor/Email package for sending lost password emails
|
||||||
|
|
||||||
standard-minifier-css@1.5.3 # CSS minifier run for production mode
|
standard-minifier-css@1.6.0 # CSS minifier run for production mode
|
||||||
standard-minifier-js@2.4.1 # JS minifier run for production mode
|
standard-minifier-js@2.6.0 # JS minifier run for production mode
|
||||||
es5-shim@4.8.0 # ECMAScript 5 compatibility for older browsers.
|
es5-shim@4.8.0 # ECMAScript 5 compatibility for older browsers.
|
||||||
poorvavyas:es6-shim
|
poorvavyas:es6-shim
|
||||||
ecmascript@0.12.4 # Enable ECMAScript2015+ syntax in app code
|
ecmascript@0.14.3 # Enable ECMAScript2015+ syntax in app code
|
||||||
|
|
||||||
#accounts-ui
|
#accounts-ui
|
||||||
#accounts-base
|
#accounts-base
|
||||||
accounts-password@1.5.1
|
accounts-password@1.6.2
|
||||||
useraccounts:core
|
useraccounts:core
|
||||||
useraccounts:unstyled
|
useraccounts:unstyled
|
||||||
useraccounts:flow-routing # Configures email flows. Used for AccountsTemplates class.
|
useraccounts:flow-routing # Configures email flows. Used for AccountsTemplates class.
|
||||||
@@ -61,9 +60,10 @@ juliancwirko:s-alert # Client error/alert handling
|
|||||||
jcbernack:reactive-aggregate # Allows us to create a new client collection (from the server) with the contents being an aggregate of server data. Note that aggregation can only be done on the server currently as mini-mongo does not support it.
|
jcbernack:reactive-aggregate # Allows us to create a new client collection (from the server) with the contents being an aggregate of server data. Note that aggregation can only be done on the server currently as mini-mongo does not support it.
|
||||||
ostrio:logger
|
ostrio:logger
|
||||||
ostrio:loggermongo
|
ostrio:loggermongo
|
||||||
dynamic-import@0.5.1
|
dynamic-import@0.5.2
|
||||||
markdown@1.0.12
|
markdown@1.0.12
|
||||||
wcrisman:jquery-custom-scrollbar
|
wcrisman:jquery-custom-scrollbar
|
||||||
underscore@1.0.10
|
underscore@1.0.10
|
||||||
meteorhacks:aggregate # Allows databaseName.aggragate(pipeline) calls the exact same way you would on the command line in the mongo tool.
|
meteorhacks:aggregate # Allows databaseName.aggragate(pipeline) calls the exact same way you would on the command line in the mongo tool.
|
||||||
#babrahams:constellation # Provides client side debugging when the server is not run in production mode.
|
#babrahams:constellation # Provides client side debugging when the server is not run in production mode.
|
||||||
|
jquery
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
METEOR@1.8.1
|
METEOR@1.11
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
accounts-base@1.4.4
|
accounts-base@1.7.0
|
||||||
accounts-password@1.5.1
|
accounts-password@1.6.2
|
||||||
alanning:roles@1.2.16
|
alanning:roles@1.2.19
|
||||||
aldeed:collection2@2.10.0
|
aldeed:collection2@2.10.0
|
||||||
aldeed:collection2-core@1.2.0
|
aldeed:collection2-core@1.2.0
|
||||||
aldeed:schema-deny@1.1.0
|
aldeed:schema-deny@1.1.0
|
||||||
@@ -10,33 +10,33 @@ aldeed:template-extension@4.1.0
|
|||||||
allow-deny@1.1.0
|
allow-deny@1.1.0
|
||||||
arillo:flow-router-helpers@0.5.2
|
arillo:flow-router-helpers@0.5.2
|
||||||
autoupdate@1.6.0
|
autoupdate@1.6.0
|
||||||
babel-compiler@7.3.4
|
babel-compiler@7.5.3
|
||||||
babel-runtime@1.3.0
|
babel-runtime@1.5.0
|
||||||
base64@1.0.12
|
base64@1.0.12
|
||||||
binary-heap@1.0.11
|
binary-heap@1.0.11
|
||||||
blaze@2.3.3
|
blaze@2.3.4
|
||||||
blaze-html-templates@1.1.2
|
blaze-html-templates@1.1.2
|
||||||
blaze-tools@1.0.10
|
blaze-tools@1.0.10
|
||||||
boilerplate-generator@1.6.0
|
boilerplate-generator@1.7.0
|
||||||
caching-compiler@1.2.1
|
caching-compiler@1.2.2
|
||||||
caching-html-compiler@1.1.3
|
caching-html-compiler@1.1.3
|
||||||
callback-hook@1.1.0
|
callback-hook@1.3.0
|
||||||
check@1.3.1
|
check@1.3.1
|
||||||
coffeescript@1.0.17
|
coffeescript@1.0.17
|
||||||
ddp@1.4.0
|
ddp@1.4.0
|
||||||
ddp-client@2.3.3
|
ddp-client@2.3.3
|
||||||
ddp-common@1.4.0
|
ddp-common@1.4.0
|
||||||
ddp-rate-limiter@1.0.7
|
ddp-rate-limiter@1.0.9
|
||||||
ddp-server@2.3.0
|
ddp-server@2.3.2
|
||||||
deps@1.0.12
|
deps@1.0.12
|
||||||
diff-sequence@1.1.1
|
diff-sequence@1.1.1
|
||||||
dynamic-import@0.5.1
|
dynamic-import@0.5.2
|
||||||
ecmascript@0.12.7
|
ecmascript@0.14.3
|
||||||
ecmascript-runtime@0.7.0
|
ecmascript-runtime@0.7.0
|
||||||
ecmascript-runtime-client@0.8.0
|
ecmascript-runtime-client@0.11.0
|
||||||
ecmascript-runtime-server@0.7.1
|
ecmascript-runtime-server@0.10.0
|
||||||
ejson@1.1.0
|
ejson@1.1.1
|
||||||
email@1.2.3
|
email@2.0.0
|
||||||
es5-shim@4.8.0
|
es5-shim@4.8.0
|
||||||
fetch@0.1.1
|
fetch@0.1.1
|
||||||
fortawesome:fontawesome@4.7.0
|
fortawesome:fontawesome@4.7.0
|
||||||
@@ -46,38 +46,38 @@ html-tools@1.0.11
|
|||||||
htmljs@1.0.11
|
htmljs@1.0.11
|
||||||
http@1.4.2
|
http@1.4.2
|
||||||
id-map@1.1.0
|
id-map@1.1.0
|
||||||
inter-process-messaging@0.1.0
|
inter-process-messaging@0.1.1
|
||||||
jcbernack:reactive-aggregate@0.7.0
|
jcbernack:reactive-aggregate@0.7.0
|
||||||
jquery@1.11.11
|
jquery@1.11.11
|
||||||
juliancwirko:s-alert@3.2.0
|
juliancwirko:s-alert@3.2.0
|
||||||
kadira:blaze-layout@2.3.0
|
kadira:blaze-layout@2.3.0
|
||||||
kadira:flow-router@2.12.1
|
kadira:flow-router@2.12.1
|
||||||
launch-screen@1.1.1
|
launch-screen@1.2.0
|
||||||
livedata@1.0.18
|
livedata@1.0.18
|
||||||
localstorage@1.2.0
|
localstorage@1.2.0
|
||||||
logging@1.1.20
|
logging@1.1.20
|
||||||
markdown@1.0.12
|
markdown@1.0.14
|
||||||
mdg:validation-error@0.2.0
|
mdg:validation-error@0.2.0
|
||||||
meteor@1.9.3
|
meteor@1.9.3
|
||||||
meteor-base@1.4.0
|
meteor-base@1.4.0
|
||||||
meteorhacks:aggregate@1.3.0
|
meteorhacks:aggregate@1.3.0
|
||||||
meteorhacks:collection-utils@1.2.0
|
meteorhacks:collection-utils@1.2.0
|
||||||
minifier-css@1.4.2
|
minifier-css@1.5.2
|
||||||
minifier-js@2.4.1
|
minifier-js@2.6.0
|
||||||
minimongo@1.4.5
|
minimongo@1.6.0
|
||||||
mobile-experience@1.0.5
|
mobile-experience@1.1.0
|
||||||
mobile-status-bar@1.0.14
|
mobile-status-bar@1.1.0
|
||||||
modern-browsers@0.1.4
|
modern-browsers@0.1.5
|
||||||
modules@0.13.0
|
modules@0.15.0
|
||||||
modules-runtime@0.10.3
|
modules-runtime@0.12.0
|
||||||
momentjs:moment@2.24.0
|
momentjs:moment@2.27.0
|
||||||
mongo@1.6.3
|
mongo@1.10.0
|
||||||
mongo-decimal@0.1.1
|
mongo-decimal@0.1.1
|
||||||
mongo-dev-server@1.1.0
|
mongo-dev-server@1.1.0
|
||||||
mongo-id@1.0.7
|
mongo-id@1.0.7
|
||||||
mongo-livedata@1.0.12
|
mongo-livedata@1.0.12
|
||||||
npm-bcrypt@0.9.3
|
npm-bcrypt@0.9.3
|
||||||
npm-mongo@3.1.2
|
npm-mongo@3.8.0
|
||||||
observe-sequence@1.0.16
|
observe-sequence@1.0.16
|
||||||
ordered-dict@1.1.0
|
ordered-dict@1.1.0
|
||||||
ostrio:logger@2.0.8
|
ostrio:logger@2.0.8
|
||||||
@@ -85,7 +85,7 @@ ostrio:loggermongo@2.0.5
|
|||||||
poorvavyas:es6-shim@0.21.1
|
poorvavyas:es6-shim@0.21.1
|
||||||
promise@0.11.2
|
promise@0.11.2
|
||||||
raix:eventemitter@0.1.3
|
raix:eventemitter@0.1.3
|
||||||
random@1.1.0
|
random@1.2.0
|
||||||
rate-limit@1.0.9
|
rate-limit@1.0.9
|
||||||
reactive-dict@1.3.0
|
reactive-dict@1.3.0
|
||||||
reactive-var@1.0.11
|
reactive-var@1.0.11
|
||||||
@@ -95,13 +95,13 @@ routepolicy@1.1.0
|
|||||||
service-configuration@1.0.11
|
service-configuration@1.0.11
|
||||||
session@1.2.0
|
session@1.2.0
|
||||||
sha@1.0.9
|
sha@1.0.9
|
||||||
socket-stream-client@0.2.2
|
socket-stream-client@0.3.1
|
||||||
softwarerero:accounts-t9n@1.3.11
|
softwarerero:accounts-t9n@1.3.11
|
||||||
spacebars@1.0.15
|
spacebars@1.0.15
|
||||||
spacebars-compiler@1.1.3
|
spacebars-compiler@1.1.3
|
||||||
srp@1.0.12
|
srp@1.1.0
|
||||||
standard-minifier-css@1.5.3
|
standard-minifier-css@1.6.0
|
||||||
standard-minifier-js@2.4.1
|
standard-minifier-js@2.6.0
|
||||||
stylus@2.513.14
|
stylus@2.513.14
|
||||||
templating@1.3.2
|
templating@1.3.2
|
||||||
templating-compiler@1.3.3
|
templating-compiler@1.3.3
|
||||||
@@ -111,11 +111,11 @@ tomwasd:history-polyfill@0.0.1
|
|||||||
tracker@1.2.0
|
tracker@1.2.0
|
||||||
ui@1.0.13
|
ui@1.0.13
|
||||||
underscore@1.0.10
|
underscore@1.0.10
|
||||||
url@1.2.0
|
url@1.3.1
|
||||||
useraccounts:core@1.14.2
|
useraccounts:core@1.14.2
|
||||||
useraccounts:flow-routing@1.14.2
|
useraccounts:flow-routing@1.14.2
|
||||||
useraccounts:unstyled@1.14.2
|
useraccounts:unstyled@1.14.2
|
||||||
wcrisman:jquery-custom-scrollbar@3.0.0
|
wcrisman:jquery-custom-scrollbar@3.0.0
|
||||||
webapp@1.7.4
|
webapp@1.9.1
|
||||||
webapp-hashing@1.0.9
|
webapp-hashing@1.0.9
|
||||||
zimme:active-route@2.3.2
|
zimme:active-route@2.3.2
|
||||||
|
|||||||
@@ -2511,7 +2511,7 @@ input[type="button"].btn-block {
|
|||||||
color: #bcb95f;
|
color: #bcb95f;
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
}
|
}
|
||||||
#salesMain .separatedTableHeader table thead > tr > th.actions .showOnlyComments:hover {
|
#salesMain .separatedTableHeader table thead > tr > th.actions .showOnlyCommentshover {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-shadow: 0px 0px 10px #ff6d1f;
|
text-shadow: 0px 0px 10px #ff6d1f;
|
||||||
}
|
}
|
||||||
@@ -2605,10 +2605,10 @@ input[type="button"].btn-block {
|
|||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
#salesMain .saleEditor .priceContainer .priceButtons .setDefaultPrice:hover {
|
#salesMain .saleEditor .priceContainer .priceButtons .setDefaultPricehover {
|
||||||
text-shadow: 0px 0px 6px #00b900;
|
text-shadow: 0px 0px 6px #00b900;
|
||||||
}
|
}
|
||||||
#salesMain .saleEditor .priceContainer .priceButtons .setDefaultPrice:active {
|
#salesMain .saleEditor .priceContainer .priceButtons .setDefaultPriceactive {
|
||||||
text-shadow: 0px 0px 6px #808080;
|
text-shadow: 0px 0px 6px #808080;
|
||||||
}
|
}
|
||||||
#salesMain .insertSaleForm .form-group,
|
#salesMain .insertSaleForm .form-group,
|
||||||
@@ -2622,6 +2622,36 @@ input[type="button"].btn-block {
|
|||||||
font-variant: normal;
|
font-variant: normal;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
#salesMain .insertSaleForm input[name='product'] {
|
||||||
|
display: table-cell;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
#salesMain .insertSaleForm .speechBtn {
|
||||||
|
display: table-cell;
|
||||||
|
width: 1px;
|
||||||
|
}
|
||||||
|
#salesMain .insertSaleForm .speechLink {
|
||||||
|
width: 6px;
|
||||||
|
margin: 3px;
|
||||||
|
margin-left: 6px;
|
||||||
|
margin-right: 0;
|
||||||
|
padding: 6px;
|
||||||
|
border: 2px solid #000;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
#salesMain .insertSaleForm .speechLink:hover {
|
||||||
|
background-color: #cbcbcb;
|
||||||
|
border-color: #4b4b4b;
|
||||||
|
}
|
||||||
|
#salesMain .insertSaleForm .speechLink:active {
|
||||||
|
background-color: #b0b0b0;
|
||||||
|
border-color: #000;
|
||||||
|
}
|
||||||
|
#salesMain .insertSaleForm .form-group-line {
|
||||||
|
display: table;
|
||||||
|
width: 100%;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
#saleDuplicates {
|
#saleDuplicates {
|
||||||
display: table;
|
display: table;
|
||||||
content-box: border-box;
|
content-box: border-box;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {SimpleSchema} from 'meteor/aldeed:simple-schema';
|
|||||||
const TYPES = ['Retail', "Farmer's Market", "Restaurant", "Mail"];
|
const TYPES = ['Retail', "Farmer's Market", "Restaurant", "Mail"];
|
||||||
const FREQUENCIES = ['Daily', 'Weekly'];
|
const FREQUENCIES = ['Daily', 'Weekly'];
|
||||||
|
|
||||||
Venues = new Mongo.Collection('Venues');
|
let Venues = new Mongo.Collection('Venues');
|
||||||
let VenuesSchema = new SimpleSchema({
|
let VenuesSchema = new SimpleSchema({
|
||||||
name: {
|
name: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
<template name="MeasureEditor">
|
<template name="MeasureEditor">
|
||||||
<td colspan="2" class="measureEditorTd">
|
<td colspan="2" class="measureEditorTd">
|
||||||
<div class="editorDiv"><label>Name:</label><input name="name" class="form-control" type="text" value="{{name}}" autocomplete="off" required></div>
|
<div class="editorDiv"><label>Name:</label><input name="name" class="form-control" type="text" value="{{name}}" autocomplete="off" required></div>
|
||||||
<div class="editorDiv"><label>Postfix:</label><input name="postfix" class="form-control" type="text" value="{{name}}" autocomplete="off" required></div>
|
<div class="editorDiv"><label>Postfix:</label><input name="postfix" class="form-control" type="text" value="{{postfix}}" autocomplete="off" required></div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center measureEditorTd actions"><i class="editorApply fa fa-check-square-o fa-lg noselect clickable" aria-hidden="true"></i> / <i class="editorCancel fa fa-times-circle fa-lg noselect clickable" aria-hidden="true"></i></td>
|
<td class="center measureEditorTd actions"><i class="editorApply fa fa-check-square-o fa-lg noselect clickable" aria-hidden="true"></i> / <i class="editorCancel fa fa-times-circle fa-lg noselect clickable" aria-hidden="true"></i></td>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ Template.Production.onCreated(function() {
|
|||||||
query.deletedAt = {$exists: false};
|
query.deletedAt = {$exists: false};
|
||||||
}
|
}
|
||||||
|
|
||||||
Template.Production.batchesSubscription = Meteor.subscribe("batches", query, sort, QUERY_LIMIT, Session.get(PREFIX + 'skipCount'));
|
Template.Production.batchesSubscription = Meteor.subscribe("batches", query, sort, Session.get(PREFIX + "queryLimit"), Session.get(PREFIX + 'skipCount'));
|
||||||
Session.set(PREFIX + 'batchCount', Meteor.call('getBatchCount', Session.get(PREFIX + 'searchQuery')));
|
Session.set(PREFIX + 'batchCount', Meteor.call('getBatchCount', Session.get(PREFIX + 'searchQuery')));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -113,7 +113,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class='control-label'>Product</label>
|
<label class='control-label'>Product</label>
|
||||||
<input name="product" class="form-control" type="text" required/>
|
<div class="form-group-line"><input name="product" class="form-control" type="text" required/><span class="spacer"></span><span class='speechBtn'><a class="speechLink"><i class="fa fa-microphone" aria-hidden="true"></i></a></span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class='control-label'>Venue</label>
|
<label class='control-label'>Venue</label>
|
||||||
|
|||||||
234
imports/ui/Sales.import.styl
vendored
234
imports/ui/Sales.import.styl
vendored
@@ -1,159 +1,183 @@
|
|||||||
#salesMain
|
#salesMain
|
||||||
display: table
|
display table
|
||||||
content-box: border-box
|
content-box border-box
|
||||||
padding: 10px 20px
|
padding 10px 20px
|
||||||
height: 100%
|
height 100%
|
||||||
width: 100%
|
width 100%
|
||||||
text-align: left
|
text-align left
|
||||||
.controls
|
.controls
|
||||||
text-align: left
|
text-align left
|
||||||
display: table
|
display table
|
||||||
width: 100%
|
width 100%
|
||||||
.pageControls
|
.pageControls
|
||||||
padding: 4px 8px
|
padding 4px 8px
|
||||||
margin: 4px 8px
|
margin 4px 8px
|
||||||
display: table-cell
|
display table-cell
|
||||||
width: 240px
|
width 240px
|
||||||
.tableControls
|
.tableControls
|
||||||
text-align: right
|
text-align right
|
||||||
padding: 4px 8px
|
padding 4px 8px
|
||||||
margin: 4px 12px 4px 8px
|
margin 4px 12px 4px 8px
|
||||||
display: table-cell
|
display table-cell
|
||||||
.table
|
.table
|
||||||
table-layout: fixed
|
table-layout fixed
|
||||||
min-width: 100%
|
min-width 100%
|
||||||
thead, tbody
|
thead, tbody
|
||||||
> tr
|
> tr
|
||||||
> .amount
|
> .amount
|
||||||
width: 90px
|
width 90px
|
||||||
min-width: 90px
|
min-width 90px
|
||||||
> .product
|
> .product
|
||||||
width: 100%
|
width 100%
|
||||||
min-width: 140px
|
min-width 140px
|
||||||
> .price
|
> .price
|
||||||
width: 140px
|
width 140px
|
||||||
min-width: 140px
|
min-width 140px
|
||||||
> .measure
|
> .measure
|
||||||
width: 100px
|
width 100px
|
||||||
min-width: 100px
|
min-width 100px
|
||||||
> .saleDate
|
> .saleDate
|
||||||
width: 150px
|
width 150px
|
||||||
min-width: 150px
|
min-width 150px
|
||||||
> .createdDate
|
> .createdDate
|
||||||
width: 100px
|
width 100px
|
||||||
min-width: 100px
|
min-width 100px
|
||||||
> .venue
|
> .venue
|
||||||
width: 160px
|
width 160px
|
||||||
min-width: 160px
|
min-width 160px
|
||||||
> .actions
|
> .actions
|
||||||
width: 90px
|
width 90px
|
||||||
min-width: 90px
|
min-width 90px
|
||||||
.separatedTableHeader
|
.separatedTableHeader
|
||||||
table
|
table
|
||||||
thead
|
thead
|
||||||
> tr
|
> tr
|
||||||
> th.actions
|
> th.actions
|
||||||
.newSaleButton
|
.newSaleButton
|
||||||
padding: 0 12px
|
padding 0 12px
|
||||||
.fa-plus-circle
|
.fa-plus-circle
|
||||||
display: inline-block
|
display inline-block
|
||||||
.fa-times-circle
|
.fa-times-circle
|
||||||
display: none
|
display none
|
||||||
.newSaleButton.active
|
.newSaleButton.active
|
||||||
background-color: #fb557b
|
background-color #fb557b
|
||||||
color: black
|
color black
|
||||||
.fa-times-circle
|
.fa-times-circle
|
||||||
display: inline-block
|
display inline-block
|
||||||
.fa-plus-circle
|
.fa-plus-circle
|
||||||
display: none
|
display none
|
||||||
.showOnlyComments
|
.showOnlyComments
|
||||||
color: #bcb95f
|
color #bcb95f
|
||||||
padding: 4px 8px
|
padding 4px 8px
|
||||||
.showOnlyComments:hover
|
.showOnlyCommentshover
|
||||||
color: white
|
color white
|
||||||
text-shadow: 0px 0px 10px #ff6d1f
|
text-shadow 0px 0px 10px #ff6d1f
|
||||||
.showOnlyComments.on
|
.showOnlyComments.on
|
||||||
color: white
|
color white
|
||||||
> th.saleDate
|
> th.saleDate
|
||||||
input
|
input
|
||||||
width: 130px
|
width 130px
|
||||||
.listRow
|
.listRow
|
||||||
display: table-row
|
display table-row
|
||||||
.listCell
|
.listCell
|
||||||
display: table-cell
|
display table-cell
|
||||||
position: relative
|
position relative
|
||||||
height: 100%
|
height 100%
|
||||||
width: 100%
|
width 100%
|
||||||
.tableContainer
|
.tableContainer
|
||||||
position: absolute
|
position absolute
|
||||||
top: 0
|
top 0
|
||||||
bottom: 0
|
bottom 0
|
||||||
left: 0
|
left 0
|
||||||
right: 0
|
right 0
|
||||||
width: auto
|
width auto
|
||||||
height: auto
|
height auto
|
||||||
border: 0
|
border 0
|
||||||
font-size: 12.5px
|
font-size 12.5px
|
||||||
overflow-y: scroll
|
overflow-y scroll
|
||||||
label
|
label
|
||||||
font-size: 10px
|
font-size 10px
|
||||||
font-weight: 800
|
font-weight 800
|
||||||
table
|
table
|
||||||
thead
|
thead
|
||||||
visibility: hidden
|
visibility hidden
|
||||||
display: none
|
display none
|
||||||
.saleRemove
|
.saleRemove
|
||||||
color: red
|
color red
|
||||||
margin-left: 8px
|
margin-left 8px
|
||||||
.saleEdit
|
.saleEdit
|
||||||
color: darkblue
|
color darkblue
|
||||||
margin-right: 8px
|
margin-right 8px
|
||||||
.editorApply
|
.editorApply
|
||||||
color: green
|
color green
|
||||||
.editorCancel
|
.editorCancel
|
||||||
color: red
|
color red
|
||||||
.saleDate
|
.saleDate
|
||||||
text-align: left
|
text-align left
|
||||||
.createdDate
|
.createdDate
|
||||||
text-align: left
|
text-align left
|
||||||
.editComment
|
.editComment
|
||||||
color: grey
|
color grey
|
||||||
.hasComment
|
.hasComment
|
||||||
color: black
|
color black
|
||||||
.actionEdit
|
.actionEdit
|
||||||
margin-right: 6px
|
margin-right 6px
|
||||||
color: #44F
|
color #44F
|
||||||
.saleEditor
|
.saleEditor
|
||||||
.heading
|
.heading
|
||||||
font-size: 2em
|
font-size 2em
|
||||||
font-family: verdana, arial, helvetica, sans-serif
|
font-family verdana, arial, helvetica, sans-serif
|
||||||
text-transform: uppercase
|
text-transform uppercase
|
||||||
font-weight: 800
|
font-weight 800
|
||||||
margin: 6px 0 14px 0
|
margin 6px 0 14px 0
|
||||||
.priceContainer
|
.priceContainer
|
||||||
display: table
|
display table
|
||||||
width: 100%
|
width 100%
|
||||||
.price
|
.price
|
||||||
display: table-cell
|
display table-cell
|
||||||
padding-right: 10px
|
padding-right 10px
|
||||||
.priceButtons
|
.priceButtons
|
||||||
display: table-cell
|
display table-cell
|
||||||
width: 1.5em
|
width 1.5em
|
||||||
.setDefaultPrice
|
.setDefaultPrice
|
||||||
font-size: 1.5em
|
font-size 1.5em
|
||||||
padding: 6px 8px
|
padding 6px 8px
|
||||||
margin-left: 8px
|
margin-left 8px
|
||||||
border-radius: 8px
|
border-radius 8px
|
||||||
.setDefaultPrice:hover
|
.setDefaultPricehover
|
||||||
text-shadow: 0px 0px 6px #00b900
|
text-shadow 0px 0px 6px #00b900
|
||||||
.setDefaultPrice:active
|
.setDefaultPriceactive
|
||||||
text-shadow: 0px 0px 6px grey
|
text-shadow 0px 0px 6px grey
|
||||||
.insertSaleForm
|
.insertSaleForm
|
||||||
.form-group, label
|
.form-group, label
|
||||||
text-align: left
|
text-align left
|
||||||
.formGroupHeading
|
.formGroupHeading
|
||||||
font-size: 1.6em
|
font-size 1.6em
|
||||||
font-family: "Arial Black", "Arial Bold", Gadget, sans-serif
|
font-family "Arial Black", "Arial Bold", Gadget, sans-serif
|
||||||
font-style: normal
|
font-style normal
|
||||||
font-variant: normal
|
font-variant normal
|
||||||
font-weight: 500
|
font-weight 500
|
||||||
|
input[name='product']
|
||||||
|
display table-cell
|
||||||
|
width 100%
|
||||||
|
.speechBtn
|
||||||
|
display table-cell
|
||||||
|
width 1px
|
||||||
|
.speechLink
|
||||||
|
width 6px
|
||||||
|
margin 3px
|
||||||
|
margin-left 6px
|
||||||
|
margin-right 0
|
||||||
|
padding 6px
|
||||||
|
border 2px solid black
|
||||||
|
border-radius 4px
|
||||||
|
.speechLink:hover
|
||||||
|
background-color #cbcbcb
|
||||||
|
border-color #4b4b4b
|
||||||
|
.speechLink:active
|
||||||
|
background-color #b0b0b0
|
||||||
|
border-color #000000
|
||||||
|
.form-group-line
|
||||||
|
display table
|
||||||
|
width 100%
|
||||||
|
white-space nowrap
|
||||||
@@ -457,6 +457,30 @@ Template.InsertSale.events({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
"click .speechLink": function(event, template) {
|
||||||
|
try {
|
||||||
|
let SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
|
||||||
|
let r = new SpeechRecognition();
|
||||||
|
|
||||||
|
r.lang='en-US';
|
||||||
|
r.interimResult = false;
|
||||||
|
r.maxAlternatives = 0;
|
||||||
|
r.start();
|
||||||
|
r.onresult = function(event) {
|
||||||
|
let product = template.$('input[name="product"]');
|
||||||
|
product.val(event.results[0][0].transcript);
|
||||||
|
let combo = product.data("de.combo");
|
||||||
|
|
||||||
|
combo.show();
|
||||||
|
combo.filter();
|
||||||
|
//Count the number of leaf nodes that are visible.
|
||||||
|
combo.$list.find('li.visible[role="leaf"]').length
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Template.InsertSale.helpers({
|
Template.InsertSale.helpers({
|
||||||
|
|||||||
16
package-lock.json
generated
16
package-lock.json
generated
@@ -4,17 +4,17 @@
|
|||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": {
|
"@babel/runtime": {
|
||||||
"version": "7.5.5",
|
"version": "7.9.2",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.5.5.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.9.2.tgz",
|
||||||
"integrity": "sha512-28QvEGyQyNkB0/m2B4FU7IEZGK2NUrcMtT6BZEFALTguLk+AUT6ofsHtPk5QyjAdUkpMJ+/Em+quwz4HOt30AQ==",
|
"integrity": "sha512-NE2DtOdufG7R5vnfQUTehdTfNycfUANEtCa9PssN9O/xmTzP4E08UI797ixaei6hBEVL9BI/PsdJS5x7mWoB9Q==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"regenerator-runtime": "^0.13.2"
|
"regenerator-runtime": "^0.13.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"regenerator-runtime": {
|
"regenerator-runtime": {
|
||||||
"version": "0.13.3",
|
"version": "0.13.5",
|
||||||
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz",
|
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz",
|
||||||
"integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw=="
|
"integrity": "sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA=="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -853,7 +853,7 @@
|
|||||||
"integrity": "sha512-J9X76xnncMw+wIqb15HeWfPMqPwYxSpPY8yWPJ7rAZN/ZDzFkjCSZObryCyUe8zbrVRNiuCnIeQteCzMn7GnWw==",
|
"integrity": "sha512-J9X76xnncMw+wIqb15HeWfPMqPwYxSpPY8yWPJ7rAZN/ZDzFkjCSZObryCyUe8zbrVRNiuCnIeQteCzMn7GnWw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"canvg": "1.5.3",
|
"canvg": "1.5.3",
|
||||||
"file-saver": "github:eligrey/FileSaver.js#e865e37af9f9947ddcced76b549e27dc45c1cb2e",
|
"file-saver": "github:eligrey/FileSaver.js#1.3.8",
|
||||||
"html2canvas": "1.0.0-alpha.12",
|
"html2canvas": "1.0.0-alpha.12",
|
||||||
"omggif": "1.0.7",
|
"omggif": "1.0.7",
|
||||||
"promise-polyfill": "8.1.0",
|
"promise-polyfill": "8.1.0",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"build": "npm install --product && meteor build --architecture os.linux.x86_64 --server-only ../"
|
"build": "npm install --product && meteor build --architecture os.linux.x86_64 --server-only ../"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.5.5",
|
"@babel/runtime": "^7.9.2",
|
||||||
"babel-runtime": "^6.18.0",
|
"babel-runtime": "^6.18.0",
|
||||||
"csv-parse": "^4.4.6",
|
"csv-parse": "^4.4.6",
|
||||||
"d3": "^4.4.2",
|
"d3": "^4.4.2",
|
||||||
@@ -24,6 +24,6 @@
|
|||||||
"pure-svg-code": "^1.0.6",
|
"pure-svg-code": "^1.0.6",
|
||||||
"qrcode-svg": "^1.0.0",
|
"qrcode-svg": "^1.0.0",
|
||||||
"simpl-schema": "latest",
|
"simpl-schema": "latest",
|
||||||
"sweetalert2": "^6.3.8"
|
"sweetalert2": "^10.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user