TypeScript bugs fixed
This commit is contained in:
@@ -135,7 +135,7 @@ frontend
|
|||||||
│ │ ├─ IconVector.vue
|
│ │ ├─ IconVector.vue
|
||||||
│ │ ├─ IconWarnTriangle.vue
|
│ │ ├─ IconWarnTriangle.vue
|
||||||
│ │ └─ IconsFilter.vue
|
│ │ └─ IconsFilter.vue
|
||||||
│ ├─ main.js // 程式進入點
|
│ ├─ main.ts // 程式進入點
|
||||||
│ ├─ module // JavaScript 邏輯
|
│ ├─ module // JavaScript 邏輯
|
||||||
│ │ ├─ abbreviateNumber.js
|
│ │ ├─ abbreviateNumber.js
|
||||||
│ │ ├─ alertModal.js // SweetAlert
|
│ │ ├─ alertModal.js // SweetAlert
|
||||||
@@ -155,8 +155,8 @@ frontend
|
|||||||
│ │ ├─ conformance.js
|
│ │ ├─ conformance.js
|
||||||
│ │ ├─ files.js
|
│ │ ├─ files.js
|
||||||
│ │ ├─ loading.js
|
│ │ ├─ loading.js
|
||||||
│ │ ├─ login.js
|
│ │ ├─ login.ts
|
||||||
│ │ ├─ main.js
|
│ │ ├─ main.ts
|
||||||
│ │ └─ performance.js
|
│ │ └─ performance.js
|
||||||
│ └─ views // 路由元件
|
│ └─ views // 路由元件
|
||||||
│ ├─ AuthContainer.vue
|
│ ├─ AuthContainer.vue
|
||||||
|
|||||||
@@ -8,6 +8,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script type="module" src="/src/main.js"></script>
|
<script type="module" src="/src/main.ts"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
import { computed, } from 'vue';
|
import { computed, } from 'vue';
|
||||||
import { mapActions, mapState, storeToRefs } from 'pinia';
|
import { mapActions, mapState, storeToRefs } from 'pinia';
|
||||||
import i18next from '@/i18n/i18n';
|
import i18next from '@/i18n/i18n';
|
||||||
import LoginStore from '@/stores/login.js';
|
import LoginStore from '@/stores/login.ts';
|
||||||
import AcctMgmtStore from '@/stores/acctMgmt';
|
import AcctMgmtStore from '@/stores/acctMgmt';
|
||||||
import AllMapDataStore from '@/stores/allMapData.js';
|
import AllMapDataStore from '@/stores/allMapData.js';
|
||||||
import ConformanceStore from '@/stores/conformance.js';
|
import ConformanceStore from '@/stores/conformance.js';
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { storeToRefs, mapActions, } from 'pinia';
|
import { storeToRefs, mapActions, } from 'pinia';
|
||||||
import i18next from '@/i18n/i18n';
|
import i18next from '@/i18n/i18n';
|
||||||
import loginStore from '@/stores/login.js';
|
import loginStore from '@/stores/login.ts';
|
||||||
import acctMenuStore from "@/stores/acctMgmt.ts";
|
import acctMenuStore from "@/stores/acctMgmt.ts";
|
||||||
import DspLogo from '@/components/icons/DspLogo.vue';
|
import DspLogo from '@/components/icons/DspLogo.vue';
|
||||||
import AllMapDataStore from '@/stores/allMapData.js';
|
import AllMapDataStore from '@/stores/allMapData.js';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import router from "@/router/index.js";
|
import router from "@/router/index.ts";
|
||||||
import loadingStore from '@/stores/loading.js';
|
import loadingStore from '@/stores/loading.js';
|
||||||
import pinia from '@/stores/main.js';
|
import pinia from '@/stores/main.ts';
|
||||||
import {useToast} from 'vue-toast-notification';
|
import {useToast} from 'vue-toast-notification';
|
||||||
import 'vue-toast-notification/dist/theme-sugar.css';
|
import 'vue-toast-notification/dist/theme-sugar.css';
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import moment from 'moment';
|
|||||||
import apiError from '@/module/apiError.js';
|
import apiError from '@/module/apiError.js';
|
||||||
import Swal from 'sweetalert2';
|
import Swal from 'sweetalert2';
|
||||||
import { uploadFailedFirst, uploadFailedSecond, uploadloader, uploadSuccess, deleteSuccess } from '@/module/alertModal.js';
|
import { uploadFailedFirst, uploadFailedSecond, uploadloader, uploadSuccess, deleteSuccess } from '@/module/alertModal.js';
|
||||||
import pinia from '@/stores/main.js';
|
import pinia from '@/stores/main.ts';
|
||||||
import loadingStore from '@/stores/loading.js';
|
import loadingStore from '@/stores/loading.js';
|
||||||
|
|
||||||
const loading = loadingStore(pinia);
|
const loading = loadingStore(pinia);
|
||||||
|
|||||||
10
src/types/vue-router.d.ts
vendored
10
src/types/vue-router.d.ts
vendored
@@ -7,9 +7,9 @@ declare module 'vue/types/vue' {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module '@router' {
|
// declare module '@router' {
|
||||||
import { Router } from 'vue-router';
|
// import { Router } from 'vue-router';
|
||||||
const router: Router;
|
// const router: Router;
|
||||||
export default router;
|
// export default router;
|
||||||
}
|
// }
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ import { storeToRefs, mapState, mapActions, } from 'pinia';
|
|||||||
import LoadingStore from '@/stores/loading.js';
|
import LoadingStore from '@/stores/loading.js';
|
||||||
import { useModalStore } from '@/stores/modal.js';
|
import { useModalStore } from '@/stores/modal.js';
|
||||||
import useAcctMgmtStore from '@/stores/acctMgmt.ts';
|
import useAcctMgmtStore from '@/stores/acctMgmt.ts';
|
||||||
import piniaLoginStore from '@/stores/login.js';
|
import piniaLoginStore from '@/stores/login.ts';
|
||||||
import SearchBar from '../../../components/AccountMenu/SearchBar.vue';
|
import SearchBar from '../../../components/AccountMenu/SearchBar.vue';
|
||||||
import i18next from '@/i18n/i18n.js';
|
import i18next from '@/i18n/i18n.js';
|
||||||
import { useToast } from 'vue-toast-notification';
|
import { useToast } from 'vue-toast-notification';
|
||||||
|
|||||||
@@ -216,7 +216,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
import LoginStore from '@/stores/login.js';
|
import LoginStore from '@/stores/login.ts';
|
||||||
import filesStore from '@/stores/files.js';
|
import filesStore from '@/stores/files.js';
|
||||||
import AllMapDataStore from '@/stores/allMapData.js';
|
import AllMapDataStore from '@/stores/allMapData.js';
|
||||||
import LoadingStore from '@/stores/loading.js';
|
import LoadingStore from '@/stores/loading.js';
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { ref, } from 'vue';
|
import { ref, } from 'vue';
|
||||||
import { storeToRefs, mapActions } from 'pinia';
|
import { storeToRefs, mapActions } from 'pinia';
|
||||||
import loginStore from '@/stores/login.js';
|
import loginStore from '@/stores/login.ts';
|
||||||
import IconMember from '@/components/icons/IconMember.vue';
|
import IconMember from '@/components/icons/IconMember.vue';
|
||||||
import IconLockKey from '@/components/icons/IconLockKey.vue';
|
import IconLockKey from '@/components/icons/IconLockKey.vue';
|
||||||
import IconEyeOpen from '@/components/icons/IconEyeOpen.vue';
|
import IconEyeOpen from '@/components/icons/IconEyeOpen.vue';
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import Navbar from "@/components/Navbar.vue";
|
|||||||
import Loading from '@/components/Loading.vue';
|
import Loading from '@/components/Loading.vue';
|
||||||
import { leaveFilter, leaveConformance } from '@/module/alertModal.js';
|
import { leaveFilter, leaveConformance } from '@/module/alertModal.js';
|
||||||
import PageAdminStore from '@/stores/pageAdmin.js';
|
import PageAdminStore from '@/stores/pageAdmin.js';
|
||||||
import LoginStore from "@/stores/login.js";
|
import LoginStore from "@/stores/login.ts";
|
||||||
import { getCookie } from "../utils/cookieUtil.js";
|
import { getCookie } from "../utils/cookieUtil.js";
|
||||||
import ModalContainer from './AccountManagement/ModalContainer.vue';
|
import ModalContainer from './AccountManagement/ModalContainer.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
import loginStore from '@/stores/login.js';
|
import loginStore from '@/stores/login.ts';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
setup() {
|
setup() {
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"declaration": true,
|
|
||||||
"emitDeclarationOnly": true,
|
|
||||||
"outDir": "./types",
|
|
||||||
"allowJs": true,
|
|
||||||
"checkJs": true,
|
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user