refactor project structure

This commit is contained in:
Denis-Cosmin Nutiu 2024-03-23 23:20:19 +02:00
parent a91cee861a
commit 13c41be45e
8 changed files with 14 additions and 14 deletions

View file

@ -24,8 +24,8 @@ tasks.withType(JavaCompile) {
}
application {
mainModule = 'com.nuculabs.dev.imagetagger.ui'
mainClass = 'com.nuculabs.dev.imagetagger.ui.MainPage'
mainModule = 'dev.nuculabs.imagetagger.ui'
mainClass = 'dev.nuculabs.imagetagger.ui.MainPage'
}
kotlin {
jvmToolchain( 17 )

View file

@ -1,4 +1,4 @@
module com.nuculabs.dev.imagetagger.ui {
module dev.nuculabs.imagetagger.ui {
requires javafx.controls;
requires javafx.graphics;
requires javafx.fxml;
@ -15,7 +15,7 @@ module com.nuculabs.dev.imagetagger.ui {
requires org.kordamp.ikonli.fontawesome5;
requires kotlinx.coroutines.core;
opens com.nuculabs.dev.imagetagger.ui to javafx.fxml, javafx.graphics;
opens com.nuculabs.dev.imagetagger.ui.controls to javafx.fxml, javafx.graphics;
exports com.nuculabs.dev.imagetagger.ui;
opens dev.nuculabs.imagetagger.ui to javafx.fxml, javafx.graphics;
opens dev.nuculabs.imagetagger.ui.controls to javafx.fxml, javafx.graphics;
exports dev.nuculabs.imagetagger.ui;
}

View file

@ -1,4 +1,4 @@
package com.nuculabs.dev.imagetagger.tag_prediction
package dev.nuculabs.imagetagger.ai
import ai.onnxruntime.OnnxTensor
import ai.onnxruntime.OrtEnvironment

View file

@ -1,6 +1,6 @@
package com.nuculabs.dev.imagetagger.ui
package dev.nuculabs.imagetagger.ui
import com.nuculabs.dev.imagetagger.tag_prediction.ImageTagsPrediction
import dev.nuculabs.imagetagger.ai.ImageTagsPrediction
import javafx.application.Application
import javafx.fxml.FXMLLoader
import javafx.scene.Scene

View file

@ -1,7 +1,7 @@
package com.nuculabs.dev.imagetagger.ui
package dev.nuculabs.imagetagger.ui
import com.nuculabs.dev.imagetagger.tag_prediction.ImageTagsPrediction
import com.nuculabs.dev.imagetagger.ui.controls.ImageTagsEntryControl
import dev.nuculabs.imagetagger.ai.ImageTagsPrediction
import dev.nuculabs.imagetagger.ui.controls.ImageTagsEntryControl
import javafx.application.Platform
import javafx.fxml.FXML
import javafx.scene.control.ProgressBar

View file

@ -1,4 +1,4 @@
package com.nuculabs.dev.imagetagger.ui.controls
package dev.nuculabs.imagetagger.ui.controls
import javafx.fxml.FXML
import javafx.fxml.FXMLLoader
import javafx.scene.control.TextArea

View file

@ -5,7 +5,7 @@
<?import javafx.scene.layout.*?>
<?import org.kordamp.ikonli.javafx.FontIcon?>
<BorderPane prefHeight="537.0" prefWidth="725.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/17.0.2-ea" fx:controller="com.nuculabs.dev.imagetagger.ui.MainPageController">
<BorderPane prefHeight="537.0" prefWidth="725.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/17.0.2-ea" fx:controller="dev.nuculabs.imagetagger.ui.MainPageController">
<padding>
<Insets bottom="20.0" left="30.0" right="30.0" top="20.0" />
</padding>