History

GSF.Web: Moved common script resources into GSF/Shared/Scripts - marked existing scripts as obsolete.

J. Ritchie Carroll committed 9 years ago

Commit 230686d1 parent 6d6e24d19 files · +1921 −40Browse files

Showing the changes to Source/Libraries/GSF.Web/Model/Scripts (9 of 19 files). Show all

Unified · Split

9 files
  1. Source/Libraries/GSF.Web/Model/Scripts/angular1.5.8.js +5 −0
  2. Source/Libraries/GSF.Web/Model/Scripts/gsf.web.client.js +6 −1
  3. Source/Libraries/GSF.Web/Model/Scripts/gsf.web.knockout.js +6 −1
  4. Source/Libraries/GSF.Web/Model/Scripts/gsf.web.primeui.js +6 −1
  5. Source/Libraries/GSF.Web/Model/Scripts/js.cookie.js +6 −1
  6. Source/Libraries/GSF.Web/Model/Scripts/ko-reactor.js +5 −0
  7. Source/Libraries/GSF.Web/Model/Scripts/ko-reactor.min.js +5 −0
  8. Source/Libraries/GSF.Web/Model/Scripts/ko.observableDictionary.js +6 −1
  9. Source/Libraries/GSF.Web/Model/Scripts/pagedViewModel.js +16 −0
