-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaqelize.config.js
75 lines (55 loc) · 2.03 KB
/
faqelize.config.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
module.exports = {
// App title
title: "Faqelize",
// Database location:
// 'local'
// or any link 'https://my.s3.storage.io/bucket/secret_database.json'
database: 'local',
languages: [
{ code: 'ru', name: 'Русский' },
{ code: 'en', name: 'English' },
],
// Default language. Preinstalled languages: en (English), ru (Russian)
defaultLanguage: 'ru',
// Display language switcher.
showLanguageSwitcher: true,
// Enable pins.
usePins: true,
// Autosave password hash in localstorage.
savePassword: true,
// Encrypt database.json with password while building.
encryptDatabase: true,
// Suggest install as app on mobile devices.
installAsPWA: true,
// Disable logout if page works as PWA on smartphone.
disableLogoutOnStandalone: true,
// Set logotype image.
// Can be bool and string.
// If string is empty - default logo from ./public/img/logo.png
// If string is not empty - image from string (URL or base64)
// If bool is true - default logo from ./public/img/logo.png
// If bool is false - no logo
logo: '',
// Public path for production.
productionPublicPath: '/Faqelize/',
// Accept login by &password URL parameter.
// ! Can be unsecure.
// But if you use it, better send sha256 password hash instead of raw password.
acceptPasswordParameter: true,
// Determines URL parameter for password.
passwordParameterKey: 'password',
// Clear password parameter from URL after login.
clearPasswordParameter: true,
// Accept logo by &logo URL parameter.
acceptLogoParameter: true,
// Determines URL parameter for logo.
logoParameterKey: 'logo',
// Accept use database by URL parameter.
acceptDatabaseParameter: true,
// Determines URL parameter for database.
databaseParameterKey: 'db',
// Display or hide icon of "page" type of answer.
displayPageIcon: true,
// Animate opening for answer page.
answerPageOpeningAnimation: false,
};