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