mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-03 10:54:38 -05:00
Rename the project (#795)
This commit is contained in:
@@ -23,7 +23,7 @@ object SettingsController {
|
||||
handler(
|
||||
documentWith = {
|
||||
withOperation {
|
||||
summary("About Tachidesk")
|
||||
summary("About Suwayomi-Server")
|
||||
description("Returns some static info about the current app build")
|
||||
}
|
||||
},
|
||||
@@ -40,7 +40,7 @@ object SettingsController {
|
||||
handler(
|
||||
documentWith = {
|
||||
withOperation {
|
||||
summary("Tachidesk update check")
|
||||
summary("Suwayomi-Server update check")
|
||||
description("Check for app updates")
|
||||
}
|
||||
},
|
||||
|
||||
@@ -23,8 +23,8 @@ data class UpdateDataClass(
|
||||
)
|
||||
|
||||
object AppUpdate {
|
||||
private const val LATEST_STABLE_CHANNEL_URL = "https://api.github.com/repos/Suwayomi/Tachidesk/releases/latest"
|
||||
private const val LATEST_PREVIEW_CHANNEL_URL = "https://api.github.com/repos/Suwayomi/Tachidesk-preview/releases/latest"
|
||||
private const val LATEST_STABLE_CHANNEL_URL = "https://api.github.com/repos/Suwayomi/Suwayomi-Server/releases/latest"
|
||||
private const val LATEST_PREVIEW_CHANNEL_URL = "https://api.github.com/repos/Suwayomi/Suwayomi-Server-preview/releases/latest"
|
||||
|
||||
private val json: Json by injectLazy()
|
||||
private val network: NetworkHelper by injectLazy()
|
||||
|
||||
@@ -15,7 +15,7 @@ import io.javalin.http.Context
|
||||
import io.javalin.websocket.WsContext
|
||||
|
||||
/**
|
||||
* Custom logic for how Tachidesk should create its context given the [Context]
|
||||
* Custom logic for how Suwayomi-Server should create its context given the [Context]
|
||||
*/
|
||||
class TachideskGraphQLContextFactory : GraphQLContextFactory<GraphQLContext, Context> {
|
||||
override suspend fun generateContextMap(request: Context): Map<*, Any> = emptyMap<Any, Any>()
|
||||
|
||||
@@ -155,13 +155,13 @@ object JavalinSetup {
|
||||
val applicationInfo =
|
||||
Info().apply {
|
||||
version("1.0")
|
||||
description("Tachidesk Api")
|
||||
description("Suwayomi-Server Api")
|
||||
}
|
||||
return OpenApiOptions(applicationInfo).apply {
|
||||
path("/api/openapi.json")
|
||||
swagger(
|
||||
SwaggerOptions("/api/swagger-ui").apply {
|
||||
title("Tachidesk Swagger Documentation")
|
||||
title("Suwayomi-Server Swagger Documentation")
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ fun applicationSetup() {
|
||||
// gql "notprivacysafe" logs every received request multiple times (received, parsing, validating, executing)
|
||||
setupLogLevelUpdating(serverConfig.gqlDebugLogsEnabled, listOf("graphql", "notprivacysafe"), Level.WARN)
|
||||
|
||||
logger.info("Running Tachidesk ${BuildConfig.VERSION} revision ${BuildConfig.REVISION}")
|
||||
logger.info("Running Suwayomi-Server ${BuildConfig.VERSION} revision ${BuildConfig.REVISION}")
|
||||
|
||||
logger.debug {
|
||||
"Loaded config:\n" +
|
||||
@@ -196,7 +196,7 @@ fun applicationSetup() {
|
||||
logger.error("Exception while copying Local source's icon", e)
|
||||
}
|
||||
|
||||
// fixes #119 , ref: https://github.com/Suwayomi/Tachidesk-Server/issues/119#issuecomment-894681292 , source Id calculation depends on String.lowercase()
|
||||
// fixes #119 , ref: https://github.com/Suwayomi/Suwayomi-Server/issues/119#issuecomment-894681292 , source Id calculation depends on String.lowercase()
|
||||
Locale.setDefault(Locale.ENGLISH)
|
||||
|
||||
databaseUp()
|
||||
|
||||
@@ -19,7 +19,7 @@ enum class ExitCode(val code: Int) {
|
||||
}
|
||||
|
||||
fun shutdownApp(exitCode: ExitCode) {
|
||||
logger.info("Shutting Down Tachidesk. Goodbye!")
|
||||
logger.info("Shutting Down Suwayomi-Server. Goodbye!")
|
||||
|
||||
exitProcess(exitCode.code)
|
||||
}
|
||||
|
||||
@@ -67,9 +67,9 @@ object AppMutex {
|
||||
logger.info("Mutex status is clear, Resuming startup.")
|
||||
}
|
||||
AppMutexState.TachideskInstanceRunning -> {
|
||||
logger.info("Another instance of Tachidesk is running on $appIP:${serverConfig.port.value}")
|
||||
logger.info("Another instance of Suwayomi-Server is running on $appIP:${serverConfig.port.value}")
|
||||
|
||||
logger.info("Probably user thought tachidesk is closed so, opening webUI in browser again.")
|
||||
logger.info("Probably user thought Suwayomi-Server is closed so, opening webUI in browser again.")
|
||||
openInBrowser()
|
||||
|
||||
logger.info("Aborting startup.")
|
||||
@@ -77,7 +77,7 @@ object AppMutex {
|
||||
shutdownApp(MutexCheckFailedTachideskRunning)
|
||||
}
|
||||
AppMutexState.OtherApplicationRunning -> {
|
||||
logger.error("A non Tachidesk application is running on $appIP:${serverConfig.port.value}, aborting startup.")
|
||||
logger.error("A non Suwayomi-Server application is running on $appIP:${serverConfig.port.value}, aborting startup.")
|
||||
shutdownApp(MutexCheckFailedAnotherAppRunning)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ object SystemTray {
|
||||
|
||||
mainMenu.add(
|
||||
MenuItem(
|
||||
"Open Tachidesk",
|
||||
"Open Suwayomi",
|
||||
) {
|
||||
openInBrowser()
|
||||
},
|
||||
|
||||
@@ -102,10 +102,10 @@ enum class WebUIFlavor(
|
||||
) {
|
||||
WEBUI(
|
||||
"WebUI",
|
||||
"https://github.com/Suwayomi/Tachidesk-WebUI-preview",
|
||||
"https://raw.githubusercontent.com/Suwayomi/Tachidesk-WebUI/master/versionToServerVersionMapping.json",
|
||||
"https://api.github.com/repos/Suwayomi/Tachidesk-WebUI-preview/releases/latest",
|
||||
"Tachidesk-WebUI",
|
||||
"https://github.com/Suwayomi/Suwayomi-WebUI-preview",
|
||||
"https://raw.githubusercontent.com/Suwayomi/Suwayomi-WebUI/master/versionToServerVersionMapping.json",
|
||||
"https://api.github.com/repos/Suwayomi/Suwayomi-WebUI-preview/releases/latest",
|
||||
"Suwayomi-WebUI",
|
||||
),
|
||||
|
||||
CUSTOM(
|
||||
|
||||
Reference in New Issue
Block a user