Move devpanel to top-level

This commit is contained in:
Nathan Bierema 2022-10-10 09:13:32 -04:00
parent 1dcf198071
commit afab8669d2
9 changed files with 50 additions and 50 deletions

View File

@ -4,7 +4,7 @@ html
head head
meta(charset='UTF-8') meta(charset='UTF-8')
title RemoteDev title RemoteDev
include ./includes/style.pug include ../../style.pug
body body
#root #root

View File

@ -4,7 +4,7 @@ html
head head
meta(charset='UTF-8') meta(charset='UTF-8')
title Redux DevTools title Redux DevTools
include ./includes/style.pug include ../../style.pug
body body
#root #root

View File

@ -4,7 +4,7 @@ html
head head
meta(charset='UTF-8') meta(charset='UTF-8')
title Redux DevTools title Redux DevTools
include ./includes/style.pug include ../style.pug
style. style.
body { body {
min-height: 100px; min-height: 100px;

View File

@ -3,13 +3,13 @@ import { createRoot, Root } from 'react-dom/client';
import { Provider } from 'react-redux'; import { Provider } from 'react-redux';
import { Persistor } from 'redux-persist'; import { Persistor } from 'redux-persist';
import { REMOVE_INSTANCE, StoreAction } from '@redux-devtools/app'; import { REMOVE_INSTANCE, StoreAction } from '@redux-devtools/app';
import App from '../../../app/containers/App'; import App from '../app/containers/App';
import configureStore from '../../../app/stores/panelStore'; import configureStore from './store/panelStore';
import '../../views/devpanel.pug'; import '../../views/devpanel.pug';
import { Action, Store } from 'redux'; import { Action, Store } from 'redux';
import type { PanelMessage } from '../../../background/store/apiMiddleware'; import type { PanelMessage } from '../background/store/apiMiddleware';
import { StoreStateWithoutSocket } from '../../../app/reducers/panel'; import type { StoreStateWithoutSocket } from './store/panelReducer';
import { PersistGate } from 'redux-persist/integration/react'; import { PersistGate } from 'redux-persist/integration/react';
const position = location.hash; const position = location.hash;

View File

@ -2,8 +2,8 @@ import { createStore, applyMiddleware, Reducer } from 'redux';
import localForage from 'localforage'; import localForage from 'localforage';
import { persistReducer, persistStore } from 'redux-persist'; import { persistReducer, persistStore } from 'redux-persist';
import { exportStateMiddleware, StoreAction } from '@redux-devtools/app'; import { exportStateMiddleware, StoreAction } from '@redux-devtools/app';
import panelDispatcher from '../middlewares/panelSync'; import panelDispatcher from './panelSyncMiddleware';
import rootReducer, { StoreStateWithoutSocket } from '../reducers/panel'; import rootReducer, { StoreStateWithoutSocket } from './panelReducer';
const persistConfig = { const persistConfig = {
key: 'redux-devtools', key: 'redux-devtools',

View File

@ -14,7 +14,7 @@ const baseConfig = (params) => ({
options: [mock, `${extpath}options/index`], options: [mock, `${extpath}options/index`],
window: [`${extpath}window/index`], window: [`${extpath}window/index`],
remote: [`${extpath}window/remote`], remote: [`${extpath}window/remote`],
devpanel: [mock, `${extpath}devpanel/index`], devpanel: [mock, '../src/devpanel/index'],
devtools: [`${extpath}devtools/index`], devtools: [`${extpath}devtools/index`],
content: [mock, `${extpath}inject/contentScript`], content: [mock, `${extpath}inject/contentScript`],
pagewrap: [`${extpath}inject/pageScriptWrap`], pagewrap: [`${extpath}inject/pageScriptWrap`],