mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-07 21:54:10 +00:00
19 lines
707 B
JavaScript
19 lines
707 B
JavaScript
|
|
import { createApp } from 'vue';
|
||
|
|
import Antd, { message } from 'ant-design-vue';
|
||
|
|
import 'ant-design-vue/dist/reset.css';
|
||
|
|
|
||
|
|
// The sub page is served by the subscription HTTP server (sub/sub.go)
|
||
|
|
// at /<linksPath>/<subId>?html=1. Go injects window.__SUB_PAGE_DATA__
|
||
|
|
// with the parsed traffic/quota/expiry view-model and the rendered
|
||
|
|
// share links — the SPA reads those at mount.
|
||
|
|
import '@/composables/useTheme.js';
|
||
|
|
import { i18n } from '@/i18n/index.js';
|
||
|
|
import SubPage from '@/pages/sub/SubPage.vue';
|
||
|
|
|
||
|
|
const messageContainer = document.getElementById('message');
|
||
|
|
if (messageContainer) {
|
||
|
|
message.config({ getContainer: () => messageContainer });
|
||
|
|
}
|
||
|
|
|
||
|
|
createApp(SubPage).use(Antd).use(i18n).mount('#app');
|