mirror of
https://github.com/plankanban/planka.git
synced 2025-12-19 09:13:20 +03:00
34 lines
854 B
JavaScript
Executable File
34 lines
854 B
JavaScript
Executable File
/*!
|
|
* 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' : '');
|
|
|
|
const ACCESS_TOKEN_KEY = 'accessToken';
|
|
const ACCESS_TOKEN_VERSION_KEY = 'accessTokenVersion';
|
|
const ACCESS_TOKEN_VERSION = '1';
|
|
|
|
const POSITION_GAP = 65536;
|
|
const CARDS_LIMIT = 50;
|
|
const COMMENTS_LIMIT = 50;
|
|
const ACTIVITIES_LIMIT = 50;
|
|
|
|
const MAX_SIZE_IN_BYTES_TO_DISPLAY_CONTENT = 256 * 1024;
|
|
|
|
const IS_MAC = navigator.platform.startsWith('Mac');
|
|
|
|
export default {
|
|
SERVER_BASE_URL,
|
|
ACCESS_TOKEN_KEY,
|
|
ACCESS_TOKEN_VERSION_KEY,
|
|
ACCESS_TOKEN_VERSION,
|
|
POSITION_GAP,
|
|
CARDS_LIMIT,
|
|
COMMENTS_LIMIT,
|
|
ACTIVITIES_LIMIT,
|
|
MAX_SIZE_IN_BYTES_TO_DISPLAY_CONTENT,
|
|
IS_MAC,
|
|
};
|