mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix(mobile): provide Challenge categories via API
This commit is contained in:
@@ -17,7 +17,7 @@ import {
|
|||||||
} from './constants';
|
} from './constants';
|
||||||
|
|
||||||
import achievements from './achievements';
|
import achievements from './achievements';
|
||||||
|
import categoryOptions from './categoryOptions';
|
||||||
import eggs from './eggs';
|
import eggs from './eggs';
|
||||||
import hatchingPotions from './hatching-potions';
|
import hatchingPotions from './hatching-potions';
|
||||||
import stable from './stable';
|
import stable from './stable';
|
||||||
@@ -85,6 +85,8 @@ api.officialPinnedItems = officialPinnedItems;
|
|||||||
|
|
||||||
api.bundles = bundles;
|
api.bundles = bundles;
|
||||||
|
|
||||||
|
api.categoryOptions = categoryOptions;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
---------------------------------------------------------------
|
---------------------------------------------------------------
|
||||||
Unique Rewards: Potion and Armoire
|
Unique Rewards: Potion and Armoire
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const MOBILE_FILTER = ['achievements', 'questSeriesAchievements', 'animalColorAc
|
|||||||
'stableAchievements', 'bundles', 'loginIncentives', 'pets', 'premiumPets', 'specialPets', 'questPets',
|
'stableAchievements', 'bundles', 'loginIncentives', 'pets', 'premiumPets', 'specialPets', 'questPets',
|
||||||
'wackyPets', 'mounts', 'premiumMounts,specialMounts,questMounts', 'events', 'dropEggs', 'questEggs', 'dropHatchingPotions',
|
'wackyPets', 'mounts', 'premiumMounts,specialMounts,questMounts', 'events', 'dropEggs', 'questEggs', 'dropHatchingPotions',
|
||||||
'premiumHatchingPotions', 'wackyHatchingPotions', 'backgroundsFlat', 'questsByLevel', 'gear.tree', 'tasksByCategory',
|
'premiumHatchingPotions', 'wackyHatchingPotions', 'backgroundsFlat', 'questsByLevel', 'gear.tree', 'tasksByCategory',
|
||||||
'userDefaults', 'timeTravelStable', 'gearTypes', 'cardTypes'];
|
'userDefaults', 'timeTravelStable', 'gearTypes', 'cardTypes', 'categoryOptions'];
|
||||||
|
|
||||||
const ANDROID_FILTER = [...MOBILE_FILTER, 'appearances.background'].join(',');
|
const ANDROID_FILTER = [...MOBILE_FILTER, 'appearances.background'].join(',');
|
||||||
const IOS_FILTER = [...MOBILE_FILTER, 'backgrounds'].join(',');
|
const IOS_FILTER = [...MOBILE_FILTER, 'backgrounds'].join(',');
|
||||||
|
|||||||
Reference in New Issue
Block a user