Merge branch 'main' of https://gitlab.com/online-sistem1/lelong into fix-kemaskini-harga-emas

This commit is contained in:
Amir Hassan
2023-02-22 14:20:47 +08:00
110 changed files with 5796 additions and 2464 deletions
-372
View File
@@ -16434,375 +16434,3 @@ readers do not read off random characters that represent icons */
font-family: "Font Awesome 5 Brands";
font-weight: 400;
}
.header-style {
padding: 0px 0px;
display: flex;
align-items: center;
background-color: #fff;
}
.header-style-icon {
padding: 15px 18px;
border-right: 1px solid #ced4da;
}
.header-style-icon:hover {
background-color: #6c757d;
color: white;
border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}
.header-style-title {
font-size: 1.125rem;
font-weight: bold;
text-transform: capitalize;
padding: 12px 12px;
}
a,
a:hover,
a:focus {
color: inherit;
text-decoration: none;
transition: all 0.3s;
}
.navbar {
padding: 15px 10px;
background: #fff;
border: none;
border-radius: 0;
margin-bottom: 40px;
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}
.navbar-btn {
box-shadow: none;
outline: none !important;
border: none;
}
.line {
width: 100%;
height: 1px;
border-bottom: 1px dashed #ddd;
margin: 40px 0;
}
/* ---------------------------------------------------
SIDEBAR STYLE
----------------------------------------------------- */
#sidebar {
bottom: 0;
overflow-y: scroll;
width: 265px;
position: fixed;
top: 0;
left: 0;
height: 100vh;
z-index: 999;
background: #1E1E2D;
/* color: rgb(41, 39, 39); */
color: #808080;
transition: all 0.3s;
}
#sidebar.active {
margin-left: -265px;
}
.sidebar-header {
padding: 20px;
display: flex;
justify-content: space-between;
/* border-bottom: 0.2px solid #6d7fcc; */
}
.sidebar-title {
font-size: 1.074rem;
font-weight: bold;
color: white;
border-color: white;
align-self: center;
/* border-bottom: border 1px solid white; */
}
.sidebar-logo {
width: 50px;
height: 35px;
}
/* #sidebar ul.components {
padding: 20px 0;
border-bottom: 1px solid #fff;
} */
/* #sidebar ul p {
color: rgb(41, 39, 39);
padding: 10px;
} */
#sidebar ul li {
margin: 3px 0;
}
#sidebar ul li.active {
background: #2a2a3c;
color: white;
border-radius: 25px;
}
#sidebar ul li.active:hover {
background: #2a2a3ca1;
/* color: white; */
}
#sidebar ul li a {
padding: 7px 5px;
font-size: 1.05em;
display: block;
}
#sidebar ul li a:hover {
color: white;
/* background: var(--indigo); */
border-radius: 15px;
}
/* #sidebar ul li.active a{
color: white;
background: #F0F0F0;
} */
#sidebar ul li .active a{
color: white;
/* background: #2a2a3c; */
border-radius: 15px;
margin: 2px;
background-position: 20px;
/* width: 70%; */
}
#sidebar ul li .active a:hover{
color: #ffffffd6;
background: #2a2a3ca1;
}
/* #sidebar ul li.active>a,
a[aria-expanded="true"] {
color: #111;
background: #F0F0F0;
} */
#sidebar ul li ul li a:before{
font-family: "Font Awesome 5 Free";
font-weight: 600;
content: "\f111";
font-size: 4px;
vertical-align: middle;
margin-right: 8px;
}
/* .dropdown-toggle::after {
display: block;
position: absolute;
top: 50%;
right: 20px;
transform: translateY(-50%);
} */
#sidebar ul ul a {
font-size: 0.9em;
padding-left: 30px !important;
/* background: #fff; */
}
.sidebar-menu {
display: flex;
justify-content: space-between;
}
.sidebar-menu-title {
margin-top: 20px;
padding: 6px 14px;
}
.sidebar-menu-item-expand {
align-self: center;
font-size: 1.0em;
margin-right: 11px;
}
/* .sidebar-menu-item-expand::before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f078";
} */
.sidebar-menu-main-title {
display: flex;
}
.sidebar-menu-item-main {
font-size: 1.0em;
/* vertical-align: sub; */
margin-right: 9px;
margin-left: 7px;
align-self: center;
color: var(--indigo);
}
/* .sidebar-menu-item-main:hover {
color: white;
background: white;
} */
/* ul.CTAs {
padding: 20px;
}
ul.CTAs a {
text-align: center;
font-size: 0.9em !important;
display: block;
border-radius: 5px;
margin-bottom: 5px;
} */
a[data-toggle="collapse"] {
position: relative;
}
a.download {
background: #fff;
color: #7386D5;
}
a.article,
a.article:hover {
background: #6d7fcc !important;
color: #fff !important;
}
/* ---------------------------------------------------
CONTENT STYLE
----------------------------------------------------- */
#content {
width: calc(100% - 265px);
padding: 3x;
min-height: 100vh;
transition: all 0.3s;
position: absolute;
top: 0;
right: 0;
overflow-y: auto;
}
#content.active {
width: 100%;
}
.hovernone:hover {
background-color: #3490dc !important;
cursor: context-menu !important;
}
.hovernone-success:hover {
background-color: #38c172 !important;
cursor: context-menu !important;
}
.hovernone-danger:hover {
background-color: #e3342f !important;
cursor: context-menu !important;
}
#loader {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
background: rgba(0, 0, 0, 0.4) url("") no-repeat center center;
z-index: 99999;
}
#loader-image {
position: absolute;
top: 40%;
left: 45%;
z-index: 100
}
.button {
background-color: #E09215;
border: none;
color: white;
padding: 10px 24px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
margin: 4px 2px;
cursor: pointer;
}
/* ---------------------------------------------------
MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 992px) {
#sidebar {
margin-left: -265px;
}
#sidebar.active {
margin-left: 0;
}
#content {
width: 100%;
}
#content.active {
width: calc(100% - 265px);
}
#sidebarCollapse span {
display: none;
}
}
.sidebar-footer {
/* position: absolute; */
/* bottom: 0; */
margin-top: 70px;
}
.sidebar-footer-content {
display: flex;
justify-content: center;
align-self: center;
border: 2px solid #2a2a3c;
padding: 10px;
margin: 46px;
border-radius: 10px;
color: #484859;
}
.user-info {
/* display: flex; */
}
File diff suppressed because one or more lines are too long
+371
View File
@@ -0,0 +1,371 @@
.header-style {
padding: 0px 0px;
display: flex;
align-items: center;
background-color: #fff;
}
.header-style-icon {
padding: 15px 18px;
border-right: 1px solid #ced4da;
}
.header-style-icon:hover {
background-color: #6c757d;
color: white;
border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}
.header-style-title {
font-size: 1.125rem;
font-weight: bold;
text-transform: capitalize;
padding: 12px 12px;
}
a,
a:hover,
a:focus {
color: inherit;
text-decoration: none;
transition: all 0.3s;
}
.navbar {
padding: 15px 10px;
background: #fff;
border: none;
border-radius: 0;
margin-bottom: 40px;
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}
.navbar-btn {
box-shadow: none;
outline: none !important;
border: none;
}
.line {
width: 100%;
height: 1px;
border-bottom: 1px dashed #ddd;
margin: 40px 0;
}
/* ---------------------------------------------------
SIDEBAR STYLE
----------------------------------------------------- */
#sidebar {
bottom: 0;
overflow-y: scroll;
width: 265px;
position: fixed;
top: 0;
left: 0;
height: 100vh;
z-index: 999;
background: #1E1E2D;
/* color: rgb(41, 39, 39); */
color: #808080;
transition: all 0.3s;
}
#sidebar.active {
margin-left: -265px;
}
.sidebar-header {
padding: 20px;
display: flex;
justify-content: space-between;
/* border-bottom: 0.2px solid #6d7fcc; */
}
.sidebar-title {
font-size: 1.074rem;
font-weight: bold;
color: white;
border-color: white;
align-self: center;
/* border-bottom: border 1px solid white; */
}
.sidebar-logo {
width: 50px;
height: 35px;
}
/* #sidebar ul.components {
padding: 20px 0;
border-bottom: 1px solid #fff;
} */
/* #sidebar ul p {
color: rgb(41, 39, 39);
padding: 10px;
} */
#sidebar ul li {
margin: 3px 0;
}
#sidebar ul li.active {
background: #2a2a3c;
color: white;
border-radius: 25px;
}
#sidebar ul li.active:hover {
background: #2a2a3ca1;
/* color: white; */
}
#sidebar ul li a {
padding: 7px 5px;
font-size: 1.05em;
display: block;
}
#sidebar ul li a:hover {
color: white;
/* background: var(--indigo); */
border-radius: 15px;
}
/* #sidebar ul li.active a{
color: white;
background: #F0F0F0;
} */
#sidebar ul li .active a {
color: white;
/* background: #2a2a3c; */
border-radius: 15px;
margin: 2px;
background-position: 20px;
/* width: 70%; */
}
#sidebar ul li .active a:hover {
color: #ffffffd6;
background: #2a2a3ca1;
}
/* #sidebar ul li.active>a,
a[aria-expanded="true"] {
color: #111;
background: #F0F0F0;
} */
#sidebar ul li ul li a:before {
font-family: "Font Awesome 5 Free";
font-weight: 600;
content: "\f111";
font-size: 4px;
vertical-align: middle;
margin-right: 8px;
}
/* .dropdown-toggle::after {
display: block;
position: absolute;
top: 50%;
right: 20px;
transform: translateY(-50%);
} */
#sidebar ul ul a {
font-size: 0.9em;
padding-left: 30px !important;
/* background: #fff; */
}
.sidebar-menu {
display: flex;
justify-content: space-between;
}
.sidebar-menu-title {
margin-top: 20px;
padding: 6px 14px;
}
.sidebar-menu-item-expand {
align-self: center;
font-size: 1.0em;
margin-right: 11px;
}
/* .sidebar-menu-item-expand::before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f078";
} */
.sidebar-menu-main-title {
display: flex;
}
.sidebar-menu-item-main {
font-size: 1.0em;
/* vertical-align: sub; */
margin-right: 9px;
margin-left: 7px;
align-self: center;
color: var(--indigo);
}
/* .sidebar-menu-item-main:hover {
color: white;
background: white;
} */
/* ul.CTAs {
padding: 20px;
}
ul.CTAs a {
text-align: center;
font-size: 0.9em !important;
display: block;
border-radius: 5px;
margin-bottom: 5px;
} */
a[data-toggle="collapse"] {
position: relative;
}
a.download {
background: #fff;
color: #7386D5;
}
a.article,
a.article:hover {
background: #6d7fcc !important;
color: #fff !important;
}
/* ---------------------------------------------------
CONTENT STYLE
----------------------------------------------------- */
#content {
width: calc(100% - 265px);
padding: 3x;
min-height: 100vh;
transition: all 0.3s;
position: absolute;
top: 0;
right: 0;
overflow-y: auto;
}
#content.active {
width: 100%;
}
.hovernone:hover {
background-color: #3490dc !important;
cursor: context-menu !important;
}
.hovernone-success:hover {
background-color: #38c172 !important;
cursor: context-menu !important;
}
.hovernone-danger:hover {
background-color: #e3342f !important;
cursor: context-menu !important;
}
#loader {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
background: rgba(0, 0, 0, 0.4) url("") no-repeat center center;
z-index: 99999;
}
#loader-image {
position: absolute;
top: 40%;
left: 45%;
z-index: 100
}
.button {
background-color: #E09215;
border: none;
color: white;
padding: 10px 24px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
margin: 4px 2px;
cursor: pointer;
}
/* ---------------------------------------------------
MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 992px) {
#sidebar {
margin-left: -265px;
}
#sidebar.active {
margin-left: 0;
}
#content {
width: 100%;
}
#content.active {
width: calc(100% - 265px);
}
#sidebarCollapse span {
display: none;
}
}
.sidebar-footer {
/* position: absolute; */
/* bottom: 0; */
margin-top: 70px;
}
.sidebar-footer-content {
display: flex;
justify-content: center;
align-self: center;
border: 2px solid #2a2a3c;
padding: 10px;
margin: 46px;
border-radius: 10px;
color: #484859;
}
.user-info {
/* display: flex; */
}
+3 -3
View File
File diff suppressed because one or more lines are too long
+20
View File
@@ -15,6 +15,16 @@
* Date: 2021-02-16
*/
/*!
* Viewer.js v1.11.2
* https://fengyuanchen.github.io/viewerjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2023-01-01T10:14:49.638Z
*/
/*!
* jQuery JavaScript Library v3.6.0
* https://jquery.com/
@@ -29,6 +39,16 @@
* Date: 2021-03-02T17:08Z
*/
/*!
* jquery-confirm v3.3.4 (http://craftpip.github.io/jquery-confirm/)
* Author: Boniface Pereira
* Website: www.craftpip.com
* Contact: hey@craftpip.com
*
* Copyright 2013-2019 jquery-confirm
* Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE)
*/
/*! DataTables 1.11.3
* ©2008-2021 SpryMedia Ltd - datatables.net/license
*/
+1 -1
View File
File diff suppressed because one or more lines are too long
+27 -6
View File
@@ -98,12 +98,28 @@ function marhunPhotoCapturerFactory(modal_selector) {
});
const filtered = available_cameras.filter(camera => {
return marhun_camera_config.includes(camera.label);
const filteredCameraChrome = available_cameras.filter(camera => {
return marhun_camera_config_chrome.includes(camera.label);
})
const filteredCameraFirefox = available_cameras.filter(camera => {
return marhun_camera_config_firefox.includes(camera.deviceId);
});
let isfirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
if(isfirefox){
if(filteredCameraFirefox.length > 0){
return filteredCameraFirefox.splice(-1);
}
const filteredCameraFirefoxLastDevice = available_cameras.splice(-1);
return filteredCameraFirefoxLastDevice;
}
// Get the first available priority referencing to env
return filtered.at(-1);
return filteredCameraChrome.at(-1);
}
function selectCamera(listOfCameras) {
@@ -118,14 +134,20 @@ function marhunPhotoCapturerFactory(modal_selector) {
function composeConstraint(camera) {
let constraints = {
width: {min: 640, ideal: 1920},
height: {min: 400, ideal: 1080},
aspectRatio: {ideal: 1.7777777778},
};
if(camera.deviceId !== ''){
constraints = { deviceId: { exact: camera.deviceId } };
constraints.deviceId = { exact: camera.deviceId };
return navigator.mediaDevices.getUserMedia({ video: constraints });
}
if(camera.groupId !== ''){
constraints= { groupId: { exact: camera.groupId } };
constraints.groupId = { exact: camera.groudId };
return navigator.mediaDevices.getUserMedia({ video: constraints });
}
@@ -140,7 +162,6 @@ function marhunPhotoCapturerFactory(modal_selector) {
initiateTakeMarhunPhoto: function () {
if ('mediaDevices' in navigator && navigator.mediaDevices.getUserMedia) {
function showCaptureMarhunModal() {
let modal = document.querySelector(modal_selector);
+1
View File
@@ -1,4 +1,5 @@
{
"/js/app.js": "/js/app.js",
"/js/vue-app.js": "/js/vue-app.js",
"/css/app.css": "/css/app.css"
}