Basic Vue Router Example using Official Vue Router plugin
A Pen by Swapnil Bhavsar on CodePen.
Basic Vue Router Example using Official Vue Router plugin
A Pen by Swapnil Bhavsar on CodePen.
| import {join} from 'path'; | |
| import webpack from 'webpack'; | |
| import {merge} from 'lodash'; | |
| import WebpackDevServer from 'webpack-dev-server'; | |
| import makeConfig from './make-config'; | |
| export default function(gulp, plugins, config) { | |
| var {ENV, site, port} = config; | |
| var {gutil, browserSync} = plugins; | |
| const isDev = ENV === 'DEV'; |
| FROM php:5.6-apache | |
| RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql | |
| COPY src/ /var/www/html |
| <?php | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Application Routes | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Here is where you can register all of the routes for an application. | |
| | It's a breeze. Simply tell Laravel the URIs it should respond to | |
| | and give it the controller to call when that URI is requested. |
| /** | |
| * Changes value to past tense. | |
| * Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc. | |
| * http://jsfiddle.net/bryan_k/0xczme2r/ | |
| * | |
| * @param {String} value The value string. | |
| */ | |
| Vue.filter('past-tense', function(value) { | |
| // Slightly follows http://www.oxforddictionaries.com/us/words/verb-tenses-adding-ed-and-ing | |
| var vowels = ['a', 'e', 'i', 'o', 'u']; |
| <?php | |
| function runCommand () | |
| { | |
| $command = 'php artisan queue:listen > /dev/null & echo $!'; | |
| $number = exec($command); | |
| file_put_contents(__DIR__ . '/queue.pid', $number); | |
| } | |
| if (file_exists(__DIR__ . '/queue.pid')) { |
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress | |
| # Bare Minimum Git | |
| # http://ironco.de/bare-minimum-git/ | |
| # ver 20150227 | |
| # | |
| # This file is tailored for a WordPress project | |
| # using the default directory structure | |
| # | |
| # This file specifies intentionally untracked files to ignore |
| . | |
| ├── base | |
| │ ├── config.styl | |
| │ ├── mixins.styl | |
| │ ├── helpers.styl | |
| │ └── grid.styl | |
| ├── core | |
| │ ├── reset.styl | |
| │ ├── forms.styl | |
| │ ├── tables.styl |
| <select name="estados-brasil"> | |
| <option value="AC">Acre</option> | |
| <option value="AL">Alagoas</option> | |
| <option value="AP">Amapá</option> | |
| <option value="AM">Amazonas</option> | |
| <option value="BA">Bahia</option> | |
| <option value="CE">Ceará</option> | |
| <option value="DF">Distrito Federal</option> | |
| <option value="ES">Espírito Santo</option> | |
| <option value="GO">Goiás</option> |