bantenprov/group-egovernment

4 Groups Indonesian's Egovernment

v0.1 2018-04-21 08:36 UTC

This package is not auto-updated.

Last update: 2024-11-10 05:45:59 UTC


README

Join the chat at https://gitter.im/group-egovernment/Lobby Scrutinizer Code Quality Build Status Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads

4 Groups in Indonesian's Egovernment

  • G2G Goverment to Goverment
  • G2E Goverment to Employee
  • G2C Goverment to Citizen
  • G2B Goverment to Business

Install via composer

  • Development snapshot
$ composer require bantenprov/group-egovernment:dev-master
  • Latest release:
$ composer require bantenprov/group-egovernment

Download via github

$ git clone https://github.com/bantenprov/group-egovernment.git

Edit config/app.php :

'providers' => [

    /*
     * Package Service Providers...
     */
    Laravel\Tinker\TinkerServiceProvider::class,
    //....
    Bantenprov\GroupEgovernment\GroupEgovernmentServiceProvider::class,

Publish vendor :

$ php artisan vendor:publish --tag=group-egovernment-seeds
$ php artisan vendor:publish --tag=group-egovernment-assets
$ php artisan vendor:publish --tag=group-egovernment-public

Lakukan auto dump :

$ composer dump-autoload

Lakukan migrate :

$ php artisan migrate

Lakukan seeding :

$ php artisan db:seed --class=BantenprovGroupEgovernmentSeeder

Tambahkan route di dalam file : resources/assets/js/routes.js :

{
    path: '/dashboard',
    redirect: '/dashboard/home',
    component: layout('Default'),
    children: [
        //== ...
        {
            path: '/dashboard/group-egovernment',
            components: {
                main: resolve => require(['./components/views/bantenprov/group-egovernment/DashboardGroupEgovernment.vue'], resolve),
                navbar: resolve => require(['./components/Navbar.vue'], resolve),
                sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Group Egovernment"
            }
        },
        //== ...
    ]
},
function layout(name) {
  return function(resolve) {
    require(['./layouts/' + name + '.vue'], resolve);
  }
}

let routes = [

     {
    path: '/',
    name: 'home',
    component: resolve => require(['./components/views/Home.vue'], resolve),
  },
    //== ...

  {
    path: '/group-egovernment/:id',
    name: 'home',
    component: resolve => require(['./components/bantenprov/group-egovernment/GroupEgovernment.show.vue'], resolve),
    meta: {
        title: "Group Egovernment"
    }
  },

  //== ...

 
  {
    path: '/sign-in',
    name: 'sign-in',
    component: resolve => require(['./components/views/SignIn.vue'], resolve),
    meta: {
      title: "Sign in"
    }
  },
{
    path: '/admin',
    redirect: '/admin/dashboard/home',
    component: layout('Default'),
    children: [
        //== ...
        {
            path: '/admin/group-egovernment',
            components: {
                main: resolve => require(['./components/bantenprov/group-egovernment/GroupEgovernment.index.vue'], resolve),
                navbar: resolve => require(['./components/Navbar.vue'], resolve),
                sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Group Egovernment"
            }
        },
        {
            path: '/admin/group-egovernment/create',
            components: {
                main: resolve => require(['./components/bantenprov/group-egovernment/GroupEgovernment.add.vue'], resolve),
                navbar: resolve => require(['./components/Navbar.vue'], resolve),
                sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Add Group Egovernment"
            }
        },
        {
            path: '/admin/group-egovernment/:id',
            components: {
                main: resolve => require(['./components/bantenprov/group-egovernment/GroupEgovernment.show.vue'], resolve),
                navbar: resolve => require(['./components/Navbar.vue'], resolve),
                sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "View Group Egovernment"
            }
        },
        {
            path: '/admin/group-egovernment/:id/edit',
            components: {
                main: resolve => require(['./components/bantenprov/group-egovernment/GroupEgovernment.edit.vue'], resolve),
                navbar: resolve => require(['./components/Navbar.vue'], resolve),
                sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Edit Group Egovernment"
            }
        },
        //== ...
    ]
},

Edit menu resources/assets/js/menu.js

{
    name: 'Dashboard',
    icon: 'fa fa-dashboard',
    childType: 'collapse',
    childItem: [
        //== ...
        {
            name: 'Group Egovernment',
            link: '/dashboard/group-egovernment',
            icon: 'fa fa-angle-double-right'
        },
        //== ...
    ]
},
{
    name: 'Admin',
    icon: 'fa fa-lock',
    childType: 'collapse',
    childItem: [
        //== ...
        {
            name: 'Group Egovernment',
            link: '/admin/group-egovernment',
            icon: 'fa fa-angle-double-right'
        },
        //== ...
    ]
},

Tambahkan components resources/assets/js/components.js :

import GroupEgovernment from './components/bantenprov/group-egovernment/GroupEgovernment.chart.vue';
Vue.component('echarts-group-egovernment', GroupEgovernment);

import GroupEgovernmentKota from './components/bantenprov/group-egovernment/GroupEgovernmentKota.chart.vue';
Vue.component('echarts-group-egovernment-kota', GroupEgovernmentKota);

import GroupEgovernmentTahun from './components/bantenprov/group-egovernment/GroupEgovernmentTahun.chart.vue';
Vue.component('echarts-group-egovernment-tahun', GroupEgovernmentTahun);

import GroupEgovernmentAdminShow from './components/bantenprov/group-egovernment/GroupEgovernmentAdmin.show.vue';
Vue.component('admin-view-group-egovernment-tahun', GroupEgovernmentAdminShow);

import GroupEgovernmentList from './components/bantenprov/group-egovernment/partials/GroupEgovernmentList.vue';
Vue.component('group-egovernment-list', GroupEgovernmentList)


//== Echarts Group Egoverment

import GroupEgovernmentBar01 from './components/views/bantenprov/group-egovernment/GroupEgovernmentBar01.vue';
Vue.component('group-egovernment-bar-01', GroupEgovernmentBar01);

import GroupEgovernmentBar02 from './components/views/bantenprov/group-egovernment/GroupEgovernmentBar02.vue';
Vue.component('group-egovernment-bar-02', GroupEgovernmentBar02);

//== mini bar charts
import GroupEgovernmentBar03 from './components/views/bantenprov/group-egovernment/GroupEgovernmentBar03.vue';
Vue.component('group-egovernment-bar-03', GroupEgovernmentBar03);

import GroupEgovernmentPie01 from './components/views/bantenprov/group-egovernment/GroupEgovernmentPie01.vue';
Vue.component('group-egovernment-pie-01', GroupEgovernmentPie01);

import GroupEgovernmentPie02 from './components/views/bantenprov/group-egovernment/GroupEgovernmentPie02.vue';
Vue.component('group-egovernment-pie-02', GroupEgovernmentPie02);

//== mini pie charts
import GroupEgovernmentPie03 from './components/views/bantenprov/group-egovernment/GroupEgovernmentPie03.vue';
Vue.component('group-egovernment-pie-03', GroupEgovernmentPie03);