Better information extraction from x509 command (#20)
- Fixes some issues with IPv6-only build on Forgejo - Adds experimental Dockerfile for devemopment deployment Co-authored-by: Ghost <> Co-committed-by: Ghost <>
This commit is contained in:
parent
0cac57dd15
commit
2b640d7578
19 changed files with 2429 additions and 939 deletions
|
@ -73,7 +73,9 @@
|
|||
rounded="lg"
|
||||
title="Internet certificate support"
|
||||
variant="text"
|
||||
/>
|
||||
>
|
||||
{{ loggedInUser?.name }}
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-responsive>
|
||||
|
@ -81,5 +83,12 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import {onMounted, ref} from "vue";
|
||||
|
||||
const loggedInUser = ref<{name: string} | null>(null);
|
||||
|
||||
onMounted(async () => {
|
||||
loggedInUser.value = await (await fetch('http://localhost:8080/api/v1/users/self')).json();
|
||||
})
|
||||
//
|
||||
</script>
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
import { registerPlugins } from '@/plugins'
|
||||
|
||||
import { setupBackendMocking } from '@/plugins/mock-service-worker';
|
||||
import App from './App.vue'
|
||||
|
||||
import { createApp } from 'vue'
|
||||
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
setupBackendMocking().then(worker => worker.start());
|
||||
}
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
registerPlugins(app)
|
||||
|
|
19
frontend/src/plugins/mock-service-worker.ts
Normal file
19
frontend/src/plugins/mock-service-worker.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import {http, HttpResponse} from "msw";
|
||||
import {setupWorker} from "msw/browser";
|
||||
|
||||
export const MOCK_BASEURL = "http://localhost:8080";
|
||||
|
||||
const setupHandlers = async () => {
|
||||
return [
|
||||
http.get(`${MOCK_BASEURL}/api/v1/users/self`, () => HttpResponse.json({
|
||||
id: window.crypto.randomUUID(),
|
||||
name: 'Max Mustermann',
|
||||
mail: 'testmail@example.com',
|
||||
})),
|
||||
]
|
||||
}
|
||||
|
||||
export async function setupBackendMocking() {
|
||||
const handlers = await setupHandlers();
|
||||
return setupWorker(...handlers);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue