Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite of UI #245

Merged
merged 192 commits into from
Nov 3, 2021
Merged
Show file tree
Hide file tree
Changes from 90 commits
Commits
Show all changes
192 commits
Select commit Hold shift + click to select a range
d03cd38
refactor(web): rename js files to jsx
anbraten Jul 17, 2021
4560447
feat: add new ui
anbraten Jul 17, 2021
a52ec06
revert: undo changes to web
anbraten Jul 17, 2021
b80645e
undo some more changes
anbraten Jul 17, 2021
6671736
some web-ui stuff
anbraten Jul 19, 2021
e7e26f5
feat: add www-proxy for development
anbraten Jul 19, 2021
3235ef0
feat: create new endpoint serving a js file containing the web config
anbraten Jul 19, 2021
673927d
Update cmd/drone-server/server.go
anbraten Jul 19, 2021
2e5ca1f
Merge branch 'woodpecker-ci:master' into web-config-endpoint
anbraten Jul 20, 2021
f27a2b7
Merge branch 'proxy-dev-server' into web-config-endpoint
anbraten Jul 20, 2021
b53a4bb
Load config via js endpoint
anbraten Jul 20, 2021
a5b6a32
Remove docs setting
anbraten Jul 20, 2021
7b6488a
Use server-host as source for public links
anbraten Jul 20, 2021
0c6a461
Load docs link from server
anbraten Jul 20, 2021
f5e4fa1
Merge branch 'web-config-endpoint' into vite
anbraten Jul 20, 2021
00ee655
Merge branch 'use-server-host' into vite
anbraten Jul 20, 2021
72718a0
further ui improvements
anbraten Jul 20, 2021
77ad7a3
just ignore base build path
anbraten Jul 20, 2021
ff6f83b
further improvements
anbraten Jul 20, 2021
4419c33
support emoji commit messages
anbraten Jul 20, 2021
9890611
more changes
anbraten Jul 21, 2021
57cb83b
further improvements
anbraten Jul 23, 2021
4ff7b3f
ui improvements
anbraten Jul 29, 2021
89f6273
add user page and logout
anbraten Jul 30, 2021
d552597
support build cancel and restart and fix bug while loading logs
anbraten Jul 30, 2021
a4145fc
fix icon typings, improve log loading, listen to build feed updates, …
anbraten Jul 30, 2021
b6b3c30
ui improvements
anbraten Aug 1, 2021
61bb49c
improve button design
anbraten Aug 1, 2021
e5a2062
add some back buttons
anbraten Aug 1, 2021
9a6d9a5
improve icon loading
anbraten Aug 7, 2021
05ef65f
ifx build item view error
anbraten Aug 7, 2021
1878b55
update deps
anbraten Aug 7, 2021
62b9e17
improve repo settings
anbraten Aug 7, 2021
88dafa4
feat: connect active tab to hash route
anbraten Aug 17, 2021
8924e02
refactor: remove unused Breadcrumbs
anbraten Aug 17, 2021
86290cd
feat: smaller ui improvements and cleanup
anbraten Aug 17, 2021
5df71d9
feat: repo settings improvements
anbraten Aug 17, 2021
65ab84e
feat: support registry settings
anbraten Aug 17, 2021
bdaa637
refactor: improve secret saving
anbraten Aug 17, 2021
a9251a5
feat: improve general settings
anbraten Aug 17, 2021
1dff820
feat: small ui improvements
anbraten Aug 17, 2021
fc01d59
feat: improve settings
anbraten Aug 17, 2021
68a9dcc
feat: improve login page, hide not allowed buttons
anbraten Aug 17, 2021
ebef77b
feat: show login errors
anbraten Aug 17, 2021
f8820d6
feat: show badge for specific branch
anbraten Aug 17, 2021
b8217e0
feat: add build step no started / cancled info
anbraten Aug 17, 2021
9ba4a88
feat: improve form components
anbraten Aug 18, 2021
0b8bc85
fix: correct patch names
anbraten Aug 18, 2021
58680ac
feat: improve settings
anbraten Aug 18, 2021
12ffa1e
chore: update lock-file
anbraten Aug 18, 2021
3db54d9
feat: show api errors as toasts
anbraten Aug 19, 2021
72d56f8
Merge remote-tracking branch 'upstream/master' into vite
anbraten Aug 22, 2021
cf35e11
feat: show build errors
anbraten Aug 26, 2021
1920542
Merge branch 'woodpecker-ci:master' into vite
anbraten Aug 29, 2021
22f30dd
Merge remote-tracking branch 'upstream/master' into vite
anbraten Aug 30, 2021
40e87de
replace old ui
anbraten Aug 30, 2021
34a7916
update icon package
anbraten Aug 30, 2021
12640d1
update ci
anbraten Aug 30, 2021
159e615
Merge remote-tracking branch 'upstream/master' into vite
anbraten Aug 30, 2021
399318b
add path condition to ci
anbraten Aug 30, 2021
52eb076
switch to yarn to match docs
anbraten Aug 30, 2021
309a869
fix loading api client
anbraten Aug 30, 2021
1677a83
minor improvements
anbraten Aug 30, 2021
db57f29
add vs-code debug
anbraten Aug 30, 2021
6355334
Merge remote-tracking branch 'upstream/master' into vite
anbraten Sep 10, 2021
e034045
pin dependencies
anbraten Sep 10, 2021
6a1012c
improve eslint config
anbraten Sep 10, 2021
467b7d5
Merge branch 'master' into vite
6543 Sep 11, 2021
e364ab3
add eslint config
anbraten Sep 13, 2021
fdee9b1
add simple-import-sort
anbraten Sep 13, 2021
1c0092e
fix some linter errors
anbraten Sep 13, 2021
c6232c3
update docs url
anbraten Sep 13, 2021
205ef4f
improvements
anbraten Sep 15, 2021
5357a7d
Merge remote-tracking branch 'upstream/master' into vite
anbraten Sep 18, 2021
5b4edb7
fix linter errors
anbraten Sep 18, 2021
981ba87
fix more linting errors
anbraten Sep 18, 2021
8901bf9
remove typecheck from build
anbraten Sep 18, 2021
08d55fe
Merge remote-tracking branch 'upstream/master' into vite
anbraten Sep 18, 2021
b2bb962
improve form elements
anbraten Sep 18, 2021
48409eb
remove daisy ui again
anbraten Sep 18, 2021
292a517
improve repo settings
anbraten Sep 18, 2021
f591a29
Merge branch 'master' into vite
anbraten Sep 18, 2021
2f94f0b
improve ui styles
anbraten Sep 18, 2021
92840b9
add docs-links
anbraten Sep 18, 2021
98e8a94
improve ui
anbraten Sep 19, 2021
d12fdc6
green navbar
anbraten Sep 19, 2021
83fb681
fix types
anbraten Sep 19, 2021
a394d36
fix sanitzie-path
anbraten Sep 19, 2021
cff1d43
Merge branch 'fix-sanitize-path' into vite
anbraten Sep 19, 2021
515c575
add dark-mode
anbraten Sep 19, 2021
1b0a570
Merge remote-tracking branch 'upstream/master' into vite
anbraten Sep 26, 2021
eea3bf3
update router
anbraten Sep 26, 2021
8bdbf97
Merge branch 'master' into vite
anbraten Sep 26, 2021
ecfc842
Merge branch 'master' into vite
6543 Sep 26, 2021
b9550e5
Merge remote-tracking branch 'upstream/master' into vite
anbraten Sep 26, 2021
f9948d7
rm dublicate
6543 Sep 26, 2021
9c81800
Merge branch 'vite' of github.com:anbraten/woodpecker into vite
anbraten Sep 26, 2021
841fb27
cleanup merge
anbraten Sep 26, 2021
be0b71c
Merge branch 'vite' of github.com:anbraten/woodpecker into vite
anbraten Sep 26, 2021
353f88d
cleanup ci config
anbraten Sep 26, 2021
d206aab
improve frontend scripts
anbraten Sep 27, 2021
0231ef8
allow to set custom docs
anbraten Sep 27, 2021
06905de
redirect if no access
anbraten Sep 27, 2021
7b95df7
fix loading logs
anbraten Sep 28, 2021
79f70ec
improve dark mode
anbraten Sep 28, 2021
e499ed2
fix image path
anbraten Sep 28, 2021
cef36d9
Merge remote-tracking branch 'upstream/master' into vite
anbraten Sep 28, 2021
d73cb83
Merge remote-tracking branch 'upstream/master' into vite
anbraten Sep 30, 2021
4510b9a
Merge remote-tracking branch 'upstream/master' into vite
anbraten Sep 30, 2021
c7e31cc
Merge branch 'master' into vite
anbraten Oct 3, 2021
45e30c1
Merge branch 'vite' of github.com:anbraten/woodpecker into vite
anbraten Oct 3, 2021
0160af1
Merge remote-tracking branch 'upstream/master' into vite
anbraten Oct 12, 2021
ae13921
Merge remote-tracking branch 'upstream/master' into vite
anbraten Oct 12, 2021
c8b6f50
Merge branch 'master' into vite
6543 Oct 12, 2021
fb42191
use zerolog
anbraten Oct 12, 2021
58d4322
Merge branch 'vite' of github.com:anbraten/woodpecker into vite
anbraten Oct 12, 2021
49780b1
Update cmd/server/server.go
anbraten Oct 12, 2021
6ec1fec
add repo permission endpoint
anbraten Oct 12, 2021
14fe252
improve repo permission endpoint
anbraten Oct 12, 2021
a928f04
Merge remote-tracking branch 'upstream/master' into vite
anbraten Oct 12, 2021
f32f6a2
Merge branch 'vite' of github.com:anbraten/woodpecker into vite
anbraten Oct 12, 2021
9e963ef
simplify routes
anbraten Oct 12, 2021
b752f76
undo changes
anbraten Oct 12, 2021
788af79
undo changes
anbraten Oct 12, 2021
30d148e
change to repoBase
anbraten Oct 13, 2021
c5e1b76
Merge remote-tracking branch 'upstream/master' into vite
anbraten Oct 13, 2021
d31d388
Merge branch 'add-repo-permissions-endpoint' into vite
anbraten Oct 13, 2021
7a42b2e
Merge branch 'simplify-routes' into vite
anbraten Oct 13, 2021
01186a4
remove unused file
anbraten Oct 13, 2021
6097996
hide sidebar if not authenticated
anbraten Oct 13, 2021
324c984
improve tabs
anbraten Oct 14, 2021
d5d4e45
Merge remote-tracking branch 'upstream/master' into vite
anbraten Oct 17, 2021
a56c88a
Merge remote-tracking branch 'upstream/master' into vite
anbraten Oct 19, 2021
cdee3bd
fix assets path
anbraten Oct 19, 2021
df63f22
fix typo
anbraten Oct 20, 2021
ac81869
fix copy & pasta
anbraten Oct 21, 2021
7058da3
shorten next version
anbraten Oct 21, 2021
d9af6ed
improve contrast
anbraten Oct 21, 2021
470f66c
fix tabs
anbraten Oct 21, 2021
d93c973
improve contrasts
anbraten Oct 21, 2021
b75118a
Merge remote-tracking branch 'upstream/master' into vite
anbraten Oct 21, 2021
859877d
change login text
anbraten Oct 21, 2021
dbbbfc1
only show buttons pages if the user is allowed to
anbraten Oct 21, 2021
7094a70
fix pecking woodpecker
anbraten Oct 21, 2021
3d92cc6
fix svg icon
anbraten Oct 21, 2021
ab56752
fix ts
anbraten Oct 21, 2021
e83a091
update node version
anbraten Oct 21, 2021
73cc131
fix icon
anbraten Oct 21, 2021
221c5d6
hide trusted option for none admins
anbraten Oct 21, 2021
f3f7d9a
fix lint
anbraten Oct 21, 2021
8cc3a62
format file
anbraten Oct 21, 2021
73442d9
fix typecheck
anbraten Oct 21, 2021
458c664
Merge branch 'master' into vite
anbraten Oct 21, 2021
bada165
fix login image
anbraten Oct 22, 2021
17d35a1
move admin views
anbraten Oct 24, 2021
25ccead
improve login redirect url
anbraten Oct 24, 2021
9207ac1
Merge branch 'vite' of github.com:anbraten/woodpecker into vite
anbraten Oct 24, 2021
3415466
use elapsed time
anbraten Oct 24, 2021
5f7c2db
improve elapsing times
anbraten Oct 24, 2021
a9cce54
Merge remote-tracking branch 'upstream/master' into vite
anbraten Oct 24, 2021
7a683ba
fix elapsed time bug
anbraten Oct 24, 2021
fbb42a5
fix nan log position
anbraten Oct 24, 2021
fda6711
fix path
anbraten Oct 24, 2021
35413ea
fix status url
anbraten Oct 26, 2021
d36622e
improve is-loading
anbraten Oct 26, 2021
568dcf0
fix async actions
anbraten Oct 26, 2021
d498a69
improve sidebar
anbraten Oct 26, 2021
33ef2e1
improve colors
anbraten Oct 26, 2021
c745108
Merge remote-tracking branch 'upstream/master' into vite
anbraten Oct 26, 2021
2b1b2d2
Merge branch 'master' into vite
6543 Oct 26, 2021
7fb7a5c
improve repo views
anbraten Oct 26, 2021
3ab1847
add repo branches endpoint
anbraten Oct 26, 2021
953f6ae
use gitea default branch
anbraten Oct 26, 2021
8f45e5a
Merge branch 'vite' of github.com:anbraten/woodpecker into vite
anbraten Oct 26, 2021
0012dc4
increase navbar
anbraten Oct 26, 2021
815fdf1
Merge branch 'master' into vite
6543 Oct 27, 2021
83ec0dd
Merge remote-tracking branch 'upstream/master' into vite
anbraten Oct 29, 2021
6aba4d5
improve colors, mobile
anbraten Oct 30, 2021
830a8be
add repo search
anbraten Oct 30, 2021
f1d96b2
add build redirect
anbraten Oct 30, 2021
e31c93c
Merge branch 'master' into vite
anbraten Oct 30, 2021
0ef41f9
integrated web ci into main for now
anbraten Oct 30, 2021
43abe93
Merge branch 'vite' of github.com:anbraten/woodpecker into vite
anbraten Oct 30, 2021
2153196
fix ci
anbraten Oct 30, 2021
1723778
update node, add make
anbraten Oct 30, 2021
0a68b81
Merge branch 'master' into vite
6543 Oct 30, 2021
208e31f
improve ui infos
anbraten Oct 30, 2021
47c6f18
update deps
anbraten Oct 30, 2021
5e0b617
Merge branch 'vite' of github.com:anbraten/woodpecker into vite
anbraten Oct 30, 2021
233e43f
Merge branch 'master' into vite
anbraten Oct 30, 2021
3175a5c
CI: skip "yarn lint", it cause an oom atm
6543 Nov 3, 2021
685934b
fix type errors
anbraten Nov 3, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

