bantenprov/angka-partisipasi-murni

Angka parisipasi murni (APK)

dev-master 2018-03-09 10:58 UTC

This package is not auto-updated.

Last update: 2024-12-17 18:32:03 UTC


README

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

Angka partisipasi Murni (APM)

install via composer

  • Development snapshot
$ composer require bantenprov/angka-partisipasi-murni:dev-master
  • Latest release:

download via github

bash
$ git clone https://github.com/bantenprov/angka-partisipasi-murni.git

Edit config/app.php :

'providers' => [

    /*
    * Laravel Framework Service Providers...
    */
    Illuminate\Auth\AuthServiceProvider::class,
    Illuminate\Broadcasting\BroadcastServiceProvider::class,
    Illuminate\Bus\BusServiceProvider::class,
    Illuminate\Cache\CacheServiceProvider::class,
    Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
    Illuminate\Cookie\CookieServiceProvider::class,
    //....
    Bantenprov\APMurni\APMurniServiceProvider::class,

Untuk publish component vue :

$ php artisan vendor:publish --tag=ap-murni-assets
$ php artisan vendor:publish --tag=ap-murni-public

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

path: '/dashboard',
component: layout('Default'),
children: [
  {
    path: '/dashboard',
    components: {
      main: resolve => require(['./components/views/DashboardHome.vue'], resolve),
      navbar: resolve => require(['./components/Navbar.vue'], resolve),
      sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
    },
    meta: {
      title: "Dashboard"
    }
  },
  //== ...
  {
    path: '/dashboard/ap-murni',
    components: {
      main: resolve => require(['./components/views/bantenprov/ap-murni/DashboardAPMurni.vue'], resolve),
      navbar: resolve => require(['./components/Navbar.vue'], resolve),
      sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
    },
    meta: {
      title: "AP Murni"
    }
  }
{
path: '/admin',
redirect: '/admin/dashboard',
component: resolve => require(['./AdminLayout.vue'], resolve),
children: [
//== ...
    {
      path: '/admin/dashboard/ap-murni',
      components: {
        main: resolve => require(['./components/bantenprov/ap-murni/APMurniAdmin.show.vue'], resolve),
        navbar: resolve => require(['./components/Navbar.vue'], resolve),
        sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
      },
      meta: {
        title: "AP Murni"
      }
    }
 //== ...   
  ]
},

Edit menu resources/assets/js/menu.js

{
  name: 'Dashboard',
  icon: 'fa fa-dashboard',
  childType: 'collapse',
  childItem: [
        {
          name: 'Dashboard',
          link: '/dashboard',
          icon: 'fa fa-angle-double-right'
        },
        {
          name: 'Entity',
          link: '/dashboard/entity',
          icon: 'fa fa-angle-double-right'
        },
        //== ...
        {
          name: 'AP Murni',
          link: '/dashboard/ap-murni',
          icon: 'fa fa-angle-double-right'
        }
  ]
},

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

import APMurni from './components/bantenprov/ap-murni/APMurni.chart.vue';
Vue.component('echarts-ap-murni', APMurni);

import APMurniKota from './components/bantenprov/ap-murni/APMurniKota.chart.vue';
Vue.component('echarts-ap-murni-kota', APMurniKota);

import APMurniTahun from './components/bantenprov/ap-murni/APMurniTahun.chart.vue';
Vue.component('echarts-ap-murni-tahun', APMurniTahun);

import APMurniAdminShow from './components/bantenprov/ap-murni/APMurniAdmin.show.vue';
Vue.component('admin-view-ap-murni-tahun', APMurniAdminShow);

//== Echarts Angka Partisipasi Murni

import APMurniBar01 from './components/views/bantenprov/ap-murni/APMurniBar01.vue';
Vue.component('ap-murni-bar-01', APMurniBar01);

import APMurniBar02 from './components/views/bantenprov/ap-murni/APMurniBar02.vue';
Vue.component('ap-murni-bar-02', APMurniBar02);

//== mini bar charts
import APMurniBar03 from './components/views/bantenprov/ap-murni/APMurniBar03.vue';
Vue.component('ap-murni-bar-03', APMurniBar03);

import APMurniPie01 from './components/views/bantenprov/ap-murni/APMurniPie01.vue';
Vue.component('ap-murni-pie-01', APMurniPie01);

import APMurniPie02 from './components/views/bantenprov/ap-murni/APMurniPie02.vue';
Vue.component('ap-murni-pie-02', APMurniPie02);

//== mini pie charts
import APMurniPie03 from './components/views/bantenprov/ap-murni/APMurniPie03.vue';
Vue.component('ap-murni-pie-03', APMurniPie03);