nexus basic
This commit is contained in:
@@ -831,12 +831,26 @@ body.has-modal-open {
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
.dashboard-links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.dashboard-widget__meta p {
|
||||
margin: 0;
|
||||
color: var(--text-soft);
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.dashboard-app-icon {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
object-fit: cover;
|
||||
border-radius: 12px;
|
||||
border: 1px solid color-mix(in srgb, var(--border-soft) 85%, transparent);
|
||||
}
|
||||
|
||||
.dashboard-widget__frame {
|
||||
width: 100%;
|
||||
min-height: 300px;
|
||||
|
||||
@@ -24,7 +24,7 @@ $publicPaths = [
|
||||
'auth/me',
|
||||
'module/pi_control/terminal_info',
|
||||
];
|
||||
$requiresGlobalAuth = in_array($uriPath, ['settings', 'users', 'modules', 'modules/install', 'modules/sql-import', 'debug', 'exports/database.sql', 'dashboard', 'dashboards', 'integrations', 'page-modules'], true)
|
||||
$requiresGlobalAuth = in_array($uriPath, ['settings', 'settings/widgets', 'settings/search-engines', 'settings/apps', 'users', 'modules', 'modules/install', 'modules/sql-import', 'debug', 'exports/database.sql', 'dashboard', 'dashboards', 'integrations', 'page-modules'], true)
|
||||
|| str_starts_with($uriPath, 'modules/setup/')
|
||||
|| str_starts_with($uriPath, 'modules/access/');
|
||||
if (str_starts_with($uriPath, 'page-modules/view/')) {
|
||||
@@ -275,6 +275,12 @@ if (str_starts_with($uriPath, 'modules/install')) {
|
||||
$target = $pagesBase . '/auth/logout.php';
|
||||
} elseif ($uriPath === 'settings') {
|
||||
$target = $pagesBase . '/users/settings.php';
|
||||
} elseif ($uriPath === 'settings/widgets') {
|
||||
$target = $pagesBase . '/users/settings_widgets.php';
|
||||
} elseif ($uriPath === 'settings/search-engines') {
|
||||
$target = $pagesBase . '/users/settings_search_engines.php';
|
||||
} elseif ($uriPath === 'settings/apps') {
|
||||
$target = $pagesBase . '/users/settings_apps.php';
|
||||
} elseif ($uriPath === 'users') {
|
||||
$target = $pagesBase . '/users/index.php';
|
||||
} elseif ($uriPath === 'dashboard') {
|
||||
|
||||
Reference in New Issue
Block a user