mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-04-03 18:55:55 +02:00
Merge pull request #3 from KarnamShyam1947/shyam-frontend
updated header component
This commit is contained in:
commit
c68d0aad5e
2
Makefile
2
Makefile
@ -42,7 +42,7 @@ build:
|
||||
|
||||
frontend:
|
||||
$(info ===> BUILD frontend)
|
||||
cd web/frontend && pnpm install && pnpm run build
|
||||
cd web/frontend && npm install && npm run build
|
||||
|
||||
clean:
|
||||
$(info ===> CLEAN)
|
||||
|
@ -6,8 +6,8 @@ import terser from '@rollup/plugin-terser';
|
||||
import css from 'rollup-plugin-css-only';
|
||||
import livereload from 'rollup-plugin-livereload';
|
||||
|
||||
// const production = !process.env.ROLLUP_WATCH;
|
||||
const production = false
|
||||
const production = !process.env.ROLLUP_WATCH;
|
||||
// const production = false
|
||||
|
||||
const plugins = [
|
||||
svelte({
|
||||
|
@ -32,62 +32,62 @@
|
||||
usersTitle.set(5, "Users");
|
||||
|
||||
const views = [
|
||||
{
|
||||
title: "My Jobs",
|
||||
requiredRole: roles.user,
|
||||
href: `/monitoring/user/${username}`,
|
||||
icon: "bar-chart-line-fill",
|
||||
perCluster: false,
|
||||
menu: "none",
|
||||
},
|
||||
{
|
||||
title: jobsTitle.get(authlevel),
|
||||
requiredRole: roles.user,
|
||||
href: `/monitoring/jobs/`,
|
||||
icon: "card-list",
|
||||
perCluster: false,
|
||||
menu: "none",
|
||||
},
|
||||
{
|
||||
title: usersTitle.get(authlevel),
|
||||
requiredRole: roles.manager,
|
||||
href: "/monitoring/users/",
|
||||
icon: "people-fill",
|
||||
perCluster: false,
|
||||
menu: "Groups",
|
||||
},
|
||||
{
|
||||
title: "Projects",
|
||||
requiredRole: roles.support,
|
||||
href: "/monitoring/projects/",
|
||||
icon: "folder",
|
||||
perCluster: false,
|
||||
menu: "Groups",
|
||||
},
|
||||
{
|
||||
title: "Tags",
|
||||
requiredRole: roles.user,
|
||||
href: "/monitoring/tags/",
|
||||
icon: "tags",
|
||||
perCluster: false,
|
||||
menu: "Groups",
|
||||
},
|
||||
{
|
||||
title: "Analysis",
|
||||
requiredRole: roles.support,
|
||||
href: "/monitoring/analysis/",
|
||||
icon: "graph-up",
|
||||
perCluster: true,
|
||||
menu: "Stats",
|
||||
},
|
||||
{
|
||||
title: "Nodes",
|
||||
requiredRole: roles.admin,
|
||||
href: "/monitoring/systems/",
|
||||
icon: "cpu",
|
||||
perCluster: true,
|
||||
menu: "Groups",
|
||||
},
|
||||
// {
|
||||
// title: "My Jobs changed",
|
||||
// requiredRole: roles.user,
|
||||
// href: `/monitoring/user/${username}`,
|
||||
// icon: "bar-chart-line-fill",
|
||||
// perCluster: false,
|
||||
// menu: "none",
|
||||
// },
|
||||
// {
|
||||
// title: jobsTitle.get(authlevel),
|
||||
// requiredRole: roles.user,
|
||||
// href: `/monitoring/jobs/`,
|
||||
// icon: "card-list",
|
||||
// perCluster: false,
|
||||
// menu: "none",
|
||||
// },
|
||||
// {
|
||||
// title: usersTitle.get(authlevel),
|
||||
// requiredRole: roles.manager,
|
||||
// href: "/monitoring/users/",
|
||||
// icon: "people-fill",
|
||||
// perCluster: false,
|
||||
// menu: "Groups",
|
||||
// },
|
||||
// {
|
||||
// title: "Projects changed",
|
||||
// requiredRole: roles.support,
|
||||
// href: "/monitoring/projects/",
|
||||
// icon: "folder",
|
||||
// perCluster: false,
|
||||
// menu: "Groups",
|
||||
// },
|
||||
// {
|
||||
// title: "Tags",
|
||||
// requiredRole: roles.user,
|
||||
// href: "/monitoring/tags/",
|
||||
// icon: "tags",
|
||||
// perCluster: false,
|
||||
// menu: "Groups",
|
||||
// },
|
||||
// {
|
||||
// title: "Analysis",
|
||||
// requiredRole: roles.support,
|
||||
// href: "/monitoring/analysis/",
|
||||
// icon: "graph-up",
|
||||
// perCluster: true,
|
||||
// menu: "Stats",
|
||||
// },
|
||||
// {
|
||||
// title: "Nodes",
|
||||
// requiredRole: roles.admin,
|
||||
// href: "/monitoring/systems/",
|
||||
// icon: "cpu",
|
||||
// perCluster: true,
|
||||
// menu: "Groups",
|
||||
// },
|
||||
{
|
||||
title: "Control",
|
||||
requiredRole: roles.admin,
|
||||
|
Loading…
x
Reference in New Issue
Block a user