diff --git a/app.go b/app.go
index 1723e20..83b71d9 100644
--- a/app.go
+++ b/app.go
@@ -6,6 +6,7 @@ import (
"fmt"
"io/fs"
"os"
+
//"path/filepath"
//"time"
@@ -53,7 +54,8 @@ func NewApp() *App {
// startup вызывается при запуске приложения
func (a *App) startup(ctx context.Context) {
a.ctx = ctx
- runtime.WindowSetTitle(ctx, "v1.0.1")
+ runtime.WindowSetTitle(ctx, "v1.0.2")
+ runtime.WindowSetPosition(ctx, 1500, 80)
}
// GetProjects возвращает список последних проектов
@@ -92,6 +94,19 @@ func (a *App) StartServer(s string) string {
return "starting server"
}
+// StartServer - запускает сервер на выполнение
+func (a *App) StartFar(s string) string {
+ runtime.LogInfo(a.ctx, s)
+ cmd := fmt.Sprintf("far \"%s\" \"%s\"", s, s)
+ far := subprocess.New(cmd)
+ err := far.Exec()
+ if err != nil {
+ runtime.LogError(a.ctx, err.Error())
+ }
+ runtime.LogInfo(a.ctx, fmt.Sprintf("команда выполнена успешно"))
+ return "ok"
+}
+
func (a *App) Weed() {
os.Chdir("d:\\projects\\nano\\sw4-nano\\util")
//s := subprocess.New(".\\"+name+".exe")
@@ -101,7 +116,7 @@ func (a *App) Weed() {
if err != nil {
runtime.LogError(a.ctx, err.Error())
}
- runtime.LogInfo(a.ctx, fmt.Sprintf("команда выполнена успешно"))
+ runtime.LogInfo(a.ctx, "команда выполнена успешно")
}
func getCountPics(dir string) int {
diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte
index b655f80..39162b5 100644
--- a/frontend/src/App.svelte
+++ b/frontend/src/App.svelte
@@ -1,52 +1,58 @@