mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
1 parent
0048f48b47
commit
20a26514d8
5 files changed
+27
-34
No files matched your search
Vendored
-34
@@ -298,56 +298,22 @@ 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']
|
||||
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']
|
||||
NavbarButtons: typeof import('./src/components/NavbarButtons.vue')['default']
|
||||
<<<<<<< HEAD
|
||||
NButton: typeof import('naive-ui')['NButton']
|
||||
NCard: typeof import('naive-ui')['NCard']
|
||||
NCode: typeof import('naive-ui')['NCode']
|
||||
=======
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
NCode: typeof import('naive-ui')['NCode']
|
||||
>>>>>>> 1e405c34468067d5be1186268d190ad3c0739efa
|
||||
>>>>>>> chore/all-my-stuffs
|
||||
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
||||
NDivider: typeof import('naive-ui')['NDivider']
|
||||
NEllipsis: typeof import('naive-ui')['NEllipsis']
|
||||
NForm: typeof import('naive-ui')['NForm']
|
||||
NFormItem: typeof import('naive-ui')['NFormItem']
|
||||
NginxFormatter: typeof import('./src/tools/nginx-formatter/nginx-formatter.vue')['default']
|
||||
NginxMemo: typeof import('./src/tools/nginx-memo/nginx-memo.vue')['default']
|
||||
'NginxMemo.content': typeof import('./src/tools/nginx-memo/nginx-memo.content.md')['default']
|
||||
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']
|
||||
<<<<<<< HEAD
|
||||
NRadio: typeof import('naive-ui')['NRadio']
|
||||
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
|
||||
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||
NSpace: typeof import('naive-ui')['NSpace']
|
||||
NSpin: typeof import('naive-ui')['NSpin']
|
||||
NTable: typeof import('naive-ui')['NTable']
|
||||
NTabPane: typeof import('naive-ui')['NTabPane']
|
||||
NTabs: typeof import('naive-ui')['NTabs']
|
||||
=======
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||
NSpace: typeof import('naive-ui')['NSpace']
|
||||
NSwitch: typeof import('naive-ui')['NSwitch']
|
||||
>>>>>>> 1e405c34468067d5be1186268d190ad3c0739efa
|
||||
>>>>>>> chore/all-my-stuffs
|
||||
NumberInput: typeof import('./src/tools/pomodoro-timer/app/components/NumberInput.vue')['default']
|
||||
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
|
||||
OcrImage: typeof import('./src/tools/ocr-image/ocr-image.vue')['default']
|
||||
|
||||
@@ -262,6 +262,7 @@
|
||||
"svgo": "^3.3.2",
|
||||
"tesseract.js": "^5.1.1",
|
||||
"text-encoding-utf-8": "^1.0.2",
|
||||
"tick-time": "^1.0.1",
|
||||
"tidy-url": "^1.18.3",
|
||||
"to-double-quotes": "^4.0.0",
|
||||
"to-single-quotes": "^4.0.0",
|
||||
|
||||
Generated
+15
@@ -683,6 +683,9 @@ dependencies:
|
||||
text-encoding-utf-8:
|
||||
specifier: ^1.0.2
|
||||
version: 1.0.2
|
||||
tick-time:
|
||||
specifier: ^1.0.1
|
||||
version: 1.0.1
|
||||
tidy-url:
|
||||
specifier: ^1.18.3
|
||||
version: 1.18.3
|
||||
@@ -14122,6 +14125,11 @@ packages:
|
||||
vueuc: 0.4.64(vue@3.3.4)
|
||||
dev: false
|
||||
|
||||
/nano-seconds@1.2.2:
|
||||
resolution: {integrity: sha512-s06EY41x1hM6BJE2HhIFRzvXuVUlZNd4761lduv+hjgtDDR7W4RzhShkap2wJcWMO6+CahR+49cCQJfFmgf7gw==}
|
||||
engines: {node: '>=4.0.0'}
|
||||
dev: false
|
||||
|
||||
/nanoid-dictionary@4.3.0:
|
||||
resolution: {integrity: sha512-Xw1+/QnRGWO1KJ0rLfU1xR85qXmAHyLbE3TUkklu9gOIDburP6CsUnLmTaNECGpBh5SHb2uPFmx0VT8UPyoeyw==}
|
||||
dev: false
|
||||
@@ -17060,6 +17068,13 @@ packages:
|
||||
resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}
|
||||
dev: true
|
||||
|
||||
/tick-time@1.0.1:
|
||||
resolution: {integrity: sha512-de0ah4VT+jK7Kaz9aGShjW72avFfsEAeacYouM2IF27Rz4l9XPr3xVBS1vI64LUL3gKBbW1OBttWlLCfhFfX9A==}
|
||||
engines: {node: '>=6'}
|
||||
dependencies:
|
||||
nano-seconds: 1.2.2
|
||||
dev: false
|
||||
|
||||
/tidy-url@1.18.3:
|
||||
resolution: {integrity: sha512-NnbmullqE/3loiDoopNltfLb/v6EhX5GYNUVU4EuZjnDjh/NIBzy5dHnhvH3EfIAnZZZMf3cW0HgNw9E+easyg==}
|
||||
dev: false
|
||||
|
||||
@@ -11,6 +11,7 @@ import {
|
||||
isValid,
|
||||
parseISO,
|
||||
} from 'date-fns';
|
||||
import { ticksFromDate, ticksToDate } from 'tick-time';
|
||||
import { UTCDate } from '@date-fns/utc';
|
||||
import type { DateFormat, ToDateMapper } from './date-time-converter.types';
|
||||
import {
|
||||
@@ -128,6 +129,12 @@ const formats: DateFormat[] = [
|
||||
toDate: date => win32FileTimeToUnix(date),
|
||||
formatMatcher: isWin32FileTime,
|
||||
},
|
||||
{
|
||||
name: '.Net ticks',
|
||||
fromDate: date => ticksFromDate(date),
|
||||
toDate: date => ticksToDate(date) || new Date(),
|
||||
formatMatcher: date => /\d+/.test(date || ''),
|
||||
},
|
||||
];
|
||||
|
||||
const formatIndex = ref(6);
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
declare module 'tick-time' {
|
||||
export function ticksFromDate(date: Date): string;
|
||||
export function ticksToDate(ticks: string): Date;
|
||||
}
|
||||
Reference in new issue
Block a user