Browse Source

removed components folder

cleanup
Lars Hoogestraat 7 months ago
parent
commit
ad9e4eaaff
30 changed files with 37 additions and 37 deletions
  1. +1
    -1
      clt/createuser/create_user.go
  2. +1
    -1
      clt/initdatabase/init_database.go
  3. +2
    -2
      controllers/account.go
  4. +1
    -1
      controllers/article.go
  5. +1
    -1
      controllers/category.go
  6. +2
    -2
      controllers/file.go
  7. +1
    -1
      controllers/form_util.go
  8. +1
    -1
      controllers/site.go
  9. +1
    -1
      controllers/user.go
  10. +1
    -1
      controllers/utils_test.go
  11. +0
    -0
      database/database.go
  12. +0
    -0
      httperror/error.go
  13. +0
    -0
      logger/log.go
  14. +1
    -1
      mail/mail.go
  15. +3
    -3
      main.go
  16. +2
    -2
      middleware/json_handler.go
  17. +1
    -1
      middleware/middleware_util.go
  18. +2
    -2
      middleware/template.go
  19. +2
    -2
      middleware/template_handler.go
  20. +1
    -1
      middleware/xml_handler.go
  21. +1
    -1
      models/article.go
  22. +1
    -1
      models/category.go
  23. +2
    -2
      models/file.go
  24. +1
    -1
      models/mail.go
  25. +1
    -1
      models/site.go
  26. +1
    -1
      models/site_sqlite.go
  27. +2
    -2
      models/token.go
  28. +2
    -2
      models/user.go
  29. +1
    -1
      models/user_invite.go
  30. +1
    -1
      settings/config.go

+ 1
- 1
clt/createuser/create_user.go View File