Source/Libraries/GSF.Web/Model/Scripts/angular1.5.8.js+5−0
@@ -1,3 +1,8 @@
1/******************************************************************************************************\
2 !WARNING: The location for this resource has been moved!
3 New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location
4\******************************************************************************************************/
5
1/**6/**
2 * @license AngularJS v1.5.87 * @license AngularJS v1.5.8
3 * (c) 2010-2016 Google, Inc. http://angularjs.org8 * (c) 2010-2016 Google, Inc. http://angularjs.org
Source/Libraries/GSF.Web/Model/Scripts/gsf.web.client.js+6−1
@@ -1,4 +1,9 @@
1//******************************************************************************************************1/******************************************************************************************************\
2 !WARNING: The location for this resource has been moved!
3 New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location
4\******************************************************************************************************/
5
6//******************************************************************************************************
2// gsf.web.client.js - Gbtc7// gsf.web.client.js - Gbtc
3//8//
4// Copyright © 2016, Grid Protection Alliance. All Rights Reserved.9// Copyright © 2016, Grid Protection Alliance. All Rights Reserved.
Source/Libraries/GSF.Web/Model/Scripts/gsf.web.knockout.js+6−1
@@ -1,4 +1,9 @@
1//******************************************************************************************************1/******************************************************************************************************\
2 !WARNING: The location for this resource has been moved!
3 New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location
4\******************************************************************************************************/
5
6//******************************************************************************************************
2// gsf.web.knockout.js - Gbtc7// gsf.web.knockout.js - Gbtc
3//8//
4// Copyright © 2016, Grid Protection Alliance. All Rights Reserved.9// Copyright © 2016, Grid Protection Alliance. All Rights Reserved.
Source/Libraries/GSF.Web/Model/Scripts/gsf.web.primeui.js+6−1
@@ -1,4 +1,9 @@
1//******************************************************************************************************1/******************************************************************************************************\
2 !WARNING: The location for this resource has been moved!
3 New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location
4\******************************************************************************************************/
5
6//******************************************************************************************************
2// gsf.web.primeui.js - Gbtc7// gsf.web.primeui.js - Gbtc
3//8//
4// Copyright © 2016, Grid Protection Alliance. All Rights Reserved.9// Copyright © 2016, Grid Protection Alliance. All Rights Reserved.
Source/Libraries/GSF.Web/Model/Scripts/js.cookie.js+6−1
@@ -1,4 +1,9 @@
1/*!1/******************************************************************************************************\
2 !WARNING: The location for this resource has been moved!
3 New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location
4\******************************************************************************************************/
5
6/*!
2 * JavaScript Cookie v2.1.07 * JavaScript Cookie v2.1.0
3 * https://github.com/js-cookie/js-cookie8 * https://github.com/js-cookie/js-cookie
4 *9 *
Source/Libraries/GSF.Web/Model/Scripts/ko-reactor.js+5−0
@@ -1,3 +1,8 @@
1/******************************************************************************************************\
2 !WARNING: The location for this resource has been moved!
3 New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location
4\******************************************************************************************************/
5
1// Deep observer plugin for Knockout http://knockoutjs.com/6// Deep observer plugin for Knockout http://knockoutjs.com/
2// (c) Ziad Jeeroburkhan7// (c) Ziad Jeeroburkhan
3// License: MIT (http://www.opensource.org/licenses/mit-license.php)8// License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source/Libraries/GSF.Web/Model/Scripts/ko-reactor.min.js+5−0
@@ -1 +1,6 @@
1/******************************************************************************************************\
2 !WARNING: The location for this resource has been moved!
3 New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location
4\******************************************************************************************************/
5
1ko.subscribable.fn.watch=function(a,b,c,d){var e=typeof a;return"boolean"===e||"undefined"===e?ko.watch(this,{enabled:a!==!1}):"function"!==e||ko.isSubscribable(a)?ko.watch(a,b,c,d||this):ko.watch(this,b||{},a,d||this),this},ko.watch=function(a,b,c,d){function e(f,g,h,i,j){if(f&&0!==b.depth&&(-1===b.depth||h.length<(b.depth||1))){if(b.watchedOnly&&!f.watchable&&f!=a)return;if((b.enabled===!1||b.enabled===!0)&&(f.watchable=b.enabled),f.watchable===!1)return;if(b.seal===!0&&(f.watchable=!1),f===g||ko.utils.arrayIndexOf(h,f)>-1)return;var k=[].concat(h,g&&g!==a?g:[]);if(b.hide&&("object"==typeof b.hide?b.hide===f:ko.utils.arrayIndexOf(b.hide,f)>-1))return;if(ko.isSubscribable(f)){if(c&&(i===!0||!b.beforeWatch||b.beforeWatch.call(d,k,f)!==!1)){if("function"==typeof f.pop)return f.subscribe(function(a){ko.utils.arrayForEach(a,function(a){var b=c.call(d,k,f,a);void 0!==b&&d(b),a.moved||setTimeout(function(){e(a.value,j?null:f,k,"deleted"===a.status)},0)})},void 0,"arrayChange"),e(f(),j?null:f,k,i,!0),!0;if(i===!0){var l=f.H||f._subscriptions;if(l){if(l.change)for(var m=l.change.length-1;m>=0;m--)l.change[m]._watcher===d&&l.change[m].dispose();if(l.beforeChange&&b.keepOldValues>0)for(var m=l.beforeChange.length-1;m>=0;m--)l.beforeChange[m]._watcher===d&&l.beforeChange[m].dispose()}e(f(),j?null:f,k,!0,!0)}else{if(b.enabled===!0&&f.watchable===!1)return;(b.keepOldValues>0||b.mutable)&&(f.subscribe(function(a){if(b.keepOldValues>0){var c=f.oldValues?f.oldValues:f.oldValues=[];for(c.unshift(a);c.length>b.keepOldValues;)c.pop()}b.mutable&&"object"==typeof a&&e(a,j?null:f,k,!0,!0)},null,"beforeChange")._watcher=d),f.subscribe(function(){if(f.watchable!==!1){var a=c.call(d,k,f);void 0!==a&&d(a),b.mutable&&"object"==typeof f()&&e(f(),j?null:f,k)}},null,"change")._watcher=d,b.hideWrappedValues!==!0&&e(f(),j?null:f,k)}}}else switch(Object.prototype.toString.call(f)){case"[object Object]":return ko.utils.objectForEach(f,function(a,c){if(b.wrap){var g=Object.prototype.toString.call(c);"[object Function]"!==g&&"[object Object]"!==g&&(b.beforeWrap&&b.beforeWrap.call(d,k,f,c)===!1||(c=f[a]="[object Array]"===g?ko.observableArray(c):ko.observable(c)))}var h=e(c,j?null:f,k,i);h&&b.tagParentsWithName===!0&&!c._fieldName&&(c._fieldName=a)}),!0;case"[object Array]":if(b.hideArrays!==!0)for(var m=0;m<f.length;m++)e(f[m],j?null:f,k,i);return!0}}}return"function"==typeof b&&(d=d||c,c=b,b={}),d=d||this,"function"!=typeof a||ko.isSubscribable(a)?void e(a,null,[]):ko.computed(a,c,b)};window.foo = "1.3.0";6ko.subscribable.fn.watch=function(a,b,c,d){var e=typeof a;return"boolean"===e||"undefined"===e?ko.watch(this,{enabled:a!==!1}):"function"!==e||ko.isSubscribable(a)?ko.watch(a,b,c,d||this):ko.watch(this,b||{},a,d||this),this},ko.watch=function(a,b,c,d){function e(f,g,h,i,j){if(f&&0!==b.depth&&(-1===b.depth||h.length<(b.depth||1))){if(b.watchedOnly&&!f.watchable&&f!=a)return;if((b.enabled===!1||b.enabled===!0)&&(f.watchable=b.enabled),f.watchable===!1)return;if(b.seal===!0&&(f.watchable=!1),f===g||ko.utils.arrayIndexOf(h,f)>-1)return;var k=[].concat(h,g&&g!==a?g:[]);if(b.hide&&("object"==typeof b.hide?b.hide===f:ko.utils.arrayIndexOf(b.hide,f)>-1))return;if(ko.isSubscribable(f)){if(c&&(i===!0||!b.beforeWatch||b.beforeWatch.call(d,k,f)!==!1)){if("function"==typeof f.pop)return f.subscribe(function(a){ko.utils.arrayForEach(a,function(a){var b=c.call(d,k,f,a);void 0!==b&&d(b),a.moved||setTimeout(function(){e(a.value,j?null:f,k,"deleted"===a.status)},0)})},void 0,"arrayChange"),e(f(),j?null:f,k,i,!0),!0;if(i===!0){var l=f.H||f._subscriptions;if(l){if(l.change)for(var m=l.change.length-1;m>=0;m--)l.change[m]._watcher===d&&l.change[m].dispose();if(l.beforeChange&&b.keepOldValues>0)for(var m=l.beforeChange.length-1;m>=0;m--)l.beforeChange[m]._watcher===d&&l.beforeChange[m].dispose()}e(f(),j?null:f,k,!0,!0)}else{if(b.enabled===!0&&f.watchable===!1)return;(b.keepOldValues>0||b.mutable)&&(f.subscribe(function(a){if(b.keepOldValues>0){var c=f.oldValues?f.oldValues:f.oldValues=[];for(c.unshift(a);c.length>b.keepOldValues;)c.pop()}b.mutable&&"object"==typeof a&&e(a,j?null:f,k,!0,!0)},null,"beforeChange")._watcher=d),f.subscribe(function(){if(f.watchable!==!1){var a=c.call(d,k,f);void 0!==a&&d(a),b.mutable&&"object"==typeof f()&&e(f(),j?null:f,k)}},null,"change")._watcher=d,b.hideWrappedValues!==!0&&e(f(),j?null:f,k)}}}else switch(Object.prototype.toString.call(f)){case"[object Object]":return ko.utils.objectForEach(f,function(a,c){if(b.wrap){var g=Object.prototype.toString.call(c);"[object Function]"!==g&&"[object Object]"!==g&&(b.beforeWrap&&b.beforeWrap.call(d,k,f,c)===!1||(c=f[a]="[object Array]"===g?ko.observableArray(c):ko.observable(c)))}var h=e(c,j?null:f,k,i);h&&b.tagParentsWithName===!0&&!c._fieldName&&(c._fieldName=a)}),!0;case"[object Array]":if(b.hideArrays!==!0)for(var m=0;m<f.length;m++)e(f[m],j?null:f,k,i);return!0}}}return"function"==typeof b&&(d=d||c,c=b,b={}),d=d||this,"function"!=typeof a||ko.isSubscribable(a)?void e(a,null,[]):ko.computed(a,c,b)};window.foo = "1.3.0";
Source/Libraries/GSF.Web/Model/Scripts/ko.observableDictionary.js+6−1
@@ -1,4 +1,9 @@
1// Knockout Observable Dictionary1/******************************************************************************************************\
2 !WARNING: The location for this resource has been moved!
3 New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location
4\******************************************************************************************************/
5
6// Knockout Observable Dictionary
2// (c) James Foster7// (c) James Foster
3// License: MIT (http://www.opensource.org/licenses/mit-license.php)8// License: MIT (http://www.opensource.org/licenses/mit-license.php)
4 9
Source/Libraries/GSF.Web/Model/Scripts/pagedViewModel.js+16−0
@@ -25,6 +25,22 @@ · 24 unmodified lines
25// Paged view model base class scripts25// Paged view model base class scripts
26"use strict";26"use strict";
27 27
28if (typeof jQuery === "undefined") {
29 throw new Error("pageViewModel script requires jQuery - make sure jquery.js is loaded first");
30}
31
32if (typeof Cookies.get === "undefined") {
33 throw new Error("pageViewModel script requires js.cookie - make sure js.cookie.js is loaded first");
34}
35
36if (typeof ko === "undefined") {
37 throw new Error("pageViewModel script requires knockout - make sure knockout.js is loaded first");
38}
39
40if (typeof Dictionary === "undefined") {
41 throw new Error("pageViewModel script requires gsf.web.client - make sure gsf.web.client.js is loaded first");
42}
43
28var RecordMode = {44var RecordMode = {
29 View: 0,45 View: 0,
30 Edit: 1,46 Edit: 1,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t