- We've got some components
A
,B
andC
which provide different slots.const A = { template: `<div><slot name="a">Default A Content</slot></div>` }
const B = {
/** | |
* Invokes a function, performing up to 5 retries with exponential backoff. | |
* Retries with delays of approximately 1, 2, 4, 8 then 16 seconds for a total of | |
* about 32 seconds before it gives up and rethrows the last error. | |
* See: https://developers.google.com/google-apps/documents-list/#implementing_exponential_backoff | |
<h3>Examples:</h3> | |
<pre>//Calls an anonymous function that concatenates a greeting with the current Apps user's email | |
var example1 = GASRetry.call(function(){return "Hello, " + Session.getActiveUser().getEmail();}); | |
</pre><pre>//Calls an existing function | |
var example2 = GASRetry.call(myFunction); |
<?php | |
/** | |
* Creates a human readable list of an array | |
* | |
* @param string[] $ranges array to list items of | |
* @param string $glue normal glue between items | |
* @param string $last glue between last two items | |
* | |
* @remarks works with 0, 1, 2 or 3+ items | |
* @returns string 'item1, item2, item3 or item4' |
<?php | |
// move radio input inside label | |
add_filter("gform_field_choices", "radio_input_inside_label", 10, 2); | |
function radio_input_inside_label($choices, $field){ | |
if($field["type"] != "radio") | |
return $choices; | |
$choices = ""; |
if ( ! is_shop() && ! is_product_taxonomy() ) { | |
$quantity_field = woocommerce_quantity_input( array( | |
'input_name' => 'product_id', | |
'input_value' => ! empty( $product->cart_item['quantity'] ) ? $product->cart_item['quantity'] : 0, | |
'max_value' => $product->backorders_allowed() ? '' : $product->get_stock_quantity(), | |
'min_value' => 0, | |
), $product, false ); | |
$quantity_field = str_replace( array( '<div class="quantity">', "</div>" ), '', $quantity_field ); | |
echo str_replace( '<input ', '<input style="max-width: 70px" ', $quantity_field ); |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mautic Form Test</title> | |
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> | |
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> | |
import createAuth0Client from '@auth0/auth0-spa-js' | |
import { computed, reactive, watchEffect } from 'vue' | |
let client | |
const state = reactive({ | |
loading: true, | |
isAuthenticated: false, | |
user: {}, | |
popupOpen: false, | |
error: null, |
This document contains an explanation of how you can create and maintain multiple environments for your Quasar
projects. It will be an expansion of the official documentation located here for Webpack
and here for Vite
. Bear in mind that this guide is applicable to both versions of Quasar
.
Create a variables
folder in the project root, with a parser.js
file inside. This will allow you to have all environment related files in a single place, which will improve readability.