bantenprov/pendaftaran

Pendaftaran

dev-master 2018-05-27 14:14 UTC

This package is not auto-updated.

Last update: 2024-12-22 05:55:30 UTC


README

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

Pendaftaran

modul ini membutuhkan :

vue-moment moment-timezone vue-trust

Install via composer

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

Install vue-trust

$ composer require bantenprov/vue-trust:dev-master

Vue Trust Documentation : Vue trust

Install vue-moment

$ npm install vue-moment

Install moment-timezone

$ npm install moment-timezone

atau

$ npm install moment-timezone --save

Download via github

$ git clone https://github.com/bantenprov/pendaftaran.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\Pendaftaran\PendaftaranServiceProvider::class,

Lakukan migrate :

$ php artisan migrate

Publish database seeder :

$ php artisan vendor:publish --tag=pendaftaran-seeds

Lakukan auto dump :

$ composer dump-autoload

Lakukan seeding :

$ php artisan db:seed --class=BantenprovPendaftaranSeeder

Lakukan publish component vue :

$ php artisan vendor:publish --tag=pendaftaran-assets
$ php artisan vendor:publish --tag=pendaftaran-public

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

{
    path: '/dashboard',
    redirect: '/dashboard/home',
    component: layout('Default'),
    children: [
        //== ...
        {
         path: '/dashboard/pendaftaran',
         components: {
            main: resolve => require(['./components/views/bantenprov/pendaftaran/DashboardPendaftaran.vue'], resolve),
            navbar: resolve => require(['./components/Navbar.vue'], resolve),
            sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
          },
          meta: {
            title: "Pendaftaran"
           }
       },
        //== ...
    ]
},
{
    path: '/admin',
    redirect: '/admin/dashboard/home',
    component: layout('Default'),
    children: [
        //== ...
        {
            path: '/admin/pendaftaran',
            components: {
                main: resolve => require(['./components/bantenprov/pendaftaran/Pendaftaran.index.vue'], resolve),
                navbar: resolve => require(['./components/Navbar.vue'], resolve),
                sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Pendaftaran"
            }
        },
        {
            path: '/admin/pendaftaran/create',
            components: {
                main: resolve => require(['./components/bantenprov/pendaftaran/Pendaftaran.add.vue'], resolve),
                navbar: resolve => require(['./components/Navbar.vue'], resolve),
                sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Add Pendaftaran"
            }
        },
        {
            path: '/admin/pendaftaran/:id',
            components: {
                main: resolve => require(['./components/bantenprov/pendaftaran/Pendaftaran.show.vue'], resolve),
                navbar: resolve => require(['./components/Navbar.vue'], resolve),
                sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "View Pendaftaran"
            }
        },
        {
            path: '/admin/pendaftaran/:id/edit',
            components: {
                main: resolve => require(['./components/bantenprov/pendaftaran/Pendaftaran.edit.vue'], resolve),
                navbar: resolve => require(['./components/Navbar.vue'], resolve),
                sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Edit Pendaftaran"
            }
        },
        //== ...
    ]
},

Edit menu resources/assets/js/menu.js

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

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

//== Pendaftaran

import Pendaftaran from './components/bantenprov/pendaftaran/Pendaftaran.chart.vue';
Vue.component('echarts-pendaftaran', Pendaftaran);

import PendaftaranKota from './components/bantenprov/pendaftaran/PendaftaranKota.chart.vue';
Vue.component('echarts-pendaftaran-kota', PendaftaranKota);

import PendaftaranTahun from './components/bantenprov/pendaftaran/PendaftaranTahun.chart.vue';
Vue.component('echarts-pendaftaran-tahun', PendaftaranTahun);

import PendaftaranAdminShow from './components/bantenprov/pendaftaran/PendaftaranAdmin.show.vue';
Vue.component('admin-view-pendaftaran-tahun', PendaftaranAdminShow);

//== Echarts Group Egoverment

import PendaftaranBar01 from './components/views/bantenprov/pendaftaran/PendaftaranBar01.vue';
Vue.component('pendaftaran-bar-01', PendaftaranBar01);

import PendaftaranBar02 from './components/views/bantenprov/pendaftaran/PendaftaranBar02.vue';
Vue.component('pendaftaran-bar-02', PendaftaranBar02);

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

import PendaftaranPie01 from './components/views/bantenprov/pendaftaran/PendaftaranPie01.vue';
Vue.component('pendaftaran-pie-01', PendaftaranPie01);

import PendaftaranPie02 from './components/views/bantenprov/pendaftaran/PendaftaranPie02.vue';
Vue.component('pendaftaran-pie-02', PendaftaranPie02);

//== mini pie charts


import PendaftaranPie03 from './components/views/bantenprov/pendaftaran/PendaftaranPie03.vue';
Vue.component('pendaftaran-pie-03', PendaftaranPie03);