-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added personal area breadcrumbs and users breadcrumb
- Loading branch information
Okeanij
committed
Jan 19, 2020
1 parent
728bd97
commit b6408ec
Showing
64 changed files
with
219 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { getBreadcrumbs } from "sun"; | ||
|
||
export default ({ Vue }) => { | ||
Vue.prototype.$getBreadcrumbs = getBreadcrumbs; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import { app } from "sun"; | ||
|
||
const breadcrumbs = {}; | ||
|
||
export function makeBreadcrumbs() { | ||
breadcrumbs.Personal = { | ||
title: app.$t("BreadcrumbsNames.personal"), | ||
route: { | ||
name: "ProfileInSettings" | ||
}, | ||
showInBreadcrumbs: true, | ||
id: "ProfileInSettings" | ||
}; | ||
|
||
breadcrumbs.Users = { | ||
title: app.$t("BreadcrumbsNames.user"), | ||
route: null, | ||
showInBreadcrumbs: true, | ||
id: "Users" | ||
}; | ||
|
||
/* breadcrumbs.PersonalUser = { | ||
title: app.$t("BreadcrumbsNames.you"), | ||
route: {}, | ||
showInBreadcrumbs: true, | ||
id: "PersonalUser", | ||
parent: breadcrumbs.Personal | ||
};*/ | ||
|
||
breadcrumbs.Admin = { | ||
title: app.$t("BreadcrumbsNames.adminPanel"), | ||
route: { | ||
name: "AdminInformation" | ||
}, | ||
showInBreadcrumbs: true, | ||
id: "AdminInformation" | ||
}; | ||
|
||
breadcrumbs.CategoriesAdmin = { | ||
title: app.$t("BreadcrumbsNames.adminPanelCategories"), | ||
route: { | ||
name: "CategoriesAdmin" | ||
}, | ||
showInBreadcrumbs: true, | ||
id: "CategoriesAdmin", | ||
parent: breadcrumbs.Admin | ||
}; | ||
|
||
breadcrumbs.ComponentsAdmin = { | ||
title: app.$t("BreadcrumbsNames.adminPanelComponents"), | ||
route: { | ||
name: "ComponentsAdmin" | ||
}, | ||
showInBreadcrumbs: true, | ||
id: "ComponentsAdmin", | ||
parent: breadcrumbs.Admin | ||
}; | ||
|
||
breadcrumbs.MenuItemsAdmin = { | ||
title: app.$t("BreadcrumbsNames.adminPanelMenu"), | ||
route: { | ||
name: "MenuItemsAdmin" | ||
}, | ||
showInBreadcrumbs: true, | ||
id: "MenuItemsAdmin", | ||
parent: breadcrumbs.Admin | ||
}; | ||
|
||
Object.freeze(breadcrumbs); | ||
} | ||
|
||
export default function getBreadcrumbs(name) { | ||
return breadcrumbs[name]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.