Skip to content

Commit 83832f3

Browse files
committed
feat(TextareaCopyable): word-wrap prop
Add word-wrap property (to allow presenting long public keys)
1 parent ee40ba1 commit 83832f3

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

package.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@
3535
"release": "node ./scripts/release.mjs"
3636
},
3737
"dependencies": {
38+
"@guolao/vue-monaco-editor": "^1.4.1",
3839
"@it-tools/bip39": "^0.0.4",
3940
"@it-tools/oggen": "^1.3.0",
41+
"@jspawn/qpdf-wasm": "^0.0.2",
4042
"@sindresorhus/slugify": "^2.2.1",
4143
"@tiptap/pm": "2.1.6",
4244
"@tiptap/starter-kit": "2.1.6",
@@ -49,38 +51,56 @@
4951
"@vueuse/router": "^10.0.0",
5052
"bcryptjs": "^2.4.3",
5153
"change-case": "^4.1.2",
54+
"cidr-tools": "^7.0.4",
5255
"colord": "^2.9.3",
53-
"composerize-ts": "^0.6.2",
56+
"composerize": "^1.6.6",
57+
"composeverter": "^1.6.2",
5458
"country-code-lookup": "^0.1.0",
5559
"cron-validator": "^1.3.1",
5660
"cronstrue": "^2.26.0",
5761
"crypto-js": "^4.1.1",
62+
"custom-ed25519": "^1.0.0",
5863
"date-fns": "^2.29.3",
64+
"decomposerize": "^1.2.4",
5965
"dompurify": "^3.0.6",
6066
"emojilib": "^3.0.10",
67+
"exifreader": "^4.20.0",
68+
"figlet": "^1.7.0",
6169
"figue": "^1.2.0",
6270
"fuse.js": "^6.6.2",
6371
"highlight.js": "^11.7.0",
6472
"iarna-toml-esm": "^3.0.5",
6573
"ibantools": "^4.3.3",
74+
"ip-address": "^9.0.5",
75+
"ip-bigint": "^8.0.2",
76+
"ip-cidr": "^4.0.0",
77+
"is-cidr": "^5.0.3",
78+
"is-ip": "^5.0.1",
79+
"isbn3": "^1.1.44",
80+
"jpeg-quality-estimator": "^1.0.1",
6681
"json5": "^2.2.3",
6782
"jwt-decode": "^3.1.2",
6883
"libphonenumber-js": "^1.10.28",
6984
"lodash": "^4.17.21",
85+
"mammoth": "^1.6.0",
7086
"marked": "^10.0.0",
7187
"mathjs": "^11.9.1",
7288
"mime-types": "^2.1.35",
7389
"monaco-editor": "^0.43.0",
7490
"naive-ui": "^2.35.0",
7591
"netmask": "^2.0.2",
76-
"node-forge": "^1.3.1",
7792
"oui-data": "^1.0.10",
7893
"pdf-signature-reader": "^1.4.2",
7994
"pinia": "^2.0.34",
8095
"plausible-tracker": "^0.3.8",
96+
"process": "^0.11.10",
97+
"qpdf.js": "^1.0.0",
8198
"qrcode": "^1.5.1",
99+
"qrcode-parser": "^2.1.3",
82100
"sql-formatter": "^13.0.0",
83101
"sshpk": "^1.18.0",
102+
"tesseract.js": "^5.0.4",
103+
"turndown": "^7.1.2",
84104
"ua-parser-js": "^1.0.35",
85105
"ulid": "^2.3.0",
86106
"unicode-emoji-json": "^0.4.0",

src/components/TextareaCopyable.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const props = withDefaults(
1616
language?: string
1717
copyPlacement?: 'top-right' | 'bottom-right' | 'outside' | 'none'
1818
copyMessage?: string
19+
wordWrap?: boolean
1920
}>(),
2021
{
2122
followHeightOf: null,
@@ -47,7 +48,7 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.
4748
:style="height ? `min-height: ${height - 40 /* card padding */ + 10 /* negative margin compensation */}px` : ''"
4849
>
4950
<n-config-provider :hljs="hljs">
50-
<n-code :code="value" :language="language" :trim="false" data-test-id="area-content" />
51+
<n-code :code="value" :language="language" :word-wrap="wordWrap" :trim="false" data-test-id="area-content" />
5152
</n-config-provider>
5253
</n-scrollbar>
5354
<div absolute right-10px top-10px>

0 commit comments

Comments
 (0)