mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
added first routing and mock for groups page
This commit is contained in:
@@ -31,7 +31,8 @@
|
|||||||
"primary-navigation": {
|
"primary-navigation": {
|
||||||
"repositories": "Repositories",
|
"repositories": "Repositories",
|
||||||
"users": "Users",
|
"users": "Users",
|
||||||
"logout": "Logout"
|
"logout": "Logout",
|
||||||
|
"groups": "Groups"
|
||||||
},
|
},
|
||||||
"paginator": {
|
"paginator": {
|
||||||
"next": "Next",
|
"next": "Next",
|
||||||
|
|||||||
@@ -23,6 +23,11 @@ class PrimaryNavigation extends React.Component<Props> {
|
|||||||
match="/(user|users)"
|
match="/(user|users)"
|
||||||
label={t("primary-navigation.users")}
|
label={t("primary-navigation.users")}
|
||||||
/>
|
/>
|
||||||
|
<PrimaryNavigationLink
|
||||||
|
to="/groups"
|
||||||
|
match="/(group|groups)"
|
||||||
|
label={t("primary-navigation.groups")}
|
||||||
|
/>
|
||||||
<PrimaryNavigationLink
|
<PrimaryNavigationLink
|
||||||
to="/logout"
|
to="/logout"
|
||||||
label={t("primary-navigation.logout")}
|
label={t("primary-navigation.logout")}
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import ProtectedRoute from "../components/ProtectedRoute";
|
|||||||
import AddUser from "../users/containers/AddUser";
|
import AddUser from "../users/containers/AddUser";
|
||||||
import SingleUser from "../users/containers/SingleUser";
|
import SingleUser from "../users/containers/SingleUser";
|
||||||
|
|
||||||
|
import Groups from "../groups/containers/Groups";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
authenticated?: boolean
|
authenticated?: boolean
|
||||||
};
|
};
|
||||||
@@ -53,6 +55,12 @@ class Main extends React.Component<Props> {
|
|||||||
path="/user/:name"
|
path="/user/:name"
|
||||||
component={SingleUser}
|
component={SingleUser}
|
||||||
/>
|
/>
|
||||||
|
<ProtectedRoute
|
||||||
|
exact
|
||||||
|
path="/groups"
|
||||||
|
component={Groups}
|
||||||
|
authenticated={authenticated}
|
||||||
|
/>
|
||||||
</Switch>
|
</Switch>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
21
scm-ui/src/groups/containers/Groups.js
Normal file
21
scm-ui/src/groups/containers/Groups.js
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
// @flow
|
||||||
|
import React from "react";
|
||||||
|
import type { History } from "history";
|
||||||
|
import { connect } from "react-redux";
|
||||||
|
import { translate } from "react-i18next";
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
class Groups extends React.Component<Props> {
|
||||||
|
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
"Groups will be displayed here!"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Groups;
|
||||||
Reference in New Issue
Block a user