Skip to content

Commit f63ae14

Browse files
committed
feat(new tool): Geo Distance Computer
Fix part of #1416
1 parent 08d977b commit f63ae14

File tree

11 files changed

+6631
-8124
lines changed

11 files changed

+6631
-8124
lines changed

.eslintrc-auto-import.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@
286286
"watchTriggerable": true,
287287
"watchWithFilter": true,
288288
"whenever": true,
289-
"toValue": true
289+
"toValue": true,
290+
"injectLocal": true,
291+
"provideLocal": true,
292+
"useClipboardItems": true
290293
}
291294
}

auto-imports.d.ts

+9
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ declare global {
3636
const h: typeof import('vue')['h']
3737
const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
3838
const inject: typeof import('vue')['inject']
39+
const injectLocal: typeof import('@vueuse/core')['injectLocal']
3940
const isDefined: typeof import('@vueuse/core')['isDefined']
4041
const isProxy: typeof import('vue')['isProxy']
4142
const isReactive: typeof import('vue')['isReactive']
@@ -65,6 +66,7 @@ declare global {
6566
const onUpdated: typeof import('vue')['onUpdated']
6667
const pausableWatch: typeof import('@vueuse/core')['pausableWatch']
6768
const provide: typeof import('vue')['provide']
69+
const provideLocal: typeof import('@vueuse/core')['provideLocal']
6870
const reactify: typeof import('@vueuse/core')['reactify']
6971
const reactifyObject: typeof import('@vueuse/core')['reactifyObject']
7072
const reactive: typeof import('vue')['reactive']
@@ -128,6 +130,7 @@ declare global {
128130
const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation']
129131
const useCached: typeof import('@vueuse/core')['useCached']
130132
const useClipboard: typeof import('@vueuse/core')['useClipboard']
133+
const useClipboardItems: typeof import('@vueuse/core')['useClipboardItems']
131134
const useCloned: typeof import('@vueuse/core')['useCloned']
132135
const useColorMode: typeof import('@vueuse/core')['useColorMode']
133136
const useConfirmDialog: typeof import('@vueuse/core')['useConfirmDialog']
@@ -326,6 +329,7 @@ declare module 'vue' {
326329
readonly h: UnwrapRef<typeof import('vue')['h']>
327330
readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>
328331
readonly inject: UnwrapRef<typeof import('vue')['inject']>
332+
readonly injectLocal: UnwrapRef<typeof import('@vueuse/core')['injectLocal']>
329333
readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>
330334
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
331335
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
@@ -355,6 +359,7 @@ declare module 'vue' {
355359
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
356360
readonly pausableWatch: UnwrapRef<typeof import('@vueuse/core')['pausableWatch']>
357361
readonly provide: UnwrapRef<typeof import('vue')['provide']>
362+
readonly provideLocal: UnwrapRef<typeof import('@vueuse/core')['provideLocal']>
358363
readonly reactify: UnwrapRef<typeof import('@vueuse/core')['reactify']>
359364
readonly reactifyObject: UnwrapRef<typeof import('@vueuse/core')['reactifyObject']>
360365
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
@@ -418,6 +423,7 @@ declare module 'vue' {
418423
readonly useBrowserLocation: UnwrapRef<typeof import('@vueuse/core')['useBrowserLocation']>
419424
readonly useCached: UnwrapRef<typeof import('@vueuse/core')['useCached']>
420425
readonly useClipboard: UnwrapRef<typeof import('@vueuse/core')['useClipboard']>
426+
readonly useClipboardItems: UnwrapRef<typeof import('@vueuse/core')['useClipboardItems']>
421427
readonly useCloned: UnwrapRef<typeof import('@vueuse/core')['useCloned']>
422428
readonly useColorMode: UnwrapRef<typeof import('@vueuse/core')['useColorMode']>
423429
readonly useConfirmDialog: UnwrapRef<typeof import('@vueuse/core')['useConfirmDialog']>
@@ -610,6 +616,7 @@ declare module '@vue/runtime-core' {
610616
readonly h: UnwrapRef<typeof import('vue')['h']>
611617
readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>
612618
readonly inject: UnwrapRef<typeof import('vue')['inject']>
619+
readonly injectLocal: UnwrapRef<typeof import('@vueuse/core')['injectLocal']>
613620
readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>
614621
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
615622
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
@@ -639,6 +646,7 @@ declare module '@vue/runtime-core' {
639646
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
640647
readonly pausableWatch: UnwrapRef<typeof import('@vueuse/core')['pausableWatch']>
641648
readonly provide: UnwrapRef<typeof import('vue')['provide']>
649+
readonly provideLocal: UnwrapRef<typeof import('@vueuse/core')['provideLocal']>
642650
readonly reactify: UnwrapRef<typeof import('@vueuse/core')['reactify']>
643651
readonly reactifyObject: UnwrapRef<typeof import('@vueuse/core')['reactifyObject']>
644652
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
@@ -702,6 +710,7 @@ declare module '@vue/runtime-core' {
702710
readonly useBrowserLocation: UnwrapRef<typeof import('@vueuse/core')['useBrowserLocation']>
703711
readonly useCached: UnwrapRef<typeof import('@vueuse/core')['useCached']>
704712
readonly useClipboard: UnwrapRef<typeof import('@vueuse/core')['useClipboard']>
713+
readonly useClipboardItems: UnwrapRef<typeof import('@vueuse/core')['useClipboardItems']>
705714
readonly useCloned: UnwrapRef<typeof import('@vueuse/core')['useCloned']>
706715
readonly useColorMode: UnwrapRef<typeof import('@vueuse/core')['useColorMode']>
707716
readonly useConfirmDialog: UnwrapRef<typeof import('@vueuse/core')['useConfirmDialog']>

components.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ declare module '@vue/runtime-core' {
8080
EtaCalculator: typeof import('./src/tools/eta-calculator/eta-calculator.vue')['default']
8181
FavoriteButton: typeof import('./src/components/FavoriteButton.vue')['default']
8282
FormatTransformer: typeof import('./src/components/FormatTransformer.vue')['default']
83+
GeoDistanceCalculator: typeof import('./src/tools/geo-distance-calculator/geo-distance-calculator.vue')['default']
8384
GitMemo: typeof import('./src/tools/git-memo/git-memo.vue')['default']
8485
'GitMemo.content': typeof import('./src/tools/git-memo/git-memo.content.md')['default']
8586
HashText: typeof import('./src/tools/hash-text/hash-text.vue')['default']
@@ -130,19 +131,19 @@ declare module '@vue/runtime-core' {
130131
MetaTagGenerator: typeof import('./src/tools/meta-tag-generator/meta-tag-generator.vue')['default']
131132
MimeTypes: typeof import('./src/tools/mime-types/mime-types.vue')['default']
132133
NavbarButtons: typeof import('./src/components/NavbarButtons.vue')['default']
133-
NCheckbox: typeof import('naive-ui')['NCheckbox']
134134
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
135135
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
136136
NDivider: typeof import('naive-ui')['NDivider']
137137
NEllipsis: typeof import('naive-ui')['NEllipsis']
138+
NFormItem: typeof import('naive-ui')['NFormItem']
138139
NH1: typeof import('naive-ui')['NH1']
139140
NH3: typeof import('naive-ui')['NH3']
140141
NIcon: typeof import('naive-ui')['NIcon']
142+
NInputNumber: typeof import('naive-ui')['NInputNumber']
141143
NLayout: typeof import('naive-ui')['NLayout']
142144
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
143145
NMenu: typeof import('naive-ui')['NMenu']
144146
NSpace: typeof import('naive-ui')['NSpace']
145-
NTable: typeof import('naive-ui')['NTable']
146147
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
147148
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
148149
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@tiptap/starter-kit": "2.1.6",
4747
"@tiptap/vue-3": "2.0.3",
4848
"@types/figlet": "^1.5.8",
49+
"@types/haversine": "^1.1.8",
4950
"@types/markdown-it": "^13.0.7",
5051
"@vicons/material": "^0.12.0",
5152
"@vicons/tabler": "^0.12.0",
@@ -67,6 +68,7 @@
6768
"figlet": "^1.7.0",
6869
"figue": "^1.2.0",
6970
"fuse.js": "^6.6.2",
71+
"haversine": "^1.1.1",
7072
"highlight.js": "^11.7.0",
7173
"iarna-toml-esm": "^3.0.5",
7274
"ibantools": "^4.3.3",

0 commit comments

Comments
 (0)