Change public-report to rmo

We're leaning into the branding and shorter directory names
This commit is contained in:
Eli Ribble 2026-01-29 23:55:41 +00:00
parent bb692cced9
commit e7681c7d6e
No known key found for this signature in database
44 changed files with 20 additions and 20 deletions

View file

@ -17,7 +17,7 @@ import (
"github.com/Gleipnir-Technology/nidus-sync/db"
"github.com/Gleipnir-Technology/nidus-sync/llm"
"github.com/Gleipnir-Technology/nidus-sync/platform/text"
"github.com/Gleipnir-Technology/nidus-sync/public-report"
"github.com/Gleipnir-Technology/nidus-sync/rmo"
nidussync "github.com/Gleipnir-Technology/nidus-sync/sync"
"github.com/getsentry/sentry-go"
sentryhttp "github.com/getsentry/sentry-go/http"
@ -105,9 +105,9 @@ func main() {
// Set up routing by hostname
sr := nidussync.Router()
hr.Map("", sr) // default
hr.Map("*", sr) // default
hr.Map(config.DomainRMO, publicreport.Router()) // report.mosquitoes.online
hr.Map("", sr) // default
hr.Map("*", sr) // default
hr.Map(config.DomainRMO, rmo.Router()) // report.mosquitoes.online
hr.Map(config.DomainNidus, sr)
r.Mount("/", hr)

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"fmt"

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"fmt"

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"fmt"

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"bytes"

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"net/http"

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"net/http"

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"fmt"

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"embed"
@ -14,7 +14,7 @@ var components = [...]string{"footer", "header", "photo-upload", "photo-upload-h
var svgs = [...]string{"check-report", "mosquito", "pond"}
func buildTemplate(files ...string) *htmlpage.BuiltTemplate {
subdir := "public-report"
subdir := "rmo"
full_files := make([]string, 0)
for _, f := range files {
full_files = append(full_files, fmt.Sprintf("%s/template/%s.html", subdir, f))
@ -25,5 +25,5 @@ func buildTemplate(files ...string) *htmlpage.BuiltTemplate {
for _, c := range svgs {
full_files = append(full_files, fmt.Sprintf("%s/template/svg/%s.svg", subdir, c))
}
return htmlpage.NewBuiltTemplate(embeddedFiles, "public-report/", full_files...)
return htmlpage.NewBuiltTemplate(embeddedFiles, "rmo/", full_files...)
}

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"fmt"

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"context"

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"crypto/rand"

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"github.com/Gleipnir-Technology/nidus-sync/htmlpage"

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"net/http"

View file

@ -1,4 +1,4 @@
package publicreport
package rmo
import (
"context"