This file contains hidden or 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 Vue from 'vue'; | |
import {default as fa} from 'fontawesome.vue'; | |
(function(window) { | |
"use strict"; | |
// register our custom FontAwesome component globally | |
Vue.component('fa', fa); | |
new Vue({ |
This file contains hidden or 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($) { | |
/** | |
* | |
* This plugin is released under the MIT Licene (http://opensource.org/licenses/MIT) | |
* | |
* RoyalSlider HTML5 HistoryApi Plugin by Conrad Barthelmes | |
* | |
* @requires RoyalSlider http://dimsemenov.com/plugins/royal-slider/ | |
* @requires History.js API https://github.com/balupton/History.js/ | |
* - bundled jquery.history.js for html4+html5 support |
This file contains hidden or 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
var localStorageHandler = function(namespace, dataStructure) { | |
this.namespace = namespace; | |
this.dataStructure = dataStructure ? dataStructure : {}; | |
this.saveItem = function(id, data) { | |
var oldData = this.getItem(id); | |
var saveData = $.extend(true, {}, oldData, data); |
This file contains hidden or 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 | |
namespace Application\LocationBundle\Document; | |
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; | |
use Symfony\Component\Validator\Constraints as Assert; | |
use Gedmo\Mapping\Annotation as Gedmo; | |
use Doctrine\ODM\MongoDB\SoftDelete\SoftDeleteable; | |
use Gedmo\Translatable\Translatable; |
This file contains hidden or 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
{# MyBundle/Resources/view/JavaScript/localized.js.twig #} | |
<script type="text/javascript"> | |
/** | |
* template for dynamic translations and urls for js | |
*/ | |
var localize = { | |
inlineEdit: { | |
tooltip: '{{ "user.profile.edit.tooltip" | trans }}', | |
submit: '{{ "user.profile.edit.submit" | trans }}', |
This file contains hidden or 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 | |
/** | |
* {@inheritdoc} | |
*/ | |
public function loadMetadataForClass($className, ClassMetadataInfo $class) | |
{ | |
$reflClass = $class->getReflectionClass(); | |
$documentAnnots = array(); |
This file contains hidden or 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
/** | |
* {@inheritdoc} | |
*/ | |
public function loadMetadataForClass($className, ClassMetadataInfo $class) | |
{ | |
$reflClass = $class->getReflectionClass(); | |
$documentAnnots = array(); | |
foreach ($this->reader->getClassAnnotations($reflClass) as $annot) { |
This file contains hidden or 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
<meta charset="utf-8"> | |