mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 23:50:52 +01:00
Move mod tools
This commit is contained in:
parent
01d5e5e1be
commit
0c01bb2e37
@ -1,7 +1,7 @@
|
|||||||
import { FC, useMemo, useState } from 'react';
|
import { FC, useMemo, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../api';
|
import { LocalizeText } from '../../../api';
|
||||||
import { Button, Column, Flex, Text } from '../../../common';
|
import { Button, Column, Flex, Text } from '../../../common';
|
||||||
import { GetCfhCategories } from '../../../views/mod-tools/common/GetCFHCategories';
|
import { GetCfhCategories } from '../../mod-tools/common/GetCFHCategories';
|
||||||
import { useHelpContext } from '../HelpContext';
|
import { useHelpContext } from '../HelpContext';
|
||||||
|
|
||||||
export const SelectTopicView: FC<{}> = props =>
|
export const SelectTopicView: FC<{}> = props =>
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
@import './groups/GroupView';
|
@import './groups/GroupView';
|
||||||
@import './help/HelpView';
|
@import './help/HelpView';
|
||||||
@import './inventory/InventoryView';
|
@import './inventory/InventoryView';
|
||||||
|
@import './mod-tools/ModToolsView';
|
||||||
@import './navigator/NavigatorView';
|
@import './navigator/NavigatorView';
|
||||||
@import './toolbar/ToolbarView';
|
@import './toolbar/ToolbarView';
|
||||||
@import './user-settings/UserSettingsView';
|
@import './user-settings/UserSettingsView';
|
||||||
|
@ -7,8 +7,8 @@ import { ModToolsOpenRoomInfoEvent } from '../../events/mod-tools/ModToolsOpenRo
|
|||||||
import { ModToolsOpenUserChatlogEvent } from '../../events/mod-tools/ModToolsOpenUserChatlogEvent';
|
import { ModToolsOpenUserChatlogEvent } from '../../events/mod-tools/ModToolsOpenUserChatlogEvent';
|
||||||
import { ModToolsOpenUserInfoEvent } from '../../events/mod-tools/ModToolsOpenUserInfoEvent';
|
import { ModToolsOpenUserInfoEvent } from '../../events/mod-tools/ModToolsOpenUserInfoEvent';
|
||||||
import { CreateMessageHook, useRoomEngineEvent, useUiEvent } from '../../hooks';
|
import { CreateMessageHook, useRoomEngineEvent, useUiEvent } from '../../hooks';
|
||||||
import { NotificationAlertType } from '../notification-center/common/NotificationAlertType';
|
import { NotificationAlertType } from '../../views/notification-center/common/NotificationAlertType';
|
||||||
import { NotificationUtilities } from '../notification-center/common/NotificationUtilities';
|
import { NotificationUtilities } from '../../views/notification-center/common/NotificationUtilities';
|
||||||
import { SetCfhCategories } from './common/GetCFHCategories';
|
import { SetCfhCategories } from './common/GetCFHCategories';
|
||||||
import { useModToolsContext } from './context/ModToolsContext';
|
import { useModToolsContext } from './context/ModToolsContext';
|
||||||
import { ModToolsActions } from './reducers/ModToolsReducer';
|
import { ModToolsActions } from './reducers/ModToolsReducer';
|
@ -10,7 +10,6 @@ import { dispatchUiEvent, useUiEvent } from '../../hooks/events/ui/ui-event';
|
|||||||
import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../layout';
|
import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../layout';
|
||||||
import { ModToolsContextProvider } from './context/ModToolsContext';
|
import { ModToolsContextProvider } from './context/ModToolsContext';
|
||||||
import { ModToolsMessageHandler } from './ModToolsMessageHandler';
|
import { ModToolsMessageHandler } from './ModToolsMessageHandler';
|
||||||
import { ModToolsViewProps } from './ModToolsView.types';
|
|
||||||
import { initialModTools, ModToolsActions, ModToolsReducer } from './reducers/ModToolsReducer';
|
import { initialModTools, ModToolsActions, ModToolsReducer } from './reducers/ModToolsReducer';
|
||||||
import { ISelectedUser } from './utils/ISelectedUser';
|
import { ISelectedUser } from './utils/ISelectedUser';
|
||||||
import { ModToolsChatlogView } from './views/room/room-chatlog/ModToolsChatlogView';
|
import { ModToolsChatlogView } from './views/room/room-chatlog/ModToolsChatlogView';
|
||||||
@ -19,7 +18,7 @@ import { ModToolsTicketsView } from './views/tickets/ModToolsTicketsView';
|
|||||||
import { ModToolsUserChatlogView } from './views/user/user-chatlog/ModToolsUserChatlogView';
|
import { ModToolsUserChatlogView } from './views/user/user-chatlog/ModToolsUserChatlogView';
|
||||||
import { ModToolsUserView } from './views/user/user-info/ModToolsUserView';
|
import { ModToolsUserView } from './views/user/user-info/ModToolsUserView';
|
||||||
|
|
||||||
export const ModToolsView: FC<ModToolsViewProps> = props =>
|
export const ModToolsView: FC<{}> = props =>
|
||||||
{
|
{
|
||||||
const [ isVisible, setIsVisible ] = useState(false);
|
const [ isVisible, setIsVisible ] = useState(false);
|
||||||
const [ modToolsState, dispatchModToolsState ] = useReducer(ModToolsReducer, initialModTools);
|
const [ modToolsState, dispatchModToolsState ] = useReducer(ModToolsReducer, initialModTools);
|
@ -3,8 +3,8 @@ import { FC, useCallback, useMemo, useState } from 'react';
|
|||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../../api';
|
||||||
import { SendMessageHook } from '../../../../../hooks';
|
import { SendMessageHook } from '../../../../../hooks';
|
||||||
import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../layout';
|
import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../layout';
|
||||||
import { NotificationAlertType } from '../../../../notification-center/common/NotificationAlertType';
|
import { NotificationAlertType } from '../../../../../views/notification-center/common/NotificationAlertType';
|
||||||
import { NotificationUtilities } from '../../../../notification-center/common/NotificationUtilities';
|
import { NotificationUtilities } from '../../../../../views/notification-center/common/NotificationUtilities';
|
||||||
import { useModToolsContext } from '../../../context/ModToolsContext';
|
import { useModToolsContext } from '../../../context/ModToolsContext';
|
||||||
import { ModActionDefinition } from '../../../utils/ModActionDefinition';
|
import { ModActionDefinition } from '../../../utils/ModActionDefinition';
|
||||||
import { ModToolsUserModActionViewProps } from './ModToolsUserModActionView.types';
|
import { ModToolsUserModActionViewProps } from './ModToolsUserModActionView.types';
|
@ -8,7 +8,6 @@
|
|||||||
@import "./right-side/RightSideView";
|
@import "./right-side/RightSideView";
|
||||||
@import "./room/RoomView";
|
@import "./room/RoomView";
|
||||||
@import "./room-host/RoomHostView";
|
@import "./room-host/RoomHostView";
|
||||||
@import "./mod-tools/ModToolsView";
|
|
||||||
@import "./user-profile/UserProfileVew";
|
@import "./user-profile/UserProfileVew";
|
||||||
@import "./chat-history/ChatHistoryView";
|
@import "./chat-history/ChatHistoryView";
|
||||||
@import "./floorplan-editor/FloorplanEditorView";
|
@import "./floorplan-editor/FloorplanEditorView";
|
||||||
|
@ -8,6 +8,7 @@ import { CatalogView } from '../../components/catalog/CatalogView';
|
|||||||
import { GroupsView } from '../../components/groups/GroupsView';
|
import { GroupsView } from '../../components/groups/GroupsView';
|
||||||
import { HelpView } from '../../components/help/HelpView';
|
import { HelpView } from '../../components/help/HelpView';
|
||||||
import { InventoryView } from '../../components/inventory/InventoryView';
|
import { InventoryView } from '../../components/inventory/InventoryView';
|
||||||
|
import { ModToolsView } from '../../components/mod-tools/ModToolsView';
|
||||||
import { NavigatorView } from '../../components/navigator/NavigatorView';
|
import { NavigatorView } from '../../components/navigator/NavigatorView';
|
||||||
import { ToolbarView } from '../../components/toolbar/ToolbarView';
|
import { ToolbarView } from '../../components/toolbar/ToolbarView';
|
||||||
import { UserSettingsView } from '../../components/user-settings/UserSettingsView';
|
import { UserSettingsView } from '../../components/user-settings/UserSettingsView';
|
||||||
@ -20,7 +21,6 @@ import { FloorplanEditorView } from '../floorplan-editor/FloorplanEditorView';
|
|||||||
import { FriendsView } from '../friends/FriendsView';
|
import { FriendsView } from '../friends/FriendsView';
|
||||||
import { HcCenterView } from '../hc-center/HcCenterView';
|
import { HcCenterView } from '../hc-center/HcCenterView';
|
||||||
import { HotelView } from '../hotel-view/HotelView';
|
import { HotelView } from '../hotel-view/HotelView';
|
||||||
import { ModToolsView } from '../mod-tools/ModToolsView';
|
|
||||||
import { NitropediaView } from '../nitropedia/NitropediaView';
|
import { NitropediaView } from '../nitropedia/NitropediaView';
|
||||||
import { RightSideView } from '../right-side/RightSideView';
|
import { RightSideView } from '../right-side/RightSideView';
|
||||||
import { RoomHostView } from '../room-host/RoomHostView';
|
import { RoomHostView } from '../room-host/RoomHostView';
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
export interface ModToolsViewProps
|
|
||||||
{}
|
|
Loading…
Reference in New Issue
Block a user