Fix unexpected token 'export'

This commit is contained in:
ekzyis 2023-07-26 22:07:06 +02:00
parent ba04e6522d
commit c975bd8ebd
1 changed files with 43 additions and 46 deletions

View File

@ -1,37 +1,35 @@
export const NOFOLLOW_LIMIT = 100 // XXX this is temporary until we have so many subs they have
export const BOOST_MIN = 5000 // to be loaded from the server
export const UPLOAD_SIZE_MAX = 2 * 1024 * 1024 const SUBS = ['bitcoin', 'nostr', 'tech', 'meta', 'jobs']
export const IMAGE_PIXELS_MAX = 35000000 const SUBS_NO_JOBS = SUBS.filter(s => s !== 'jobs')
export const UPLOAD_TYPES_ALLOW = [
module.exports = {
NOFOLLOW_LIMIT: 100,
BOOST_MIN: 5000,
UPLOAD_SIZE_MAX: 2 * 1024 * 1024,
IMAGE_PIXELS_MAX: 35000000,
UPLOAD_TYPES_ALLOW: [
'image/gif', 'image/gif',
'image/heic', 'image/heic',
'image/png', 'image/png',
'image/jpeg', 'image/jpeg',
'image/webp' 'image/webp'
] ],
export const COMMENT_DEPTH_LIMIT = 10 COMMENT_DEPTH_LIMIT: 10,
export const MAX_TITLE_LENGTH = 80 MAX_TITLE_LENGTH: 80,
export const MAX_POLL_CHOICE_LENGTH = 30 MAX_POLL_CHOICE_LENGTH: 30,
export const ITEM_SPAM_INTERVAL = '10m' ITEM_SPAM_INTERVAL: '10m',
export const MAX_POLL_NUM_CHOICES = 10 MAX_POLL_NUM_CHOICES: 10,
export const MIN_POLL_NUM_CHOICES = 2 MIN_POLL_NUM_CHOICES: 2,
export const ITEM_FILTER_THRESHOLD = 1.2 ITEM_FILTER_THRESHOLD: 1.2,
export const DONT_LIKE_THIS_COST = 1 DONT_LIKE_THIS_COST: 1,
export const COMMENT_TYPE_QUERY = ['comments', 'freebies', 'outlawed', 'borderland', 'all', 'bookmarks'] COMMENT_TYPE_QUERY: ['comments', 'freebies', 'outlawed', 'borderland', 'all', 'bookmarks'],
SUBS,
// XXX this is temporary until we have so many subs they have SUBS_NO_JOBS,
// to be loaded from the server USER_SORTS: ['stacked', 'spent', 'comments', 'posts', 'referrals'],
export const SUBS = ['bitcoin', 'nostr', 'tech', 'meta', 'jobs'] ITEM_SORTS: ['votes', 'comments', 'sats'],
export const SUBS_NO_JOBS = SUBS.filter(s => s !== 'jobs') WHENS: ['day', 'week', 'month', 'year', 'forever'],
export const USER_SORTS = ['stacked', 'spent', 'comments', 'posts', 'referrals'] ITEM_TYPES: context => {
export const ITEM_SORTS = ['votes', 'comments', 'sats']
export const WHENS = ['day', 'week', 'month', 'year', 'forever']
export const ITEM_TYPES = context => {
if (context === 'jobs') {
return ['posts', 'comments', 'all', 'freebies']
}
const items = ['all', 'posts', 'comments', 'bounties', 'links', 'discussions', 'polls'] const items = ['all', 'posts', 'comments', 'bounties', 'links', 'discussions', 'polls']
if (!context) { if (!context) {
items.push('bios', 'jobs') items.push('bios', 'jobs')
@ -41,10 +39,9 @@ export const ITEM_TYPES = context => {
items.push('jobs', 'bookmarks') items.push('jobs', 'bookmarks')
} }
return items return items
},
OLD_ITEM_DAYS: 3,
ANON_USER_ID: 27,
ANON_POST_FEE: 1000,
ANON_COMMENT_FEE: 100,
} }
export const OLD_ITEM_DAYS = 3
export const ANON_USER_ID = 27
export const ANON_POST_FEE = 1000
export const ANON_COMMENT_FEE = 100