Skip to content

Commit

Permalink
Merge pull request #6 from MDalfre/develop
Browse files Browse the repository at this point in the history
New release
  • Loading branch information
MDalfre committed Aug 11, 2021
2 parents 38e7375 + 38239ba commit a9d8175
Show file tree
Hide file tree
Showing 12 changed files with 306 additions and 72 deletions.
Binary file modified .github/images/prtsc1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/images/prtsc2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Simple generic Amazon SQS client designed to make asynchronous applications that
- List all queues;
- Produce (Send) messages;
- Consume (Receive) messages;
- Show message details.
- Show message details;
- Create Queue;
- Create configuration file for AWS LocalStack.

SR-SQS is able to act as a generic consumer and producer to ensure your application workflow is running well.

Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group = "ma.dalfre"
version = "1.0.1"
version = "1.1.1"

repositories {
mavenCentral()
Expand All @@ -36,7 +36,7 @@ compose.desktop {
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "sr-sqs"
packageVersion = "1.0.1"
packageVersion = "1.1.1"
windows {
console = false
menuGroup = "Sr Sqs"
Expand Down
15 changes: 13 additions & 2 deletions src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
@@ -1,26 +1,37 @@
// Copyright 2000-2021 JetBrains s.r.o. and contributors.
// Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
import androidx.compose.desktop.Window
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.material.MaterialTheme
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.IntSize
import commons.backgroundBlue
import components.mainView
import components.topBar
import service.ConnectionService
import service.LogService

const val DEFAULT_WIDTH = 1280
const val DEFAULT_HEIGHT = 790
val logService: LogService = LogService()
var connectionService: ConnectionService? = null

fun main() = Window(
title = "SR SQS",
size = IntSize(DEFAULT_WIDTH, DEFAULT_HEIGHT),
resizable = false
) {
MaterialTheme {
Row {

Row(
Modifier.background(backgroundBlue)
) {
mainView(logService)
}
Column {
topBar(logService)
}
}
}

7 changes: 7 additions & 0 deletions src/main/kotlin/commons/DefaultColors.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package commons

import androidx.compose.ui.graphics.Color

val backgroundBlue = Color(0xFF0d2a3b)
val lightBlue = Color(0xFF5f98ba)
val orange = Color(0xFFD7840E)
9 changes: 7 additions & 2 deletions src/main/kotlin/components/AlertDialog.kt
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
package components

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.material.ContentAlpha
import androidx.compose.material.LocalContentAlpha
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.Modifier
import androidx.compose.ui.window.v1.Dialog
import commons.backgroundBlue


@Composable
fun dialog(
fun defaultDialog(
title: String,
body: String
) {
Dialog(
onDismissRequest = {},
content = {
Column {
Column(
modifier = Modifier.background(backgroundBlue),
) {
Text(title)
CompositionLocalProvider(LocalContentAlpha provides ContentAlpha.medium) {
Text(body, style = MaterialTheme.typography.body2)
Expand Down
14 changes: 10 additions & 4 deletions src/main/kotlin/components/DefaultTextField.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import commons.lightBlue

@Composable
fun defaultTextField(
Expand All @@ -29,17 +31,19 @@ fun defaultTextField(
text = text,
modifier = Modifier.padding(start = 3.dp),
style = TextStyle(fontSize = 13.sp),
color = Color.Gray
color = lightBlue
)
BasicTextField(
value = value,
textStyle = TextStyle(color = Color.White),
cursorBrush = SolidColor(Color.Gray),
singleLine = true,
onValueChange = onValueChange,
decorationBox = { innerTextField ->
Column(
modifier
.fillMaxWidth()
.border(0.5.dp, color = Color.Gray, shape = RoundedCornerShape(5.dp))
.border(0.5.dp, color = lightBlue, shape = RoundedCornerShape(5.dp))
.height(30.dp)
.padding(5.dp)
) {
Expand All @@ -64,17 +68,19 @@ fun defaultTextEditor(
text = text,
modifier = Modifier.padding(start = 3.dp),
style = TextStyle(fontSize = 13.sp),
color = Color.Gray
color = lightBlue
)
BasicTextField(
value = value,
textStyle = TextStyle(color = Color.White),
cursorBrush = SolidColor(Color.Gray),
singleLine = false,
onValueChange = onValueChange,
decorationBox = { innerTextField ->
Column(
modifier
.fillMaxWidth()
.border(0.5.dp, color = Color.Gray, shape = RoundedCornerShape(5.dp))
.border(0.5.dp, color = lightBlue, shape = RoundedCornerShape(5.dp))
.height(30.dp)
.padding(5.dp)
) {
Expand Down
Loading

0 comments on commit a9d8175

Please sign in to comment.