normalize line ending (CRLF -> LF)

This commit is contained in:
vvakame
2016-02-16 01:20:30 +09:00
parent bda9391b49
commit 4de74cb527
508 changed files with 79006 additions and 79006 deletions
+105 -105
View File
@@ -1,106 +1,106 @@
// QUnit Tests for Bootbox 4.4.0
/// <reference path="bootbox.d.ts" />
bootbox.alert("Are we ok?");
bootbox.alert("Are we ok with callback?", function () {
console.log("Callback called!");
});
bootbox.alert({
size: "medium",
message: "Are we ok with callback and custom button?",
callback: function () {
console.log("Callback called!");
}
});
bootbox.confirm("Click cancel to pass test", function (result) {
console.log(!result);
});
bootbox.confirm({
message: "Click confirm to pass test",
callback: function (result) {
console.log(result);
}
});
bootbox.prompt("Enter 'ok' to pass test", function (result) {
console.log(result);
});
bootbox.prompt({
message: "Enter 'ok' to pass test", callback: function (result) {
console.log(result);
}
});
bootbox.prompt({
size: "large",
message: "Enter 'ok' to pass test", callback: function (result) {
console.log(result);
}
});
bootbox.dialog({
title: "Wassup?",
message: "Test Dialog",
callback: function (result) { }
});
// Testing the return object of the call. Using the pointer to disable the animation on success callback.
var bBox : JQuery;
bBox = bootbox.dialog({
message: "Test Dialog",
buttons: {
cancel: {
label: "Cancel"
},
confirm: {
label: "Continue",
callback: function () {
bBox.removeClass("fade");
console.log("Outer callback.");
}
}
},
animate: true,
});
var bdo: BootboxDialogOptions;
var sampleButton: BootboxButton = {
label: 'ButtonLabelToUse',
callback: function () {
return 'callback of button click'
},
className: 'additionalButtonClassName'
};
bdo = {
message: '',
className: 'callName',
buttons: {
'ButtonTextLabel': sampleButton
}
};
bootbox.dialog(bdo);
bootbox.setDefaults({
locale: 'en_US',
animate: false,
backdrop: false,
className: 'newClassName',
closeButton: true,
show: true
})
bootbox.hideAll();
var localeOptions: BootboxLocaleValues = {
OK: 'Hus',
CANCEL: 'Nai',
CONFIRM: 'Pakka'
}
bootbox.addLocale("Nepali", localeOptions);
bootbox.setLocale("Nepali");
// QUnit Tests for Bootbox 4.4.0
/// <reference path="bootbox.d.ts" />
bootbox.alert("Are we ok?");
bootbox.alert("Are we ok with callback?", function () {
console.log("Callback called!");
});
bootbox.alert({
size: "medium",
message: "Are we ok with callback and custom button?",
callback: function () {
console.log("Callback called!");
}
});
bootbox.confirm("Click cancel to pass test", function (result) {
console.log(!result);
});
bootbox.confirm({
message: "Click confirm to pass test",
callback: function (result) {
console.log(result);
}
});
bootbox.prompt("Enter 'ok' to pass test", function (result) {
console.log(result);
});
bootbox.prompt({
message: "Enter 'ok' to pass test", callback: function (result) {
console.log(result);
}
});
bootbox.prompt({
size: "large",
message: "Enter 'ok' to pass test", callback: function (result) {
console.log(result);
}
});
bootbox.dialog({
title: "Wassup?",
message: "Test Dialog",
callback: function (result) { }
});
// Testing the return object of the call. Using the pointer to disable the animation on success callback.
var bBox : JQuery;
bBox = bootbox.dialog({
message: "Test Dialog",
buttons: {
cancel: {
label: "Cancel"
},
confirm: {
label: "Continue",
callback: function () {
bBox.removeClass("fade");
console.log("Outer callback.");
}
}
},
animate: true,
});
var bdo: BootboxDialogOptions;
var sampleButton: BootboxButton = {
label: 'ButtonLabelToUse',
callback: function () {
return 'callback of button click'
},
className: 'additionalButtonClassName'
};
bdo = {
message: '',
className: 'callName',
buttons: {
'ButtonTextLabel': sampleButton
}
};
bootbox.dialog(bdo);
bootbox.setDefaults({
locale: 'en_US',
animate: false,
backdrop: false,
className: 'newClassName',
closeButton: true,
show: true
})
bootbox.hideAll();
var localeOptions: BootboxLocaleValues = {
OK: 'Hus',
CANCEL: 'Nai',
CONFIRM: 'Pakka'
}
bootbox.addLocale("Nepali", localeOptions);
bootbox.setLocale("Nepali");
bootbox.removeLocale("Nepali");
+82 -82
View File
@@ -1,82 +1,82 @@
// Type definitions for Bootbox 4.4.0
// Project: https://github.com/makeusabrew/bootbox
// Definitions by: Vincent Bortone <https://github.com/vbortone/>, Kon Pik <https://github.com/konpikwastaken/>, Anup Kattel <https://github.com/kanup/>, Dominik Schroeter <https://github.com/icereed/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
interface BootboxAlertOptions {
size?: string;
message: string;
callback?: () => any;
}
interface BootboxConfirmOptions {
size?: string;
message: string;
callback: (result: boolean) => any;
}
interface BootboxPromptOptions {
size?: string;
message?: string;
callback: (result: string) => any;
}
interface BootboxButton {
label?: string;
className?: string;
callback?: () => any;
}
interface BootboxButtonMap {
[key: string]: BootboxButton | Function;
}
interface BootboxDialogOptions {
message: string | Element;
title?: string | Element;
locale?: string;
callback?: (result: boolean) => any;
onEscape?: () => any | boolean;
show?: boolean;
backdrop?: boolean;
closeButton?: boolean;
animate?: boolean;
className?: string;
size?: string;
buttons?: BootboxButtonMap; // complex object where each key is of type BootboxButton
}
interface BootboxDefaultOptions {
locale?: string;
show?: boolean;
backdrop?: boolean;
closeButton?: boolean;
animate?: boolean;
className?: string;
}
interface BootboxLocaleValues {
OK: string;
CANCEL: string;
CONFIRM: string;
}
interface BootboxStatic {
alert(message: string, callback?: () => void): JQuery;
alert(options: BootboxAlertOptions): JQuery;
confirm(message: string, callback: (result: boolean) => void): JQuery;
confirm(options: BootboxConfirmOptions): JQuery;
prompt(message: string, callback: (result: string) => void): JQuery;
prompt(options: BootboxPromptOptions): JQuery;
dialog(message: string, callback?: (result: string) => void): JQuery;
dialog(options: BootboxDialogOptions): JQuery;
setDefaults(options: BootboxDefaultOptions): void;
hideAll(): void;
addLocale(name: string, values: BootboxLocaleValues): void;
removeLocale(name: string): void;
setLocale(name: string): void;
}
declare var bootbox: BootboxStatic;
// Type definitions for Bootbox 4.4.0
// Project: https://github.com/makeusabrew/bootbox
// Definitions by: Vincent Bortone <https://github.com/vbortone/>, Kon Pik <https://github.com/konpikwastaken/>, Anup Kattel <https://github.com/kanup/>, Dominik Schroeter <https://github.com/icereed/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
interface BootboxAlertOptions {
size?: string;
message: string;
callback?: () => any;
}
interface BootboxConfirmOptions {
size?: string;
message: string;
callback: (result: boolean) => any;
}
interface BootboxPromptOptions {
size?: string;
message?: string;
callback: (result: string) => any;
}
interface BootboxButton {
label?: string;
className?: string;
callback?: () => any;
}
interface BootboxButtonMap {
[key: string]: BootboxButton | Function;
}
interface BootboxDialogOptions {
message: string | Element;
title?: string | Element;
locale?: string;
callback?: (result: boolean) => any;
onEscape?: () => any | boolean;
show?: boolean;
backdrop?: boolean;
closeButton?: boolean;
animate?: boolean;
className?: string;
size?: string;
buttons?: BootboxButtonMap; // complex object where each key is of type BootboxButton
}
interface BootboxDefaultOptions {
locale?: string;
show?: boolean;
backdrop?: boolean;
closeButton?: boolean;
animate?: boolean;
className?: string;
}
interface BootboxLocaleValues {
OK: string;
CANCEL: string;
CONFIRM: string;
}
interface BootboxStatic {
alert(message: string, callback?: () => void): JQuery;
alert(options: BootboxAlertOptions): JQuery;
confirm(message: string, callback: (result: boolean) => void): JQuery;
confirm(options: BootboxConfirmOptions): JQuery;
prompt(message: string, callback: (result: string) => void): JQuery;
prompt(options: BootboxPromptOptions): JQuery;
dialog(message: string, callback?: (result: string) => void): JQuery;
dialog(options: BootboxDialogOptions): JQuery;
setDefaults(options: BootboxDefaultOptions): void;
hideAll(): void;
addLocale(name: string, values: BootboxLocaleValues): void;
removeLocale(name: string): void;
setLocale(name: string): void;
}
declare var bootbox: BootboxStatic;