mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
feat(UI): better UI (remove 600px for 1200px)
This commit is contained in:
1 parent
155e6194ab
commit
a92d03ba5d
34 files changed
+54
-33
No files matched your search
Vendored
+20
@@ -156,6 +156,7 @@ declare module '@vue/runtime-core' {
|
||||
IcalParser: typeof import('./src/tools/ical-parser/ical-parser.vue')['default']
|
||||
IcoConverter: typeof import('./src/tools/ico-converter/ico-converter.vue')['default']
|
||||
'IconMdi:brushVariant': typeof import('~icons/mdi/brush-variant')['default']
|
||||
'IconMdi:contentCopy': typeof import('~icons/mdi/content-copy')['default']
|
||||
'IconMdi:kettleSteamOutline': typeof import('~icons/mdi/kettle-steam-outline')['default']
|
||||
IconMdiChevronDown: typeof import('~icons/mdi/chevron-down')['default']
|
||||
IconMdiChevronRight: typeof import('~icons/mdi/chevron-right')['default']
|
||||
@@ -250,6 +251,8 @@ declare module '@vue/runtime-core' {
|
||||
MorseConverter: typeof import('./src/tools/morse-converter/morse-converter.vue')['default']
|
||||
MultiLinkDownloader: typeof import('./src/tools/multi-link-downloader/multi-link-downloader.vue')['default']
|
||||
MyIp: typeof import('./src/tools/my-ip/my-ip.vue')['default']
|
||||
NA: typeof import('naive-ui')['NA']
|
||||
NAlert: typeof import('naive-ui')['NAlert']
|
||||
NanoidGenerator: typeof import('./src/tools/nanoid-generator/nanoid-generator.vue')['default']
|
||||
NanoMemo: typeof import('./src/tools/nano-memo/nano-memo.vue')['default']
|
||||
'NanoMemo.content': typeof import('./src/tools/nano-memo/nano-memo.content.md')['default']
|
||||
@@ -258,18 +261,35 @@ declare module '@vue/runtime-core' {
|
||||
NCode: typeof import('naive-ui')['NCode']
|
||||
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
|
||||
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
||||
NDatePicker: typeof import('naive-ui')['NDatePicker']
|
||||
NDivider: typeof import('naive-ui')['NDivider']
|
||||
NEllipsis: typeof import('naive-ui')['NEllipsis']
|
||||
NForm: typeof import('naive-ui')['NForm']
|
||||
NFormItem: typeof import('naive-ui')['NFormItem']
|
||||
NGi: typeof import('naive-ui')['NGi']
|
||||
NginxFormatter: typeof import('./src/tools/nginx-formatter/nginx-formatter.vue')['default']
|
||||
NGrid: typeof import('naive-ui')['NGrid']
|
||||
NH1: typeof import('naive-ui')['NH1']
|
||||
NH3: typeof import('naive-ui')['NH3']
|
||||
NIcon: typeof import('naive-ui')['NIcon']
|
||||
NInput: typeof import('naive-ui')['NInput']
|
||||
NInputGroup: typeof import('naive-ui')['NInputGroup']
|
||||
NInputGroupLabel: typeof import('naive-ui')['NInputGroupLabel']
|
||||
NInputNumber: typeof import('naive-ui')['NInputNumber']
|
||||
NLayout: typeof import('naive-ui')['NLayout']
|
||||
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
|
||||
NMenu: typeof import('naive-ui')['NMenu']
|
||||
NP: typeof import('naive-ui')['NP']
|
||||
NRadio: typeof import('naive-ui')['NRadio']
|
||||
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
|
||||
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||
NSelect: typeof import('naive-ui')['NSelect']
|
||||
NSlider: typeof import('naive-ui')['NSlider']
|
||||
NSpace: typeof import('naive-ui')['NSpace']
|
||||
NSpin: typeof import('naive-ui')['NSpin']
|
||||
NSwitch: typeof import('naive-ui')['NSwitch']
|
||||
NTable: typeof import('naive-ui')['NTable']
|
||||
NText: typeof import('naive-ui')['NText']
|
||||
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
|
||||
OcrImage: typeof import('./src/tools/ocr-image/ocr-image.vue')['default']
|
||||
Option43Generator: typeof import('./src/tools/option43-generator/option43-generator.vue')['default']
|
||||
|
||||
@@ -92,13 +92,13 @@ const themeVars = useThemeVars();
|
||||
overflow-x: auto;
|
||||
|
||||
::v-deep(& > *) {
|
||||
flex: 0 1 600px;
|
||||
flex: 0 1 1200px;
|
||||
min-width:0;
|
||||
}
|
||||
}
|
||||
|
||||
.tool-layout {
|
||||
max-width: 600px;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
box-sizing: border-box;
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ const promptValidation = useValidation({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-card title="Prompt and options" mb-2>
|
||||
<c-input-text
|
||||
v-model:value="prompt"
|
||||
|
||||
@@ -53,7 +53,7 @@ const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card style="max-width: 600px;">
|
||||
<c-card>
|
||||
<c-input-text
|
||||
v-model:value="input"
|
||||
label="Your text:"
|
||||
|
||||
@@ -14,7 +14,7 @@ const parsedBounce = computed(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-card title="Input" mb-2>
|
||||
<c-input-text
|
||||
v-model:value="emailContent"
|
||||
|
||||
@@ -84,7 +84,7 @@ watch(
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px">
|
||||
<div>
|
||||
<c-card title="Pick a color" mb-2>
|
||||
<n-color-picker :value="wheelColor" :show-alpha="false" />
|
||||
<div
|
||||
|
||||
@@ -39,7 +39,7 @@ const [certs, refreshCerts] = computedRefreshableAsync(
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div max-w-600px>
|
||||
<div>
|
||||
<n-space mb-1>
|
||||
<c-select
|
||||
v-model:value="format"
|
||||
|
||||
@@ -46,7 +46,7 @@ function onUpload(file: File) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-card title="Input" mb-2>
|
||||
<n-radio-group v-model:value="inputType" name="radiogroup" mb-2 flex justify-center>
|
||||
<n-space>
|
||||
|
||||
@@ -17,7 +17,7 @@ const compressedZlibOutput = computed(() => withDefaultOnError(() => Base64.from
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-card title="Compress string" mb-5>
|
||||
<c-input-text
|
||||
v-model:value="rawInput"
|
||||
|
||||
@@ -60,6 +60,7 @@ async function onFileUploaded(uploadedFile: File) {
|
||||
v-model:value="format"
|
||||
:options="formats"
|
||||
label="Output format"
|
||||
max-w-600px
|
||||
/>
|
||||
|
||||
<div style="flex: 0 0 100%" mt-3>
|
||||
|
||||
@@ -132,7 +132,7 @@ async function onFileUploaded(uploadedFile: File) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<div max-w-800px>
|
||||
<h4>First, select output options:</h4>
|
||||
|
||||
<c-select
|
||||
|
||||
@@ -56,7 +56,7 @@ async function onFileUploaded(uploadedFile: File) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card style="max-width: 600px;">
|
||||
<c-card>
|
||||
<div style="flex: 0 0 100%">
|
||||
<div mx-auto max-w-600px>
|
||||
<c-file-upload
|
||||
|
||||
@@ -17,7 +17,7 @@ const rules: UseValidationRule<string>[] = [
|
||||
|
||||
<template>
|
||||
<div style="flex: 0 0 100%">
|
||||
<div style="margin: 0 auto; max-width: 600px" flex justify-center gap-3>
|
||||
<div style="margin: 0 auto;" flex justify-center gap-3>
|
||||
<n-form-item label="Indent size :" label-placement="left" label-width="100" :show-feedback="false">
|
||||
<n-input-number v-model:value="indentSize" min="0" max="10" style="width: 100px" />
|
||||
</n-form-item>
|
||||
|
||||
@@ -45,7 +45,7 @@ const jsonValidation = useValidation({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-card title="Input" mb-2>
|
||||
<c-input-text
|
||||
v-model:value="jqOrJsonPath"
|
||||
|
||||
@@ -30,7 +30,7 @@ const jsonValidation = useValidation({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-card title="Input" mb-2>
|
||||
<c-input-text
|
||||
v-model:value="json"
|
||||
|
||||
@@ -6,7 +6,7 @@ const themeVars = useThemeVars();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div max-w-600px>
|
||||
<div max-w-1200px>
|
||||
<Memo style="overflow-x: auto;" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -52,7 +52,7 @@ async function ocr(file: File) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-alert type="warning" mb-2>
|
||||
NB: processing is done in your browser, so be patient, processing can take a while
|
||||
<br>
|
||||
|
||||
@@ -12,7 +12,7 @@ const encodedBOutput = computed(() => withDefaultOnError(() => libmime.encodeWor
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-card title="Encode string in Encoded-Word format">
|
||||
<c-input-text
|
||||
v-model:value="rawInput"
|
||||
|
||||
@@ -189,7 +189,7 @@ async function ocr(file: File, language: string) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-select
|
||||
v-model:value="language"
|
||||
label="Language"
|
||||
|
||||
@@ -33,7 +33,7 @@ const option43Infos = computed(() => getOption43Infos(ipAdresses.value, wifiVend
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="margin: 0 auto; max-width: 600px">
|
||||
<div style="margin: 0 auto;">
|
||||
<c-card>
|
||||
<c-select
|
||||
v-model:value="wifiVendor"
|
||||
|
||||
@@ -85,7 +85,7 @@ function onUpload(file: File) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-card title="Input" mb-2>
|
||||
<c-file-upload
|
||||
title="Drag and drop MSG file here, or click to select a file"
|
||||
|
||||
@@ -40,7 +40,7 @@ function downloadCsv() {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-card title="Input" mb-2>
|
||||
<c-file-upload
|
||||
title="Drag and drop Parquet file here, or click to select a file"
|
||||
|
||||
@@ -66,7 +66,7 @@ async function onUpload(file: File) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-file-upload
|
||||
title="Drag and drop an image here, or click to select a file"
|
||||
:paste-image="true"
|
||||
|
||||
@@ -91,7 +91,7 @@ watchEffect(
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div max-w-600px>
|
||||
<div>
|
||||
<c-card title="Regex" mb-1>
|
||||
<c-input-text
|
||||
v-model:value="regex"
|
||||
|
||||
@@ -33,7 +33,7 @@ function transformer(value: string) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-input-text
|
||||
v-model:value="customRegex"
|
||||
label="Your custom cleaning regex(es) (case insensitive):"
|
||||
|
||||
@@ -28,7 +28,7 @@ const smartDecodedValue = computed(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div max-w-600px>
|
||||
<c-input-text
|
||||
v-model:value="rawValue"
|
||||
label="Smart Raw Value"
|
||||
|
||||
@@ -183,7 +183,7 @@ const { copy } = useCopy({ source: highlightedText });
|
||||
<n-input-number v-model:value="splitEveryCharacterCounts" :min="0" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
<c-card v-if="highlightedText" mt-60px max-w-600px flex items-center gap-5px font-mono>
|
||||
<c-card v-if="highlightedText" mt-60px flex items-center gap-5px font-mono>
|
||||
<!-- //NOSONAR --><div flex-1 break-anywhere text-wrap style="white-space: pre-wrap" v-html="highlightedText" />
|
||||
|
||||
<c-button @click="copy()">
|
||||
|
||||
@@ -103,7 +103,7 @@ function handleLicenceFallback() {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<n-card title="Software licences compatibility" mb-5>
|
||||
<n-form-item label="First License (SPDX):" label-placement="left" label-width="120">
|
||||
<n-auto-complete
|
||||
|
||||
@@ -80,7 +80,7 @@ const wrap = ref(true);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div max-w-600px>
|
||||
<div>
|
||||
<n-radio-group v-model:value="stackType" name="radiogroup" mb-2 flex justify-center>
|
||||
<n-space>
|
||||
<n-radio
|
||||
|
||||
@@ -34,7 +34,7 @@ const { copy } = useCopy({ source: obfuscatedString });
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<c-card v-if="obfuscatedString" mt-60px max-w-600px flex items-center gap-5px font-mono>
|
||||
<c-card v-if="obfuscatedString" mt-60px flex items-center gap-5px font-mono>
|
||||
<div break-anywhere text-wrap>
|
||||
{{ obfuscatedString }}
|
||||
</div>
|
||||
|
||||
@@ -27,7 +27,7 @@ const ssidValidation = useValidation({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-card title="Wifi Infos" mb-2>
|
||||
<c-input-text
|
||||
v-model:value="ssid"
|
||||
|
||||
@@ -32,7 +32,7 @@ const xmlValidation = useValidation({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-card title="Input" mb-2>
|
||||
<c-input-text
|
||||
v-model:value="xpath"
|
||||
|
||||
@@ -97,7 +97,7 @@ const xmlInputValidation = useValidation({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<div>
|
||||
<c-card title="Input" mb-2>
|
||||
<c-input-text
|
||||
v-model:value="xslt"
|
||||
|
||||
@@ -26,7 +26,7 @@ const MONACO_EDITOR_OPTIONS = {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div max-w-600>
|
||||
<div>
|
||||
<div style="flex: 0 0 100%">
|
||||
<div style="margin: 0 auto; max-width: 600px" flex justify-center gap-3>
|
||||
<n-form-item label="Sort keys :" label-placement="left" label-width="100">
|
||||
|
||||
Reference in new issue
Block a user