@ -13,7 +13,7 @@ import (
"syscall"
"git.hoogi.eu/snafu/go-blog/components/database"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/logger"
"git.hoogi.eu/snafu/go-blog/models"
"git.hoogi.eu/snafu/go-blog/utils"
"golang.org/x/crypto/ssh/terminal"


+ 1
- 1
clt/initdatabase/init_database.go View File

@ -13,7 +13,7 @@ import (
"strings"
"git.hoogi.eu/snafu/go-blog/components/database"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/logger"
)
var (


+ 2
- 2
controllers/account.go View File

@ -8,8 +8,8 @@ import (
"net/http"
"time"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/httperror"
"git.hoogi.eu/snafu/go-blog/logger"
"git.hoogi.eu/snafu/go-blog/middleware"
"git.hoogi.eu/snafu/go-blog/models"
)


+ 1
- 1
controllers/article.go View File

@ -10,7 +10,7 @@ import (
"net/http"
"time"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/httperror"
"git.hoogi.eu/snafu/go-blog/middleware"
"git.hoogi.eu/snafu/go-blog/models"
)


+ 1
- 1
controllers/category.go View File

@ -8,7 +8,7 @@ import (
"fmt"
"net/http"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/httperror"
"git.hoogi.eu/snafu/go-blog/middleware"
"git.hoogi.eu/snafu/go-blog/models"
)


+ 2
- 2
controllers/file.go View File

@ -9,8 +9,8 @@ import (
"path/filepath"
"syscall"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/httperror"
"git.hoogi.eu/snafu/go-blog/logger"
"git.hoogi.eu/snafu/go-blog/middleware"
"git.hoogi.eu/snafu/go-blog/models"
)


+ 1
- 1
controllers/form_util.go View File

@ -8,7 +8,7 @@ import (
"net/http"
"strconv"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/logger"
"github.com/gorilla/mux"
)


+ 1
- 1
controllers/site.go View File

@ -10,7 +10,7 @@ import (
"fmt"
"net/http"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/httperror"
"git.hoogi.eu/snafu/go-blog/middleware"
"git.hoogi.eu/snafu/go-blog/models"
)


+ 1
- 1
controllers/user.go View File

@ -8,7 +8,7 @@ import (
"fmt"
"net/http"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/httperror"
"git.hoogi.eu/snafu/go-blog/middleware"
"git.hoogi.eu/snafu/go-blog/models"
)


+ 1
- 1
controllers/utils_test.go View File

@ -21,8 +21,8 @@ import (
"testing"
"git.hoogi.eu/snafu/go-blog/components/database"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/components/mail"
"git.hoogi.eu/snafu/go-blog/logger"
"git.hoogi.eu/snafu/go-blog/middleware"
"git.hoogi.eu/snafu/go-blog/models"
"git.hoogi.eu/snafu/go-blog/settings"


components/database/database.go → database/database.go View File


components/httperror/error.go → httperror/error.go View File


components/logger/log.go → logger/log.go View File


components/mail/mail.go → mail/mail.go View File


+ 3
- 3
main.go View File

@ -13,9 +13,9 @@ import (
"time"
"git.hoogi.eu/snafu/cfg"
"git.hoogi.eu/snafu/go-blog/components/database"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/components/mail"
"git.hoogi.eu/snafu/go-blog/database"
"git.hoogi.eu/snafu/go-blog/logger"
"git.hoogi.eu/snafu/go-blog/mail"
m "git.hoogi.eu/snafu/go-blog/middleware"
"git.hoogi.eu/snafu/go-blog/models"
"git.hoogi.eu/snafu/go-blog/routers"


+ 2
- 2
middleware/json_handler.go View File

@ -8,8 +8,8 @@ import (
"encoding/json"
"net/http"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/httperror"
"git.hoogi.eu/snafu/go-blog/logger"
"git.hoogi.eu/snafu/go-blog/models"
)


+ 1
- 1
middleware/middleware_util.go View File

@ -10,8 +10,8 @@ import (
"strings"
"time"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/crypt"
"git.hoogi.eu/snafu/go-blog/logger"
)
var locals = [...]net.IPNet{


+ 2
- 2
middleware/template.go View File

@ -16,8 +16,8 @@ import (
"time"
"git.hoogi.eu/snafu/cfg"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/httperror"
"git.hoogi.eu/snafu/go-blog/logger"
"git.hoogi.eu/snafu/go-blog/models"
"git.hoogi.eu/snafu/go-blog/settings"
)


+ 2
- 2
middleware/template_handler.go View File

@ -12,8 +12,8 @@ import (
"github.com/gorilla/csrf"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/httperror"
"git.hoogi.eu/snafu/go-blog/logger"
"git.hoogi.eu/snafu/go-blog/models"
)


+ 1
- 1
middleware/xml_handler.go View File

@ -5,7 +5,7 @@ import (
"encoding/xml"
"net/http"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/logger"
"git.hoogi.eu/snafu/go-blog/models"
)


+ 1
- 1
models/article.go View File

@ -14,7 +14,7 @@ import (
"strings"
"time"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/httperror"
"git.hoogi.eu/snafu/go-blog/settings"
)


+ 1
- 1
models/category.go View File

@ -8,7 +8,7 @@ import (
"strings"
"time"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/httperror"
)
type Category struct {


+ 2
- 2
models/file.go View File

@ -13,8 +13,8 @@ import (
"time"
"unicode"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/httperror"
"git.hoogi.eu/snafu/go-blog/logger"
"git.hoogi.eu/snafu/go-blog/settings"
)


+ 1
- 1
models/mail.go View File

@ -3,7 +3,7 @@ package models
import (
"fmt"
"git.hoogi.eu/snafu/go-blog/components/mail"
"git.hoogi.eu/snafu/go-blog/mail"
"git.hoogi.eu/snafu/go-blog/settings"
)


+ 1
- 1
models/site.go View File

@ -7,7 +7,7 @@ import (
"net/url"
"time"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/httperror"
)
//SiteDatasourceService defines an interface for CRUD operations on sites


+ 1
- 1
models/site_sqlite.go View File

@ -5,7 +5,7 @@ import (
"database/sql"
"time"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/logger"
)
//SQLiteSiteDatasource providing an implementation of SiteDatasourceService for sqlite


+ 2
- 2
models/token.go View File

@ -7,9 +7,9 @@ import (
"net/http"
"time"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/crypt"
"git.hoogi.eu/snafu/go-blog/httperror"
"git.hoogi.eu/snafu/go-blog/logger"
)
//TokenDatasourceService defines an interface for CRUD operations for tokens


+ 2
- 2
models/user.go View File

@ -12,9 +12,9 @@ import (
"strings"
"time"
"git.hoogi.eu/snafu/go-blog/components/httperror"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/crypt"
"git.hoogi.eu/snafu/go-blog/httperror"
"git.hoogi.eu/snafu/go-blog/logger"
"git.hoogi.eu/snafu/go-blog/settings"
"golang.org/x/crypto/bcrypt"
)


+ 1
- 1
models/user_invite.go View File

@ -3,8 +3,8 @@ package models
import (
"time"
"git.hoogi.eu/snafu/go-blog/components/mail"
"git.hoogi.eu/snafu/go-blog/crypt"
"git.hoogi.eu/snafu/go-blog/mail"
)
//User represents a user


+ 1
- 1
settings/config.go View File

@ -15,8 +15,8 @@ import (
"time"
"git.hoogi.eu/snafu/cfg"
"git.hoogi.eu/snafu/go-blog/components/logger"
"git.hoogi.eu/snafu/go-blog/crypt"
"git.hoogi.eu/snafu/go-blog/logger"
)
type LoginMethod int


Loading…
Cancel
Save