Skip to content

Commit

Permalink
add helmet modoule
Browse files Browse the repository at this point in the history
  • Loading branch information
rivkabenshalom committed Jul 11, 2016
1 parent a3a0c2b commit 6deea6a
Show file tree
Hide file tree
Showing 86 changed files with 6,774 additions and 4 deletions.
6 changes: 5 additions & 1 deletion config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ var mean = require('meanio'),
modRewrite = require('connect-modrewrite'),
// seo = require('mean-seo'),
config = mean.getConfig(),
bodyParser = require('body-parser');
bodyParser = require('body-parser'),
helmet = require('helmet');


module.exports = function(app, db) {

app.use(bodyParser.json(config.bodyParser.json));
app.use(bodyParser.urlencoded(config.bodyParser.urlencoded));

app.use(helmet());

app.set('showStackError', true);

// Prettify HTML
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"connect-modrewrite": "latest",
"consolidate": "latest",
"express": "latest",
"helmet": "^2.1.1",
"lodash": "latest",
"meanio": "^0.9.0",
"meanio-admin": "git://github.com/linnovate/meanio-admin.git",
Expand All @@ -50,8 +51,8 @@
"q": "latest",
"request": "latest",
"shelljs": "latest",
"view-helpers": "latest",
"snyk": "1.16.0"
"snyk": "1.16.0",
"view-helpers": "latest"
},
"devDependencies": {
"babel-core": "^6.7.2",
Expand Down Expand Up @@ -108,4 +109,4 @@
"webpack-dev-server": "^1.14.1"
},
"snyk": true
}
}
1 change: 1 addition & 0 deletions packages/custom/mean/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README: meanStarter
22 changes: 22 additions & 0 deletions packages/custom/mean/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use strict';

/*
* Defining the Package
*/
var Module = require('meanio').Module;

var MeanStarter = new Module('meanStarter');

/*
* All MEAN packages require registration
* Dependency injection is used to define required modules
*/
MeanStarter.register(function(app, users, system) {

// Set views path, template engine and default layout
app.set('views', __dirname + '/server/views');

MeanStarter.angularDependencies(['mean.system', 'mean.users']);

return MeanStarter;
});
11 changes: 11 additions & 0 deletions packages/custom/mean/mean.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "meanStarter",
"version": "0.1.0",
"mean": "0.6.0",
"dependencies": {
"system": "latest",
"users": "latest",
"circles": "latest",
"admin": "latest"
}
}
16 changes: 16 additions & 0 deletions packages/custom/mean/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "meanStarter",
"version": "0.0.1",
"description": "A starter layout / theme package for MEAN",
"author": {
"name": "MEAN.io"
},
"mean": "0.6.0",
"dependencies": {
"meanio-system": "git://github.com/pashist/meanio-system.git",
"meanio-users": "git://github.com/pashist/meanio-users.git",
"meanio-circles": "git://github.com/pashist/meanio-circles.git",
"meanio-admin": "git://github.com/pashist/meanio-admin.git"
},
"license": "MIT"
}
47 changes: 47 additions & 0 deletions packages/custom/mean/public/assets/css/common.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
.page-header {
padding-bottom: 0 !important;
margin: 0 !important;
border-bottom: 0 !important;
}
.page-header .navbar-nav {
float: right;
}
.page-header > div > div, .page-header > div > ul {
display: inline-block;
}
.text-edit {
float: right;
margin-top: 12px;
}
.account {
text-align:right;
}
.account > div, .account > ul {
text-align: left;
}
.navbar .nav > li > a.brand {
padding-left: 20px;
margin-left: 0
}
.content {
margin-top: 70px;
width: 100%
}
footer {
position: fixed;
left: 0;
bottom: 0;
height: 30px;
width: 100%;
background: #ddd;
-webkit-box-shadow: 0 8px 6px 6px black;
-moz-box-shadow: 0 8px 6px 6px black;
box-shadow: 0 8px 6px 6px black
}
footer p {
padding: 5px 0 12px 10px
}

.featuredpic img{
width:510px;
}
Loading

0 comments on commit 6deea6a

Please sign in to comment.