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
import 'core-js/es6/array'; | |
import 'core-js/es6/object'; | |
import 'core-js/es6/string'; | |
// Global options | |
import defaults from './_config'; | |
// general helper functions | |
import Helper from './_helpers'; | |
// general pricing and currency functions | |
import Pricing from './_pricing'; | |
// throttle and debounce manager |
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> | |
import UrlPattern from 'url-pattern' | |
import location, { navigate, noMatch } from './location.js' | |
export let path | |
export let component = undefined | |
export let redirect = undefined | |
$: pattern = new UrlPattern(path) | |
$: router = { |
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
# ASCII Unit separator, purpose is to separate subrecords, etc... | |
set __dict_US \31 | |
# Groks name[key] and sets varname and key variables | |
function dict._parsename -S -a raw | |
set -l data (string match -r '(.+)\[(.+)\]' $raw) | |
if [ (count $data) -lt 3 ] | |
echo "Invalid dictionary syntax '$raw'" | |
return 1 | |
else |