+1
-1
appview/db/registration.go
+1
-1
appview/db/registration.go
+1
-3
appview/pages/pages.go
+1
-3
appview/pages/pages.go
···
421
422
func Cache(h http.Handler) http.Handler {
423
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
424
-
if strings.HasPrefix(r.URL.Path, "/static/fonts") {
425
-
w.Header().Set("Cache-Control", "public, max-age=31536000, immutable")
426
-
}
427
h.ServeHTTP(w, r)
428
})
429
}
+1
-1
appview/pages/templates/repo/index.html
+1
-1
appview/pages/templates/repo/index.html
+2
-2
appview/pages/templates/repo/issues/issue.html
+2
-2
appview/pages/templates/repo/issues/issue.html
+3
-3
appview/state/state.go
+3
-3
appview/state/state.go
···
508
func (s *State) RemoveMember(w http.ResponseWriter, r *http.Request) {
509
}
510
511
-
func (s *State) AddRepo(w http.ResponseWriter, r *http.Request) {
512
switch r.Method {
513
case http.MethodGet:
514
user := s.auth.GetUser(r)
···
885
r.Route("/repo", func(r chi.Router) {
886
r.Route("/new", func(r chi.Router) {
887
r.Use(AuthMiddleware(s))
888
-
r.Get("/", s.AddRepo)
889
-
r.Post("/", s.AddRepo)
890
})
891
// r.Post("/import", s.ImportRepo)
892
})
···
508
func (s *State) RemoveMember(w http.ResponseWriter, r *http.Request) {
509
}
510
511
+
func (s *State) NewRepo(w http.ResponseWriter, r *http.Request) {
512
switch r.Method {
513
case http.MethodGet:
514
user := s.auth.GetUser(r)
···
885
r.Route("/repo", func(r chi.Router) {
886
r.Route("/new", func(r chi.Router) {
887
r.Use(AuthMiddleware(s))
888
+
r.Get("/", s.NewRepo)
889
+
r.Post("/", s.NewRepo)
890
})
891
// r.Post("/import", s.ImportRepo)
892
})
+1
-1
flake.nix
+1
-1
flake.nix
+30
-20
tailwind.config.js
+30
-20
tailwind.config.js
···
1
/** @type {import('tailwindcss').Config} */
2
module.exports = {
3
-
content: ["./appview/pages/templates/**/*.html"],
4
-
theme: {
5
-
container: {
6
-
padding: "2rem",
7
-
center: true,
8
-
screens: {
9
-
sm: "540px",
10
-
md: "650px",
11
-
lg: "900px",
12
-
xl: "1100px",
13
-
"2xl": "1300px"
14
-
},
15
-
},
16
-
extend: {
17
-
fontFamily: {
18
-
sans: ["iA Writer Quattro S", "Inter", "system-ui", "sans-serif", "ui-sans-serif"],
19
-
mono: ["iA Writer Mono S", "ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", "monospace"],
20
-
},
21
-
},
22
-
},
23
};
···
1
/** @type {import('tailwindcss').Config} */
2
module.exports = {
3
+
content: ["./appview/pages/templates/**/*.html"],
4
+
theme: {
5
+
container: {
6
+
padding: "2rem",
7
+
center: true,
8
+
screens: {
9
+
sm: "540px",
10
+
md: "650px",
11
+
lg: "900px",
12
+
xl: "1100px",
13
+
"2xl": "1300px"
14
+
},
15
+
},
16
+
extend: {
17
+
fontFamily: {
18
+
sans: ["iA Writer Quattro S", "Inter", "system-ui", "sans-serif", "ui-sans-serif"],
19
+
mono: ["iA Writer Mono S", "ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", "monospace"],
20
+
},
21
+
typography: {
22
+
DEFAULT: {
23
+
css: {
24
+
maxWidth: 'none',
25
+
}
26
+
},
27
+
},
28
+
},
29
+
},
30
+
plugins: [
31
+
require('@tailwindcss/typography'),
32
+
]
33
};