Change public-report to rmo
We're leaning into the branding and shorter directory names
This commit is contained in:
parent
bb692cced9
commit
e7681c7d6e
44 changed files with 20 additions and 20 deletions
8
main.go
8
main.go
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package publicreport
|
||||
package rmo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package publicreport
|
||||
package rmo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package publicreport
|
||||
package rmo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package publicreport
|
||||
package rmo
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package publicreport
|
||||
package rmo
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package publicreport
|
||||
package rmo
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package publicreport
|
||||
package rmo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
@ -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...)
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package publicreport
|
||||
package rmo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package publicreport
|
||||
package rmo
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package publicreport
|
||||
package rmo
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package publicreport
|
||||
package rmo
|
||||
|
||||
import (
|
||||
"github.com/Gleipnir-Technology/nidus-sync/htmlpage"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package publicreport
|
||||
package rmo
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package publicreport
|
||||
package rmo
|
||||
|
||||
import (
|
||||
"context"
|
||||
Loading…
Add table
Add a link
Reference in a new issue