mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-23 14:21:04 +03:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a99dae7f17 | ||
|
|
cb5b462e11 |
No files matched your search
Vendored
+1
-10
@@ -78,7 +78,6 @@ declare module '@vue/runtime-core' {
|
||||
Encryption: typeof import('./src/tools/encryption/encryption.vue')['default']
|
||||
EtaCalculator: typeof import('./src/tools/eta-calculator/eta-calculator.vue')['default']
|
||||
FavoriteButton: typeof import('./src/components/FavoriteButton.vue')['default']
|
||||
FolderStructureDiagram: typeof import('./src/tools/folder-structure-diagram/folder-structure-diagram.vue')['default']
|
||||
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']
|
||||
@@ -120,6 +119,7 @@ declare module '@vue/runtime-core' {
|
||||
LoremIpsumGenerator: typeof import('./src/tools/lorem-ipsum-generator/lorem-ipsum-generator.vue')['default']
|
||||
MacAddressGenerator: typeof import('./src/tools/mac-address-generator/mac-address-generator.vue')['default']
|
||||
MacAddressLookup: typeof import('./src/tools/mac-address-lookup/mac-address-lookup.vue')['default']
|
||||
MarkdownEditor: typeof import('./src/tools/markdown-editor/markdown-editor.vue')['default']
|
||||
MathEvaluator: typeof import('./src/tools/math-evaluator/math-evaluator.vue')['default']
|
||||
MenuBar: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar.vue')['default']
|
||||
MenuBarItem: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue')['default']
|
||||
@@ -128,24 +128,15 @@ 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']
|
||||
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']
|
||||
NGi: typeof import('naive-ui')['NGi']
|
||||
NGrid: typeof import('naive-ui')['NGrid']
|
||||
NH1: typeof import('naive-ui')['NH1']
|
||||
NH3: typeof import('naive-ui')['NH3']
|
||||
NIcon: typeof import('naive-ui')['NIcon']
|
||||
NInputNumber: typeof import('naive-ui')['NInputNumber']
|
||||
NLabel: typeof import('naive-ui')['NLabel']
|
||||
NLayout: typeof import('naive-ui')['NLayout']
|
||||
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
|
||||
NMenu: typeof import('naive-ui')['NMenu']
|
||||
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||
NSpin: typeof import('naive-ui')['NSpin']
|
||||
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
|
||||
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
|
||||
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']
|
||||
|
||||
+1
-6
@@ -42,9 +42,6 @@
|
||||
"@tiptap/starter-kit": "2.1.6",
|
||||
"@tiptap/vue-3": "2.0.3",
|
||||
"@types/figlet": "^1.5.8",
|
||||
"@types/lodash.defaultsdeep": "^4.6.9",
|
||||
"@types/lodash.flattendeep": "^4.4.9",
|
||||
"@types/lodash.last": "^3.0.9",
|
||||
"@vicons/material": "^0.12.0",
|
||||
"@vicons/tabler": "^0.12.0",
|
||||
"@vueuse/core": "^10.3.0",
|
||||
@@ -71,11 +68,9 @@
|
||||
"jwt-decode": "^3.1.2",
|
||||
"libphonenumber-js": "^1.10.28",
|
||||
"lodash": "^4.17.21",
|
||||
"lodash.defaultsdeep": "^4.6.1",
|
||||
"lodash.flattendeep": "^4.4.0",
|
||||
"lodash.last": "^3.0.0",
|
||||
"marked": "^10.0.0",
|
||||
"mathjs": "^11.9.1",
|
||||
"md-editor-v3": "^4.13.5",
|
||||
"mime-types": "^2.1.35",
|
||||
"monaco-editor": "^0.43.0",
|
||||
"naive-ui": "^2.35.0",
|
||||
|
||||
Generated
+587
-50
@@ -26,15 +26,6 @@ dependencies:
|
||||
'@types/figlet':
|
||||
specifier: ^1.5.8
|
||||
version: 1.5.8
|
||||
'@types/lodash.defaultsdeep':
|
||||
specifier: ^4.6.9
|
||||
version: 4.6.9
|
||||
'@types/lodash.flattendeep':
|
||||
specifier: ^4.4.9
|
||||
version: 4.4.9
|
||||
'@types/lodash.last':
|
||||
specifier: ^3.0.9
|
||||
version: 3.0.9
|
||||
'@vicons/material':
|
||||
specifier: ^0.12.0
|
||||
version: 0.12.0
|
||||
@@ -113,21 +104,15 @@ dependencies:
|
||||
lodash:
|
||||
specifier: ^4.17.21
|
||||
version: 4.17.21
|
||||
lodash.defaultsdeep:
|
||||
specifier: ^4.6.1
|
||||
version: 4.6.1
|
||||
lodash.flattendeep:
|
||||
specifier: ^4.4.0
|
||||
version: 4.4.0
|
||||
lodash.last:
|
||||
specifier: ^3.0.0
|
||||
version: 3.0.0
|
||||
marked:
|
||||
specifier: ^10.0.0
|
||||
version: 10.0.0
|
||||
mathjs:
|
||||
specifier: ^11.9.1
|
||||
version: 11.9.1
|
||||
md-editor-v3:
|
||||
specifier: ^4.13.5
|
||||
version: 4.13.5(@codemirror/view@6.26.3)(@lezer/common@1.2.1)(vue@3.3.4)
|
||||
mime-types:
|
||||
specifier: ^2.1.35
|
||||
version: 2.1.35
|
||||
@@ -1913,6 +1898,320 @@ packages:
|
||||
'@babel/helper-validator-identifier': 7.22.20
|
||||
to-fast-properties: 2.0.0
|
||||
|
||||
/@codemirror/autocomplete@6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1):
|
||||
resolution: {integrity: sha512-P/LeCTtZHRTCU4xQsa89vSKWecYv1ZqwzOd5topheGRf+qtacFgBeIMQi3eL8Kt/BUNvxUWkx+5qP2jlGoARrg==}
|
||||
peerDependencies:
|
||||
'@codemirror/language': ^6.0.0
|
||||
'@codemirror/state': ^6.0.0
|
||||
'@codemirror/view': ^6.0.0
|
||||
'@lezer/common': ^1.0.0
|
||||
dependencies:
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/state': 6.4.1
|
||||
'@codemirror/view': 6.26.3
|
||||
'@lezer/common': 1.2.1
|
||||
dev: false
|
||||
|
||||
/@codemirror/commands@6.5.0:
|
||||
resolution: {integrity: sha512-rK+sj4fCAN/QfcY9BEzYMgp4wwL/q5aj/VfNSoH1RWPF9XS/dUwBkvlL3hpWgEjOqlpdN1uLC9UkjJ4tmyjJYg==}
|
||||
dependencies:
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/state': 6.4.1
|
||||
'@codemirror/view': 6.26.3
|
||||
'@lezer/common': 1.2.1
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-angular@0.1.3:
|
||||
resolution: {integrity: sha512-xgeWGJQQl1LyStvndWtruUvb4SnBZDAu/gvFH/ZU+c0W25tQR8e5hq7WTwiIY2dNxnf+49mRiGI/9yxIwB6f5w==}
|
||||
dependencies:
|
||||
'@codemirror/lang-html': 6.4.9
|
||||
'@codemirror/lang-javascript': 6.2.2
|
||||
'@codemirror/language': 6.10.1
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-cpp@6.0.2:
|
||||
resolution: {integrity: sha512-6oYEYUKHvrnacXxWxYa6t4puTlbN3dgV662BDfSH8+MfjQjVmP697/KYTDOqpxgerkvoNm7q5wlFMBeX8ZMocg==}
|
||||
dependencies:
|
||||
'@codemirror/language': 6.10.1
|
||||
'@lezer/cpp': 1.1.2
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-css@6.2.1(@codemirror/view@6.26.3):
|
||||
resolution: {integrity: sha512-/UNWDNV5Viwi/1lpr/dIXJNWiwDxpw13I4pTUAsNxZdg6E0mI2kTQb0P2iHczg1Tu+H4EBgJR+hYhKiHKko7qg==}
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1)
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/state': 6.4.1
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/css': 1.1.8
|
||||
transitivePeerDependencies:
|
||||
- '@codemirror/view'
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-go@6.0.0(@codemirror/view@6.26.3):
|
||||
resolution: {integrity: sha512-mMT4YeYdKGjnffDBOhr1ur1glee4oV/rfMe28vzazNHZkSt7vSiuHiBcgr3L/79Cl2RIjFdpQ1XMD0/T8Rx64g==}
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1)
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/state': 6.4.1
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/go': 1.0.0
|
||||
transitivePeerDependencies:
|
||||
- '@codemirror/view'
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-html@6.4.9:
|
||||
resolution: {integrity: sha512-aQv37pIMSlueybId/2PVSP6NPnmurFDVmZwzc7jszd2KAF8qd4VBbvNYPXWQq90WIARjsdVkPbw29pszmHws3Q==}
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1)
|
||||
'@codemirror/lang-css': 6.2.1(@codemirror/view@6.26.3)
|
||||
'@codemirror/lang-javascript': 6.2.2
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/state': 6.4.1
|
||||
'@codemirror/view': 6.26.3
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/css': 1.1.8
|
||||
'@lezer/html': 1.3.9
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-java@6.0.1:
|
||||
resolution: {integrity: sha512-OOnmhH67h97jHzCuFaIEspbmsT98fNdhVhmA3zCxW0cn7l8rChDhZtwiwJ/JOKXgfm4J+ELxQihxaI7bj7mJRg==}
|
||||
dependencies:
|
||||
'@codemirror/language': 6.10.1
|
||||
'@lezer/java': 1.1.2
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-javascript@6.2.2:
|
||||
resolution: {integrity: sha512-VGQfY+FCc285AhWuwjYxQyUQcYurWlxdKYT4bqwr3Twnd5wP5WSeu52t4tvvuWmljT4EmgEgZCqSieokhtY8hg==}
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1)
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/lint': 6.7.0
|
||||
'@codemirror/state': 6.4.1
|
||||
'@codemirror/view': 6.26.3
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/javascript': 1.4.15
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-json@6.0.1:
|
||||
resolution: {integrity: sha512-+T1flHdgpqDDlJZ2Lkil/rLiRy684WMLc74xUnjJH48GQdfJo/pudlTRreZmKwzP8/tGdKf83wlbAdOCzlJOGQ==}
|
||||
dependencies:
|
||||
'@codemirror/language': 6.10.1
|
||||
'@lezer/json': 1.0.2
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-less@6.0.2(@codemirror/view@6.26.3):
|
||||
resolution: {integrity: sha512-EYdQTG22V+KUUk8Qq582g7FMnCZeEHsyuOJisHRft/mQ+ZSZ2w51NupvDUHiqtsOy7It5cHLPGfHQLpMh9bqpQ==}
|
||||
dependencies:
|
||||
'@codemirror/lang-css': 6.2.1(@codemirror/view@6.26.3)
|
||||
'@codemirror/language': 6.10.1
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
transitivePeerDependencies:
|
||||
- '@codemirror/view'
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-liquid@6.2.1:
|
||||
resolution: {integrity: sha512-J1Mratcm6JLNEiX+U2OlCDTysGuwbHD76XwuL5o5bo9soJtSbz2g6RU3vGHFyS5DC8rgVmFSzi7i6oBftm7tnA==}
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1)
|
||||
'@codemirror/lang-html': 6.4.9
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/state': 6.4.1
|
||||
'@codemirror/view': 6.26.3
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-markdown@6.2.5:
|
||||
resolution: {integrity: sha512-Hgke565YcO4fd9pe2uLYxnMufHO5rQwRr+AAhFq8ABuhkrjyX8R5p5s+hZUTdV60O0dMRjxKhBLxz8pu/MkUVA==}
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1)
|
||||
'@codemirror/lang-html': 6.4.9
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/state': 6.4.1
|
||||
'@codemirror/view': 6.26.3
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/markdown': 1.3.0
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-php@6.0.1:
|
||||
resolution: {integrity: sha512-ublojMdw/PNWa7qdN5TMsjmqkNuTBD3k6ndZ4Z0S25SBAiweFGyY68AS3xNcIOlb6DDFDvKlinLQ40vSLqf8xA==}
|
||||
dependencies:
|
||||
'@codemirror/lang-html': 6.4.9
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/state': 6.4.1
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/php': 1.0.2
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-python@6.1.6(@codemirror/view@6.26.3):
|
||||
resolution: {integrity: sha512-ai+01WfZhWqM92UqjnvorkxosZ2aq2u28kHvr+N3gu012XqY2CThD67JPMHnGceRfXPDBmn1HnyqowdpF57bNg==}
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1)
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/state': 6.4.1
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/python': 1.1.13
|
||||
transitivePeerDependencies:
|
||||
- '@codemirror/view'
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-rust@6.0.1:
|
||||
resolution: {integrity: sha512-344EMWFBzWArHWdZn/NcgkwMvZIWUR1GEBdwG8FEp++6o6vT6KL9V7vGs2ONsKxxFUPXKI0SPcWhyYyl2zPYxQ==}
|
||||
dependencies:
|
||||
'@codemirror/language': 6.10.1
|
||||
'@lezer/rust': 1.0.2
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-sass@6.0.2(@codemirror/view@6.26.3):
|
||||
resolution: {integrity: sha512-l/bdzIABvnTo1nzdY6U+kPAC51czYQcOErfzQ9zSm9D8GmNPD0WTW8st/CJwBTPLO8jlrbyvlSEcN20dc4iL0Q==}
|
||||
dependencies:
|
||||
'@codemirror/lang-css': 6.2.1(@codemirror/view@6.26.3)
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/state': 6.4.1
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/sass': 1.0.6
|
||||
transitivePeerDependencies:
|
||||
- '@codemirror/view'
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-sql@6.6.3(@codemirror/view@6.26.3):
|
||||
resolution: {integrity: sha512-fo5i3OD/7TmmqMtKycC4OaqfPsRxk0sKOb35g8cOtyUyyI2hfP2qXkDc7Asb6h7BiJK+MU/DYVPnQm6iNB5ZTw==}
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1)
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/state': 6.4.1
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
transitivePeerDependencies:
|
||||
- '@codemirror/view'
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-vue@0.1.3:
|
||||
resolution: {integrity: sha512-QSKdtYTDRhEHCfo5zOShzxCmqKJvgGrZwDQSdbvCRJ5pRLWBS7pD/8e/tH44aVQT6FKm0t6RVNoSUWHOI5vNug==}
|
||||
dependencies:
|
||||
'@codemirror/lang-html': 6.4.9
|
||||
'@codemirror/lang-javascript': 6.2.2
|
||||
'@codemirror/language': 6.10.1
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-wast@6.0.2:
|
||||
resolution: {integrity: sha512-Imi2KTpVGm7TKuUkqyJ5NRmeFWF7aMpNiwHnLQe0x9kmrxElndyH0K6H/gXtWwY6UshMRAhpENsgfpSwsgmC6Q==}
|
||||
dependencies:
|
||||
'@codemirror/language': 6.10.1
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-xml@6.1.0:
|
||||
resolution: {integrity: sha512-3z0blhicHLfwi2UgkZYRPioSgVTo9PV5GP5ducFH6FaHy0IAJRg+ixj5gTR1gnT/glAIC8xv4w2VL1LoZfs+Jg==}
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1)
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/state': 6.4.1
|
||||
'@codemirror/view': 6.26.3
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/xml': 1.0.5
|
||||
dev: false
|
||||
|
||||
/@codemirror/lang-yaml@6.1.1(@codemirror/view@6.26.3):
|
||||
resolution: {integrity: sha512-HV2NzbK9bbVnjWxwObuZh5FuPCowx51mEfoFT9y3y+M37fA3+pbxx4I7uePuygFzDsAmCTwQSc/kXh/flab4uw==}
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1)
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/state': 6.4.1
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/yaml': 1.0.3
|
||||
transitivePeerDependencies:
|
||||
- '@codemirror/view'
|
||||
dev: false
|
||||
|
||||
/@codemirror/language-data@6.5.1(@codemirror/view@6.26.3):
|
||||
resolution: {integrity: sha512-0sWxeUSNlBr6OmkqybUTImADFUP0M3P0IiSde4nc24bz/6jIYzqYSgkOSLS+CBIoW1vU8Q9KUWXscBXeoMVC9w==}
|
||||
dependencies:
|
||||
'@codemirror/lang-angular': 0.1.3
|
||||
'@codemirror/lang-cpp': 6.0.2
|
||||
'@codemirror/lang-css': 6.2.1(@codemirror/view@6.26.3)
|
||||
'@codemirror/lang-go': 6.0.0(@codemirror/view@6.26.3)
|
||||
'@codemirror/lang-html': 6.4.9
|
||||
'@codemirror/lang-java': 6.0.1
|
||||
'@codemirror/lang-javascript': 6.2.2
|
||||
'@codemirror/lang-json': 6.0.1
|
||||
'@codemirror/lang-less': 6.0.2(@codemirror/view@6.26.3)
|
||||
'@codemirror/lang-liquid': 6.2.1
|
||||
'@codemirror/lang-markdown': 6.2.5
|
||||
'@codemirror/lang-php': 6.0.1
|
||||
'@codemirror/lang-python': 6.1.6(@codemirror/view@6.26.3)
|
||||
'@codemirror/lang-rust': 6.0.1
|
||||
'@codemirror/lang-sass': 6.0.2(@codemirror/view@6.26.3)
|
||||
'@codemirror/lang-sql': 6.6.3(@codemirror/view@6.26.3)
|
||||
'@codemirror/lang-vue': 0.1.3
|
||||
'@codemirror/lang-wast': 6.0.2
|
||||
'@codemirror/lang-xml': 6.1.0
|
||||
'@codemirror/lang-yaml': 6.1.1(@codemirror/view@6.26.3)
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/legacy-modes': 6.4.0
|
||||
transitivePeerDependencies:
|
||||
- '@codemirror/view'
|
||||
dev: false
|
||||
|
||||
/@codemirror/language@6.10.1:
|
||||
resolution: {integrity: sha512-5GrXzrhq6k+gL5fjkAwt90nYDmjlzTIJV8THnxNFtNKWotMIlzzN+CpqxqwXOECnUdOndmSeWntVrVcv5axWRQ==}
|
||||
dependencies:
|
||||
'@codemirror/state': 6.4.1
|
||||
'@codemirror/view': 6.26.3
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
style-mod: 4.1.2
|
||||
dev: false
|
||||
|
||||
/@codemirror/legacy-modes@6.4.0:
|
||||
resolution: {integrity: sha512-5m/K+1A6gYR0e+h/dEde7LoGimMjRtWXZFg4Lo70cc8HzjSdHe3fLwjWMR0VRl5KFT1SxalSap7uMgPKF28wBA==}
|
||||
dependencies:
|
||||
'@codemirror/language': 6.10.1
|
||||
dev: false
|
||||
|
||||
/@codemirror/lint@6.7.0:
|
||||
resolution: {integrity: sha512-LTLOL2nT41ADNSCCCCw8Q/UmdAFzB23OUYSjsHTdsVaH0XEo+orhuqbDNWzrzodm14w6FOxqxpmy4LF8Lixqjw==}
|
||||
dependencies:
|
||||
'@codemirror/state': 6.4.1
|
||||
'@codemirror/view': 6.26.3
|
||||
crelt: 1.0.6
|
||||
dev: false
|
||||
|
||||
/@codemirror/search@6.5.6:
|
||||
resolution: {integrity: sha512-rpMgcsh7o0GuCDUXKPvww+muLA1pDJaFrpq/CCHtpQJYz8xopu4D1hPcKRoDD0YlF8gZaqTNIRa4VRBWyhyy7Q==}
|
||||
dependencies:
|
||||
'@codemirror/state': 6.4.1
|
||||
'@codemirror/view': 6.26.3
|
||||
crelt: 1.0.6
|
||||
dev: false
|
||||
|
||||
/@codemirror/state@6.4.1:
|
||||
resolution: {integrity: sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A==}
|
||||
dev: false
|
||||
|
||||
/@codemirror/view@6.26.3:
|
||||
resolution: {integrity: sha512-gmqxkPALZjkgSxIeeweY/wGQXBfwTUaLs8h7OKtSwfbj9Ct3L11lD+u1sS7XHppxFQoMDiMDp07P9f3I2jWOHw==}
|
||||
dependencies:
|
||||
'@codemirror/state': 6.4.1
|
||||
style-mod: 4.1.2
|
||||
w3c-keyname: 2.2.8
|
||||
dev: false
|
||||
|
||||
/@css-render/plugin-bem@0.15.12(css-render@0.15.12):
|
||||
resolution: {integrity: sha512-Lq2jSOZn+wYQtsyaFj6QRz2EzAnd3iW5fZeHO1WSXQdVYwvwGX0ZiH3X2JQgtgYLT1yeGtrwrqJdNdMEUD2xTw==}
|
||||
peerDependencies:
|
||||
@@ -2367,6 +2666,133 @@ packages:
|
||||
resolution: {integrity: sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==}
|
||||
dev: false
|
||||
|
||||
/@lezer/common@1.2.1:
|
||||
resolution: {integrity: sha512-yemX0ZD2xS/73llMZIK6KplkjIjf2EvAHcinDi/TfJ9hS25G0388+ClHt6/3but0oOxinTcQHJLDXh6w1crzFQ==}
|
||||
dev: false
|
||||
|
||||
/@lezer/cpp@1.1.2:
|
||||
resolution: {integrity: sha512-macwKtyeUO0EW86r3xWQCzOV9/CF8imJLpJlPv3sDY57cPGeUZ8gXWOWNlJr52TVByMV3PayFQCA5SHEERDmVQ==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@lezer/css@1.1.8:
|
||||
resolution: {integrity: sha512-7JhxupKuMBaWQKjQoLtzhGj83DdnZY9MckEOG5+/iLKNK2ZJqKc6hf6uc0HjwCX7Qlok44jBNqZhHKDhEhZYLA==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@lezer/go@1.0.0:
|
||||
resolution: {integrity: sha512-co9JfT3QqX1YkrMmourYw2Z8meGC50Ko4d54QEcQbEYpvdUvN4yb0NBZdn/9ertgvjsySxHsKzH3lbm3vqJ4Jw==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@lezer/highlight@1.2.0:
|
||||
resolution: {integrity: sha512-WrS5Mw51sGrpqjlh3d4/fOwpEV2Hd3YOkp9DBt4k8XZQcoTHZFB7sx030A6OcahF4J1nDQAa3jXlTVVYH50IFA==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
dev: false
|
||||
|
||||
/@lezer/html@1.3.9:
|
||||
resolution: {integrity: sha512-MXxeCMPyrcemSLGaTQEZx0dBUH0i+RPl8RN5GwMAzo53nTsd/Unc/t5ZxACeQoyPUM5/GkPLRUs2WliOImzkRA==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@lezer/java@1.1.2:
|
||||
resolution: {integrity: sha512-3j8X70JvYf0BZt8iSRLXLkt0Ry1hVUgH6wT32yBxH/Xi55nW2VMhc1Az4SKwu4YGSmxCm1fsqDDcHTuFjC8pmg==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@lezer/javascript@1.4.15:
|
||||
resolution: {integrity: sha512-B082ZdjI0vo2AgLqD834GlRTE9gwRX8NzHzKq5uDwEnQ9Dq+A/CEhd3nf68tiNA2f9O+8jS1NeSTUYT9IAqcTw==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@lezer/json@1.0.2:
|
||||
resolution: {integrity: sha512-xHT2P4S5eeCYECyKNPhr4cbEL9tc8w83SPwRC373o9uEdrvGKTZoJVAGxpOsZckMlEh9W23Pc72ew918RWQOBQ==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@lezer/lr@1.4.0:
|
||||
resolution: {integrity: sha512-Wst46p51km8gH0ZUmeNrtpRYmdlRHUpN1DQd3GFAyKANi8WVz8c2jHYTf1CVScFaCjQw1iO3ZZdqGDxQPRErTg==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
dev: false
|
||||
|
||||
/@lezer/markdown@1.3.0:
|
||||
resolution: {integrity: sha512-ErbEQ15eowmJUyT095e9NJc3BI9yZ894fjSDtHftD0InkfUBGgnKSU6dvan9jqsZuNHg2+ag/1oyDRxNsENupQ==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
dev: false
|
||||
|
||||
/@lezer/php@1.0.2:
|
||||
resolution: {integrity: sha512-GN7BnqtGRpFyeoKSEqxvGvhJQiI4zkgmYnDk/JIyc7H7Ifc1tkPnUn/R2R8meH3h/aBf5rzjvU8ZQoyiNDtDrA==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@lezer/python@1.1.13:
|
||||
resolution: {integrity: sha512-AdbRAtdQq94PfTNd4kqMEJhH2fqa2JdoyyqqVewY6w34w2Gi6dg2JuOtOgR21Bi0zP9r0KjSSHOUq/tP7FVT8A==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@lezer/rust@1.0.2:
|
||||
resolution: {integrity: sha512-Lz5sIPBdF2FUXcWeCu1//ojFAZqzTQNRga0aYv6dYXqJqPfMdCAI0NzajWUd4Xijj1IKJLtjoXRPMvTKWBcqKg==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@lezer/sass@1.0.6:
|
||||
resolution: {integrity: sha512-w/RCO2dIzZH1To8p+xjs8cE+yfgGus8NZ/dXeWl/QzHyr+TeBs71qiE70KPImEwvTsmEjoWh0A5SxMzKd5BWBQ==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@lezer/xml@1.0.5:
|
||||
resolution: {integrity: sha512-VFouqOzmUWfIg+tfmpcdV33ewtK+NSwd4ngSe1aG7HFb4BN0ExyY1b8msp+ndFrnlG4V4iC8yXacjFtrwERnaw==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@lezer/yaml@1.0.3:
|
||||
resolution: {integrity: sha512-GuBLekbw9jDBDhGur82nuwkxKQ+a3W5H0GfaAthDXcAu+XdpS43VlnxA9E9hllkpSP5ellRDKjLLj7Lu9Wr6xA==}
|
||||
dependencies:
|
||||
'@lezer/common': 1.2.1
|
||||
'@lezer/highlight': 1.2.0
|
||||
'@lezer/lr': 1.4.0
|
||||
dev: false
|
||||
|
||||
/@linaria/core@4.2.9:
|
||||
resolution: {integrity: sha512-ELcu37VNVOT/PU0L6WDIN+aLzNFyJrqoBYT0CucGOCAmODbojUMCv8oJYRbWzA3N34w1t199dN4UFdfRWFG2rg==}
|
||||
engines: {node: ^12.16.0 || >=13.7.0}
|
||||
@@ -2963,30 +3389,16 @@ packages:
|
||||
resolution: {integrity: sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA==}
|
||||
dev: true
|
||||
|
||||
/@types/linkify-it@5.0.0:
|
||||
resolution: {integrity: sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==}
|
||||
dev: false
|
||||
|
||||
/@types/lodash-es@4.17.10:
|
||||
resolution: {integrity: sha512-YJP+w/2khSBwbUSFdGsSqmDvmnN3cCKoPOL7Zjle6s30ZtemkkqhjVfFqGwPN7ASil5VyjE2GtyU/yqYY6mC0A==}
|
||||
dependencies:
|
||||
'@types/lodash': 4.14.192
|
||||
dev: false
|
||||
|
||||
/@types/lodash.defaultsdeep@4.6.9:
|
||||
resolution: {integrity: sha512-pLtCFK0YkHfGtGLYLNMTbFB5/G5+RsmQCIbbHH8GOAXjv+gDkVilY98kILfe8JH2Kev0OCReYxp1AjxEjP8ixA==}
|
||||
dependencies:
|
||||
'@types/lodash': 4.14.200
|
||||
dev: false
|
||||
|
||||
/@types/lodash.flattendeep@4.4.9:
|
||||
resolution: {integrity: sha512-Oacs/ZMuMvVWkhMqvj+Spad457Beln5pnkauif+6s65fE2cSL7J7NoMfwkxjuQsOsr4DUCDH/iDbmuZo81Nypw==}
|
||||
dependencies:
|
||||
'@types/lodash': 4.14.200
|
||||
dev: false
|
||||
|
||||
/@types/lodash.last@3.0.9:
|
||||
resolution: {integrity: sha512-HMIEyk2LJWDumrHsuSh7ZokUs+xyXa0nZO/s3paaKjOvwrjBNoQHsM0UqcpmzEt7CJ29a16XNe3vr8buvHeMCg==}
|
||||
dependencies:
|
||||
'@types/lodash': 4.14.200
|
||||
dev: false
|
||||
|
||||
/@types/lodash@4.14.192:
|
||||
resolution: {integrity: sha512-km+Vyn3BYm5ytMO13k9KTp27O75rbQ0NFw+U//g+PX7VZyjCioXaRFisqSIJRECljcTv73G3i6BpglNGHgUQ5A==}
|
||||
|
||||
@@ -3001,6 +3413,13 @@ packages:
|
||||
'@types/mdurl': 1.0.2
|
||||
dev: true
|
||||
|
||||
/@types/markdown-it@14.1.1:
|
||||
resolution: {integrity: sha512-4NpsnpYl2Gt1ljyBGrKMxFYAYvpqbnnkgP/i/g+NLpjEUa3obn1XJCur9YbEXKDAkaXqsR1LbDnGEJ0MmKFxfg==}
|
||||
dependencies:
|
||||
'@types/linkify-it': 5.0.0
|
||||
'@types/mdurl': 2.0.0
|
||||
dev: false
|
||||
|
||||
/@types/mdast@3.0.11:
|
||||
resolution: {integrity: sha512-Y/uImid8aAwrEA24/1tcRZwpxX3pIFTSilcNDKSPn+Y2iDywSEachzRuvgAYYLR3wpGXAsMbv5lvKLDZLeYPAw==}
|
||||
dependencies:
|
||||
@@ -3011,6 +3430,10 @@ packages:
|
||||
resolution: {integrity: sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==}
|
||||
dev: true
|
||||
|
||||
/@types/mdurl@2.0.0:
|
||||
resolution: {integrity: sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==}
|
||||
dev: false
|
||||
|
||||
/@types/mime-types@2.1.1:
|
||||
resolution: {integrity: sha512-vXOTGVSLR2jMw440moWTC7H19iUyLtP3Z1YTj7cSsubOICinjMxFeb/V57v9QdyyPGbbWolUFSSmSiRSn94tFw==}
|
||||
dev: true
|
||||
@@ -3638,6 +4061,10 @@ packages:
|
||||
- rollup
|
||||
dev: true
|
||||
|
||||
/@vavt/util@1.5.1:
|
||||
resolution: {integrity: sha512-/q/ilzRwZZJlnDAl6DGZ8pinOSAjR91dcck79bi1ujrqYlPaFVHnbmkDeGPuLub6A821rXvtPXVRXULrfMN03Q==}
|
||||
dev: false
|
||||
|
||||
/@vicons/material@0.12.0:
|
||||
resolution: {integrity: sha512-chv1CYAl8P32P3Ycwgd5+vw/OFNc2mtkKdb1Rw4T5IJmKy6GVDsoUKV3N2l208HATn7CCQphZtuPDdsm7K2kmA==}
|
||||
dev: false
|
||||
@@ -4531,6 +4958,20 @@ packages:
|
||||
engines: {node: '>=0.8'}
|
||||
dev: true
|
||||
|
||||
/codemirror@6.0.1(@lezer/common@1.2.1):
|
||||
resolution: {integrity: sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==}
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.16.0(@codemirror/language@6.10.1)(@codemirror/state@6.4.1)(@codemirror/view@6.26.3)(@lezer/common@1.2.1)
|
||||
'@codemirror/commands': 6.5.0
|
||||
'@codemirror/language': 6.10.1
|
||||
'@codemirror/lint': 6.7.0
|
||||
'@codemirror/search': 6.5.6
|
||||
'@codemirror/state': 6.4.1
|
||||
'@codemirror/view': 6.26.3
|
||||
transitivePeerDependencies:
|
||||
- '@lezer/common'
|
||||
dev: false
|
||||
|
||||
/color-convert@1.9.3:
|
||||
resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}
|
||||
dependencies:
|
||||
@@ -4643,6 +5084,12 @@ packages:
|
||||
is-what: 3.14.1
|
||||
dev: true
|
||||
|
||||
/copy-to-clipboard@3.3.3:
|
||||
resolution: {integrity: sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==}
|
||||
dependencies:
|
||||
toggle-selection: 1.0.6
|
||||
dev: false
|
||||
|
||||
/core-js-compat@3.33.2:
|
||||
resolution: {integrity: sha512-axfo+wxFVxnqf8RvxTzoAlzW4gRoacrHeoFlc9n0x50+7BEyZL/Rt3hicaED1/CEd7I6tPCPVUYcJwCMO5XUYw==}
|
||||
dependencies:
|
||||
@@ -4727,6 +5174,10 @@ packages:
|
||||
hasBin: true
|
||||
dev: true
|
||||
|
||||
/cssfilter@0.0.10:
|
||||
resolution: {integrity: sha512-FAaLDaplstoRsDR8XGYH51znUN0UY7nMc6Z9/fvE8EXGwvJE9hu7W2vHwx1+bd6gCYnln9nLbzxFTrcO9YQDZw==}
|
||||
dev: false
|
||||
|
||||
/csso@5.0.5:
|
||||
resolution: {integrity: sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==}
|
||||
engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'}
|
||||
@@ -5037,7 +5488,6 @@ packages:
|
||||
/entities@4.5.0:
|
||||
resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
|
||||
engines: {node: '>=0.12'}
|
||||
dev: true
|
||||
|
||||
/errno@0.1.8:
|
||||
resolution: {integrity: sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==}
|
||||
@@ -6705,6 +7155,12 @@ packages:
|
||||
dependencies:
|
||||
uc.micro: 1.0.6
|
||||
|
||||
/linkify-it@5.0.0:
|
||||
resolution: {integrity: sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==}
|
||||
dependencies:
|
||||
uc.micro: 2.1.0
|
||||
dev: false
|
||||
|
||||
/local-pkg@0.4.3:
|
||||
resolution: {integrity: sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==}
|
||||
engines: {node: '>=14'}
|
||||
@@ -6730,18 +7186,6 @@ packages:
|
||||
resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==}
|
||||
dev: true
|
||||
|
||||
/lodash.defaultsdeep@4.6.1:
|
||||
resolution: {integrity: sha512-3j8wdDzYuWO3lM3Reg03MuQR957t287Rpcxp1njpEa8oDrikb+FwGdW3n+FELh/A6qib6yPit0j/pv9G/yeAqA==}
|
||||
dev: false
|
||||
|
||||
/lodash.flattendeep@4.4.0:
|
||||
resolution: {integrity: sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==}
|
||||
dev: false
|
||||
|
||||
/lodash.last@3.0.0:
|
||||
resolution: {integrity: sha512-14mq7rSkCxG4XMy9lF2FbIOqqgF0aH0NfPuQ3LPR3vIh0kHnUvIYP70dqa1Hf47zyXfQ8FzAg0MYOQeSuE1R7A==}
|
||||
dev: false
|
||||
|
||||
/lodash.merge@4.6.2:
|
||||
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
|
||||
dev: true
|
||||
@@ -6783,6 +7227,11 @@ packages:
|
||||
tslib: 2.5.0
|
||||
dev: false
|
||||
|
||||
/lru-cache@10.2.2:
|
||||
resolution: {integrity: sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==}
|
||||
engines: {node: 14 || >=16.14}
|
||||
dev: false
|
||||
|
||||
/lru-cache@4.1.5:
|
||||
resolution: {integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==}
|
||||
dependencies:
|
||||
@@ -6844,6 +7293,25 @@ packages:
|
||||
resolution: {integrity: sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==}
|
||||
dev: true
|
||||
|
||||
/markdown-it-image-figures@2.1.1(markdown-it@14.1.0):
|
||||
resolution: {integrity: sha512-mwXSQ2nPeVUzCMIE3HlLvjRioopiqyJLNph0pyx38yf9mpqFDhNGnMpAXF9/A2Xv0oiF2cVyg9xwfF0HNAz05g==}
|
||||
engines: {node: '>=12.0.0'}
|
||||
peerDependencies:
|
||||
markdown-it: '*'
|
||||
dependencies:
|
||||
markdown-it: 14.1.0
|
||||
dev: false
|
||||
|
||||
/markdown-it-task-lists@2.1.1:
|
||||
resolution: {integrity: sha512-TxFAc76Jnhb2OUu+n3yz9RMu4CwGfaT788br6HhEDlvWfdeJcLUsxk1Hgw2yJio0OXsxv7pyIPmvECY7bMbluA==}
|
||||
dev: false
|
||||
|
||||
/markdown-it-xss@1.0.2:
|
||||
resolution: {integrity: sha512-D52im1+e394EckqhK0AuyqxQ/WCuo09wJWInuCh6j1O2d6LqImJOu36lA6KZqImhWJeYIQnGeryaH3wXcro5MQ==}
|
||||
dependencies:
|
||||
xss: 1.0.15
|
||||
dev: false
|
||||
|
||||
/markdown-it@13.0.2:
|
||||
resolution: {integrity: sha512-FtwnEuuK+2yVU7goGn/MJ0WBZMM9ZPgU9spqlFs7/A/pDIUNSOQZhUgOqYCficIuR2QaFnrt8LHqBWsbTAoI5w==}
|
||||
hasBin: true
|
||||
@@ -6854,6 +7322,18 @@ packages:
|
||||
mdurl: 1.0.1
|
||||
uc.micro: 1.0.6
|
||||
|
||||
/markdown-it@14.1.0:
|
||||
resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==}
|
||||
hasBin: true
|
||||
dependencies:
|
||||
argparse: 2.0.1
|
||||
entities: 4.5.0
|
||||
linkify-it: 5.0.0
|
||||
mdurl: 2.0.0
|
||||
punycode.js: 2.3.1
|
||||
uc.micro: 2.1.0
|
||||
dev: false
|
||||
|
||||
/marked@10.0.0:
|
||||
resolution: {integrity: sha512-YiGcYcWj50YrwBgNzFoYhQ1hT6GmQbFG8SksnYJX1z4BXTHSOrz1GB5/Jm2yQvMg4nN1FHP4M6r03R10KrVUiA==}
|
||||
engines: {node: '>= 18'}
|
||||
@@ -6875,6 +7355,30 @@ packages:
|
||||
typed-function: 4.1.0
|
||||
dev: false
|
||||
|
||||
/md-editor-v3@4.13.5(@codemirror/view@6.26.3)(@lezer/common@1.2.1)(vue@3.3.4):
|
||||
resolution: {integrity: sha512-HHFvuEP8puUK430QfKGoqHDIOrw0MHK26MgWKd/+k6VRadDNy40i7Gw3NmSd+rvEzIvHwu0NRm99KEj4qNb0Gw==}
|
||||
peerDependencies:
|
||||
vue: ^3.2.47
|
||||
dependencies:
|
||||
'@codemirror/lang-markdown': 6.2.5
|
||||
'@codemirror/language-data': 6.5.1(@codemirror/view@6.26.3)
|
||||
'@types/markdown-it': 14.1.1
|
||||
'@vavt/util': 1.5.1
|
||||
codemirror: 6.0.1(@lezer/common@1.2.1)
|
||||
copy-to-clipboard: 3.3.3
|
||||
lru-cache: 10.2.2
|
||||
markdown-it: 14.1.0
|
||||
markdown-it-image-figures: 2.1.1(markdown-it@14.1.0)
|
||||
markdown-it-task-lists: 2.1.1
|
||||
markdown-it-xss: 1.0.2
|
||||
medium-zoom: 1.1.0
|
||||
punycode: 2.3.1
|
||||
vue: 3.3.4
|
||||
transitivePeerDependencies:
|
||||
- '@codemirror/view'
|
||||
- '@lezer/common'
|
||||
dev: false
|
||||
|
||||
/mdast-util-from-markdown@0.8.5:
|
||||
resolution: {integrity: sha512-2hkTXtYYnr+NubD/g6KGBS/0mFmBcifAsI0yIWRiRo0PjVs6SSOSOdtzbp6kSGnShDN6G5aWZpKQ2lWRy27mWQ==}
|
||||
dependencies:
|
||||
@@ -6902,6 +7406,14 @@ packages:
|
||||
/mdurl@1.0.1:
|
||||
resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==}
|
||||
|
||||
/mdurl@2.0.0:
|
||||
resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==}
|
||||
dev: false
|
||||
|
||||
/medium-zoom@1.1.0:
|
||||
resolution: {integrity: sha512-ewyDsp7k4InCUp3jRmwHBRFGyjBimKps/AJLjRSox+2q/2H4p/PNpQf+pwONWlJiOudkBXtbdmVbFjqyybfTmQ==}
|
||||
dev: false
|
||||
|
||||
/merge-stream@2.0.0:
|
||||
resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
|
||||
dev: true
|
||||
@@ -7711,6 +8223,11 @@ packages:
|
||||
resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==}
|
||||
dev: true
|
||||
|
||||
/punycode.js@2.3.1:
|
||||
resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==}
|
||||
engines: {node: '>=6'}
|
||||
dev: false
|
||||
|
||||
/punycode@2.3.0:
|
||||
resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==}
|
||||
engines: {node: '>=6'}
|
||||
@@ -7719,7 +8236,6 @@ packages:
|
||||
/punycode@2.3.1:
|
||||
resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}
|
||||
engines: {node: '>=6'}
|
||||
dev: true
|
||||
|
||||
/qrcode@1.5.1:
|
||||
resolution: {integrity: sha512-nS8NJ1Z3md8uTjKtP+SGGhfqmTCs5flU/xR623oI0JX+Wepz9R8UrRVCTBTJm3qGw3rH6jJ6MUHjkDx15cxSSg==}
|
||||
@@ -8361,6 +8877,10 @@ packages:
|
||||
dependencies:
|
||||
acorn: 8.11.2
|
||||
|
||||
/style-mod@4.1.2:
|
||||
resolution: {integrity: sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==}
|
||||
dev: false
|
||||
|
||||
/supports-color@5.5.0:
|
||||
resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}
|
||||
engines: {node: '>=4'}
|
||||
@@ -8501,6 +9021,10 @@ packages:
|
||||
dependencies:
|
||||
is-number: 7.0.0
|
||||
|
||||
/toggle-selection@1.0.6:
|
||||
resolution: {integrity: sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==}
|
||||
dev: false
|
||||
|
||||
/totalist@3.0.1:
|
||||
resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==}
|
||||
engines: {node: '>=6'}
|
||||
@@ -8651,6 +9175,10 @@ packages:
|
||||
/uc.micro@1.0.6:
|
||||
resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==}
|
||||
|
||||
/uc.micro@2.1.0:
|
||||
resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==}
|
||||
dev: false
|
||||
|
||||
/ufo@1.1.2:
|
||||
resolution: {integrity: sha512-TrY6DsjTQQgyS3E3dBaOXf0TpPD8u9FVrVYmKVegJuFw51n/YB9XPt+U6ydzFG5ZIN7+DIjPbNmXoBj9esYhgQ==}
|
||||
|
||||
@@ -9605,6 +10133,15 @@ packages:
|
||||
resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==}
|
||||
dev: true
|
||||
|
||||
/xss@1.0.15:
|
||||
resolution: {integrity: sha512-FVdlVVC67WOIPvfOwhoMETV72f6GbW7aOabBC3WxN/oUdoEMDyLz4OgRv5/gck2ZeNqEQu+Tb0kloovXOfpYVg==}
|
||||
engines: {node: '>= 0.10.0'}
|
||||
hasBin: true
|
||||
dependencies:
|
||||
commander: 2.20.3
|
||||
cssfilter: 0.0.10
|
||||
dev: false
|
||||
|
||||
/y18n@4.0.3:
|
||||
resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==}
|
||||
dev: false
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
<script setup lang="ts">
|
||||
import { generateTree } from './lib/generate-tree';
|
||||
import { parseInput } from './lib/parse-input';
|
||||
import { withDefaultOnError } from '@/utils/defaults';
|
||||
|
||||
const inputStructure = ref([
|
||||
'my-app',
|
||||
' src',
|
||||
' index.html',
|
||||
' main.ts',
|
||||
' main.scss',
|
||||
' - build',
|
||||
' - index.html',
|
||||
' main.js',
|
||||
' main.css',
|
||||
'',
|
||||
' ',
|
||||
' .prettierrc.json',
|
||||
' .gitlab-ci.yml',
|
||||
' README.md',
|
||||
'empty dir',
|
||||
].join('\n'));
|
||||
const outputTree = computed(() => withDefaultOnError(() => generateTree(parseInput(inputStructure.value)), ''));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-input-text
|
||||
v-model:value="inputStructure"
|
||||
label="Your indented structure"
|
||||
placeholder="Paste your indented structure here..."
|
||||
rows="20"
|
||||
multiline
|
||||
raw-text
|
||||
monospace
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<n-form-item label="Your tree-like structure:">
|
||||
<TextareaCopyable :value="outputTree" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
</template>
|
||||
@@ -1,12 +0,0 @@
|
||||
import { Folder } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Folder Structure Diagram',
|
||||
path: '/folder-structure-diagram',
|
||||
description: 'tree-like utility for generating ASCII folder structure diagrams',
|
||||
keywords: ['folder', 'structure', 'diagram', 'tree', 'ascii'],
|
||||
component: () => import('./folder-structure-diagram.vue'),
|
||||
icon: Folder,
|
||||
createdAt: new Date('2024-04-20'),
|
||||
});
|
||||
@@ -1,20 +0,0 @@
|
||||
/**
|
||||
* Represents a single item in a file system
|
||||
* (i.e. a file or a folder)
|
||||
*/
|
||||
export interface FileStructure {
|
||||
/** The name of the file or folder */
|
||||
name: string
|
||||
|
||||
/** If a folder, the contents of the folder */
|
||||
children: FileStructure[]
|
||||
|
||||
/**
|
||||
* The number of spaces in front of the name
|
||||
* in the original source string
|
||||
*/
|
||||
indentCount: number
|
||||
|
||||
/** The parent directory of this file or folder */
|
||||
parent: FileStructure | null
|
||||
}
|
||||
@@ -1,165 +0,0 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { generateTree } from './generate-tree';
|
||||
import { mockInput } from './mock-input';
|
||||
import { parseInput } from './parse-input';
|
||||
|
||||
describe('generateTree', () => {
|
||||
it('returns an UTF-8 representation of the provided FileStructure object', () => {
|
||||
const actual = generateTree(parseInput(mockInput));
|
||||
|
||||
const expected = `
|
||||
.
|
||||
├── my-app
|
||||
│ ├── src
|
||||
│ │ ├── index.html
|
||||
│ │ ├── main.ts
|
||||
│ │ └── main.scss
|
||||
│ ├── build
|
||||
│ │ ├── index.html
|
||||
│ │ ├── main.js
|
||||
│ │ └── main.css
|
||||
│ ├── .prettierrc.json
|
||||
│ ├── .gitlab-ci.yml
|
||||
│ └── README.md
|
||||
└── empty dir
|
||||
|
||||
`.trim();
|
||||
|
||||
expect(actual).toEqual(expected);
|
||||
});
|
||||
|
||||
it('returns an ASCII representation of the provided FileStructure object', () => {
|
||||
const actual = generateTree(parseInput(mockInput), { charset: 'ascii' });
|
||||
|
||||
const expected = `
|
||||
.
|
||||
|-- my-app
|
||||
| |-- src
|
||||
| | |-- index.html
|
||||
| | |-- main.ts
|
||||
| | \`-- main.scss
|
||||
| |-- build
|
||||
| | |-- index.html
|
||||
| | |-- main.js
|
||||
| | \`-- main.css
|
||||
| |-- .prettierrc.json
|
||||
| |-- .gitlab-ci.yml
|
||||
| \`-- README.md
|
||||
\`-- empty dir
|
||||
|
||||
`.trim();
|
||||
|
||||
expect(actual).toEqual(expected);
|
||||
});
|
||||
|
||||
it('does not render lines for parent directories that have already printed all of their children', () => {
|
||||
const input = `
|
||||
|
||||
grandparent
|
||||
parent
|
||||
child
|
||||
parent
|
||||
child
|
||||
grandchild
|
||||
|
||||
`;
|
||||
|
||||
const actual = generateTree(parseInput(input));
|
||||
|
||||
const expected = `
|
||||
.
|
||||
└── grandparent
|
||||
├── parent
|
||||
│ └── child
|
||||
└── parent
|
||||
└── child
|
||||
└── grandchild
|
||||
|
||||
`.trim();
|
||||
|
||||
expect(actual).toEqual(expected);
|
||||
});
|
||||
|
||||
it('appends a trailing slash to directories if trailingDirSlash === true', () => {
|
||||
const input = `
|
||||
|
||||
grandparent
|
||||
parent/
|
||||
child
|
||||
parent//
|
||||
child
|
||||
grandchild
|
||||
|
||||
`;
|
||||
|
||||
const actual = generateTree(parseInput(input), { trailingDirSlash: true });
|
||||
|
||||
const expected = `
|
||||
.
|
||||
└── grandparent/
|
||||
├── parent/
|
||||
│ └── child
|
||||
└── parent//
|
||||
└── child/
|
||||
└── grandchild
|
||||
|
||||
`.trim();
|
||||
|
||||
expect(actual).toEqual(expected);
|
||||
});
|
||||
|
||||
it('prints each items\' full path if fullPath === true', () => {
|
||||
const input = `
|
||||
|
||||
grandparent
|
||||
parent/
|
||||
child
|
||||
parent//
|
||||
child
|
||||
grandchild
|
||||
|
||||
`;
|
||||
|
||||
const actual = generateTree(parseInput(input), { fullPath: true });
|
||||
|
||||
const expected = `
|
||||
.
|
||||
└── ./grandparent
|
||||
├── ./grandparent/parent/
|
||||
│ └── ./grandparent/parent/child
|
||||
└── ./grandparent/parent//
|
||||
└── ./grandparent/parent//child
|
||||
└── ./grandparent/parent//child/grandchild
|
||||
|
||||
`.trim();
|
||||
|
||||
expect(actual).toEqual(expected);
|
||||
});
|
||||
|
||||
it('does not render the root dot if rootDot === false', () => {
|
||||
const input = `
|
||||
|
||||
grandparent
|
||||
parent
|
||||
child
|
||||
parent
|
||||
child
|
||||
grandchild
|
||||
|
||||
`;
|
||||
|
||||
const actual = generateTree(parseInput(input), { rootDot: false });
|
||||
|
||||
const expected = `
|
||||
grandparent
|
||||
├── parent
|
||||
│ └── child
|
||||
└── parent
|
||||
└── child
|
||||
└── grandchild
|
||||
|
||||
`.trim();
|
||||
|
||||
expect(actual).toEqual(expected);
|
||||
});
|
||||
});
|
||||
@@ -1,138 +0,0 @@
|
||||
import type { RecursiveArray } from 'lodash';
|
||||
import defaultsDeep from 'lodash.defaultsdeep';
|
||||
import flattenDeep from 'lodash.flattendeep';
|
||||
import last from 'lodash.last';
|
||||
import type { FileStructure } from './FileStructure';
|
||||
import { LINE_STRINGS } from './line-strings';
|
||||
|
||||
/**
|
||||
* Represents all rendering options available
|
||||
* when calling `generateTree`
|
||||
*/
|
||||
interface GenerateTreeOptions {
|
||||
/**
|
||||
* Which set of characters to use when
|
||||
* rendering directory lines
|
||||
*/
|
||||
charset?: 'ascii' | 'utf-8'
|
||||
|
||||
/**
|
||||
* Whether or not to append trailing slashes
|
||||
* to directories. Items that already include a
|
||||
* trailing slash will not have another appended.
|
||||
*/
|
||||
trailingDirSlash?: boolean
|
||||
|
||||
/**
|
||||
* Whether or not to print the full
|
||||
* path of the item
|
||||
*/
|
||||
fullPath?: boolean
|
||||
|
||||
/**
|
||||
* Whether or not to render a dot as the root of the tree
|
||||
*/
|
||||
rootDot?: boolean
|
||||
}
|
||||
|
||||
/** The default options if no options are provided */
|
||||
const defaultOptions: GenerateTreeOptions = {
|
||||
charset: 'utf-8',
|
||||
trailingDirSlash: false,
|
||||
fullPath: false,
|
||||
rootDot: true,
|
||||
};
|
||||
|
||||
/**
|
||||
* Generates an ASCII tree diagram, given a FileStructure
|
||||
* @param structure The FileStructure object to convert into ASCII
|
||||
* @param options The rendering options
|
||||
*/
|
||||
export function generateTree(structure: FileStructure,
|
||||
options?: GenerateTreeOptions): string {
|
||||
return flattenDeep([
|
||||
getAsciiLine(structure, defaultsDeep({}, options, defaultOptions)),
|
||||
structure.children.map(c => generateTree(c, options)) as RecursiveArray<
|
||||
string
|
||||
>,
|
||||
])
|
||||
// Remove null entries. Should only occur for the very first node
|
||||
// when `options.rootDot === false`
|
||||
.filter(line => line != null)
|
||||
.join('\n');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a line of ASCII that represents
|
||||
* a single FileStructure object
|
||||
* @param structure The file to render
|
||||
* @param options The rendering options
|
||||
*/
|
||||
function getAsciiLine(structure: FileStructure,
|
||||
options: GenerateTreeOptions): string | null {
|
||||
const lines = LINE_STRINGS[options.charset as string];
|
||||
|
||||
// Special case for the root element
|
||||
if (!structure.parent) {
|
||||
return options.rootDot ? structure.name : null;
|
||||
}
|
||||
|
||||
const chunks = [
|
||||
isLastChild(structure) ? lines.LAST_CHILD : lines.CHILD,
|
||||
getName(structure, options),
|
||||
];
|
||||
|
||||
let current = structure.parent;
|
||||
while (current && current.parent) {
|
||||
chunks.unshift(isLastChild(current) ? lines.EMPTY : lines.DIRECTORY);
|
||||
current = current.parent;
|
||||
}
|
||||
|
||||
// Join all the chunks together to create the final line.
|
||||
// If we're not rendering the root `.`, chop off the first 4 characters.
|
||||
return chunks.join('').substring(options.rootDot ? 0 : lines.CHILD.length);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of a file or folder according to the
|
||||
* rules specified by the rendering rules
|
||||
* @param structure The file or folder to get the name of
|
||||
* @param options The rendering options
|
||||
*/
|
||||
function getName(structure: FileStructure,
|
||||
options: GenerateTreeOptions): string {
|
||||
const nameChunks = [structure.name];
|
||||
|
||||
// Optionally append a trailing slash
|
||||
if (
|
||||
// if the trailing slash option is enabled
|
||||
options.trailingDirSlash
|
||||
// and if the item has at least one child
|
||||
&& structure.children.length > 0
|
||||
// and if the item doesn't already have a trailing slash
|
||||
&& !/\/\s*$/.test(structure.name)
|
||||
) {
|
||||
nameChunks.push('/');
|
||||
}
|
||||
|
||||
// Optionally prefix the name with its full path
|
||||
if (options.fullPath && structure.parent && structure.parent) {
|
||||
nameChunks.unshift(
|
||||
getName(
|
||||
structure.parent,
|
||||
defaultsDeep({}, { trailingDirSlash: true }, options),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
return nameChunks.join('');
|
||||
}
|
||||
|
||||
/**
|
||||
* A utility function do determine if a file or folder
|
||||
* is the last child of its parent
|
||||
* @param structure The file or folder to test
|
||||
*/
|
||||
function isLastChild(structure: FileStructure): boolean {
|
||||
return Boolean(structure.parent && last(structure.parent.children) === structure);
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
/**
|
||||
* Represents an object that contains the
|
||||
* actual strings used to render the tree
|
||||
*/
|
||||
export interface LineStringSet {
|
||||
/** The string to render immediately before non-last children */
|
||||
CHILD: string
|
||||
|
||||
/** The string to render immediately before the last child */
|
||||
LAST_CHILD: string
|
||||
|
||||
/** The string to render for parent directories */
|
||||
DIRECTORY: string
|
||||
|
||||
/** The string to render for empty space */
|
||||
EMPTY: string
|
||||
}
|
||||
|
||||
/** Contains all strings for tree rendering */
|
||||
export const LINE_STRINGS: { [charset: string]: LineStringSet } = {
|
||||
'ascii': {
|
||||
CHILD: '|-- ',
|
||||
LAST_CHILD: '`-- ',
|
||||
DIRECTORY: '| ',
|
||||
EMPTY: ' ',
|
||||
},
|
||||
'utf-8': {
|
||||
CHILD: '├── ',
|
||||
LAST_CHILD: '└── ',
|
||||
DIRECTORY: '│ ',
|
||||
EMPTY: ' ',
|
||||
},
|
||||
};
|
||||
@@ -1,19 +0,0 @@
|
||||
// not using a template string in order
|
||||
// to have more control over whitespace
|
||||
export const mockInput = [
|
||||
'my-app',
|
||||
' src',
|
||||
' index.html',
|
||||
' main.ts',
|
||||
' main.scss',
|
||||
' - build',
|
||||
' - index.html',
|
||||
' main.js',
|
||||
' main.css',
|
||||
'',
|
||||
' ',
|
||||
' .prettierrc.json',
|
||||
' .gitlab-ci.yml',
|
||||
' README.md',
|
||||
'empty dir',
|
||||
].join('\n');
|
||||
@@ -1,147 +0,0 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import type { FileStructure } from './FileStructure';
|
||||
import { mockInput } from './mock-input';
|
||||
import { parseInput, splitInput } from './parse-input';
|
||||
|
||||
describe('parse-input', () => {
|
||||
it('parses plain text input into a FileStructure object', () => {
|
||||
const actual = parseInput(mockInput);
|
||||
|
||||
const root: FileStructure = {
|
||||
name: '.',
|
||||
children: [],
|
||||
indentCount: -1,
|
||||
parent: null,
|
||||
};
|
||||
|
||||
const myApp: FileStructure = {
|
||||
name: 'my-app',
|
||||
children: [],
|
||||
indentCount: 0,
|
||||
parent: root,
|
||||
};
|
||||
root.children.push(myApp);
|
||||
|
||||
const src: FileStructure = {
|
||||
name: 'src',
|
||||
children: [],
|
||||
indentCount: 2,
|
||||
parent: myApp,
|
||||
};
|
||||
myApp.children.push(src);
|
||||
|
||||
const srcIndexHtml: FileStructure = {
|
||||
name: 'index.html',
|
||||
children: [],
|
||||
indentCount: 4,
|
||||
parent: src,
|
||||
};
|
||||
src.children.push(srcIndexHtml);
|
||||
|
||||
const mainTs: FileStructure = {
|
||||
name: 'main.ts',
|
||||
children: [],
|
||||
indentCount: 4,
|
||||
parent: src,
|
||||
};
|
||||
src.children.push(mainTs);
|
||||
|
||||
const mainScss: FileStructure = {
|
||||
name: 'main.scss',
|
||||
children: [],
|
||||
indentCount: 3,
|
||||
parent: src,
|
||||
};
|
||||
src.children.push(mainScss);
|
||||
|
||||
const build: FileStructure = {
|
||||
name: 'build',
|
||||
children: [],
|
||||
indentCount: 2,
|
||||
parent: myApp,
|
||||
};
|
||||
myApp.children.push(build);
|
||||
|
||||
const buildIndexHtml: FileStructure = {
|
||||
name: 'index.html',
|
||||
children: [],
|
||||
indentCount: 4,
|
||||
parent: build,
|
||||
};
|
||||
build.children.push(buildIndexHtml);
|
||||
|
||||
const mainJs: FileStructure = {
|
||||
name: 'main.js',
|
||||
children: [],
|
||||
indentCount: 4,
|
||||
parent: build,
|
||||
};
|
||||
build.children.push(mainJs);
|
||||
|
||||
const mainCss: FileStructure = {
|
||||
name: 'main.css',
|
||||
children: [],
|
||||
indentCount: 4,
|
||||
parent: build,
|
||||
};
|
||||
build.children.push(mainCss);
|
||||
|
||||
const prettierRcJson: FileStructure = {
|
||||
name: '.prettierrc.json',
|
||||
children: [],
|
||||
indentCount: 2,
|
||||
parent: myApp,
|
||||
};
|
||||
myApp.children.push(prettierRcJson);
|
||||
|
||||
const gitlabCiYml: FileStructure = {
|
||||
name: '.gitlab-ci.yml',
|
||||
children: [],
|
||||
indentCount: 2,
|
||||
parent: myApp,
|
||||
};
|
||||
myApp.children.push(gitlabCiYml);
|
||||
|
||||
const readmeMd: FileStructure = {
|
||||
name: 'README.md',
|
||||
children: [],
|
||||
indentCount: 2,
|
||||
parent: myApp,
|
||||
};
|
||||
myApp.children.push(readmeMd);
|
||||
|
||||
const emptyDir: FileStructure = {
|
||||
name: 'empty dir',
|
||||
children: [],
|
||||
indentCount: 0,
|
||||
parent: root,
|
||||
};
|
||||
root.children.push(emptyDir);
|
||||
|
||||
expect(actual).toEqual(root);
|
||||
});
|
||||
});
|
||||
|
||||
describe('splitInput', () => {
|
||||
it('splits plain text into an array of File Structure objects', () => {
|
||||
const actual = splitInput(mockInput);
|
||||
|
||||
const expected = [
|
||||
{ name: 'my-app', children: [], indentCount: 0, parent: null },
|
||||
{ name: 'src', children: [], indentCount: 2, parent: null },
|
||||
{ name: 'index.html', children: [], indentCount: 4, parent: null },
|
||||
{ name: 'main.ts', children: [], indentCount: 4, parent: null },
|
||||
{ name: 'main.scss', children: [], indentCount: 3, parent: null },
|
||||
{ name: 'build', children: [], indentCount: 2, parent: null },
|
||||
{ name: 'index.html', children: [], indentCount: 4, parent: null },
|
||||
{ name: 'main.js', children: [], indentCount: 4, parent: null },
|
||||
{ name: 'main.css', children: [], indentCount: 4, parent: null },
|
||||
{ name: '.prettierrc.json', children: [], indentCount: 2, parent: null },
|
||||
{ name: '.gitlab-ci.yml', children: [], indentCount: 2, parent: null },
|
||||
{ name: 'README.md', children: [], indentCount: 2, parent: null },
|
||||
{ name: 'empty dir', children: [], indentCount: 0, parent: null },
|
||||
];
|
||||
|
||||
expect(actual).toEqual(expected);
|
||||
});
|
||||
});
|
||||
@@ -1,81 +0,0 @@
|
||||
import last from 'lodash.last';
|
||||
import type { FileStructure } from './FileStructure';
|
||||
|
||||
/**
|
||||
* Matches the whitespace in front of a file name.
|
||||
* Also will match a markdown bullet point if included.
|
||||
* For example, testing against " - hello" will return
|
||||
* a positive match with the first capturing group
|
||||
* with " - " and a second with " "
|
||||
*/
|
||||
const leadingWhitespaceAndBulletRegex = /^((\s*)(?:-\s)?)/;
|
||||
|
||||
/** Matches lines that only contain whitespace */
|
||||
const onlyWhitespaceRegex = /^\s*$/;
|
||||
|
||||
/** Used to split a block of text into individual lines */
|
||||
const newlineSplitterRegex = /[^\r\n]+/g;
|
||||
|
||||
/**
|
||||
* Translates a block of user-created text into
|
||||
* a nested FileStructure structure
|
||||
* @param input The plain-text input from the user
|
||||
*/
|
||||
export function parseInput(input: string): FileStructure {
|
||||
const structures = splitInput(input);
|
||||
|
||||
const root: FileStructure = {
|
||||
name: '.',
|
||||
children: [],
|
||||
indentCount: -1,
|
||||
parent: null,
|
||||
};
|
||||
|
||||
const path = [root];
|
||||
for (const s of structures) {
|
||||
while (last(path)!.indentCount >= s.indentCount) {
|
||||
path.pop();
|
||||
}
|
||||
|
||||
const parent = last(path) as FileStructure;
|
||||
parent.children.push(s);
|
||||
s.parent = parent;
|
||||
|
||||
path.push(s);
|
||||
}
|
||||
|
||||
return root;
|
||||
}
|
||||
|
||||
/**
|
||||
* Splits a block of user-created text into
|
||||
* individual, un-nested FileStructure objects.
|
||||
* Used internally as part of `parseInput`.
|
||||
* @param input The plain-text input from the user
|
||||
*/
|
||||
export function splitInput(input: string): FileStructure[] {
|
||||
let lines = input.match(newlineSplitterRegex)?.map(m => m) || [];
|
||||
|
||||
// filter out empty lines
|
||||
lines = lines.filter(l => !onlyWhitespaceRegex.test(l));
|
||||
|
||||
return lines.map((l) => {
|
||||
const matchResult = leadingWhitespaceAndBulletRegex.exec(l);
|
||||
|
||||
if (!matchResult) {
|
||||
throw new Error(
|
||||
`Unable to execute leadingWhitespaceAndBulletRegex against string: "${l}"`,
|
||||
);
|
||||
}
|
||||
|
||||
const name = l.replace(matchResult[1], '');
|
||||
const indentCount = matchResult[2].length;
|
||||
|
||||
return {
|
||||
name,
|
||||
children: [],
|
||||
indentCount,
|
||||
parent: null,
|
||||
};
|
||||
});
|
||||
}
|
||||
+2
-2
@@ -6,7 +6,7 @@ import { tool as asciiTextDrawer } from './ascii-text-drawer';
|
||||
|
||||
import { tool as textToUnicode } from './text-to-unicode';
|
||||
import { tool as safelinkDecoder } from './safelink-decoder';
|
||||
import { tool as folderStructureDiagram } from './folder-structure-diagram';
|
||||
import { tool as markdownEditor } from './markdown-editor';
|
||||
import { tool as pdfSignatureChecker } from './pdf-signature-checker';
|
||||
import { tool as numeronymGenerator } from './numeronym-generator';
|
||||
import { tool as macAddressGenerator } from './mac-address-generator';
|
||||
@@ -129,7 +129,6 @@ export const toolsByCategory: ToolCategory[] = [
|
||||
httpStatusCodes,
|
||||
jsonDiff,
|
||||
safelinkDecoder,
|
||||
folderStructureDiagram,
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -174,6 +173,7 @@ export const toolsByCategory: ToolCategory[] = [
|
||||
textDiff,
|
||||
numeronymGenerator,
|
||||
asciiTextDrawer,
|
||||
markdownEditor,
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Markdown } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Markdown Editor',
|
||||
path: '/markdown-editor',
|
||||
description: 'Simple Markdown Editor',
|
||||
keywords: ['markdown', 'editor'],
|
||||
component: () => import('./markdown-editor.vue'),
|
||||
icon: Markdown,
|
||||
createdAt: new Date('2024-04-07'),
|
||||
});
|
||||
@@ -0,0 +1,27 @@
|
||||
<script setup lang="ts">
|
||||
import type { Themes } from 'md-editor-v3';
|
||||
import { MdEditor } from 'md-editor-v3';
|
||||
|
||||
import 'md-editor-v3/lib/style.css';
|
||||
import { useStyleStore } from '@/stores/style.store';
|
||||
|
||||
const theme = ref<Themes>('light');
|
||||
const styleStore = useStyleStore();
|
||||
watch(
|
||||
() => styleStore.isDarkTheme,
|
||||
isDarkTheme => theme.value = isDarkTheme ? 'dark' : 'light',
|
||||
{ immediate: true },
|
||||
);
|
||||
|
||||
const markdown = ref('Sample _formatted_ *text*');
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<MdEditor
|
||||
v-model="markdown"
|
||||
:theme="theme"
|
||||
language="en-US"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
@@ -23,7 +23,7 @@ const decodeInput = ref('Hello%20world%20%3A)');
|
||||
const decodeOutput = computed(() => withDefaultOnError(() => decodeURIComponent(decodeInput.value), ''));
|
||||
|
||||
const decodeValidation = useValidation({
|
||||
source: encodeInput,
|
||||
source: decodeInput,
|
||||
rules: [
|
||||
{
|
||||
validator: value => isNotThrowing(() => decodeURIComponent(value)),
|
||||
|
||||
Reference in new issue
Block a user