Skip to content

Commit

Permalink
replace v-html with v-text
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee0z committed Mar 25, 2024
1 parent e3948ee commit 802afc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/js/Pages/City/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const toast = useToast()
const page = usePage()
const isAuth = computed(() => page.props.auth.isAuth)
const regulationsOpen = ref(false)
const rules = reactive({ pl: '<i class="text-gray-400">ładowanie informacji o zasadach, proszę czekać...</i>', en: '<i class="text-gray-400">loading info about rules, please wait...</i>' })
const rules = reactive({ pl: 'ładowanie informacji o zasadach, proszę czekać...', en: 'loading info about rules, please wait...' })
fetchRegulations()
const props = defineProps({
Expand Down Expand Up @@ -135,7 +135,9 @@ function createOpinion() {
<div class="my-3 flex cursor-pointer items-center text-2xl font-bold text-gray-700" @click="toggleRegulations()">
{{ __('Rules') }} <ArrowDownIcon :class="regulationsOpen ? 'rotated' : ''" class="absolute right-3 inline-block h-6 w-6 transition-all" />
</div>
<div :class="regulationsOpen?'show':''" class="overflow-scroll transition" v-html="currentRules" />
<div :class="regulationsOpen?'show':''" class="overflow-scroll transition text-grey-400">

Check warning on line 138 in resources/js/Pages/City/Index.vue

View workflow job for this annotation

GitHub Actions / Test & lint JS codebase

Invalid Tailwind CSS classnames order
<pre class="text-gray-400" v-text="currentRules"/>

Check failure on line 139 in resources/js/Pages/City/Index.vue

View workflow job for this annotation

GitHub Actions / Test & lint JS codebase

Expected indentation of 14 spaces but found 16 spaces

Check warning on line 139 in resources/js/Pages/City/Index.vue

View workflow job for this annotation

GitHub Actions / Test & lint JS codebase

Expected a space before '/>', but not found
</div>
</div>
<form v-if="isAuth" class="mt-8 flex flex-col" @submit.prevent="createOpinion">
<p class="mb-2 text-xs font-medium text-gray-700">
Expand Down

0 comments on commit 802afc8

Please sign in to comment.