├── .air.toml ├── .dockerignore ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── api ├── auth │ └── jwt.go ├── controllers │ ├── entry.go │ ├── entry_test.go │ ├── habit.go │ ├── habit_test.go │ ├── user.go │ ├── user_test.go │ └── util_test.go ├── database │ └── db.go ├── middlewares │ ├── admin.go │ ├── auth.go │ └── authorize_habit.go ├── models │ ├── entry.go │ ├── habit.go │ └── user.go ├── others │ ├── helper.go │ ├── helper_test.go │ └── strings.go ├── repository │ ├── entry.go │ ├── habit.go │ └── user.go └── routes │ ├── entry.go │ ├── habit.go │ ├── router.go │ └── user.go ├── banner.png ├── docker-compose.yml ├── go.mod ├── go.sum ├── main.go ├── mocks ├── IEntryRepository.go ├── IHabitRepository.go └── IUserRepository.go ├── screenshots ├── habit.png └── home.png └── web ├── .dockerignore ├── .eslintrc.json ├── .gitignore ├── .prettierignore ├── .prettierrc.json ├── Dockerfile ├── index.html ├── nginx.conf ├── package-lock.json ├── package.json ├── public ├── apple-touch-icon.png ├── favicon.ico ├── icon-192-maskable.png ├── icon-192.png ├── icon-512-maskable.png ├── icon-512.png ├── manifest.json └── robots.txt ├── src ├── App.tsx ├── components │ ├── AddHabitModal.tsx │ ├── AddUserModal.tsx │ ├── AdminChip.tsx │ ├── AdminComponent.tsx │ ├── AuthComponent.tsx │ ├── AuthProvider.tsx │ ├── Calendar.tsx │ ├── CalendarDay.tsx │ ├── ChangePasswordModal.tsx │ ├── ColorModeButton.tsx │ ├── DeleteModal.tsx │ ├── EditUserModal.tsx │ ├── HabitCard.tsx │ ├── Header.tsx │ ├── LoadingComponent.tsx │ ├── MoreButton.tsx │ ├── PasswordInputDecorator.tsx │ ├── StatCard.tsx │ ├── StyledToaster.tsx │ ├── TimezoneSelect.tsx │ └── TitleWithAddIcon.tsx ├── index.css ├── index.tsx ├── others │ ├── api.ts │ ├── auth.tsx │ ├── calendar.ts │ ├── consts.ts │ ├── helper.ts │ ├── query.ts │ ├── timezone.ts │ ├── types.ts │ └── useAuth.tsx ├── pages │ ├── Account.tsx │ ├── Error.tsx │ ├── Habit.tsx │ ├── Home.tsx │ ├── Layout.tsx │ ├── Login.tsx │ └── Users.tsx ├── router │ ├── actions.ts │ ├── index.tsx │ └── loaders.ts └── vite-env.d.ts ├── tsconfig.json └── vite.config.ts /.air.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/.air.toml -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | web 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | data 2 | tmp 3 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/README.md -------------------------------------------------------------------------------- /api/auth/jwt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/auth/jwt.go -------------------------------------------------------------------------------- /api/controllers/entry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/controllers/entry.go -------------------------------------------------------------------------------- /api/controllers/entry_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/controllers/entry_test.go -------------------------------------------------------------------------------- /api/controllers/habit.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/controllers/habit.go -------------------------------------------------------------------------------- /api/controllers/habit_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/controllers/habit_test.go -------------------------------------------------------------------------------- /api/controllers/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/controllers/user.go -------------------------------------------------------------------------------- /api/controllers/user_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/controllers/user_test.go -------------------------------------------------------------------------------- /api/controllers/util_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/controllers/util_test.go -------------------------------------------------------------------------------- /api/database/db.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/database/db.go -------------------------------------------------------------------------------- /api/middlewares/admin.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/middlewares/admin.go -------------------------------------------------------------------------------- /api/middlewares/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/middlewares/auth.go -------------------------------------------------------------------------------- /api/middlewares/authorize_habit.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/middlewares/authorize_habit.go -------------------------------------------------------------------------------- /api/models/entry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/models/entry.go -------------------------------------------------------------------------------- /api/models/habit.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/models/habit.go -------------------------------------------------------------------------------- /api/models/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/models/user.go -------------------------------------------------------------------------------- /api/others/helper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/others/helper.go -------------------------------------------------------------------------------- /api/others/helper_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/others/helper_test.go -------------------------------------------------------------------------------- /api/others/strings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/others/strings.go -------------------------------------------------------------------------------- /api/repository/entry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/repository/entry.go -------------------------------------------------------------------------------- /api/repository/habit.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/repository/habit.go -------------------------------------------------------------------------------- /api/repository/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/repository/user.go -------------------------------------------------------------------------------- /api/routes/entry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/routes/entry.go -------------------------------------------------------------------------------- /api/routes/habit.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/routes/habit.go -------------------------------------------------------------------------------- /api/routes/router.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/routes/router.go -------------------------------------------------------------------------------- /api/routes/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/api/routes/user.go -------------------------------------------------------------------------------- /banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/banner.png -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/go.sum -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/main.go -------------------------------------------------------------------------------- /mocks/IEntryRepository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/mocks/IEntryRepository.go -------------------------------------------------------------------------------- /mocks/IHabitRepository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/mocks/IHabitRepository.go -------------------------------------------------------------------------------- /mocks/IUserRepository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/mocks/IUserRepository.go -------------------------------------------------------------------------------- /screenshots/habit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/screenshots/habit.png -------------------------------------------------------------------------------- /screenshots/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/screenshots/home.png -------------------------------------------------------------------------------- /web/.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /web/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/.eslintrc.json -------------------------------------------------------------------------------- /web/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/.gitignore -------------------------------------------------------------------------------- /web/.prettierignore: -------------------------------------------------------------------------------- 1 | build 2 | node_modules 3 | -------------------------------------------------------------------------------- /web/.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/.prettierrc.json -------------------------------------------------------------------------------- /web/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/Dockerfile -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/index.html -------------------------------------------------------------------------------- /web/nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/nginx.conf -------------------------------------------------------------------------------- /web/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/package-lock.json -------------------------------------------------------------------------------- /web/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/package.json -------------------------------------------------------------------------------- /web/public/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/public/apple-touch-icon.png -------------------------------------------------------------------------------- /web/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/public/favicon.ico -------------------------------------------------------------------------------- /web/public/icon-192-maskable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/public/icon-192-maskable.png -------------------------------------------------------------------------------- /web/public/icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/public/icon-192.png -------------------------------------------------------------------------------- /web/public/icon-512-maskable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/public/icon-512-maskable.png -------------------------------------------------------------------------------- /web/public/icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/public/icon-512.png -------------------------------------------------------------------------------- /web/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/public/manifest.json -------------------------------------------------------------------------------- /web/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/public/robots.txt -------------------------------------------------------------------------------- /web/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/App.tsx -------------------------------------------------------------------------------- /web/src/components/AddHabitModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/AddHabitModal.tsx -------------------------------------------------------------------------------- /web/src/components/AddUserModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/AddUserModal.tsx -------------------------------------------------------------------------------- /web/src/components/AdminChip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/AdminChip.tsx -------------------------------------------------------------------------------- /web/src/components/AdminComponent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/AdminComponent.tsx -------------------------------------------------------------------------------- /web/src/components/AuthComponent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/AuthComponent.tsx -------------------------------------------------------------------------------- /web/src/components/AuthProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/AuthProvider.tsx -------------------------------------------------------------------------------- /web/src/components/Calendar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/Calendar.tsx -------------------------------------------------------------------------------- /web/src/components/CalendarDay.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/CalendarDay.tsx -------------------------------------------------------------------------------- /web/src/components/ChangePasswordModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/ChangePasswordModal.tsx -------------------------------------------------------------------------------- /web/src/components/ColorModeButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/ColorModeButton.tsx -------------------------------------------------------------------------------- /web/src/components/DeleteModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/DeleteModal.tsx -------------------------------------------------------------------------------- /web/src/components/EditUserModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/EditUserModal.tsx -------------------------------------------------------------------------------- /web/src/components/HabitCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/HabitCard.tsx -------------------------------------------------------------------------------- /web/src/components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/Header.tsx -------------------------------------------------------------------------------- /web/src/components/LoadingComponent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/LoadingComponent.tsx -------------------------------------------------------------------------------- /web/src/components/MoreButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/MoreButton.tsx -------------------------------------------------------------------------------- /web/src/components/PasswordInputDecorator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/PasswordInputDecorator.tsx -------------------------------------------------------------------------------- /web/src/components/StatCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/StatCard.tsx -------------------------------------------------------------------------------- /web/src/components/StyledToaster.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/StyledToaster.tsx -------------------------------------------------------------------------------- /web/src/components/TimezoneSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/TimezoneSelect.tsx -------------------------------------------------------------------------------- /web/src/components/TitleWithAddIcon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/components/TitleWithAddIcon.tsx -------------------------------------------------------------------------------- /web/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/index.css -------------------------------------------------------------------------------- /web/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/index.tsx -------------------------------------------------------------------------------- /web/src/others/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/others/api.ts -------------------------------------------------------------------------------- /web/src/others/auth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/others/auth.tsx -------------------------------------------------------------------------------- /web/src/others/calendar.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/others/calendar.ts -------------------------------------------------------------------------------- /web/src/others/consts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/others/consts.ts -------------------------------------------------------------------------------- /web/src/others/helper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/others/helper.ts -------------------------------------------------------------------------------- /web/src/others/query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/others/query.ts -------------------------------------------------------------------------------- /web/src/others/timezone.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/others/timezone.ts -------------------------------------------------------------------------------- /web/src/others/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/others/types.ts -------------------------------------------------------------------------------- /web/src/others/useAuth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/others/useAuth.tsx -------------------------------------------------------------------------------- /web/src/pages/Account.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/pages/Account.tsx -------------------------------------------------------------------------------- /web/src/pages/Error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/pages/Error.tsx -------------------------------------------------------------------------------- /web/src/pages/Habit.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/pages/Habit.tsx -------------------------------------------------------------------------------- /web/src/pages/Home.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/pages/Home.tsx -------------------------------------------------------------------------------- /web/src/pages/Layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/pages/Layout.tsx -------------------------------------------------------------------------------- /web/src/pages/Login.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/pages/Login.tsx -------------------------------------------------------------------------------- /web/src/pages/Users.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/pages/Users.tsx -------------------------------------------------------------------------------- /web/src/router/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/router/actions.ts -------------------------------------------------------------------------------- /web/src/router/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/router/index.tsx -------------------------------------------------------------------------------- /web/src/router/loaders.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/src/router/loaders.ts -------------------------------------------------------------------------------- /web/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /web/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/tsconfig.json -------------------------------------------------------------------------------- /web/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FR0ST1N/MyDailies/HEAD/web/vite.config.ts --------------------------------------------------------------------------------