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 store from './vuex'; | |
import vuexI18n from 'vuex-i18n'; | |
Vue.use(vuexI18n.plugin, store); | |
import Locales from './vue-i18n-locales.generated.js'; | |
Vue.i18n.add('en', Locales.en); | |
Vue.i18n.add('de', Locales.de); | |
// set the start locale to use | |
Vue.i18n.set('en'); |
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 VueInternalization from 'vue-i18n'; | |
import Locales from './vue-i18n-locales.generated.js'; | |
Vue.use(VueInternalization); | |
const i18n = new VueInternalization(Locales); | |
import store from './vuex'; | |
const app = new Vue({ | |
store, // inject store into all children |
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
<my-component | |
csrf-token="{{ csrf_token() }}" | |
:user="{{ $user }}" | |
update-route="{{ route('users.update', ['user' => $user]) }}" | |
></my-component inline-component> |
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
<template> | |
<div> | |
<h1>Edit {{ user.name }}</h1> | |
<form method="post" action="{{ updateRoute }}"> | |
<input hidden name="_token" :value="csrfToken"> | |
<input name="_method" type="hidden" value="PATCH"> | |
<!-- Some form fields --> | |
<button type="submit">Update</button> |
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
<template> | |
<div> | |
<h1>@lang('users.edit') {{ $user->name }}</h1> | |
<form method="post" action="{{ route('users.update', ['user' => $user]) }}"> | |
{!! csrf_field() !!} | |
<input name="_method" type="hidden" value="PATCH"> | |
<!-- Some form fields --> | |
<button type="submit">{{ __('button.update') }}</button> |
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
<my-component inline-template> | |
<h1>@lang('users.edit') {{ $user->name }}</h1> | |
<form method="post" action="{{ route('users.update', ['user' => $user]) }}"> | |
{!! csrf_field() !!} | |
<input name="_method" type="hidden" value="PATCH"> | |
<!-- Some form fields --> | |
<button type="submit">{{ __('button.update') }}</button> | |
</form> |
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
/node_modules | |
/public/storage | |
/public/js/ | |
/public/css/ | |
/public/img/ | |
/public/fonts/ | |
/public/images/ | |
/public/mix-manifest.json | |
/public/hot | |
/storage/*.key |
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 namespace ; | |
use TYPO3\CMS\Core\SingletonInterface; | |
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface; | |
use TYPO3\CMS\Extbase\Reflection\ObjectAccess; | |
/** | |
* Provide a way to get the configuration just everywhere | |
* | |
* Example |
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
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# All PHP files MUST use the Unix LF (linefeed) line ending. | |
[*] | |
charset = utf-8 | |
end_of_line = lf |
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
<f:form.validationResults for="{property}"> | |
<f:if condition="{validationResults.flattenedErrors}"> | |
<ul class="validation-results"> | |
<f:alias map="{lll: 'LLL:EXT:extension_key/Resources/Private/Language/locallang_errors.xlf:error'}"> | |
<f:for each="{validationResults.errors}" as="error"> | |
<li class="error"> | |
<f:translate key="{lll}.{property}.{error.code}" | |
default="{f:translate(key:'{lll}.{property}', default:'{f:translate(key:\'{lll}.default\')}')}"/> | |
</li> | |
</f:for> |