Skip to content

Commit

Permalink
fs abstractions and UI
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoOliveira committed Sep 12, 2024
1 parent ff7b76c commit abef050
Show file tree
Hide file tree
Showing 23 changed files with 682 additions and 246 deletions.
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,53 @@ There are also plans to distribute MMP as an installable application using wails
This version is highly experimental, so feedback is highly important.


## Configuration File
The config file is located in data/config.toml
### Filesystem:
You can configure multiple filesystems aka library folders of different kinds:
#### LocalFS
The standard file system
``` toml
[[library.filesystems]]
kind = 'local'
name = 'Library'
path = '/library'
```

#### GitFS
Uses git as a read only filesystem.
The internal library used is [go-fsimpl](https://pkg.go.dev/github.com/hairyhenderson/go-fsimpl/gitfs), please refer to the documentation about environment variables and credentials.
``` toml
[[library.filesystems]]
kind = 'gitfs'
name = 'ExampleGit'

[library.filesystems.config]
url = 'https://github.com/Rat-Rig/RatRig-PrintedParts'

```

#### S3
Not yet implemented, please reach out if you can provide a set of credentials for me to develop and test wit

``` toml
tba
```

#### Azure Blob Storage
Not yet implemented, please reach out if you can provide a set of credentials for me to develop and test with

``` toml
tba
```

#### Google Storage
Not yet implemented, please reach out if you can provide a set of credentials for me to develop and test with

``` toml
tba
```

## Setting up for development
Run npm install in the frontend folder

Expand Down
25 changes: 23 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/eduardooliveira/stLib

go 1.22
go 1.22.4

toolchain go1.22.5

require (
github.com/BurntSushi/toml v1.4.0
Expand All @@ -11,6 +13,7 @@ require (
github.com/glebarez/sqlite v1.11.0
github.com/go-chi/chi/v5 v5.1.0
github.com/gorilla/websocket v1.5.3
github.com/hairyhenderson/go-fsimpl v0.1.7
github.com/labstack/echo/v4 v4.12.0
github.com/mholt/archiver/v4 v4.0.0-alpha.8
github.com/morkid/paginate v1.1.8
Expand All @@ -22,28 +25,40 @@ require (
)

require (
dario.cat/mergo v1.0.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/andybalholm/brotli v1.1.0 // indirect
github.com/bep/debounce v1.2.1 // indirect
github.com/bodgit/plumbing v1.3.0 // indirect
github.com/bodgit/sevenzip v1.5.1 // indirect
github.com/bodgit/windows v1.0.1 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/dsnet/compress v0.0.1 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/fogleman/simplify v0.0.0-20170216171241-d32f302d5046 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/ggicci/owl v0.8.2 // indirect
github.com/glebarez/go-sqlite v1.22.0 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/hairyhenderson/go-git/v5 v5.12.1-0.20240530140403-1b868a7b8a3c // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/iancoleman/strcase v0.3.0 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/klauspost/pgzip v1.2.6 // indirect
github.com/leaanthony/go-ansi-parser v1.6.1 // indirect
Expand All @@ -57,6 +72,7 @@ require (
github.com/nwaples/rardecode/v2 v2.0.0-beta.2 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/pierrec/lz4/v4 v4.1.21 // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
Expand All @@ -65,6 +81,8 @@ require (
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/samber/lo v1.46.0 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/skeema/knownhosts v1.2.2 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.7.0 // indirect
Expand All @@ -76,10 +94,13 @@ require (
github.com/valyala/fasthttp v1.55.0 // indirect
github.com/wailsapp/go-webview2 v1.0.11 // indirect
github.com/wailsapp/mimetype v1.4.1 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
go.uber.org/multierr v1.11.0 // indirect
go4.org v0.0.0-20230225012048-214862532bf5 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
golang.org/x/mod v0.19.0 // indirect
golang.org/x/tools v0.23.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
modernc.org/libc v1.57.0 // indirect
modernc.org/mathutil v1.6.0 // indirect
Expand Down
Loading

0 comments on commit abef050

Please sign in to comment.