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
/// <binding AfterBuild='build' /> | |
var gulp = require('gulp'), | |
bower = require('main-bower-files'), | |
clean = require('gulp-clean'), | |
less = require('gulp-less'), | |
minifyCSS = require('gulp-minify-css'), | |
rename = require('gulp-rename'), | |
typescript = require('gulp-tsc'), | |
uglify = require('gulp-uglify'); |
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
// Mouse Blocker | |
this.alpha = 0.01; | |
this.addEventListener('click', function(e) { }); |
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
using Microsoft.Extensions.Configuration; | |
using System; | |
namespace CoreConsole { | |
public interface ICustomService { | |
} | |
public class CustomService : ICustomService { | |
public CustomService(IConfigurationRoot config) { |
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
[HttpGet] | |
public async Task<JsonResult> Get() | |
{ | |
var users = dataContext.TrackingUsers.Include(u => u.TrackingVisits).ThenInclude(v => v.TrackingDevice); | |
var newton = JsonConvert.SerializeObject(users); | |
var json_net = Json(users); | |
return json_net; | |
} |
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> | |
<!-- This works: --> | |
<div repeat.for="item of things"> | |
${item | test:message2:{ vm: $parent } & signal:'some-signal'} | |
</div> | |
<!-- This offends the parser. Uncomment to see error. --> | |
<!-- <div repeat.for="item of things"> | |
${item | test:message:$parent & signal:'some-signal'} | |
</div> --> |
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 * as gulp from 'gulp'; | |
import * as webpack from 'webpack'; | |
import { server } from './server'; | |
import { bundleConfig, vendorConfig } from './webpack'; | |
function webpackHandler(resolve) { | |
return (error, stats) => { | |
if(error) | |
console.error('Webpack', error); |
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
/// <reference types="aurelia-loader-webpack/src/webpack-hot-interface"/> | |
import {Aurelia} from 'aurelia-framework' | |
import environment from './environment'; | |
import {PLATFORM} from 'aurelia-pal'; | |
import * as Bluebird from 'bluebird'; | |
// remove out if you don't want a Promise polyfill (remove also from webpack.config.js) | |
Bluebird.config({ warnings: { wForgottenReturn: false } }); | |
export function configure(aurelia: Aurelia) { |
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
// TODO: Create a configuration preset to allow npm based projects to bundle their own tailwind and tree shake? #JoshD | |
module.exports = { | |
purge: [], | |
theme: { | |
colors: { | |
accent: { | |
default: 'var(--accent-fill-rest)', | |
hover: 'var(--accent-fill-hover)', | |
active: 'var(--accent-fill-active)' | |
}, |
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
{ | |
"version": "experimental", | |
"tags": [ | |
{ | |
"name": "natgen-accordion-item", | |
"path": "./src\\components\\accordion-item\\accordion-item.ts", | |
"properties": [ | |
{ | |
"name": "headinglevel", | |
"description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the\r\nheading element.", |
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
@inject IFeatureManager featureManager | |
@if (Enabled) | |
{ | |
@ChildContent | |
} | |
@code { | |
// Reference: https://github.com/microsoft/FeatureManagement-Dotnet/blob/main/src/Microsoft.FeatureManagement.AspNetCore/TagHelpers/FeatureTagHelper.cs |
OlderNewer