22 Commits
1.0.0 ... 1.0.1

Author SHA1 Message Date
b8ca5dc498 added ST#24 2019-06-14 14:23:18 +02:00
dbdba120c3 tested Akzeptanztests 2019-06-14 14:20:59 +02:00
33a46c4cbf added sync systemtests 2019-06-14 12:35:45 +02:00
d81aa56e49 Server Version in Cargo.toml -> '1.0.1' 2019-06-14 12:27:38 +02:00
95496536db Worarround for #43 #44
Use 'invisible' ViewTransition (0.01 seconds)
Fixes #43
Fixes #44
2019-06-14 12:19:55 +02:00
8f3b61462a remove TODO in Systemtests 2019-06-14 12:09:19 +02:00
cff5ec76bf Merge branch 'master' of git.mosad.xyz:localhorst/TextureSync 2019-06-14 12:07:58 +02:00
1bbfe800e1 fix '1.0.0-beta' -> '1.0.0'
'1.0.0-beta' does not exist.
2019-06-14 12:06:37 +02:00
c722a39116 first set of systemtests 2019-06-14 11:52:00 +02:00
911983bff4 don't crash if the previously selected export directory doesn't exist 2019-06-14 11:38:20 +02:00
6feb1c3dad Merge branch 'master' of git.mosad.xyz:localhorst/TextureSync 2019-06-14 11:29:35 +02:00
7da58c7dbe Fix #42, dont load IP from File, if auto-connected 2019-06-14 11:28:43 +02:00
86c05c0363 show width x height, not the other way round 2019-06-14 11:18:58 +02:00
a3c03c4bc7 Make search for texture name case-insensitive
Fixes #47
2019-06-14 11:12:56 +02:00
9444e8198f Repeat Test MT#10 in module tests 2019-06-14 10:37:14 +02:00
730a0ab383 Fix "fix #46" 2019-06-14 01:14:01 +02:00
a10e2aceb6 Revert "fix #46"
This reverts commit f0fe4bb981.
2019-06-14 01:12:33 +02:00
f0fe4bb981 fix #46 2019-06-14 01:09:30 +02:00
32883a2639 Merge branch 'master' of git.mosad.xyz:localhorst/TextureSync 2019-06-14 01:01:23 +02:00
0e293768d7 integrationstest ausfüllen 2019-06-14 01:00:52 +02:00
6a5b2f555c Do the module tests 2019-06-14 00:48:48 +02:00
8d210d756d Integrationstest: Ergebnisbeschreibung präzisiert. 2019-06-14 00:36:04 +02:00
16 changed files with 139591 additions and 72407 deletions

View File

@ -27,7 +27,7 @@ compileTestKotlin {
}
group 'org.hso'
version '1.0'
version '1.0.1'
archivesBaseName = 'TextureSync'
mainClassName = 'org.hso.texturesyncclient.app.Main'

View File

@ -18,9 +18,7 @@ import org.hso.texturesyncclient.view.mainView.MainView
import org.hso.texturesyncclient.view.mainView.MainViewController
import org.hso.texturesyncclient.view.startupView.StartupView
import org.hso.texturesyncclient.view.startupView.StartupViewController
import tornadofx.Controller
import tornadofx.find
import tornadofx.observable
import tornadofx.*
import java.io.File
import java.io.FileOutputStream
import java.io.IOException
@ -51,7 +49,7 @@ class RootController : Controller() {
val uuid = UUID.randomUUID()
val format = if (File(path).extension.toLowerCase() == "png") TextureFormat.PNG else TextureFormat.JPEG
val bimg = ImageIO.read(File(path)) //image for obtaining resolution
val resolution = Pair(bimg.height, bimg.width)
val resolution = Pair(bimg.width, bimg.height)
val cal = Calendar.getInstance() //calendar obj with current time
val hash = Sha256(data)
@ -103,6 +101,8 @@ class RootController : Controller() {
println("[auto] Connection to Server successful")
switchStartupToMain()
showAll()
return // abort
} else {
println("[auto] no server found")
}
@ -119,6 +119,8 @@ class RootController : Controller() {
println("[file] Connection to Server successful")
switchStartupToMain()
showAll()
return // abort
} catch (e: Exception) {
println(e)
println("[file] Connection to Server NOT successful")
@ -137,6 +139,8 @@ class RootController : Controller() {
switchStartupToMain()
showAll()
println("swithing to MainView @ initCon")
return // abort
} catch (e: Exception) {
println(e)
println("Connection to Server NOT successful")
@ -183,7 +187,7 @@ class RootController : Controller() {
fun exportTexture(data: Texture) {
val directoryChooser = DirectoryChooser()
directoryChooser.title = "Export Verzeichnis wählen"
directoryChooser.initialDirectory = File(lastExportDir)
directoryChooser.initialDirectory = if(File(lastExportDir).exists()) File(lastExportDir) else File(System.getProperty("user.home"))
val alertExport = JFXInfoAlert(
@ -295,20 +299,20 @@ class RootController : Controller() {
fun switchStartupToMain() {
Platform.runLater {
find(StartupView::class).replaceWith(MainView::class, sizeToScene = true, centerOnScreen = true)
find(StartupView::class).replaceWith(MainView::class, ViewTransition.FadeThrough(0.01.seconds))
}
}
// These runLater calls should be unnecessary
fun switchMainToImport() {
Platform.runLater {
find(MainView::class).replaceWith(ImportView::class, sizeToScene = true, centerOnScreen = true)
find(MainView::class).replaceWith(ImportView::class, ViewTransition.FadeThrough(0.01.seconds))
}
}
fun switchImportToMain() {
Platform.runLater {
find(ImportView::class).replaceWith(MainView::class, sizeToScene = true, centerOnScreen = true)
find(ImportView::class).replaceWith(MainView::class, ViewTransition.FadeThrough(0.01.seconds))
}
}
}

View File

@ -49,9 +49,7 @@ class ImportViewController : Controller() {
fun btnImportAction() {
rootc.importTexture(iv.tfFilePath.text, iv.tfName.text, iv.cvTags.chips)
RootController.switchImportToMain()
iv.tfFilePath.clear()
iv.tfName.clear()
iv.cvTags.chips.clear()
reset()
}
fun validateImport() {
@ -61,8 +59,13 @@ class ImportViewController : Controller() {
fun btnBackAction() {
RootController.switchImportToMain()
reset()
}
fun reset() {
iv.tfFilePath.clear()
iv.tfName.clear()
iv.cvTags.chips.clear()
iv.preview.root.isVisible = false
}
}

View File

@ -60,7 +60,7 @@ class MainViewController : Controller() {
}
}
// DetailView actions
// MainView actions
fun cvSearchAction(tags: ObservableList<String>) {
// show spinner, block ui

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -1,6 +1,6 @@
[package]
name = "texture-sync-server"
version = "1.0.0"
version = "1.0.1"
authors = ["CodeSteak <codesteak@shellf.art>"]
edition = "2018"
@ -10,4 +10,4 @@ serde = { version = "1.0.90", features = ["derive"] }
serde_json = "1.0.39"
sha2 = "0.8.0"
lovecraft = "0.2.0"
num_cpus = "1.0"
num_cpus = "1.0"

View File

@ -66,7 +66,7 @@ impl QueryFilter {
SpecialInName(name) => Score::RequiredMatch(
//
texture.name.contains(name),
texture.name.to_lowercase().contains(&name.to_lowercase()),
),
SpecialBeforeDate(date) => Score::RequiredMatch(texture.added_on <= *date),