up
This commit is contained in:
13
app/main.go
13
app/main.go
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user