View webpack.config.dev.js
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const path = require('path');
const exclude = /node_modules/;
const webpack = require('webpack');
module.exports = {
entry: {
"js/bundle": "./js/src/main",
"css/main": "./sass/main.scss",
"css/frontpage": "./sass/frontpage.scss"
View webpack.config.dev.js
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const path = require('path');
const exclude = /node_modules/;
module.exports = {
entry: {
"js/bundle": "./js/src/main",
"css/main": "./sass/main.scss",
"css/frontpage": "./sass/frontpage.scss"
},
View gist:40f9175a8c562339375969597450fc05
{% macro menu_links(items, attributes, menu_level, current_path) %}
{% import _self as menus %}
{% if items %}
{% if menu_level != 0 %}
<ul class="list-unstyled font-title font-small text-capitalize line-height-l level-{{ menu_level }}">
{% endif %}
{% for i, item in items %}
{% if menu_level == 0 %}
<div class="col-sm-3">
View test.js
const isElementInViewport = function (el) {
let rect = el.getBoundingClientRect()
return (
rect.top >= 0 &&
rect.left >= 0 &&
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
rect.right <= (window.innerWidth || document.documentElement.clientWidth)
)
}
View main.scss
// your variables file - here you can override bootstrap variables as well as create your own
@import "variables.scss";
// the bootstrap source
@import "bootstrap-custom";
@import "base/responsive_mixin";
@import "base/button";
@import "base/panels";
@import "base/helpers";
View gulpfile.js
var gulp = require('gulp'),
sass = require('gulp-sass');
// here you add variables for your paths so you don't have to repeat them
var config = {
sass: {
src: './src/assets/sass',
dest: './public/css'
},
bootstrap: {
View main.component.ts
onSelect(card: Card): void {
this.getDetailedInfo(card);
}
getDetailedInfo(card) {
this.cardService
.getDetailedInfo(card)
.subscribe((card: Card) => {
this.card = this.selectedCard = card;
View card.service.ts
public getDetailedInfo(card): Observable<Card> {
return this.http.get(`${this.privateUrl}${card.name}`)
.map(this.extractData)
.publishReplay(1)
.refCount();
}
private extractData(res: Response) {
let body = res.json();
return new Card(body.data.name, body.data.card_type, body.data.text);
View AddressStep.php
<?php
/**
* @author Rocket Internet SE
* @copyright Copyright (c) 2015 Rocket Internet SE, Johannisstraße 20, 10117 Berlin, http://www.rocket-internet.de
*/
namespace Intfix\Module\Frontend\Form;
use Common\Form\Validator\InclusionKey;
use Intfix\Common\BankAccount\Entity\BankAccountApplication;
use Intfix\Common\Form\AddressFormTrait;