Merge conflicts
This commit is contained in:
@@ -96,34 +96,28 @@
|
|||||||
|
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useClient } from '@/plugins/clientPlugin';
|
import FooterLayout from '@/layouts/FooterLayout.vue';
|
||||||
import { useAuthStore } from '@/plugins/store/authStore';
|
import {authStore} from '@/plugins/store/authStore';
|
||||||
import { ref } from 'vue';
|
import {ref} from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import {useRouter} from 'vue-router';
|
||||||
|
import {useClient} from "@/plugins/clientPlugin.js";
|
||||||
|
|
||||||
const authStore = useAuthStore();
|
const api = useClient()
|
||||||
const client = useClient();
|
|
||||||
|
const store = authStore();
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
let user = ref({});
|
let user = ref({});
|
||||||
let errorSnackBar = ref(false);
|
let errorSnackBar = ref(false);
|
||||||
|
|
||||||
const goHome = () => {
|
|
||||||
router.push('/');
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async function login() {
|
async function login() {
|
||||||
try {
|
try {
|
||||||
await authStore.login(client, user.value.email, user.value.password)
|
await store.login(api, user.value.email, user.value.password)
|
||||||
router.push('/');
|
router.push('/');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
errorSnackBar.value = true;
|
errorSnackBar.value = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@@ -453,4 +447,4 @@ async function login() {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -154,6 +154,26 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
first_name: '',
|
||||||
|
last_name: '',
|
||||||
|
email: '',
|
||||||
|
message: '',
|
||||||
|
social_media: '',
|
||||||
|
phone_number: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
submit() {
|
||||||
|
this.$emit('submit', this.email)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import FooterLayout from '@/layouts/FooterLayout.vue';
|
import FooterLayout from '@/layouts/FooterLayout.vue';
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-app style="background-color: #F4F4F4;">
|
<v-app style="background-color: #F4F4F4;">
|
||||||
|
|
||||||
|
|
||||||
<div style="background-color: #F4F4F4;">
|
<div style="background-color: #F4F4F4;">
|
||||||
|
|
||||||
<!--PC -->
|
<!--PC -->
|
||||||
@@ -193,14 +192,14 @@
|
|||||||
<!-- Colonne de droite -->
|
<!-- Colonne de droite -->
|
||||||
<v-col cols="3">
|
<v-col cols="3">
|
||||||
<v-img src="../../../images/homepage/grinding.png"
|
<v-img src="../../../images/homepage/grinding.png"
|
||||||
style="margin-bottom: 4%; border-radius: 30px; width: 80 vw;"></v-img>
|
style="margin-bottom: 4%; border-radius: 30px; width: 80vw;"></v-img>
|
||||||
<v-img src="../../../images/homepage/girlarmy.png" style="border-radius: 30px; min-width: 250px;"></v-img>
|
<v-img src="../../../images/homepage/girlarmy.png" style="border-radius: 30px; min-width: 250px;"></v-img>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="3" style>
|
<v-col cols="3" style>
|
||||||
<v-img src="../../../images/homepage/microphone.png"
|
<v-img src="../../../images/homepage/microphone.png"
|
||||||
style="margin-bottom: 4%; border-radius: 30px; min-width: 250px; max-height: auto; height: auto;"></v-img>
|
style="margin-bottom: 4%; border-radius: 30px; min-width: 250px; max-height: auto; height: auto;"></v-img>
|
||||||
<v-img src="../../../images/homepage/girlvr.png"
|
<v-img src="../../../images/homepage/girlvr.png"
|
||||||
style="border-radius: 30px; min-width: 250pxpx; max-height: 350;"></v-img>
|
style="border-radius: 30px; min-width: 250px; max-height: 350px;"></v-img>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-container>
|
</v-container>
|
||||||
@@ -247,7 +246,6 @@
|
|||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
|
||||||
<v-col>
|
<v-col>
|
||||||
<router-link :to="{ name: 'creatorfolio' }">
|
<router-link :to="{ name: 'creatorfolio' }">
|
||||||
<img src="../../../images/guillaume.jpg" alt="Profile Image" class="profile-image">
|
<img src="../../../images/guillaume.jpg" alt="Profile Image" class="profile-image">
|
||||||
@@ -259,11 +257,7 @@
|
|||||||
Inscription
|
Inscription
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
|
|
||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
|
|
||||||
@@ -405,27 +399,22 @@
|
|||||||
</v-app>
|
</v-app>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script async setup>
|
<script setup>
|
||||||
import DefaultLayout from '@/layouts/DefaultLayout.vue';
|
import DefaultLayout from '@/layouts/DefaultLayout.vue';
|
||||||
import FooterLayout from '@/layouts/FooterLayout.vue';
|
import FooterLayout from '@/layouts/FooterLayout.vue';
|
||||||
import { useClient } from '@/plugins/clientPlugin';
|
import {useClient} from "@/plugins/clientPlugin.js";
|
||||||
import { ref } from 'vue';
|
import {ref} from "vue";
|
||||||
import { useRouter } from 'vue-router';
|
import {useRouter} from "vue-router";
|
||||||
|
|
||||||
|
|
||||||
|
const api = useClient()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const client = useClient();
|
const itemList = ref([]);
|
||||||
|
const errorNoAccessSnackBar = ref(false);
|
||||||
|
|
||||||
let itemList = ref([]);
|
const callBackend = async () => {
|
||||||
let errorNoAccessSnackBar = ref(false);
|
|
||||||
|
|
||||||
async function callBackend() {
|
|
||||||
try {
|
try {
|
||||||
const response = await client.get('/api/TodoItems?ListId=1&PageNumber=1&PageSize=10');
|
const response = await api.get('/api/TodoItems?ListId=1&PageNumber=1&PageSize=10');
|
||||||
const responseItems = response.data.items;
|
itemList.value = response.data.items;
|
||||||
const orderedResponseItems = responseItems.sort((a, b) => a.id - b.id);
|
|
||||||
itemList.value = orderedResponseItems
|
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
errorNoAccessSnackBar.value = true;
|
errorNoAccessSnackBar.value = true;
|
||||||
}
|
}
|
||||||
@@ -434,8 +423,6 @@ async function callBackend() {
|
|||||||
const goToLoginPage = () => {
|
const goToLoginPage = () => {
|
||||||
router.push('/login');
|
router.push('/login');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style src="../../cssstyle/index.css"></style>
|
<style src="../../cssstyle/index.css"></style>
|
||||||
|
|||||||
Reference in New Issue
Block a user