client redesign: add infinite loading for guilds + misc fixes

This commit is contained in:
Matteo Pagliazzi
2017-03-11 19:42:50 +01:00
parent 939712ad1f
commit c5633e2074
7 changed files with 824 additions and 44 deletions

View File

@@ -40,6 +40,7 @@ export const TAVERN_ID = shared.TAVERN_ID;
const NO_CHAT_NOTIFICATIONS = [TAVERN_ID];
const LARGE_GROUP_COUNT_MESSAGE_CUTOFF = shared.constants.LARGE_GROUP_COUNT_MESSAGE_CUTOFF;
const GUILDS_PER_PAGE = shared.constants.GUILDS_PER_PAGE;
const CRON_SAFE_MODE = nconf.get('CRON_SAFE_MODE') === 'true';
const CRON_SEMI_SAFE_MODE = nconf.get('CRON_SEMI_SAFE_MODE') === 'true';
@@ -204,8 +205,6 @@ schema.statics.getGroup = async function getGroup (options = {}) {
export const VALID_QUERY_TYPES = ['party', 'guilds', 'privateGuilds', 'publicGuilds', 'tavern'];
const GUILDS_PER_PAGE = 30; // number of guilds to return per page when using pagination
schema.statics.getGroups = async function getGroups (options = {}) {
let {
user, types, groupFields = basicFields,