move store to shared

jh-changes
Shin'ya Ueoka 7 years ago
parent 39fb540037
commit 2faf44af74
  1. 2
      src/background/index.js
  2. 2
      src/console/index.js
  3. 2
      src/content/index.js
  4. 2
      src/settings/index.js
  5. 0
      src/shared/store/index.js
  6. 2
      test/shared/store/index.test.js

@ -2,7 +2,7 @@ import * as settingsActions from 'settings/actions/setting';
import messages from 'shared/messages'; import messages from 'shared/messages';
import BackgroundComponent from 'background/components/background'; import BackgroundComponent from 'background/components/background';
import reducers from 'settings/reducers/setting'; import reducers from 'settings/reducers/setting';
import { createStore } from 'store'; import { createStore } from 'shared/store';
const store = createStore(reducers, (e, sender) => { const store = createStore(reducers, (e, sender) => {
console.error('Vim-Vixen:', e); console.error('Vim-Vixen:', e);

@ -3,7 +3,7 @@ import messages from 'shared/messages';
import CompletionComponent from 'console/components/completion'; import CompletionComponent from 'console/components/completion';
import ConsoleComponent from 'console/components/console'; import ConsoleComponent from 'console/components/console';
import reducers from 'console/reducers'; import reducers from 'console/reducers';
import { createStore } from 'store'; import { createStore } from 'shared/store';
import * as consoleActions from 'console/actions/console'; import * as consoleActions from 'console/actions/console';
const store = createStore(reducers); const store = createStore(reducers);

@ -1,7 +1,7 @@
import './console-frame.scss'; import './console-frame.scss';
import * as consoleFrames from './console-frames'; import * as consoleFrames from './console-frames';
import * as settingActions from 'settings/actions/setting'; import * as settingActions from 'settings/actions/setting';
import { createStore } from 'store'; import { createStore } from 'shared/store';
import ContentInputComponent from 'content/components/content-input'; import ContentInputComponent from 'content/components/content-input';
import KeymapperComponent from 'content/components/keymapper'; import KeymapperComponent from 'content/components/keymapper';
import FollowComponent from 'content/components/follow'; import FollowComponent from 'content/components/follow';

@ -1,7 +1,7 @@
import './site.scss'; import './site.scss';
import SettingComponent from 'settings/components/setting'; import SettingComponent from 'settings/components/setting';
import settingReducer from 'settings/reducers/setting'; import settingReducer from 'settings/reducers/setting';
import { createStore } from 'store'; import { createStore } from 'shared/store';
const store = createStore(settingReducer); const store = createStore(settingReducer);
let settingComponent = null; let settingComponent = null;

@ -1,5 +1,5 @@
import { expect } from "chai"; import { expect } from "chai";
import { createStore } from 'store'; import { createStore } from 'shared/store';
describe("Store class", () => { describe("Store class", () => {
const reducer = (state, action) => { const reducer = (state, action) => {