0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/models
Hannah Wolfe 7761873db7 Abstract findPage & add pagination Bookshelf plugin
closes #2896

- move default options / custom code into model functions
- move most of the filtering logic into base/utils.filtering (to be relocated)
- move the remainder of findPage back into base/index.js and remove from posts/users&tags
- move pagination-specific logic to a separate 'plugin' file
- pagination provides new fetchPage function, similar to fetchAll but handling pagination
- findPage model method uses fetchPage
- plugin is fully unit-tested and documented
2015-06-22 10:20:47 +01:00
..
base Abstract findPage & add pagination Bookshelf plugin 2015-06-22 10:20:47 +01:00
accesstoken.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-field.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-setting.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
client.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
index.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
permission.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
post.js Abstract findPage & add pagination Bookshelf plugin 2015-06-22 10:20:47 +01:00
refreshtoken.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
role.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
settings.js Add events to settings model 2015-06-16 23:57:52 +06:00
tag.js Abstract findPage & add pagination Bookshelf plugin 2015-06-22 10:20:47 +01:00
user.js Abstract findPage & add pagination Bookshelf plugin 2015-06-22 10:20:47 +01:00