diff --git a/app/gql/graphiql/playground.go b/app/gql/graphiql/playground.go index 362a25b..c95c019 100644 --- a/app/gql/graphiql/playground.go +++ b/app/gql/graphiql/playground.go @@ -24,12 +24,12 @@ var page = template.Must(template.New("graphiql").Parse(` } @@ -82,9 +82,10 @@ func Handler(title string, endpoint string) http.HandlerFunc { "endpoint": endpoint, "endpointIsAbsolute": endpointHasScheme(endpoint), "subscriptionEndpoint": getSubscriptionEndpoint(endpoint), - "version": "2.0.10", - "cssSRI": "sha256-gQryfbGYeYFxnJYnfPStPYFt0+uv8RP8Dm++eh00G9c=", - "jsSRI": "sha256-qQ6pw7LwTLC+GfzN+cJsYXfVWRKH9O5o7+5H96gTJhQ=", + "version": "2.0.13", + "reactVersion": "17.0.2", + "cssSRI": "sha256-qKvndYgkAMQOBoa1SZF9NlbIig+kQ3Fk4f8wlrEqBLw=", + "jsSRI": "sha256-dExtzxjgqXfOgQ94xw079jAjd4dPAFrO2Qz6I3Yd9Ko=", "reactSRI": "sha256-Ipu/TQ50iCCVZBUsZyNJfxrDk0E2yhaEIz0vqI+kFG8=", "reactDOMSRI": "sha256-nbMykgB6tsOFJ7OdVmPpdqMFVk4ZsqWocT6issAPUF0=", }) diff --git a/app/gql/playground/playground.go b/app/gql/playground/playground.go index 12f1030..d77c737 100644 --- a/app/gql/playground/playground.go +++ b/app/gql/playground/playground.go @@ -50,10 +50,10 @@ func Handler(title string, endpoint string) http.HandlerFunc { err := page.Execute(w, map[string]string{ "title": title, "endpoint": endpoint, - "version": "1.7.26", + "version": "1.7.28", "cssSRI": "sha256-dKnNLEFwKSVFpkpjRWe+o/jQDM6n/JsvQ0J3l5Dk3fc=", "faviconSRI": "sha256-GhTyE+McTU79R4+pRO6ih+4TfsTOrpPwD8ReKFzb3PM=", - "jsSRI": "sha256-SG9YAy4eywTcLckwij7V4oSCG3hOdV1m+2e1XuNxIgk=", + "jsSRI": "sha256-VVwEZwxs4qS5W7E+/9nXINYgr/BJRWKOi/rTMUdmmWg=", }) if err != nil { panic(err) diff --git a/app/gql/resolver.go b/app/gql/resolver.go index 4dcba3f..c3ab15a 100644 --- a/app/gql/resolver.go +++ b/app/gql/resolver.go @@ -16,6 +16,8 @@ import ( "github.com/99designs/gqlgen/graphql/handler/transport" "github.com/gorilla/websocket" "github.com/ravilushqa/otelgqlgen" + "github.com/vektah/gqlparser/v2/gqlerror" + "github.com/sour-is/ev/app/gql/graphiql" "github.com/sour-is/ev/app/gql/playground" "github.com/sour-is/ev/app/msgbus" @@ -24,7 +26,6 @@ import ( "github.com/sour-is/ev/internal/lg" "github.com/sour-is/ev/pkg/es" "github.com/sour-is/ev/pkg/gql" - "github.com/vektah/gqlparser/v2/gqlerror" ) type Resolver struct { @@ -137,7 +138,9 @@ func (*noop) Events(ctx context.Context, streamID string, paging *gql.PageInput) func (*noop) EventAdded(ctx context.Context, streamID string, after int64) (<-chan *es.GQLEvent, error) { panic("not implemented") } - +func (*noop) TruncateStream(ctx context.Context, streamID string, index int64) (bool, error) { + panic("not implemented") +} func (*noop) RegisterHTTP(*http.ServeMux) {} func NewServer(es graphql.ExecutableSchema) *handler.Server {