Move window to top-level

This commit is contained in:
Nathan Bierema 2022-10-10 09:27:37 -04:00
parent da03640928
commit ff4f3e336b
10 changed files with 17 additions and 17 deletions

View File

@ -2,7 +2,7 @@ import React from 'react';
import { createRoot } from 'react-dom/client'; import { createRoot } from 'react-dom/client';
import { Root } from '@redux-devtools/app'; import { Root } from '@redux-devtools/app';
import '../../views/remote.pug'; import './remote.pug';
chrome.storage.local.get( chrome.storage.local.get(
{ {

View File

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

View File

@ -3,11 +3,11 @@ import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux'; import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react'; import { PersistGate } from 'redux-persist/integration/react';
import { UPDATE_STATE } from '@redux-devtools/app'; import { UPDATE_STATE } from '@redux-devtools/app';
import App from '../../../app/containers/App'; import App from '../app/containers/App';
import configureStore from '../../../app/stores/windowStore'; import configureStore from './store/windowStore';
import type { MonitorMessage } from '../../../background/store/apiMiddleware'; import type { MonitorMessage } from '../background/store/apiMiddleware';
import '../../views/window.pug'; import './window.pug';
const position = location.hash; const position = location.hash;

View File

@ -6,10 +6,10 @@ import {
LIFTED_ACTION, LIFTED_ACTION,
SET_PERSIST, SET_PERSIST,
} from '@redux-devtools/app'; } from '@redux-devtools/app';
import { import type {
ExpandedUpdateStateAction, ExpandedUpdateStateAction,
WindowStoreAction, WindowStoreAction,
} from '../../stores/windowStore'; } from './windowStore';
export default function instances( export default function instances(
state = instancesInitialState, state = instancesInitialState,

View File

@ -9,8 +9,8 @@ import {
theme, theme,
StoreState, StoreState,
} from '@redux-devtools/app'; } from '@redux-devtools/app';
import instances from './instances'; import instances from './instancesReducer';
import { WindowStoreAction } from '../../stores/windowStore'; import type { WindowStoreAction } from './windowStore';
const rootReducer: Reducer<StoreState, WindowStoreAction> = const rootReducer: Reducer<StoreState, WindowStoreAction> =
combineReducers<StoreState>({ combineReducers<StoreState>({

View File

@ -17,9 +17,9 @@ import {
StoreState, StoreState,
UpdateStateAction, UpdateStateAction,
} from '@redux-devtools/app'; } from '@redux-devtools/app';
import syncStores from '../middlewares/windowSync'; import syncStores from './windowSyncMiddleware';
import instanceSelector from '../middlewares/instanceSelector'; import instanceSelector from './instanceSelectorMiddleware';
import rootReducer from '../reducers/window'; import rootReducer from './windowReducer';
import type { BackgroundState } from '../../background/store/backgroundReducer'; import type { BackgroundState } from '../../background/store/backgroundReducer';
import type { BackgroundAction } from '../../background/store/backgroundStore'; import type { BackgroundAction } from '../../background/store/backgroundStore';
import type { import type {

View File

@ -8,7 +8,7 @@ import {
} from '@redux-devtools/app'; } from '@redux-devtools/app';
import { Dispatch, MiddlewareAPI, Store } from 'redux'; import { Dispatch, MiddlewareAPI, Store } from 'redux';
import type { BackgroundState } from '../../background/store/backgroundReducer'; import type { BackgroundState } from '../../background/store/backgroundReducer';
import { WindowStoreAction } from '../stores/windowStore'; import type { WindowStoreAction } from './windowStore';
import type { BackgroundAction } from '../../background/store/backgroundStore'; import type { BackgroundAction } from '../../background/store/backgroundStore';
const syncStores = const syncStores =

View File

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

View File

@ -12,8 +12,8 @@ const baseConfig = (params) => ({
entry: params.input || { entry: params.input || {
background: [mock, '../src/background/index'], background: [mock, '../src/background/index'],
options: [mock, '../src/options/index'], options: [mock, '../src/options/index'],
window: [`${extpath}window/index`], window: ['../src/window/index'],
remote: [`${extpath}window/remote`], remote: ['../src/remote/index'],
devpanel: [mock, '../src/devpanel/index'], devpanel: [mock, '../src/devpanel/index'],
devtools: ['../src/devtools/index'], devtools: ['../src/devtools/index'],
content: [mock, `${extpath}inject/contentScript`], content: [mock, `${extpath}inject/contentScript`],