Initial commit. Modified the Meteor todos app to create the Petit Teton data tracking app. Has working data for sales. Requires a Mongo database.

This commit is contained in:
Wynne Crisman
2017-01-15 11:33:37 -08:00
commit b757595cd6
104 changed files with 26824 additions and 0 deletions

View File

@@ -0,0 +1,106 @@
<template name="Body">
{{> sAlert}}
<div id="layoutBody">
<div class="mainBody">
<div class="leftSidebar">
<i class="fa fa-sign-out fa-2x signOut" aria-hidden="true"></i>
<div class="logo">
<img src="/images/PetitTetonLogo_v2.png"/>
</div>
<ul>
{{#if isInRole 'manage'}}
<li class="{{isActiveRoute 'UserManagement'}}">
<a href="{{pathFor 'UserManagement'}}">
User Management
</a>
</li>
{{/if}}
<li class="{{isActiveRoute 'Sales'}}">
<a href="{{pathFor 'Sales'}}">
Sales <span class="tag">Test Tag</span>
</a>
</li>
<li class="{{isActiveRoute 'Production'}}">
<a href="{{pathFor 'Production'}}">
Production <span class="tag">sample</span>
</a>
</li>
<li class="{{isActiveRoute 'Products'}}">
<a href="{{pathFor 'Products'}}">
Products
</a>
</li>
<li class="{{isActiveRoute 'Pricing'}}">
<a href="{{pathFor 'Pricing'}}">
Pricing
</a>
</li>
<li class="{{isActiveRoute 'ProductTags'}}">
<a href="{{pathFor 'ProductTags'}}">
Tags
</a>
</li>
<li class="{{isActiveRoute 'Measures'}}">
<a href="{{pathFor 'Measures'}}">
Measures
</a>
</li>
</ul>
</div>
<div class="contentBody">
<div class="contentContainer">
<div class="header">
&nbsp;
</div>
<div class="content">
{{> Template.dynamic template=content}}
</div>
</div>
</div>
</div>
<div class="footer">
&copy; Petit Teton LLC 2017
</div>
</div>
</template>
<!--<template name="Body">-->
<!--<div id="layoutBody">-->
<!--<div class="bodyTableRow">-->
<!--<div class="left bodyTableCell">-->
<!--<ul>-->
<!--{{#if isInRole 'manage'}}-->
<!--<li class="{{isActiveRoute 'UserManagement'}}">-->
<!--<a href="{{pathFor 'UserManagement'}}">-->
<!--User Management-->
<!--</a>-->
<!--</li>-->
<!--{{/if}}-->
<!--<li class="{{isActiveRoute 'Sales'}}">-->
<!--<a href="{{pathFor 'Sales'}}">-->
<!--Sales <span class="tag">Test Tag</span>-->
<!--</a>-->
<!--</li>-->
<!--<li class="{{isActiveRoute 'Production'}}">-->
<!--<a href="{{pathFor 'Production'}}">-->
<!--Production <span class="tag">sample</span>-->
<!--</a>-->
<!--</li>-->
<!--</ul>-->
<!--</div>-->
<!--<div class="bodyTableCell">-->
<!--<div class="bodyTable">-->
<!--<div class="header bodyTableRow">-->
<!--&nbsp;-->
<!--</div>-->
<!--<div class="content bodyTableRow">-->
<!--{{> Template.dynamic template=content}}-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--<div class="footer bodyTableRow">-->
<!--&copy; Petit Teton LLC 2017-->
<!--</div>-->
<!--</div>-->
<!--</template>-->

279
imports/ui/layouts/Body.import.styl vendored Normal file
View File

@@ -0,0 +1,279 @@
#layoutBody
width: 100%
height: 100%
display: table
text-align: center
margin: 0
padding: 0
border: 0
.mainBody
display: table
height: 100%
width: 100%
margin: 0
padding: 0
border: 0
.leftSidebar
display: table-cell
position: relative
border: 0
vertical-align: top
padding: 0
text-align: left
width: 220px
height: 100%
//Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#627d4d+0,1f3b08+100;Olive+3D
background: #90b272 //Old browsers
background: -moz-linear-gradient(-180deg, #90b272 0%, #4d7727 100%) //FF3.6-15
background: -webkit-linear-gradient(-180deg, #90b272 0%,#4d7727 100%) //Chrome10-25,Safari5.1-6
background: linear-gradient(180deg, #90b272 0%,#4d7727 100%) //W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+
font-size: 14px
font-weight: 700
.signOut
position: absolute
left: 10px
top: 10px
color: white
cursor: pointer
.signOut:hover
color: #BBB
.signOut:active
color: black
.logo
text-align: center
margin-top: 20px
ul
padding: 20px 0 0 0
margin: 0
list-style: none
li:first-child
border-top: 1px solid #e4e5e7
li
border-bottom: 1px solid #e4e5e7
color: #96a2ae
text-transform: uppercase
display: block
a
color: black
padding: 15px 20px
cursor: pointer
text-decoration: none
display: block
.tag
padding: .2em .5em
font-size: .7em
color: #fff
white-space: nowrap
vertical-align: baseline
border-radius: .25em
border: 1px solid #000000
float: right
li:hover
background-color: #333
li.active
background-color: #333
a
color: #96a2ae
.contentBody
display: table-cell
//background: #4d7727
.contentContainer
display: table
width: 100%
height: 100%
//border-radius 20px
//border: 0;
background: white
.header
display: table-row
background: #90b272
width: 100%
height: 1px
.content
display: table-row
width: 100%
-webkit-box-shadow: inset 4px 2px 6px 2px rgba(168,165,168,1)
-moz-box-shadow: inset 4px 2px 6px 2px rgba(168,165,168,1)
box-shadow: inset 4px 2px 6px 2px rgba(168,165,168,1)
.footer
display: table-row
height: 1px
text-align: center
background: #4d7727
color: white
//#layoutBody
// width: 100%
// height: 100%
// display: table
// margin: 0
// padding: 0
// border: 0
//
// .bodyTable
// display: table
// margin: 0
// padding: 0
// border: 0
// .bodyTableRow
// display: table-row
// .bodyTableCell
// display: table-cell
//
// .left
// display: table-cell
// border: 0
// vertical-align: top
// padding: 0
// text-align: left
// width: 220px
// height: 100%
// //Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#627d4d+0,1f3b08+100;Olive+3D
// background: #627d4d //Old browsers
// background: -moz-linear-gradient(-180deg, #627d4d 0%, #1f3b08 100%) //FF3.6-15
// background: -webkit-linear-gradient(-180deg, #627d4d 0%,#1f3b08 100%) //Chrome10-25,Safari5.1-6
// background: linear-gradient(180deg, #627d4d 0%,#1f3b08 100%) //W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+
// font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif
// font-size: 14px
// font-weight: 700
//
// ul
// padding: 50px 0 0 0
// margin: 0
// list-style: none
//
// li:first-child
// border-top: 1px solid #e4e5e7
// li
// border-bottom: 1px solid #e4e5e7
// color: #96a2ae
// text-transform: uppercase
// display: block
//
// a
// color: #96a2ae
// padding: 15px 20px
// cursor: pointer
// text-decoration: none
// display: block
//
// .tag
// padding: .2em .5em
// font-size: .7em
// color: #fff
// white-space: nowrap
// vertical-align: baseline
// border-radius: .25em
// border: 1px solid #000000
// float: right
// li:hover
// background-color: #333
// li.active
// background-color: #333
//
// .header
// height: 1px
// background: #627d4d
// width: 100%
// .content
// background: white
// .footer
// text-align: center
// height: 1px;
// background: #1f3b08
// color: white
//
//.header
// display: table-row
// height: 1px
// background: #627d4d
//
//#layoutBody.body
// display: table
// margin: 0
// padding: 0
// width: 100%
// height: 100%
//
// .body
// display: table-row
// width: 100%
//
// .left
// display: table-cell
// border: 0
// vertical-align: top
// padding: 0
// text-align: left
// width: 220px
// //Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#627d4d+0,1f3b08+100;Olive+3D
// background: #627d4d //Old browsers
// background: -moz-linear-gradient(-180deg, #627d4d 0%, #1f3b08 100%) //FF3.6-15
// background: -webkit-linear-gradient(-180deg, #627d4d 0%,#1f3b08 100%) //Chrome10-25,Safari5.1-6
// background: linear-gradient(180deg, #627d4d 0%,#1f3b08 100%) //W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+
// font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif
// font-size: 14px;
// font-weight: 700
//
// ul
// padding: 50px 0 0 0
// margin: 0
// list-style: none
//
// li:first-child
// border-top: 1px solid #e4e5e7
// li
// border-bottom: 1px solid #e4e5e7
// color: #96a2ae
// text-transform: uppercase
// display: block
//
// a
// color: #96a2ae
// padding: 15px 20px
// cursor: pointer
// text-decoration: none
// display: block
//
// .tag
// padding: .2em .5em
// font-size: .7em
// color: #fff
// white-space: nowrap
// vertical-align: baseline
// border-radius: .25em
// border: 1px solid #000000
// float: right
// li:hover
// background-color: #333
// li.active
// background-color: #333
// .main
// display: table-row
// background: white
// border: 0
// vertical-align: top
// padding: 0
// text-align: left
//
// .footer
// display: table-row
// text-align: center
// height: 1px;
// background: #1f3b08
// color: white

View File

@@ -0,0 +1,9 @@
import { Template } from 'meteor/templating';
import './Body.html';
Template.Body.events({
"click .signOut": function(event, template) {
AccountsTemplates.logout();
}
});

View File

@@ -0,0 +1,7 @@
<template name="Full">
<div id="full" class="content">
<div class="form">
{{> Template.dynamic template=content}}
</div>
</div>
</template>

11
imports/ui/layouts/Full.import.styl vendored Normal file
View File

@@ -0,0 +1,11 @@
#full.content
//width: 100%
//height: 100%
//background-image: linear-gradient(to bottom, #315481, #918e82 100%)'
background: white
.form
//margin: 5% auto 0 auto
margin: 0 auto
width: 300px

View File

@@ -0,0 +1 @@
import './Full.html';