mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
updates root components structure
This commit is contained in:
5
scm-ui/src/components/buttons/index.js
Normal file
5
scm-ui/src/components/buttons/index.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export { default as AddButton } from "./AddButton";
|
||||
export { default as Button } from "./Button";
|
||||
export { default as DeleteButton } from "./DeleteButton";
|
||||
export { default as EditButton } from "./EditButton";
|
||||
export { default as SubmitButton } from "./SubmitButton";
|
||||
2
scm-ui/src/components/forms/index.js
Normal file
2
scm-ui/src/components/forms/index.js
Normal file
@@ -0,0 +1,2 @@
|
||||
export { default as Checkbox } from "./Checkbox";
|
||||
export { default as InputField } from "./InputField";
|
||||
@@ -1,6 +1,6 @@
|
||||
//@flow
|
||||
import React from "react";
|
||||
import type { Me } from "../types/Me";
|
||||
import type { Me } from "../../types/Me";
|
||||
|
||||
type Props = {
|
||||
me?: Me
|
||||
@@ -1,6 +1,6 @@
|
||||
//@flow
|
||||
import * as React from "react";
|
||||
import Logo from "./Logo";
|
||||
import Logo from "./../Logo";
|
||||
|
||||
type Props = {
|
||||
children?: React.Node
|
||||
@@ -1,7 +1,7 @@
|
||||
//@flow
|
||||
import * as React from "react";
|
||||
import Loading from "./Loading";
|
||||
import ErrorNotification from "./ErrorNotification";
|
||||
import Loading from "./../Loading";
|
||||
import ErrorNotification from "./../ErrorNotification";
|
||||
|
||||
type Props = {
|
||||
title: string,
|
||||
3
scm-ui/src/components/layout/index.js
Normal file
3
scm-ui/src/components/layout/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export { default as Footer } from "./Footer";
|
||||
export { default as Header } from "./Header";
|
||||
export { default as Page } from "./Page";
|
||||
1
scm-ui/src/components/modals/index.js
Normal file
1
scm-ui/src/components/modals/index.js
Normal file
@@ -0,0 +1 @@
|
||||
export { default as ConfirmAlert } from "./ConfirmAlert";
|
||||
@@ -1,3 +1,7 @@
|
||||
//primary Navigation
|
||||
export { default as PrimaryNavigation } from "./PrimaryNavigation";
|
||||
export { default as PrimaryNavigationLink } from "./PrimaryNavigationLink";
|
||||
//secondary Navigation
|
||||
export { default as Navigation } from "./Navigation";
|
||||
export { default as Section } from "./Section";
|
||||
export { default as NavLink } from "./NavLink";
|
||||
@@ -6,12 +6,11 @@ import { withRouter } from "react-router-dom";
|
||||
import { fetchMe } from "../modules/auth";
|
||||
|
||||
import "./App.css";
|
||||
import "../components/ConfirmAlert.css";
|
||||
import Header from "../components/Header";
|
||||
import PrimaryNavigation from "../components/PrimaryNavigation";
|
||||
import "../components/modals/ConfirmAlert.css";
|
||||
import { PrimaryNavigation } from "../components/navigation";
|
||||
import Loading from "../components/Loading";
|
||||
import ErrorPage from "../components/ErrorPage";
|
||||
import Footer from "../components/Footer";
|
||||
import { Footer, Header } from "../components/layout";
|
||||
|
||||
type Props = {
|
||||
me: Me,
|
||||
|
||||
@@ -6,8 +6,8 @@ import { translate } from "react-i18next";
|
||||
import { login } from "../modules/auth";
|
||||
import { connect } from "react-redux";
|
||||
|
||||
import InputField from "../components/InputField";
|
||||
import SubmitButton from "../components/SubmitButton";
|
||||
import { InputField } from "../components/forms";
|
||||
import { SubmitButton } from "../components/buttons";
|
||||
|
||||
import classNames from "classnames";
|
||||
import Avatar from "../images/blib.jpg";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// @flow
|
||||
import React from "react";
|
||||
import Page from "../../components/Page";
|
||||
import { Page } from "../../components/layout";
|
||||
import { translate } from "react-i18next";
|
||||
|
||||
type Props = {
|
||||
|
||||
@@ -5,7 +5,7 @@ import UserForm from "./UserForm";
|
||||
import type { User } from "../types/User";
|
||||
import type { History } from "history";
|
||||
import { createUser } from "../modules/users";
|
||||
import Page from "../../components/Page";
|
||||
import { Page } from "../../components/layout";
|
||||
|
||||
type Props = {
|
||||
addUser: (user: User, callback?: () => void) => void,
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
import React from "react";
|
||||
import { translate } from "react-i18next";
|
||||
import type { User } from "../types/User";
|
||||
import { confirmAlert } from "../../components/ConfirmAlert";
|
||||
import { NavAction } from "../../components/SecondaryNavigation";
|
||||
import { confirmAlert } from "../../components/modals/ConfirmAlert";
|
||||
import { NavAction } from "../../components/navigation";
|
||||
|
||||
type Props = {
|
||||
user: User,
|
||||
|
||||
@@ -4,8 +4,8 @@ import "../../tests/enzyme";
|
||||
import "../../tests/i18n";
|
||||
import DeleteUserButton from "./DeleteUserButton";
|
||||
|
||||
import { confirmAlert } from "../../components/ConfirmAlert";
|
||||
jest.mock("../../components/ConfirmAlert");
|
||||
import { confirmAlert } from "../../components/modals/ConfirmAlert";
|
||||
jest.mock("../../components/modals/ConfirmAlert");
|
||||
|
||||
describe("DeleteUserButton", () => {
|
||||
it("should render nothing, if the delete link is missing", () => {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import React from "react";
|
||||
import type { User } from "../types/User";
|
||||
import { translate } from "react-i18next";
|
||||
import Checkbox from "../../components/Checkbox";
|
||||
import { Checkbox } from "../../components/forms";
|
||||
|
||||
type Props = {
|
||||
user: User,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//@flow
|
||||
import React from "react";
|
||||
import { translate } from "react-i18next";
|
||||
import EditButton from "../../components/EditButton";
|
||||
import { EditButton } from "../../components/buttons";
|
||||
import type { UserEntry } from "../types/UserEntry";
|
||||
|
||||
type Props = {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//@flow
|
||||
import React from "react";
|
||||
import { connect } from "react-redux";
|
||||
import Page from "../../components/Page";
|
||||
import { Page } from "../../components/layout";
|
||||
import { Route } from "react-router";
|
||||
import Details from "./Details";
|
||||
import EditUser from "./EditUser";
|
||||
@@ -10,11 +10,7 @@ import type { UserEntry } from "../types/UserEntry";
|
||||
import { fetchUser, deleteUser } from "../modules/users";
|
||||
import Loading from "../../components/Loading";
|
||||
|
||||
import {
|
||||
Navigation,
|
||||
Section,
|
||||
NavLink
|
||||
} from "../../components/SecondaryNavigation";
|
||||
import { Navigation, Section, NavLink } from "../../components/navigation";
|
||||
import DeleteUserButton from "./DeleteUserButton";
|
||||
import ErrorPage from "../../components/ErrorPage";
|
||||
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
import React from "react";
|
||||
import { translate } from "react-i18next";
|
||||
import type { User } from "../types/User";
|
||||
import InputField from "../../components/InputField";
|
||||
import Checkbox from "../../components/Checkbox";
|
||||
import SubmitButton from "../../components/SubmitButton";
|
||||
import { InputField, Checkbox } from "../../components/forms";
|
||||
import { SubmitButton } from "../../components/buttons";
|
||||
import Loading from "../../components/Loading";
|
||||
|
||||
type Props = {
|
||||
|
||||
@@ -4,10 +4,10 @@ import { connect } from "react-redux";
|
||||
import { translate } from "react-i18next";
|
||||
|
||||
import { fetchUsers, getUsersFromState } from "../modules/users";
|
||||
import Page from "../../components/Page";
|
||||
import { Page } from "../../components/layout";
|
||||
import UserTable from "./UserTable";
|
||||
import type { User } from "../types/User";
|
||||
import AddButton from "../../components/AddButton";
|
||||
import { AddButton } from "../../components/buttons";
|
||||
import type { UserEntry } from "../types/UserEntry";
|
||||
|
||||
type Props = {
|
||||
|
||||
Reference in New Issue
Block a user