Commit 729816a9 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Ajout de BootstrapVue au projet

parent f06314fc
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -2569,16 +2569,16 @@
        },
        {
            "name": "laminas/laminas-form",
            "version": "3.8.0",
            "version": "3.9.0",
            "source": {
                "type": "git",
                "url": "https://github.com/laminas/laminas-form.git",
                "reference": "087def3e3e4a70c618cdf622fbea8840280ff1c2"
                "reference": "843056ab671477be0204ceb7f13feaab41193b52"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/laminas/laminas-form/zipball/087def3e3e4a70c618cdf622fbea8840280ff1c2",
                "reference": "087def3e3e4a70c618cdf622fbea8840280ff1c2",
                "url": "https://api.github.com/repos/laminas/laminas-form/zipball/843056ab671477be0204ceb7f13feaab41193b52",
                "reference": "843056ab671477be0204ceb7f13feaab41193b52",
                "shasum": ""
            },
            "require": {
@@ -2662,7 +2662,7 @@
                    "type": "community_bridge"
                }
            ],
            "time": "2022-12-05T19:11:27+00:00"
            "time": "2023-03-13T17:53:17+00:00"
        },
        {
            "name": "laminas/laminas-http",

front/Application/UI/UTabs.vue

deleted100644 → 0
+0 −42
Original line number Diff line number Diff line
<template>
    <ul class="nav nav-tabs" role="tablist">
        <li v-for="(label,id) in tabs" class="nav-item" role="presentation">
            <a class="nav-link" :class="id === currentTab ? 'active' : ''" data-bs-togggle="tab" :data-bs-target="'#'+id" type="button" role="tab" :aria-controls="id" aria-selected="true" @click="selectTab">{{ label }}</a>
        </li>
    </ul>
    <div class="tab-content">
        <div v-for="(label,id) in tabs" :key="id" class="tab-pane fade show" :class="id === currentTab ? 'active' : ''" :id="id" role="tabpanel"
             :aria-labelledby="id+'-tab'">
            <slot :name="id"></slot>
        </div>
    </div>
</template>

<script>

export default {
    name: "UTabs",
    props: {
        tab: {type: String, required: true},
        tabs: {type: Array, required: true}
    },
    data(){
        return {
            currentTab: this.tab
        };
    },
    mounted(){

    },
    methods: {
        selectTab(event){
            this.currentTab = event.target.attributes.getNamedItem('aria-controls').value;
            this.$emit('changeTab', this.currentTab);
        },
    }
}
</script>

<style scoped>

</style>
 No newline at end of file
+0 −2
Original line number Diff line number Diff line
@@ -4,8 +4,6 @@ export default {
    uHeures: 'Application/UI/UHeures',
    uModal: 'Application/UI/UModal',
    uCalendar: 'Application/UI/UCalendar',
    uTabs: 'Application/UI/UTabs',
    uFormDate: 'Application/UI/UFormDate',

    /* App common components */
    utilisateur: 'Application/Utilisateur',
+1742 −16

File changed.

Preview size limit exceeded, changes collapsed.

+4 −2
Original line number Diff line number Diff line
@@ -10,13 +10,15 @@
    "build": "vite build"
  },
  "dependencies": {
    "bootstrap-vue-next": "^0.7.3",
    "vue": "^3.2.45"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "^4.0.0",
    "@vue/compiler-sfc": "^3.2.45",
    "sass": "^1.57.1",
    "unplugin-vue-components": "^0.24.1",
    "vite": "^4.0.0",
    "vite-plugin-live-reload": "^3.0.1",
    "sass": "^1.57.1"
    "vite-plugin-live-reload": "^3.0.1"
  }
}
Loading