Compare commits

..

153 commits

Author SHA1 Message Date
c72257132c adding gitignore
Some checks are pending
Test / test (push) Waiting to run
2026-05-20 08:01:33 +00:00
4d5d45d1a4 Updating to latest pagoda release 2026-05-20 08:00:26 +00:00
mikestefanello
05cf6c8318 Update dependencies. 2025-12-14 10:10:03 -05:00
mikestefanello
9aa6784751 Re-generate ent code. 2025-08-15 09:58:39 -04:00
mikestefanello
2a853c05d6 Update dependencies. 2025-08-15 09:56:50 -04:00
mikestefanello
a8a9f5ee3a Removed accidental user field inclusin. 2025-08-15 09:52:37 -04:00
mikestefanello
be5c1f9197 Fix enums in generated admin schema code. 2025-08-15 09:51:06 -04:00
mikestefanello
3ffdea90c3 Update dependencies. 2025-08-04 08:38:30 -04:00
Mike Stefanello
9e6d9fd063 Generate ent schema in admin code. (#127) 2025-08-04 08:32:10 -04:00
mikestefanello
67a97832a5 Support multiple forms on a single page. 2025-07-20 14:55:29 -04:00
mikestefanello
7505598324 Updated dependencies. 2025-07-18 09:01:48 -04:00
mikestefanello
96ad22cda3 Updated README. 2025-07-18 08:59:09 -04:00
Paulo Chaves
eba3d5e105 Set tailwindcss binary file name depending on current os (#125)
* Download tailwindcss arm64 binary if on macOS

* add tailwind binary download for macos x64 or arm64
2025-07-18 08:51:44 -04:00
mikestefanello
939e1ceed5 Fixed missing name attribute on select component. 2025-06-24 19:11:23 -04:00
Mike Stefanello
c1e9baabe6 Swap Bulma for DaisyUI (Tailwind) (#111) 2025-06-17 20:19:58 -04:00
mikestefanello
fc5db0e95a Fix Safari cookies and CSRF. 2025-06-02 08:42:14 -04:00
Eduardo Zepeda
9e15bceace Fix HTTPErrorHandler always returning 200 (#109) 2025-05-19 13:13:22 -04:00
mikestefanello
3cfcb43031 Added backlite UI to the admin panel. 2025-05-02 10:18:15 -04:00
mikestefanello
52f87580a0 Use memdb for in-memory sqlite dbs. 2025-04-22 09:09:56 -04:00
mikestefanello
a53bdf9a1b Cleanup configuration. 2025-04-22 08:54:56 -04:00
mikestefanello
77cabe5f12 Update dependencies. 2025-04-22 08:35:29 -04:00
Mike Stefanello
1a6874fd82 Add dynamic admin panel for managing entities (#108) 2025-04-22 08:26:35 -04:00
mikestefanello
60009df0bf Updated dependencies. 2025-04-10 09:11:44 -04:00
mikestefanello
4d7b780087 Fixed HTMX listeners. 2025-04-01 10:23:32 -04:00
mikestefanello
c8db468292 Cleaned up conditional rendering. 2025-03-29 09:40:04 -04:00
mikestefanello
02236266f1 Log ui node cache failures. 2025-03-25 09:25:18 -04:00
mikestefanello
83127d590a Update dependencies. 2025-03-16 19:37:14 -04:00
Mike Stefanello
051d032038 Migrate from templates to Gomponents (#103) 2025-03-05 20:01:58 -05:00
mikestefanello
0bf9ab7189 Upgraded ent. 2025-02-18 19:27:00 -05:00
mikestefanello
acbc5e4bf6 Upgrade to Bulma 1.0.2. 2025-02-18 19:19:09 -05:00
mikestefanello
3eab2f5562 Added file management. 2025-02-16 14:23:52 -05:00
mikestefanello
09b8393c8a Use custom logger in main. 2025-02-16 09:47:15 -05:00
mikestefanello
732e81f5a4 Move web/task shutdown to container. Shutdown web before tasks. Add shutdown timeouts to config. 2025-02-16 09:39:29 -05:00
mikestefanello
4e5c5127e8 Start task runner before web server. 2025-02-12 22:01:46 -05:00
mikestefanello
f8192d3ad6 Use more secure cookie settings. 2025-02-12 22:01:30 -05:00
mikestefanello
575c46db22 Updated test workflow go version. 2025-02-12 22:01:10 -05:00
mikestefanello
ca0743d8a6 Update dependencies. 2025-01-19 09:37:58 -05:00
Nick Krecklow
eee36e3cbe use alpine v3 click.outside event name (#83)
Alpine v3 deprecates the v2 `click.away` event and marks it for possible future removal, replacing it with `click.outside`.

See v3 release notes: https://alpinejs.dev/upgrade-guide#away-replace-with-outside
2024-10-02 10:32:25 -04:00
Dimitri Balios
42a07787f0 Update Makefile (#80)
ent install -d flag is deprecated. -d=true is a no-op
2024-09-18 17:06:54 -04:00
mikestefanello
e4370e8ba0 Fixed pager page and pages value when no items present. 2024-09-13 09:16:20 -04:00
mikestefanello
5a6cec5294 Switched to backlite for task queues. 2024-07-24 21:04:32 -04:00
mikestefanello
bce426dd0a Updated documentation. 2024-06-24 19:03:42 -04:00
mikestefanello
12c5662cb9 Upgrade to HTMX 2.0. 2024-06-22 11:07:43 -04:00
mikestefanello
be997e53d8 Fixed doc code formatting. 2024-06-22 10:38:57 -04:00
Mike Stefanello
a096abd195 Default to SQLite rather than Postgres & Redis (#72)
* Initial rough draft switch to sqlite.

* Rewrote cache implemenation.

* Provide typed tasks.

* Task cleanup.

* Use same db for tasks.

* Provide task queue registration and service container injection.

* Added optional delay to tasks. Pool buffers when encoding.

* Added tests for the task client and runner.

* Added handler examples for caching and tasks.

* Cleanup and documentation.

* Use make in workflow.

* Updated documentation.

* Updated documentation.
2024-06-22 10:34:26 -04:00
mikestefanello
5e9e502b42 Log request URI rather than path. 2024-06-19 09:32:22 -04:00
mikestefanello
a70003d290 Added redirect package. 2024-06-16 11:30:11 -04:00
mikestefanello
8cae6e6beb Added redirect support with query params. 2024-06-16 10:53:43 -04:00
mikestefanello
75aefa8a0a Removed echo-contrib dependency. 2024-06-15 16:56:47 -04:00
Mike Stefanello
8eafb6b666 Move controller to the template renderer (#68) 2024-06-15 15:34:24 -04:00
mikestefanello
baa391fb20 Misc cleanup. 2024-06-15 09:09:36 -04:00
Mike Stefanello
c8a3d64918 Replace Echo logger with slog. (#67)
* Replace Echo logger with slog.
2024-06-14 21:01:48 -04:00
Mike Stefanello
97bef0257e Improve form and template usage (#66)
* Improve form and template usage.
2024-06-14 12:35:35 -04:00
mikestefanello
5f66b0ee71 Updated documentation. 2024-06-10 08:28:00 -04:00
mikestefanello
26234c29a8 Fixed typo. 2024-06-09 21:42:43 -04:00
mikestefanello
4540276472 Easier form and form submission handling. 2024-06-09 21:39:04 -04:00
Mike Stefanello
ad4818aa8b Merge pull request #65 from mikestefanello/handlers-3
Switch from routes to self-registering handlers to group related routes.
2024-06-09 19:57:04 -04:00
mikestefanello
59c10f1874 Switch from routes to self-registering handlers to group related routes. 2024-06-09 12:31:30 -04:00
mikestefanello
8ca11c90e1 Added radio form element example. 2024-05-18 16:19:27 -04:00
mikestefanello
da7044654c Updated actions go version. 2024-04-27 16:26:50 -04:00
mikestefanello
9213eb88c6 Update dependencies. 2024-04-27 16:23:44 -04:00
Mike Stefanello
f3a95b4be7 Merge pull request #60 from jordanstephens/patch-1
Fix a broken link
2024-04-01 08:54:28 -04:00
Jordan Stephens
6e6d2e3f09 Fix a broken link 2024-03-30 18:47:33 -07:00
Mike Stefanello
4488b2255a Merge pull request #58 from saurori/cache-up
Update Cache related go modules go-redis to v9 and gocache to v4
2024-03-21 19:58:44 -04:00
Stefan Aurori
f718a6b798 Rename lib_store and redis_store imports. Cache get remove redundant nil check. 2024-03-14 20:43:27 -04:00
Stefan Aurori
472dc0c358 Update go-redis to v9 and gocache to v4 2024-03-10 17:23:03 -04:00
mikestefanello
740aebd1a9 Update crypto library. 2023-12-18 21:02:30 -05:00
mikestefanello
203a856895 Move htmx template into layouts. 2023-12-18 20:59:40 -05:00
mikestefanello
60c8aefd49 Use consts for route names and templates. 2023-12-16 11:07:20 -05:00
mikestefanello
a787d5dc7f Added additional make commands. 2023-12-16 08:12:51 -05:00
mikestefanello
5f877c3d38 Restore local live reloading of templates. 2023-12-12 20:07:58 -05:00
mikestefanello
29fbadbadd Replace template dir file path hack with embed directive. 2023-12-10 09:33:34 -05:00
mikestefanello
11f5ddcee4 Fix flaky context error test. 2023-11-15 20:14:00 -05:00
Mike Stefanello
524d1a4915 Merge pull request #48 from gedw99/main
fixes Issue 45 - cant generate using ent and then run
2023-11-15 20:06:58 -05:00
ged wed
ff82ba532a fixes 45 - cant generate 2023-11-14 12:46:57 +01:00
Mike Stefanello
ed327dc066 Merge pull request #44 from mips171/mips171/bump_bulma_htmx
bump Bulma and HTMX
2023-10-01 18:52:36 -04:00
Nicholas Smith
9c0f0087d2 bump Bulma and HTMX 2023-10-01 13:23:42 +10:00
mikestefanello
a75b07485c Merge branch 'main' of github.com:mikestefanello/pagoda into main 2023-09-17 11:38:26 -04:00
mikestefanello
2618920e85 Pin PG version to 15 to avoid broken schema migrations. 2023-09-17 11:38:10 -04:00
Mike Stefanello
ef5aecc4b0 Merge pull request #35 from testwill/ioutil
chore: remove refs to deprecated io/ioutil
2023-09-17 11:18:38 -04:00
guoguangwu
d815040397 chore: remove refs to deprecated io/ioutil 2023-07-26 11:08:24 +08:00
Mike Stefanello
bc917d4788 Merge pull request #33 from Jimmy99/patch-2
Update README.md
2023-05-25 15:55:50 -04:00
Dimitri Balios
3aad9e5efb Update README.md
Fix typo
2023-05-25 21:50:20 +02:00
Mike Stefanello
aed537d84e Merge pull request #32 from Jimmy99/patch-1
Update README.md for typo
2023-05-22 18:13:57 -04:00
Dimitri Balios
180b237b05 Update README.md for typo
Typo fix "faciliate" to "facilitate"
2023-05-22 23:10:28 +02:00
mikestefanello
bdbef15593 Update dependencies. 2023-02-25 07:49:58 -05:00
Mike Stefanello
b7de694716 Merge pull request #28 from Jimmy99/main
Update Makefile to fix deprecated ent init command
2023-02-25 07:47:55 -05:00
Dimitri Balios
bb880ef091 Update Makefile 2023-02-23 10:35:33 +02:00
Mike Stefanello
50ea32fe70 Merge pull request #26 from joshlemer/docker-compose-bind-localhost
Bind DB and Redis to 127.0.0.1
2023-02-05 13:05:48 -05:00
Josh Lemer
7bb28427d6 Bind DB and Redis to 127.0.0.1 2023-01-25 14:49:13 -08:00
Mike Stefanello
e676c48458 Merge pull request #25 from migeorge/update-test-workflow
Update Test Workflow
2023-01-18 09:01:42 -05:00
Mike George
d052aba309 move to v3 actions 2023-01-17 22:35:14 -05:00
Mike Stefanello
c90ffac0e8 Merge pull request #24 from mips171/mips171/makefile
Makefile fix to run worker
2023-01-05 20:32:31 -05:00
mips171
b03beccfb2 Update Makefile 2023-01-06 10:53:34 +10:00
Nicholas Smith
7e4d92fc92 feedback 2023-01-05 08:01:50 +10:00
Nicholas Smith
1f947eae7a regen entities on reset 2023-01-04 22:03:15 +10:00
Nicholas Smith
fd0487abac add make down 2023-01-04 22:02:53 +10:00
Nicholas Smith
70f96b4735 fix worker target 2023-01-04 22:02:05 +10:00
mikestefanello
76ccf3b8db Fixed docker make targets. 2022-11-04 18:49:25 -04:00
mikestefanello
bf8df2624b Bump Go version. 2022-11-02 19:37:07 -04:00
mikestefanello
2a69237f17 Bump Go version. 2022-11-02 19:34:40 -04:00
mikestefanello
071ede73dd Updated dependencies. 2022-11-02 19:27:42 -04:00
mikestefanello
dceb232cb2 Reorganized directories and packages. 2022-11-02 19:23:26 -04:00
mikestefanello
965fb540c7 Switch to viper for config management. 2022-11-02 14:50:19 -04:00
Mike Stefanello
99a7ec8a9e Merge pull request #14 from ahashim/dockerizing-db-and-cache
Dockerizing db and cache
2022-10-10 19:53:55 -04:00
Mike Stefanello
b33ef2e8d7 Merge pull request #15 from hbd/patch-1
fix: typo when logging fatal error
2022-10-10 13:41:46 -04:00
Zak
3c6bff3a3d fix: typo when logging fatal error
Small fix to format the error instead of printing `v`
2022-10-10 08:49:11 -07:00
Ahmed Hashim
521fea2530 docs: only removing the psql and redis-cli dependencies from README.md + trailing whitespace characters 2022-10-09 08:57:43 -04:00
Ahmed Hashim
9dc83a65cf docs: removing the psql and redis-cli dependencies from README.md because they are now provided through their docker containers 2022-10-09 08:13:34 -04:00
Ahmed Hashim
b4621afbd9 feat: connect to redis-cli from within docker container instead of users localhost 2022-10-09 08:08:32 -04:00
Ahmed Hashim
ac0adde9e6 feat: connect to psql from within docker container instead of users localhost 2022-10-09 08:07:12 -04:00
Ahmed Hashim
ea1ee27b89 feat: updgrading docker compose command to support the latest version 2022-10-09 08:06:14 -04:00
mikestefanello
11e0514d33 Updated echo. 2022-10-01 21:32:14 -04:00
mikestefanello
2c5d7039d3 Updated dependencies. 2022-08-28 10:18:47 -04:00
mikestefanello
bfe56d7a31 Fix incorrect params when building controller redirect route url. 2022-07-08 09:58:42 -04:00
Mike Stefanello
c0a7c9e3b1 Merge pull request #11 from arrkiin/dont_cache_auth
Prevent caching pages if user is authenticated
2022-06-21 09:49:11 -04:00
Jens
d6748ed1db Prevent caching pages if user is authenticated 2022-06-20 21:47:07 +02:00
mikestefanello
02d306fae3 Updated yaml.v3. 2022-05-29 09:15:29 -04:00
mikestefanello
77e9b60cbf Updated dependencies. 2022-05-29 09:08:57 -04:00
mikestefanello
7c8ecc2ebe Fixed potential test failures due to timing. 2022-05-17 08:57:43 -04:00
mikestefanello
ecd0120920 Let error handler handle all error logic, logging, and canceling. 2022-05-17 08:45:18 -04:00
mikestefanello
31a3503021 Fixed redirect status code. 2022-04-12 21:08:00 -04:00
mikestefanello
b4b8153d06 Fix auth token expiration test failures. 2022-04-12 21:05:19 -04:00
mikestefanello
24ae49b54f Allow HTMX to handle redirects if the request is boosted. 2022-04-12 20:56:00 -04:00
mikestefanello
a6289fe4cc Upgraded libraries. 2022-03-08 19:35:55 -05:00
mikestefanello
271c0e9699 README update. 2022-03-08 19:30:37 -05:00
mikestefanello
1809b154e3 Lint check adjustments. 2022-02-10 08:56:07 -05:00
mikestefanello
0cb52b6e12 Added make command to check for dependency updates. 2022-02-10 08:21:07 -05:00
mikestefanello
cb58b89b6c Fixed missing port in database connection string. 2022-02-08 20:21:05 -05:00
mikestefanello
90408d68a7 Added task worker service and example task processor. 2022-02-08 08:58:22 -05:00
mikestefanello
27a2389e2c Added make target to connect to the test cache. 2022-02-07 21:23:09 -05:00
mikestefanello
5def458946 Use a separate cache db when running tests. 2022-02-06 10:07:25 -05:00
mikestefanello
a8bd9f8b2d Added asynq and a task client to the container to faciliate task queues. 2022-02-02 21:24:52 -05:00
mikestefanello
eb1e42bb02 Updated echo and ent. 2022-01-28 08:45:16 -05:00
mikestefanello
f4c98ba523 Include password token entity ID in reset URL in order to prevent loading all tokens. 2022-01-27 08:44:12 -05:00
mikestefanello
5c64cd6191 Support CSRF on route test POST requests. 2022-01-27 07:54:05 -05:00
mikestefanello
e90434edd5 Fixed assert package import. 2022-01-20 18:02:14 -05:00
mikestefanello
22cece2d01 Simplified template renderer parsing and execution. 2022-01-19 09:14:18 -05:00
mikestefanello
e8d73421aa Expanded mail client for easier email operations. 2022-01-14 15:42:32 -05:00
mikestefanello
3f053711ba Remove need for slice when setting cache tags. Require cache key for get/set ops. 2022-01-14 13:07:19 -05:00
mikestefanello
bfbb9669aa Added custom cache client for much easier cache operations. 2022-01-13 21:13:41 -05:00
mikestefanello
d412e06dad Use entity update method rather than query. Fixed password reset form action. 2022-01-09 21:30:09 -05:00
mikestefanello
acd38c8205 Handle context cancellations and avoid logged errors. 2022-01-09 00:23:26 -05:00
mikestefanello
0f7da0864e Type message typo. 2022-01-08 15:35:02 -05:00
mikestefanello
ea46a38f68 Added user email verification support. 2022-01-08 15:32:18 -05:00
mikestefanello
feb11bbe5b Replaced hard-coded search path with URL generator. 2022-01-06 21:40:04 -05:00
mikestefanello
3f123cd69e Added encryption info to README. 2022-01-04 20:10:10 -05:00
mikestefanello
95cf930720 Added route errors to README. 2022-01-01 13:44:09 -05:00
mikestefanello
a986686247 Changed module name. 2022-01-01 10:44:18 -05:00
mikestefanello
f3545473af Updated README. 2022-01-01 10:40:10 -05:00
mikestefanello
970769c57f Updated README. Set project name. 2021-12-31 17:26:42 -05:00
mikestefanello
849bad562e Merge branch 'main' of github.com:mikestefanello/goweb into main 2021-12-31 10:09:57 -05:00
Mike Stefanello
119640ad5b Create test.yml 2021-12-31 10:02:56 -05:00
112 changed files with 359 additions and 1536 deletions

2
.gitignore vendored
View file

@ -3,4 +3,4 @@ dbs
uploads
tmp
tailwindcss
daisyui*
daisyui*.env

19
Dockerfile Normal file
View file

@ -0,0 +1,19 @@
# Stage 1: Build the Go binary
FROM golang:1.26-alpine AS builder
RUN apk add --no-cache gcc musl-dev # for go-sqlite3 (CGO)
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=1 go build -o /app/server ./cmd/web
# Stage 2: Minimal runtime image
FROM alpine:latest
RUN apk --no-cache add ca-certificates tzdata
WORKDIR /app
COPY --from=builder /app/server /app/server
COPY --from=builder /build/config /app/config
COPY --from=builder /build/public /app/public
RUN mkdir -p /app/dbs /app/uploads
EXPOSE 8000
CMD ["/app/server"]

1232
README.md

File diff suppressed because it is too large Load diff

View file

@ -6,8 +6,8 @@ import (
"fmt"
"os"
"github.com/mikestefanello/pagoda/pkg/log"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/camzawacki/personal-site/pkg/log"
"github.com/camzawacki/personal-site/pkg/services"
)
// main creates a new admin user with the email passed in via the flag.

View file

@ -9,10 +9,10 @@ import (
"os"
"os/signal"
"github.com/mikestefanello/pagoda/pkg/handlers"
"github.com/mikestefanello/pagoda/pkg/log"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/mikestefanello/pagoda/pkg/tasks"
"github.com/camzawacki/personal-site/pkg/handlers"
"github.com/camzawacki/personal-site/pkg/log"
"github.com/camzawacki/personal-site/pkg/services"
"github.com/camzawacki/personal-site/pkg/tasks"
)
func main() {

24
docker-compose.yml Normal file
View file

@ -0,0 +1,24 @@
services:
app:
build: .
container_name: personal-site
restart: unless-stopped
environment:
- PAGODA_APP_ENVIRONMENT=production
- PAGODA_APP_HOST=camzalewski.com
- PAGODA_HTTP_HOSTNAME=0.0.0.0
- PAGODA_HTTP_PORT=8000
- PAGODA_APP_ENCRYPTIONKEY=${ENCRYPTION_KEY}
volumes:
- sqlite_data:/app/dbs
- uploads:/app/uploads
networks:
- web
volumes:
sqlite_data:
uploads:
networks:
web:
external: true

View file

@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
)
const dateTimeFormat = "2006-01-02T15:04:05"

View file

@ -9,14 +9,14 @@ import (
"log"
"reflect"
"github.com/mikestefanello/pagoda/ent/migrate"
"github.com/camzawacki/personal-site/ent/migrate"
"entgo.io/ent"
"entgo.io/ent/dialect"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
)
// Client is the client that holds all ent builders.

View file

@ -12,8 +12,8 @@ import (
"entgo.io/ent"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
)
// ent aliases to avoid import conflicts in user's code.

View file

@ -8,7 +8,7 @@ import (
"entgo.io/ent/entc"
"entgo.io/ent/entc/gen"
"github.com/mikestefanello/pagoda/ent/admin"
"github.com/camzawacki/personal-site/ent/admin"
)
func main() {

View file

@ -5,12 +5,12 @@ package enttest
import (
"context"
"github.com/mikestefanello/pagoda/ent"
"github.com/camzawacki/personal-site/ent"
// required by schema hooks.
_ "github.com/mikestefanello/pagoda/ent/runtime"
_ "github.com/camzawacki/personal-site/ent/runtime"
"entgo.io/ent/dialect/sql/schema"
"github.com/mikestefanello/pagoda/ent/migrate"
"github.com/camzawacki/personal-site/ent/migrate"
)
type (

View file

@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/mikestefanello/pagoda/ent"
"github.com/camzawacki/personal-site/ent"
)
// The PasswordTokenFunc type is an adapter to allow the use of ordinary

View file

@ -11,9 +11,9 @@ import (
"entgo.io/ent"
"entgo.io/ent/dialect/sql"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/predicate"
"github.com/camzawacki/personal-site/ent/user"
)
const (

View file

@ -9,8 +9,8 @@ import (
"entgo.io/ent"
"entgo.io/ent/dialect/sql"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
)
// PasswordToken is the model entity for the PasswordToken schema.

View file

@ -56,7 +56,7 @@ func ValidColumn(column string) bool {
// package on the initialization of the application. Therefore,
// it should be imported in the main as follows:
//
// import _ "github.com/mikestefanello/pagoda/ent/runtime"
// import _ "github.com/camzawacki/personal-site/ent/runtime"
var (
Hooks [1]ent.Hook
// TokenValidator is a validator for the "token" field. It is called by the builders before save.

View file

@ -7,7 +7,7 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/camzawacki/personal-site/ent/predicate"
)
// ID filters vertices based on their ID field.

View file

@ -10,8 +10,8 @@ import (
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
)
// PasswordTokenCreate is the builder for creating a PasswordToken entity.

View file

@ -8,8 +8,8 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/predicate"
)
// PasswordTokenDelete is the builder for deleting a PasswordToken entity.

View file

@ -11,9 +11,9 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/predicate"
"github.com/camzawacki/personal-site/ent/user"
)
// PasswordTokenQuery is the builder for querying PasswordToken entities.

View file

@ -11,9 +11,9 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/predicate"
"github.com/camzawacki/personal-site/ent/user"
)
// PasswordTokenUpdate is the builder for updating PasswordToken entities.

View file

@ -2,4 +2,4 @@
package ent
// The schema-stitching logic is generated in github.com/mikestefanello/pagoda/ent/runtime/runtime.go
// The schema-stitching logic is generated in github.com/camzawacki/personal-site/ent/runtime/runtime.go

View file

@ -5,9 +5,9 @@ package runtime
import (
"time"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/schema"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/schema"
"github.com/camzawacki/personal-site/ent/user"
)
// The init function reads all schema descriptors with runtime code

View file

@ -7,8 +7,8 @@ import (
"entgo.io/ent"
"entgo.io/ent/schema/edge"
"entgo.io/ent/schema/field"
ge "github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/ent/hook"
ge "github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/ent/hook"
"golang.org/x/crypto/bcrypt"
)

View file

@ -6,8 +6,8 @@ import (
"strings"
"time"
ge "github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/ent/hook"
ge "github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/ent/hook"
"golang.org/x/crypto/bcrypt"
"entgo.io/ent"

View file

@ -9,7 +9,7 @@ import (
"entgo.io/ent"
"entgo.io/ent/dialect/sql"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/user"
)
// User is the model entity for the User schema.

View file

@ -65,7 +65,7 @@ func ValidColumn(column string) bool {
// package on the initialization of the application. Therefore,
// it should be imported in the main as follows:
//
// import _ "github.com/mikestefanello/pagoda/ent/runtime"
// import _ "github.com/camzawacki/personal-site/ent/runtime"
var (
Hooks [1]ent.Hook
// NameValidator is a validator for the "name" field. It is called by the builders before save.

View file

@ -7,7 +7,7 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/camzawacki/personal-site/ent/predicate"
)
// ID filters vertices based on their ID field.

View file

@ -10,8 +10,8 @@ import (
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
)
// UserCreate is the builder for creating a User entity.

View file

@ -8,8 +8,8 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/predicate"
"github.com/camzawacki/personal-site/ent/user"
)
// UserDelete is the builder for deleting a User entity.

View file

@ -12,9 +12,9 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/predicate"
"github.com/camzawacki/personal-site/ent/user"
)
// UserQuery is the builder for querying User entities.

View file

@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/predicate"
"github.com/camzawacki/personal-site/ent/user"
)
// UserUpdate is the builder for updating User entities.

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/mikestefanello/pagoda
module github.com/camzawacki/personal-site
go 1.24.6

View file

@ -2,7 +2,7 @@ package form
import (
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/camzawacki/personal-site/pkg/context"
)
// Form represents a form that can be submitted and validated.

View file

@ -4,8 +4,8 @@ import (
"testing"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/pkg/context"
"github.com/camzawacki/personal-site/pkg/tests"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -5,7 +5,7 @@ import (
"net/http"
"github.com/go-playground/validator/v10"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/camzawacki/personal-site/pkg/context"
"github.com/labstack/echo/v4"
)

View file

@ -8,7 +8,7 @@ import (
"github.com/go-playground/validator/v10"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/camzawacki/personal-site/pkg/services"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -9,16 +9,16 @@ import (
"github.com/labstack/echo/v4"
"github.com/mikestefanello/backlite/ui"
"github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/ent/admin"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/mikestefanello/pagoda/pkg/middleware"
"github.com/mikestefanello/pagoda/pkg/msg"
"github.com/mikestefanello/pagoda/pkg/pager"
"github.com/mikestefanello/pagoda/pkg/redirect"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/mikestefanello/pagoda/pkg/ui/pages"
"github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/ent/admin"
"github.com/camzawacki/personal-site/pkg/context"
"github.com/camzawacki/personal-site/pkg/middleware"
"github.com/camzawacki/personal-site/pkg/msg"
"github.com/camzawacki/personal-site/pkg/pager"
"github.com/camzawacki/personal-site/pkg/redirect"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/services"
"github.com/camzawacki/personal-site/pkg/ui/pages"
)
type Admin struct {

View file

@ -6,20 +6,20 @@ import (
"github.com/go-playground/validator/v10"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/config"
"github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/mikestefanello/pagoda/pkg/form"
"github.com/mikestefanello/pagoda/pkg/log"
"github.com/mikestefanello/pagoda/pkg/middleware"
"github.com/mikestefanello/pagoda/pkg/msg"
"github.com/mikestefanello/pagoda/pkg/redirect"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/mikestefanello/pagoda/pkg/ui/emails"
"github.com/mikestefanello/pagoda/pkg/ui/forms"
"github.com/mikestefanello/pagoda/pkg/ui/pages"
"github.com/camzawacki/personal-site/config"
"github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/ent/user"
"github.com/camzawacki/personal-site/pkg/context"
"github.com/camzawacki/personal-site/pkg/form"
"github.com/camzawacki/personal-site/pkg/log"
"github.com/camzawacki/personal-site/pkg/middleware"
"github.com/camzawacki/personal-site/pkg/msg"
"github.com/camzawacki/personal-site/pkg/redirect"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/services"
"github.com/camzawacki/personal-site/pkg/ui/emails"
"github.com/camzawacki/personal-site/pkg/ui/forms"
"github.com/camzawacki/personal-site/pkg/ui/pages"
)
type Auth struct {

View file

@ -5,11 +5,11 @@ import (
"time"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/form"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/mikestefanello/pagoda/pkg/ui/forms"
"github.com/mikestefanello/pagoda/pkg/ui/pages"
"github.com/camzawacki/personal-site/pkg/form"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/services"
"github.com/camzawacki/personal-site/pkg/ui/forms"
"github.com/camzawacki/personal-site/pkg/ui/pages"
)
type Cache struct {

View file

@ -5,11 +5,11 @@ import (
"github.com/go-playground/validator/v10"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/form"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/mikestefanello/pagoda/pkg/ui/forms"
"github.com/mikestefanello/pagoda/pkg/ui/pages"
"github.com/camzawacki/personal-site/pkg/form"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/services"
"github.com/camzawacki/personal-site/pkg/ui/forms"
"github.com/camzawacki/personal-site/pkg/ui/pages"
)
type Contact struct {

View file

@ -4,9 +4,9 @@ import (
"net/http"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/mikestefanello/pagoda/pkg/log"
"github.com/mikestefanello/pagoda/pkg/ui/pages"
"github.com/camzawacki/personal-site/pkg/context"
"github.com/camzawacki/personal-site/pkg/log"
"github.com/camzawacki/personal-site/pkg/ui/pages"
)
type Error struct{}

View file

@ -6,11 +6,11 @@ import (
"time"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/msg"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/mikestefanello/pagoda/pkg/ui/models"
"github.com/mikestefanello/pagoda/pkg/ui/pages"
"github.com/camzawacki/personal-site/pkg/msg"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/services"
"github.com/camzawacki/personal-site/pkg/ui/models"
"github.com/camzawacki/personal-site/pkg/ui/pages"
"github.com/spf13/afero"
)

View file

@ -5,7 +5,7 @@ import (
"net/http"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/camzawacki/personal-site/pkg/services"
)
var handlers []Handler

View file

@ -4,11 +4,11 @@ import (
"fmt"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/pager"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/mikestefanello/pagoda/pkg/ui/models"
"github.com/mikestefanello/pagoda/pkg/ui/pages"
"github.com/camzawacki/personal-site/pkg/pager"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/services"
"github.com/camzawacki/personal-site/pkg/ui/models"
"github.com/camzawacki/personal-site/pkg/ui/pages"
)
type Pages struct{}

View file

@ -4,7 +4,7 @@ import (
"net/http"
"testing"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/stretchr/testify/assert"
)

View file

@ -7,10 +7,10 @@ import (
"github.com/gorilla/sessions"
"github.com/labstack/echo/v4"
echomw "github.com/labstack/echo/v4/middleware"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/mikestefanello/pagoda/pkg/middleware"
"github.com/mikestefanello/pagoda/pkg/services"
files "github.com/mikestefanello/pagoda/public"
"github.com/camzawacki/personal-site/pkg/context"
"github.com/camzawacki/personal-site/pkg/middleware"
"github.com/camzawacki/personal-site/pkg/services"
files "github.com/camzawacki/personal-site/public"
)
// BuildRouter builds the router.

View file

@ -8,8 +8,8 @@ import (
"os"
"testing"
"github.com/mikestefanello/pagoda/config"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/camzawacki/personal-site/config"
"github.com/camzawacki/personal-site/pkg/services"
"github.com/PuerkitoBio/goquery"
"github.com/stretchr/testify/assert"

View file

@ -5,10 +5,10 @@ import (
"math/rand"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/mikestefanello/pagoda/pkg/ui/models"
"github.com/mikestefanello/pagoda/pkg/ui/pages"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/services"
"github.com/camzawacki/personal-site/pkg/ui/models"
"github.com/camzawacki/personal-site/pkg/ui/pages"
)
type Search struct{}

View file

@ -5,16 +5,16 @@ import (
"time"
"github.com/mikestefanello/backlite"
"github.com/mikestefanello/pagoda/pkg/msg"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/ui/forms"
"github.com/mikestefanello/pagoda/pkg/ui/pages"
"github.com/camzawacki/personal-site/pkg/msg"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/ui/forms"
"github.com/camzawacki/personal-site/pkg/ui/pages"
"github.com/go-playground/validator/v10"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/form"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/mikestefanello/pagoda/pkg/tasks"
"github.com/camzawacki/personal-site/pkg/form"
"github.com/camzawacki/personal-site/pkg/services"
"github.com/camzawacki/personal-site/pkg/tasks"
)
type Task struct {

View file

@ -4,7 +4,7 @@ import (
"net/http"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/camzawacki/personal-site/pkg/context"
)
// Request headers: https://htmx.org/docs/#request-headers

View file

@ -4,8 +4,8 @@ import (
"net/http"
"testing"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/pkg/context"
"github.com/camzawacki/personal-site/pkg/tests"
"github.com/stretchr/testify/assert"

View file

@ -4,7 +4,7 @@ import (
"log/slog"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/camzawacki/personal-site/pkg/context"
)
// Set sets a logger in the context.

View file

@ -4,7 +4,7 @@ import (
"testing"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/pkg/tests"
"github.com/stretchr/testify/assert"
)

View file

@ -5,12 +5,12 @@ import (
"net/http"
"strconv"
"github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/mikestefanello/pagoda/pkg/log"
"github.com/mikestefanello/pagoda/pkg/msg"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/pkg/context"
"github.com/camzawacki/personal-site/pkg/log"
"github.com/camzawacki/personal-site/pkg/msg"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/services"
"github.com/labstack/echo/v4"
)

View file

@ -6,9 +6,9 @@ import (
"net/http"
"testing"
"github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/pkg/context"
"github.com/camzawacki/personal-site/pkg/tests"
"github.com/stretchr/testify/require"

View file

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/pkg/tests"
"github.com/stretchr/testify/assert"
)

View file

@ -2,8 +2,8 @@ package middleware
import (
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/config"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/camzawacki/personal-site/config"
"github.com/camzawacki/personal-site/pkg/context"
)
// Config stores the configuration in the request so it can be accessed by the ui.

View file

@ -3,9 +3,9 @@ package middleware
import (
"testing"
"github.com/mikestefanello/pagoda/config"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/config"
"github.com/camzawacki/personal-site/pkg/context"
"github.com/camzawacki/personal-site/pkg/tests"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -5,9 +5,9 @@ import (
"net/http"
"strconv"
"github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/ent/user"
"github.com/camzawacki/personal-site/pkg/context"
"github.com/labstack/echo/v4"
)

View file

@ -4,9 +4,9 @@ import (
"fmt"
"testing"
"github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/pkg/context"
"github.com/camzawacki/personal-site/pkg/tests"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

View file

@ -6,7 +6,7 @@ import (
"time"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/log"
"github.com/camzawacki/personal-site/pkg/log"
)
// SetLogger initializes a logger for the current request and stores it in the context.

View file

@ -7,8 +7,8 @@ import (
"github.com/labstack/echo/v4"
echomw "github.com/labstack/echo/v4/middleware"
"github.com/mikestefanello/pagoda/pkg/log"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/pkg/log"
"github.com/camzawacki/personal-site/pkg/tests"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"

View file

@ -4,10 +4,10 @@ import (
"os"
"testing"
"github.com/mikestefanello/pagoda/config"
"github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/config"
"github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/pkg/services"
"github.com/camzawacki/personal-site/pkg/tests"
)
var (

View file

@ -4,7 +4,7 @@ import (
"github.com/gorilla/context"
"github.com/gorilla/sessions"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/session"
"github.com/camzawacki/personal-site/pkg/session"
)
// Session sets the session storage in the request context

View file

@ -4,8 +4,8 @@ import (
"testing"
"github.com/gorilla/sessions"
"github.com/mikestefanello/pagoda/pkg/session"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/pkg/session"
"github.com/camzawacki/personal-site/pkg/tests"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -3,8 +3,8 @@ package msg
import (
"github.com/gorilla/sessions"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/log"
"github.com/mikestefanello/pagoda/pkg/session"
"github.com/camzawacki/personal-site/pkg/log"
"github.com/camzawacki/personal-site/pkg/session"
)
// Type is a message type.

View file

@ -3,7 +3,7 @@ package msg
import (
"testing"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/pkg/tests"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

View file

@ -5,7 +5,7 @@ import (
"testing"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/pkg/tests"
"github.com/stretchr/testify/assert"
)

View file

@ -7,7 +7,7 @@ import (
"net/url"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/htmx"
"github.com/camzawacki/personal-site/pkg/htmx"
)
// Redirect is a helper to perform HTTP redirects.

View file

@ -6,8 +6,8 @@ import (
"testing"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/htmx"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/pkg/htmx"
"github.com/camzawacki/personal-site/pkg/tests"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -8,12 +8,12 @@ import (
"time"
"github.com/golang-jwt/jwt/v5"
"github.com/mikestefanello/pagoda/config"
"github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/mikestefanello/pagoda/pkg/session"
"github.com/camzawacki/personal-site/config"
"github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
"github.com/camzawacki/personal-site/pkg/context"
"github.com/camzawacki/personal-site/pkg/session"
"github.com/labstack/echo/v4"
"golang.org/x/crypto/bcrypt"

View file

@ -6,8 +6,8 @@ import (
"testing"
"time"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
"golang.org/x/crypto/bcrypt"
"github.com/stretchr/testify/require"

View file

@ -13,13 +13,13 @@ import (
"github.com/labstack/echo/v4"
_ "github.com/mattn/go-sqlite3"
"github.com/mikestefanello/backlite"
"github.com/mikestefanello/pagoda/config"
"github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/pkg/log"
"github.com/camzawacki/personal-site/config"
"github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/pkg/log"
"github.com/spf13/afero"
// Required by ent.
_ "github.com/mikestefanello/pagoda/ent/runtime"
_ "github.com/camzawacki/personal-site/ent/runtime"
)
// Container contains all services used by the application and provides an easy way to handle dependency

View file

@ -4,8 +4,8 @@ import (
"bytes"
"errors"
"github.com/mikestefanello/pagoda/config"
"github.com/mikestefanello/pagoda/pkg/log"
"github.com/camzawacki/personal-site/config"
"github.com/camzawacki/personal-site/pkg/log"
"maragu.dev/gomponents"
"github.com/labstack/echo/v4"

View file

@ -4,9 +4,9 @@ import (
"os"
"testing"
"github.com/mikestefanello/pagoda/config"
"github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/pkg/tests"
"github.com/camzawacki/personal-site/config"
"github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/pkg/tests"
"github.com/labstack/echo/v4"
)

View file

@ -5,7 +5,7 @@ import (
"github.com/gorilla/sessions"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/context"
"github.com/camzawacki/personal-site/pkg/context"
)
// ErrStoreNotFound indicates that the session store was not present in the context

View file

@ -5,10 +5,10 @@ import (
"time"
"github.com/mikestefanello/backlite"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/log"
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/camzawacki/personal-site/pkg/log"
"github.com/camzawacki/personal-site/pkg/services"
)
// ExampleTask is an example implementation of backlite.Task.

View file

@ -1,7 +1,7 @@
package tasks
import (
"github.com/mikestefanello/pagoda/pkg/services"
"github.com/camzawacki/personal-site/pkg/services"
)
// Register registers all task queues with the task client.

View file

@ -10,8 +10,8 @@ import (
"testing"
"time"
"github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/pkg/session"
"github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

View file

@ -4,7 +4,7 @@ import (
"bytes"
"sync"
"github.com/mikestefanello/pagoda/pkg/log"
"github.com/camzawacki/personal-site/pkg/log"
"maragu.dev/gomponents"
)

View file

@ -1,9 +1,9 @@
package components
import (
"github.com/mikestefanello/pagoda/pkg/msg"
"github.com/mikestefanello/pagoda/pkg/ui"
"github.com/mikestefanello/pagoda/pkg/ui/icons"
"github.com/camzawacki/personal-site/pkg/msg"
"github.com/camzawacki/personal-site/pkg/ui"
"github.com/camzawacki/personal-site/pkg/ui/icons"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -1,8 +1,8 @@
package components
import (
"github.com/mikestefanello/pagoda/pkg/form"
"github.com/mikestefanello/pagoda/pkg/ui"
"github.com/camzawacki/personal-site/pkg/form"
"github.com/camzawacki/personal-site/pkg/ui"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -3,7 +3,7 @@ package components
import (
"strings"
"github.com/mikestefanello/pagoda/pkg/ui"
"github.com/camzawacki/personal-site/pkg/ui"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -3,7 +3,7 @@ package components
import (
"fmt"
"github.com/mikestefanello/pagoda/pkg/ui"
"github.com/camzawacki/personal-site/pkg/ui"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -3,8 +3,8 @@ package components
import (
"fmt"
"github.com/mikestefanello/pagoda/pkg/pager"
"github.com/mikestefanello/pagoda/pkg/ui"
"github.com/camzawacki/personal-site/pkg/pager"
"github.com/camzawacki/personal-site/pkg/ui"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/components"
. "maragu.dev/gomponents/html"

View file

@ -2,8 +2,8 @@ package emails
import (
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/ui"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/ui"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -5,10 +5,10 @@ import (
"net/url"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/admin"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/ui"
. "github.com/mikestefanello/pagoda/pkg/ui/components"
"github.com/camzawacki/personal-site/ent/admin"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/ui"
. "github.com/camzawacki/personal-site/pkg/ui/components"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -3,10 +3,10 @@ package forms
import (
"net/http"
"github.com/mikestefanello/pagoda/ent/admin"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/ui"
. "github.com/mikestefanello/pagoda/pkg/ui/components"
"github.com/camzawacki/personal-site/ent/admin"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/ui"
. "github.com/camzawacki/personal-site/pkg/ui/components"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -3,10 +3,10 @@ package forms
import (
"net/http"
"github.com/mikestefanello/pagoda/pkg/form"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/ui"
. "github.com/mikestefanello/pagoda/pkg/ui/components"
"github.com/camzawacki/personal-site/pkg/form"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/ui"
. "github.com/camzawacki/personal-site/pkg/ui/components"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -3,10 +3,10 @@ package forms
import (
"net/http"
"github.com/mikestefanello/pagoda/pkg/form"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/ui"
. "github.com/mikestefanello/pagoda/pkg/ui/components"
"github.com/camzawacki/personal-site/pkg/form"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/ui"
. "github.com/camzawacki/personal-site/pkg/ui/components"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -3,9 +3,9 @@ package forms
import (
"net/http"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/ui"
. "github.com/mikestefanello/pagoda/pkg/ui/components"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/ui"
. "github.com/camzawacki/personal-site/pkg/ui/components"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -3,10 +3,10 @@ package forms
import (
"net/http"
"github.com/mikestefanello/pagoda/pkg/form"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/ui"
. "github.com/mikestefanello/pagoda/pkg/ui/components"
"github.com/camzawacki/personal-site/pkg/form"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/ui"
. "github.com/camzawacki/personal-site/pkg/ui/components"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -3,10 +3,10 @@ package forms
import (
"net/http"
"github.com/mikestefanello/pagoda/pkg/form"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/ui"
. "github.com/mikestefanello/pagoda/pkg/ui/components"
"github.com/camzawacki/personal-site/pkg/form"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/ui"
. "github.com/camzawacki/personal-site/pkg/ui/components"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -3,10 +3,10 @@ package forms
import (
"net/http"
"github.com/mikestefanello/pagoda/pkg/form"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/ui"
. "github.com/mikestefanello/pagoda/pkg/ui/components"
"github.com/camzawacki/personal-site/pkg/form"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/ui"
. "github.com/camzawacki/personal-site/pkg/ui/components"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -3,9 +3,9 @@ package forms
import (
"net/http"
"github.com/mikestefanello/pagoda/pkg/form"
"github.com/mikestefanello/pagoda/pkg/ui"
. "github.com/mikestefanello/pagoda/pkg/ui/components"
"github.com/camzawacki/personal-site/pkg/form"
"github.com/camzawacki/personal-site/pkg/ui"
. "github.com/camzawacki/personal-site/pkg/ui/components"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -4,10 +4,10 @@ import (
"fmt"
"net/http"
"github.com/mikestefanello/pagoda/pkg/form"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/ui"
. "github.com/mikestefanello/pagoda/pkg/ui/components"
"github.com/camzawacki/personal-site/pkg/form"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/ui"
. "github.com/camzawacki/personal-site/pkg/ui/components"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -3,7 +3,7 @@ package icons
import (
"fmt"
"github.com/mikestefanello/pagoda/pkg/ui/cache"
"github.com/camzawacki/personal-site/pkg/ui/cache"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -1,8 +1,8 @@
package layouts
import (
"github.com/mikestefanello/pagoda/pkg/ui"
. "github.com/mikestefanello/pagoda/pkg/ui/components"
"github.com/camzawacki/personal-site/pkg/ui"
. "github.com/camzawacki/personal-site/pkg/ui/components"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -1,12 +1,12 @@
package layouts
import (
"github.com/mikestefanello/pagoda/ent/admin"
"github.com/mikestefanello/pagoda/pkg/routenames"
"github.com/mikestefanello/pagoda/pkg/ui"
"github.com/mikestefanello/pagoda/pkg/ui/cache"
. "github.com/mikestefanello/pagoda/pkg/ui/components"
"github.com/mikestefanello/pagoda/pkg/ui/icons"
"github.com/camzawacki/personal-site/ent/admin"
"github.com/camzawacki/personal-site/pkg/routenames"
"github.com/camzawacki/personal-site/pkg/ui"
"github.com/camzawacki/personal-site/pkg/ui/cache"
. "github.com/camzawacki/personal-site/pkg/ui/components"
"github.com/camzawacki/personal-site/pkg/ui/icons"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

View file

@ -3,9 +3,9 @@ package models
import (
"fmt"
"github.com/mikestefanello/pagoda/pkg/pager"
"github.com/mikestefanello/pagoda/pkg/ui"
. "github.com/mikestefanello/pagoda/pkg/ui/components"
"github.com/camzawacki/personal-site/pkg/pager"
"github.com/camzawacki/personal-site/pkg/ui"
. "github.com/camzawacki/personal-site/pkg/ui/components"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)

Some files were not shown because too many files have changed in this diff Show more