Update env variable, add basic http util, remove html

This commit is contained in:
Christian Cueni 2022-04-14 16:02:17 +02:00
parent 3917def262
commit 513b66ff31
5 changed files with 29 additions and 38 deletions

View File

@ -4,6 +4,7 @@
<router-view/>
</AppLayout>
</div>
<RouterView />
</template>
<script setup lang="ts">

View File

@ -8,43 +8,6 @@ import SupportIcon from './icons/IconSupport.vue'
</script>
<template>
<WelcomeItem>
<template #icon>
<ToolingIcon />
</template>
<template #heading>Tooling</template>
This project is served and bundled with
<a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The recommended IDE
setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
<a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
your components and web pages, check out
<a href="https://www.cypress.io/" target="_blank">Cypress</a> and
<a href="https://docs.cypress.io/guides/component-testing/introduction" target="_blank"
>Cypress Component Testing</a
>.
<br />
More instructions are available in <code>README.md</code>.
</WelcomeItem>
<WelcomeItem>
<template #icon>
<EcosystemIcon />
</template>
<template #heading>Ecosystem</template>
Get official tools and libraries for your project:
<a target="_blank" href="https://pinia.vuejs.org/">Pinia</a>,
<a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
<a target="_blank" href="https://test-utils.vuejs.org/">Vue Test Utils</a>, and
<a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
resources, we suggest paying
<a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</a>
a visit.
</WelcomeItem>
<WelcomeItem>
<template #icon>
<CommunityIcon />

View File

@ -0,0 +1,8 @@
import axios from 'axios';
export function getUserData () {
return axios({
method: 'get',
url: 'http://localhost:3000/api/me',
})
}

View File

@ -4,6 +4,25 @@
</div>
</template>
<script>
import { ref, onMounted } from 'vue'
import { getUserData } from '@/services/http'
export default {
setup () {
onMounted(async () => {
const res = await getUserData();
users.value = res.data;
console.log(res);
});
return {
}
},
}
</script>
<style>
@media (min-width: 1024px) {
.about {

View File

@ -112,7 +112,7 @@ AUTH_USER_MODEL = "core.User"
# https://docs.djangoproject.com/en/dev/ref/settings/#login-url
LOGIN_URL = "/sso/login/"
ALLOW_LOCAL_LOGIN = env.bool("VBV_ALLOW_LOCAL_LOGIN", default=False)
ALLOW_LOCAL_LOGIN = env.bool("IT_ALLOW_LOCAL_LOGIN", default=False)
# PASSWORDS
# ------------------------------------------------------------------------------