Commit Graph

194 Commits

Author SHA1 Message Date
madkarmaa
8c191653f2 feat: add theme store 2025-11-24 12:53:16 +01:00
madkarmaa
6aaba560d5 fix: use correct condition 2025-11-24 12:35:57 +01:00
madkarmaa
536c4fe20d refactor: move NavBar component to the correct folder 2025-11-24 12:34:48 +01:00
madkarmaa
6d430b4487 feat: keep modal hierarchy 2025-11-19 10:44:47 +01:00
madkarmaa
b02748deb7 refactor: simplify type 2025-11-13 15:06:41 +01:00
madkarmaa
e7fc9a8be9 feat: add modal component 2025-11-13 15:05:57 +01:00
madkarmaa
2adca8ce00 feat: add button component 2025-11-13 15:01:24 +01:00
madkarmaa
d47c1bffbe refactor: simplify logic 2025-11-12 10:46:45 +01:00
madkarmaa
baea96a4be feat: add banner component 2025-11-12 10:42:52 +01:00
madkarmaa
1f5122cc49 fix: remove buttons default bg color 2025-11-12 10:41:31 +01:00
madkarmaa
2b8f2e3cf2 fix: use correct icon set 2025-11-12 09:27:03 +01:00
madkarmaa
11b9365299 fix: highlight announcements button 2025-11-11 15:08:26 +01:00
madkarmaa
ea79d5db3b feat: complete navbar structure 2025-11-11 15:01:06 +01:00
madkarmaa
22f9fbeb7d feat: add navbar 2025-11-11 10:57:32 +01:00
madkarmaa
175368e10a feat: init routes 2025-11-11 10:46:20 +01:00
madkarmaa
3906a58640 chore: init new SvelteKit project 2025-11-10 14:31:55 +01:00
oSumAtrIX
012e798aed feat: Add notice before showing e-mail (#327)
Co-authored-by: Ushie <ushiekane@gmail.com>
2025-09-17 03:33:53 +03:00
Ushie
04ab5cf39f feat: Improve announcement read tracking and localStorage sync 2025-06-26 02:03:48 +03:00
Ushie
8476b98ee2 feat: Add tooltips to buttons in Announcement management, minor UI improvements and fixes 2025-06-25 17:31:09 +03:00
Ushie
b4eed9ac6a refactor: Rename Modals to Dialogs, Move Dialogs and Banners to layout 2025-06-14 04:58:38 +03:00
Ushie
32c0bbb3d4 refactor: Component style cleanup 2025-06-14 02:45:43 +03:00
MadKarma
dba960aacb chore: Use HTML <dialog> component (#297) 2025-06-06 02:35:28 +03:00
MadKarma
c224285825 feat: Add announcements (#257)
* feat: init /announcements route

+ update dependecies
+ add types
+ add components

* fix: use page store to get the query params

* feat: filter ann by channel

+ revert queries lib to v4

* feat: use page store to select channel chip

* feat: add content slot

* feat: add top row with all channels

* feat: add Gallery component

* feat: style ChannelChip

* feat: add NewChip

* feat: add read announcement logic

* refactor: Move components to the announcements route folder

* feat: Style the announcement cards and use mansory layout

* fix: resolve errors

* chore: Minor refactor and add more placeholder announcements

* fix: Remove unused import

* fix: use correct types + import component

* fix: Announcements masonry layout not displaying anything

* feat: add unread marker to announcement card

* refactor: simplify read logic

* feat: add gap to channels select

* refactor: rename var

* feat: hide actions div if not admin

* refactor: change gear icon to 3 dots icon

* refactor: reduce content preview length

* refactor: remove parentheses and newlines

* feat: init auth module

* refactor: remove newline

* feat: add post, patch and delete methods with auth

+ move get/set token to auth module
+ add UnauthenticatedError class

* feat: add login fn

* feat: add login btn

* chore: update dependencies to fix vulnerability

* refactor: remove card banner

* feat: init login functionality in dom

* feat: add login request and token storage

* refactor: simplify login

* refactor: add comment

* feat: finish auth in dom

* refactor: remove commented code

* feat: add code-side digest auth

* fix: return initial response if 200

* refactor: remove log

* feat: init login modal

* feat: more form styles

* fix: fix auth header

* feat: hide login popup if logged in successfully

* feat: animate input label

* feat: styling (fix inputs overlap)

* fix: add body param to authored requests

* feat: add announcement-related helper functions

* fix: use ? instead of | undefined

* feat: Implement majority of UI

* feat: add Input component

* fix: fix input font size

* feat: add HA1 sha256 to session storage

* feat: add login success dialog

* fix: fix centered text

* fix: use momentjs

* fix: fix ts error

* feat: set announcement read on click

* feat: card check if user is admin

* fix: fix svg size

* feat: add mobile styling

* feat: add session expired modal

* fix: close sess exp modal on new login

* feat: Search

* refactor: Minor cleanup

* feat: Replace 'Sudo Login' with 'Admin Login' and remove icon

* feat: update api to v4

* refactor: move ApiAnnouncementCreate to types file

* fix: minor code fixes

* feat: update Announcement type to API v4 spec

* feat: add Gallery component

* feat: use NewBadge instead of UnreadDot

* feat: Prefetch announcements & use new /announcements/id endpoint

* refactor: Change all references of channels to tags

* refactor: Simplify prefetch query arguments

* fix: fix new badge

* feat: add gallery to ann page

* refactor: change image preview aspect ratio

* feat: add fullscreen image transition

* feat: move gallery inside announcement container

* refactor: use store to check for valid login

* refactor: remove unused css class

* feat: add editing and deleting announcements

TO FIX: `goto('/announcements')` doesn't work

* feat: add unsaved changes check

* feat: add warning before deleting announcement

* refactor: update texts and coloring of warning modal

* refactor: remove dot from red coloring

* refactor: remove red color

* refactor: minor tweaks

* fix: fix json parsing errors when there's no content in response

* refactor: switch buttons position

* feat: add more props to Input

* feat: add wrong credentials message

* feat: Show tags in announcement cards

* feat: Improve NEW header

* fix: Don't show 2nd swiggly line if there's no attachments

* fix: Attachment border radius on unread announcements

* feat: Add create announcement button

* fix: Hide tags section in AnnouncementCard when there's no tags

* fix: Cleanup tags handling and don't show TagsHost if there's no tags

* feat: Add editing and creating announcements and major cleanup

* feat: Managing attachments

* refactor: Split page into components and decrease repetition

* feat: Support modifying createdAt date

* fix: Ensure correct default date input value when editing announcements

* refactor: Minor cleanup

* fix: Save all changes on submit

* feat: Managing tags

* feat: Managing archived status

* refactor: Reduce repetition

* fix: Don't show cancel edit button on creation

* fix: Disable prerendering announcements to fix building

* optimize

* feat: add read announcements store + typing fixes

* refactor: add newline

* fix: add more types

* fix: Trying to write to readable and minor cleanup

* fix: Leave announcement when clicking announcement in the NavBar

* feat: Handle nullability and cleanup

* feat: Wrap icon button in Button and cleanup

* feat: Relative time within 7d and cleanup

* feat: Don't use red text on session expired dialog

* refactor: Reduce repetition

* refactor: Element -> Input

* fix: Reset preview state after cancelling and improve reactivitiy

* feat: Improve admin login in settings design

* fix: Use Moment.js for date handling to resolve timezone offsets and formatting issues

* fix: Don't display content in AnnouncementCard if undefined

* fix: Use goto instead of history

* feat: Prevent announcement submission without a title

* refactor: Minor cleanup

* fix: Unable to create attachments

* refactor: Use correct type

* chore: Remove unused CSS

* fix: Improve tag submission handling on Enter key press

I'm confused

* feat: Improve validity check

* feat: Add attachment validation and improve design

* fix: Inverted announcement validity check

* fix: Empty state for new attachments

* fix: Don't overflow ontop of bin icon

* fix: Improve invalid new attachment handling

* feat: Swap date and content in AnnouncementCard

* feat: Complete login on Enter key press in password input

* fix: Reversed validation logic

* feat: Invalidate cache on Announcement create/delete

* fix: Inline icon in Create button to display the correct color

* feat: Style AnnouncementCard content

* feat: Invalidate cache after save and ensure cache is invalidated after operation

* refactor: Use correct Utils location

* refactor: Remove unused parameter

* feat: Relative date in AnnouncementCard

* feat: Improve mobile responsivity

* feat: Hide archived announcements for non-admin viewers

* feat: Distinguish archived announcements

* refactor: update admin panel message

Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>

* refactor: update admin panel title

Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>

* refactor: Reduce repetition

* fix: Update content after saving

* feat: Handle nullable content

* feat: Archived posts section

* fix: Improve nullability handling

* refactor: Improve relativeTime configurability

* Merge branch 'dev' into pr/madkarmaa/257

* feat: Migrate remaining icons

* feat: Use outline icons

* feat: Wrap long titles

* fix: fix typo

* fix: don't cache creds

* refactor: remove stale time for announcements

* feat: show error alert if admin function fails

* feat: Add slugs to announcement URLs for better readability and SEO

"A site’s URL structure should be as simple as possible. Consider organizing your content so that URLs are constructed logically and in a manner that is most intelligible to humans." — Google Search Central

* feat: add announcement banner

* feat: Improve banner designs

* fix: Close button color and banner not closing

* fix: Sticky navbar, move modals to own components, tidy up CSS, use store for `passed_login_with_creds`

* chore: Delete unused icons

---------

Co-authored-by: Ushie <ushiekane@gmail.com>
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
2025-06-03 02:12:05 +03:00
oSumAtrIX
4cc473b43e fix: Improve semantics and fine tune responsive layout parameters 2025-05-06 20:00:27 +02:00
Ushie
305d9bad06 fix: Order of z-index 2025-05-06 15:04:15 +03:00
oSumAtrIX
5746a7d7ce fix: Make sure footer hides correctly on desktop 2025-05-06 13:34:25 +02:00
oSumAtrIX
bff902876b fix: Hide wave and socials before it overlaps with hero 2025-05-06 13:23:43 +02:00
oSumAtrIX
13cda4b59f fix: Fix index page styling and overflows 2025-05-06 12:43:40 +02:00
Ushie
b3883d2460 fix: Improve socials and wave visibility condition 2025-05-06 01:47:04 +03:00
madkärma
adf569c6be feat: API outage banner (#254)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
Co-authored-by: oSumAtrIX <github@osumatrix.me>
Co-authored-by: Ushie <ushiekane@gmail.com>
2025-02-12 01:08:27 +03:00
Ushie
87ce20ff56 feat: Add the footer to the homepage (#273) 2025-02-04 02:49:32 +03:00
Ushie
24650c71a9 refactor: Reduce repetition by adding icon arguments to Button 2024-12-22 03:19:02 +03:00
madkärma
f73f54a926 feat: Use icon library instead of SVGs (#271) 2024-12-21 21:22:13 +03:00
oSumAtrIX
68f8c1fd59 chore: Bump API (#263) 2024-11-06 01:36:41 +01:00
oSumAtrIX
486e9ef62e feat: Add verified badge to team member card (#216)
Co-authored-by: Kendell R <KTibow@users.noreply.github.com>
Co-authored-by: Ushie <ushiekane@gmail.com>
2024-09-08 23:31:57 +03:00
madkarmaa
bc8e19e0e7 feat: Apply themes on specific events (#227)
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2024-08-13 13:18:56 +02:00
oSumAtrIX
f428902773 chore: Switch to v3 API (#247) 2024-07-13 16:51:31 +02:00
Kendell R
abdf24f34a chore: Remove unused imports/style declaration (#237) 2024-04-28 13:34:53 -07:00
Ushie
9275193333 feat: Add fuzzy search to patches search (#229)
* feat: Fuzzy Search

Co-authored-by: Kendell R <KTibow@users.noreply.github.com>

* slightly change the init logic

* fix behavior

* fix sort behavior
i am so good at reading docs

* update the search results on load

* switch to fuse js

* lower the threshold per @oSumAtrIX request

---------

Co-authored-by: Kendell R <KTibow@users.noreply.github.com>
Co-authored-by: afn <hey@afn.im>
2024-04-27 10:29:52 -07:00
Kendell R
1ad639d60f fix: Correct <Button> semantics by not wrapping the content (#221)
refactor: simplify <Button>
2024-01-12 16:58:32 -08:00
Kendell R
c90201f5f0 fix: fix transition logic for svelte 4 (#220)
update transition logic for svelte 4
2024-01-11 06:56:16 -08:00
Kendell R
80d1251203 chore: Bump deps to latest (#213) 2024-01-08 01:04:42 +03:00
Kendell R
05ff2c1fc3 refactor: Bump & run prettier (#210) 2023-12-31 23:22:11 +03:00
Kendell R
ab4d785f3b refactor: Minify assets (#209) 2023-12-31 23:18:37 +03:00
André
8c7f17cc30 fix: Navigation Bar Accessibility (#196)
* added aria labels to the Navbar

* wrapped <li> element in <ul>

* Update src/layout/Navbar/NavHost.svelte

Co-authored-by: Ushie <ushiekane@gmail.com>

* update: wrap <li> element in <ul>

---------

Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
Co-authored-by: João André Marques <joaoandremarques@MacBook-Pro.local>
Co-authored-by: Ushie <ushiekane@gmail.com>
2023-11-25 17:46:20 +03:00
oSumAtrIX
2c4daece03 fix: Use SEO compliant meta tags 2023-11-12 06:07:12 +01:00
oSumAtrIX
d0912a26b2 fix: Use correct rich results schemas 2023-11-12 00:14:38 +01:00
oSumAtrIX
3c6b6d23f5 fix: Display patches using new patches JSON format 2023-10-05 04:55:47 +02:00
oSumAtrIX
aed3c7ca58 feat: dynamically add socials to JSON-LD 2023-09-15 17:38:34 +02:00
oSumAtrIX
e39632dc2e fix: Move JSON-LD scripts to head nodes 2023-09-15 17:19:44 +02:00