Refactor import paths for consistency and clarity across multiple components
- Updated import paths in dees-panel, dees-pdf, dees-progressbar, dees-searchbar, dees-shopping-productcard, dees-simple-appdash, dees-speechbubble, dees-statsgrid, dees-table, dees-toast, dees-updater, and dees-windowlayer to use consistent directory structure. - Created index.ts files for various components to streamline imports and improve modularity. - Ensured all imports point to the correct subdirectory structure, enhancing maintainability and readability of the codebase.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { html, DeesElement, customElement, css, cssManager } from '@design.estate/dees-element';
|
||||
import type { IView } from './dees-simple-appdash.js';
|
||||
import type { IView } from '../dees-simple-appdash/dees-simple-appdash.js';
|
||||
import './dees-form.js';
|
||||
import './dees-input-text.js';
|
||||
import './dees-input-checkbox.js';
|
||||
@@ -7,7 +7,7 @@ import './dees-input-dropdown.js';
|
||||
import './dees-input-radiogroup.js';
|
||||
import './dees-form-submit.js';
|
||||
import './dees-statsgrid.js';
|
||||
import type { IStatsTile } from './dees-statsgrid.js';
|
||||
import type { IStatsTile } from '../dees-statsgrid/dees-statsgrid.js';
|
||||
|
||||
// Create demo view components
|
||||
@customElement('demo-view-dashboard')
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
domtools,
|
||||
} from '@design.estate/dees-element';
|
||||
import './dees-icon.js';
|
||||
import type { DeesTerminal } from './dees-terminal.js';
|
||||
import type { DeesTerminal } from '../dees-terminal/dees-terminal.js';
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
@@ -303,7 +303,7 @@ export class DeesSimpleAppDash extends DeesElement {
|
||||
}
|
||||
|
||||
const maincontainer = this.shadowRoot.querySelector('.maincontainer');
|
||||
const { DeesTerminal } = await import('./dees-terminal.js');
|
||||
const { DeesTerminal } = await import('../dees-terminal/dees-terminal.js');
|
||||
const terminal = new DeesTerminal();
|
||||
terminal.setupCommand = this.terminalSetupCommand;
|
||||
this.currentTerminal = terminal;
|
||||
|
||||
1
ts_web/elements/dees-simple-appdash/index.ts
Normal file
1
ts_web/elements/dees-simple-appdash/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from '../dees-simple-appdash/dees-simple-appdash.js';
|
||||
Reference in New Issue
Block a user