Commit eae11839 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Mise en place de Vite

parent 5c72c4f7
Loading
Loading
Loading
Loading
+7 −19
Changes for code/test3.php: 7 added lines, 19 removed lines.
Original line number Diff line number Diff line
@@ -7,24 +7,12 @@
 * @var $viewName   string
 * @var $viewFile   string
 */


?>
<template>
    <div>
        <button ref="button" class="btn btn-secondary" v-b-popover.hover="popoverContent">
            Afficher la popover
        </button>
    </div>
</template>
<h2>mission</h2>
<mission mission="{msg:'test de mission'}"></mission>

<h2>test</h2>
<mission-test msg="Et voici mon test!"></mission-test>

<script>
    export default {
        data()
        {
            return {
                popoverContent: 'Contenu de la popover'
            }
        }
    }
</script>
 No newline at end of file
<h2>Hello world</h2>
<hello-world msg="bonjour le monde!"></hello-world>
 No newline at end of file
+6.69 KiB
Loading image diff...
+37
Changes for front/components/HelloWorld.vue: 37 added lines, 0 removed lines.
Original line number Diff line number Diff line
<template>
  <img alt="Vue logo" src="../assets/logo.png" height="40"/>

  <h1>Vue {{ msg }}</h1>

  <p>
    <a href="https://vitejs.dev/guide/features.html" target="_blank">
      Vite Documentation
    </a>
    |
    <a href="https://v3.vuejs.org/" target="_blank">Vue 3 Documentation</a>
  </p>

  <button type="button" @click="state.count++">
    count is: {{ state.count }}
  </button>
  <p>
    Edit
    <code>components/HelloWorld.vue</code>
  </p>
</template>

<script setup>
import {reactive} from 'vue'

defineProps({
  msg: String
})

const state = reactive({count: 0})
</script>

<style scoped>
a {
  color: blue;
}
</style>
+19
Changes for front/components/Mission.vue: 19 added lines, 0 removed lines.
Original line number Diff line number Diff line
<template>
  <div>{{ mission }}</div>
</template>

<script>
export default {
  props: {
    mission: {
      type: String,
      required: true
    }
  }

}
</script>

<style scoped>

</style>
 No newline at end of file
+18
Changes for front/components/Mission/Test.vue: 18 added lines, 0 removed lines.
Original line number Diff line number Diff line
<template>
  {{ msg }}
  <a href="#">Mon lien</a>
</template>

<script>
export default {
  props: {
    msg: String
  }
}
</script>

<style scoped>
a {
  color: yellowgreen;
}
</style>
Loading