-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tools): add network related tools (#8)
* feat(tools): add dns related tools * feat(tools): add ip related tools * fix: remove ipv6 to mac address converter link * fix: remove unused link and views * fix: remove unused import * fix: fix ip info link * test: add network related tests * refactor: use common tools list component for network
- Loading branch information
Showing
92 changed files
with
3,599 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template> | ||
<n-space vertical> | ||
<template v-for="tool in tools" :key="tool.title"> | ||
<router-link :to="tool.to" #="{ navigate, href }" custom> | ||
<n-button tag="a" :href="href" @click="navigate" text> | ||
<template #icon> | ||
<n-icon :component="tool.icon" /> | ||
</template> | ||
{{ tool.title }} | ||
</n-button> | ||
</router-link> | ||
</template> | ||
</n-space> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { NButton, NIcon, NSpace } from 'naive-ui' | ||
import type { ToolItem } from './types' | ||
defineProps<{ | ||
tools: ToolItem[] | ||
}>() | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export type { ToolItem } from './types' | ||
export { default as ToolsList } from './ToolsList.vue' |
Oops, something went wrong.