This commit is contained in:
Hüseyin
2026-06-16 11:14:42 +03:00
parent bd08898bf1
commit d4545fb4d7
17 changed files with 778 additions and 875 deletions

View File

@@ -6,6 +6,7 @@ import (
"bordrobot/lib/srv"
"embed"
"log"
"log/slog"
"github.com/wailsapp/wails/v3/pkg/application"
)
@@ -28,6 +29,7 @@ func main() {
if err != nil {
log.Fatal(err)
}
log.Println("Uygulama baslatildi ve veritabanı hazırlandı.")
// Create a new Wails application by providing the necessary options.
// Variables 'Name' and 'Description' are for application metadata.
@@ -37,10 +39,13 @@ func main() {
run.APP = application.New(application.Options{
Name: "bordro-robotu",
Description: "A demo of using raw HTML & CSS",
Bind: []any{
&company.Company{},
&srv.Srv{},
LogLevel: slog.LevelDebug,
Services: []application.Service{
application.NewService(&company.Company{}),
application.NewService(&srv.Srv{}),
},
Assets: application.AssetOptions{
Handler: application.AssetFileServerFS(assets),
},
@@ -54,7 +59,7 @@ func main() {
// 'Mac' options tailor the window when running on macOS.
// 'BackgroundColour' is the background colour of the window.
// 'URL' is the URL that will be loaded into the webview.
run.APP.NewWebviewWindowWithOptions(application.WebviewWindowOptions{
run.APP.Window.NewWithOptions(application.WebviewWindowOptions{
Title: "Luca Bordro Robotu",
Mac: application.MacWindow{
InvisibleTitleBarHeight: 50,