bantenprov/pendaftaran

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

This package is not auto-updated.

Last update: 2024-09-29 04:49:39 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

注册

此模块需要

vue-moment moment-timezone vue-trust

通过composer安装

  • 开发快照
$ composer require bantenprov/pendaftaran:dev-master
  • 最新版本
$ composer require bantenprov/pendaftaran

安装 vue-trust

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

Vue Trust 文档:Vue trust

安装 vue-moment

$ npm install vue-moment

安装 moment-timezone

$ npm install moment-timezone

atau

$ npm install moment-timezone --save

通过github下载

$ git clone https://github.com/bantenprov/pendaftaran.git

编辑 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,

执行迁移

$ php artisan migrate

发布数据库生成器

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

执行自动导出

$ composer dump-autoload

执行播种

$ php artisan db:seed --class=BantenprovPendaftaranSeeder

发布vue组件

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

在文件 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"
            }
        },
        //== ...
    ]
},

编辑菜单 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'
        },
        //== ...
    ]
},

添加组件到 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);