This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
import {computed, onMounted, ref} from "vue"; | |
const props = defineProps({ | |
items: { | |
type: Object, | |
default: { | |
headers: {}, | |
data: [] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// As the name of the function says; It converts seconds to time(clock) format. (Useful for OTP authentication) | |
const secondsToTime = seconds => { | |
let h = Math.floor(seconds / 3600).toString().padStart(2, '0'), | |
m = Math.floor(seconds % 3600 / 60).toString().padStart(2, '0'), | |
s = Math.floor(seconds % 60).toString().padStart(2, '0') | |
// Returns only 00:00 format if hour is not set. (optional) | |
if (h === '00') | |
return `${m}:${s}` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SampleValetDriver extends ValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |