mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-29 02:36:35 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74ba8390f4 | ||
|
|
31198feec2 | ||
|
|
e5ec264bfd | ||
|
|
c822192124 |
13
CHANGELOG.md
13
CHANGELOG.md
@@ -1,3 +1,16 @@
|
|||||||
|
## [](https://github.com/pocket-id/pocket-id/compare/v0.37.0...v) (2025-03-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add env variable to disable update check ([31198fe](https://github.com/pocket-id/pocket-id/commit/31198feec2ae77dd6673c42b42002871ddd02d37))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* redirection not correctly if signing in with email code ([e5ec264](https://github.com/pocket-id/pocket-id/commit/e5ec264bfd535752565bcc107099a9df5cb8aba7))
|
||||||
|
* typo in account settings ([#307](https://github.com/pocket-id/pocket-id/issues/307)) ([c822192](https://github.com/pocket-id/pocket-id/commit/c8221921245deb3008f655740d1a9460dcdab2fc))
|
||||||
|
|
||||||
## [](https://github.com/pocket-id/pocket-id/compare/v0.36.0...v) (2025-03-10)
|
## [](https://github.com/pocket-id/pocket-id/compare/v0.36.0...v) (2025-03-10)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
4
frontend/package-lock.json
generated
4
frontend/package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "pocket-id-frontend",
|
"name": "pocket-id-frontend",
|
||||||
"version": "0.36.0",
|
"version": "0.37.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "pocket-id-frontend",
|
"name": "pocket-id-frontend",
|
||||||
"version": "0.36.0",
|
"version": "0.37.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@simplewebauthn/browser": "^13.1.0",
|
"@simplewebauthn/browser": "^13.1.0",
|
||||||
"@tailwindcss/vite": "^4.0.0",
|
"@tailwindcss/vite": "^4.0.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pocket-id-frontend",
|
"name": "pocket-id-frontend",
|
||||||
"version": "0.37.0",
|
"version": "0.38.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -63,8 +63,8 @@ export default class AppConfigService extends APIService {
|
|||||||
.then((res) => res.data)
|
.then((res) => res.data)
|
||||||
.catch(() => null);
|
.catch(() => null);
|
||||||
|
|
||||||
let newestVersion: string | null = null;
|
let newestVersion: string | undefined;
|
||||||
let isUpToDate: boolean | null = null;
|
let isUpToDate: boolean | undefined;
|
||||||
if (response) {
|
if (response) {
|
||||||
newestVersion = response.tag_name.replace('v', '');
|
newestVersion = response.tag_name.replace('v', '');
|
||||||
isUpToDate = newestVersion === currentVersion;
|
isUpToDate = newestVersion === currentVersion;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export type AppConfigRawResponse = {
|
|||||||
}[];
|
}[];
|
||||||
|
|
||||||
export type AppVersionInformation = {
|
export type AppVersionInformation = {
|
||||||
isUpToDate: boolean | null;
|
isUpToDate?: boolean;
|
||||||
newestVersion: string | null;
|
newestVersion?: string;
|
||||||
currentVersion: string;
|
currentVersion: string;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -55,7 +55,13 @@
|
|||||||
<Button class="w-full" href={'/login/alternative/code' + page.url.search}>Enter code</Button>
|
<Button class="w-full" href={'/login/alternative/code' + page.url.search}>Enter code</Button>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<form onsubmit={requestEmail} class="w-full max-w-[450px]">
|
<form
|
||||||
|
onsubmit={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
requestEmail();
|
||||||
|
}}
|
||||||
|
class="w-full max-w-[450px]"
|
||||||
|
>
|
||||||
<p class="text-muted-foreground mt-2" in:fade>
|
<p class="text-muted-foreground mt-2" in:fade>
|
||||||
Enter your email address to receive an email with a login code.
|
Enter your email address to receive an email with a login code.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import { version as currentVersion } from '$app/environment';
|
||||||
|
import { env } from '$env/dynamic/private';
|
||||||
import AppConfigService from '$lib/services/app-config-service';
|
import AppConfigService from '$lib/services/app-config-service';
|
||||||
import type { AppVersionInformation } from '$lib/types/application-configuration';
|
import type { AppVersionInformation } from '$lib/types/application-configuration';
|
||||||
import type { LayoutServerLoad } from './$types';
|
import type { LayoutServerLoad } from './$types';
|
||||||
@@ -6,6 +8,14 @@ let versionInformation: AppVersionInformation;
|
|||||||
let versionInformationLastUpdated: number;
|
let versionInformationLastUpdated: number;
|
||||||
|
|
||||||
export const load: LayoutServerLoad = async () => {
|
export const load: LayoutServerLoad = async () => {
|
||||||
|
if (env.UPDATE_CHECK_DISABLED === 'true') {
|
||||||
|
return {
|
||||||
|
versionInformation: {
|
||||||
|
currentVersion: currentVersion
|
||||||
|
} satisfies AppVersionInformation
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const appConfigService = new AppConfigService();
|
const appConfigService = new AppConfigService();
|
||||||
|
|
||||||
// Cache the version information for 3 hours
|
// Cache the version information for 3 hours
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
<LucideAlertTriangle class="size-4" />
|
<LucideAlertTriangle class="size-4" />
|
||||||
<Alert.Title>Single Passkey Configured</Alert.Title>
|
<Alert.Title>Single Passkey Configured</Alert.Title>
|
||||||
<Alert.Description
|
<Alert.Description
|
||||||
>It is recommended to add more than one passkey to avoid loosing access to your account.</Alert.Description
|
>It is recommended to add more than one passkey to avoid losing access to your account.</Alert.Description
|
||||||
>
|
>
|
||||||
</Alert.Root>
|
</Alert.Root>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user