If the cron is not running then it will probably fail silently because of EOL issues.
Check EOL
# @see ttps://unix.stackexchange.com/a/389616
cat -A fileAdd EOL option to VSCode
| { | |
| "name": "Go", | |
| "build": { | |
| "dockerfile": "./Dockerfile", | |
| "context": "./", | |
| "target": "dev" | |
| }, | |
| "forwardPorts": [3000], |
| <template> | |
| <v-app id="app"> | |
| <app-snackbar></app-snackbar> | |
| </v-app> | |
| </template> | |
| <script lang="ts"> | |
| import { defineComponent, computed } from '@vue/composition-api' | |
| import AppSnackbar from '@/components/AppSnackbar' |
| import { Ref, onMounted, onUnmounted, reactive, toRefs } from '@vue/composition-api' | |
| interface WindowSize { | |
| x: Ref<number> | |
| y: Ref<number> | |
| } | |
| export function useWindowSize(): WindowSize { | |
| const windowSize = reactive({ x: 0, y: 0 }) | |
| const resizeListener = () => { |
| {% assign total_spent = 0 %} | |
| {% for order in customer.orders %} | |
| {% if order.financial_status == 'paid' or order.financial_status == 'partially_paid' or order.financial_status == 'partially_refunded' %} | |
| {% assign total_spent = total_spent | plus: order.total_price | minus: order.total_refunded_amount %} | |
| {% endif %} | |
| {% endfor %} | |
| {{ total_spent | money }} |
| /** | |
| * This class contains general helper methods. | |
| */ | |
| class Helper { | |
| /** | |
| * @param {String} name | |
| * @returns {String|null} | |
| */ | |
| static getQueryParameter(name) { | |
| name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]') |
| #!/usr/bin/env bash | |
| # Get environment from first attribute | |
| ENV=$1 | |
| ENV_DEV="dev" | |
| ENV_STAGING="staging" | |
| ENV_PROD="prod" | |
| MAGENTO_PATH="../magento" | |
| HTACCESS_PATH="$MAGENTO_PATH/.htaccess" | |
| LOCALXML_PATH="$MAGENTO_PATH/app/etc/local.xml" |
If the cron is not running then it will probably fail silently because of EOL issues.
Check EOL
# @see ttps://unix.stackexchange.com/a/389616
cat -A fileAdd EOL option to VSCode
| if (typeof window.Cookies.get('disable-webtracking') === 'undefined') { | |
| // Your tracking code here | |
| // Google Analytics, Facebook, Matomo, you name it... | |
| } |
| <div> | |
| <input type="checkbox" name="toggleGoogleAnalytics" id="toggleGoogleAnalytics"> | |
| <label for="toggleGoogleAnalytics">Allow Google Analytics to track my visit.</label> | |
| </div> | |
| <script> | |
| var gaProperty = 'YOUR-ANALYTICS-PROPERTY'; | |
| var gaDisableCookieName = 'ga-disable-' + gaProperty; | |
| var gaIsAllowed = document.cookie.indexOf(gaDisableCookieName + '=true') === -1 | |
| var gaCheckbox = document.getElementById('toggleGoogleAnalytics'); |
| export default class DeliveryMessageHelper { | |
| /** | |
| * Get current URL without trailing slash. | |
| * @returns {string} | |
| */ | |
| static getCurrentURL () { | |
| return window.location.origin + window.location.pathname | |
| } | |
| /** |