Update welcome page, routing modul for Admin dan Perencana

This commit is contained in:
Titan Hadiyan
2023-06-06 10:41:27 +07:00
parent b79a65dfcf
commit b0fc56e3f0
22 changed files with 23494 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">Drp Monitoring</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -3,7 +3,12 @@
<h2 class="content-block">Home</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
<div class="logos-container">
<h3>{{ greet }}, <i>{{ nama }}</i></h3>
<p>
Anda login menggunakan <strong>{{ username }}</strong> dengan
hak akses sebagai <strong>{{ role }}</strong>
</p>
<!--<div class="logos-container">
<svg
class="devextreme-logo"
viewBox="0 0 200 34"
@@ -129,11 +134,44 @@
For technical content related to DevExtreme Vue components, feel free to explore
our <a href="https://js.devexpress.com/documentation/" target="_blank" rel="noopener noreferrer">online documentation</a>
and <a href="https://js.devexpress.com/Demos/Widgetsgallery/" target="_blank" rel="noopener noreferrer">technical demos</a>.
</p>
</p>-->
</div>
</div>
</div>
</template>
<script>
import auth from "../auth";
import { ref } from 'vue';
export default {
setup() {
const nama = ref("");
const username = ref("");
const role = ref("");
const today = new Date();
const hrs = today.getHours();
var greet = ref("");
auth.getUser().then((e) => nama.value = e.data.nama);
auth.getUser().then((e) => username.value = e.data.username);
auth.getUser().then((e) => role.value = e.data.role);
if (hrs >= 0) greet = "Selamat Malam"; // REALLY early
if (hrs > 4) greet = "Selamat Pagi"; // After 6am
if (hrs > 10) greet = "Selamat Siang"; // After 11pm
if (hrs > 14) greet = "Selamat Sore"; // After 14pm
if (hrs > 16) greet = "Selamat Petang";// After 14pm
if (hrs > 18) greet = "Selamat Malam"; // After 10pm
return {
nama,
username,
role,
greet,
}
},
};
</script>
<style lang="scss">
.logos-container {

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">Hps Approval</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">Hps Cetak</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">Hps Monitoring</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">Hps Penyusunan</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">Hps Revisi</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">Kontrak Monitoring</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">Rks Hpe Approval</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">Rks Hpe Cetak</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">Rks Hpe Penyusunan</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">Rks Hpe Revisi</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">Rks Monitoring</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">&#x2F;rks&#x2F;rks Daftar Kontrak</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">&#x2F;rks&#x2F;rks Template Kontrak</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>

View File

@@ -0,0 +1,13 @@
<template>
<div>
<h2 class="content-block">&#x2F;rks&#x2F;rks Template</h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
</div>
</div>
</div>
</template>
<style lang="scss">
</style>