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

@ -1,11 +1,11 @@
doctype html
html
head
meta(charset='UTF-8')
title RemoteDev
include ./includes/style.pug
body
#root
script(src='/remote.bundle.js')
doctype html
html
head
meta(charset='UTF-8')
title RemoteDev
include ../../style.pug
body
#root
script(src='/remote.bundle.js')

View File

@ -1,17 +1,17 @@
doctype html
html
head
meta(charset='UTF-8')
title Redux DevTools
include ./includes/style.pug
body
#root
div(style='position: relative')
img(
src='/img/loading.svg',
height=300, width=350,
style='position: absolute; top: 50%; left: 50%; margin-top: -175px; margin-left: -175px;'
)
script(src='/window.bundle.js')
doctype html
html
head
meta(charset='UTF-8')
title Redux DevTools
include ../../style.pug
body
#root
div(style='position: relative')
img(
src='/img/loading.svg',
height=300, width=350,
style='position: absolute; top: 50%; left: 50%; margin-top: -175px; margin-left: -175px;'
)
script(src='/window.bundle.js')

View File

@ -1,15 +1,15 @@
doctype html
html
head
meta(charset='UTF-8')
title Redux DevTools
include ./includes/style.pug
style.
body {
min-height: 100px;
}
body
#root
script(src='/devpanel.bundle.js')
doctype html
html
head
meta(charset='UTF-8')
title Redux DevTools
include ../style.pug
style.
body {
min-height: 100px;
}
body
#root
script(src='/devpanel.bundle.js')

View File

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

View File

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

View File

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