Flatten nested repos

This commit is contained in:
sas.fajri
2026-04-27 10:13:31 +07:00
parent 01c2963a43
commit 8347aef8f4
17935 changed files with 5015229 additions and 3 deletions

View File

@@ -0,0 +1,124 @@
<template>
<v-layout class="fill-height" column>
<one-dialog-info :status="xinfo" :msg="xmsginfo" @close-dialog-info="closeInfo()"></one-dialog-info>
<v-toolbar class="pa-1 mb-2" color="blue lighten-3" dark height="50px">
<v-toolbar-title>DASHBOARD</v-toolbar-title>
</v-toolbar>
<v-card class="grow" >
<v-img
src="/one-ui/apps/image/welcome.png" style = "max-width: 40%; height: auto; display: block; margin-left: auto; margin-right: auto; margin-top: 10px;"
></v-img>
<v-container grid-list-md text-xs-center>
<v-layout row wrap>
<v-flex xs4>
<v-card color=" blue darken-1" style="height: 500px" class="white--text">
<v-card-title primary-title>
<div>
<div class="headline">Spesifikasi</div>
</br>
<v-list three-line style ="background-color: #1E88E5;" class="white--text">
<v-list-tile>
<v-list-tile-content>
<v-list-tile-title>Content filtering</v-list-tile-title>
<v-list-tile-sub-title class="white--text">Set the content filtering level to restrict appts that can be downloaded</v-list-tile-sub-title>
</v-list-tile-content>
</v-list-tile>
<v-list-tile>
<v-list-tile-content>
<v-list-tile-title>Password</v-list-tile-title>
<v-list-tile-sub-title class="white--text">Require password for purchase or use password to restrict purchase</v-list-tile-sub-title>
</v-list-tile-content>
</v-list-tile>
</v-list>
</div>
</v-card-title>
</v-card>
</v-flex>
<v-flex xs4>
<v-card color="light-green lighten-1" style="height: 500px" class="white--text">
<v-card-title primary-title>
<div>
<div class="headline">Kelebihan</div>
</br>
<v-list three-line style ="background-color:#9CCC65;" class="white--text">
<v-list-tile>
<v-list-tile-content>
<v-list-tile-title>Content filtering</v-list-tile-title>
<v-list-tile-sub-title class="white--text">Set the content filtering level to restrict appts that can be downloaded</v-list-tile-sub-title>
</v-list-tile-content>
</v-list-tile>
<v-list-tile>
<v-list-tile-content>
<v-list-tile-title>Password</v-list-tile-title>
<v-list-tile-sub-title class="white--text">Require password for purchase or use password to restrict purchase</v-list-tile-sub-title>
</v-list-tile-content>
</v-list-tile>
</v-list>
</div>
</v-card-title>
</v-card>
</v-flex>
<v-flex xs4>
<v-card color=" purple lighten-2" style="height: 500px" class="white--text">
<v-card-title primary-title>
<div>
<div class="headline">Cara Penggunaan</div>
</br>
<v-list three-line style ="background-color: #BA68C8;" class="white--text">
<v-list-tile>
<v-list-tile-content>
<v-list-tile-title>Content filtering</v-list-tile-title>
<v-list-tile-sub-title class="white--text">Set the content filtering level to restrict appts that can be downloaded</v-list-tile-sub-title>
</v-list-tile-content>
</v-list-tile>
<v-list-tile>
<v-list-tile-content>
<v-list-tile-title>Password</v-list-tile-title>
<v-list-tile-sub-title class="white--text">Require password for purchase or use password to restrict purchase</v-list-tile-sub-title>
</v-list-tile-content>
</v-list-tile>
</v-list>
</div>
</v-card-title>
</v-card>
</v-flex>
</v-layout>
</v-container>
</v-card>
</v-layout>
</template>
<style scoped>
.v-divider {
border-color: rgba(90,114,246,1) !important;
margin-top: 0.55rem !important;
margin-bottom: 0.55rem !important;
}
</style>
<script>
</script>

View File

