Internalize trauma

This commit is contained in:
Timur Ismagilov 2024-07-28 15:09:34 +03:00
parent d551b28d4a
commit f47bf08edc
8 changed files with 5 additions and 50 deletions

View File

@ -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) {
}

View File

@ -2,9 +2,9 @@ package shroom
import (
"fmt"
"github.com/bouncepaw/mycorrhiza/categories"
"github.com/bouncepaw/mycorrhiza/history"
"github.com/bouncepaw/mycorrhiza/internal/backlinks"
"github.com/bouncepaw/mycorrhiza/internal/categories"
hyphae2 "github.com/bouncepaw/mycorrhiza/internal/hyphae"
"github.com/bouncepaw/mycorrhiza/internal/user"
)

View File

@ -3,8 +3,8 @@ package shroom
import (
"errors"
"fmt"
"github.com/bouncepaw/mycorrhiza/categories"
"github.com/bouncepaw/mycorrhiza/internal/backlinks"
"github.com/bouncepaw/mycorrhiza/internal/categories"
"github.com/bouncepaw/mycorrhiza/internal/cfg"
"github.com/bouncepaw/mycorrhiza/internal/files"
hyphae2 "github.com/bouncepaw/mycorrhiza/internal/hyphae"

View File

@ -5,10 +5,10 @@
package main
import (
"github.com/bouncepaw/mycorrhiza/internal/categories"
"log"
"os"
"github.com/bouncepaw/mycorrhiza/categories"
"github.com/bouncepaw/mycorrhiza/history"
"github.com/bouncepaw/mycorrhiza/internal/backlinks"
"github.com/bouncepaw/mycorrhiza/internal/cfg"

View File

@ -1,7 +1,7 @@
package web
import (
"github.com/bouncepaw/mycorrhiza/categories"
"github.com/bouncepaw/mycorrhiza/internal/categories"
"io"
"log"
"log/slog"

View File

@ -3,9 +3,9 @@ package web
import (
"fmt"
"git.sr.ht/~bouncepaw/mycomarkup/v5"
"github.com/bouncepaw/mycorrhiza/categories"
"github.com/bouncepaw/mycorrhiza/hypview"
"github.com/bouncepaw/mycorrhiza/internal/backlinks"
"github.com/bouncepaw/mycorrhiza/internal/categories"
"github.com/bouncepaw/mycorrhiza/internal/cfg"
"github.com/bouncepaw/mycorrhiza/internal/files"
"github.com/bouncepaw/mycorrhiza/internal/hyphae"