Removed holiday content; Fixed minor bugs; Started to add login code (moved to another project).
This commit is contained in:
18
app.js
18
app.js
@@ -11,18 +11,30 @@ var fs = require('fs');
|
||||
var rootPath = path.join(__dirname, 'public');
|
||||
var config = require('./config');
|
||||
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();
|
||||
|
||||
app.use(bodyParser.urlencoded({extended: false}));
|
||||
|
||||
//app.use(favicon(__dirname + '/public/images/AV4H.ico'));
|
||||
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(cookieParser());
|
||||
|
||||
app.use(require('stylus').middleware(path.join(__dirname, 'public')));
|
||||
|
||||
|
||||
//Ensure we have an endsWith method in String.
|
||||
String.prototype.endsWith = function(suffix) {
|
||||
return this.indexOf(suffix, this.length - suffix.length) !== -1;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
//Email settings - Change these:
|
||||
exports.fromAddress = 'wynne@av4h.com';
|
||||
exports.smtpUser = 'wynne@av4h.com';
|
||||
exports.fromAddress = 'wynne@petitteton.com';
|
||||
exports.smtpUser = 'wynne@petitteton.com';
|
||||
exports.smtpPassword = 'landFJ40';
|
||||
exports.smtpHost = "secure.emailsrvr.com";
|
||||
exports.smtpPort = 465;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "payback",
|
||||
"name": "PetitTeton",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
||||
BIN
public/images/Chicken.ico
Normal file
BIN
public/images/Chicken.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
@@ -13,7 +13,7 @@
|
||||
<meta name="robots" content="index, follow"/>
|
||||
<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="stylesheet" href="main.css" type="text/css"/>
|
||||
@@ -37,7 +37,7 @@
|
||||
--><a href="#!/food">Food</a><!--
|
||||
--><a href="#!/animals">Animals</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>--><!--
|
||||
--></div>
|
||||
<div id="links">
|
||||
|
||||
@@ -10,8 +10,8 @@ window.status="";
|
||||
$(document).ready(function($) {
|
||||
var layoutManager = new LayoutManager("main-view");
|
||||
|
||||
layoutManager.defaultUrl = '#!/holidays';
|
||||
//layoutManager.defaultUrl = '#!/Farm';
|
||||
//layoutManager.defaultUrl = '#!/holidays';
|
||||
layoutManager.defaultUrl = '#!/Farm';
|
||||
layoutManager.pageClassFades = [
|
||||
{cls: 'full', fadeIn: null, fadeOut: null}
|
||||
];
|
||||
@@ -44,4 +44,5 @@ $(document).ready(function($) {
|
||||
console.log('Server: ' + message);
|
||||
};
|
||||
*/
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user