repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
2b6624b
parent
5fc34f7
author
Eric Bower
date
2024-02-19 20:48:45 +0000 UTC
refactor: make pgs the CMS for pico (#79)

2 files changed,  +5, -5
M pgs/cms.go
+1, -1
1@@ -385,7 +385,7 @@ func (m model) errorView(err error) string {
2 
3 func (m model) View() string {
4 	w := m.terminalSize.Width - m.styles.App.GetHorizontalFrameSize()
5-	s := m.styles.Logo.SetString(m.cfg.Domain).String() + "\n\n"
6+	s := m.styles.Logo.SetString("pico.sh").String() + "\n\n"
7 	switch m.status {
8 	case statusNoAccount:
9 		s += account.View(m.createAccount)
M pgs/config.go
+4, -4
 1@@ -11,7 +11,7 @@ var maxAssetSize = int64(5 * shared.MB)
 2 func NewConfigSite() *shared.ConfigSite {
 3 	debug := shared.GetEnv("PGS_DEBUG", "0")
 4 	domain := shared.GetEnv("PGS_DOMAIN", "pgs.sh")
 5-	email := shared.GetEnv("PGS_EMAIL", "hello@prose.sh")
 6+	email := shared.GetEnv("PGS_EMAIL", "hello@pico.sh")
 7 	subdomains := shared.GetEnv("PGS_SUBDOMAINS", "0")
 8 	customdomains := shared.GetEnv("PGS_CUSTOMDOMAINS", "0")
 9 	port := shared.GetEnv("PGS_WEB_PORT", "3000")
10@@ -24,8 +24,8 @@ func NewConfigSite() *shared.ConfigSite {
11 	dbURL := shared.GetEnv("DATABASE_URL", "")
12 	useImgProxy := shared.GetEnv("USE_IMGPROXY", "1")
13 
14-	intro := "To get started, enter a username.\n"
15-	intro += "To learn next steps go to our docs at https://pico.sh/pgs\n"
16+	intro := "To create an account, enter a username.\n"
17+	intro += "After that, go to https://pico.sh/getting-started#next-steps"
18 
19 	cfg := shared.ConfigSite{
20 		Debug:                debug == "1",
21@@ -42,7 +42,7 @@ func NewConfigSite() *shared.ConfigSite {
22 			MinioURL:    minioURL,
23 			MinioUser:   minioUser,
24 			MinioPass:   minioPass,
25-			Description: "A zero-dependency static site hosting service for hackers.",
26+			Description: "hacker labs",
27 			IntroText:   intro,
28 			Space:       "pgs",
29 			// IMPORTANT: make sure `shared.GetMimeType` has the extensions being