Internalize trauma
This commit is contained in:
parent
d551b28d4a
commit
f47bf08edc
@ -1,45 +0,0 @@
|
|||||||
package categories
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/bouncepaw/mycorrhiza/web/viewutil"
|
|
||||||
)
|
|
||||||
|
|
||||||
const ruTranslation = `
|
|
||||||
{{define "empty cat"}}{{end}}
|
|
||||||
{{define "cat"}}{{end}}
|
|
||||||
{{define "hypha name"}}{{end}}
|
|
||||||
{{define "categories"}}Категории{{end}}
|
|
||||||
{{define "placeholder"}}Название категории...{{end}}
|
|
||||||
{{define "remove from category title"}}Убрать гифу из этой категории{{end}}
|
|
||||||
{{define "add to category title"}}{{end}}
|
|
||||||
{{define "category list"}}{{end}}
|
|
||||||
{{define "no categories"}}{{end}}
|
|
||||||
{{define "category x"}}{{end}}
|
|
||||||
|
|
||||||
{{define "edit category x"}}{{end}}
|
|
||||||
{{define "edit category heading"}}{{end}}
|
|
||||||
{{define "add"}}{{end}}
|
|
||||||
{{define "remove hyphae"}}{{end}}
|
|
||||||
{{define "remove"}}{{end}}
|
|
||||||
{{define "edit"}}{{end}}
|
|
||||||
`
|
|
||||||
|
|
||||||
type catData struct {
|
|
||||||
*viewutil.BaseData
|
|
||||||
CatName string
|
|
||||||
Hyphae []string
|
|
||||||
GivenPermissionToModify bool
|
|
||||||
}
|
|
||||||
|
|
||||||
func categoryPage(meta viewutil.Meta, catName string) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
type listData struct {
|
|
||||||
*viewutil.BaseData
|
|
||||||
Categories []string
|
|
||||||
}
|
|
||||||
|
|
||||||
func categoryList(meta viewutil.Meta) {
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -2,9 +2,9 @@ package shroom
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/bouncepaw/mycorrhiza/categories"
|
|
||||||
"github.com/bouncepaw/mycorrhiza/history"
|
"github.com/bouncepaw/mycorrhiza/history"
|
||||||
"github.com/bouncepaw/mycorrhiza/internal/backlinks"
|
"github.com/bouncepaw/mycorrhiza/internal/backlinks"
|
||||||
|
"github.com/bouncepaw/mycorrhiza/internal/categories"
|
||||||
hyphae2 "github.com/bouncepaw/mycorrhiza/internal/hyphae"
|
hyphae2 "github.com/bouncepaw/mycorrhiza/internal/hyphae"
|
||||||
"github.com/bouncepaw/mycorrhiza/internal/user"
|
"github.com/bouncepaw/mycorrhiza/internal/user"
|
||||||
)
|
)
|
||||||
|
|||||||
@ -3,8 +3,8 @@ package shroom
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/bouncepaw/mycorrhiza/categories"
|
|
||||||
"github.com/bouncepaw/mycorrhiza/internal/backlinks"
|
"github.com/bouncepaw/mycorrhiza/internal/backlinks"
|
||||||
|
"github.com/bouncepaw/mycorrhiza/internal/categories"
|
||||||
"github.com/bouncepaw/mycorrhiza/internal/cfg"
|
"github.com/bouncepaw/mycorrhiza/internal/cfg"
|
||||||
"github.com/bouncepaw/mycorrhiza/internal/files"
|
"github.com/bouncepaw/mycorrhiza/internal/files"
|
||||||
hyphae2 "github.com/bouncepaw/mycorrhiza/internal/hyphae"
|
hyphae2 "github.com/bouncepaw/mycorrhiza/internal/hyphae"
|
||||||
|
|||||||
2
main.go
2
main.go
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/bouncepaw/mycorrhiza/internal/categories"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/bouncepaw/mycorrhiza/categories"
|
|
||||||
"github.com/bouncepaw/mycorrhiza/history"
|
"github.com/bouncepaw/mycorrhiza/history"
|
||||||
"github.com/bouncepaw/mycorrhiza/internal/backlinks"
|
"github.com/bouncepaw/mycorrhiza/internal/backlinks"
|
||||||
"github.com/bouncepaw/mycorrhiza/internal/cfg"
|
"github.com/bouncepaw/mycorrhiza/internal/cfg"
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
package web
|
package web
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/bouncepaw/mycorrhiza/categories"
|
"github.com/bouncepaw/mycorrhiza/internal/categories"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
|
|||||||
@ -3,9 +3,9 @@ package web
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.sr.ht/~bouncepaw/mycomarkup/v5"
|
"git.sr.ht/~bouncepaw/mycomarkup/v5"
|
||||||
"github.com/bouncepaw/mycorrhiza/categories"
|
|
||||||
"github.com/bouncepaw/mycorrhiza/hypview"
|
"github.com/bouncepaw/mycorrhiza/hypview"
|
||||||
"github.com/bouncepaw/mycorrhiza/internal/backlinks"
|
"github.com/bouncepaw/mycorrhiza/internal/backlinks"
|
||||||
|
"github.com/bouncepaw/mycorrhiza/internal/categories"
|
||||||
"github.com/bouncepaw/mycorrhiza/internal/cfg"
|
"github.com/bouncepaw/mycorrhiza/internal/cfg"
|
||||||
"github.com/bouncepaw/mycorrhiza/internal/files"
|
"github.com/bouncepaw/mycorrhiza/internal/files"
|
||||||
"github.com/bouncepaw/mycorrhiza/internal/hyphae"
|
"github.com/bouncepaw/mycorrhiza/internal/hyphae"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user