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 default { | |
AL: { | |
continentCode: 'EU', | |
countryCode: 'AL', | |
countryFlag: 'https://brixtol.cloud/flags/flag_al.svg', | |
countryName: 'Albania', | |
currencySymbol: 'L', | |
currencyCode: 'ALL', | |
currencyPlacement: '# !', | |
currencyRate: 12.0045, |
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema", | |
"$id": "syncify", | |
"version": 1.1, | |
"definitions": { | |
"options": { | |
"type": "object", | |
"description": "Syncify Configuration options for Shopify theme development.", | |
"required": ["stores"], | |
"additionalProperties": false, |
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
{ | |
"stores": [ | |
{ | |
"domain": "store-1", | |
"themes": { | |
"dev": 129457717489, | |
"prod": 129457717489, | |
"stage": 129457717489, | |
"test": 129457717489 | |
} |
String parser which enables pluralization. Extracted from an internal API logging system I maintain. It is fast, effective and an easy drop in solution. If you would like to see this in a module then please leave a comment.
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
/* -------------------------------------------- */ | |
/* UTILITIES */ | |
/* -------------------------------------------- */ | |
type Primitive = ( | |
| null | |
| undefined | |
| string | |
| number | |
| 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
/** | |
* Fixed Array Lengths | |
*/ | |
type Grow<T, A extends Array<T>> = ( | |
(x: T, ...xs: A) => void | |
) extends ( | |
(...a: infer X) => void | |
) ? X : never; | |
type GrowToSize<T, A extends Array<T>, N extends number> = { |
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 { Handler } from '@netlify/functions'; | |
import { getCurrency } from '@brixtol/currency-codes'; | |
import { getCountryName, ICountries } from '@brixtol/country-names'; | |
import { getCurrencySymbol, ICurrencySymbols as ISymbols } from '@brixtol/currency-symbols'; | |
import { getCurrencyPlacement, IPlacements } from '@brixtol/currency-symbol-placements'; | |
/** | |
* GeoIP | |
* | |
* Returns Geographical IP information of webshop visitors. |
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 m from 'mithril' | |
import icon from 'icons' | |
import Footer from 'components/footer' | |
import Video from 'components/video' | |
import meta from 'utils/meta' | |
export default { | |
oncreate: ( | |
{ |
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
<div | |
class="inner pt-3" | |
data-controller="header" | |
data-header-sticky-alpha-value=" {{- section.settings.sticky_opacity }}" | |
data-header-sticky-rgb-value=" {{- section.settings.sticky_bg | color_to_rgb }}" | |
data-header-sticky-value=" {{- section.settings.sticky }}" | |
data-sticky-container> | |
<div class="row jc-between"> | |
<!-- Search --> | |
<div class="col d-none d-md-flex pl-1 pl-md-3"> |