mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 14:01:42 +03:00
1 parent
8c97e191f4
commit
c7d77e1b6b
8 files changed
+23
-22
No files matched your search
@@ -90,9 +90,9 @@ const umask = computed(() => computeUmaskRepresentation({ permissions: permissio
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div mb-2 flex justify-center>
|
<div mb-2 flex justify-center>
|
||||||
<router-link target="_blank" to="/chmod-memo">
|
<c-link target="_blank" to="/chmod-memo">
|
||||||
See <code>chmod</code> command cheatsheet.
|
See <code>chmod</code> command cheatsheet.
|
||||||
</router-link>
|
</c-link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<n-space justify="center">
|
<n-space justify="center">
|
||||||
|
|||||||
@@ -43,9 +43,9 @@ const cssOutput = computed(
|
|||||||
mb-5
|
mb-5
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<router-link target="_blank" to="/css-selectors-memo" mb-1 mt-1>
|
<c-link target="_blank" to="/css-selectors-memo" mb-1 mt-1>
|
||||||
{{ t('tools.css-xpath-converter.texts.tag-see-css-selectors-cheatsheet') }}
|
{{ t('tools.css-xpath-converter.texts.tag-see-css-selectors-cheatsheet') }}
|
||||||
</router-link>
|
</c-link>
|
||||||
|
|
||||||
<n-divider />
|
<n-divider />
|
||||||
|
|
||||||
@@ -66,9 +66,9 @@ const cssOutput = computed(
|
|||||||
mb-5
|
mb-5
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<router-link target="_blank" to="/xpath-memo" mb-1 mt-1>
|
<c-link target="_blank" to="/xpath-memo" mb-1 mt-1>
|
||||||
{{ t('tools.css-xpath-converter.texts.tag-see-xpath-cheatsheet') }}
|
{{ t('tools.css-xpath-converter.texts.tag-see-xpath-cheatsheet') }}
|
||||||
</router-link>
|
</c-link>
|
||||||
|
|
||||||
<n-divider />
|
<n-divider />
|
||||||
|
|
||||||
|
|||||||
@@ -72,12 +72,12 @@ const jsonValidation = useValidation({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div mb-2 flex justify-center>
|
<div mb-2 flex justify-center>
|
||||||
<router-link v-if="jqtype === 'jq'" target="_blank" to="/jq-memo" mb-1 mt-1>
|
<c-link v-if="jqtype === 'jq'" target="_blank" to="/jq-memo" mb-1 mt-1>
|
||||||
{{ t('tools.jq-tester.texts.tag-see') }}<code>{{ t('tools.jq-tester.texts.tag-jq') }}</code>{{ t('tools.jq-tester.texts.tag-cheatsheet') }}
|
{{ t('tools.jq-tester.texts.tag-see') }}<code>{{ t('tools.jq-tester.texts.tag-jq') }}</code>{{ t('tools.jq-tester.texts.tag-cheatsheet') }}
|
||||||
</router-link>
|
</c-link>
|
||||||
<router-link v-if="jqtype === 'jsonpath'" target="_blank" to="/jsonpath-memo" mb-1 mt-1>
|
<c-link v-if="jqtype === 'jsonpath'" target="_blank" to="/jsonpath-memo" mb-1 mt-1>
|
||||||
{{ t('tools.jq-tester.texts.tag-see-jsonpath-cheatsheet') }}
|
{{ t('tools.jq-tester.texts.tag-see-jsonpath-cheatsheet') }}
|
||||||
</router-link>
|
</c-link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<c-input-text
|
<c-input-text
|
||||||
|
|||||||
@@ -87,9 +87,9 @@ const result = computed(() => {
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="(tool, ix) in unitsConversionTools" :key="ix">
|
<tr v-for="(tool, ix) in unitsConversionTools" :key="ix">
|
||||||
<td>
|
<td>
|
||||||
<router-link :to="tool.path" class="decoration-none" target="_blank">
|
<c-link :to="tool.path" class="decoration-none" target="_blank">
|
||||||
{{ tool.name }}
|
{{ tool.name }}
|
||||||
</router-link>
|
</c-link>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ tool.description }}
|
{{ tool.description }}
|
||||||
|
|||||||
@@ -109,9 +109,9 @@ tryOnBeforeUnmount(() => {
|
|||||||
rows="3"
|
rows="3"
|
||||||
:validation="regexValidation"
|
:validation="regexValidation"
|
||||||
/>
|
/>
|
||||||
<router-link target="_blank" to="/regex-memo" mb-1 mt-1>
|
<c-link target="_blank" to="/regex-memo" mb-1 mt-1>
|
||||||
{{ t('tools.regex-tester.link') }}
|
{{ t('tools.regex-tester.link') }}
|
||||||
</router-link>
|
</c-link>
|
||||||
<n-space>
|
<n-space>
|
||||||
<n-checkbox v-model:checked="global">
|
<n-checkbox v-model:checked="global">
|
||||||
<span :title="t('tools.regex-tester.global')">{{ t('tools.regex-tester.texts.tag-global-search') }}<code>{{ t('tools.regex-tester.texts.tag-g') }}</code>{{ t('tools.regex-tester.texts.tag-') }}</span>
|
<span :title="t('tools.regex-tester.global')">{{ t('tools.regex-tester.texts.tag-global-search') }}<code>{{ t('tools.regex-tester.texts.tag-g') }}</code>{{ t('tools.regex-tester.texts.tag-') }}</span>
|
||||||
|
|||||||
@@ -69,9 +69,9 @@ const sedCommand = computed(() => {
|
|||||||
<div>
|
<div>
|
||||||
<n-space justify="center" mb-1 mt-1>
|
<n-space justify="center" mb-1 mt-1>
|
||||||
<n-p>
|
<n-p>
|
||||||
{{ t('tools.sed-command-generator.texts.tag-for-more-information-about') }}<code>{{ t('tools.sed-command-generator.texts.tag-sed') }}</code>{{ t('tools.sed-command-generator.texts.tag-command-see') }}<router-link target="_blank" to="/sed-memo">
|
{{ t('tools.sed-command-generator.texts.tag-for-more-information-about') }}<code>{{ t('tools.sed-command-generator.texts.tag-sed') }}</code>{{ t('tools.sed-command-generator.texts.tag-command-see') }}<c-link target="_blank" to="/sed-memo">
|
||||||
{{ t('tools.sed-command-generator.texts.tag-sed-command-cheatsheet') }}
|
{{ t('tools.sed-command-generator.texts.tag-sed-command-cheatsheet') }}
|
||||||
</router-link>
|
</c-link>
|
||||||
</n-p>
|
</n-p>
|
||||||
</n-space>
|
</n-space>
|
||||||
|
|
||||||
@@ -97,9 +97,9 @@ const sedCommand = computed(() => {
|
|||||||
|
|
||||||
<n-card v-if="form.commandType !== 'number'" :title="t('tools.sed-command-generator.texts.title-search-pattern')">
|
<n-card v-if="form.commandType !== 'number'" :title="t('tools.sed-command-generator.texts.title-search-pattern')">
|
||||||
<n-input v-model:value="form.pattern" :placeholder="t('tools.sed-command-generator.texts.placeholder-e-g-foo')" />
|
<n-input v-model:value="form.pattern" :placeholder="t('tools.sed-command-generator.texts.placeholder-e-g-foo')" />
|
||||||
<router-link target="_blank" to="/regex-memo">
|
<c-link target="_blank" to="/regex-memo">
|
||||||
{{ t('tools.sed-command-generator.texts.tag-see-regex-cheatsheet') }}
|
{{ t('tools.sed-command-generator.texts.tag-see-regex-cheatsheet') }}
|
||||||
</router-link>
|
</c-link>
|
||||||
</n-card>
|
</n-card>
|
||||||
|
|
||||||
<n-form-item v-if="form.commandType === 'substitute'" :label="t('tools.sed-command-generator.texts.label-replacement')" mt-3>
|
<n-form-item v-if="form.commandType === 'substitute'" :label="t('tools.sed-command-generator.texts.label-replacement')" mt-3>
|
||||||
|
|||||||
@@ -418,9 +418,9 @@ await loadCapacity();
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<n-space justify="center">
|
<n-space justify="center">
|
||||||
<router-link target="_blank" to="/zpool-memo" mb-1 mt-2>
|
<c-link target="_blank" to="/zpool-memo" mb-1 mt-2>
|
||||||
{{ t('tools.zpool-calculator.texts.tag-see-zpool-openzfs-cheatsheet') }}
|
{{ t('tools.zpool-calculator.texts.tag-see-zpool-openzfs-cheatsheet') }}
|
||||||
</router-link>
|
</c-link>
|
||||||
</n-space>
|
</n-space>
|
||||||
|
|
||||||
<p class="subsect_label">
|
<p class="subsect_label">
|
||||||
|
|||||||
@@ -5,9 +5,10 @@ import { useTheme } from './c-link.theme';
|
|||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
href?: string
|
href?: string
|
||||||
to?: RouteLocationRaw
|
to?: RouteLocationRaw
|
||||||
|
target?: string
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const { href, to } = toRefs(props);
|
const { href, to, target } = toRefs(props);
|
||||||
|
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const tag = computed(() => {
|
const tag = computed(() => {
|
||||||
@@ -22,7 +23,7 @@ const tag = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="tag" :href="href ?? to" class="c-link" :to="to">
|
<component :is="tag" :href="href ?? to" class="c-link" :to="to" :target="target">
|
||||||
<slot />
|
<slot />
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in new issue
Block a user