-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(backend): Fixed type declaration and expiration check in Invitati…
…onsVerifyAPI In the `InvitationsVerifyAPI` class, the type declaration for the `invitation` variable was fixed. Additionally, the expiration check was modified to compare the current UTC time with the expiration time to determine if the invitation has expired. feat(frontend): Added copying invite link functionality A button was added to the `InvitationItem.vue` component to allow users to copy the invite link to their clipboard. When clicked, the invite link is copied and a toast message is displayed notifying the user that the link has been copied. feat(frontend): Modified dateLess filter for invitation expiration A new filter named `dateLess` was introduced to compare two dates and return `true` if the first date is less than the second date. This filter is used in the `InvitationItem.vue` component to apply different text colors based on the proximity of the expiration date. fix(frontend): Modified validation for username input in JellyfinSetupView The validation for the username input in the `JellyfinSetupView.vue` component was modified to require alphanumeric characters and lowercase letters only.
- Loading branch information
1 parent
788d220
commit 4df5189
Showing
7 changed files
with
70 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import moment from "moment"; | ||
|
||
/** | ||
* dateLess - Filter that returns true if the first date is less than the second date | ||
* | ||
* @param {string} value - The first date to compare | ||
* @param {string} other - The second date to compare | ||
* @param {boolean} utc - Whether input date is in UTC | ||
* @returns The boolean result of the calculation | ||
*/ | ||
function dateLess(value: string | Date, other: string | Date, utc: boolean = true): boolean { | ||
if (utc) { | ||
value = moment.utc(value).local(); | ||
other = moment.utc(other).local(); | ||
} else { | ||
value = moment(value).local(); | ||
other = moment(other).local(); | ||
} | ||
|
||
return value.isBefore(other); | ||
} | ||
|
||
export default dateLess; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
frontend/src/views/JoinViews/JellyfinViews/JellyfinSetupView.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters