Files
E-Vote/resources/assets/js/routesIndex.js
T
2025-11-05 15:55:01 +08:00

355 lines
7.5 KiB
JavaScript
Vendored

import VoterLogin from './components/demo/voter/login.vue';
import VoterVerification from './components/demo/voter/verification.vue';
import VoterHome from './components/demo/voter/index.vue';
import Home from './components/demo/voter/home/index.vue';
import Mat from './components/demo/voter/home/mat.vue';
import Vote from './components/demo/voter/home/vote.vue';
import Result from './components/demo/voter/home/result.vue';
import Attendance from './components/demo/voter/home/attendance.vue';
import Zoom from './components/demo/voter/home/zoom.vue';
import AdminLogin from './components/demo/admin/login.vue';
import AdminIndex from './components/demo/admin/index.vue';
import FinalResult from './components/demo/admin/home/final.vue';
import ManageElection from './components/demo/admin/home/home.vue';
import ManageElectionIndex from './components/demo/admin/home/index.vue';
import ManageElectionResult from './components/demo/admin/home/result.vue';
import ManagePosition from './components/demo/admin/position/position.vue';
import ManagePositionIndex from './components/demo/admin/position/index.vue';
import ManagePositionAdd from './components/demo/admin/position/add.vue';
import ManagePositionEdit from './components/demo/admin/position/edit.vue';
import ManagePartylist from './components/demo/admin/partylist/partylist.vue';
import ManagePartylistIndex from './components/demo/admin/partylist/index.vue';
import ManagePartylistAdd from './components/demo/admin/partylist/add.vue';
import ManagePartylistEdit from './components/demo/admin/partylist/edit.vue';
import ManageVoter from './components/demo/admin/voter/voter.vue';
import ManageVoterIndex from './components/demo/admin/voter/index.vue';
import ManageVoterAdd from './components/demo/admin/voter/add.vue';
import ManageVoterEdit from './components/demo/admin/voter/edit.vue';
import KehadiranCalon from './components/demo/admin/voter/kehadiran.vue';
import KehadiranCalonFizikal from './components/demo/admin/voter/fizikal.vue';
import KehadiranCalonMaya from './components/demo/admin/voter/maya.vue';
import ViewKehadiranCalon from './components/demo/admin/voter/viewkehadiran.vue';
import ManageNominee from './components/demo/admin/nominee/nominee.vue';
import ManageNomineeIndex from './components/demo/admin/nominee/index.vue';
import ManageNomineeAdd from './components/demo/admin/nominee/add.vue';
import ManageNomineeEdit from './components/demo/admin/nominee/edit.vue';
import ManageAccount from './components/demo/admin/admin/admin.vue';
import ManageAccountIndex from './components/demo/admin/admin/index.vue';
import ManageAccountEdit from './components/demo/admin/admin/edit.vue';
import ManageAccountPassword from './components/demo/admin/admin/password.vue';
import ManageAccountAdd from './components/demo/admin/admin/add.vue';
import ManagePembiayaan from './components/demo/admin/admin/pembiayaan.vue';
import ManageBelianKomoditi from './components/demo/admin/admin/beliankomoditi.vue';
import ManageKontrakMurabahah from './components/demo/admin/admin/kontrakmurabahah.vue';
import CetakPermohonan from './components/demo/admin/admin/cetakpermohonan.vue';
const default_component = {
template: '<div>Not found: {{ $route.path }}</div>'
}
export default [
{
path: '/',
component: VoterHome,
children: [
{
path: '',
component: Home,
name: 'Voter Home'
},
{
path: 'mat27',
component: Mat,
name: 'Mat'
},
{
path: 'vote',
component: Vote,
name: 'Vote'
},
{
path: 'result',
component: Result,
name: 'Result'
},
{
path: 'attendance',
component: Attendance,
name: 'Attendance'
},
{
path: 'zoom',
component: Zoom,
name: 'Zoom'
}
]
},
{
path: '/login',
component: VoterLogin,
name: 'Voter Login'
},
{
path: '/verification',
component: VoterVerification,
name: 'Voter Verify'
},
{
path: '/admin/login',
component: AdminLogin,
name: 'Admin Login'
},
{
path: '/admin',
component: AdminIndex,
children: [
{
path: 'result/:election_id',
component: FinalResult,
name: 'Election Result'
},
{
path: '',
component: ManageElection,
children: [
{
path: '',
component: ManageElectionIndex,
name: 'Admin Home'
},
{
path: 'result',
component: ManageElectionResult,
name: 'Current Result'
}
]
},
{
path: 'position',
component: ManagePosition,
children: [
{
path:'',
component: ManagePositionIndex,
name: 'Kemaskini Jawatan'
},
{
path:'add',
component: ManagePositionAdd,
name: 'Tambah Jawatan'
},
{
path: 'edit/:id',
component: ManagePositionEdit,
name: 'Edit Position'
}
]
},
{
path: 'partylist',
component: ManagePartylist,
children: [
{
path: '',
component: ManagePartylistIndex,
name: 'Manage Partylist'
},
{
path: 'add',
component: ManagePartylistAdd,
name: 'Add Partylist'
},
{
path: 'edit/:id',
component: ManagePartylistEdit,
name: 'Edit Partylist'
}
]
},
{
path: 'voter',
component: ManageVoter,
children: [
{
path: '',
component: ManageVoterIndex,
name: 'Manage Voter'
},
{
path: 'add',
component: ManageVoterAdd,
name: 'Tambah Pengundi'
},
{
path: 'edit/:id',
component: ManageVoterEdit,
name: 'Edit Voter'
},
{
path: 'kehadiran',
component: KehadiranCalon,
name: 'Kehadiran Calon'
},
{
path: 'fizikal',
component: KehadiranCalonFizikal,
name: 'Fizikal'
},
{
path: 'maya',
component: KehadiranCalonMaya,
name: 'Maya'
},
{
path: 'viewkehadiran',
component: ViewKehadiranCalon,
name: 'Calon Hadir'
},
]
},
{
path: 'nominee',
component: ManageNominee,
children: [
{
path: '',
component: ManageNomineeIndex,
name: 'Maklumat Calon'
},
{
path: 'add',
component: ManageNomineeAdd,
name: 'Tambah Calon'
},
{
path: 'edit/:id',
component: ManageNomineeEdit,
name: 'Edit Nominee'
}
]
},
{
path: '/account',
component: ManageAccount,
children: [
{
path: '',
component: ManageAccountIndex,
name: 'Manage Account'
},
{
path: 'update',
component: ManageAccountEdit,
name: 'Update Account'
},
{
path: 'password',
component: ManageAccountPassword,
name: 'Update Password'
},
{
path: 'add',
component: ManageAccountAdd,
name: 'Add Account'
},
{
path: '/pembiayaan',
name: 'Pembiayaan',
component: ManagePembiayaan
},
{
path: '/beliankomoditi',
name: 'BelianKomoditi',
component: ManageBelianKomoditi
},
{
path: '/kontrakmurabahah',
name: 'KontrakMurabahah',
component: ManageKontrakMurabahah
},
{
path: '/cetakpermohonan',
name: 'CetakPermohonan',
component: CetakPermohonan
},
{
path: '/:pathMatch(.*)*',
name: 'NotFound',
component: {
template: '<div class="text-center mt-5">Not found: {{ $route.path }}</div>'
}
}
]
}
]
}
]