fix imports in src
This commit is contained in:
parent
5ef9a2a60c
commit
32168a94e0
25 changed files with 66 additions and 66 deletions
|
@ -1,5 +1,5 @@
|
||||||
import * as tabs from '../background/tabs';
|
import * as tabs from 'background/tabs';
|
||||||
import * as histories from '../background/histories';
|
import * as histories from 'background/histories';
|
||||||
import * as consoleActions from './console';
|
import * as consoleActions from './console';
|
||||||
|
|
||||||
const normalizeUrl = (string, searchConfig) => {
|
const normalizeUrl = (string, searchConfig) => {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import actions from '../actions';
|
import actions from 'actions';
|
||||||
|
|
||||||
const setItems = (groups) => {
|
const setItems = (groups) => {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import actions from '../actions';
|
import actions from 'actions';
|
||||||
|
|
||||||
const showCommand = (text) => {
|
const showCommand = (text) => {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import actions from '../actions';
|
import actions from 'actions';
|
||||||
|
|
||||||
const enable = (newTab) => {
|
const enable = (newTab) => {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import actions from '../actions';
|
import actions from 'actions';
|
||||||
|
|
||||||
const asKeymapChars = (key, ctrl) => {
|
const asKeymapChars = (key, ctrl) => {
|
||||||
if (ctrl) {
|
if (ctrl) {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import operations from '../shared/operations';
|
import operations from 'shared/operations';
|
||||||
import messages from '../content/messages';
|
import messages from 'content/messages';
|
||||||
import * as consoleActions from './console';
|
import * as consoleActions from './console';
|
||||||
import * as tabs from '../background/tabs';
|
import * as tabs from 'background/tabs';
|
||||||
import * as zooms from '../background/zooms';
|
import * as zooms from 'background/zooms';
|
||||||
|
|
||||||
const exec = (operation, tab) => {
|
const exec = (operation, tab) => {
|
||||||
switch (operation.type) {
|
switch (operation.type) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import actions from '../actions';
|
import actions from 'actions';
|
||||||
import messages from '../content/messages';
|
import messages from 'content/messages';
|
||||||
import DefaultSettings from '../shared/default-settings';
|
import DefaultSettings from 'shared/default-settings';
|
||||||
|
|
||||||
const load = () => {
|
const load = () => {
|
||||||
return browser.storage.local.get('settings').then((value) => {
|
return browser.storage.local.get('settings').then((value) => {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import * as consoleActions from '../actions/console';
|
import * as consoleActions from 'actions/console';
|
||||||
import * as settingsActions from '../actions/setting';
|
import * as settingsActions from 'actions/setting';
|
||||||
import BackgroundComponent from '../components/background';
|
import BackgroundComponent from 'components/background';
|
||||||
import BackgroundInputComponent from '../components/background-input';
|
import BackgroundInputComponent from 'components/background-input';
|
||||||
import reducers from '../reducers';
|
import reducers from 'reducers';
|
||||||
import messages from '../content/messages';
|
import messages from 'content/messages';
|
||||||
import { createStore } from '../store';
|
import { createStore } from 'store';
|
||||||
|
|
||||||
const store = createStore(reducers, (e, sender) => {
|
const store = createStore(reducers, (e, sender) => {
|
||||||
console.error('Vim-Vixen:', e);
|
console.error('Vim-Vixen:', e);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as inputActions from '../actions/input';
|
import * as inputActions from 'actions/input';
|
||||||
import * as operationActions from '../actions/operation';
|
import * as operationActions from 'actions/operation';
|
||||||
|
|
||||||
export default class BackgroundInputComponent {
|
export default class BackgroundInputComponent {
|
||||||
constructor(store) {
|
constructor(store) {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import messages from '../content/messages';
|
import messages from 'content/messages';
|
||||||
import * as commandActions from '../actions/command';
|
import * as commandActions from 'actions/command';
|
||||||
import * as consoleActions from '../actions/console';
|
import * as consoleActions from 'actions/console';
|
||||||
import * as inputActions from '../actions/input';
|
import * as inputActions from 'actions/input';
|
||||||
import * as settingsActions from '../actions/setting';
|
import * as settingsActions from 'actions/setting';
|
||||||
import * as tabActions from '../actions/tab';
|
import * as tabActions from 'actions/tab';
|
||||||
|
|
||||||
export default class BackgroundComponent {
|
export default class BackgroundComponent {
|
||||||
constructor(store) {
|
constructor(store) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import messages from '../content/messages';
|
import messages from 'content/messages';
|
||||||
import * as completionActions from '../actions/completion';
|
import * as completionActions from 'actions/completion';
|
||||||
|
|
||||||
export default class ConsoleComponent {
|
export default class ConsoleComponent {
|
||||||
constructor(wrapper, store) {
|
constructor(wrapper, store) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import messages from '../content/messages';
|
import messages from 'content/messages';
|
||||||
|
|
||||||
export default class ContentInputComponent {
|
export default class ContentInputComponent {
|
||||||
constructor(target) {
|
constructor(target) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as followActions from '../actions/follow';
|
import * as followActions from 'actions/follow';
|
||||||
import messages from '../content/messages';
|
import messages from 'content/messages';
|
||||||
import Hint from '../content/hint';
|
import Hint from 'content/hint';
|
||||||
import HintKeyProducer from '../content/hint-key-producer';
|
import HintKeyProducer from 'content/hint-key-producer';
|
||||||
|
|
||||||
const DEFAULT_HINT_CHARSET = 'abcdefghijklmnopqrstuvwxyz';
|
const DEFAULT_HINT_CHARSET = 'abcdefghijklmnopqrstuvwxyz';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as settingActions from '../actions/setting';
|
import * as settingActions from 'actions/setting';
|
||||||
import { validate } from '../shared/validators/setting';
|
import { validate } from 'shared/validators/setting';
|
||||||
|
|
||||||
export default class SettingComponent {
|
export default class SettingComponent {
|
||||||
constructor(wrapper, store) {
|
constructor(wrapper, store) {
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import './console-frame.scss';
|
import './console-frame.scss';
|
||||||
import * as consoleFrames from './console-frames';
|
import * as consoleFrames from './console-frames';
|
||||||
import * as scrolls from '../content/scrolls';
|
import * as scrolls from 'content/scrolls';
|
||||||
import * as navigates from '../content/navigates';
|
import * as navigates from 'content/navigates';
|
||||||
import * as followActions from '../actions/follow';
|
import * as followActions from 'actions/follow';
|
||||||
import { createStore } from '../store';
|
import { createStore } from 'store';
|
||||||
import ContentInputComponent from '../components/content-input';
|
import ContentInputComponent from 'components/content-input';
|
||||||
import FollowComponent from '../components/follow';
|
import FollowComponent from 'components/follow';
|
||||||
import reducers from '../reducers';
|
import reducers from 'reducers';
|
||||||
import operations from '../shared/operations';
|
import operations from 'shared/operations';
|
||||||
import messages from './messages';
|
import messages from './messages';
|
||||||
|
|
||||||
const store = createStore(reducers);
|
const store = createStore(reducers);
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import './console.scss';
|
import './console.scss';
|
||||||
import messages from '../content/messages';
|
import messages from 'content/messages';
|
||||||
import CompletionComponent from '../components/completion';
|
import CompletionComponent from 'components/completion';
|
||||||
import ConsoleComponent from '../components/console';
|
import ConsoleComponent from 'components/console';
|
||||||
import reducers from '../reducers';
|
import reducers from 'reducers';
|
||||||
import { createStore } from '../store';
|
import { createStore } from 'store';
|
||||||
import * as completionActions from '../actions/completion';
|
import * as completionActions from 'actions/completion';
|
||||||
|
|
||||||
const store = createStore(reducers);
|
const store = createStore(reducers);
|
||||||
let completionComponent = null;
|
let completionComponent = null;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import './settings.scss';
|
import './settings.scss';
|
||||||
import SettingComponent from '../components/setting';
|
import SettingComponent from 'components/setting';
|
||||||
import settingReducer from '../reducers/setting';
|
import settingReducer from 'reducers/setting';
|
||||||
import { createStore } from '../store';
|
import { createStore } from 'store';
|
||||||
|
|
||||||
const store = createStore(settingReducer);
|
const store = createStore(settingReducer);
|
||||||
let settingComponent = null;
|
let settingComponent = null;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import actions from '../actions';
|
import actions from 'actions';
|
||||||
|
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
groupSelection: -1,
|
groupSelection: -1,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import actions from '../actions';
|
import actions from 'actions';
|
||||||
|
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
errorShown: false,
|
errorShown: false,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import actions from '../actions';
|
import actions from 'actions';
|
||||||
|
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import inputReducer from '../reducers/input';
|
import inputReducer from 'reducers/input';
|
||||||
import consoleReducer from '../reducers/console';
|
import consoleReducer from 'reducers/console';
|
||||||
import settingReducer from '../reducers/setting';
|
import settingReducer from 'reducers/setting';
|
||||||
import followReducer from '../reducers/follow';
|
import followReducer from 'reducers/follow';
|
||||||
import completionReducer from '../reducers/completion';
|
import completionReducer from 'reducers/completion';
|
||||||
|
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
input: inputReducer(undefined, {}),
|
input: inputReducer(undefined, {}),
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import actions from '../actions';
|
import actions from 'actions';
|
||||||
|
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
keys: '',
|
keys: '',
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import actions from '../actions';
|
import actions from 'actions';
|
||||||
|
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
settings: {}
|
settings: {}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import operations from '../operations';
|
import operations from 'shared/operations';
|
||||||
|
|
||||||
const VALID_TOP_KEYS = ['keymaps', 'search'];
|
const VALID_TOP_KEYS = ['keymaps', 'search'];
|
||||||
const VALID_OPERATION_VALUES = Object.keys(operations).map((key) => {
|
const VALID_OPERATION_VALUES = Object.keys(operations).map((key) => {
|
||||||
|
|
|
@ -40,7 +40,7 @@ module.exports = {
|
||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: [ '.js' ],
|
extensions: [ '.js' ],
|
||||||
modules: [path.join(__dirname), 'node_modules']
|
modules: [path.join(__dirname, 'src'), 'node_modules']
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
Reference in a new issue