Added appdata support
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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');
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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');
|
||||
|
Reference in New Issue
Block a user