PHP Classes
elePHPant
Icontem

File: public/js/frontend/main.vue

Recommend this page to a friend!
  Classes of Istvan Dobrentei  >  PHP Timesheet Management System  >  public/js/frontend/main.vue  >  Download  
File: public/js/frontend/main.vue
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Timesheet Management System
Manage project tasks and the respective work times
Author: By
Last change:
Date: 9 months ago
Size: 732 bytes
 

Contents

Class file image Download
<template>
    <div id="main-page">
        <div v-if="loggedAs!=null">
            <div class="logged-as">Logged as: <strong>{{ loggedAs }}</strong></div>
            <app-menu></app-menu>
        </div>
        <router-view></router-view>
    </div>
</template>

<script type="text/ecmascript-6">
    import Menu from './components/Menu.vue'
    import Dashboard from './components/Dashboard.vue'

    export default {
        name: 'main-page',
        computed: {
            loggedAs(){
                return this.$store.getters.loggedAs
            }
        },
        components:{
            'app-menu': Menu
        }
    }
</script>

<style>
#main-page .logged-as{
    text-align: right;
    margin-right: 1%;
}
</style>