Merge pull request 'refactor: module federation' (#6) from refactor/module-federation into main
Reviewed-on: #6
This commit was merged in pull request #6.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
import { ref, computed } from 'vue'
|
import { ref, computed } from 'vue'
|
||||||
import { useCollectionsStore } from '@MailManager/stores/collectionsStore'
|
import { useCollectionsStore } from '@MailManager/stores/collectionsStore'
|
||||||
import { useServicesStore } from '@MailManager/stores/servicesStore'
|
import { useServicesStore } from '@MailManager/stores/servicesStore'
|
||||||
import { useUser } from '@KTXC/composables/useUser'
|
import { useUser } from '@KTXC'
|
||||||
import FolderTreeView from './FolderTreeView.vue'
|
import FolderTreeView from './FolderTreeView.vue'
|
||||||
import FolderPageView from './FolderPageView.vue'
|
import FolderPageView from './FolderPageView.vue'
|
||||||
import CreateFolderDialog from './CreateFolderDialog.vue'
|
import CreateFolderDialog from './CreateFolderDialog.vue'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, ref, watch } from 'vue'
|
import { computed, ref, watch } from 'vue'
|
||||||
import { useUser } from '@KTXC/composables/useUser'
|
import { useUser } from '@KTXC'
|
||||||
import type { EntityInterface } from '@MailManager/types/entity'
|
import type { EntityInterface } from '@MailManager/types/entity'
|
||||||
import type { MessageInterface } from '@MailManager/types/message'
|
import type { MessageInterface } from '@MailManager/types/message'
|
||||||
import { MessageObject } from '@MailManager/models/message'
|
import { MessageObject } from '@MailManager/models/message'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed } from 'vue'
|
import { ref, computed } from 'vue'
|
||||||
import { useUser } from '@KTXC/composables/useUser'
|
import { useUser } from '@KTXC'
|
||||||
|
|
||||||
type FolderViewMode = 'tree' | 'page'
|
type FolderViewMode = 'tree' | 'page'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { useUser } from '@KTXC/composables/useUser'
|
import { useUser } from '@KTXC'
|
||||||
import { SecurityLevel, EmailSanitizer } from '@/utile/emailSanitizer'
|
import { SecurityLevel, EmailSanitizer } from '@/utile/emailSanitizer'
|
||||||
|
|
||||||
const { getSetting, setSetting } = useUser()
|
const { getSetting, setSetting } = useUser()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ModuleIntegrations } from "@KTXC/types/moduleTypes";
|
import type { ModuleIntegrations } from '@KTXC'
|
||||||
|
|
||||||
const integrations: ModuleIntegrations = {
|
const integrations: ModuleIntegrations = {
|
||||||
app_menu: [
|
app_menu: [
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed, onMounted, watch } from 'vue'
|
import { ref, computed, onMounted, watch } from 'vue'
|
||||||
import { useDisplay } from 'vuetify'
|
import { useDisplay } from 'vuetify'
|
||||||
import { useModuleStore } from '@KTXC/stores/moduleStore'
|
import { useModuleStore } from '@KTXC'
|
||||||
import { useCollectionsStore } from '@MailManager/stores/collectionsStore'
|
import { useCollectionsStore } from '@MailManager/stores/collectionsStore'
|
||||||
import { useEntitiesStore } from '@MailManager/stores/entitiesStore'
|
import { useEntitiesStore } from '@MailManager/stores/entitiesStore'
|
||||||
import { useServicesStore } from '@MailManager/stores/servicesStore'
|
import { useServicesStore } from '@MailManager/stores/servicesStore'
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ export default defineConfig({
|
|||||||
alias: {
|
alias: {
|
||||||
'@': path.resolve(__dirname, './src'),
|
'@': path.resolve(__dirname, './src'),
|
||||||
'@KTXC': path.resolve(__dirname, '../../core/src'),
|
'@KTXC': path.resolve(__dirname, '../../core/src'),
|
||||||
|
'@MailManager': path.resolve(__dirname, '../mail_manager/src'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
@@ -46,10 +47,12 @@ export default defineConfig({
|
|||||||
'vue',
|
'vue',
|
||||||
'vue-router',
|
'vue-router',
|
||||||
'pinia',
|
'pinia',
|
||||||
|
'@KTXC',
|
||||||
/^@MailManager\//,
|
/^@MailManager\//,
|
||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
paths: (id) => {
|
paths: (id) => {
|
||||||
|
if (id === '@KTXC') return '/js/ktxc.mjs'
|
||||||
if (id.startsWith('@MailManager/')) {
|
if (id.startsWith('@MailManager/')) {
|
||||||
return '/modules/mail_manager/static/module.mjs'
|
return '/modules/mail_manager/static/module.mjs'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user