scinote-web/config/initializers/constants.rb

119 lines
3.7 KiB
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
# Application version
2016-10-07 21:57:01 +08:00
APP_VERSION = '1.3.1'.freeze
2016-02-12 23:52:43 +08:00
TAG_COLORS = [
"#6C159E",
"#159B5E",
"#FF4500",
"#008B8B",
"#757575",
"#32CD32",
"#FFD700",
"#48D1CC",
"#15369E",
"#FF69B4",
"#CD5C5C",
"#C9C9C9",
"#6495ED",
"#DC143C",
"#FF8C00",
"#C71585",
"#000000"
]
# Min/max characters for short text fields
NAME_MIN_LENGTH = 2
NAME_MAX_LENGTH = 255
# Max characters for long text fields
TEXT_MAX_LENGTH = 10000
# Max characters for color field (given in HEX format)
COLOR_MAX_LENGTH = 7
USER_INITIALS_MAX_LENGTH = 4
# Standard length limit for email
EMAIL_MAX_LENGTH = 254
2016-07-21 19:11:15 +08:00
# Max table JSON size in MB
TABLE_JSON_MAX_SIZE = 20
# Max uploaded file size in MB
FILE_MAX_SIZE = 50
# Max uploaded user avatar size in MB
AVATAR_MAX_SIZE = 0.2
# Max characters for text in dropdown list
DROPDOWN_TEXT_MAX_LENGTH = 15
2016-10-13 19:06:11 +08:00
# Dropdown top offset from the parent
DROPDOWN_TOP_OFFSET = 20
2016-02-12 23:52:43 +08:00
SEARCH_LIMIT = 20
EXISTING_USERS_SEARCH_LIMIT = 5
2016-02-12 23:52:43 +08:00
SHOW_ALL_RESULTS = -1
QUERY_MIN_LENGTH = 2
2016-02-12 23:52:43 +08:00
TEXT_EXTRACT_FILE_TYPES = [
"application/pdf",
"application/rtf",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"application/vnd.oasis.opendocument.presentation",
"application/vnd.oasis.opendocument.spreadsheet",
"application/vnd.oasis.opendocument.text",
"application/vnd.ms-excel",
"application/vnd.ms-powerpoint",
"application/vnd.ms-word",
"text/plain"
]
# 1 MB of space is minimal for organizations (in B)
MINIMAL_ORGANIZATION_SPACE_TAKEN = 1.megabyte
2016-02-12 23:52:43 +08:00
# additional space of each file is added to its estimated
# size to account for DB indexes size etc.
ASSET_ESTIMATED_SIZE_FACTOR = 1.1
DEFAULT_PRIVATE_ORG_NAME = "My projects"
2016-07-21 19:11:15 +08:00
2016-09-23 18:52:38 +08:00
# External URLs
HTTP = 'http://'.freeze
TUTORIALS_URL = (HTTP + 'scinote.net/product/tutorials/').freeze
FAQ_URL = (HTTP + 'scinote.net/product/faq/').freeze
SUPPORT_URL = (HTTP + 'scinote.net/plans/#prof-support').freeze
PLANS_URL = (HTTP + 'scinote.net/plans/').freeze
CONTACT_URL = (HTTP + 'scinote.net/about-us/').freeze
RELEASE_NOTES_URL = (HTTP + 'scinote.net/docs/release-notes/').freeze
2016-09-23 18:52:38 +08:00
2016-07-21 19:11:15 +08:00
# ) \ / (
# /|\ )\_/( /|\
# * / | \ (/\|/\) / | \ *
# |`.____________________/__|__o____\`|'/___o__|__\___________________.'|
# | '^` \|/ '^` |
# | V |
# | _____ _ _ __ |
# | |_ _| |__ __ _ _ __ | | __ _ _ ___ _ _ ( | |
# | | | | '_ \ / _` | '_ \| |/ / | | | |/ _ \| | | | | ) |
# | | | | | | | (_| | | | | < | |_| | ( | | |_| | \_/ |
# | |_| |_| |_|\__,_|_| |_|_|\_\ \__, |\___/ \_,|_| _ |
# | |___/ (_) |
# | |
# | Special Thank You for supporting sciNote on Kicstarter goes |
# | to the following supporters |
# | ._________________________________________________________________. |
# |' l /\ / \\ \ /\ l `|
# * l / V )) V \ l *
# l/ // \I
KICKSTARTER_SUPPORTERS = [
"Manuela Lanzafame",
"Fluckiger Rudolf",
"Emily Gleason",
"Benjamin E Doremus",
"Chord Pet Wearable",
"Chris Taylor",
"Abraham White",
"Ryotaro Eguchi",
"Simon Waldherr",
"Isaac Sandaljian",
"Markus Rademacher"
2016-08-31 17:22:03 +08:00
]