mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-25 15:15:23 +03:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11cfe91ebd |
No files matched your search
Vendored
+3
-1
@@ -82,6 +82,7 @@ declare module '@vue/runtime-core' {
|
||||
FormatTransformer: typeof import('./src/components/FormatTransformer.vue')['default']
|
||||
GitMemo: typeof import('./src/tools/git-memo/git-memo.vue')['default']
|
||||
'GitMemo.content': typeof import('./src/tools/git-memo/git-memo.content.md')['default']
|
||||
GptTokenEstimator: typeof import('./src/tools/gpt-token-estimator/gpt-token-estimator.vue')['default']
|
||||
HashText: typeof import('./src/tools/hash-text/hash-text.vue')['default']
|
||||
HmacGenerator: typeof import('./src/tools/hmac-generator/hmac-generator.vue')['default']
|
||||
'Home.page': typeof import('./src/pages/Home.page.vue')['default']
|
||||
@@ -130,11 +131,13 @@ declare module '@vue/runtime-core' {
|
||||
MetaTagGenerator: typeof import('./src/tools/meta-tag-generator/meta-tag-generator.vue')['default']
|
||||
MimeTypes: typeof import('./src/tools/mime-types/mime-types.vue')['default']
|
||||
NavbarButtons: typeof import('./src/components/NavbarButtons.vue')['default']
|
||||
NCheckbox: typeof import('naive-ui')['NCheckbox']
|
||||
NCode: typeof import('naive-ui')['NCode']
|
||||
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
|
||||
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
||||
NDivider: typeof import('naive-ui')['NDivider']
|
||||
NEllipsis: typeof import('naive-ui')['NEllipsis']
|
||||
NFormItem: typeof import('naive-ui')['NFormItem']
|
||||
NH1: typeof import('naive-ui')['NH1']
|
||||
NH3: typeof import('naive-ui')['NH3']
|
||||
NIcon: typeof import('naive-ui')['NIcon']
|
||||
@@ -187,7 +190,6 @@ declare module '@vue/runtime-core' {
|
||||
WifiQrCodeGenerator: typeof import('./src/tools/wifi-qr-code-generator/wifi-qr-code-generator.vue')['default']
|
||||
XmlFormatter: typeof import('./src/tools/xml-formatter/xml-formatter.vue')['default']
|
||||
XmlToJson: typeof import('./src/tools/xml-to-json/xml-to-json.vue')['default']
|
||||
XVrSpamcauseDecoder: typeof import('./src/tools/x-vr-spamcause-decoder/x-vr-spamcause-decoder.vue')['default']
|
||||
YamlToJson: typeof import('./src/tools/yaml-to-json-converter/yaml-to-json.vue')['default']
|
||||
YamlToToml: typeof import('./src/tools/yaml-to-toml/yaml-to-toml.vue')['default']
|
||||
YamlViewer: typeof import('./src/tools/yaml-viewer/yaml-viewer.vue')['default']
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
"figlet": "^1.7.0",
|
||||
"figue": "^1.2.0",
|
||||
"fuse.js": "^6.6.2",
|
||||
"gpt-tokens": "^1.3.13",
|
||||
"highlight.js": "^11.7.0",
|
||||
"iarna-toml-esm": "^3.0.5",
|
||||
"ibantools": "^4.3.3",
|
||||
|
||||
Generated
+33
-10
@@ -95,6 +95,9 @@ dependencies:
|
||||
fuse.js:
|
||||
specifier: ^6.6.2
|
||||
version: 6.6.2
|
||||
gpt-tokens:
|
||||
specifier: ^1.3.13
|
||||
version: 1.3.13
|
||||
highlight.js:
|
||||
specifier: ^11.7.0
|
||||
version: 11.7.0
|
||||
@@ -1834,7 +1837,7 @@ packages:
|
||||
'@babel/helper-split-export-declaration': 7.22.6
|
||||
'@babel/parser': 7.22.10
|
||||
'@babel/types': 7.22.10
|
||||
debug: 4.3.4
|
||||
debug: 4.4.0
|
||||
globals: 11.12.0
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
@@ -3608,7 +3611,7 @@ packages:
|
||||
dependencies:
|
||||
'@typescript-eslint/typescript-estree': 6.4.1(typescript@5.2.2)
|
||||
'@typescript-eslint/utils': 6.4.1(eslint@8.47.0)(typescript@5.2.2)
|
||||
debug: 4.3.4
|
||||
debug: 4.4.0
|
||||
eslint: 8.47.0
|
||||
ts-api-utils: 1.0.1(typescript@5.2.2)
|
||||
typescript: 5.2.2
|
||||
@@ -3663,7 +3666,7 @@ packages:
|
||||
dependencies:
|
||||
'@typescript-eslint/types': 6.4.1
|
||||
'@typescript-eslint/visitor-keys': 6.4.1
|
||||
debug: 4.3.4
|
||||
debug: 4.4.0
|
||||
globby: 11.1.0
|
||||
is-glob: 4.0.3
|
||||
semver: 7.6.3
|
||||
@@ -3727,7 +3730,7 @@ packages:
|
||||
'@typescript-eslint/types': 6.4.1
|
||||
'@typescript-eslint/typescript-estree': 6.4.1(typescript@5.2.2)
|
||||
eslint: 8.47.0
|
||||
semver: 7.5.4
|
||||
semver: 7.6.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
- typescript
|
||||
@@ -3802,7 +3805,7 @@ packages:
|
||||
dependencies:
|
||||
'@unhead/dom': 0.5.1
|
||||
'@unhead/schema': 0.5.1
|
||||
'@vueuse/shared': 12.4.0(typescript@5.2.2)
|
||||
'@vueuse/shared': 12.5.0(typescript@5.2.2)
|
||||
unhead: 0.5.1
|
||||
vue: 3.3.4
|
||||
transitivePeerDependencies:
|
||||
@@ -4492,8 +4495,8 @@ packages:
|
||||
- vue
|
||||
dev: false
|
||||
|
||||
/@vueuse/shared@12.4.0(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-9yLgbHVIF12OSCojnjTIoZL1+UA10+O4E1aD6Hpfo/DKVm5o3SZIwz6CupqGy3+IcKI8d6Jnl26EQj/YucnW0Q==}
|
||||
/@vueuse/shared@12.5.0(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-vMpcL1lStUU6O+kdj6YdHDixh0odjPAUM15uJ9f7MY781jcYkIwFA4iv2EfoIPO6vBmvutI1HxxAwmf0cx5ISQ==}
|
||||
dependencies:
|
||||
vue: 3.5.13(typescript@5.2.2)
|
||||
transitivePeerDependencies:
|
||||
@@ -4549,7 +4552,7 @@ packages:
|
||||
resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}
|
||||
engines: {node: '>= 6.0.0'}
|
||||
dependencies:
|
||||
debug: 4.3.4
|
||||
debug: 4.4.0
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
@@ -4798,7 +4801,7 @@ packages:
|
||||
/builtins@5.0.1:
|
||||
resolution: {integrity: sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==}
|
||||
dependencies:
|
||||
semver: 7.5.4
|
||||
semver: 7.6.3
|
||||
dev: true
|
||||
|
||||
/bundle-require@5.1.0(esbuild@0.24.2):
|
||||
@@ -6694,6 +6697,14 @@ packages:
|
||||
engines: {node: '>= 0.4'}
|
||||
dev: true
|
||||
|
||||
/gpt-tokens@1.3.13:
|
||||
resolution: {integrity: sha512-f1s9yc7jn2XCuy4jdeDJ5eaLwg1/fYKaLCxSE9osCQbQeBmoULr8XLNYYz4fr5ZzXzJH25m/9QwgUY0DCkUagA==}
|
||||
dependencies:
|
||||
decimal.js: 10.4.3
|
||||
js-tiktoken: 1.0.16
|
||||
openai-chat-tokens: 0.2.8
|
||||
dev: false
|
||||
|
||||
/graceful-fs@4.2.11:
|
||||
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
|
||||
dev: true
|
||||
@@ -7372,6 +7383,12 @@ packages:
|
||||
resolution: {integrity: sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==}
|
||||
dev: false
|
||||
|
||||
/js-tiktoken@1.0.16:
|
||||
resolution: {integrity: sha512-nUVdO5k/M9llWpiaZlBBDdtmr6qWXwSD6fgaDu2zM8UP+OXxx9V37lFkI6w0/1IuaDx7WffZ37oYd9KvcWKElg==}
|
||||
dependencies:
|
||||
base64-js: 1.5.1
|
||||
dev: false
|
||||
|
||||
/js-tokens@4.0.0:
|
||||
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
||||
dev: true
|
||||
@@ -8115,6 +8132,12 @@ packages:
|
||||
is-wsl: 2.2.0
|
||||
dev: true
|
||||
|
||||
/openai-chat-tokens@0.2.8:
|
||||
resolution: {integrity: sha512-nW7QdFDIZlAYe6jsCT/VPJ/Lam3/w2DX9oxf/5wHpebBT49KI3TN43PPhYlq1klq2ajzXWKNOLY6U4FNZM7AoA==}
|
||||
dependencies:
|
||||
js-tiktoken: 1.0.16
|
||||
dev: false
|
||||
|
||||
/optionator@0.9.3:
|
||||
resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==}
|
||||
engines: {node: '>= 0.8.0'}
|
||||
@@ -10327,7 +10350,7 @@ packages:
|
||||
espree: 9.6.1
|
||||
esquery: 1.5.0
|
||||
lodash: 4.17.21
|
||||
semver: 7.5.4
|
||||
semver: 7.6.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
@@ -128,7 +128,7 @@ function activateOption(option: PaletteOption) {
|
||||
<c-input-text ref="inputRef" v-model:value="searchPrompt" raw-text placeholder="Type to search a tool or a command..." autofocus clearable />
|
||||
|
||||
<div v-for="(options, category) in filteredSearchResult" :key="category">
|
||||
<div ml-3 mt-3 text-sm font-bold text-primary op-60>
|
||||
<div ml-3 mt-3 text-sm text-primary font-bold op-60>
|
||||
{{ category }}
|
||||
</div>
|
||||
<command-palette-option v-for="option in options" :key="option.name" :option="option" :selected="selectedOptionIndex === getOptionIndex(option)" @activated="activateOption" />
|
||||
|
||||
@@ -0,0 +1,170 @@
|
||||
<script setup lang="ts">
|
||||
import { GPTTokens } from 'gpt-tokens';
|
||||
import JSON5 from 'json5';
|
||||
import type { supportModelType } from 'gpt-tokens';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
import { useValidation } from '@/composable/validation';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const models = GPTTokens.supportModels;
|
||||
|
||||
const model = useQueryParamOrStorage({ name: 'model', storageName: 'gpt-counter:model', defaultValue: 'gpt-3.5-turbo-1106' });
|
||||
const systemPrompt = ref('');
|
||||
const userPrompt = ref('');
|
||||
|
||||
const isAdvancedMode = ref(false);
|
||||
const messagesJsonArray = ref('');
|
||||
const toolsJsonArray = ref('');
|
||||
|
||||
const messagesValidation = useValidation({
|
||||
source: messagesJsonArray,
|
||||
rules: [
|
||||
{
|
||||
message: 'Invalid "messages" array',
|
||||
validator: value => value && JSON5.parse(value.trim()),
|
||||
},
|
||||
],
|
||||
});
|
||||
const toolsValidation = useValidation({
|
||||
source: toolsJsonArray,
|
||||
rules: [
|
||||
{
|
||||
message: 'Invalid "tools" array',
|
||||
validator: value => value && JSON5.parse(value.trim()),
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
const outputTokenCosts = computed(() => {
|
||||
try {
|
||||
let messagesArray = [];
|
||||
let toolsArray = [];
|
||||
|
||||
if (isAdvancedMode.value) {
|
||||
messagesArray = messagesJsonArray.value ? JSON5.parse(messagesJsonArray.value.trim()) : [];
|
||||
toolsArray = toolsJsonArray.value ? JSON5.parse(toolsJsonArray.value.trim()) : [];
|
||||
}
|
||||
else {
|
||||
if (systemPrompt.value) {
|
||||
messagesArray.push({ role: 'system', content: systemPrompt.value });
|
||||
}
|
||||
if (userPrompt.value) {
|
||||
messagesArray.push({ role: 'user', content: userPrompt.value });
|
||||
}
|
||||
}
|
||||
|
||||
if (!messagesArray.length) {
|
||||
return {
|
||||
error: '',
|
||||
usedTokens: '0',
|
||||
usedUSD: '0',
|
||||
promptUsedTokens: '0',
|
||||
completionUsedTokens: '0',
|
||||
};
|
||||
}
|
||||
|
||||
const tokens = new GPTTokens({
|
||||
model: model.value as supportModelType,
|
||||
messages: messagesArray,
|
||||
tools: toolsArray,
|
||||
});
|
||||
return {
|
||||
error: '',
|
||||
usedTokens: tokens.usedTokens.toString(),
|
||||
usedUSD: tokens.usedUSD.toString(),
|
||||
promptUsedTokens: tokens.promptUsedTokens.toString(),
|
||||
completionUsedTokens: tokens.completionUsedTokens.toString(),
|
||||
};
|
||||
}
|
||||
catch (e: any) {
|
||||
return {
|
||||
error: e.toString(),
|
||||
usedTokens: '',
|
||||
usedUSD: '',
|
||||
promptUsedTokens: '',
|
||||
completionUsedTokens: '',
|
||||
};
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-select
|
||||
v-model:value="model"
|
||||
label-position="left"
|
||||
label="Model:"
|
||||
:options="models"
|
||||
placeholder="Select GPT model"
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<div flex justify-center>
|
||||
<n-form-item label="Advanded JSON Mode" label-placement="left">
|
||||
<n-checkbox v-model:checked="isAdvancedMode" mr-2 />
|
||||
</n-form-item>
|
||||
</div>
|
||||
|
||||
<c-card v-if="isAdvancedMode" title="Prompts">
|
||||
<c-input-text
|
||||
v-model:value="messagesJsonArray"
|
||||
multiline raw-text
|
||||
placeholder="Your 'messages' JSON array..."
|
||||
rows="5"
|
||||
autofocus
|
||||
label="Your 'messages' JSON array:"
|
||||
:validation="messagesValidation"
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
v-model:value="toolsJsonArray"
|
||||
multiline raw-text
|
||||
placeholder="Your 'tools' JSON array..."
|
||||
rows="5"
|
||||
autofocus
|
||||
label="Your 'tools' JSON array:"
|
||||
:validation="toolsValidation"
|
||||
/>
|
||||
</c-card>
|
||||
<c-card v-else title="Input JSON(s)">
|
||||
<c-input-text
|
||||
v-model:value="systemPrompt"
|
||||
multiline raw-text
|
||||
placeholder="Your System Prompt content..."
|
||||
rows="2"
|
||||
autofocus
|
||||
label="Your System Prompt content:"
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
v-model:value="userPrompt"
|
||||
multiline raw-text
|
||||
placeholder="Your User Prompt content..."
|
||||
rows="6"
|
||||
autofocus
|
||||
label="Your User Prompt content:"
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<c-alert v-if="outputTokenCosts.error">
|
||||
{{ outputTokenCosts.error }}
|
||||
</c-alert>
|
||||
|
||||
<div v-if="!outputTokenCosts.error">
|
||||
<n-form-item label="Used Tokens:">
|
||||
<TextareaCopyable :value="outputTokenCosts.usedTokens" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Prompt Tokens:">
|
||||
<TextareaCopyable :value="outputTokenCosts.promptUsedTokens" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Completion Tokens:">
|
||||
<TextareaCopyable :value="outputTokenCosts.completionUsedTokens" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Used USD:">
|
||||
<TextareaCopyable :value="outputTokenCosts.usedUSD" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { CurrencyDollar } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'GPT Token Estimator',
|
||||
path: '/gpt-token-estimator',
|
||||
description: 'OpenAI GPT Token Estimator',
|
||||
keywords: ['gpt', 'token', 'estimator'],
|
||||
component: () => import('./gpt-token-estimator.vue'),
|
||||
icon: CurrencyDollar,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
+3
-10
@@ -2,7 +2,7 @@ import { tool as base64FileConverter } from './base64-file-converter';
|
||||
import { tool as base64StringConverter } from './base64-string-converter';
|
||||
import { tool as basicAuthGenerator } from './basic-auth-generator';
|
||||
import { tool as emailNormalizer } from './email-normalizer';
|
||||
import { tool as xVrSpamcauseDecoder } from './x-vr-spamcause-decoder';
|
||||
import { tool as gptTokenEstimator } from './gpt-token-estimator';
|
||||
|
||||
import { tool as asciiTextDrawer } from './ascii-text-drawer';
|
||||
|
||||
@@ -161,19 +161,12 @@ export const toolsByCategory: ToolCategory[] = [
|
||||
emailNormalizer,
|
||||
regexTester,
|
||||
regexMemo,
|
||||
gptTokenEstimator,
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Network',
|
||||
components: [
|
||||
ipv4SubnetCalculator,
|
||||
ipv4AddressConverter,
|
||||
ipv4RangeExpander,
|
||||
macAddressLookup,
|
||||
macAddressGenerator,
|
||||
ipv6UlaGenerator,
|
||||
xVrSpamcauseDecoder,
|
||||
],
|
||||
components: [ipv4SubnetCalculator, ipv4AddressConverter, ipv4RangeExpander, macAddressLookup, macAddressGenerator, ipv6UlaGenerator],
|
||||
},
|
||||
{
|
||||
name: 'Math',
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { RecordMail } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'X-VR-SpamCause Decoder',
|
||||
path: '/x-vr-spamcause-decoder',
|
||||
description: 'Decode X-VR-SPAMCAUSE header in OVH mails',
|
||||
keywords: ['ovh', 'vade', 'retro', 'vr', 'spam', 'spamcause', 'decoder'],
|
||||
component: () => import('./x-vr-spamcause-decoder.vue'),
|
||||
icon: RecordMail,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -1,10 +0,0 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { spamCauseDecode } from './x-vr-spamcause-decoder.service';
|
||||
|
||||
describe('x-vr-spamcause-decoder', () => {
|
||||
it('should decode X-VR-SPAMCAUSE', () => {
|
||||
expect(spamCauseDecode('gggruggvucftvghtrhhoucdtuddrfeelgedrvdduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucgohfhorhgsihguuggvnhfjughrucdlhedttddm')).toBe(
|
||||
'Vade Retro 01.394.21 AS+AV+AP+RT Profile: OVH; Bailout: 300; ^ForbiddenHdr (500)',
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,24 +0,0 @@
|
||||
function unrot(a: string, b: string, pos: number) {
|
||||
if (b === undefined) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if (pos % 2 === 0) {
|
||||
const c = a;
|
||||
a = b;
|
||||
b = c;
|
||||
}
|
||||
|
||||
const offset = ('g'.charCodeAt(0) - a.charCodeAt(0)) * 16;
|
||||
return String.fromCharCode((a.charCodeAt(0) + b.charCodeAt(0)) - 'x'.charCodeAt(0) - offset);
|
||||
}
|
||||
|
||||
export function spamCauseDecode(text: string) {
|
||||
let result = '';
|
||||
|
||||
for (let n = 0; n < text.length; n += 2) {
|
||||
result += unrot(text[n], text[n + 1], Math.floor(n / 2));
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
<script setup lang="ts">
|
||||
import { spamCauseDecode } from './x-vr-spamcause-decoder.service';
|
||||
|
||||
const encodedXVRSpamCause = ref('');
|
||||
const decoded = computed(() => spamCauseDecode(encodedXVRSpamCause.value));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-input-text
|
||||
v-model:value="encodedXVRSpamCause"
|
||||
label="Encoded X-VR-SPAMCAUSE:"
|
||||
multiline
|
||||
rows="1"
|
||||
autosize
|
||||
placeholder="Your X-VR-SPAMCAUSE header value..."
|
||||
mb-6
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<textarea-copyable readonly label="Decoded" :value="decoded" />
|
||||
</div>
|
||||
</template>
|
||||
@@ -151,7 +151,7 @@ function onSearchInput() {
|
||||
>
|
||||
<div flex-1 truncate>
|
||||
<slot name="displayed-value">
|
||||
<input v-if="searchable && isOpen" ref="searchInputRef" v-model="searchQuery" type="text" placeholder="Search..." class="search-input" w-full lh-normal color-current @input="onSearchInput">
|
||||
<input v-if="searchable && isOpen" ref="searchInputRef" v-model="searchQuery" type="text" placeholder="Search..." class="search-input" w-full color-current lh-normal @input="onSearchInput">
|
||||
<span v-else-if="selectedOption" lh-normal>
|
||||
{{ selectedOption.label }}
|
||||
</span>
|
||||
|
||||
@@ -39,7 +39,7 @@ const headers = computed(() => {
|
||||
<template>
|
||||
<div class="relative overflow-x-auto rounded">
|
||||
<table class="w-full border-collapse text-left text-sm text-gray-500 dark:text-gray-400" role="table" :aria-label="description">
|
||||
<thead v-if="!hideHeaders" class="bg-#ffffff uppercase text-gray-700 dark:bg-#333333 dark:text-gray-400" border-b="1px solid dark:transparent #efeff5">
|
||||
<thead v-if="!hideHeaders" class="bg-#ffffff text-gray-700 uppercase dark:bg-#333333 dark:text-gray-400" border-b="1px solid dark:transparent #efeff5">
|
||||
<tr>
|
||||
<th v-for="header in headers" :key="header.key" scope="col" class="px-6 py-3 text-xs">
|
||||
{{ header.label }}
|
||||
|
||||
Reference in new issue
Block a user