mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Moved Bookshelf plugins to folder
no issue - this moves all the plugins into a folder which but allows us to see which are still hanging around to be extracted out
This commit is contained in:
parent
67539a143b
commit
76397f5aed
11 changed files with 17 additions and 17 deletions
|
@ -42,25 +42,25 @@ ghostBookshelf.plugin(plugins.collision);
|
|||
// Load hasPosts plugin for authors models
|
||||
ghostBookshelf.plugin(plugins.hasPosts);
|
||||
|
||||
ghostBookshelf.plugin(require('./crud'));
|
||||
ghostBookshelf.plugin(require('./plugins/crud'));
|
||||
|
||||
ghostBookshelf.plugin(require('./actions'));
|
||||
ghostBookshelf.plugin(require('./plugins/actions'));
|
||||
|
||||
ghostBookshelf.plugin(require('./events'));
|
||||
ghostBookshelf.plugin(require('./plugins/events'));
|
||||
|
||||
ghostBookshelf.plugin(require('./raw-knex'));
|
||||
ghostBookshelf.plugin(require('./plugins/raw-knex'));
|
||||
|
||||
ghostBookshelf.plugin(require('./sanitize'));
|
||||
ghostBookshelf.plugin(require('./plugins/sanitize'));
|
||||
|
||||
ghostBookshelf.plugin(require('./generate-slug'));
|
||||
ghostBookshelf.plugin(require('./plugins/generate-slug'));
|
||||
|
||||
ghostBookshelf.plugin(require('./bulk-operations'));
|
||||
ghostBookshelf.plugin(require('./plugins/bulk-operations'));
|
||||
|
||||
ghostBookshelf.plugin(require('./filtered-collection'));
|
||||
ghostBookshelf.plugin(require('./plugins/filtered-collection'));
|
||||
|
||||
ghostBookshelf.plugin(require('./user-type'));
|
||||
ghostBookshelf.plugin(require('./plugins/user-type'));
|
||||
|
||||
ghostBookshelf.plugin(require('./data-manipulation'));
|
||||
ghostBookshelf.plugin(require('./plugins/data-manipulation'));
|
||||
|
||||
// Manages nested updates (relationships)
|
||||
ghostBookshelf.plugin('bookshelf-relations', {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const _ = require('lodash');
|
||||
const errors = require('@tryghost/errors');
|
||||
const db = require('../../data/db');
|
||||
const db = require('../../../data/db');
|
||||
const logging = require('@tryghost/logging');
|
||||
|
||||
const CHUNK_SIZE = 100;
|
|
@ -1,7 +1,7 @@
|
|||
const _ = require('lodash');
|
||||
const moment = require('moment');
|
||||
|
||||
const schema = require('../../data/schema');
|
||||
const schema = require('../../../data/schema');
|
||||
|
||||
/**
|
||||
* @param {import('bookshelf')} Bookshelf
|
|
@ -1,8 +1,8 @@
|
|||
const _ = require('lodash');
|
||||
const debug = require('@tryghost/debug')('models:base:model-events');
|
||||
|
||||
const events = require('../../lib/common/events');
|
||||
const schema = require('../../data/schema');
|
||||
const events = require('../../../lib/common/events');
|
||||
const schema = require('../../../data/schema');
|
||||
|
||||
module.exports = function (Bookshelf) {
|
||||
Bookshelf.Model = Bookshelf.Model.extend({
|
|
@ -1,7 +1,7 @@
|
|||
const _ = require('lodash');
|
||||
const security = require('@tryghost/security');
|
||||
|
||||
const urlUtils = require('../../../shared/url-utils');
|
||||
const urlUtils = require('../../../../shared/url-utils');
|
||||
|
||||
/**
|
||||
* @type {Bookshelf} Bookshelf
|
|
@ -3,7 +3,7 @@ const debug = require('@tryghost/debug')('models:base:raw-knex');
|
|||
const plugins = require('@tryghost/bookshelf-plugins');
|
||||
const Promise = require('bluebird');
|
||||
|
||||
const schema = require('../../data/schema');
|
||||
const schema = require('../../../data/schema');
|
||||
|
||||
/**
|
||||
* @param {import('bookshelf')} Bookshelf
|
|
@ -3,7 +3,7 @@ const errors = require('@tryghost/errors');
|
|||
const moment = require('moment');
|
||||
const tpl = require('@tryghost/tpl');
|
||||
|
||||
const schema = require('../../data/schema');
|
||||
const schema = require('../../../data/schema');
|
||||
|
||||
const messages = {
|
||||
missingContext: 'missing context',
|
Loading…
Add table
Reference in a new issue