Removed holiday content; Fixed minor bugs; Started to add login code (moved to another project).

This commit is contained in:
Wynne Crisman
2016-02-04 13:29:55 -08:00
parent c93f19654e
commit 2ba994e7f2
6 changed files with 23 additions and 10 deletions

18
app.js
View File

@@ -11,18 +11,30 @@ var fs = require('fs');
var rootPath = path.join(__dirname, 'public'); var rootPath = path.join(__dirname, 'public');
var config = require('./config'); var config = require('./config');
var moment = require('moment'); var moment = require('moment');
var methodOverride = require("method-override");
var session = require("express-session");
var passport = require("passport");
var localStrategy = require("passport-local");
var app = express(); var app = express();
app.use(bodyParser.urlencoded({extended: false}));
//app.use(favicon(__dirname + '/public/images/AV4H.ico'));
app.use(logger('dev')); app.use(logger('dev'));
app.use(cookieParser());
app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.json());
app.use(methodOverride('X-HTTP-Method-Override'));
app.use(session({secret: 'au*2(_io?MajesticPeakMountainBoarding', saveUninitialized: true, resave: true}));
app.use(passport.initialize());
app.use(passport.session());
app.use(favicon(__dirname + '/public/images/Chicken.ico'));
app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser()); app.use(cookieParser());
app.use(require('stylus').middleware(path.join(__dirname, 'public'))); app.use(require('stylus').middleware(path.join(__dirname, 'public')));
//Ensure we have an endsWith method in String. //Ensure we have an endsWith method in String.
String.prototype.endsWith = function(suffix) { String.prototype.endsWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1; return this.indexOf(suffix, this.length - suffix.length) !== -1;

View File

@@ -1,8 +1,8 @@
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//Email settings - Change these: //Email settings - Change these:
exports.fromAddress = 'wynne@av4h.com'; exports.fromAddress = 'wynne@petitteton.com';
exports.smtpUser = 'wynne@av4h.com'; exports.smtpUser = 'wynne@petitteton.com';
exports.smtpPassword = 'landFJ40'; exports.smtpPassword = 'landFJ40';
exports.smtpHost = "secure.emailsrvr.com"; exports.smtpHost = "secure.emailsrvr.com";
exports.smtpPort = 465; exports.smtpPort = 465;

View File

@@ -1,5 +1,5 @@
{ {
"name": "payback", "name": "PetitTeton",
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"scripts": { "scripts": {

BIN
public/images/Chicken.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -13,7 +13,7 @@
<meta name="robots" content="index, follow"/> <meta name="robots" content="index, follow"/>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Petit Teton Home</title> <title>Petit Teton Farm</title>
<link rel="shortcut icon" href="images/Chicken.ico"/> <link rel="shortcut icon" href="images/Chicken.ico"/>
<link rel="stylesheet" href="main.css" type="text/css"/> <link rel="stylesheet" href="main.css" type="text/css"/>
@@ -37,7 +37,7 @@
--><a href="#!/food">Food</a><!-- --><a href="#!/food">Food</a><!--
--><a href="#!/animals">Animals</a><!-- --><a href="#!/animals">Animals</a><!--
--><a href="#!/services">Services</a><!-- --><a href="#!/services">Services</a><!--
--><a href="#!/holidays" class="holidayMenuItem">Holidays</a><!-- --><!--<a href="#!/holidays" class="holidayMenuItem">Holidays</a>--><!--
--><!--<a href="#!/shipping" class="shippingMenuItem">Shipping</a>--><!-- --><!--<a href="#!/shipping" class="shippingMenuItem">Shipping</a>--><!--
--></div> --></div>
<div id="links"> <div id="links">

View File

@@ -10,8 +10,8 @@ window.status="";
$(document).ready(function($) { $(document).ready(function($) {
var layoutManager = new LayoutManager("main-view"); var layoutManager = new LayoutManager("main-view");
layoutManager.defaultUrl = '#!/holidays'; //layoutManager.defaultUrl = '#!/holidays';
//layoutManager.defaultUrl = '#!/Farm'; layoutManager.defaultUrl = '#!/Farm';
layoutManager.pageClassFades = [ layoutManager.pageClassFades = [
{cls: 'full', fadeIn: null, fadeOut: null} {cls: 'full', fadeIn: null, fadeOut: null}
]; ];
@@ -44,4 +44,5 @@ $(document).ready(function($) {
console.log('Server: ' + message); console.log('Server: ' + message);
}; };
*/ */
}); });