migrate to typescript

This commit is contained in:
MaysWind
2024-12-29 14:24:37 +08:00
parent b638a73e4d
commit 2560a70e5e
171 changed files with 3402 additions and 2557 deletions
+4 -4
View File
@@ -62,9 +62,9 @@ import { mapStores } from 'pinia';
import { useUserStore } from '@/stores/user.js';
import { useExchangeRatesStore } from '@/stores/exchangeRates.js';
import { getMapProvider } from '@/lib/server_settings.js';
import { getMapProvider } from '@/lib/server_settings.ts';
import { getMapWebsite } from '@/lib/map/index.js';
import licenses from '@/lib/licenses.js';
import { getLicense, getThirdPartyLicenses } from '@/lib/licenses.ts';
export default {
computed: {
@@ -90,10 +90,10 @@ export default {
return getMapWebsite();
},
licenseLines() {
return licenses.getLicense().replaceAll(/\r/g, '').split('\n');
return getLicense().replaceAll(/\r/g, '').split('\n');
},
thirdPartyLicenses() {
return licenses.getThirdPartyLicenses();
return getThirdPartyLicenses();
}
}
}