Format the shared chrome changes
2 files changed,
+6
−5
internal/slides/handlers.go+5 −5internal/slides/home.go+1 −0
CI failed — run details
diff --git a/internal/slides/handlers.go b/internal/slides/handlers.go| index b0b3bce..aeab57b 100644 |
| --- a/internal/slides/handlers.go |
| +++ b/internal/slides/handlers.go |
| @@ -35,11 +35,11 @@ type app struct { |
| // directory is the hub directory (HOME_DIRECTORY_ORIGIN), set only |
| // with Home configured: the app switcher's "All apps" link. Empty, |
| // no switcher. |
| - directory string |
| - db *db.DB |
| - logger *slog.Logger |
| - cfg Config |
| - allowed allowlist |
| + directory string |
| + db *db.DB |
| + logger *slog.Logger |
| + cfg Config |
| + allowed allowlist |
| // core is the compiled deck core, shared by every request. |
| // Compiling the wasm module is expensive and instantiating it is |
| // not, so there is exactly one of these per process and a Handle |
diff --git a/internal/slides/home.go b/internal/slides/home.go| index 9e4ef28..d995a05 100644 |
| --- a/internal/slides/home.go |
| +++ b/internal/slides/home.go |
| @@ -79,6 +79,7 @@ func (a *app) initHome(c *connect.DecodedCredentials) error { |
| a.homeRoutes, err = connect.NewRoutes(b, connect.RoutesConfig{Namespace: "oficina/slides", Origin: a.cfg.Origin, Issuer: c.Issuer, DEK: c.DEK, SessionCookie: sess.CookieName(), ReadSession: read, SignOut: sess.SignOut, LocalSignin: a.signin, Protect: csrf.Protect(a.cfg.Origin), Render: a.renderHome, FormPolicy: connect.FormPolicy(c.Issuer)}) |
| return err |
| } |
| + |
| // homeLinkView is the account-connection pages' data: connect's page |
| // under this app's own bar. |
| type homeLinkView struct { |