Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add project dashboard page #915 - fix tests
- Loading branch information
Showing
6 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../tolgee/MigrationJobsCommandLineRunner.kt → ...Runners/MigrationJobsCommandLineRunner.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tolgee/SocketIoServerCommandLineRunner.kt → ...unners/SocketIoServerCommandLineRunner.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
backend/app/src/main/kotlin/io/tolgee/commandLineRunners/StartupImportCommandLineRunner.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package io.tolgee.commandLineRunners | ||
|
||
import io.tolgee.configuration.tolgee.TolgeeProperties | ||
import io.tolgee.service.StartupImportService | ||
import org.springframework.boot.CommandLineRunner | ||
import org.springframework.context.ApplicationListener | ||
import org.springframework.context.event.ContextClosedEvent | ||
import org.springframework.stereotype.Component | ||
|
||
@Component | ||
class StartupImportCommandLineRunner( | ||
val tolgeeProperties: TolgeeProperties, | ||
val startupImportService: StartupImportService | ||
) : | ||
CommandLineRunner, ApplicationListener<ContextClosedEvent> { | ||
override fun run(vararg args: String) { | ||
startupImportService.importFiles() | ||
} | ||
|
||
override fun onApplicationEvent(event: ContextClosedEvent) { | ||
// we don't need to do anything on context close | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters