Update env variable, add basic http util, remove html
This commit is contained in:
parent
3917def262
commit
513b66ff31
|
|
@ -4,6 +4,7 @@
|
||||||
<router-view/>
|
<router-view/>
|
||||||
</AppLayout>
|
</AppLayout>
|
||||||
</div>
|
</div>
|
||||||
|
<RouterView />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
|
||||||
|
|
@ -8,43 +8,6 @@ import SupportIcon from './icons/IconSupport.vue'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<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>
|
<WelcomeItem>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<CommunityIcon />
|
<CommunityIcon />
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
import axios from 'axios';
|
||||||
|
|
||||||
|
export function getUserData () {
|
||||||
|
return axios({
|
||||||
|
method: 'get',
|
||||||
|
url: 'http://localhost:3000/api/me',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -4,6 +4,25 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</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>
|
<style>
|
||||||
@media (min-width: 1024px) {
|
@media (min-width: 1024px) {
|
||||||
.about {
|
.about {
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ AUTH_USER_MODEL = "core.User"
|
||||||
# https://docs.djangoproject.com/en/dev/ref/settings/#login-url
|
# https://docs.djangoproject.com/en/dev/ref/settings/#login-url
|
||||||
LOGIN_URL = "/sso/login/"
|
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
|
# PASSWORDS
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue