Skip to content

Instantly share code, notes, and snippets.

View davidhellmann's full-sized avatar
🤔
Focusing

David Hellmann davidhellmann

🤔
Focusing
View GitHub Profile
2019-08-06 00:20:22 [-][-][-][info][yii\db\Connection::open] Opening DB connection: mysql:host=localhost;dbname=craft3_local;port=3306;
2019-08-06 00:20:22 [-][-][-][profile begin][yii\db\Connection::open] Opening DB connection: mysql:host=localhost;dbname=craft3_local;port=3306;
2019-08-06 00:20:22 [-][-][-][profile end][yii\db\Connection::open] Opening DB connection: mysql:host=localhost;dbname=craft3_local;port=3306;
2019-08-06 00:20:22 [-][-][-][info][yii\db\Command::query] SHOW TABLES
2019-08-06 00:20:22 [-][-][-][profile begin][yii\db\Command::query] SHOW TABLES
2019-08-06 00:20:22 [-][-][-][profile end][yii\db\Command::query] SHOW TABLES
2019-08-06 00:20:22 [-][-][-][info][yii\web\Session::open] Session started
2019-08-06 00:20:22 [-][-][-][trace][craft\web\Application::_processActionRequest] Route requested: 'install/validate-site'
2019-08-06 00:20:22 [-][-][-][trace][yii\base\Controller::runAction] Route to run: install/validate-site
2019-08-06 00:20:22 [-][-][-][trace][yii\base\InlineAction::runWith
{% if entry ?? null and entry.entryImage.one() ?? null and watermark.globalWatermark.one() ?? null %}
{% set watermarkField = watermark.globalWatermark.one() %}
{# -- Check if Watermark Using active -- #}
{% if watermarkField.useWatermark %}
{# -- Watermark Image -- #}
{% if watermarkField.image.one() ?? null %}
{% set watermarkImage = watermarkField.image.one() %}
{% set watermarkWidth = watermarkField.width %}
{% if entry ?? null and entry.entryImage.one() ?? null and watermark.globalWatermark.one() ?? null %}
{% set watermarkField = watermark.globalWatermark.one() %}
{# -- Check if Watermark Using active -- #}
{% if watermarkField.useWatermark %}
{# -- Watermark Image -- #}
{% if watermarkField.image.one() ?? null %}
{% set watermarkImage = watermarkField.image.one() %}
{% set watermarkWidth = watermarkField.width %}
{# @var craft \craft\web\twig\variables\CraftVariable #}
{# @var entry \craft\elements\Entry #}
{#
Description of what this file is for
@package baukasten
@author Sarah Schütz [[email protected]]
o-freeform
------------------------------------------------------------
{% include '_forms/input/_template.twig' with {
opt: {
type: 'text',
name: field.handle,
label: field.label,
value: field.value,
maxlength: field.maxLength,
required: field.required,
id: 'input' ~ field.id,
{#
a-input
Codepen: https://codepen.io/davidhellmann/pen/OOLmYq
------------------------------------------------------------
#}
{# -- Set Defaults -- #}
{% set defaults = {
cn: 'a-input',
modifiers: [],
<script>
function getCookie(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length === 2) return parts.pop().split(";").shift();
}
// Get klaro cookie
var klaroCurrent;
var klaroCookie;
// Import our CSS
import styles from '../css/app.scss';
// because webpack generated code does not go through babel
import 'core-js/modules/es.promise';
import 'core-js/modules/es.array.iterator';
import objectFitImages from 'object-fit-images';
// App main
const main = async () => {
// webpack.prod.js - production builds
const LEGACY_CONFIG = 'legacy';
const MODERN_CONFIG = 'modern';
// node modules
const git = require('git-rev-sync');
const glob = require('glob-all');
const merge = require('webpack-merge');
const moment = require('moment');
const path = require('path');
// webpack.settings.js - webpack settings config
// node modules
require('dotenv').config();
const Terser = require('terser');
const Postcss = require('postcss');
const Cssnano = require('cssnano');
// Webpack settings exports
// noinspection WebpackConfigHighlighting