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
values = | |
locale_country_code: [ | |
{ title: "Andorra", value: "AD" }, | |
{ title: "United Arab Emirates", value: "AE" }, | |
{ title: "Afghanistan", value: "AF" }, | |
{ title: "Antigua and Barbuda", value: "AG" }, | |
{ title: "Anguilla", value: "AI" }, | |
{ title: "Albania", value: "AL" }, | |
{ title: "Armenia", value: "AM" }, | |
{ title: "Angola", value: "AO" }, |
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
@use 'sass:map'; | |
$themes: ['default', 'yellow', 'purple-yellow', 'gold', 'midnight-blue', 'purple-blue']; | |
$themeIcons: (); | |
@each $theme in $themes { | |
$index: index($themes, $theme); | |
$themeIcons: map.set($themeIcons, $theme, 'theme#{$index}') | |
} |
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 axios from "axios"; | |
async function request(request) { | |
if (!request) { | |
return { data: undefined, error: "no request" }; | |
} | |
const data = typeof FormData !== "undefined" ? new FormData() : {}; | |
if (request.data) { | |
Object.entries(request.data).forEach(([key, value]) => { |
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 const initLazyloading = (selector: string): void => { | |
let images = document.querySelectorAll(selector); | |
if ('IntersectionObserver' in window) { | |
// Create new observer object | |
let lazyImageObserver = new IntersectionObserver((entries, observer) => { | |
// Loop through IntersectionObserverEntry objects | |
entries.forEach((entry) => { | |
// Do these if the target intersects with the root | |
if (entry.isIntersecting) { |
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 Craft3ValetDriver extends ValetDriver | |
/* https://github.com/laravel/valet/blob/master/cli/drivers/CraftValetDriver.php */ | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName |
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
- pipeline: "Build and deploy to [environment]" | |
trigger_mode: "MANUAL" | |
ref_name: "develop" | |
actions: | |
- action: "Init Atomic Deployment" | |
type: "SSH_COMMAND" | |
working_directory: "${remote_path}/" | |
login: "${user}" | |
host: "${host}" | |
port: "22" |
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
- pipeline: "Build and deploy to [environment]" | |
trigger_mode: "MANUAL" | |
ref_name: "develop" | |
actions: | |
- action: "Init Atomic Deployment" | |
type: "SSH_COMMAND" | |
working_directory: "${remote_path}/" | |
login: "${user}" | |
host: "${host}" | |
port: "22" |
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
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
} | |
NodeList.prototype.__proto__ = Array.prototype; |
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
#!/usr/bin/env bash | |
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/ | |
### | |
# Label definitions | |
### | |
declare -A LABELS | |
# Platform |
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
#!/usr/bin/env bash | |
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/ | |
### | |
# Label definitions | |
### | |
declare -A LABELS | |
# Platform |
NewerOlder