Skip to content

Commit fd09517

Browse files
committed
fix safari issues
Signed-off-by: Frank Jogeleit <[email protected]>
1 parent 0da205f commit fd09517

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

backend/pkg/config/resolver.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"time"
99

1010
"github.com/gin-contrib/cors"
11-
"github.com/gin-contrib/gzip"
1211
ginzap "github.com/gin-contrib/zap"
1312
"github.com/gin-gonic/gin"
1413
"github.com/markbates/goth"
@@ -292,9 +291,7 @@ func (r *Resolver) Server(ctx context.Context) (*server.Server, error) {
292291
engine.Use(cors.Default())
293292
}
294293

295-
middleware := []gin.HandlerFunc{
296-
gzip.Gzip(gzip.DefaultCompression),
297-
}
294+
middleware := []gin.HandlerFunc{}
298295

299296
if r.config.OpenIDConnect.Enabled {
300297
handler, err := r.SetupOIDC(ctx, engine)

backend/pkg/server/server.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"net/http/httputil"
77
"strings"
88

9+
"github.com/gin-contrib/gzip"
910
"github.com/gin-gonic/gin"
1011
"github.com/gosimple/slug"
1112
"go.uber.org/zap"
@@ -84,7 +85,7 @@ func NewServer(engine *gin.Engine, port int, middleware []gin.HandlerFunc) *Serv
8485
middelware: middleware,
8586
apis: make(map[string]*model.Endpoints),
8687
engine: engine,
87-
api: engine.Group("/api", middleware...),
88+
api: engine.Group("/api", append(middleware, gzip.Gzip(gzip.DefaultCompression))...),
8889
proxies: engine.Group("/proxy", middleware...),
8990
port: port,
9091
}

frontend/composables/source.ts

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const useSourceStore = (key?: string) => {
5050
callAPI(api => api.clusterKinds(source as string[])),
5151
callAPI(api => api.categoryTree(undefined, { sources: source as string[] })),
5252
]).then(([namespaces, nsKinds, clusterKinds, categoryTrees]) => {
53+
console.log(nsKinds, clusterKinds)
5354
loadStore.kinds.namespaced = nsKinds || []
5455
loadStore.kinds.cluster = clusterKinds || []
5556
loadStore.namespaces = namespaces || []

frontend/modules/core/components/form/ClusterKindAutocomplete.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const { store } = useSourceStore(props.source)
3333
3434
const input = defineRouteQuery('cluster-kinds', selected);
3535
36-
watch(store.kinds.cluster, (current) => {
36+
watch(() => store.kinds.cluster, (current) => {
3737
input(selected.value.filter((s) => current.includes(s)));
3838
});
3939

frontend/modules/core/components/form/KindAutocomplete.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const { store } = useSourceStore(props.source)
3232
3333
const input = defineRouteQuery('kinds', selected);
3434
35-
watch(store.kinds.namespaced, (current) => {
35+
watch(() => store.kinds.namespaced, (current) => {
3636
input(selected.value.filter((s) => current.includes(s)));
3737
});
3838

0 commit comments

Comments
 (0)