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); | |
@if $theme == 'default' { |
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
/* eslint-disable */ | |
import Vue from "vue"; | |
import VueCompositionAPI, { | |
computed, | |
onBeforeMount, | |
reactive, | |
toRefs, | |
} from "@vue/composition-api"; | |
import { useVideoPlayer } from "../../../helpers/videoPlayer/videoPlayerFunctions"; |
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
/** | |
* Webpack Config for Javascript and CSS Bundling | |
* | |
* @package generator-lilly | |
* @author Martin Herweg <[email protected]> | |
*/ | |
import webpack from 'webpack'; | |
import { getIfUtils, removeEmpty } from 'webpack-config-utils'; | |
import path from 'path'; |
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
Event::on(LineItems::class, LineItems::EVENT_POPULATE_LINE_ITEM, function (LineItemEvent $event) { | |
$purchasable = $event->lineItem->purchasable; | |
$lineItem = $event->lineItem; | |
$productImageUrl = ''; | |
$imageOptimize = []; | |
if (count($purchasable->product->productImage) > 0) { | |
$productImageUrl = $purchasable->product->productImage->one()->getUrl(); | |
if (Craft::$app->plugins->isPluginInstalled('image-optimize')) { |
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 chalk from 'chalk'; | |
/** | |
|-------------------------------------------------------------------------- | |
| gulp browser-sync | |
|-------------------------------------------------------------------------- | |
* | |
* Browser Sync | |
* @description Refresh the Brwoser after File Change. | |
* Combined with webpack for HMR or Content Reload |
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
{ | |
"sections": [ | |
{ | |
"name": "A New Section", | |
"handle": "a_new_section_handle" | |
} | |
] | |
} | |
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
// No kind of Autocomplete works for in these import styles | |
// Vue Lazyloading of Routes | |
const Confirmation = () => import(/* webpackChunkName: 'router-confirmation' */ 'Js/views/Confirmation.vue'); | |
const Tnbs = () => import(/* webpackChunkName: 'router-tnbs' */ 'Js/views/Tnbs.vue'); | |
const Privacy = () => import(/* webpackChunkName: 'router-privacy' */ 'Js/views/Privacy.vue'); | |
// Normal Lazyloading as described in the webpack Documentation | |
// Autocomplete doesn't work eithe | |
import('Components/testFunction') |
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
Show hidden characters
{ | |
"presets": | |
[ | |
"es2015" | |
] | |
} |
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
/* | |
|-------------------------------------------------------------------------- | |
| <%= moduleName.replace('-', '_') %> | |
|-------------------------------------------------------------------------- | |
*/ | |
export default function() { | |
console.log('Initialize: <%= moduleName.replace('-', '_') %>'); | |
} |
NewerOlder