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