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 App; | |
class Comment extends Model | |
{ | |
public function post() | |
{ | |
return $this->belongsTo(Post::class); | |
} |
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
{ | |
"routes": { | |
"index": { | |
"title": "Home Page", | |
"content": "This is the homepage." | |
}, | |
"list": { | |
"title": "List Page", | |
"content": "List Page content." | |
} |
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
const fs = require('fs'); | |
const { basename, resolve } = require('path'); | |
const webpack = require('webpack'); | |
const merge = require('webpack-merge'); | |
const Clean = require('clean-webpack-plugin'); | |
const Copy = require('copy-webpack-plugin'); | |
const Html = require('html-webpack-plugin'); | |
const Text = require('extract-text-webpack-plugin'); | |
const marked = require('marked'); |
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
const fs = require('fs'); | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const merge = require('webpack-merge'); | |
const Clean = require('clean-webpack-plugin'); | |
const Html = require('html-webpack-plugin'); | |
const Text = require('extract-text-webpack-plugin'); | |
const marked = require('marked'); | |
const renderer = new marked.Renderer(); |
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 url("common.css"); | |
.app { | |
height: 100%; | |
} | |
@media only screen { | |
} |
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
Show hidden characters
{ | |
"presets": [ | |
["env", { | |
"modules": false | |
}], | |
"react" | |
], | |
"plugins": [] | |
} |
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
<!DOCTYPE html> | |
<html lang="en-us"> | |
<head> | |
<base href="/"> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content=""> | |
<meta name="author" content="Jason Breitigan"> |
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 NotFound from './notfound'; | |
const Config = ($stateProvider, $urlRouterProvider, $locationProvider) => { | |
'ngInject'; | |
$stateProvider | |
.state('404', NotFound); | |
$locationProvider | |
.html5Mode(false) |
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
/* global document Rx*/ | |
const link = document.querySelector('.nav-link'); | |
const link$ = Rx.Observable.fromEvent(link, 'click'); | |
const observer = { | |
next(event) { | |
console.log(event); | |
}, | |
error(err) { |