@@ -0,0 +1,294 @@
<template>
<v-layout >
<v-flex xs12 >
<v-card class="mb-2" color="white" >
<v-toolbar color="blue lighten-3" dark height="50px">
<v-toolbar-title>Bahan : {{xbahan.name}}</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn @click="openFormSampletype(0)" icon>
<v-icon>library_add</v-icon>
</v-btn>
</v-toolbar>
<v-layout row wrap>
<v-flex class="border-bottom-dashed" xs12 pt-2 pl-4 pr-4 pb-4>
<table>
<tr>
<th width="25%" class="text-md-center pt-2 pb-2">KODE</th>
<th width="35%" class="text-md-center pt-2 pb-2">NAMA</th>
<th width="15%" class="text-md-center pt-2 pb-2">SUFFIX</th>
<th class="text-md-center pt-2 pb-2">AKSI</th>
</tr>
<tr v-if="sampletypes.length > 0 " v-for="(sampletype,idx) in sampletypes">
<td class="text-md-left pl-3">{{sampletype.code}}</td>
<td class="text-md-center">{{sampletype.name}}</td>
<td class="text-md-center">{{sampletype.suffix}}</td>
<td align="center" class="text-md-center">
<v-btn @click="editFormSampletype(sampletype)" depressed small color="primary"><v-icon>edit</v-icon></v-btn>
<v-btn @click="deleteSampletype(sampletype)" depressed small color="error"><v-icon>delete</v-icon></v-btn>
</td>
</tr>
<tr v-if="sampletypes.length === 0"><td align="center" style="height:50px;text-align:center" colspan="8">Belum ada data</td> </tr>
</table>
</v-flex>
</v-layout>
<template>
<v-dialog
v-model="dialogdeletealertsampletype"
max-width="30%"
>
<v-card>
<v-card-title
class="headline grey lighten-2 pt-2 pb-2"
primary-title
>
Peringatan !
</v-card-title>
<v-card-text class="pt-2 pb-2">
<v-layout row>
<v-flex xs12 d-flex>
<v-layout row>
<v-flex pb-1 xs12>
<v-layout row>
<v-flex pt-2 pr-2 xs12>
{{msgalertsampletype}}
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="primary"
flat
@click="dialogdeletealertsampletype = false"
>
Tutup
</v-btn>
<v-btn
color="primary"
flat
@click="closeDeleteAlertSampletype()"
>
Yakin lah
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<template>
<v-layout row justify-center>
<v-dialog v-model="dialogsampletype" persistent max-width="600px">
<v-card>
<v-card-title>
<span class="headline">Form Sampletype</span>
</v-card-title>
<v-card-text class="pt-0 pb-0">
<v-form
ref="formbahansampletype"
v-model="validsampletype"
lazy-validation
>
<v-layout wrap>
<v-flex xs12>
BAHAN : {{xbahan.name}}
</v-flex>
<v-flex xs12>
<v-text-field
label="Kode"
v-model="code"
></v-text-field>
</v-flex>
<v-flex xs12>
<v-text-field
label="Nama"
v-model="name"
></v-text-field>
</v-flex>
<v-flex xs12>
<v-text-field
label="Suffix"
v-model="suffix"
></v-text-field>
</v-flex>
<v-flex>
<p v-for="(xerror,idx) in xerrors" class="error pl-2 pr-2" style="color:#fff">{{xerror.msg}}</p>
</v-flex>
</v-layout>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue darken-1" flat @click="updateDialogFormSampletype()">Tutup</v-btn>
<v-btn color="blue darken-1" flat @click="saveFormSampletype()">Simpan</v-btn>
</v-card-actions>
</v-form>
</v-card>
</v-dialog>
</v-layout>
</template>
</v-card>
</v-flex>
</v-layout>
</template>
<style scoped>
.searchbox .v-input.v-text-field .v-input__slot{
min-height:60px;
}
.searchbox .v-btn {
min-height:60px;
}
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
background:white;
border: 0px;
}
th, td {
border: 1px solid black;
border-collapse: collapse;
padding-top: 2px;
padding-bottom: 2px;
}
table>tr>td {
padding: 8px;
}
table>tr>td:first {
padding-left:15px!important;
}
</style>
<script>
module.exports = {
data() {
return {
query: "",
items: [],
headers: [
{
text: "KODE",
align: "Center",
sortable: false,
value: "mr",
width: "30%",
class: " blue lighten-4"
},
{
text: "NAME",
align: "Center",
sortable: false,
value: "lab",
width: "30%",
class: "blue lighten-4"
},
{
text: "SUFFIX",
align: "Center",
sortable: false,
value: "name",
width: "30%",
class: "blue lighten-4"
},
{
text: "Action",
align: "Center",
sortable: false,
value: "status",
width: "15%",
class: "blue lighten-4"
}
],
isLoading: false,
color:"success",
validsampletype:false,
xid:0,
code:"",
name:"",
suffix:"",
dialogdeletealertsampletype:false,
msgalertsampletype:""
};
},
computed: {
sampletypes() {
return this.$store.state.sampletype.sampletypes
},
xbahan(){
return this.$store.state.bahan.selected_bahan
},
dialogsampletype(){
return this.$store.state.sampletype.dialog_form_sampletype
},
xerrors() {
return this.$store.state.sampletype.errors
}
},
methods : {
updateDialogFormSampletype(){
this.$store.commit("sampletype/update_dialog_form_sampletype",false)
},
openFormSampletype(val){
this.xid = val
this.code = ''
this.name = ''
this.suffix = ''
this.$store.commit("sampletype/update_dialog_form_sampletype",true)
},
editFormSampletype(val){
this.$store.commit("sampletype/update_error_code",false)
this.$store.commit("sampletype/update_error_name",false)
this.xid = val.id
this.code = val.code
this.name = val.name
this.suffix = val.suffix
this.$store.commit("sampletype/update_dialog_form_sampletype",true)
},
saveFormSampletype(){
this.$store.dispatch("sampletype/save",{
xid:this.xid,
bahanid:this.$store.state.bahan.selected_bahan.id,
bahanname:this.$store.state.bahan.selected_bahan.name,
code:this.code,
name:this.name,
suffix:this.suffix
})
},
updateAlert_success(val){
this.$store.commit("bahan/update_alert_success",val)
},
deleteSampletype(data){
this.xid = data.id
this.msgalertsampletype = "Yakin, mau hapus sampletype ?"
this.dialogdeletealertsampletype = true
},
closeDeleteAlertSampletype(){
this.$store.dispatch("sampletype/delete",{
xid:this.xid,
bahanid:this.$store.state.bahan.selected_bahan.id,
bahanname:this.$store.state.bahan.selected_bahan.name,
name:this.name
})
this.dialogdeletealertsampletype = false
}
}
}
</script>