Skip to content

Commit

Permalink
GH-1853 List sponsors at startup & update sponsors list πŸ’œ (Resolve #1853
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dzikoysk committed Jul 6, 2023
1 parent 7e6a833 commit ee0e529
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
8 changes: 5 additions & 3 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ Thanks to all contributors and people that decided to support my work financiall
<td>
<a href="https://github.com/milkyway0308">milkyway0308</a>,
<a href="https://github.com/andrm">andrm</a>,
<a href="https://github.com/insertt">insertt</a>,
<a href="https://github.com/oskarscot">oskarscot</a>,
<a href="https://github.com/insertt">insertt</a>,
Andreas R.,
<a href="https://github.com/rdehuyss">rdehuyss</a>,
<a href="https://github.com/Koressi">Koressi</a>,
<a href="https://github.com/tipsy">tipsy</a>,
<a href="https://github.com/Kamilkime">Kamilkime</a>,
Expand All @@ -105,7 +106,7 @@ Thanks to all contributors and people that decided to support my work financiall
<a href="https://github.com/crejk">crejk</a>,
<a href="https://github.com/Rollczi">Rollczi</a>,
<a href="https://github.com/scheidtp">scheidtp</a>,
Andreas R.
<a href="https://github.com/Szczurowsky">Szczurowsky</a>,
</td>
</tr>
<tr>
Expand All @@ -128,6 +129,7 @@ Thanks to all contributors and people that decided to support my work financiall
<a href="https://github.com/Szczurowsky">Szczurowsky</a>,
<a href="https://github.com/that-apex">that-apex</a>,
<a href="https://github.com/Kamilkime">Kamilkime</a>,
<a href="https://github.com/oskarscot">oskarscot</a>,
<a href="https://github.com/zugazagoitia">zugazagoitia</a>,
<a href="https://github.com/FlawCra">FlawCra</a>,
<a href="https://github.com/mattwelke">mattwelke</a>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ object ReposiliteFactory {
)

journalist.logger.info("")
journalist.logger.info("${Effect.GREEN}Reposilite ${Effect.RESET}$VERSION")
journalist.logger.info("${Effect.MAGENTA_BOLD}Reposilite $VERSION${Effect.RESET}")
journalist.logger.info("")
journalist.logger.info("--- Environment")
journalist.logger.info("Platform: ${System.getProperty("java.version")} (${System.getProperty("os.name")} :: ${System.getProperty("os.arch")})")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ class AuthenticationFacade(
accessTokenFacade.getAccessTokenById(identifier)
?.let {
SessionDetails(
it,
accessTokenFacade.getPermissions(it.identifier),
accessTokenFacade.getRoutes(it.identifier)
accessToken = it,
permissions = accessTokenFacade.getPermissions(it.identifier),
routes = accessTokenFacade.getRoutes(it.identifier)
)
}
?.asSuccess()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,11 @@ internal class ConsolePlugin : ReposilitePlugin() {
if (!parameters().testEnv) {
event { _: ReposiliteStartedEvent ->
reposilite().ioService.execute {
consoleFacade.executeCommand("help")
logger.info("")
logger.info("Collecting status metrics...")
logger.info("")
consoleFacade.executeCommand("status")
logger.info("")
logger.info("Startup done! For help, type 'help' or '?'")
logger.info("For help, type 'help' or '?'")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.reposilite.status.application

import com.reposilite.VERSION
import com.reposilite.configuration.local.LocalConfiguration
import com.reposilite.console.ConsoleFacade
import com.reposilite.plugin.api.Plugin
Expand All @@ -40,6 +41,7 @@ import com.reposilite.web.api.RoutingSetupEvent
import panda.std.reactive.Completable
import panda.std.reactive.Reference.Dependencies.dependencies
import panda.std.reactive.Reference.computed
import panda.utilities.console.Effect
import java.nio.file.Files
import java.nio.file.StandardOpenOption

Expand Down Expand Up @@ -84,8 +86,15 @@ internal class StatusPlugin : ReposilitePlugin() {
}

event { _: ReposiliteStartedEvent ->
logger.info("Done (${TimeUtils.getPrettyUptimeInSeconds(statusFacade.getUptime())})!")
logger.info("")
logger.info("${Effect.GREEN}Done (${TimeUtils.getPrettyUptimeInSeconds(statusFacade.getUptime())})!${Effect.RESET}")
logger.info("")
logger.info("${Effect.YELLOW_BOLD}$VERSION version has been sponsored by:${Effect.RESET}")
logger.info(" ${Effect.BOLD}milkyway0308, andrm, Koressi, insertt, Andreas R., rdehuyss")
logger.info(" tipsy, Kamilkime, that-apex")
logger.info(" neg4n, mattwelke, crejk, scheidtp, Rollczi, Szczurowsky")
logger.info("")
logger.info("${Effect.RESET}")
}

event { _: ReposiliteStartedEvent ->
Expand Down

0 comments on commit ee0e529

Please sign in to comment.