Added appdata support

This commit is contained in:
NGPixel
2017-01-09 22:45:56 -05:00
parent ec6f32d29c
commit f8161f2e7a
9 changed files with 71 additions and 28 deletions

View File

@@ -18,10 +18,9 @@ module.exports = {
/**
* Initialize Entries model
*
* @param {Object} appconfig The application config
* @return {Object} Entries model instance
*/
init(appconfig) {
init() {
let self = this;

View File

@@ -34,10 +34,9 @@ module.exports = {
/**
* Initialize Git model
*
* @param {Object} appconfig The application config
* @return {Object} Git model instance
*/
init(appconfig) {
init() {
let self = this;

View File

@@ -9,8 +9,6 @@ var path = require('path'),
/**
* Local Data Storage
*
* @param {Object} appconfig The application configuration
*/
module.exports = {
@@ -22,10 +20,9 @@ module.exports = {
/**
* Initialize Local Data Storage model
*
* @param {Object} appconfig The application config
* @return {Object} Local Data Storage model instance
*/
init(appconfig) {
init() {
this._uploadsPath = path.resolve(ROOTPATH, appconfig.paths.repo, 'uploads');
this._uploadsThumbsPath = path.resolve(ROOTPATH, appconfig.paths.data, 'thumbs');

View File

@@ -13,9 +13,7 @@ var path = require('path'),
_ = require('lodash');
/**
* Uploads
*
* @param {Object} appconfig The application configuration
* Uploads - Agent
*/
module.exports = {
@@ -27,10 +25,9 @@ module.exports = {
/**
* Initialize Uploads model
*
* @param {Object} appconfig The application config
* @return {Object} Uploads model instance
*/
init(appconfig) {
init() {
let self = this;

View File

@@ -23,10 +23,9 @@ module.exports = {
/**
* Initialize Local Data Storage model
*
* @param {Object} appconfig The application config
* @return {Object} Uploads model instance
*/
init(appconfig) {
init() {
this._uploadsPath = path.resolve(ROOTPATH, appconfig.paths.repo, 'uploads');
this._uploadsThumbsPath = path.resolve(ROOTPATH, appconfig.paths.data, 'thumbs');