Skip to content

Commit

Permalink
Core: fix imports for templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanblinov2k17 committed Oct 4, 2024
1 parent d8aa70f commit 4c3da97
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import eventsEngine from '../../events/core/events_engine';
import { removeEvent } from '../../events/remove';
import $ from '../renderer';
import { isPrimitive } from '../utils/type';
import { TemplateBase } from './template_base';
import $ from '@js/core/renderer';
import { TemplateBase } from '@js/core/templates/template_base';
import { isPrimitive } from '@js/core/utils/type';
import eventsEngine from '@js/events/core/events_engine';
import { removeEvent } from '@js/events/remove';

const watchChanges = (function () {
const globalWatch = (data, watchMethod, callback) => watchMethod(() => data, callback);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TemplateBase } from './template_base';
import { TemplateBase } from '@js/core/templates/template_base';

export class ChildDefaultTemplate extends TemplateBase {
constructor(name) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import $ from '../renderer';
import { TemplateBase } from './template_base';
import $ from '@js/core/renderer';
import { TemplateBase } from '@js/core/templates/template_base';

export class EmptyTemplate extends TemplateBase {
_renderCore() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { normalizeTemplateElement } from '../utils/dom';
import { TemplateBase } from './template_base';
import { TemplateBase } from '@js/core/templates/template_base';
import { normalizeTemplateElement } from '@js/core/utils/dom';

export class FunctionTemplate extends TemplateBase {
constructor(render) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import $ from '../renderer';
import { normalizeTemplateElement } from '../utils/dom';
import { TemplateBase } from './template_base';
import { getCurrentTemplateEngine, registerTemplateEngine, setTemplateEngine } from './template_engine_registry';
import $ from '@js/core/renderer';
import { TemplateBase } from '@js/core/templates/template_base';
import { getCurrentTemplateEngine, registerTemplateEngine, setTemplateEngine } from '@js/core/templates/template_engine_registry';
import { normalizeTemplateElement } from '@js/core/utils/dom';

registerTemplateEngine('default', {
compile: (element) => normalizeTemplateElement(element),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { triggerShownEvent } from '../../events/visibility_change';
import domAdapter from '../dom_adapter';
import errors from '../errors';
import $ from '../renderer';
import Callbacks from '../utils/callbacks';
import { contains } from '../utils/dom';
import domAdapter from '@js/core/dom_adapter';
import errors from '@js/core/errors';
import $ from '@js/core/renderer';
import Callbacks from '@js/core/utils/callbacks';
import { contains } from '@js/core/utils/dom';
import { triggerShownEvent } from '@js/events/visibility_change';

export const renderedCallbacks = Callbacks({ syncStrategy: true });

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import errors from '../errors';
import { isString } from '../utils/type';
import errors from '@js/core/errors';
import { isString } from '@js/core/utils/type';

const templateEngines = {};
let currentTemplateEngine;
Expand Down

0 comments on commit 4c3da97

Please sign in to comment.