2021-05-18 16:57:33 +02:00
|
|
|
@file:Suppress("FunctionName")
|
|
|
|
|
|
|
|
package analytics_html_img
|
|
|
|
|
|
|
|
import utils.byProperty
|
|
|
|
|
|
|
|
internal object Common {
|
|
|
|
const val GITHUB_API = "https://api.github.com"
|
2021-05-18 17:06:30 +02:00
|
|
|
val GH_TOKEN get() = "GH_TOKEN".byProperty
|
2021-05-18 16:57:33 +02:00
|
|
|
fun START_SECTION(tagName: String = "HTI") = "<!--START_SECTION:$tagName-->"
|
|
|
|
fun END_SECTION(tagName: String = "HTI") = "<!--END_SECTION:$tagName-->"
|
|
|
|
const val USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:88.0) Gecko/20100101 Firefox/88.0"
|
|
|
|
}
|
|
|
|
|
|
|
|
internal data class GithubFileContent(
|
|
|
|
val decryptedContent: String,
|
|
|
|
val sha: String
|
|
|
|
)
|