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
| try { | |
| showButton(); | |
| } catch (error) { | |
| // ... | |
| } |
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 { | |
| createEntityAdapter, | |
| EntityAdapter, | |
| EntityState | |
| } from "@ngrx/entity"; | |
| export interface IUser { | |
| id: string; | |
| name: string; | |
| email: string; |
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
| services.AddLocalization(options => options.ResourcesPath = "Resources"); | |
| services.Configure<RequestLocalizationOptions>(options => | |
| { | |
| var supportedCultures = new[] | |
| { | |
| new CultureInfo("en"), | |
| new CultureInfo("nl") | |
| }; |
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
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| services.Configure<CookiePolicyOptions>(options => | |
| { | |
| // This lambda determines whether user consent for non-essential cookies is needed for a given request. | |
| options.CheckConsentNeeded = context => true; | |
| options.MinimumSameSitePolicy = SameSiteMode.None; | |
| }); | |
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
| public class ConnectionHub : Hub | |
| { | |
| public async Task Send(string userId) | |
| { | |
| var message = $"Send message to you with user id {userId}"; | |
| await Clients.Client(userId).SendAsync("ReceiveMessage", message); | |
| } | |
| public string GetConnectionId() | |
| { |
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
| "dependencies": { | |
| "@angular/animations": "^5.1.3", | |
| "@angular/common": "^5.1.3", | |
| "@angular/compiler": "^5.1.3", | |
| "@angular/compiler-cli": "^5.1.3", | |
| "@angular/core": "^5.1.3", | |
| "@angular/forms": "^5.1.3", | |
| "@angular/http": "^5.1.3", | |
| "@angular/platform-browser": "^5.1.3", | |
| "@angular/platform-browser-dynamic": "^5.1.3", |
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
| public class Startup | |
| { | |
| public Startup(IConfiguration configuration) | |
| { | |
| Configuration = configuration; | |
| } | |
| public IConfiguration Configuration { get; } | |
| // This method gets called by the runtime. Use this method to add services to the container. |
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 merge = require('webpack-merge'); | |
| const baseConfig = require('./webpack.config.js'); | |
| const webpack = require("webpack"); | |
| module.exports = merge(baseConfig, { | |
| plugins: [ | |
| new webpack.DefinePlugin({ | |
| 'process.env': { | |
| 'NODE_ENV': JSON.stringify('production'), | |
| 'BASE_URL': JSON.stringify('https://awesomecmscore.azurewebsites.net/') |
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 merge = require('webpack-merge'); | |
| const baseConfig = require('./webpack.config.js'); | |
| const webpack = require("webpack"); | |
| module.exports = merge(baseConfig, { | |
| plugins: [ | |
| new webpack.DefinePlugin({ | |
| 'process.env': { | |
| 'NODE_ENV': JSON.stringify('development'), | |
| 'BASE_URL': JSON.stringify('http://localhost:5000/') |
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 path = require("path"); | |
| const webpack = require("webpack"); | |
| const MiniCssExtractPlugin = require("mini-css-extract-plugin"); | |
| const CompressionPlugin = require("compression-webpack-plugin"); | |
| const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); | |
| const WebpackShellPlugin = require('webpack-shell-plugin'); | |
| const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin"); | |
| const shellScript = []; |