advent-of-code

Entries to advent of code, multiple years
git clone git://git.finwo.net/misc/advent-of-code
Log | Files | Refs

home.vue (742B)


      1 <template>
      2   <layout>
      3     This is the home page, please navigate using the left sidebar
      4   </layout>
      5 </template>
      6 
      7 <script lang="ts">
      8 import Layout from '../layout/default.vue';
      9 
     10 import { useNotificationStore } from '@dafcoe/vue-notification'
     11 const { setNotification } = useNotificationStore()
     12 
     13 export default {
     14   components: {Layout},
     15   setup() {
     16     setNotification({
     17       message             : 'Notifications will appear here',
     18       type                : 'success',
     19       showIcon            : true,
     20       duration            : 4e3,
     21       showDurationProgress: true,
     22       appearance          : 'light',
     23       dismiss             : {
     24         manually      : true,
     25         automatically : true,
     26       }
     27     });
     28     return;
     29   }
     30 
     31 }
     32 </script>