forked from codecombat/codecombat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatic-mock.js
54 lines (50 loc) · 1.5 KB
/
static-mock.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
const props = {
permissions: [],
anonymous: true,
preferredLanguage: 'en'
};
exports.serverConfig = {
codeNinja: false,
static: true
};
exports.features =
{playViewsOnly: false};
exports.me = {
showingStaticPagesWhileLoading() { return true; },
isStudent() { return false; },
isAnonymous() { return this.get('anonymous'); },
hasSubscription() { return false; },
isTeacher() { return false; },
isAdmin() { return false; },
level() { return 1; },
useDexecure() { return true; },
useSocialSignOn() { return true; },
gems() { return 0; },
getPhotoURL() { return ''; },
displayName() { return ''; },
broadName() { return ''; },
get(prop) { return props[prop]; },
isOnPremiumServer() { return false; },
freeOnly() { return false; },
isTarena() { return false; },
useTarenaLogo() { return false; },
hideTopRightNav() { return false; },
hideFooter() { return false; },
useGoogleAnalytics() { return true; },
showChinaVideo() { return false; },
getHomePageTestGroup() { return undefined; },
showForumLink() { return true; },
showGithubLink() { return true; },
showChinaICPinfo() { return false; },
showChinaResourceInfo() { return false; },
hideDiplomatModal() { return false; },
showOpenResourceLink() { return true; },
useStripe() { return true; }
};
exports.view = {
forumLink() { return 'http://discourse.codecombat.com/'; },
isMobile() { return false; },
showAds() { return false; },
isOldBrowser() { return false; },
isIPadBrowser() { return false; }
};