commonMain.com.saveourtool.save.utils.Constants.kt Maven / Gradle / Ivy
The newest version!
/**
* Module with defined constants
*/
@file:JsExport
package com.saveourtool.save.utils
import kotlin.js.JsExport
/**
* Link to save-cloud on GitHub
*/
const val SAVE_CLOUD_GITHUB_URL = "https://github.com/saveourtool/save-cloud"
/**
* Delimiter used in database
*/
const val DATABASE_DELIMITER = ","
/**
* Delimiter used to combine a list to show to user
*/
const val PRETTY_DELIMITER = ", "
/**
* Delimiter used in URL path
*/
const val URL_PATH_DELIMITER = "/"
/**
* Period in ms for debounce on frontend
*/
const val DEFAULT_DEBOUNCE_PERIOD = 250
/**
* Period in ms for ace editor debouncing
*/
const val DEBOUNCE_PERIOD_FOR_EDITORS = 250
/**
* Number of characters of git commit hash that should be displayed
*/
const val GIT_HASH_PREFIX_LENGTH = 6
/**
* Part name for multipart-data uploading a file
*/
const val FILE_PART_NAME = "file"
/**
* A custom header for `Content-Length`
*/
const val CONTENT_LENGTH_CUSTOM = "Content-Length-Custom"
/**
* `X-Authorization-Source`, used to specify an _OAuth_ provider (`basic`,
* `github`, `dex`, etc.).
*/
const val AUTHORIZATION_SOURCE = "X-Authorization-Source"
/**
* Default time to execute setup.sh
*/
@Suppress("NON_EXPORTABLE_TYPE")
const val DEFAULT_SETUP_SH_TIMEOUT_MILLIS: Long = 60_000L
© 2015 - 2025 Weber Informatics LLC | Privacy Policy