Skip to content

Commit

Permalink
fix: remove v-html usage (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
andre8244 authored Oct 29, 2024
1 parent 579b1c1 commit 4b740fc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 23 deletions.
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@carbon/icons-vue": "^10.37.0",
"@carbon/vue": "^2.40.0",
"@nethserver/ns8-ui-lib": "^0.1.25",
"@nethserver/ns8-ui-lib": "^1.1.4",
"await-to-js": "^3.0.0",
"axios": "^0.21.2",
"carbon-components": "^10.41.0",
Expand Down
28 changes: 11 additions & 17 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@
ref="ban_local_network"
>
<template slot="tooltip">
<span
v-html="$t('settings.ban_local_network_tips')"
></span>
<span>{{ $t("settings.ban_local_network_tips") }}</span>
</template>
<template slot="text-left">{{
$t("settings.disabled")
Expand All @@ -112,7 +110,7 @@
ref="dyn_bantime"
>
<template slot="tooltip">
<span v-html="$t('settings.dyn_bantime_tips')"></span>
<span>{{ $t("settings.dyn_bantime_tips") }}</span>
</template>
<template slot="text-left">{{
$t("settings.disabled")
Expand Down Expand Up @@ -152,9 +150,7 @@
ref="enable_online_api"
>
<template slot="tooltip">
<span
v-html="$t('settings.disable_online_api_tips')"
></span>
<span>{{ $t("settings.disable_online_api_tips") }}</span>
</template>
<template slot="text-left">{{
$t("settings.disabled")
Expand Down Expand Up @@ -187,11 +183,11 @@
tooltipDirection="right"
>
<template slot="tooltip">
<div
v-html="
$t('settings.enroll_instance_must_be_real_token')
"
></div>
<div>
{{
$t("settings.enroll_instance_must_be_real_token")
}}
</div>
</template>
</NsTextInput>
</template>
Expand All @@ -211,11 +207,9 @@
tooltipDirection="right"
>
<template slot="tooltip">
<div
v-html="
$t('settings.helo_host_must_be_relevant_for_smtp')
"
></div>
<div>
{{ $t("settings.helo_host_must_be_relevant_for_smtp") }}
</div>
</template>
</NsTextInput>
</template>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/Unban.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
>
<template slot="trigger"></template>
<template slot="content">
<div v-html="$t('unban.unban_tooltip')"></div>
<div>{{ $t("unban.unban_tooltip") }}></div>
</template>
</cv-interactive-tooltip>
</h2>
Expand Down
8 changes: 4 additions & 4 deletions ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1012,10 +1012,10 @@
call-me-maybe "^1.0.1"
glob-to-regexp "^0.3.0"

"@nethserver/ns8-ui-lib@^0.1.25":
version "0.1.25"
resolved "https://registry.npmjs.org/@nethserver/ns8-ui-lib/-/ns8-ui-lib-0.1.25.tgz"
integrity sha512-jSYcG/PDd356Dvdb7BZkMBC+h9fxHvROWTrPsXRplCV4GsTcygO8Uc3H/ch3eo51Rre4qqrk/AP7j5Tzz3tBzQ==
"@nethserver/ns8-ui-lib@^1.1.4":
version "1.1.4"
resolved "https://registry.yarnpkg.com/@nethserver/ns8-ui-lib/-/ns8-ui-lib-1.1.4.tgz#6e8a47356c43773527c2d410e907c3dbe41326e2"
integrity sha512-z5lpixFPFlhBejMIYOFG6+YS74wcoppg1bat3WM1HTVo5gmpE3GVMOOIz+A2ThO9S/4ecWs6LG/GT/syQI2k5A==
dependencies:
"@rollup/plugin-json" "^4.1.0"
core-js "^3.15.2"
Expand Down

0 comments on commit 4b740fc

Please sign in to comment.