This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add describe consumer group to adminApi * Port view and view model from previous version * Draft consumer group view * Reorganize insulator.di package * Style treeview * Fix PR lint * Add integration test for kafka conmsumer group * Add integration test for the consumer group view * Use dark theme in integration tests * Fix PR lint * Update Readme.md * Update Readme.md Co-authored-by: Auto Lint <[email protected]>
- Loading branch information
1 parent
479036d
commit 6a10587
Showing
30 changed files
with
480 additions
and
83 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
nrame: Release | ||
name: Release | ||
|
||
on: | ||
push: | ||
|
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
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
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
32 changes: 32 additions & 0 deletions
32
app/src/main/kotlin/insulator/di/ConsumerGroupComponent.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,32 @@ | ||
package insulator.di | ||
|
||
import dagger.BindsInstance | ||
import dagger.Component | ||
import insulator.CachedFactory | ||
import insulator.kafka.model.Cluster | ||
import insulator.views.main.consumergroup.ConsumerGroupView | ||
import javax.inject.Inject | ||
import javax.inject.Scope | ||
|
||
@Scope | ||
annotation class ConsumerGroupScope | ||
data class ConsumerGroupId(val id: String) | ||
|
||
class ConsumerGroupComponentFactory @Inject constructor(clusterComponent: ClusterComponent) : | ||
CachedFactory<ConsumerGroupId, ConsumerGroupComponent>({ consumerGroup: ConsumerGroupId -> | ||
DaggerConsumerGroupComponent.factory().build(clusterComponent, consumerGroup) | ||
}) | ||
|
||
@ConsumerGroupScope | ||
@Component(dependencies = [ClusterComponent::class]) | ||
interface ConsumerGroupComponent { | ||
|
||
@Component.Factory | ||
interface Factory { | ||
fun build(component: ClusterComponent, @BindsInstance consumerGroup: ConsumerGroupId): ConsumerGroupComponent | ||
} | ||
|
||
fun cluster(): Cluster | ||
fun consumerGroupId(): ConsumerGroupId | ||
fun getConsumerGroupView(): ConsumerGroupView | ||
} |
2 changes: 1 addition & 1 deletion
2
...lator/di/components/InsulatorComponent.kt → ...kotlin/insulator/di/InsulatorComponent.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
This file was deleted.
Oops, something went wrong.
14 changes: 12 additions & 2 deletions
14
...sulator/di/components/SubjectComponent.kt → ...n/kotlin/insulator/di/SubjectComponent.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
14 changes: 12 additions & 2 deletions
14
...insulator/di/components/TopicComponent.kt → ...ain/kotlin/insulator/di/TopicComponent.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
13 changes: 0 additions & 13 deletions
13
app/src/main/kotlin/insulator/di/factories/ClusterComponentFactory.kt
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
app/src/main/kotlin/insulator/di/factories/SubjectComponentFactory.kt
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
app/src/main/kotlin/insulator/di/factories/TopicComponentFactory.kt
This file was deleted.
Oops, something went wrong.
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,40 @@ | ||
package insulator.ui.style | ||
|
||
import tornadofx.Stylesheet | ||
import tornadofx.box | ||
import tornadofx.multi | ||
import tornadofx.px | ||
|
||
class TreeViewStyle : Stylesheet() { | ||
|
||
init { | ||
root { | ||
treeView { | ||
focusColor = theme.mainColor | ||
backgroundColor = multi(theme.backgroundColor) | ||
borderColor = multi(box(theme.backgroundColor)) | ||
backgroundInsets = multi(box(0.0.px)) | ||
padding = box(0.px, -theme.viewPadding) | ||
|
||
treeCell { | ||
padding = box(10.0.px) | ||
borderRadius = multi(box(30.0.px)) | ||
textFill = theme.black | ||
|
||
and(even) { backgroundColor = multi(theme.backgroundColor) } | ||
and(odd) { backgroundColor = multi(theme.backgroundColor) } | ||
and(hover) { | ||
backgroundColor = multi(theme.mainColor) | ||
} | ||
and(focused) { | ||
backgroundColor = multi(theme.mainColor) | ||
} | ||
} | ||
|
||
arrow { | ||
backgroundColor = multi(theme.black) | ||
} | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.