mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-28 18:26:36 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4e965434f | ||
|
|
096d214a88 | ||
|
|
afb7fc32e7 | ||
|
|
641bbc9351 | ||
|
|
136c6082f6 | ||
|
|
b9a20d2923 | ||
|
|
74eb2ac0b9 | ||
|
|
51222f5607 | ||
|
|
d6d1a4ced2 |
16
CHANGELOG.md
16
CHANGELOG.md
@@ -1,3 +1,19 @@
|
|||||||
|
## [](https://github.com/pocket-id/pocket-id/compare/v1.9.1...v) (2025-08-27)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* redesigned sidebar with administrative dropdown ([#881](https://github.com/pocket-id/pocket-id/issues/881)) ([096d214](https://github.com/pocket-id/pocket-id/commit/096d214a88808848dae726b0ef4c9a9987185836))
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* apps showed multiple times if user is in multiple groups ([641bbc9](https://github.com/pocket-id/pocket-id/commit/641bbc935191bad8afbfec90943fc3e9de7a0cb6))
|
||||||
|
## [](https://github.com/pocket-id/pocket-id/compare/v1.9.0...v) (2025-08-24)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* sqlite migration drops allowed user groups ([d6d1a4c](https://github.com/pocket-id/pocket-id/commit/d6d1a4ced23886f255a9c2048d19ad3599a17f26))
|
||||||
|
|
||||||
## [](https://github.com/pocket-id/pocket-id/compare/v1.8.1...v) (2025-08-24)
|
## [](https://github.com/pocket-id/pocket-id/compare/v1.8.1...v) (2025-08-24)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,9 @@ func NewDatabase() (db *gorm.DB, err error) {
|
|||||||
var driver database.Driver
|
var driver database.Driver
|
||||||
switch common.EnvConfig.DbProvider {
|
switch common.EnvConfig.DbProvider {
|
||||||
case common.DbProviderSqlite:
|
case common.DbProviderSqlite:
|
||||||
driver, err = sqliteMigrate.WithInstance(sqlDb, &sqliteMigrate.Config{})
|
driver, err = sqliteMigrate.WithInstance(sqlDb, &sqliteMigrate.Config{
|
||||||
|
NoTxWrap: true,
|
||||||
|
})
|
||||||
case common.DbProviderPostgres:
|
case common.DbProviderPostgres:
|
||||||
driver, err = postgresMigrate.WithInstance(sqlDb, &postgresMigrate.Config{})
|
driver, err = postgresMigrate.WithInstance(sqlDb, &postgresMigrate.Config{})
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -1383,14 +1383,18 @@ func (s *OidcService) ListAccessibleOidcClients(ctx context.Context, userID stri
|
|||||||
|
|
||||||
// If user has no groups, only return clients with no allowed user groups
|
// If user has no groups, only return clients with no allowed user groups
|
||||||
if len(userGroupIDs) == 0 {
|
if len(userGroupIDs) == 0 {
|
||||||
query = query.
|
query = query.Where(`NOT EXISTS (
|
||||||
Joins("LEFT JOIN oidc_clients_allowed_user_groups ON oidc_clients.id = oidc_clients_allowed_user_groups.oidc_client_id").
|
SELECT 1 FROM oidc_clients_allowed_user_groups
|
||||||
Where("oidc_clients_allowed_user_groups.oidc_client_id IS NULL")
|
WHERE oidc_clients_allowed_user_groups.oidc_client_id = oidc_clients.id)`)
|
||||||
} else {
|
} else {
|
||||||
// Return clients with no allowed user groups OR clients where user is in allowed groups
|
query = query.Where(`
|
||||||
query = query.
|
NOT EXISTS (
|
||||||
Joins("LEFT JOIN oidc_clients_allowed_user_groups ON oidc_clients.id = oidc_clients_allowed_user_groups.oidc_client_id").
|
SELECT 1 FROM oidc_clients_allowed_user_groups
|
||||||
Where("oidc_clients_allowed_user_groups.oidc_client_id IS NULL OR oidc_clients_allowed_user_groups.user_group_id IN (?)", userGroupIDs)
|
WHERE oidc_clients_allowed_user_groups.oidc_client_id = oidc_clients.id
|
||||||
|
) OR EXISTS (
|
||||||
|
SELECT 1 FROM oidc_clients_allowed_user_groups
|
||||||
|
WHERE oidc_clients_allowed_user_groups.oidc_client_id = oidc_clients.id
|
||||||
|
AND oidc_clients_allowed_user_groups.user_group_id IN (?))`, userGroupIDs)
|
||||||
}
|
}
|
||||||
|
|
||||||
var clients []model.OidcClient
|
var clients []model.OidcClient
|
||||||
|
|||||||
@@ -55,7 +55,9 @@ func NewDatabaseForTest(t *testing.T) *gorm.DB {
|
|||||||
// Perform migrations with the embedded migrations
|
// Perform migrations with the embedded migrations
|
||||||
sqlDB, err := db.DB()
|
sqlDB, err := db.DB()
|
||||||
require.NoError(t, err, "Failed to get sql.DB")
|
require.NoError(t, err, "Failed to get sql.DB")
|
||||||
driver, err := sqliteMigrate.WithInstance(sqlDB, &sqliteMigrate.Config{})
|
driver, err := sqliteMigrate.WithInstance(sqlDB, &sqliteMigrate.Config{
|
||||||
|
NoTxWrap: true,
|
||||||
|
})
|
||||||
require.NoError(t, err, "Failed to create migration driver")
|
require.NoError(t, err, "Failed to create migration driver")
|
||||||
source, err := iofs.New(resources.FS, "migrations/sqlite")
|
source, err := iofs.New(resources.FS, "migrations/sqlite")
|
||||||
require.NoError(t, err, "Failed to create embedded migration source")
|
require.NoError(t, err, "Failed to create embedded migration source")
|
||||||
@@ -63,6 +65,8 @@ func NewDatabaseForTest(t *testing.T) *gorm.DB {
|
|||||||
require.NoError(t, err, "Failed to create migration instance")
|
require.NoError(t, err, "Failed to create migration instance")
|
||||||
err = m.Up()
|
err = m.Up()
|
||||||
require.NoError(t, err, "Failed to perform migrations")
|
require.NoError(t, err, "Failed to perform migrations")
|
||||||
|
_, err = sqlDB.Exec("PRAGMA foreign_keys = OFF;")
|
||||||
|
require.NoError(t, err, "Failed to disable foreign keys")
|
||||||
|
|
||||||
return db
|
return db
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
CREATE TABLE users
|
CREATE TABLE users
|
||||||
(
|
(
|
||||||
id TEXT NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
@@ -77,4 +79,6 @@ CREATE TABLE application_configuration_variables
|
|||||||
type TEXT NOT NULL,
|
type TEXT NOT NULL,
|
||||||
is_public NUMERIC DEFAULT FALSE NOT NULL,
|
is_public NUMERIC DEFAULT FALSE NOT NULL,
|
||||||
is_internal NUMERIC DEFAULT FALSE NOT NULL
|
is_internal NUMERIC DEFAULT FALSE NOT NULL
|
||||||
);
|
);
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE webauthn_credentials ADD COLUMN backup_eligible BOOLEAN NOT NULL DEFAULT FALSE;
|
ALTER TABLE webauthn_credentials ADD COLUMN backup_eligible BOOLEAN NOT NULL DEFAULT FALSE;
|
||||||
ALTER TABLE webauthn_credentials ADD COLUMN backup_state BOOLEAN NOT NULL DEFAULT FALSE;
|
ALTER TABLE webauthn_credentials ADD COLUMN backup_state BOOLEAN NOT NULL DEFAULT FALSE;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE webauthn_credentials DROP COLUMN backup_eligible;
|
ALTER TABLE webauthn_credentials DROP COLUMN backup_eligible;
|
||||||
ALTER TABLE webauthn_credentials DROP COLUMN backup_state;
|
ALTER TABLE webauthn_credentials DROP COLUMN backup_state;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE app_config_variables
|
ALTER TABLE app_config_variables
|
||||||
RENAME TO application_configuration_variables;
|
RENAME TO application_configuration_variables;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE application_configuration_variables
|
ALTER TABLE application_configuration_variables
|
||||||
RENAME TO app_config_variables;
|
RENAME TO app_config_variables;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
create table oidc_clients
|
create table oidc_clients
|
||||||
(
|
(
|
||||||
id TEXT not null primary key,
|
id TEXT not null primary key,
|
||||||
@@ -20,4 +22,6 @@ select id,
|
|||||||
created_by_id
|
created_by_id
|
||||||
from oidc_clients_dg_tmp;
|
from oidc_clients_dg_tmp;
|
||||||
|
|
||||||
drop table oidc_clients_dg_tmp;
|
drop table oidc_clients_dg_tmp;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
create table oidc_clients_dg_tmp
|
create table oidc_clients_dg_tmp
|
||||||
(
|
(
|
||||||
id TEXT not null primary key,
|
id TEXT not null primary key,
|
||||||
@@ -23,4 +25,6 @@ from oidc_clients;
|
|||||||
drop table oidc_clients;
|
drop table oidc_clients;
|
||||||
|
|
||||||
alter table oidc_clients_dg_tmp
|
alter table oidc_clients_dg_tmp
|
||||||
rename to oidc_clients;
|
rename to oidc_clients;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
DROP TABLE audit_logs;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
DROP TABLE audit_logs;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
CREATE TABLE audit_logs
|
CREATE TABLE audit_logs
|
||||||
(
|
(
|
||||||
id TEXT NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
@@ -7,4 +9,6 @@ CREATE TABLE audit_logs
|
|||||||
user_agent TEXT NOT NULL,
|
user_agent TEXT NOT NULL,
|
||||||
data BLOB NOT NULL,
|
data BLOB NOT NULL,
|
||||||
user_id TEXT REFERENCES users
|
user_id TEXT REFERENCES users
|
||||||
);
|
);
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
DROP TABLE user_groups;
|
DROP TABLE user_groups;
|
||||||
DROP TABLE user_groups_users;
|
DROP TABLE user_groups_users;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
CREATE TABLE user_groups
|
CREATE TABLE user_groups
|
||||||
(
|
(
|
||||||
id TEXT NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
@@ -13,4 +15,6 @@ CREATE TABLE user_groups_users
|
|||||||
PRIMARY KEY (user_id, user_group_id),
|
PRIMARY KEY (user_id, user_group_id),
|
||||||
FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE,
|
FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE,
|
||||||
FOREIGN KEY (user_group_id) REFERENCES user_groups (id) ON DELETE CASCADE
|
FOREIGN KEY (user_group_id) REFERENCES user_groups (id) ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE audit_logs DROP COLUMN country;
|
ALTER TABLE audit_logs DROP COLUMN country;
|
||||||
ALTER TABLE audit_logs DROP COLUMN city;
|
ALTER TABLE audit_logs DROP COLUMN city;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE audit_logs ADD COLUMN country TEXT;
|
ALTER TABLE audit_logs ADD COLUMN country TEXT;
|
||||||
ALTER TABLE audit_logs ADD COLUMN city TEXT;
|
ALTER TABLE audit_logs ADD COLUMN city TEXT;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
-- Convert the Unix timestamps back to DATETIME format
|
-- Convert the Unix timestamps back to DATETIME format
|
||||||
|
|
||||||
UPDATE user_groups
|
UPDATE user_groups
|
||||||
@@ -25,4 +27,6 @@ SET created_at = datetime(created_at, 'unixepoch');
|
|||||||
|
|
||||||
UPDATE webauthn_sessions
|
UPDATE webauthn_sessions
|
||||||
SET created_at = datetime(created_at, 'unixepoch'),
|
SET created_at = datetime(created_at, 'unixepoch'),
|
||||||
expires_at = datetime(expires_at, 'unixepoch');
|
expires_at = datetime(expires_at, 'unixepoch');
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
-- Convert the DATETIME fields to Unix timestamps (in seconds)
|
-- Convert the DATETIME fields to Unix timestamps (in seconds)
|
||||||
UPDATE user_groups
|
UPDATE user_groups
|
||||||
SET created_at = strftime('%s', created_at);
|
SET created_at = strftime('%s', created_at);
|
||||||
@@ -24,4 +26,6 @@ SET created_at = strftime('%s', created_at);
|
|||||||
|
|
||||||
UPDATE webauthn_sessions
|
UPDATE webauthn_sessions
|
||||||
SET created_at = strftime('%s', created_at),
|
SET created_at = strftime('%s', created_at),
|
||||||
expires_at = strftime('%s', expires_at);
|
expires_at = strftime('%s', expires_at);
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
ALTER TABLE app_config_variables DROP COLUMN default_value;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
ALTER TABLE app_config_variables DROP COLUMN default_value;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
ALTER TABLE app_config_variables ADD COLUMN default_value TEXT;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
ALTER TABLE app_config_variables ADD COLUMN default_value TEXT;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
DROP TABLE custom_claims;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
DROP TABLE custom_claims;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
CREATE TABLE custom_claims
|
CREATE TABLE custom_claims
|
||||||
(
|
(
|
||||||
id TEXT NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
@@ -12,4 +14,6 @@ CREATE TABLE custom_claims
|
|||||||
|
|
||||||
CONSTRAINT custom_claims_unique UNIQUE (key, user_id, user_group_id),
|
CONSTRAINT custom_claims_unique UNIQUE (key, user_id, user_group_id),
|
||||||
CHECK (user_id IS NOT NULL OR user_group_id IS NOT NULL)
|
CHECK (user_id IS NOT NULL OR user_group_id IS NOT NULL)
|
||||||
);
|
);
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE oidc_authorization_codes DROP COLUMN code_challenge;
|
ALTER TABLE oidc_authorization_codes DROP COLUMN code_challenge;
|
||||||
ALTER TABLE oidc_authorization_codes DROP COLUMN code_challenge_method_sha256;
|
ALTER TABLE oidc_authorization_codes DROP COLUMN code_challenge_method_sha256;
|
||||||
ALTER TABLE oidc_clients DROP COLUMN is_public;
|
ALTER TABLE oidc_clients DROP COLUMN is_public;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE oidc_authorization_codes ADD COLUMN code_challenge TEXT;
|
ALTER TABLE oidc_authorization_codes ADD COLUMN code_challenge TEXT;
|
||||||
ALTER TABLE oidc_authorization_codes ADD COLUMN code_challenge_method_sha256 NUMERIC;
|
ALTER TABLE oidc_authorization_codes ADD COLUMN code_challenge_method_sha256 NUMERIC;
|
||||||
ALTER TABLE oidc_clients ADD COLUMN is_public BOOLEAN DEFAULT FALSE;
|
ALTER TABLE oidc_clients ADD COLUMN is_public BOOLEAN DEFAULT FALSE;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
ALTER TABLE oidc_clients DROP COLUMN pkce_enabled;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
ALTER TABLE oidc_clients DROP COLUMN pkce_enabled;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
ALTER TABLE oidc_clients ADD COLUMN pkce_enabled BOOLEAN DEFAULT FALSE;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
ALTER TABLE oidc_clients ADD COLUMN pkce_enabled BOOLEAN DEFAULT FALSE;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE users DROP COLUMN ldap_id;
|
ALTER TABLE users DROP COLUMN ldap_id;
|
||||||
ALTER TABLE user_groups DROP COLUMN ldap_id;
|
ALTER TABLE user_groups DROP COLUMN ldap_id;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE users ADD COLUMN ldap_id TEXT;
|
ALTER TABLE users ADD COLUMN ldap_id TEXT;
|
||||||
ALTER TABLE user_groups ADD COLUMN ldap_id TEXT;
|
ALTER TABLE user_groups ADD COLUMN ldap_id TEXT;
|
||||||
|
|
||||||
CREATE UNIQUE INDEX users_ldap_id ON users (ldap_id);
|
CREATE UNIQUE INDEX users_ldap_id ON users (ldap_id);
|
||||||
CREATE UNIQUE INDEX user_groups_ldap_id ON user_groups (ldap_id);
|
CREATE UNIQUE INDEX user_groups_ldap_id ON user_groups (ldap_id);
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
UPDATE app_config_variables SET key = 'emailEnabled' WHERE key = 'emailLoginNotificationEnabled';
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
UPDATE app_config_variables SET key = 'emailEnabled' WHERE key = 'emailLoginNotificationEnabled';
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
UPDATE app_config_variables SET key = 'emailLoginNotificationEnabled' WHERE key = 'emailEnabled';
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
UPDATE app_config_variables SET key = 'emailLoginNotificationEnabled' WHERE key = 'emailEnabled';
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
UPDATE users SET ldap_id = '' WHERE ldap_id IS NULL;
|
UPDATE users SET ldap_id = '' WHERE ldap_id IS NULL;
|
||||||
UPDATE user_groups SET ldap_id = '' WHERE ldap_id IS NULL;
|
UPDATE user_groups SET ldap_id = '' WHERE ldap_id IS NULL;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
UPDATE users SET ldap_id = null WHERE ldap_id = '';
|
UPDATE users SET ldap_id = null WHERE ldap_id = '';
|
||||||
UPDATE user_groups SET ldap_id = null WHERE ldap_id = '';
|
UPDATE user_groups SET ldap_id = null WHERE ldap_id = '';
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
DROP TABLE oidc_clients_allowed_user_groups;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
DROP TABLE oidc_clients_allowed_user_groups;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
CREATE TABLE oidc_clients_allowed_user_groups
|
CREATE TABLE oidc_clients_allowed_user_groups
|
||||||
(
|
(
|
||||||
user_group_id TEXT NOT NULL,
|
user_group_id TEXT NOT NULL,
|
||||||
@@ -5,4 +7,6 @@ CREATE TABLE oidc_clients_allowed_user_groups
|
|||||||
PRIMARY KEY (oidc_client_id, user_group_id),
|
PRIMARY KEY (oidc_client_id, user_group_id),
|
||||||
FOREIGN KEY (oidc_client_id) REFERENCES oidc_clients (id) ON DELETE CASCADE,
|
FOREIGN KEY (oidc_client_id) REFERENCES oidc_clients (id) ON DELETE CASCADE,
|
||||||
FOREIGN KEY (user_group_id) REFERENCES user_groups (id) ON DELETE CASCADE
|
FOREIGN KEY (user_group_id) REFERENCES user_groups (id) ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
UPDATE user_groups SET ldap_id = '' WHERE ldap_id IS NULL;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
UPDATE user_groups SET ldap_id = '' WHERE ldap_id IS NULL;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
UPDATE user_groups SET ldap_id = null WHERE ldap_id = '';
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
UPDATE user_groups SET ldap_id = null WHERE ldap_id = '';
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
ALTER TABLE oidc_clients DROP COLUMN logout_callback_urls;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
ALTER TABLE oidc_clients DROP COLUMN logout_callback_urls;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
ALTER TABLE oidc_clients ADD COLUMN logout_callback_urls BLOB;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
ALTER TABLE oidc_clients ADD COLUMN logout_callback_urls BLOB;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
UPDATE app_config_variables SET value = 'true' WHERE key = 'smtpTls';
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
UPDATE app_config_variables SET value = 'true' WHERE key = 'smtpTls';
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
UPDATE app_config_variables
|
UPDATE app_config_variables
|
||||||
SET value = CASE
|
SET value = CASE
|
||||||
WHEN value = 'true' AND (SELECT value FROM app_config_variables WHERE key = 'smtpPort' LIMIT 1) = '587' THEN 'starttls'
|
WHEN value = 'true' AND (SELECT value FROM app_config_variables WHERE key = 'smtpPort' LIMIT 1) = '587' THEN 'starttls'
|
||||||
WHEN value = 'true' THEN 'tls'
|
WHEN value = 'true' THEN 'tls'
|
||||||
ELSE 'none'
|
ELSE 'none'
|
||||||
END
|
END
|
||||||
WHERE key = 'smtpTls';
|
WHERE key = 'smtpTls';
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
DROP INDEX IF EXISTS idx_api_keys_key;
|
DROP INDEX IF EXISTS idx_api_keys_key;
|
||||||
DROP TABLE IF EXISTS api_keys;
|
DROP TABLE IF EXISTS api_keys;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
CREATE TABLE api_keys (
|
CREATE TABLE api_keys (
|
||||||
id TEXT PRIMARY KEY,
|
id TEXT PRIMARY KEY,
|
||||||
name TEXT NOT NULL,
|
name TEXT NOT NULL,
|
||||||
@@ -9,4 +11,6 @@ CREATE TABLE api_keys (
|
|||||||
user_id TEXT REFERENCES users(id) ON DELETE CASCADE
|
user_id TEXT REFERENCES users(id) ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX idx_api_keys_key ON api_keys(key);
|
CREATE INDEX idx_api_keys_key ON api_keys(key);
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
ALTER TABLE users DROP COLUMN locale;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
ALTER TABLE users DROP COLUMN locale;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
ALTER TABLE users ADD COLUMN locale TEXT;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
ALTER TABLE users ADD COLUMN locale TEXT;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
DROP INDEX IF EXISTS idx_oidc_refresh_tokens_token;
|
DROP INDEX IF EXISTS idx_oidc_refresh_tokens_token;
|
||||||
DROP TABLE IF EXISTS oidc_refresh_tokens;
|
DROP TABLE IF EXISTS oidc_refresh_tokens;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
CREATE TABLE oidc_refresh_tokens (
|
CREATE TABLE oidc_refresh_tokens (
|
||||||
id TEXT NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
created_at DATETIME,
|
created_at DATETIME,
|
||||||
@@ -8,4 +10,6 @@ CREATE TABLE oidc_refresh_tokens (
|
|||||||
client_id TEXT NOT NULL REFERENCES oidc_clients(id) ON DELETE CASCADE
|
client_id TEXT NOT NULL REFERENCES oidc_clients(id) ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX idx_oidc_refresh_tokens_token ON oidc_refresh_tokens(token);
|
CREATE INDEX idx_oidc_refresh_tokens_token ON oidc_refresh_tokens(token);
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
DROP INDEX IF EXISTS idx_audit_logs_event;
|
DROP INDEX IF EXISTS idx_audit_logs_event;
|
||||||
DROP INDEX IF EXISTS idx_audit_logs_user_id;
|
DROP INDEX IF EXISTS idx_audit_logs_user_id;
|
||||||
DROP INDEX IF EXISTS idx_audit_logs_client_name;
|
DROP INDEX IF EXISTS idx_audit_logs_client_name;
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
CREATE INDEX idx_audit_logs_event ON audit_logs(event);
|
CREATE INDEX idx_audit_logs_event ON audit_logs(event);
|
||||||
CREATE INDEX idx_audit_logs_user_id ON audit_logs(user_id);
|
CREATE INDEX idx_audit_logs_user_id ON audit_logs(user_id);
|
||||||
CREATE INDEX idx_audit_logs_client_name ON audit_logs((json_extract(data, '$.clientName')));
|
CREATE INDEX idx_audit_logs_client_name ON audit_logs((json_extract(data, '$.clientName')));
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE app_config_variables ADD type VARCHAR(20) NOT NULL,;
|
ALTER TABLE app_config_variables ADD type VARCHAR(20) NOT NULL,;
|
||||||
ALTER TABLE app_config_variables ADD is_public BOOLEAN DEFAULT FALSE NOT NULL,;
|
ALTER TABLE app_config_variables ADD is_public BOOLEAN DEFAULT FALSE NOT NULL,;
|
||||||
ALTER TABLE app_config_variables ADD is_internal BOOLEAN DEFAULT FALSE NOT NULL,;
|
ALTER TABLE app_config_variables ADD is_internal BOOLEAN DEFAULT FALSE NOT NULL,;
|
||||||
ALTER TABLE app_config_variables ADD default_value TEXT;
|
ALTER TABLE app_config_variables ADD default_value TEXT;
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE app_config_variables DROP type;
|
ALTER TABLE app_config_variables DROP type;
|
||||||
ALTER TABLE app_config_variables DROP is_public;
|
ALTER TABLE app_config_variables DROP is_public;
|
||||||
ALTER TABLE app_config_variables DROP is_internal;
|
ALTER TABLE app_config_variables DROP is_internal;
|
||||||
ALTER TABLE app_config_variables DROP default_value;
|
ALTER TABLE app_config_variables DROP default_value;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
DROP INDEX idx_users_disabled;
|
DROP INDEX idx_users_disabled;
|
||||||
|
|
||||||
ALTER TABLE users
|
ALTER TABLE users
|
||||||
DROP COLUMN disabled;
|
DROP COLUMN disabled;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE users
|
ALTER TABLE users
|
||||||
ADD COLUMN disabled NUMERIC DEFAULT FALSE NOT NULL;
|
ADD COLUMN disabled NUMERIC DEFAULT FALSE NOT NULL;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE api_keys
|
ALTER TABLE api_keys
|
||||||
DROP COLUMN expiration_email_sent;
|
DROP COLUMN expiration_email_sent;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE api_keys
|
ALTER TABLE api_keys
|
||||||
ADD COLUMN expiration_email_sent BOOLEAN NOT NULL DEFAULT 0;
|
ADD COLUMN expiration_email_sent BOOLEAN NOT NULL DEFAULT 0;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
DROP TABLE oidc_device_codes;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
DROP TABLE oidc_device_codes;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
CREATE TABLE oidc_device_codes
|
CREATE TABLE oidc_device_codes
|
||||||
(
|
(
|
||||||
id TEXT NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
@@ -9,4 +11,6 @@ CREATE TABLE oidc_device_codes
|
|||||||
is_authorized BOOLEAN NOT NULL DEFAULT FALSE,
|
is_authorized BOOLEAN NOT NULL DEFAULT FALSE,
|
||||||
user_id TEXT REFERENCES users ON DELETE CASCADE,
|
user_id TEXT REFERENCES users ON DELETE CASCADE,
|
||||||
client_id TEXT NOT NULL REFERENCES oidc_clients ON DELETE CASCADE
|
client_id TEXT NOT NULL REFERENCES oidc_clients ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
-- No rollback is needed for this migration.
|
-- No-op
|
||||||
@@ -1 +1,5 @@
|
|||||||
DELETE FROM app_config_variables WHERE value = '';
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
DELETE FROM app_config_variables WHERE value = '';
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE oidc_clients DROP COLUMN credentials;
|
ALTER TABLE oidc_clients DROP COLUMN credentials;
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE oidc_clients ADD COLUMN credentials TEXT NULL;
|
ALTER TABLE oidc_clients ADD COLUMN credentials TEXT NULL;
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
DROP INDEX idx_audit_logs_country;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
DROP INDEX idx_audit_logs_country;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
CREATE INDEX idx_audit_logs_country ON audit_logs(country);
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
CREATE INDEX idx_audit_logs_country ON audit_logs(country);
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
DROP INDEX IF EXISTS idx_signup_tokens_expires_at;
|
DROP INDEX IF EXISTS idx_signup_tokens_expires_at;
|
||||||
DROP INDEX IF EXISTS idx_signup_tokens_token;
|
DROP INDEX IF EXISTS idx_signup_tokens_token;
|
||||||
DROP TABLE IF EXISTS signup_tokens;
|
DROP TABLE IF EXISTS signup_tokens;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
CREATE TABLE signup_tokens (
|
CREATE TABLE signup_tokens (
|
||||||
id TEXT NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
created_at DATETIME NOT NULL,
|
created_at DATETIME NOT NULL,
|
||||||
@@ -8,4 +10,6 @@ CREATE TABLE signup_tokens (
|
|||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX idx_signup_tokens_token ON signup_tokens(token);
|
CREATE INDEX idx_signup_tokens_token ON signup_tokens(token);
|
||||||
CREATE INDEX idx_signup_tokens_expires_at ON signup_tokens(expires_at);
|
CREATE INDEX idx_signup_tokens_expires_at ON signup_tokens(expires_at);
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
-- Re-create the table with non-nullable ip_address
|
-- Re-create the table with non-nullable ip_address
|
||||||
-- We then move the data and rename the table
|
-- We then move the data and rename the table
|
||||||
CREATE TABLE audit_logs_new
|
CREATE TABLE audit_logs_new
|
||||||
@@ -28,3 +30,6 @@ CREATE INDEX idx_audit_logs_user_id ON audit_logs(user_id);
|
|||||||
CREATE INDEX idx_audit_logs_user_agent ON audit_logs(user_agent);
|
CREATE INDEX idx_audit_logs_user_agent ON audit_logs(user_agent);
|
||||||
CREATE INDEX idx_audit_logs_client_name ON audit_logs((json_extract(data, '$.clientName')));
|
CREATE INDEX idx_audit_logs_client_name ON audit_logs((json_extract(data, '$.clientName')));
|
||||||
CREATE INDEX idx_audit_logs_country ON audit_logs(country);
|
CREATE INDEX idx_audit_logs_country ON audit_logs(country);
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
-- Re-create the table with nullable ip_address
|
-- Re-create the table with nullable ip_address
|
||||||
-- We then move the data and rename the table
|
-- We then move the data and rename the table
|
||||||
CREATE TABLE audit_logs_new
|
CREATE TABLE audit_logs_new
|
||||||
@@ -28,3 +30,6 @@ CREATE INDEX idx_audit_logs_user_id ON audit_logs(user_id);
|
|||||||
CREATE INDEX idx_audit_logs_user_agent ON audit_logs(user_agent);
|
CREATE INDEX idx_audit_logs_user_agent ON audit_logs(user_agent);
|
||||||
CREATE INDEX idx_audit_logs_client_name ON audit_logs((json_extract(data, '$.clientName')));
|
CREATE INDEX idx_audit_logs_client_name ON audit_logs((json_extract(data, '$.clientName')));
|
||||||
CREATE INDEX idx_audit_logs_country ON audit_logs(country);
|
CREATE INDEX idx_audit_logs_country ON audit_logs(country);
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1,6 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
DROP TABLE kv;
|
DROP TABLE kv;
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
-- The "kv" tables contains miscellaneous key-value pairs
|
-- The "kv" tables contains miscellaneous key-value pairs
|
||||||
CREATE TABLE kv
|
CREATE TABLE kv
|
||||||
(
|
(
|
||||||
"key" TEXT NOT NULL PRIMARY KEY,
|
"key" TEXT NOT NULL PRIMARY KEY,
|
||||||
"value" TEXT NOT NULL
|
"value" TEXT NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
-- No-op
|
-- No-op
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
-- Normalize (form NFC) all existing values in the database
|
-- Normalize (form NFC) all existing values in the database
|
||||||
UPDATE api_keys SET
|
UPDATE api_keys SET
|
||||||
name = normalize(name, 'nfc'),
|
name = normalize(name, 'nfc'),
|
||||||
@@ -23,3 +25,6 @@ UPDATE users SET
|
|||||||
UPDATE user_groups SET
|
UPDATE user_groups SET
|
||||||
friendly_name = normalize(friendly_name, 'nfc'),
|
friendly_name = normalize(friendly_name, 'nfc'),
|
||||||
"name" = normalize("name", 'nfc');
|
"name" = normalize("name", 'nfc');
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE oidc_clients DROP COLUMN launch_url;
|
ALTER TABLE oidc_clients DROP COLUMN launch_url;
|
||||||
|
|
||||||
ALTER TABLE user_authorized_oidc_clients DROP COLUMN created_at;
|
ALTER TABLE user_authorized_oidc_clients DROP COLUMN created_at;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE oidc_clients ADD COLUMN launch_url TEXT;
|
ALTER TABLE oidc_clients ADD COLUMN launch_url TEXT;
|
||||||
|
|
||||||
CREATE TABLE user_authorized_oidc_clients_new
|
CREATE TABLE user_authorized_oidc_clients_new
|
||||||
@@ -14,3 +16,6 @@ SELECT scope, user_id, client_id, unixepoch() FROM user_authorized_oidc_clients;
|
|||||||
|
|
||||||
DROP TABLE user_authorized_oidc_clients;
|
DROP TABLE user_authorized_oidc_clients;
|
||||||
ALTER TABLE user_authorized_oidc_clients_new RENAME TO user_authorized_oidc_clients;
|
ALTER TABLE user_authorized_oidc_clients_new RENAME TO user_authorized_oidc_clients;
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE oidc_clients DROP COLUMN requires_reauthentication;
|
ALTER TABLE oidc_clients DROP COLUMN requires_reauthentication;
|
||||||
DROP INDEX IF EXISTS idx_reauthentication_tokens_token;
|
DROP INDEX IF EXISTS idx_reauthentication_tokens_token;
|
||||||
DROP TABLE IF EXISTS reauthentication_tokens;
|
DROP TABLE IF EXISTS reauthentication_tokens;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
ALTER TABLE oidc_clients ADD COLUMN requires_reauthentication BOOLEAN NOT NULL DEFAULT FALSE;
|
ALTER TABLE oidc_clients ADD COLUMN requires_reauthentication BOOLEAN NOT NULL DEFAULT FALSE;
|
||||||
|
|
||||||
CREATE TABLE reauthentication_tokens (
|
CREATE TABLE reauthentication_tokens (
|
||||||
@@ -8,4 +10,6 @@ CREATE TABLE reauthentication_tokens (
|
|||||||
user_id TEXT NOT NULL REFERENCES users ON DELETE CASCADE
|
user_id TEXT NOT NULL REFERENCES users ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX idx_reauthentication_tokens_token ON reauthentication_tokens(token);
|
CREATE INDEX idx_reauthentication_tokens_token ON reauthentication_tokens(token);
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
PRAGMA foreign_keys=OFF;
|
PRAGMA foreign_keys=OFF;
|
||||||
|
BEGIN;
|
||||||
|
PRAGMA foreign_keys=OFF;
|
||||||
---------------------------
|
---------------------------
|
||||||
-- Delete all orphaned rows
|
-- Delete all orphaned rows
|
||||||
---------------------------
|
---------------------------
|
||||||
@@ -174,4 +176,6 @@ DROP TABLE webauthn_credentials;
|
|||||||
ALTER TABLE webauthn_credentials_new RENAME TO webauthn_credentials;
|
ALTER TABLE webauthn_credentials_new RENAME TO webauthn_credentials;
|
||||||
|
|
||||||
PRAGMA foreign_keys=ON;
|
PRAGMA foreign_keys=ON;
|
||||||
PRAGMA foreign_key_check;
|
PRAGMA foreign_key_check;
|
||||||
|
COMMIT;
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
"image_should_be_in_format": "The image should be in PNG or JPEG format.",
|
"image_should_be_in_format": "The image should be in PNG or JPEG format.",
|
||||||
"items_per_page": "Items per page",
|
"items_per_page": "Items per page",
|
||||||
"no_items_found": "No items found",
|
"no_items_found": "No items found",
|
||||||
|
"select_items": "Select items...",
|
||||||
"search": "Search...",
|
"search": "Search...",
|
||||||
"expand_card": "Expand card",
|
"expand_card": "Expand card",
|
||||||
"copied": "Copied",
|
"copied": "Copied",
|
||||||
@@ -440,5 +441,7 @@
|
|||||||
"last_signed_in_ago": "Last signed in {time} ago",
|
"last_signed_in_ago": "Last signed in {time} ago",
|
||||||
"invalid_client_id": "Client ID can only contain letters, numbers, underscores, and hyphens",
|
"invalid_client_id": "Client ID can only contain letters, numbers, underscores, and hyphens",
|
||||||
"custom_client_id_description": "Set a custom client ID if this is required by your application. Otherwise, leave it blank to generate a random one.",
|
"custom_client_id_description": "Set a custom client ID if this is required by your application. Otherwise, leave it blank to generate a random one.",
|
||||||
"generated": "Generated"
|
"generated": "Generated",
|
||||||
|
"administration": "Administration"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pocket-id-frontend",
|
"name": "pocket-id-frontend",
|
||||||
"version": "1.9.0",
|
"version": "1.10.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -21,6 +21,7 @@
|
|||||||
"date-fns": "^4.1.0",
|
"date-fns": "^4.1.0",
|
||||||
"jose": "^5.10.0",
|
"jose": "^5.10.0",
|
||||||
"qrcode": "^1.5.4",
|
"qrcode": "^1.5.4",
|
||||||
|
"runed": "^0.31.1",
|
||||||
"sveltekit-superforms": "^2.27.1",
|
"sveltekit-superforms": "^2.27.1",
|
||||||
"tailwind-merge": "^3.3.1",
|
"tailwind-merge": "^3.3.1",
|
||||||
"zod": "^4.0.9"
|
"zod": "^4.0.9"
|
||||||
@@ -32,7 +33,7 @@
|
|||||||
"@internationalized/date": "^3.8.2",
|
"@internationalized/date": "^3.8.2",
|
||||||
"@lucide/svelte": "^0.525.0",
|
"@lucide/svelte": "^0.525.0",
|
||||||
"@sveltejs/adapter-static": "^3.0.8",
|
"@sveltejs/adapter-static": "^3.0.8",
|
||||||
"@sveltejs/kit": "^2.26.0",
|
"@sveltejs/kit": "^2.36.3",
|
||||||
"@sveltejs/vite-plugin-svelte": "^6.1.0",
|
"@sveltejs/vite-plugin-svelte": "^6.1.0",
|
||||||
"@types/eslint": "^9.6.1",
|
"@types/eslint": "^9.6.1",
|
||||||
"@types/node": "^22.16.5",
|
"@types/node": "^22.16.5",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
import { Badge } from '$lib/components/ui/badge';
|
import { Badge } from '$lib/components/ui/badge';
|
||||||
import * as Table from '$lib/components/ui/table';
|
import * as Table from '$lib/components/ui/table';
|
||||||
import { m } from '$lib/paraglide/messages';
|
import { m } from '$lib/paraglide/messages';
|
||||||
|
import {translateAuditLogEvent} from "$lib/utils/audit-log-translator";
|
||||||
import AuditLogService from '$lib/services/audit-log-service';
|
import AuditLogService from '$lib/services/audit-log-service';
|
||||||
import type { AuditLog } from '$lib/types/audit-log.type';
|
import type { AuditLog } from '$lib/types/audit-log.type';
|
||||||
import type { Paginated, SearchPaginationSortRequest } from '$lib/types/pagination.type';
|
import type { Paginated, SearchPaginationSortRequest } from '$lib/types/pagination.type';
|
||||||
@@ -18,14 +19,6 @@
|
|||||||
} = $props();
|
} = $props();
|
||||||
|
|
||||||
const auditLogService = new AuditLogService();
|
const auditLogService = new AuditLogService();
|
||||||
|
|
||||||
function toFriendlyEventString(event: string) {
|
|
||||||
const words = event.split('_');
|
|
||||||
const capitalizedWords = words.map((word) => {
|
|
||||||
return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
|
|
||||||
});
|
|
||||||
return capitalizedWords.join(' ');
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<AdvancedTable
|
<AdvancedTable
|
||||||
@@ -58,7 +51,7 @@
|
|||||||
</Table.Cell>
|
</Table.Cell>
|
||||||
{/if}
|
{/if}
|
||||||
<Table.Cell>
|
<Table.Cell>
|
||||||
<Badge class="rounded-full" variant="outline">{toFriendlyEventString(item.event)}</Badge>
|
<Badge class="rounded-full" variant="outline">{translateAuditLogEvent(item.event)}</Badge>
|
||||||
</Table.Cell>
|
</Table.Cell>
|
||||||
<Table.Cell
|
<Table.Cell
|
||||||
>{item.city && item.country ? `${item.city}, ${item.country}` : m.unknown()}</Table.Cell
|
>{item.city && item.country ? `${item.city}, ${item.country}` : m.unknown()}</Table.Cell
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
import * as Command from '$lib/components/ui/command';
|
import * as Command from '$lib/components/ui/command';
|
||||||
import * as Popover from '$lib/components/ui/popover';
|
import * as Popover from '$lib/components/ui/popover';
|
||||||
import { cn } from '$lib/utils/style';
|
import { cn } from '$lib/utils/style';
|
||||||
|
import { m } from '$lib/paraglide/messages';
|
||||||
import { LoaderCircle, LucideCheck, LucideChevronDown } from '@lucide/svelte';
|
import { LoaderCircle, LucideCheck, LucideChevronDown } from '@lucide/svelte';
|
||||||
import type { FormEventHandler } from 'svelte/elements';
|
import type { FormEventHandler } from 'svelte/elements';
|
||||||
|
|
||||||
@@ -18,9 +19,6 @@
|
|||||||
onSelect,
|
onSelect,
|
||||||
oninput,
|
oninput,
|
||||||
isLoading = false,
|
isLoading = false,
|
||||||
placeholder = 'Select items...',
|
|
||||||
searchText = 'Search...',
|
|
||||||
noItemsText = 'No items found.',
|
|
||||||
disableInternalSearch = false,
|
disableInternalSearch = false,
|
||||||
id
|
id
|
||||||
}: {
|
}: {
|
||||||
@@ -29,9 +27,6 @@
|
|||||||
onSelect?: (value: string[]) => void;
|
onSelect?: (value: string[]) => void;
|
||||||
oninput?: FormEventHandler<HTMLInputElement>;
|
oninput?: FormEventHandler<HTMLInputElement>;
|
||||||
isLoading?: boolean;
|
isLoading?: boolean;
|
||||||
placeholder?: string;
|
|
||||||
searchText?: string;
|
|
||||||
noItemsText?: string;
|
|
||||||
disableInternalSearch?: boolean;
|
disableInternalSearch?: boolean;
|
||||||
id?: string;
|
id?: string;
|
||||||
} = $props();
|
} = $props();
|
||||||
@@ -93,7 +88,7 @@
|
|||||||
<Badge variant="secondary">{label}</Badge>
|
<Badge variant="secondary">{label}</Badge>
|
||||||
{/each}
|
{/each}
|
||||||
{:else}
|
{:else}
|
||||||
<span class="text-muted-foreground font-normal">{placeholder}</span>
|
<span class="text-muted-foreground font-normal">{m.select_items()}</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<LucideChevronDown class="ml-2 size-4 shrink-0 opacity-50" />
|
<LucideChevronDown class="ml-2 size-4 shrink-0 opacity-50" />
|
||||||
@@ -103,7 +98,7 @@
|
|||||||
<Popover.Content class="p-0" sameWidth>
|
<Popover.Content class="p-0" sameWidth>
|
||||||
<Command.Root shouldFilter={false}>
|
<Command.Root shouldFilter={false}>
|
||||||
<Command.Input
|
<Command.Input
|
||||||
placeholder={searchText}
|
placeholder={m.search()}
|
||||||
value={searchValue}
|
value={searchValue}
|
||||||
oninput={(e) => {
|
oninput={(e) => {
|
||||||
filterItems(e.currentTarget.value);
|
filterItems(e.currentTarget.value);
|
||||||
@@ -116,7 +111,7 @@
|
|||||||
<LoaderCircle class="size-4 animate-spin" />
|
<LoaderCircle class="size-4 animate-spin" />
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
{noItemsText}
|
{m.no_items_found()}
|
||||||
{/if}
|
{/if}
|
||||||
</Command.Empty>
|
</Command.Empty>
|
||||||
<Command.Group class="max-h-60 overflow-y-auto">
|
<Command.Group class="max-h-60 overflow-y-auto">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
import WebAuthnService from '$lib/services/webauthn-service';
|
import WebAuthnService from '$lib/services/webauthn-service';
|
||||||
import userStore from '$lib/stores/user-store';
|
import userStore from '$lib/stores/user-store';
|
||||||
import { cachedProfilePicture } from '$lib/utils/cached-image-util';
|
import { cachedProfilePicture } from '$lib/utils/cached-image-util';
|
||||||
import { LayoutDashboard, LucideLogOut, LucideUser } from '@lucide/svelte';
|
import { LucideLogOut, LucideUser } from '@lucide/svelte';
|
||||||
|
|
||||||
const webauthnService = new WebAuthnService();
|
const webauthnService = new WebAuthnService();
|
||||||
|
|
||||||
@@ -34,9 +34,6 @@
|
|||||||
</DropdownMenu.Label>
|
</DropdownMenu.Label>
|
||||||
<DropdownMenu.Separator />
|
<DropdownMenu.Separator />
|
||||||
<DropdownMenu.Group>
|
<DropdownMenu.Group>
|
||||||
<DropdownMenu.Item onclick={() => goto('/settings/apps')}
|
|
||||||
><LayoutDashboard class="mr-2 size-4" /> {m.my_apps()}</DropdownMenu.Item
|
|
||||||
>
|
|
||||||
<DropdownMenu.Item onclick={() => goto('/settings/account')}
|
<DropdownMenu.Item onclick={() => goto('/settings/account')}
|
||||||
><LucideUser class="mr-2 size-4" /> {m.my_account()}</DropdownMenu.Item
|
><LucideUser class="mr-2 size-4" /> {m.my_account()}</DropdownMenu.Item
|
||||||
>
|
>
|
||||||
|
|||||||
157
frontend/src/lib/components/sidebar.svelte
Normal file
157
frontend/src/lib/components/sidebar.svelte
Normal file
@@ -0,0 +1,157 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import { page } from '$app/state';
|
||||||
|
import { m } from '$lib/paraglide/messages';
|
||||||
|
import appConfigStore from '$lib/stores/application-configuration-store';
|
||||||
|
import { cn } from '$lib/utils/style';
|
||||||
|
import { LucideChevronDown, LucideExternalLink } from '@lucide/svelte';
|
||||||
|
import { PersistedState } from 'runed';
|
||||||
|
import { slide } from 'svelte/transition';
|
||||||
|
|
||||||
|
type NavItem = {
|
||||||
|
href?: string;
|
||||||
|
label: string;
|
||||||
|
children?: NavItem[];
|
||||||
|
};
|
||||||
|
|
||||||
|
let {
|
||||||
|
items = [] as NavItem[],
|
||||||
|
storageKey = 'sidebar-open:settings',
|
||||||
|
isAdmin = false,
|
||||||
|
isUpToDate = undefined
|
||||||
|
} = $props();
|
||||||
|
|
||||||
|
const openState = new PersistedState<Record<string, boolean>>(storageKey, {});
|
||||||
|
|
||||||
|
function groupId(item: NavItem, idx: number) {
|
||||||
|
return `${item.label}-${idx}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function isActive(href?: string) {
|
||||||
|
if (!href) return false;
|
||||||
|
return page.url.pathname.startsWith(href);
|
||||||
|
}
|
||||||
|
|
||||||
|
$effect(() => {
|
||||||
|
const state = openState.current;
|
||||||
|
items.forEach((item, idx) => {
|
||||||
|
if (!item.children?.length) return;
|
||||||
|
const id = groupId(item, idx);
|
||||||
|
if (state[id] === undefined) {
|
||||||
|
state[id] = item.children.some((c) => isActive(c.href));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
function isOpen(id: string) {
|
||||||
|
return !!openState.current[id];
|
||||||
|
}
|
||||||
|
function toggle(id: string) {
|
||||||
|
openState.current[id] = !openState.current[id];
|
||||||
|
}
|
||||||
|
|
||||||
|
const activeClasses =
|
||||||
|
'text-primary bg-card rounded-md px-3 py-1.5 font-medium shadow-sm transition-all';
|
||||||
|
const inactiveClasses =
|
||||||
|
'hover:text-foreground hover:bg-muted/70 rounded-md px-3 py-1.5 transition-all hover:-translate-y-[2px] hover:shadow-sm';
|
||||||
|
|
||||||
|
const ROW_STAGGER = 50;
|
||||||
|
|
||||||
|
// Derive the offset (row index) for each top-level item,
|
||||||
|
// counting expanded children of previous items.
|
||||||
|
const layout = $derived(() => {
|
||||||
|
const offsets: number[] = [];
|
||||||
|
let total = 0;
|
||||||
|
items.forEach((it, idx) => {
|
||||||
|
offsets[idx] = total; // row index for this top-level item
|
||||||
|
total += 1; // this item itself
|
||||||
|
const id = groupId(it, idx);
|
||||||
|
if (it.children?.length && openState.current[id]) {
|
||||||
|
total += it.children.length; // rows for visible children
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return { offsets, total };
|
||||||
|
});
|
||||||
|
|
||||||
|
const delayTop = (i: number) => `${layout().offsets[i] * ROW_STAGGER}ms`;
|
||||||
|
const delayChild = (i: number, j: number) => `${(layout().offsets[i] + 1 + j) * ROW_STAGGER}ms`;
|
||||||
|
const delayUpdateLink = () => `${layout().total * ROW_STAGGER}ms`;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<nav class="text-muted-foreground grid gap-2 text-sm">
|
||||||
|
{#each items as item, i}
|
||||||
|
{#if item.children?.length}
|
||||||
|
{@const id = groupId(item, i)}
|
||||||
|
<div class="group">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class={cn(
|
||||||
|
'hover:bg-muted/70 hover:text-foreground flex w-full items-center justify-between rounded-md px-3 py-1.5 text-left transition-all',
|
||||||
|
!$appConfigStore.disableAnimations && 'animate-fade-in'
|
||||||
|
)}
|
||||||
|
style={`animation-delay: ${delayTop(i)};`}
|
||||||
|
aria-expanded={isOpen(id)}
|
||||||
|
aria-controls={`submenu-${id}`}
|
||||||
|
onclick={() => toggle(id)}
|
||||||
|
>
|
||||||
|
{item.label}
|
||||||
|
|
||||||
|
<LucideChevronDown
|
||||||
|
class={cn('size-4 transition-transform', isOpen(id) ? 'rotate-180' : '')}
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{#if isOpen(id)}
|
||||||
|
<ul
|
||||||
|
id={`submenu-${id}`}
|
||||||
|
class="border-border/50 ml-2 border-l pl-2"
|
||||||
|
transition:slide|local={{ duration: 120 }}
|
||||||
|
>
|
||||||
|
{#each item.children as child, j}
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
href={child.href}
|
||||||
|
class={cn(
|
||||||
|
isActive(child.href) ? activeClasses : inactiveClasses,
|
||||||
|
'my-1 block',
|
||||||
|
!$appConfigStore.disableAnimations && 'animate-fade-in'
|
||||||
|
)}
|
||||||
|
style={`animation-delay: ${delayChild(i, j)};`}
|
||||||
|
>
|
||||||
|
{child.label}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{/each}
|
||||||
|
</ul>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
{:else}
|
||||||
|
<a
|
||||||
|
href={item.href}
|
||||||
|
class={cn(
|
||||||
|
isActive(item.href) ? activeClasses : inactiveClasses,
|
||||||
|
!$appConfigStore.disableAnimations && 'animate-fade-in'
|
||||||
|
)}
|
||||||
|
style={`animation-delay: ${delayTop(i)};`}
|
||||||
|
>
|
||||||
|
{item.label}
|
||||||
|
</a>
|
||||||
|
{/if}
|
||||||
|
{/each}
|
||||||
|
|
||||||
|
{#if isAdmin && isUpToDate === false}
|
||||||
|
<a
|
||||||
|
href="https://github.com/pocket-id/pocket-id/releases/latest"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
class={cn(
|
||||||
|
inactiveClasses,
|
||||||
|
'flex items-center gap-2 text-orange-500 hover:text-orange-500/90',
|
||||||
|
!$appConfigStore.disableAnimations && 'animate-fade-in'
|
||||||
|
)}
|
||||||
|
style={`animation-delay: ${delayUpdateLink()};`}
|
||||||
|
>
|
||||||
|
{m.update_pocket_id()}
|
||||||
|
<LucideExternalLink class="my-auto inline-block size-3" />
|
||||||
|
</a>
|
||||||
|
{/if}
|
||||||
|
</nav>
|
||||||
29
frontend/src/lib/utils/audit-log-translator.ts
Normal file
29
frontend/src/lib/utils/audit-log-translator.ts
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
import { m } from '$lib/paraglide/messages';
|
||||||
|
|
||||||
|
export const eventTypes: Record<string, string> = {
|
||||||
|
SIGN_IN: m.sign_in(),
|
||||||
|
TOKEN_SIGN_IN: m.token_sign_in(),
|
||||||
|
CLIENT_AUTHORIZATION: m.client_authorization(),
|
||||||
|
NEW_CLIENT_AUTHORIZATION: m.new_client_authorization(),
|
||||||
|
ACCOUNT_CREATED: m.account_created()
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Translates an audit log event type using paraglide messages.
|
||||||
|
* Falls back to a formatted string if no specific translation is found.
|
||||||
|
* @param event The event type string from the backend (e.g., "CLIENT_AUTHORIZATION").
|
||||||
|
* @returns The translated string.
|
||||||
|
*/
|
||||||
|
export function translateAuditLogEvent(event: string): string {
|
||||||
|
if (event in eventTypes) {
|
||||||
|
return eventTypes[event];
|
||||||
|
}
|
||||||
|
|
||||||
|
// If no specific translation is found, provide a readable fallback.
|
||||||
|
// This converts "SOME_EVENT" to "Some Event".
|
||||||
|
const words = event.split('_');
|
||||||
|
const capitalizedWords = words.map((word) => {
|
||||||
|
return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
|
||||||
|
});
|
||||||
|
return capitalizedWords.join(' ');
|
||||||
|
}
|
||||||
@@ -1,11 +1,9 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from '$app/state';
|
|
||||||
import FadeWrapper from '$lib/components/fade-wrapper.svelte';
|
import FadeWrapper from '$lib/components/fade-wrapper.svelte';
|
||||||
import { m } from '$lib/paraglide/messages';
|
import { m } from '$lib/paraglide/messages';
|
||||||
import appConfigStore from '$lib/stores/application-configuration-store';
|
|
||||||
import userStore from '$lib/stores/user-store';
|
import userStore from '$lib/stores/user-store';
|
||||||
import { cn } from '$lib/utils/style';
|
import Sidebar from '$lib/components/sidebar.svelte';
|
||||||
import { LucideExternalLink, LucideSettings } from '@lucide/svelte';
|
import { LucideSettings } from '@lucide/svelte';
|
||||||
import type { Snippet } from 'svelte';
|
import type { Snippet } from 'svelte';
|
||||||
import { fade, fly } from 'svelte/transition';
|
import { fade, fly } from 'svelte/transition';
|
||||||
import type { LayoutData } from './$types';
|
import type { LayoutData } from './$types';
|
||||||
@@ -20,14 +18,19 @@
|
|||||||
|
|
||||||
const { versionInformation, user } = data;
|
const { versionInformation, user } = data;
|
||||||
|
|
||||||
const links = [
|
type NavItem = {
|
||||||
|
href?: string;
|
||||||
|
label: string;
|
||||||
|
children?: NavItem[];
|
||||||
|
};
|
||||||
|
|
||||||
|
const items: NavItem[] = [
|
||||||
{ href: '/settings/account', label: m.my_account() },
|
{ href: '/settings/account', label: m.my_account() },
|
||||||
|
{ href: '/settings/apps', label: m.my_apps() },
|
||||||
{ href: '/settings/audit-log', label: m.audit_log() }
|
{ href: '/settings/audit-log', label: m.audit_log() }
|
||||||
];
|
];
|
||||||
|
|
||||||
const nonAdminLinks = [{ href: '/settings/apps', label: m.my_apps() }];
|
const adminChildren: NavItem[] = [
|
||||||
|
|
||||||
const adminLinks = [
|
|
||||||
{ href: '/settings/admin/users', label: m.users() },
|
{ href: '/settings/admin/users', label: m.users() },
|
||||||
{ href: '/settings/admin/user-groups', label: m.user_groups() },
|
{ href: '/settings/admin/user-groups', label: m.user_groups() },
|
||||||
{ href: '/settings/admin/oidc-clients', label: m.oidc_clients() },
|
{ href: '/settings/admin/oidc-clients', label: m.oidc_clients() },
|
||||||
@@ -36,9 +39,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
if (user?.isAdmin || $userStore?.isAdmin) {
|
if (user?.isAdmin || $userStore?.isAdmin) {
|
||||||
links.push(...adminLinks);
|
items.push({ label: m.administration(), children: adminChildren });
|
||||||
} else {
|
|
||||||
links.push(...nonAdminLinks);
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -58,35 +59,16 @@
|
|||||||
{m.settings()}
|
{m.settings()}
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<nav class="text-muted-foreground grid gap-2 text-sm">
|
|
||||||
{#each links as { href, label }, i}
|
<Sidebar
|
||||||
<a
|
{items}
|
||||||
{href}
|
storageKey="sidebar-open:settings"
|
||||||
class={cn(
|
isAdmin={$userStore?.isAdmin || user?.isAdmin}
|
||||||
!$appConfigStore.disableAnimations && 'animate-fade-in',
|
isUpToDate={versionInformation?.isUpToDate}
|
||||||
page.url.pathname.startsWith(href)
|
/>
|
||||||
? 'text-primary bg-card rounded-md px-3 py-1.5 font-medium shadow-sm transition-all'
|
|
||||||
: 'hover:text-foreground hover:bg-muted/70 rounded-md px-3 py-1.5 transition-all hover:-translate-y-[2px] hover:shadow-sm'
|
|
||||||
)}
|
|
||||||
style={`animation-delay: ${150 + i * 50}ms;`}
|
|
||||||
>
|
|
||||||
{label}
|
|
||||||
</a>
|
|
||||||
{/each}
|
|
||||||
{#if $userStore?.isAdmin && versionInformation.isUpToDate === false}
|
|
||||||
<a
|
|
||||||
href="https://github.com/pocket-id/pocket-id/releases/latest"
|
|
||||||
target="_blank"
|
|
||||||
class="animate-fade-in hover:text-foreground hover:bg-muted/70 mt-1 flex items-center gap-2 rounded-md px-3 py-1.5 text-orange-500 transition-all hover:-translate-y-[2px] hover:shadow-sm"
|
|
||||||
style={`animation-delay: ${150 + links.length * 75}ms;`}
|
|
||||||
>
|
|
||||||
{m.update_pocket_id()}
|
|
||||||
<LucideExternalLink class="my-auto inline-block size-3" />
|
|
||||||
</a>
|
|
||||||
{/if}
|
|
||||||
</nav>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex w-full flex-col gap-4 overflow-hidden">
|
<div class="flex w-full flex-col gap-4 overflow-hidden">
|
||||||
<FadeWrapper>
|
<FadeWrapper>
|
||||||
{@render children()}
|
{@render children()}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
let signupTokens = $state(data.signupTokens);
|
let signupTokens = $state(data.signupTokens);
|
||||||
let signupTokensRequestOptions = $state(data.signupTokensRequestOptions);
|
let signupTokensRequestOptions = $state(data.signupTokensRequestOptions);
|
||||||
|
|
||||||
let selectedCreateOptions = $state('Add User');
|
let selectedCreateOptions = $state(m.add_user());
|
||||||
let expandAddUser = $state(false);
|
let expandAddUser = $state(false);
|
||||||
let signupTokenModalOpen = $state(false);
|
let signupTokenModalOpen = $state(false);
|
||||||
let signupTokenListModalOpen = $state(false);
|
let signupTokenListModalOpen = $state(false);
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
import AuditLogService from '$lib/services/audit-log-service';
|
import AuditLogService from '$lib/services/audit-log-service';
|
||||||
import type { AuditLogFilter } from '$lib/types/audit-log.type';
|
import type { AuditLogFilter } from '$lib/types/audit-log.type';
|
||||||
import AuditLogSwitcher from '../audit-log-switcher.svelte';
|
import AuditLogSwitcher from '../audit-log-switcher.svelte';
|
||||||
|
import {eventTypes as eventTranslations} from "$lib/utils/audit-log-translator";
|
||||||
|
|
||||||
let { data } = $props();
|
let { data } = $props();
|
||||||
|
|
||||||
@@ -27,13 +28,7 @@
|
|||||||
internal: 'Internal Networks'
|
internal: 'Internal Networks'
|
||||||
});
|
});
|
||||||
|
|
||||||
const eventTypes = $state({
|
const eventTypes = $state(eventTranslations);
|
||||||
SIGN_IN: m.sign_in(),
|
|
||||||
TOKEN_SIGN_IN: m.token_sign_in(),
|
|
||||||
CLIENT_AUTHORIZATION: m.client_authorization(),
|
|
||||||
NEW_CLIENT_AUTHORIZATION: m.new_client_authorization(),
|
|
||||||
ACCOUNT_CREATED: m.account_created()
|
|
||||||
});
|
|
||||||
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
auditLogService.listAllLogs(requestOptions, filters).then((response) => (auditLogs = response));
|
auditLogService.listAllLogs(requestOptions, filters).then((response) => (auditLogs = response));
|
||||||
|
|||||||
62
pnpm-lock.yaml
generated
62
pnpm-lock.yaml
generated
@@ -4,6 +4,9 @@ settings:
|
|||||||
autoInstallPeers: true
|
autoInstallPeers: true
|
||||||
excludeLinksFromLockfile: false
|
excludeLinksFromLockfile: false
|
||||||
|
|
||||||
|
overrides:
|
||||||
|
devalue: ^5.3.2
|
||||||
|
|
||||||
importers:
|
importers:
|
||||||
|
|
||||||
.: {}
|
.: {}
|
||||||
@@ -31,9 +34,12 @@ importers:
|
|||||||
qrcode:
|
qrcode:
|
||||||
specifier: ^1.5.4
|
specifier: ^1.5.4
|
||||||
version: 1.5.4
|
version: 1.5.4
|
||||||
|
runed:
|
||||||
|
specifier: ^0.31.1
|
||||||
|
version: 0.31.1(svelte@5.36.17)
|
||||||
sveltekit-superforms:
|
sveltekit-superforms:
|
||||||
specifier: ^2.27.1
|
specifier: ^2.27.1
|
||||||
version: 2.27.1(@sveltejs/kit@2.26.1(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(@types/json-schema@7.0.15)(esbuild@0.25.8)(svelte@5.36.17)(typescript@5.8.3)
|
version: 2.27.1(@sveltejs/kit@2.36.3(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(@types/json-schema@7.0.15)(esbuild@0.25.8)(svelte@5.36.17)(typescript@5.8.3)
|
||||||
tailwind-merge:
|
tailwind-merge:
|
||||||
specifier: ^3.3.1
|
specifier: ^3.3.1
|
||||||
version: 3.3.1
|
version: 3.3.1
|
||||||
@@ -58,10 +64,10 @@ importers:
|
|||||||
version: 0.525.0(svelte@5.36.17)
|
version: 0.525.0(svelte@5.36.17)
|
||||||
'@sveltejs/adapter-static':
|
'@sveltejs/adapter-static':
|
||||||
specifier: ^3.0.8
|
specifier: ^3.0.8
|
||||||
version: 3.0.8(@sveltejs/kit@2.26.1(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))
|
version: 3.0.8(@sveltejs/kit@2.36.3(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))
|
||||||
'@sveltejs/kit':
|
'@sveltejs/kit':
|
||||||
specifier: ^2.26.0
|
specifier: ^2.36.3
|
||||||
version: 2.26.1(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1))
|
version: 2.36.3(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1))
|
||||||
'@sveltejs/vite-plugin-svelte':
|
'@sveltejs/vite-plugin-svelte':
|
||||||
specifier: ^6.1.0
|
specifier: ^6.1.0
|
||||||
version: 6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1))
|
version: 6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1))
|
||||||
@@ -88,7 +94,7 @@ importers:
|
|||||||
version: 3.11.0(eslint@9.32.0(jiti@2.5.1))(svelte@5.36.17)
|
version: 3.11.0(eslint@9.32.0(jiti@2.5.1))(svelte@5.36.17)
|
||||||
formsnap:
|
formsnap:
|
||||||
specifier: ^2.0.1
|
specifier: ^2.0.1
|
||||||
version: 2.0.1(svelte@5.36.17)(sveltekit-superforms@2.27.1(@sveltejs/kit@2.26.1(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(@types/json-schema@7.0.15)(esbuild@0.25.8)(svelte@5.36.17)(typescript@5.8.3))
|
version: 2.0.1(svelte@5.36.17)(sveltekit-superforms@2.27.1(@sveltejs/kit@2.36.3(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(@types/json-schema@7.0.15)(esbuild@0.25.8)(svelte@5.36.17)(typescript@5.8.3))
|
||||||
globals:
|
globals:
|
||||||
specifier: ^16.3.0
|
specifier: ^16.3.0
|
||||||
version: 16.3.0
|
version: 16.3.0
|
||||||
@@ -615,14 +621,18 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@sveltejs/kit': ^2.0.0
|
'@sveltejs/kit': ^2.0.0
|
||||||
|
|
||||||
'@sveltejs/kit@2.26.1':
|
'@sveltejs/kit@2.36.3':
|
||||||
resolution: {integrity: sha512-FwDhHAoXYUGnYndrrEzEYcKdYWpSoRKq4kli29oMe83hLri4/DOGQk3xUgwjDo0LKpSmj5M/Sj29/Ug3wO0Cbg==}
|
resolution: {integrity: sha512-MVzwZz1GFznEQbL3f0i2v9AIc3lZH01izQj6XfIrthmZAwOzyXJCgXbLRss8vk//HfYsE4w6Tz+ukbf3rScPNQ==}
|
||||||
engines: {node: '>=18.13'}
|
engines: {node: '>=18.13'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
'@opentelemetry/api': ^1.0.0
|
||||||
'@sveltejs/vite-plugin-svelte': ^3.0.0 || ^4.0.0-next.1 || ^5.0.0 || ^6.0.0-next.0
|
'@sveltejs/vite-plugin-svelte': ^3.0.0 || ^4.0.0-next.1 || ^5.0.0 || ^6.0.0-next.0
|
||||||
svelte: ^4.0.0 || ^5.0.0-next.0
|
svelte: ^4.0.0 || ^5.0.0-next.0
|
||||||
vite: ^5.0.3 || ^6.0.0 || ^7.0.0-beta.0
|
vite: ^5.0.3 || ^6.0.0 || ^7.0.0-beta.0
|
||||||
|
peerDependenciesMeta:
|
||||||
|
'@opentelemetry/api':
|
||||||
|
optional: true
|
||||||
|
|
||||||
'@sveltejs/vite-plugin-svelte-inspector@5.0.0':
|
'@sveltejs/vite-plugin-svelte-inspector@5.0.0':
|
||||||
resolution: {integrity: sha512-iwQ8Z4ET6ZFSt/gC+tVfcsSBHwsqc6RumSaiLUkAurW3BCpJam65cmHw0oOlDMTO0u+PZi9hilBRYN+LZNHTUQ==}
|
resolution: {integrity: sha512-iwQ8Z4ET6ZFSt/gC+tVfcsSBHwsqc6RumSaiLUkAurW3BCpJam65cmHw0oOlDMTO0u+PZi9hilBRYN+LZNHTUQ==}
|
||||||
@@ -1025,8 +1035,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==}
|
resolution: {integrity: sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
|
||||||
devalue@5.1.1:
|
devalue@5.3.2:
|
||||||
resolution: {integrity: sha512-maua5KUiapvEwiEAe+XnlZ3Rh0GD+qI1J/nb9vrJc3muPXvcF/8gXYTWF76+5DAqHyDUtOIImEuo0YKE9mshVw==}
|
resolution: {integrity: sha512-UDsjUbpQn9kvm68slnrs+mfxwFkIflOhkanmyabZ8zOYk8SMEIbJ3TK+88g70hSIeytu4y18f0z/hYHMTrXIWw==}
|
||||||
|
|
||||||
dijkstrajs@1.0.3:
|
dijkstrajs@1.0.3:
|
||||||
resolution: {integrity: sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==}
|
resolution: {integrity: sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==}
|
||||||
@@ -1800,6 +1810,11 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
svelte: ^5.7.0
|
svelte: ^5.7.0
|
||||||
|
|
||||||
|
runed@0.31.1:
|
||||||
|
resolution: {integrity: sha512-v3czcTnO+EJjiPvD4dwIqfTdHLZ8oH0zJheKqAHh9QMViY7Qb29UlAMRpX7ZtHh7AFqV60KmfxaJ9QMy+L1igQ==}
|
||||||
|
peerDependencies:
|
||||||
|
svelte: ^5.7.0
|
||||||
|
|
||||||
sade@1.8.1:
|
sade@1.8.1:
|
||||||
resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==}
|
resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==}
|
||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
@@ -2512,25 +2527,25 @@ snapshots:
|
|||||||
|
|
||||||
'@sqlite.org/sqlite-wasm@3.48.0-build4': {}
|
'@sqlite.org/sqlite-wasm@3.48.0-build4': {}
|
||||||
|
|
||||||
'@standard-schema/spec@1.0.0':
|
'@standard-schema/spec@1.0.0': {}
|
||||||
optional: true
|
|
||||||
|
|
||||||
'@sveltejs/acorn-typescript@1.0.5(acorn@8.15.0)':
|
'@sveltejs/acorn-typescript@1.0.5(acorn@8.15.0)':
|
||||||
dependencies:
|
dependencies:
|
||||||
acorn: 8.15.0
|
acorn: 8.15.0
|
||||||
|
|
||||||
'@sveltejs/adapter-static@3.0.8(@sveltejs/kit@2.26.1(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))':
|
'@sveltejs/adapter-static@3.0.8(@sveltejs/kit@2.36.3(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@sveltejs/kit': 2.26.1(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1))
|
'@sveltejs/kit': 2.36.3(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1))
|
||||||
|
|
||||||
'@sveltejs/kit@2.26.1(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1))':
|
'@sveltejs/kit@2.36.3(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1))':
|
||||||
dependencies:
|
dependencies:
|
||||||
|
'@standard-schema/spec': 1.0.0
|
||||||
'@sveltejs/acorn-typescript': 1.0.5(acorn@8.15.0)
|
'@sveltejs/acorn-typescript': 1.0.5(acorn@8.15.0)
|
||||||
'@sveltejs/vite-plugin-svelte': 6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1))
|
'@sveltejs/vite-plugin-svelte': 6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1))
|
||||||
'@types/cookie': 0.6.0
|
'@types/cookie': 0.6.0
|
||||||
acorn: 8.15.0
|
acorn: 8.15.0
|
||||||
cookie: 0.6.0
|
cookie: 0.6.0
|
||||||
devalue: 5.1.1
|
devalue: 5.3.2
|
||||||
esm-env: 1.2.2
|
esm-env: 1.2.2
|
||||||
kleur: 4.1.5
|
kleur: 4.1.5
|
||||||
magic-string: 0.30.17
|
magic-string: 0.30.17
|
||||||
@@ -2949,7 +2964,7 @@ snapshots:
|
|||||||
|
|
||||||
detect-libc@2.0.4: {}
|
detect-libc@2.0.4: {}
|
||||||
|
|
||||||
devalue@5.1.1: {}
|
devalue@5.3.2: {}
|
||||||
|
|
||||||
dijkstrajs@1.0.3: {}
|
dijkstrajs@1.0.3: {}
|
||||||
|
|
||||||
@@ -3193,11 +3208,11 @@ snapshots:
|
|||||||
hasown: 2.0.2
|
hasown: 2.0.2
|
||||||
mime-types: 2.1.35
|
mime-types: 2.1.35
|
||||||
|
|
||||||
formsnap@2.0.1(svelte@5.36.17)(sveltekit-superforms@2.27.1(@sveltejs/kit@2.26.1(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(@types/json-schema@7.0.15)(esbuild@0.25.8)(svelte@5.36.17)(typescript@5.8.3)):
|
formsnap@2.0.1(svelte@5.36.17)(sveltekit-superforms@2.27.1(@sveltejs/kit@2.36.3(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(@types/json-schema@7.0.15)(esbuild@0.25.8)(svelte@5.36.17)(typescript@5.8.3)):
|
||||||
dependencies:
|
dependencies:
|
||||||
svelte: 5.36.17
|
svelte: 5.36.17
|
||||||
svelte-toolbelt: 0.5.0(svelte@5.36.17)
|
svelte-toolbelt: 0.5.0(svelte@5.36.17)
|
||||||
sveltekit-superforms: 2.27.1(@sveltejs/kit@2.26.1(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(@types/json-schema@7.0.15)(esbuild@0.25.8)(svelte@5.36.17)(typescript@5.8.3)
|
sveltekit-superforms: 2.27.1(@sveltejs/kit@2.36.3(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(@types/json-schema@7.0.15)(esbuild@0.25.8)(svelte@5.36.17)(typescript@5.8.3)
|
||||||
|
|
||||||
fsevents@2.3.2:
|
fsevents@2.3.2:
|
||||||
optional: true
|
optional: true
|
||||||
@@ -3630,6 +3645,11 @@ snapshots:
|
|||||||
esm-env: 1.2.2
|
esm-env: 1.2.2
|
||||||
svelte: 5.36.17
|
svelte: 5.36.17
|
||||||
|
|
||||||
|
runed@0.31.1(svelte@5.36.17):
|
||||||
|
dependencies:
|
||||||
|
esm-env: 1.2.2
|
||||||
|
svelte: 5.36.17
|
||||||
|
|
||||||
sade@1.8.1:
|
sade@1.8.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
mri: 1.2.0
|
mri: 1.2.0
|
||||||
@@ -3756,10 +3776,10 @@ snapshots:
|
|||||||
magic-string: 0.30.17
|
magic-string: 0.30.17
|
||||||
zimmerframe: 1.1.2
|
zimmerframe: 1.1.2
|
||||||
|
|
||||||
sveltekit-superforms@2.27.1(@sveltejs/kit@2.26.1(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(@types/json-schema@7.0.15)(esbuild@0.25.8)(svelte@5.36.17)(typescript@5.8.3):
|
sveltekit-superforms@2.27.1(@sveltejs/kit@2.36.3(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(@types/json-schema@7.0.15)(esbuild@0.25.8)(svelte@5.36.17)(typescript@5.8.3):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@sveltejs/kit': 2.26.1(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1))
|
'@sveltejs/kit': 2.36.3(@sveltejs/vite-plugin-svelte@6.1.0(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1)))(svelte@5.36.17)(vite@7.0.6(@types/node@22.16.5)(jiti@2.5.1)(lightningcss@1.30.1))
|
||||||
devalue: 5.1.1
|
devalue: 5.3.2
|
||||||
memoize-weak: 1.0.2
|
memoize-weak: 1.0.2
|
||||||
svelte: 5.36.17
|
svelte: 5.36.17
|
||||||
ts-deepmerge: 7.0.3
|
ts-deepmerge: 7.0.3
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
packages:
|
packages:
|
||||||
- 'frontend'
|
- 'frontend'
|
||||||
- 'tests'
|
- 'tests'
|
||||||
|
|
||||||
|
overrides:
|
||||||
|
'devalue': '^5.3.2'
|
||||||
|
|||||||
Reference in New Issue
Block a user