Skip to content

Commit 3a45f3c

Browse files
committed
refactor(template-editor): migrate project to TypeScript
1 parent 29090be commit 3a45f3c

23 files changed

Lines changed: 265 additions & 108 deletions

projects/shared/constants/template-categories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TemplateCategory } from '../types/template';
1+
import { TemplateCategory } from '../types/template.interface';
22

33
export const templateCategories: TemplateCategory[] = [
44
{
File renamed without changes.

projects/shared/types/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './vue-entry.interface';
2-
export * from './template';
1+
export * from './component-factory.interface';
2+
export * from './template.interface';
File renamed without changes.
File renamed without changes.

projects/shared/utils/virtual-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NodeObject } from '../types/node-object';
1+
import { NodeObject } from '../types/node-object.interface';
22
import { VirtualHTMLParser } from './virtual-html-parser';
33

44
export class VirtualNode {

projects/shell/src/app/app.routes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ export const routes: Routes = [
1515
// loadRemoteModule({
1616
// // remoteEntry: 'http://localhost:4202/assets/remoteEntry.js',
1717
// remoteName: 'templateEditor',
18-
// exposedModule: './VueEntry',
18+
// exposedModule: './component-factory',
1919
// }).then((m: VueModule) =>
2020
// createVueWrapperComponent(m.createApp)
2121
// ),
22-
loadRemoteModule('templateEditor', './VueEntry').then((m: VueModule) =>
22+
loadRemoteModule('templateEditor', './component-factory').then((m: VueModule) =>
2323
createVueWrapperComponent(m.createApp)
2424
),
2525
},

projects/shell/src/app/services/vue-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class VueLoader {
99
try {
1010
this.module = await loadRemoteModule({
1111
remoteName: 'templateEditor',
12-
exposedModule: './VueEntry',
12+
exposedModule: './component-factory',
1313
});
1414
} catch (error) {
1515
console.error('[VueLoader] Failed to load Vue remote module:', error);

projects/template-editor/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
</head>
99
<body>
1010
<div id="app"></div>
11-
<script type="module" src="/src/main.js"></script>
11+
<script type="module" src="/src/main.ts"></script>
1212
</body>
1313
</html>

projects/template-editor/jsconfig.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)