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
| { | |
| "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
| <?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
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = CRLF | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true | |
| indent_style = space | |
| indent_size = 2 |
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
| <template> | |
| <div class="container-fluid"> | |
| <div class="row"> | |
| <div class="col-md-12"> | |
| <div class="card card-default"> | |
| <div class="card-header">Dashboard Component</div> | |
| <div class="card-body"> | |
| {{ data }} | |
| </div> |
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 { $on } from './util'; | |
| import View from './view'; | |
| import Model from './model'; | |
| import Controller from './controller'; | |
| class App { | |
| constructor() { | |
| const model = new Model(); | |
| const view = new View(); |
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 { createFeatureSelector } from '@ngrx/store'; | |
| import * as auth from './reducers/auth.reducers'; | |
| export interface AppState { | |
| authState: auth.State; | |
| } | |
| export const reducers = { |
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
| export const ADD_TODO = '[Todo] Add Todo'; | |
| export const REMOVE_TODO = '[Todo] Remove Todo'; | |
| export class AddTodo { | |
| readonly type = ADD_TODO; | |
| constructor(private payload: any) {} | |
| } | |
| export class RemoveTodo { | |
| readonly type = REMOVE_TODO; |
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 UglifyJs = require('uglifyjs-webpack-plugin'); | |
| const Clean = require('clean-webpack-plugin'); | |
| const Copy = require('copy-webpack-plugin'); | |
| const CSS = require('mini-css-extract-plugin'); | |
| const HTML = require('html-webpack-plugin'); | |
| const configureBabelLoader = () => ({ | |
| test: /\.(js|jsx)$/, | |
| exclude: /node_modules/, | |
| use: { |
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 express = require('express'); | |
| const bodyParser = require('body-parser'); | |
| const cookieParser = require('cookie-parser'); | |
| const favicon = require('serve-favicon'); | |
| const morgan = require('morgan'); | |
| const methodOverride = require('method-override'); | |
| const path = require('path'); | |
| const app = express(); |