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
export interface EventClient { | |
subscribe: CallableFunction, | |
subscribeOnce: CallableFunction, | |
publish: CallableFunction, | |
unsubscribe: CallableFunction, | |
unsubscribeAll: CallableFunction | |
} | |
interface EventSubscription { | |
subject: Object, |
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
let selectors = { | |
'days' : '.js-countdown-days', | |
'hours' : '.js-countdown-hours', | |
'minutes': '.js-countdown-minutes', | |
'seconds': '.js-countdown-seconds' | |
}; | |
/** | |
* Get the time remaining till a date. | |
*/ |
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
<template> | |
<slot /> | |
</template> | |
<script lang="ts"> | |
import { defineComponent } from "vue"; | |
interface ComponentSetup { | |
buff: string; | |
isReading: boolean; |
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
const URL_REGEX = /^(?:([^:\/?#]+):\/\/)?((?:([^\/?#@]*)@)?([^\/?#:]*)(?:\:(\d*))?)?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n)*))?/i | |
/** | |
* Map search parameters to an according associative array | |
* @param search | |
* @returns {{}} | |
*/ | |
function mapSearchParams(search) { | |
let map = {} | |
if (typeof search === 'string') { |
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
### Keybase proof | |
I hereby claim: | |
* I am harm-smits on github. | |
* I am hsmits (https://keybase.io/hsmits) on keybase. | |
* I have a public key whose fingerprint is 7FCC C2CB A814 1BFB 13E3 08A7 1491 6155 B7ED 5196 | |
To claim this, I am signing this object: |