removed useless files, swagger being useless
This commit is contained in:
parent
5978c0ec7b
commit
decc83b4c2
10
src/App.vue
10
src/App.vue
@ -35,11 +35,6 @@
|
||||
command:() => router.push({name:'login'}),
|
||||
icon:'pi pi-user',
|
||||
},
|
||||
{
|
||||
label:'Swagger',
|
||||
command:() => router.push({name:'swagger'}),
|
||||
icon:'pi pi-cog',
|
||||
},
|
||||
{
|
||||
label:'Logout',
|
||||
command:() => {
|
||||
@ -57,11 +52,6 @@
|
||||
command:() => router.push({name:'login'}),
|
||||
icon:'pi pi-user',
|
||||
},
|
||||
{
|
||||
label:'Swagger',
|
||||
command:() => router.push({name:'swagger'}),
|
||||
icon:'pi pi-cog',
|
||||
},
|
||||
];
|
||||
}
|
||||
};
|
||||
|
@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|
Before Width: | Height: | Size: 496 B |
@ -1,6 +1,5 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
import ProductsView from '../views/Products.vue';
|
||||
import SwaggerView from '../views/Swagger.vue';
|
||||
import LoginView from '../views/Login.vue';
|
||||
import DashboardView from '../views/Dashboard.vue';
|
||||
import WarehousesView from '../views/Warehouses.vue';
|
||||
@ -34,12 +33,7 @@ const routes = [
|
||||
path: '/login',
|
||||
name: 'login',
|
||||
component: LoginView,
|
||||
},
|
||||
{
|
||||
path: '/swagger',
|
||||
name: 'swagger',
|
||||
component: SwaggerView,
|
||||
},
|
||||
}
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
|
@ -1,25 +0,0 @@
|
||||
<script>
|
||||
import SwaggerUI from "swagger-ui";
|
||||
import "swagger-ui/dist/swagger-ui.css";
|
||||
|
||||
export default {
|
||||
name: "Swagger",
|
||||
mounted() {
|
||||
this.initSwaggerUI();
|
||||
},
|
||||
methods: {
|
||||
initSwaggerUI() {
|
||||
SwaggerUI({
|
||||
url: "http://127.0.0.1:8000/api/schema/", // Remplace par ton URL
|
||||
dom_id: "#swagger-container", // Le conteneur DOM où Swagger sera monté
|
||||
deepLinking: true,
|
||||
presets: [SwaggerUI.presets.apis],
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div id="swagger-container"></div>
|
||||
</template>
|
Loading…
x
Reference in New Issue
Block a user