### Frontend ###
web/node_modules
web/dist/files
web/dist
web/*.log
web/.env

Expand All @@ -33,7 +33,7 @@ docker-compose.yml
/.env
extras/
release/
build/
./build/
cli/release/

server/swagger/files/*.json
Expand Down
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@
"mode": "debug",
"program": "${workspaceFolder}/cmd/drone-agent/",
"cwd": "${workspaceFolder}"
},
{
"name": "Woodpecker UI",
"type": "node",
"request": "launch",
"runtimeExecutable": "yarn",
"runtimeArgs": [
"start",
],
"cwd": "${workspaceFolder}/web",
"port": 3000,
"resolveSourceMapLocations": [
"${workspaceFolder}/web/**",
"!**/node_modules/**"
],
"skipFiles": [
"<node_internals>/**"
]
}
]
}
20 changes: 9 additions & 11 deletions .woodpecker/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ pipeline:
- make vet
- make formatcheck

test-frontend:
image: node:10.17.0-stretch
group: test
commands:
- (cd web/; yarn install)
- (cd web/; yarn run lesshint)
- (cd web/; yarn run lint --quiet)
- make test-frontend

test-postgres:
image: golang:1.16
group: db-test
Expand All @@ -39,9 +30,13 @@ pipeline:
- go test -timeout 30s github.com/woodpecker-ci/woodpecker/store/datastore

build-frontend:
image: node:10.17.0-stretch
image: node:14-alpine
commands:
- make build-frontend
- cd web/
- curl -f https://get.pnpm.io/v6.js | node - add --global pnpm@6
- pnpm config set store-dir .pnpm-store
- pnpm install
- pnpm build

build:
image: golang:1.16
Expand Down Expand Up @@ -152,3 +147,6 @@ services:
environment:
- MYSQL_DATABASE=test
- MYSQL_ALLOW_EMPTY_PASSWORD=yes

depends_on:
6543 marked this conversation as resolved.
Show resolved Hide resolved
- web
46 changes: 46 additions & 0 deletions .woodpecker/web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
clone:
git:
image: plugins/git:next

pipeline:
deps:
image: node:14-alpine
commands:
- cd web/
- yarn install --frozen-lockfile
when:
path: "web/*"

lint:
group: test
image: node:14-alpine
commands:
- cd web/
- yarn lint
when:
path: "web/*"

formatcheck:
group: test
image: node:14-alpine
commands:
- cd web/
- yarn formatcheck
when:
path: "web/*"

typecheck:
group: test
image: node:14-alpine
commands:
- cd web/
- yarn typecheck
when:
path: "web/*"

build:
image: node:14-alpine
commands:
- yarn build
when:
path: "web/*"
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ test-agent:
test-server:
$(DOCKER_RUN) go test -race -timeout 30s github.com/woodpecker-ci/woodpecker/cmd/drone-server

test-frontend:
(cd web/; yarn run test)

test-lib:
$(DOCKER_RUN) go test -race -timeout 30s $(shell go list ./... | grep -v '/cmd/')

Expand All @@ -59,9 +56,6 @@ build-agent:
build-server:
$(DOCKER_RUN) go build -o build/drone-server github.com/woodpecker-ci/woodpecker/cmd/drone-server

build-frontend:
(cd web/; yarn run build)

build: build-agent build-server

release-agent:
Expand Down
12 changes: 6 additions & 6 deletions cmd/drone-server/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ var flags = []cli.Flag{
Usage: "serve the website from disk",
Hidden: true,
},
cli.StringFlag{
EnvVar: "WOODPECKER_WWW_PROXY",
Name: "www-proxy",
Usage: "serve the website with a proxy",
Hidden: true,
},
cli.StringSliceFlag{
EnvVar: "DRONE_ADMIN,WOODPECKER_ADMIN",
Name: "admin",
Expand All @@ -89,12 +95,6 @@ var flags = []cli.Flag{
Name: "open",
Usage: "enable open user registration",
},
cli.StringFlag{
EnvVar: "DRONE_DOCS,WOODPECKER_DOCS",
Name: "docs",
Usage: "link to user documentation",
Value: "https://woodpecker-ci.github.io/",
},
cli.DurationFlag{
EnvVar: "DRONE_SESSION_EXPIRES,WOODPECKER_SESSION_EXPIRES",
Name: "session-expires",
Expand Down
26 changes: 22 additions & 4 deletions cmd/drone-server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"errors"
"net"
"net/http"
"net/http/httputil"
"net/url"
"os"
"path/filepath"
Expand Down Expand Up @@ -89,13 +90,30 @@ func server(c *cli.Context) error {
store_ := setupStore(c)
setupEvilGlobals(c, store_, remote_)

// we are switching from gin to httpservermux|treemux,
// so if this code looks strange, that is why.
tree := setupTree(c)
proxyWebUI := c.String("www-proxy")

var webUIServe func(w http.ResponseWriter, r *http.Request)

if proxyWebUI == "" {
// we are switching from gin to httpservermux|treemux,
webUIServe = setupTree(c).ServeHTTP
} else {
origin, _ := url.Parse(proxyWebUI)

director := func(req *http.Request) {
req.Header.Add("X-Forwarded-Host", req.Host)
req.Header.Add("X-Origin-Host", origin.Host)
req.URL.Scheme = origin.Scheme
req.URL.Host = origin.Host
}

proxy := &httputil.ReverseProxy{Director: director}
webUIServe = proxy.ServeHTTP
}

// setup the server and start the listener
handler := router.Load(
tree,
webUIServe,
ginrus.Ginrus(logrus.StandardLogger(), time.RFC3339, true),
middleware.Version,
middleware.Config(c),
Expand Down
1 change: 0 additions & 1 deletion cmd/drone-server/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ func setupTree(c *cli.Context) *httptreemux.ContextMux {
web.New(
web.WithDir(c.String("www")),
web.WithSync(time.Hour*72),
web.WithDocs(c.String("docs")),
).Register(tree)
return tree
}
Expand Down
8 changes: 5 additions & 3 deletions router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package router
import (
"net/http"

"github.com/dimfeld/httptreemux"
"github.com/gin-gonic/gin"

"github.com/woodpecker-ci/woodpecker/router/middleware/header"
Expand All @@ -30,7 +29,7 @@ import (
)

// Load loads the router
func Load(mux *httptreemux.ContextMux, middleware ...gin.HandlerFunc) http.Handler {
func Load(serveHTTP func(w http.ResponseWriter, r *http.Request), middleware ...gin.HandlerFunc) http.Handler {

e := gin.New()
e.Use(gin.Recovery())
Expand All @@ -49,7 +48,8 @@ func Load(mux *httptreemux.ContextMux, middleware ...gin.HandlerFunc) http.Handl
session.User(c),
),
)
mux.ServeHTTP(c.Writer, req)

serveHTTP(c.Writer, req)
})

e.GET("/logout", server.GetLogout)
Expand Down Expand Up @@ -188,6 +188,8 @@ func Load(mux *httptreemux.ContextMux, middleware ...gin.HandlerFunc) http.Handl
debugger.GET("/pprof/trace", debug.TraceHandler())
}

e.GET("/api/web-config.js", web.WebConfig)

monitor := e.Group("/metrics")
{
monitor.GET("", metrics.PromHandler())
Expand Down
2 changes: 1 addition & 1 deletion server/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func findOrPersistPipelineConfig(repo *model.Repo, build *model.Build, remoteYam
RepoID: build.RepoID,
Data: string(remoteYamlConfig.Data),
Hash: sha,
Name: sanitizePath(remoteYamlConfig.Name, repo.Config),
Name: sanitizePath(remoteYamlConfig.Name),
}
err = Config.Storage.Config.ConfigCreate(conf)
if err != nil {
Expand Down
7 changes: 4 additions & 3 deletions server/procBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"fmt"
"math/rand"
"net/url"
"path/filepath"
"sort"
"strings"

Expand Down Expand Up @@ -78,7 +79,7 @@ func (b *procBuilder) Build() ([]*buildItem, error) {
PGID: pidSequence,
State: model.StatusPending,
Environ: axis,
Name: sanitizePath(y.Name, b.Repo.Config),
Name: sanitizePath(y.Name),
}

metadata := metadataFromStruct(b.Repo, b.Curr, b.Last, proc, b.Link)
Expand Down Expand Up @@ -358,9 +359,9 @@ func metadataFromStruct(repo *model.Repo, build, last *model.Build, proc *model.
}
}

func sanitizePath(path string, configFolder string) string {
func sanitizePath(path string) string {
path = filepath.Base(path)
path = strings.TrimSuffix(path, ".yml")
path = strings.TrimPrefix(path, configFolder)
path = strings.TrimPrefix(path, ".")
return path
}
Loading