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 default function validate (fieldValidator) { | |
const parseValidators = haye.fromPipe(fieldValidator.rule).toArray() | |
let validatorList = [] | |
parseValidators.forEach(function (validator) { | |
if (!validators.hasOwnProperty(validator.name)) { | |
throw new Error(`Validator not found: ${validator.name}`) | |
} | |
const message = get(fieldValidator, `messages.${validator.name}`) |
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
validate () { | |
let results = [] | |
if (this.schema.validator) { | |
results = results.concat( | |
...validator(this.schema.validator).map(validator => { | |
return validator.validate( | |
this.value, | |
this.schema, | |
this.model, | |
validator.message |
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
let inputErrors = [] | |
if (this.schema.validator) { | |
inputErrors = inputErrors.concat( | |
...validator(this.schema.validator) | |
.map(validator => { | |
return validator.validate( | |
this.value, | |
this.schema, | |
this.model, | |
validator.message |
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
function msg(text) { | |
if (text != null && arguments.length > 1) { | |
for (let i = 1; i < arguments.length; i++) { | |
text = text.replace('{' + (i - 1) + '}', arguments[i]) | |
} | |
} | |
return text | |
} |
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 { generateModel } from './components/FormBuilder/utils' | |
const step1 = [ | |
{ | |
type: 'input', | |
inputType: 'text', | |
label: 'Firstname', | |
default: 'wtf', | |
model: 'personal.firstname', | |
placeholder: 'yoo', |
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
**Startseite** | |
- Der Intro text ist nun Einstellbar über Emistoff -> Emistoff | |
**Global** | |
- Der Back to top button wurde ein bisschen nach unten versetzt | |
**Internal** | |
- Es wird nun eine andere Funktion zum steuern der MwSt. für Kunden(incl)/Gewerbe(excl) ( nur für die Anzeige rest wird alles von WooCommerce gesteuert) verwendet. Es sollte nun kein Konflikt mehr enstehen da die Einstellungen nicht mehr Global geupdated werden | |
**Übersicht** |
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 firebase from './index' | |
const db = firebase.firestore() | |
export default db |
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
.page-leave-active { | |
animation: blurOut 0.3s ease-in both; | |
overflow-y: hidden !important; | |
} | |
.page-enter-active { | |
animation: blurIn 0.3s ease-in both; | |
} |
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 /* Template Name: Blog Template */ ?> | |
<?php get_header(); ?> | |
<?php the_content(); ?> | |
<?php get_footer(); ?> | |
some html |
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 /* Template Name: Blog Template */ ?> | |
<?php get_header(); ?> | |
<?php the_content(); ?> | |
<?php get_footer(); ?> |