Files
planka/client/src/constants/Config.js

34 lines
854 B
JavaScript
Raw Normal View History

/*!
* Copyright (c) 2024 PLANKA Software GmbH
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
const SERVER_BASE_URL =
import.meta.env.VITE_SERVER_BASE_URL || (import.meta.env.DEV ? 'http://localhost:1337' : '');
2019-08-31 04:07:25 +05:00
const ACCESS_TOKEN_KEY = 'accessToken';
const ACCESS_TOKEN_VERSION_KEY = 'accessTokenVersion';
const ACCESS_TOKEN_VERSION = '1';
2019-08-31 04:07:25 +05:00
const POSITION_GAP = 65536;
const CARDS_LIMIT = 50;
const COMMENTS_LIMIT = 50;
2022-08-04 13:31:14 +02:00
const ACTIVITIES_LIMIT = 50;
2019-08-31 04:07:25 +05:00
const MAX_SIZE_IN_BYTES_TO_DISPLAY_CONTENT = 256 * 1024;
const IS_MAC = navigator.platform.startsWith('Mac');
2019-08-31 04:07:25 +05:00
export default {
SERVER_BASE_URL,
ACCESS_TOKEN_KEY,
ACCESS_TOKEN_VERSION_KEY,
ACCESS_TOKEN_VERSION,
2019-08-31 04:07:25 +05:00
POSITION_GAP,
CARDS_LIMIT,
COMMENTS_LIMIT,
2022-08-04 13:31:14 +02:00
ACTIVITIES_LIMIT,
MAX_SIZE_IN_BYTES_TO_DISPLAY_CONTENT,
IS_MAC,
2019-08-31 04:07:25 +05:00
};