refactor: move client page view file to client folder and reorganize file structure

This commit is contained in:
2024-08-18 12:59:19 +07:00
parent 97a9e72d7b
commit 7df02c270b
27 changed files with 29 additions and 30 deletions

View File

@ -2,7 +2,7 @@ package authView
import (
"github.com/fossyy/filekeeper/types"
"github.com/fossyy/filekeeper/view/layout"
"github.com/fossyy/filekeeper/view/client/layout"
)
templ form(err types.Message, title string) {

View File

@ -1,7 +1,7 @@
package downloadView
import (
"github.com/fossyy/filekeeper/view/layout"
"github.com/fossyy/filekeeper/view/client/layout"
"github.com/fossyy/filekeeper/types"
)

View File

@ -1,6 +1,6 @@
package errorView
import "github.com/fossyy/filekeeper/view/layout"
import "github.com/fossyy/filekeeper/view/client/layout"
templ NotFound(title string){
@layout.Base(title){

View File

@ -2,7 +2,7 @@ package forgotPasswordView
import (
"github.com/fossyy/filekeeper/types"
"github.com/fossyy/filekeeper/view/layout"
"github.com/fossyy/filekeeper/view/client/layout"
)
templ content(title string, err types.Message) {

View File

@ -2,7 +2,7 @@ package indexView
import (
"github.com/fossyy/filekeeper/types"
"github.com/fossyy/filekeeper/view/layout"
"github.com/fossyy/filekeeper/view/client/layout"
)
templ content(title string, user types.User) {

View File

@ -2,7 +2,7 @@ package signinView
import (
"github.com/fossyy/filekeeper/types"
"github.com/fossyy/filekeeper/view/layout"
"github.com/fossyy/filekeeper/view/client/layout"
)
templ content(err types.Message, title string) {

View File

@ -2,7 +2,7 @@ package signup
import (
"github.com/fossyy/filekeeper/types"
"github.com/fossyy/filekeeper/view/layout"
"github.com/fossyy/filekeeper/view/client/layout"
)
templ form(err types.Message, title string) {

View File

@ -1,7 +1,7 @@
package totpView
import (
"github.com/fossyy/filekeeper/view/layout"
"github.com/fossyy/filekeeper/view/client/layout"
"github.com/fossyy/filekeeper/types"
)

View File

@ -1,6 +1,6 @@
package uploadView
import "github.com/fossyy/filekeeper/view/layout"
import "github.com/fossyy/filekeeper/view/client/layout"
templ content(title string) {
@layout.Base(title){

View File

@ -1,7 +1,7 @@
package userTotpSetupView
import (
"github.com/fossyy/filekeeper/view/layout"
"github.com/fossyy/filekeeper/view/client/layout"
"github.com/fossyy/filekeeper/types"
)

View File

@ -2,7 +2,7 @@ package userView
import (
"github.com/fossyy/filekeeper/types"
"github.com/fossyy/filekeeper/view/layout"
"github.com/fossyy/filekeeper/view/client/layout"
"github.com/fossyy/filekeeper/session"
)