Skip to content

Commit

Permalink
Merge branch '#10-regulations-for-escooters' of https://github.com/bl…
Browse files Browse the repository at this point in the history
…umilksoftware/escooters into #10-regulations-for-escooters
  • Loading branch information
Lee0z committed Jan 13, 2024
2 parents a69e750 + b1c67b5 commit d6a83a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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:'ładowanie informacji o zasadach, proszę czekać...', en:'loading info about rules, please wait...'})
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>'})

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

View workflow job for this annotation

GitHub Actions / Test & lint JS codebase

A space is required after '{'

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

View workflow job for this annotation

GitHub Actions / Test & lint JS codebase

Missing space before value for key 'pl'

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

View workflow job for this annotation

GitHub Actions / Test & lint JS codebase

Missing space before value for key 'en'

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

View workflow job for this annotation

GitHub Actions / Test & lint JS codebase

A space is required before '}'
fetchRegulations()
const props = defineProps({
Expand Down Expand Up @@ -135,8 +135,7 @@ 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">
{{ currentRules }}
<div :class="regulationsOpen?'show':''" class="overflow-scroll transition" v-html="currentRules">

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

View workflow job for this annotation

GitHub Actions / Test & lint JS codebase

Require self-closing on HTML elements (<div>)

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

View workflow job for this annotation

GitHub Actions / Test & lint JS codebase

'v-html' directive can lead to XSS attack
</div>
</div>
<form v-if="isAuth" class="mt-8 flex flex-col" @submit.prevent="createOpinion">
Expand Down

0 comments on commit d6a83a9

Please sign in to comment.