Remove unnecessary references in test files. (#14900)

This commit is contained in:
Andy 2017-03-10 07:46:20 -08:00 committed by GitHub
parent 1c2f3aec5d
commit 51b64c3c15
358 changed files with 395 additions and 1384 deletions

View File

@ -1,5 +1,3 @@
/// <reference types="estree" />
import acorn = require('acorn');
import * as ESTree from 'estree';

View File

@ -1,6 +1,3 @@
/// <reference types="jquery" />
import amplify = require("amplify");
// Copied examples directly from AmplifyJs site

View File

@ -1,6 +1,3 @@
///<reference path='index.d.ts'/>
///<reference types="angular"/>
var myApp = angular.module('testModule');
interface MyAppScope extends ng.IScope {

View File

@ -1,5 +1,3 @@
/// <reference types="angular" />
import * as angular from "angular";
let myApp = angular.module('myApp', ['feature-flags']);

View File

@ -1,5 +1,3 @@
/// <reference types="angular" />
var scope: ng.IScope;
var hotkeyProvider: ng.hotkeys.HotkeysProvider;
var hotkeyObj: ng.hotkeys.Hotkey;

View File

@ -1,5 +1,3 @@
/// <reference types="angular" />
var app = angular.module("angular-jwt-tests", ["angular-jwt"]);
var $jwtHelper: ng.jwt.IJwtHelper;

View File

@ -1,5 +1,3 @@
/// <reference types="jquery" />
var btfModal: angularModal.AngularModalFactory;
// Using template URL

View File

@ -1,6 +1,3 @@
/// <reference types="node" />
import Archiver = require('archiver');
import FS = require('fs');

View File

@ -1,5 +1,4 @@
/// <reference types="node" />
/// <reference types="pathwatcher" />
import path = require("path");
import _atom = require("atom");

View File

@ -1,5 +1,3 @@
/// <reference types="auth0" />
import * as auth0 from 'auth0';
const management = new auth0.ManagementClient({

View File

@ -1,5 +1,3 @@
/// <reference types="autosize" />
// from a NodeList
autosize(document.querySelectorAll('textarea'));

View File

@ -1,5 +1,3 @@
/// <reference types="aws-lambda" />
var str: string = "any string";
var date: Date = new Date();
var anyObj: any = { abc: 123 };

View File

@ -1,7 +1,4 @@
/// <reference types="babel-generator" />
/// <reference types="babel-types" />
// Example from https://github.com/babel/babel/tree/master/packages/babel-template
import template = require('babel-template');

View File

@ -1,5 +1,3 @@
/// <reference types="babel-types" />
/// <reference types="babylon" />

View File

@ -1,8 +1,3 @@
/// <reference types="babel-types" />
/// <reference types="babel-types" />
// Example from https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md#babylon
import * as babylon from "babylon";
declare function assert(expr: boolean): void;

View File

@ -1,5 +1,3 @@
/// <reference types="jquery"/>
import * as Backbone from 'backbone';
// Example code.
@ -26,7 +24,7 @@ class View extends Backbone.Layout<Backbone.Model> {
"mouseleave": "removeElement"
}
}
wrapElement(): void {
this.$el.wrap("<b>");
}

View File

@ -1,5 +1,3 @@
/// <reference types="jquery" />
function test_events() {
var object = new Backbone.Events();

View File

@ -1,6 +1,3 @@
/// <reference types="mocha" />
/// <reference types="chai" />
import * as angular from 'angular';
import 'angular-mocks';

View File

@ -1,5 +1,3 @@
/// <reference types="node" />
import fs = require('fs');
import BatchStream = require('batch-stream');

View File

@ -1,5 +1,3 @@
/// <reference types="bazinga-translator" />
Translator.fallback = 'en';
Translator.defaultDomain = 'messages';

View File

@ -1,5 +1,3 @@
/// <reference types="bezier-js" />
function test() {
var bezierjs: typeof BezierJs;

View File

@ -1,10 +1,3 @@
/// <reference path="Microsoft.Maps.AdvancedShapes.d.ts"/>
/// <reference path="Microsoft.Maps.Directions.d.ts"/>
/// <reference path="Microsoft.Maps.Search.d.ts"/>
/// <reference path="Microsoft.Maps.Themes.BingTheme.d.ts"/>
/// <reference path="Microsoft.Maps.Traffic.d.ts"/>
/// <reference path="Microsoft.Maps.VenueMaps.d.ts"/>
namespace BingMapsTests {
// An interactive set of Bing Maps AJAX control usages can be found at http://www.bingmapsportal.com/isdk/ajaxv7

View File

@ -1,5 +1,3 @@
/// <reference types="bit-array" />
import BitArray = require("bit-array");
const a = new BitArray(32);

View File

@ -1,6 +1,3 @@
/// <reference types="node" />
var bl = require('blob-stream');
var blob = bl.toBlob();

View File

@ -1,4 +1,3 @@
/// <reference types="node" />
/// <reference types="bluebird" />
import tape = require('blue-tape');

View File

@ -1,5 +1,3 @@
/// <reference types="bluebird" />
import Promise = require('bluebird');
import retry = require('bluebird-retry');

View File

@ -1,5 +1,3 @@
/// <reference types="jquery"/>
var pagerSelector = ".bootpager";
var $pager = $(pagerSelector);

View File

@ -1,4 +1,3 @@
/// <reference path="index.d.ts"/>
function tests_simple() {
$('#datepicker').datepicker();
$('#datepicker').datepicker({

View File

@ -1,5 +1,3 @@
/// <reference types="jquery"/>
// Examples from the projects github page
$('input[maxlength]').maxlength();

View File

@ -1,6 +1,3 @@
/// <reference types="jquery" />
//Test for bootstrap-notify v3.1.3
//Copied example directly from Bootstrap-notify site

View File

@ -1,5 +1,3 @@
/// <reference types="jquery"/>
$(".selectpicker").selectpicker({
actionsBox: true,
container: "body",

View File

@ -1,6 +1,3 @@
/// <reference types="jquery" />
$(function() {
// examples from http://seiyria.github.io/bootstrap-slider/

View File

@ -1,9 +1,6 @@
/// <reference types="jquery"/>
function test_cases() {
$('#switch').bootstrapSwitch();
$('#switch').bootstrapSwitch({
state: false
});
@ -15,7 +12,7 @@ function test_cases() {
//var mySwitch = $('#switch').get(0);
//mySwitch.toggleAnimate();
$('#switch').bootstrapSwitch('state', true, true);
$('#switch').bootstrapSwitch('state') === true;

View File

@ -1,6 +1,3 @@
/// <reference types="jquery" />
$(function () {
// Example 1 from http://www.virtuosoft.eu/code/bootstrap-touchspin/
$("input[name='demo1']").TouchSpin({
@ -26,7 +23,7 @@ $(function () {
$("input[name='demo_vertical']").TouchSpin({
verticalbuttons: true
});
// Example 4 from http://www.virtuosoft.eu/code/bootstrap-touchspin/
$("input[name='demo_vertical2']").TouchSpin({
verticalbuttons: true,

View File

@ -1,5 +1,3 @@
/// <reference types="jquery" />
$('#myForm').validator();
$('#myForm').validator('update');
$('#myForm').validator('validate');

View File

@ -1,5 +1,3 @@
/// <reference types="jquery"/>
import * as moment from "moment";
const dp = $("#picker").datetimepicker().data("DateTimePicker");

View File

@ -1,6 +1,3 @@
/// <reference types="jquery" />
$('body').off('.data-api');
$('body').off('.alert.data-api');

View File

@ -1,5 +1,3 @@
/// <reference types="browser-resolve" />
import * as browserResolve from 'browser-resolve';
function basic_test_async(callback: (err?: Error, resolved?: string) => void) {

View File

@ -1,4 +1,3 @@
/// <reference types="q" />
import * as Validators from 'business-rules-engine/node-validators';
import Validation = require("business-rules-engine");

View File

@ -1,5 +1,3 @@
/// <reference types="cachefactory" />
CacheFactory.get('test');
CacheFactory.createCache('test', {

View File

@ -1,6 +1,4 @@
/// <reference types="jquery" />
/// <reference types="d3" />
var cal = new CalHeatMap();
cal.init();

View File

@ -1,5 +1,3 @@
/// <reference types="cassandra-driver" />
import * as cassandra from 'cassandra-driver';
import * as util from 'util';

View File

@ -1,5 +1,3 @@
/// <reference types="node" />
import cbor = require('cbor');
import assert = require('assert');
import fs = require('fs');

View File

@ -1,5 +1,3 @@
/// <reference types="q" />
import chai = require('chai');
import chaiAsPromised = require('chai-as-promised');
import Q = require('q');

View File

@ -1,7 +1,3 @@
/// <reference types="react" />
/// <reference types="enzyme" />
/// <reference types="chai" />
import * as React from "react";
import * as chaiEnzyme from "chai-enzyme";
import { expect } from "chai";

View File

@ -1,6 +1,3 @@
/// <reference types="chai" />
/// <reference types="mocha" />
import * as chai from 'chai';
import * as spies from 'chai-spies';
import * as Mocha from 'mocha';

View File

@ -1,4 +1,3 @@
/// <reference types="chocolatechipjs" />
// ChocolateChipStatic -- DOM creation, etc.
$(function() {
alert('Ready to do stuff!');
@ -282,7 +281,7 @@ fetch('../controllers/php-post.php', {
},
body: formData
})
.then($.json)
.then($.json)
.then(function<postData>(data: any): any {
if(data.email_check == "valid"){
$("#message_ajax").html("<div class='successMessage'>" + data.email + " is a valid e-mail address. Thank you, " + data.name + ".</div>");
@ -300,12 +299,12 @@ interface putData {
var putData = $('#fileText').val();
fetch('../controllers/php-put.php', {
method: 'put',
headers: {
"Content-type": "application/x-www-form-urlencoded; charset=UTF-8"
headers: {
"Content-type": "application/x-www-form-urlencoded; charset=UTF-8"
},
body: putData
})
.then($.json)
.then($.json)
.then(function<putData>(data:any): any {
console.dir(data.base);
$("#message_ajax").append('<p>' + data.result + '</p>');
@ -324,12 +323,12 @@ interface deleteData {
var file = $('#fileName').val();
fetch('../controllers/php-delete.php', {
method: 'delete',
headers: {
"Content-type": "application/x-www-form-urlencoded; charset=UTF-8"
headers: {
"Content-type": "application/x-www-form-urlencoded; charset=UTF-8"
},
body: file
})
.then($.json)
.then($.json)
.then(function<deleteData>(data: any): any {
$("#message_ajax").html("<div>DELETE was sent to the server successfully.</div>");
$("#message_ajax").append('<p>' + data.result + '</p>');

View File

@ -1 +0,0 @@
/// <reference types="cliff" />

View File

@ -1,6 +1,3 @@
/// <reference types="node"/>
/// <reference types="koa"/>
import * as koa from 'koa';
import * as parse from 'co-body';

View File

@ -1,8 +1,5 @@
/// <reference types= "node" />
import cs = require('coinstring');
var privateKeyHex = "1184cd2cdd640ca42cfc3a091c51d549b2f016d454b2774019c2b2d2e08529fd";
var privateKeyHexBuf = new Buffer(privateKeyHex, 'hex');
var version = 0x80; // Bitcoin private key

View File

@ -1,5 +1,3 @@
/// <reference types="express-session" />
import * as connectRedis from "connect-redis";
import * as session from "express-session";

View File

@ -1,5 +1,3 @@
/// <reference types="node" />
import * as Cookies from 'cookies';
import * as http from 'http';

View File

@ -1,5 +1,3 @@
/// <reference path="index.d.ts"/>
window.addEventListener('batterystatus',
(ev: BatteryStatusEvent) => { console.log('Battery level is ' + ev.level); });

View File

@ -1,5 +1,3 @@
/// <reference path="index.d.ts"/>
navigator.camera.getPicture(
(data: string) => { alert('Got photo!'); },
(message: string)=> { alert('Failed!: ' + message); },

View File

@ -1,5 +1,3 @@
/// <reference path="index.d.ts"/>
var contact: Contact = navigator.contacts.create({
nickname: 'John Smith',
displayName: 'John Smith',

View File

@ -1,5 +1,3 @@
/// <reference path="index.d.ts"/>
navigator.accelerometer.getCurrentAcceleration(
(acc: Acceleration) => { console.log('X: ' + acc.x + 'Y: ' + acc.y + 'Z: ' + acc.z); },
() => { alert('Error!'); });

View File

@ -1,5 +1,3 @@
/// <reference path="index.d.ts"/>
navigator.compass.getCurrentHeading(
(heading: CompassHeading)=> { console.log('Got heading to ' + heading.magneticHeading); },
(error: CompassError)=> { alert('Error! ' + error.code); },

View File

@ -1,3 +1 @@
/// <reference path="index.d.ts"/>
console.log(JSON.stringify(device));

View File

@ -1,4 +1,2 @@
/// <reference path="index.d.ts"/>
navigator.notification.alert('Alert!', () => { alert('You\'re alerted'); }, 'Alert', 'Ok');
navigator.notification.confirm('Are you ok?', (choice: number) => { alert('Your choice is ' + choice); });

View File

@ -1,5 +1,3 @@
/// <reference path="index.d.ts"/>
var file = new FileTransfer();
file.onprogress = (ev: ProgressEvent) => {

View File

@ -1,5 +1,4 @@
/// <reference types="cordova"/>
/// <reference path="index.d.ts"/>
function fsaccessor(fs: FileSystem) {
console.log('FS root is: ' + fs.root.name);

View File

@ -1,5 +1,3 @@
/// <reference path="index.d.ts"/>
navigator.globalization.dateToString(new Date(),
(date) => { console.log(JSON.stringify(date)); },
(error) => { alert(error.message); },

View File

@ -1,5 +1,3 @@
/// <reference path="index.d.ts"/>
// InAppBrowser plugin
//----------------------------------------------------------------------

View File

@ -1,5 +1,3 @@
/// <reference path="index.d.ts"/>
Keyboard.shrinkView(true);
Keyboard.shrinkView(false);
Keyboard.hideFormAccessoryBar(true);

View File

@ -1,5 +1,3 @@
/// <reference path="index.d.ts" />
console.log('Supported audio modes are: ' + JSON.stringify(navigator.device.capture.supportedAudioModes));
navigator.device.capture.captureAudio(

View File

@ -1,5 +1,3 @@
/// <reference path="index.d.ts"/>
// Media and Media Capture
//----------------------------------------------------------------------

View File

@ -1,5 +1,3 @@
/// <reference path="index.d.ts" />
var connType = navigator.connection.type;
if (connType == Connection.WIFI) {
console.log('Congratulations, you\'re with fast Internet!');

View File

@ -1,4 +1,2 @@
/// <reference path="index.d.ts"/>
navigator.splashscreen.show();
navigator.splashscreen.hide();

View File

@ -1,6 +1,3 @@
/// <reference path="index.d.ts"/>
var statusBar: StatusBar = window.StatusBar;
statusBar.overlaysWebView(true);
statusBar.overlaysWebView(false);

View File

@ -1,5 +1,3 @@
/// <reference path="index.d.ts" />
var notification: Notification;
notification.vibrate(100);

View File

@ -1,6 +1,3 @@
/// <reference path="index.d.ts" />
var db = window.openDatabase('Test', '0.1', 'test', 1024 * 1024 * 5);
db.transaction(
(tx: SqlTransaction) => {

View File

@ -1,6 +1,3 @@
/// <reference types="yui" />
YUI.add('algo-md5-test', function (Y) {
var C = CryptoJS;

View File

@ -1,4 +1,3 @@
/// <reference types="css-modules-require-hook" />
/// <reference types="node" />
import * as hook from 'css-modules-require-hook';

View File

@ -1,5 +1,3 @@
/// <reference types="node" />
import stringify = require("csv-stringify");
let stream: stringify.Stringifier;

View File

@ -1,5 +1,3 @@
/// <reference types="cybozulabs-md5" />
var hash: string;
hash = CybozuLabs.MD5.calc("abc");
hash = CybozuLabs.MD5.calc("abc", CybozuLabs.MD5.BY_ASCII);

View File

@ -1,42 +1,40 @@
/// <reference types="d3" />
interface ICompTextSize{
text:string;
size:number;
x?:number;
y?:number;
rotate?:number;
}
interface ICompTextSize{
text:string;
size:number;
x?:number;
y?:number;
rotate?:number;
}
var fill = d3.scale.category20<number>();
d3.layout.cloud().size([300, 300])
.words([
"Hello", "world", "normally", "you", "want", "more", "words",
"than", "this"].map(function(d:string) {
return {text: d, size: 10 + Math.random() * 90};
}))
.padding(5)
.rotate(function() { return ~~(Math.random() * 2) * 90; })
.font("Impact")
.fontSize(function(d:ICompTextSize) { return d.size; })
.on("end", draw)
.start();
var fill = d3.scale.category20<number>();
d3.layout.cloud().size([300, 300])
.words([
"Hello", "world", "normally", "you", "want", "more", "words",
"than", "this"].map(function(d:string) {
return {text: d, size: 10 + Math.random() * 90};
}))
.padding(5)
.rotate(function() { return ~~(Math.random() * 2) * 90; })
.font("Impact")
.fontSize(function(d:ICompTextSize) { return d.size; })
.on("end", draw)
.start();
function draw(words:ICompTextSize[]) {
d3.select("body").append("svg")
.attr("width", 300)
.attr("height", 300)
.append("g")
.attr("transform", "translate(150,150)")
.selectAll("text")
.data(words)
.enter().append("text")
.style("font-size", function(d:ICompTextSize) { return d.size + "px"; })
.style("font-family", "Impact")
.style("fill", function(d:ICompTextSize, i:number) { return fill(i); })
.attr("text-anchor", "middle")
.attr("transform", function(d:ICompTextSize) {
return "translate(" + [d.x, d.y] + ")rotate(" + d.rotate + ")";
})
.text(function(d:ICompTextSize) { return d.text; });
}
function draw(words:ICompTextSize[]) {
d3.select("body").append("svg")
.attr("width", 300)
.attr("height", 300)
.append("g")
.attr("transform", "translate(150,150)")
.selectAll("text")
.data(words)
.enter().append("text")
.style("font-size", function(d:ICompTextSize) { return d.size + "px"; })
.style("font-family", "Impact")
.style("fill", function(d:ICompTextSize, i:number) { return fill(i); })
.attr("text-anchor", "middle")
.attr("transform", function(d:ICompTextSize) {
return "translate(" + [d.x, d.y] + ")rotate(" + d.rotate + ")";
})
.text(function(d:ICompTextSize) { return d.text; });
}

View File

@ -1,5 +1,3 @@
/// <reference types="d3" />
function test_abstract_chart() {
let el: Element,
chart: d3kit.AbstractChart,
@ -86,8 +84,8 @@ function test_svgchart() {
options: d3kit.ChartOptions,
margins: d3kit.ChartMargin,
offsets: [number, number],
svg: d3.Selection<d3.BaseType, any, d3.BaseType, any>,
rootg: d3.Selection<d3.BaseType, any, d3.BaseType, any>,
svg: d3.Selection<d3.BaseType, any, d3.BaseType, any>,
rootg: d3.Selection<d3.BaseType, any, d3.BaseType, any>,
layers: d3kit.LayerOrganizer;
// create a div, append to body, return Node as type Element

View File

@ -1,9 +1,6 @@
/// <reference types="d3" />
/// <reference types="mocha" />
/// <reference types="chai" />
/* jshint expr: true */
var expect = chai.expect;
describe('Skeleton', function(){
var element: Element, $element: d3.Selection<any>, $svg: d3.Selection<any>, skeleton: d3kit.Skeleton;

View File

@ -1,7 +1,3 @@
/// <reference types="jquery" />
/// <reference types="datatables.net" />
$(document).ready(function () {
var config: DataTables.Settings =

View File

@ -1,6 +1,3 @@
/// <reference types="jquery" />
/// <reference types="datatables.net"/>
$(document).ready(() => {
var config: DataTables.Settings = {
// FixedHeader extension options

View File

@ -1,6 +1,3 @@
/// <reference types="jquery" />
/// <reference types="datatables.net"/>
$(document).ready(() => {
var config: DataTables.Settings = {
// Select extension options

View File

@ -1,6 +1,3 @@
/// <reference types="jquery"/>
$(document).ready(function () {
//#region "Language"

View File

@ -1,6 +1,3 @@
/// <reference types="jquery" />
// examples from http://bxslider.com/examples
$(document).ready(function() {

View File

@ -1,5 +1,3 @@
/// <reference types="jquery"/>
// Using the global setup option
// =============================
$.dynatableSetup({ features: { pushState: false }, dataset: { perPageDefault: 5, perPageOptions: [2, 5, 10] } });

View File

@ -1,5 +1,3 @@
/// <reference types="node" />
import ecurve = require('ecurve');
import crypto = require('crypto');

View File

@ -1,7 +1,3 @@
/// <reference types="jquery" />
/// <reference types="ej.web.all" />
/* tslint:disable */
module AccordionComponent {
@ -24,7 +20,7 @@ module AccordionComponent {
});
}
module AutocompleteComponent{
var carList = [
@ -48,15 +44,15 @@ module AutocompleteComponent{
"Triumph Spitfire", "Toyota 2000GT",
"Volvo P1800", "Volkswagen Shirako"
];
$(function () {
var autocompleteInstance =new ej.Autocomplete($("#selectCar"), {
$(function () {
var autocompleteInstance =new ej.Autocomplete($("#selectCar"), {
width: "100%",
watermarkText: "Select a car",
dataSource: carList,
enableAutoFill: true,
showPopupButton: true,
multiSelectMode: "delimiter"
});
});
});
}
@ -154,7 +150,7 @@ module ButtonComponent {
});
});
}
@ -170,7 +166,7 @@ module ChartComponent {
range: { min: 25, max: 50, interval: 5 },
labelFormat: "{value}%",
title: { text: "Efficiency" },
},
commonSeriesOptions:
{
@ -185,28 +181,28 @@ module ChartComponent {
},
visible: true
},
border : {width: 2}
},
series:
border : {width: 2}
},
series:
[
{
points: [{ x: 2005, y: 28 }, { x: 2006, y: 25 },{ x: 2007, y: 26 }, { x: 2008, y: 27 },
{ x: 2009, y: 32 }, { x: 2010, y: 35 }, { x: 2011, y: 30 }],
points: [{ x: 2005, y: 28 }, { x: 2006, y: 25 },{ x: 2007, y: 26 }, { x: 2008, y: 27 },
{ x: 2009, y: 32 }, { x: 2010, y: 35 }, { x: 2011, y: 30 }],
name: 'India'
},
},
{
points: [{ x: 2005, y: 31 }, { x: 2006, y: 28 },{ x: 2007, y: 30 }, { x: 2008, y: 36 },
{ x: 2009, y: 36 }, { x: 2010, y: 39 }, { x: 2011, y: 37 }],
points: [{ x: 2005, y: 31 }, { x: 2006, y: 28 },{ x: 2007, y: 30 }, { x: 2008, y: 36 },
{ x: 2009, y: 36 }, { x: 2010, y: 39 }, { x: 2011, y: 37 }],
name: 'Germany'
},
{
points: [{ x: 2005, y: 36 }, { x: 2006, y: 32 },{ x: 2007, y: 34 }, { x: 2008, y: 41 },
{ x: 2009, y: 42 }, { x: 2010, y: 42 }, { x: 2011, y: 43 }],
points: [{ x: 2005, y: 36 }, { x: 2006, y: 32 },{ x: 2007, y: 34 }, { x: 2008, y: 41 },
{ x: 2009, y: 42 }, { x: 2010, y: 42 }, { x: 2011, y: 43 }],
name: 'England'
},
},
{
points: [{ x: 2005, y: 39 }, { x: 2006, y: 36 },{ x: 2007, y: 40 }, { x: 2008, y: 44 },
{ x: 2009, y: 45 }, { x: 2010, y: 48 }, { x: 2011, y: 46 }],
points: [{ x: 2005, y: 39 }, { x: 2006, y: 36 },{ x: 2007, y: 40 }, { x: 2008, y: 44 },
{ x: 2009, y: 45 }, { x: 2010, y: 48 }, { x: 2011, y: 46 }],
name: 'France'
}
],
@ -294,7 +290,7 @@ module circulargaugecomponent {
backgroundColor: "#f5b43f",
border: { color: "#f5b43f" }
}]
}]
}]
});
});
}
@ -381,7 +377,7 @@ $(function () {
createConnector({ name: "connector6", sourceNode: "Project", targetNode: "Resources", labels: [createLabel({ "text": "No" })] })
]
});
});
function createNode(option: ej.datavisualization.Diagram.Node) {
@ -406,7 +402,7 @@ function createLabel(options : any) {
return options;
}
module DialogComponent {
$(function () {
@ -456,7 +452,7 @@ module digitalgaugecomponent {
}
@ -476,12 +472,12 @@ module DropDownListComponent {
enableFilterSearch: true,
caseSensitiveSearch: true,
enableIncrementalSearch: true,
enablePopupResize: true,
enablePopupResize: true,
delimiterChar: ";",
multiSelectMode: ej.MultiSelectMode.Delimiter,
maxPopupHeight: "300px",
minPopupHeight: "150px",
maxPopupWidth: "500px",
minPopupHeight: "150px",
maxPopupWidth: "500px",
minPopupWidth: "350px",
showCheckbox: true,
showRoundedCorner: true
@ -517,7 +513,7 @@ module GanttComponent {
dataSource: (<any>window).projectData,
allowColumnResize: true,
allowSorting: true,
allowSelection: true,
allowSelection: true,
enableContextMenu: true,
taskIdMapping: "taskID",
allowDragAndDrop: true,
@ -558,7 +554,7 @@ module GanttComponent {
treeColumnIndex: 1,
isResponsive: true,
});
});
});
}
@ -674,7 +670,7 @@ module KanbanComponent {
});
}
module lineargaugecomponent {
@ -700,14 +696,14 @@ module lineargaugecomponent {
backgroundColor: "#E94649",
border: { color: "#E94649" }, startWidth: 4, endWidth: 4
}]
}]
}]
});
});
}
module ListBoxComponent {
$(function () {
@ -717,12 +713,12 @@ module ListBoxComponent {
});
}
module ListviewComponent {
$(function () {
var listviewInstance = new ej.ListView($("#defaultlistview"), {
enableCheckMark: true,
enableCheckMark: true,
width: 400
});
});
@ -987,7 +983,7 @@ module MenuComponent {
module NavigationDrawerComponent {
$(function () {
@ -1027,7 +1023,7 @@ module PivotChartOlap {
$(function () {
var sample = new ej.PivotChart($("#PivotChart"),{
dataSource: {
data: "http://bi.syncfusion.com/olap/msmdpump.dll",
data: "http://bi.syncfusion.com/olap/msmdpump.dll",
catalog: "Adventure Works DW 2008 SE",
cube: "Adventure Works",
rows: [
@ -1195,7 +1191,7 @@ module PivotGaugeOlap {
length: 120,
width: 7
},
{
{
type: "marker",
markerType: "diamond",
distanceFromScale: 5,
@ -1224,7 +1220,7 @@ module PivotGaugeOlap {
distanceFromScale: -5,
backgroundColor: "#fc0606",
border: { color: "#fc0606" }
},
},
{
distanceFromScale: -5
}],
@ -1242,7 +1238,7 @@ module PivotGaugeOlap {
}]
}]
});
});
});
}
@ -1316,7 +1312,7 @@ module PivotGaugeRelational {
length: 120,
width: 7
},
{
{
type: "marker",
markerType: "diamond",
distanceFromScale: 5,
@ -1345,7 +1341,7 @@ module PivotGaugeRelational {
distanceFromScale: -5,
backgroundColor: "#fc0606",
border: { color: "#fc0606" }
},
},
{
distanceFromScale: -5
}],
@ -1363,7 +1359,7 @@ module PivotGaugeRelational {
}]
}]
});
});
});
}
@ -1398,7 +1394,7 @@ module PivotGridOlap {
],
filters:[]
},
enableGroupingBar: true,
enableGroupingBar: true,
pivotTableFieldListID:"PivotSchemaDesigner"
});
$("#PivotSchemaDesigner").ejPivotSchemaDesigner();
@ -1449,7 +1445,7 @@ module PivotGridRelational {
fieldCaption: "State"
}
],
columns:
columns:
[{
fieldName: "Product",
fieldCaption: "Product"
@ -1467,10 +1463,10 @@ module PivotGridRelational {
],
filters:[]
},
enableGroupingBar: true,
enableGroupingBar: true,
pivotTableFieldListID:"PivotSchemaDesigner"
});
$("#PivotSchemaDesigner").ejPivotSchemaDesigner();
$("#PivotSchemaDesigner").ejPivotSchemaDesigner();
});
}
@ -1611,7 +1607,7 @@ function redo(e: any) {
}
module RadialSliderComponent {
$(function () {
@ -1644,7 +1640,7 @@ module rangecomponent {
fill: '#69D2E7'
}
];
}
}
});
});
@ -1696,7 +1692,7 @@ module RatingComponent {
shapeWidth: 25,
showTooltip: true
});
var sample2 = new ej.Rating($("#halfRating"),{
precision: ej.Rating.Precision.Half,
value: 3.5,
@ -1727,7 +1723,7 @@ module RatingComponent {
shapeHeight: 25,
shapeWidth: 25,
showTooltip: true
});
});
});
}
@ -1760,7 +1756,7 @@ module RibbonComponent {
toolTip: "Pin the Ribbon"
},
applicationTab: {
type: ej.Ribbon.ApplicationTabType.Menu, menuItemID: "ribbonmenu", menuSettings: { openOnClick: false }
type: ej.Ribbon.ApplicationTabType.Menu, menuItemID: "ribbonmenu", menuSettings: { openOnClick: false }
},
tabs: [{
id: "home", text: "HOME", groups: [{
@ -1837,7 +1833,7 @@ module RibbonComponent {
width: 60,
isBig: false
}
}]
}]
},
{
text: "Font", alignType: "rows", content: [{
@ -2116,7 +2112,7 @@ module RibbonComponent {
groups: [{
id: "zoomin",
text: "Zoom In",
toolTip: "Zoom In",
toolTip: "Zoom In",
buttonSettings: {
width: 58,
contentType: ej.ContentType.TextAndImage,
@ -2127,7 +2123,7 @@ module RibbonComponent {
{
id: "zoomout",
text: "Zoom Out",
toolTip: "Zoom Out",
toolTip: "Zoom Out",
buttonSettings: {
width: 70,
contentType: ej.ContentType.TextAndImage,
@ -2138,7 +2134,7 @@ module RibbonComponent {
{
id: "fullscreen",
text: "Full Screen",
toolTip: "Full Screen",
toolTip: "Full Screen",
buttonSettings: {
width: 73,
contentType: ej.ContentType.TextAndImage,
@ -2367,7 +2363,7 @@ module RibbonComponent {
}
]
}
],
],
create: function createControl(args) {
var ribbon = $("#defaultRibbon").data("ejRibbon");
$("#fontcolor").ejColorPicker({ value: "#FFFF00", modelType: "palette", cssClass: "e-ribbon", toolIcon: "e-fontcoloricon", select: colorHandler });
@ -2383,7 +2379,7 @@ function colorHandler(args:any) {
module RotatorComponent {
$(function () {
@ -2546,7 +2542,7 @@ module ScheduleComponent {
}
});
});
}
}
@ -2729,9 +2725,9 @@ module piesparkline4 {
});
}
module SplitterComponent {
@ -2766,7 +2762,7 @@ $(function () {
pdfUrl: (<any>window).baseurl + "api/Spreadsheet/PdfExport"
},
sheets: [{ rangeSettings: [{ dataSource: (<any>window).defaultData, startCell: "A1" }] }],
loadComplete: () => {
loadComplete: () => {
var spreadsheet = $("#basicSpreadsheet").data("ejSpreadsheet"), xlFormat = spreadsheet.XLFormat;
if (!(<any>spreadsheet).isImport) {
spreadsheet.setWidthToColumns([140, 128, 105, 100, 100, 110, 120, 120, 100]);
@ -2790,13 +2786,13 @@ var default_data: Array<Object> = [
{ Category : "Employees", Country : "USA", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 70 },
{ Category : "Employees", Country : "USA", JobDescription : "Management", EmployeesCount : 40 },
{ Category : "Employees", Country : "USA", JobDescription : "Accounts", EmployeesCount : 60 },
{ Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 43 },
{ Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 125},
{ Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 60 },
{ Category : "Employees", Country : "India", JobDescription : "HR Executives", EmployeesCount : 70 },
{ Category : "Employees", Country : "India", JobDescription : "Accounts", EmployeesCount : 45 },
{ Category : "Employees", Country : "Germany", JobDescription : "Sales", JobGroup : "Executive", EmployeesCount : 30 },
{ Category : "Employees", Country : "Germany", JobDescription : "Sales", JobGroup : "Analyst", EmployeesCount : 40 },
{ Category : "Employees", Country : "Germany", JobDescription : "Marketing", EmployeesCount : 50 },
@ -2805,13 +2801,13 @@ var default_data: Array<Object> = [
{ Category : "Employees", Country : "Germany", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 27 },
{ Category : "Employees", Country : "Germany", JobDescription : "Management", EmployeesCount : 33 },
{ Category : "Employees", Country : "Germany", JobDescription : "Accounts", EmployeesCount : 55 },
{ Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 45 },
{ Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 96 },
{ Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 55 },
{ Category : "Employees", Country : "UK", JobDescription : "HR Executives", EmployeesCount : 60 },
{ Category : "Employees", Country : "UK", JobDescription: "Accounts", EmployeesCount: 30 },
{ Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 40 },
{ Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 65 },
{ Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 27 },
@ -2821,7 +2817,7 @@ var default_data: Array<Object> = [
module sunburstcomponent {
$(function () {
var sunburstsample = new ej.SunburstChart($("#Sunburst"), {
valueMemberPath: "EmployeesCount",
valueMemberPath: "EmployeesCount",
levels: [
{groupMemberPath: "Country"},
{groupMemberPath: "JobDescription"},
@ -2860,8 +2856,8 @@ module TabComponent {
module TagCloudComponent {
var websiteCollection = [
{ text: "Google", url: "http://www.google.com", frequency: 12 },
{ text: "All Things Digital", url: "http://allthingsd.com/", frequency: 3 },
@ -2892,7 +2888,7 @@ module TagCloudComponent {
text: "text", url: "url", frequency: "frequency"
}
});
});
}
@ -2932,7 +2928,7 @@ module EditorComponent {
module TileViewComponent {
$(function () {
@ -2943,38 +2939,38 @@ module TileViewComponent {
imageUrl:'content/images/tile/windows/people_1.png'
});
var tile2 = new ej.Tile($("#tile2"), {
imagePosition:"center",
imagePosition:"center",
tileSize:"small",
imageUrl:'content/images/tile/windows/alerts.png',
imageUrl:'content/images/tile/windows/alerts.png',
});
var tile3 = new ej.Tile($("#tile3"), {
imagePosition:"center",
imagePosition:"center",
tileSize:"small",
imageUrl:'content/images/tile/windows/bing.png',
imageUrl:'content/images/tile/windows/bing.png',
});
var tile4 = new ej.Tile($("#tile4"), {
tileSize:"small",
imageUrl:'content/images/tile/windows/camera.png',
imageUrl:'content/images/tile/windows/camera.png',
});
var tile5 = new ej.Tile($("#tile5"), {
imagePosition:"center",
imagePosition:"center",
tileSize:"small",
imageUrl:'content/images/tile/windows/messages.png',
imageUrl:'content/images/tile/windows/messages.png',
});
var tile6 = new ej.Tile($("#tile6"), {
imagePosition:"center",
imagePosition:"center",
tileSize:"medium",
imageUrl:'content/images/tile/windows/games.png',
imageUrl:'content/images/tile/windows/games.png',
caption:{text:"Play"}
});
var tile7 = new ej.Tile($("#tile7"), {
var tile7 = new ej.Tile($("#tile7"), {
tileSize:"medium",
imageUrl:'content/images/tile/windows/map.png',
caption:{text:"Maps"}
});
var tile8 = new ej.Tile($("#tile8"), {
imagePosition:"fill",
imagePosition:"fill",
tileSize:"wide",
imageUrl:'content/images/tile/windows/sports.png',
caption:{text:"Sports"}
@ -3026,7 +3022,7 @@ module TimePickerComponent {
module ToolbarComponent {
$(function () {
var sample = new ej.Toolbar($("#editingToolbar"),{
width: "100%",
@ -3045,7 +3041,7 @@ module ToolbarComponent {
module TooltipComponent {
$(function () {
var sample1 = new ej.Tooltip($("#link1"),{
@ -3140,7 +3136,7 @@ module TreeGridComponent {
isResponsive: true,
});
});
}
}
@ -3185,7 +3181,7 @@ module treemapcomponent {
module TreeViewComponent {
$(function () {
@ -3202,7 +3198,7 @@ module TreeViewComponent {
module UploadboxComponent {
$(function () {
var sample = new ej.Uploadbox($("#UploadDefault"),{
saveUrl: "uploadbox/saveFiles.ashx",

View File

@ -3,7 +3,7 @@
// Definitions by: Syncfusion <https://github.com/syncfusion/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="../jquery" />
/// <reference types="jquery" />
/*!
* filename: ej.web.all.d.ts

View File

@ -1,5 +1,3 @@
/// <reference types="electron-devtools-installer" />
import installExtension, {
EMBER_INSPECTOR, REACT_DEVELOPER_TOOLS,
BACKBONE_DEBUGGER, JQUERY_DEBUGGER,

View File

@ -1,6 +1,3 @@
/// <reference types="handlebars" />
var App : any;
App = Em.Application.create<Em.Application>();

View File

@ -1,6 +1,3 @@
/// <reference types="estree" />
import esprima = require('esprima');
import * as ESTree from 'estree';

View File

@ -1,7 +1,3 @@
/// <reference types="falcor" />
/// <reference types="falcor-router" />
import express = require('express');
import Router = require('falcor-router');
import falcorExpress = require('falcor-express')

View File

@ -1,6 +1,3 @@
/// <reference types="jquery" />
$('.fancybox').fancybox();
$('.fancybox').fancybox({
padding: 0,

View File

@ -1,7 +1,5 @@
// Tests by: Kaur Kuut <https://github.com/xStrom>
///<reference types="jquery" />
// Every option as default
var defaultOptions = {
namespace: 'featherlight',

View File

@ -1,6 +1,3 @@
/// <reference types="react"/>
import * as React from "react";
import {Table, Cell, Column, CellProps} from "fixed-data-table";

View File

@ -4,11 +4,9 @@
// Definitions: https://github.com/clmcgrath/
///<reference types="jquery"/>
///<reference path="FlickityEvents.ts"/>
//jQuery tests
var $flickity: JQuery = $("#flickity-selector").flickity(
{
initialIndex: 0,
@ -105,15 +103,15 @@ flikty2.destroy();
flikty2.reloadCells();
//event handlers
flikty2.on(FlickityEvents.cellSelect, (evt, ele) => {
flikty2.on("cellSelect", (evt, ele) => {
//do something
});
flikty2.off(FlickityEvents.cellSelect, (evt, ele, pntr, vctr) => {
flikty2.off("cellSelect", (evt, ele, pntr, vctr) => {
//do something
});
flikty2.once(FlickityEvents.cellSelect, (evt, ele, pntr) => {
flikty2.once("cellSelect", (evt, ele, pntr) => {
//do something
});

View File

@ -1,11 +1,3 @@
// Tests for type definitions for Foundation Sites v6.0.4
// Project: http://foundation.zurb.com/
// Definitions by: Sam Vloeberghs <https://github.com/samvloeberghs/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="jquery" />
$(document).foundation();
$(document).foundation('method5');
$(document).foundation(['method', 'method2']);

View File

@ -1,6 +1,3 @@
/// <reference types="jquery" />
function empty_callback() : void {}
function plugin_list() {

View File

@ -1,6 +1,3 @@
/// <reference types="node" />
import from = require('from');
var rs: NodeJS.ReadableStream;

View File

@ -1,19 +1,16 @@
/// <reference types="node" />
import fs = require('fs-ext');
var num:number;
var str:string;
//from node.js 'fs' module
//from node.js 'fs' module
fs.appendFileSync(str, "data");
fs.flock(num, str, (err)=>{
fs.flock(num, str, (err)=>{
});
fs.flockSync(num, str);
fs.fcntl(num, str, num, (err, res)=>{
fs.fcntl(num, str, num, (err, res)=>{
});
fs.fcntl(num, str, (err, res)=>{
});

View File

@ -1,5 +1,3 @@
/// <reference types="node" />
import fs = require('fs-extra-promise-es6');
import stream = require('stream');
@ -145,7 +143,7 @@ strArr = fs.readdirSync(path);
fs.close(fd, errorCallback);
fs.closeSync(fd);
fs.open(path, flags, modeStr, (err: Error, fd: number) => {
});
num = fs.openSync(path, flags, modeStr);
fs.utimes(path, atime, mtime, errorCallback);

Some files were not shown because too many files have changed in this diff Show More