change relative path to absolute
This commit is contained in:
parent
b897f6a97d
commit
38b8834de8
@ -1,7 +1,7 @@
|
||||
import { Store } from 'core/store/createStore';
|
||||
import { $ } from 'core/dom';
|
||||
import { Emitter } from 'core/Emitter';
|
||||
import { ExcelComponent } from 'core/ExcelComponent';
|
||||
import { Store } from 'core/store/createStore';
|
||||
import { StoreSubscriber } from 'core/StoreSubscriber';
|
||||
import { updateOpenDate } from 'redux/actions';
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { $, Dom } from 'core/dom';
|
||||
import { ExcelStateComponent } from 'core/ExcelStateComponent';
|
||||
import { ActiveRoute } from 'core/routes/ActiveRoute';
|
||||
import { deleteTable } from 'redux/actions';
|
||||
import * as actions from 'redux/actions';
|
||||
import { $, Dom } from 'core/dom';
|
||||
import { ActiveRoute } from 'core/routes/ActiveRoute';
|
||||
import { ExcelStateComponent } from 'core/ExcelStateComponent';
|
||||
import { deleteTable } from 'redux/actions';
|
||||
|
||||
export class Header extends ExcelStateComponent {
|
||||
static className = 'excel__header';
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
import * as actions from 'redux/actions';
|
||||
import { $, Dom } from 'core/dom';
|
||||
import { ExcelComponent } from 'core/ExcelComponent';
|
||||
import { parse } from 'core/utils';
|
||||
import { TableSelection } from 'components/table/TableSelection';
|
||||
import { changeCurrentStyles } from 'redux/actions';
|
||||
import * as actions from 'redux/actions';
|
||||
import { initialStyleState } from '../../constants';
|
||||
import { resizeHandler } from './handlers/table.resize';
|
||||
import { selectHandler } from './handlers/table.select.handler';
|
||||
import { createTable } from './table.template';
|
||||
import { TableSelection } from './TableSelection';
|
||||
import { createTable } from 'components/table/table.template';
|
||||
import { initialStyleState } from 'src/constants';
|
||||
import { parse } from 'core/utils';
|
||||
import { resizeHandler } from 'components/table/handlers/table.resize';
|
||||
import { selectHandler } from 'components/table/handlers/table.select.handler';
|
||||
|
||||
export class Table extends ExcelComponent {
|
||||
static className = 'excel__table';
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { $, Dom } from 'core/dom';
|
||||
import { getParamsFromCellId } from './table.functions';
|
||||
import { getParamsFromCellId } from 'components/table/table.functions';
|
||||
|
||||
export class TableSelection {
|
||||
static selectedClassName = 'selected';
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { $ } from 'core/dom';
|
||||
import { getParamsFromCellId, isCell } from '../table.functions';
|
||||
import { TableSelection } from '../TableSelection';
|
||||
import { TableSelection } from 'components/table/TableSelection';
|
||||
import { getParamsFromCellId, isCell } from 'components/table/table.functions';
|
||||
|
||||
export function selectHandler(event: MouseEvent | KeyboardEvent, selection: TableSelection, callback?: () => void) {
|
||||
switch (event.type) {
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { $, Dom } from 'core/dom';
|
||||
import { ExcelStateComponent } from 'core/ExcelStateComponent';
|
||||
import { OptionsType } from 'core/ExcelComponent';
|
||||
import { createToolbar } from './toolbar.template';
|
||||
import { initialStyleState } from '../../constants';
|
||||
import { createToolbar } from 'components/toolbar/toolbar.template';
|
||||
import { initialStyleState } from 'src/constants';
|
||||
|
||||
export class Toolbar extends ExcelStateComponent {
|
||||
static className = 'excel__toolbar';
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { initialStyleState } from '../../constants';
|
||||
import { ToolbarStateType } from './toolbar-types';
|
||||
import { ToolbarStateType } from 'components/toolbar/toolbar-types';
|
||||
import { initialStyleState } from 'src/constants';
|
||||
|
||||
type ButtonConfigType = {
|
||||
icon: string;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { storage } from './core/utils';
|
||||
import { StateType } from './redux/types';
|
||||
import { StateType } from 'redux/types';
|
||||
import { storage } from 'core/utils';
|
||||
|
||||
export const initialStyleState: Partial<CSSStyleDeclaration> = {
|
||||
textAlign: 'left',
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { storage } from 'core/utils';
|
||||
import { storageName } from 'pages/ExcelPage';
|
||||
import { StateType } from 'redux/types';
|
||||
import { getNormalizeInitialState } from '../constants';
|
||||
import { getNormalizeInitialState } from 'src/constants';
|
||||
|
||||
export class LocalStorageClient {
|
||||
private name: string;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { Dom } from './dom';
|
||||
import { capitalize } from './utils';
|
||||
import { Dom } from 'core/dom';
|
||||
import { capitalize } from 'core/utils';
|
||||
|
||||
export class DomListener {
|
||||
$root: Dom;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { ActionType } from 'redux/types';
|
||||
import { Store } from 'core/store/createStore';
|
||||
import { Dom } from 'core/dom';
|
||||
import { DomListener } from 'core/DomListener';
|
||||
import { Emitter } from 'core/Emitter';
|
||||
import { Store } from 'core/store/createStore';
|
||||
|
||||
interface ExcelComponentClass {
|
||||
toHTML: () => string;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { Dom } from './dom';
|
||||
import { ExcelComponent, OptionsType } from './ExcelComponent';
|
||||
import { Dom } from 'core/dom';
|
||||
import { ExcelComponent, OptionsType } from 'core/ExcelComponent';
|
||||
|
||||
type ExcelComponentStateType = {
|
||||
[k: string]: any;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { StateType } from 'redux/types';
|
||||
import { Store } from './store/createStore';
|
||||
import { isEqual } from './utils';
|
||||
import { Store } from 'core/store/createStore';
|
||||
import { isEqual } from 'core/utils';
|
||||
|
||||
export class StoreSubscriber {
|
||||
sub: any;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { initialStyleState } from '../constants';
|
||||
import { initialStyleState } from 'src/constants';
|
||||
|
||||
export type SelectorType = string | HTMLElement;
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { $, Dom, SelectorType } from 'core/dom';
|
||||
import { ActiveRoute } from 'core/routes/ActiveRoute';
|
||||
import { Loader } from 'components/Loader';
|
||||
import { DashboardPage } from 'pages/DashboardPage';
|
||||
import { ExcelPage } from 'pages/ExcelPage';
|
||||
import { Loader } from 'components/Loader';
|
||||
|
||||
type RoutesType = {
|
||||
dashboard: typeof DashboardPage
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { $ } from 'core/dom';
|
||||
import { storage } from 'core/utils';
|
||||
import { AbstractPage } from 'pages/AbstractPage';
|
||||
import { storage } from 'core/utils';
|
||||
|
||||
export class DashboardPage extends AbstractPage {
|
||||
getRoot() {
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
import { AbstractPage } from 'pages/AbstractPage';
|
||||
import { Excel } from 'components/excel/Excel';
|
||||
import { Formula } from 'components/formula/Formula';
|
||||
import { Header } from 'components/header/Header';
|
||||
import { Table } from 'components/table/Table';
|
||||
import { Toolbar } from 'components/toolbar/Toolbar';
|
||||
import { LocalStorageClient } from 'core/Clients';
|
||||
import { StateProcessor } from 'core/StateProcessor';
|
||||
import { Store } from 'core/store/createStore';
|
||||
import { AbstractPage } from 'pages/AbstractPage';
|
||||
import { rootReducer } from 'redux/rootReducer';
|
||||
import { SubscribeType } from 'redux/types';
|
||||
import { Table } from 'components/table/Table';
|
||||
import { Toolbar } from 'components/toolbar/Toolbar';
|
||||
import { rootReducer } from 'redux/rootReducer';
|
||||
|
||||
export function storageName(param: string) {
|
||||
return `excel:${param}`;
|
||||
|
||||
@ -7,7 +7,7 @@ import {
|
||||
CHANGE_TITLE,
|
||||
DELETE_TABLE,
|
||||
UPDATE_DATE,
|
||||
} from './constants';
|
||||
} from 'redux/constants';
|
||||
|
||||
export function tableResize(resizeData: any) {
|
||||
return {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
export const TABLE_RESIZE = 'TABLE_RESIZE';
|
||||
export const CHANGE_TEXT = 'CHANGE_TEXT';
|
||||
export const APPLY_STYLES = 'APPLY_STYLES';
|
||||
export const CHANGE_STYLES = 'CURRENT_STYLES';
|
||||
export const CHANGE_TEXT = 'CHANGE_TEXT';
|
||||
export const CHANGE_TITLE = 'CHANGE_TITLE';
|
||||
export const DELETE_TABLE = 'DELETE_TABLE';
|
||||
export const TABLE_RESIZE = 'TABLE_RESIZE';
|
||||
export const UPDATE_DATE = 'UPDATE_DATE';
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import { ActionType, StateType } from 'redux/types';
|
||||
import { ActiveRoute } from 'core/routes/ActiveRoute';
|
||||
import { storageName } from 'pages/ExcelPage';
|
||||
import {
|
||||
@ -8,8 +9,7 @@ import {
|
||||
CHANGE_TITLE,
|
||||
DELETE_TABLE,
|
||||
UPDATE_DATE,
|
||||
} from './constants';
|
||||
import { ActionType, StateType } from './types';
|
||||
} from 'redux/constants';
|
||||
|
||||
export function rootReducer(state: StateType, action: ActionType) {
|
||||
switch (action.type) {
|
||||
|
||||
@ -20,7 +20,8 @@
|
||||
"components/*": ["src/components/*"],
|
||||
"core/*": ["src/core/*"],
|
||||
"pages/*": ["src/pages/*"],
|
||||
"redux/*": ["src/redux/*"]
|
||||
"redux/*": ["src/redux/*"],
|
||||
"src/*": ["src/*"],
|
||||
},
|
||||
},
|
||||
"exclude": ["node_modules"],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user