Skip to content

Commit

Permalink
Rename component to follow vue conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Apr 12, 2024
1 parent ca1eadd commit 2262cd3
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup>
const props = defineProps({
alert: Object
defineProps({
alert: [Object, null]
})
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ auth.check()
:icon="['fas', 'circle-check']" />
<font-awesome-icon
class="uk-text-danger"
v-else="auth.auth"
v-else
:icon="['fas', 'circle-xmark']" />
</p>
<p v-if="auth.auth">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup>
import { useAuthStore } from '../../stores/auth.js'
import Alert from '../Alert.vue'
import Alert from '../AlertContainer.vue'
const auth = useAuthStore()
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ getList()

<template>
<ul class="uk-list">
<li v-for="item in resources">
<li v-for="item in resources" :key="item.id">
<a class="uk-button uk-button-default" :href="item.url">
#{{ item.number }} - {{ item.title }}
</a>
Expand Down
2 changes: 1 addition & 1 deletion app/assets/views/ApiView.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup>
import Resources from '../components/Resources.vue'
import Resources from '../components/ResourcesList.vue'
</script>

<template>
Expand Down
8 changes: 4 additions & 4 deletions app/assets/views/AuthView.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup>
import AuthCheck from '../components/Auth/Check.vue'
import Login from '../components/Auth/Login.vue'
import Logout from '../components/Auth/Logout.vue'
import AuthCheck from '../components/Auth/AuthCheck.vue'
import Login from '../components/Auth/AuthLogin.vue'
import Logout from '../components/Auth/AuthLogout.vue'
import { useAuthStore } from '../stores/auth.js'
const auth = useAuthStore()
</script>
Expand All @@ -12,7 +12,7 @@ const auth = useAuthStore()
<div v-if="auth.auth">
<Logout />
</div>
<div v-else="auth.auth">
<div v-else>
<Login />
</div>
<div>
Expand Down

0 comments on commit 2262cd3

Please sign in to comment.