Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
352 changed files
with
115,282 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
lib-cov | ||
*.seed | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
*.swp | ||
|
||
pids | ||
logs | ||
results | ||
tmp | ||
coverage | ||
|
||
# API keys | ||
*.env | ||
|
||
# Dependency directory | ||
node_modules/* | ||
bower_components | ||
|
||
|
||
# Editors | ||
.idea | ||
*.iml | ||
|
||
# OS metadata | ||
.DS_Store | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017 Isithelo , Mining Consultants and Services (Pty) Ltd | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: node index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "Battlefront", | ||
"description": "A tribute to John Ringos Posleen Wars.", | ||
"sitename": "Battlefront", | ||
"website": "https://posleen-wars.herokuapp.com/", | ||
"repo": "https://github.com/jondo89/battlefront", | ||
"scripts": {}, | ||
"env": { | ||
"MONGODB_URI": { | ||
"required": true | ||
} | ||
}, | ||
"formation": {}, | ||
"addons": [ | ||
"mongolab" | ||
], | ||
"buildpacks": [ | ||
{ | ||
"url": "heroku/nodejs" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
var User = require('../models/User'); | ||
//set the plugin controller directory | ||
|
||
/////////////////////////////////////////////// | ||
//// SET YOUR APP.JSON DETAILS //// | ||
///////////////////////////////////////////// | ||
//Not working ? try double dots on the json url.. | ||
var myModule = require('../app.json'); | ||
var sitename = myModule.sitename | ||
var website = myModule.website | ||
var repo = myModule.repo | ||
|
||
|
||
//set the plugin controller directory | ||
var directory = __dirname +'/' | ||
|
||
/////////////////////////////////////// | ||
//// HOME CONTROLLER //// | ||
///////////////////////////////////// | ||
exports.index = function(req, res) { | ||
//Perform Routing for Varios user type on the home page. | ||
if (req.user) { | ||
res.render('../../../views/splash', { | ||
organizations : req.organizations, | ||
organizationsParse:req.organizationsParse, | ||
pagetitle: req.user.username +' | '+sitename+'', | ||
userorgcomplist:req.userorgcomplist, | ||
userorgcomplistParse:req.userorgcomplistParse, | ||
componentlist : req.componentlist, | ||
componentlistParse : req.componentlistParse, | ||
componentlistall : req.componentlistall, | ||
componentlistParseall : req.componentlistParseall, | ||
bs4 : true, | ||
items:req.items, //list of all heavy-lifting DB entires | ||
itemsParse:req.itemsParse,//list of all heavy-lifting DB entires | ||
}); | ||
} else { | ||
res.render('../../../views/home', { | ||
layout: false | ||
}); | ||
} | ||
}; | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
module.exports = function(grunt) { | ||
grunt.initConfig({ | ||
nodemon: { | ||
dev: { | ||
script: 'index.js' | ||
} | ||
}, | ||
run: { | ||
startServ: { | ||
options: { | ||
wait: false | ||
}, | ||
//cmd: "executable", | ||
args: [ | ||
'c:/wrasse/index.js' | ||
] | ||
},runTests: { | ||
options: { | ||
wait: false | ||
}, | ||
exec: 'npm run test:watch' // <-- use the exec key. | ||
},sitemap: { | ||
options: { | ||
wait: false | ||
}, | ||
exec: 'node ./public/mycrawler.js' // <-- use the exec key. | ||
} | ||
}, | ||
open: { | ||
startServ: { | ||
path: 'http://localhost:5000', | ||
app: 'Google Chrome' | ||
} | ||
}, | ||
concurrent: { | ||
options: { | ||
logConcurrentOutput: true | ||
}, | ||
//target1: ['nodemon'], | ||
//target2: ['run:runTests', 'wait:runTests'] | ||
target: [ 'nodemon','open:startServ',['run:runTests', 'wait:runTests'],['run:sitemap', 'wait:sitemap']] | ||
} | ||
}); | ||
grunt.loadNpmTasks('grunt-nodemon'); | ||
grunt.loadNpmTasks('grunt-run'); | ||
grunt.loadNpmTasks('grunt-open'); | ||
grunt.loadNpmTasks('grunt-concurrent'); | ||
grunt.registerTask('default',[ | ||
'concurrent:target' | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"collections":{"database":{"collectionName":"heavylifting","formcollectionname":"heavylifting","datacollectionname":"heavylifting","additionaldetailcollection":"heavylifting","rawform":"58aa74130b9d3241280ecf16","parentids":"58d2010b118e812d18654119","navigationform":"58aa74150b9d3241280ecf18","pagetitle":"Database","description":"The database contains every discrete element of a conveyor system that can be stored on the site. These elements are used throughout the site as list entries form groups, sets of components and data entries."},"tools":{"collectionName":"heavylifting","formcollectionname":"heavylifting","datacollectionname":"heavylifting","additionaldetailcollection":"heavylifting","rawform":"58aa74130b9d3241280ecf16","parentids":"5cf74091e42ba24de83c9039","navigationform":"58aa74150b9d3241280ecf18","pagetitle":"Tools","description":"A collection of tools used for calculations on this site."},"projects":{"collectionName":"projects","formcollectionname":"heavylifting","datacollectionname":"projects","additionaldetailcollection":"heavylifting","rawform":"58aa74130b9d3241280ecf16","parentids":"5abf31b1b6aede19c4774e3e","navigationform":"58aa74150b9d3241280ecf18","pagetitle":"Projects","description":"Create, read, update and delete your projects."},"shop":{"collectionName":"heavylifting","formcollectionname":"heavylifting","datacollectionname":"heavylifting","additionaldetailcollection":"heavylifting","rawform":"58aa74130b9d3241280ecf16","parentids":"58d222d18d9bfd28846eb792","navigationform":"58aa74150b9d3241280ecf18","pagetitle":"Shop","description":"The shop contains all of the equipment to be used in purchasing schedules on this site. Please contact us via email if you would like to incorporate your product into this list."},"forms":{"collectionName":"heavylifting","formcollectionname":"heavylifting","datacollectionname":"heavylifting","additionaldetailcollection":"heavylifting","rawform":"58aa74130b9d3241280ecf16","parentids":"58df3fdc48e76c2c1894d704","navigationform":"59e83518e0f9501550e9cf81","pagetitle":"Forms","description":"Combinator for database items and entries into forms."},"configuration":{"collectionName":"heavylifting","formcollectionname":"heavylifting","datacollectionname":"heavylifting","additionaldetailcollection":"heavylifting","rawform":"58aa74130b9d3241280ecf16","parentids":"5a5054af39da3236d859ce8a","navigationform":"59e83518e0f9501550e9cf81","pagetitle":"Configuration","description":"Form and site configuration forms."},"assemblies":{"collectionName":"assemblies","formcollectionname":"forms","datacollectionname":"assemblies","additionaldetailcollection":"heavylifting","rawform":"59e82a7be0f9501550e9cf57","parentids":"59e83513e0f9501550e9cf80","navigationform":"59e83518e0f9501550e9cf81","pagetitle":"Assemblies","description":"The assembly page allows for the combination of all site entries in complex reporting structures. Build contracts, create purchasing instructions and build equipment."},"components":{"collectionName":"heavylifting","formcollectionname":"heavylifting","datacollectionname":"heavylifting","additionaldetailcollection":"heavylifting","rawform":"58aa74130b9d3241280ecf16","parentids":"58d371b01373c63dccdee169","navigationform":"58aa74150b9d3241280ecf18","pagetitle":"Components","description":"The components page allows for the creation, viewing, updating and deleting of items on this site. Use the components to create new assembly structures for later use in reporting."},"scada":{"collectionName":"forms","formcollectionname":"forms","datacollectionname":"entanglement","additionaldetailcollection":"scada","rawform":"59e82a7be0f9501550e9cf57","parentids":"59fd5eca077e477b30dd0967","navigationform":"5ccbdcb95b58e92ed4373e7a","pagetitle":"Data Analysis","description":"This page is a proof of concept for using the heavylifting framework as a SCADA lite and data analysis enabler."},"gamedata":{"collection":"gamedata","collectionName":"gamedata","formcollectionname":"gamedata","datacollectionname":"gamedata","additionaldetailcollection":"gamedata","rawform":"58aa74130b9d3241280ecf16","parentids":"5abf31b1b6aede19c4774e3e","navigationform":"58aa74150b9d3241280ecf18","pagetitle":"Game Data","description":"Create, read, update and delete your gamedata. , This is a test"}},"descriptions":{"collectionName":"The name of the collection with in Mongodb.","formcollectionname":"asdasd","datacollectionname":"asdasdas","additionaldetailcollection":"asasdasd","rawform":"The second database entry , used for the creation of new items. No new revisions , only 1 entry . i.e no elementID revisions.","parentids":"The navigation menu id. Does allow for the revision of elementID.","navigationform":"This form is item number 4 in the Database , this is not revised up at any point , i.e there are no elementID's with this number , only the ObjectID in the collection. The navigation form needs to be located in the Collection Name. Use this query in Robot to find this db.getCollection('heavylifting').find({'_id' : ObjectId('58aa74150b9d3241280ecf18')})","pagetitle":"The page title to be displayed on entry to browsing the collection.","description":"Description of the collection."}} |
Oops, something went wrong.