Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Announcements #257

Draft
wants to merge 72 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
db667ca
feat: init /announcements route
madkarmaa Sep 4, 2024
28a81cf
fix: use page store to get the query params
madkarmaa Sep 4, 2024
644e46f
feat: filter ann by channel
madkarmaa Sep 4, 2024
67c368e
feat: use page store to select channel chip
madkarmaa Sep 4, 2024
8cff355
feat: add content slot
madkarmaa Sep 4, 2024
937c52d
feat: add top row with all channels
madkarmaa Sep 5, 2024
fccc607
feat: add Gallery component
madkarmaa Sep 6, 2024
fb5629c
feat: style ChannelChip
madkarmaa Sep 11, 2024
de023ca
feat: add NewChip
madkarmaa Sep 11, 2024
74a9cad
feat: add read announcement logic
madkarmaa Sep 11, 2024
e34504c
refactor: Move components to the announcements route folder
Ushie Sep 13, 2024
566a777
feat: Style the announcement cards and use mansory layout
Ushie Sep 13, 2024
b575437
fix: resolve errors
madkarmaa Sep 13, 2024
d65c01e
chore: Minor refactor and add more placeholder announcements
Ushie Sep 17, 2024
a79cbcc
Merge branch 'feat/announcements' of https://github.com/madkarmaa/rev…
Ushie Sep 17, 2024
2531051
fix: Remove unused import
Ushie Sep 17, 2024
9b7ae6c
fix: use correct types + import component
madkarmaa Sep 17, 2024
4b38e62
fix: Announcements masonry layout not displaying anything
Ushie Sep 18, 2024
f82369d
feat: add unread marker to announcement card
madkarmaa Sep 19, 2024
bf2af36
refactor: simplify read logic
madkarmaa Sep 19, 2024
06a358b
feat: add gap to channels select
madkarmaa Sep 19, 2024
0f8aa21
refactor: rename var
madkarmaa Sep 19, 2024
e9b8a44
feat: hide actions div if not admin
madkarmaa Sep 19, 2024
33c16f3
refactor: change gear icon to 3 dots icon
madkarmaa Sep 20, 2024
62398f8
refactor: reduce content preview length
madkarmaa Sep 20, 2024
05c6513
refactor: remove parentheses and newlines
madkarmaa Sep 20, 2024
ee2a577
feat: init auth module
madkarmaa Sep 21, 2024
bf64cb3
refactor: remove newline
madkarmaa Sep 21, 2024
2272dfa
feat: add post, patch and delete methods with auth
madkarmaa Sep 21, 2024
46f994b
feat: add login fn
madkarmaa Sep 23, 2024
c86187f
feat: add login btn
madkarmaa Sep 23, 2024
f1365dd
chore: update dependencies to fix vulnerability
madkarmaa Sep 24, 2024
d520d18
refactor: remove card banner
madkarmaa Sep 24, 2024
ca8365f
feat: init login functionality in dom
madkarmaa Sep 24, 2024
c98adb9
feat: add login request and token storage
madkarmaa Sep 24, 2024
444ddf1
refactor: simplify login
madkarmaa Sep 24, 2024
d18a4b3
refactor: add comment
madkarmaa Sep 24, 2024
1c3c409
feat: finish auth in dom
madkarmaa Oct 1, 2024
0a8eded
refactor: remove commented code
madkarmaa Oct 1, 2024
ca1de91
feat: add code-side digest auth
madkarmaa Oct 2, 2024
1e8842f
Merge branch 'feat/announcements' of https://github.com/madkarmaa/rev…
madkarmaa Oct 2, 2024
5431d9a
fix: return initial response if 200
madkarmaa Oct 2, 2024
5afda87
refactor: remove log
madkarmaa Oct 3, 2024
2cafb17
feat: init login modal
madkarmaa Oct 3, 2024
6b7b03b
feat: more form styles
madkarmaa Oct 7, 2024
4490a59
fix: fix auth header
madkarmaa Oct 7, 2024
e899c96
feat: hide login popup if logged in successfully
madkarmaa Oct 7, 2024
ec9714f
feat: animate input label
madkarmaa Oct 7, 2024
515b679
feat: styling (fix inputs overlap)
madkarmaa Oct 7, 2024
043feb6
fix: add body param to authored requests
madkarmaa Oct 8, 2024
7fd0876
feat: add announcement-related helper functions
madkarmaa Oct 8, 2024
a2f79ec
fix: use ? instead of | undefined
madkarmaa Oct 8, 2024
0470e44
feat: Implement majority of UI
Ushie Oct 11, 2024
c0b1664
feat: add Input component
madkarmaa Oct 12, 2024
107cadc
fix: fix input font size
madkarmaa Oct 12, 2024
9a0fd34
feat: add HA1 sha256 to session storage
madkarmaa Oct 12, 2024
147590c
feat: add login success dialog
madkarmaa Oct 12, 2024
5217fa8
fix: fix centered text
madkarmaa Oct 12, 2024
aa534c7
fix: use momentjs
madkarmaa Oct 12, 2024
b494112
fix: fix ts error
madkarmaa Oct 12, 2024
1694649
feat: set announcement read on click
madkarmaa Oct 12, 2024
44f29cf
feat: card check if user is admin
madkarmaa Oct 12, 2024
139be71
fix: fix svg size
madkarmaa Oct 12, 2024
7eecff3
feat: add mobile styling
madkarmaa Oct 12, 2024
0d0b904
feat: add session expired modal
madkarmaa Oct 12, 2024
e7801a2
fix: close sess exp modal on new login
madkarmaa Oct 12, 2024
899e10b
feat: Search
Ushie Oct 15, 2024
0dcff7f
refactor: Minor cleanup
Ushie Oct 29, 2024
5a91cda
feat: Replace 'Sudo Login' with 'Admin Login' and remove icon
Ushie Oct 29, 2024
8239d20
feat: update api to v4
madkarmaa Nov 6, 2024
e261a7a
refactor: move ApiAnnouncementCreate to types file
madkarmaa Nov 6, 2024
95ad504
fix: minor code fixes
madkarmaa Nov 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
226 changes: 125 additions & 101 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
"sass": "1.77.8",
"semver": "7.6.2",
"sirv-cli": "^2.0.2",
"svelte": "4.2.18",
"svelte": "^4.2.19",
"svelte-check": "3.8.4",
"svelte-meta-tags": "3.1.2",
"tslib": "2.6.3",
"typescript": "5.5.3",
"vite": "5.3.3",
"vite": "^5.4.7",
"vite-imagetools": "7.0.4"
},
"type": "module",
Expand All @@ -43,6 +43,7 @@
"@tanstack/query-persist-client-core": "^4.36.1",
"@tanstack/query-sync-storage-persister": "^4.36.1",
"@tanstack/svelte-query": "^4.36.1",
"datetrigger": "^1.1.1"
"datetrigger": "^1.1.1",
"moment": "^2.30.1"
}
}
Loading