~f4814n/frost

8ce23f36008a3001c34aac6bb8751d0d91bc336c — Fabian Geiselhart 10 months ago 56ea636
gofmt -w ./..
M cmd/frost/main.go => cmd/frost/main.go +3 -3
@@ 88,10 88,10 @@ func (a *App) run() error {
				var ops op.Ops
				gtx := layout.NewContext(&ops, e)
				layout.Inset{
					Top: e.Insets.Top,
					Top:    e.Insets.Top,
					Bottom: e.Insets.Bottom,
					Left: e.Insets.Left,
					Right: e.Insets.Right,
					Left:   e.Insets.Left,
					Right:  e.Insets.Right,
				}.Layout(gtx, a.view.Layout)
				e.Frame(gtx.Ops)
			case *system.CommandEvent:

M cmd/frost/platform_android.go => cmd/frost/platform_android.go +7 -7
@@ 3,24 3,24 @@
package main

import (
	"os"
	"encoding/json"
	"git.sr.ht/~f4814n/matrix"
	backend "git.sr.ht/~f4814n/matrix/backend/sqlite"
	"git.sr.ht/~f4814n/matrix/util/cache"
	"github.com/sirupsen/logrus"
	backend "git.sr.ht/~f4814n/matrix/backend/sqlite"
	"os"
)

var (
	baseDir = "/data/data/de.f4814n.frost"
	dataDir = baseDir + "/data"
	baseDir        = "/data/data/de.f4814n.frost"
	dataDir        = baseDir + "/data"
	configFilePath = baseDir + "/config.json"
	cacheDir = baseDir + "/cache"
	cacheDir       = baseDir + "/cache"
)

type Platform struct {
	Logger *logrus.Logger
	Cache cache.Cache
	Cache  cache.Cache
}

func InitPlatform() Platform {


@@ 32,7 32,7 @@ func InitPlatform() Platform {
	}

	// Initialize Logfile
	logFile, err := os.OpenFile(baseDir + "/frost.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
	logFile, err := os.OpenFile(baseDir+"/frost.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
	if err != nil {
		panic(err.Error())
	}

M cmd/frost/platform_js.go => cmd/frost/platform_js.go +3 -3
@@ 2,20 2,20 @@ package main

import (
	"git.sr.ht/~f4814n/matrix"
	"git.sr.ht/~f4814n/matrix/util/cache"
	backend "git.sr.ht/~f4814n/matrix/backend/memory"
	"git.sr.ht/~f4814n/matrix/util/cache"
	"github.com/sirupsen/logrus"
)

type Platform struct {
	log *logrus.Entry
	log   *logrus.Entry
	Cache cache.Cache
}

func InitPlatform() Platform {
	return Platform{
		Cache: new(cache.MemoryCache),
		log: logrus.WithField("component", "platform_js"),
		log:   logrus.WithField("component", "platform_js"),
	}
}


M cmd/frost/platform_linux.go => cmd/frost/platform_linux.go +2 -2
@@ 4,11 4,11 @@ package main

import (
	"encoding/json"
	"github.com/sirupsen/logrus"
	"fmt"
	"git.sr.ht/~f4814n/matrix"
	backend "git.sr.ht/~f4814n/matrix/backend/sqlite"
	"git.sr.ht/~f4814n/matrix/util/cache"
	"github.com/sirupsen/logrus"
	"os"
)



@@ 20,7 20,7 @@ var (

type Platform struct {
	Logger *logrus.Logger
	Cache cache.Cache
	Cache  cache.Cache
}

func InitPlatform() Platform {