forked from codecombat/codecombat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatic-mock.js
59 lines (54 loc) · 1.6 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
55
56
57
58
59
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 },
isHomeUser () { return true },
isAdmin () { return false },
isSchoolAdmin () { return false },
isAPIClient () { return false },
isInGodMode () { 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] },
freeOnly () { return false },
isTarena () { return false },
isILK () { return false },
isICode () { return false },
isCodeNinja () { return false },
useTarenaLogo () { return false },
hideTopRightNav () { return false },
hideFooter () { return false },
useGoogleAnalytics () { return true },
showChinaVideo () { return false },
showForumLink () { return true },
showChinaResourceInfo () { return false },
hideDiplomatModal () { return false },
showOpenResourceLink () { return true },
useStripe () { return true },
getHackStackExperimentValue () { return false }
}
exports.view = {
isMobile () { return false },
isOldBrowser () { return false },
isChinaOldBrowser () { return false },
isIPadBrowser () { return false }
}
exports.getQueryVariable = () => null