mirror of
https://github.com/nasa/openmct.git
synced 2025-02-08 03:50:39 +00:00
[Clocks] Add license, change keys
Un-namespace keys in clock plugin, and add licensing info for moment-duration-format. WTD-1239
This commit is contained in:
parent
c932e953bc
commit
96f72b3765
35
LICENSES.md
35
LICENSES.md
@ -345,6 +345,41 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### moment-duration-format
|
||||||
|
|
||||||
|
#### Info
|
||||||
|
|
||||||
|
* Link: https://github.com/jsmreese/moment-duration-format
|
||||||
|
|
||||||
|
* Version: 1.3.0
|
||||||
|
|
||||||
|
* Authors: John Madhavan-Reese
|
||||||
|
|
||||||
|
* Description: Duration parsing/formatting
|
||||||
|
|
||||||
|
#### License
|
||||||
|
|
||||||
|
Copyright 2014 John Madhavan-Reese
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||||
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
|
subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Json.NET
|
### Json.NET
|
||||||
|
|
||||||
#### Info
|
#### Info
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "WARP Clocks/Timers",
|
"name": "Clocks/Timers",
|
||||||
"descriptions": "Domain objects for displaying current & relative times.",
|
"descriptions": "Domain objects for displaying current & relative times.",
|
||||||
"configuration": {
|
"configuration": {
|
||||||
"paths": {
|
"paths": {
|
||||||
@ -17,13 +17,13 @@
|
|||||||
"indicators": [
|
"indicators": [
|
||||||
{
|
{
|
||||||
"implementation": "indicators/ClockIndicator.js",
|
"implementation": "indicators/ClockIndicator.js",
|
||||||
"depends": [ "warp.tickerService", "CLOCK_INDICATOR_FORMAT" ],
|
"depends": [ "tickerService", "CLOCK_INDICATOR_FORMAT" ],
|
||||||
"priority": "preferred"
|
"priority": "preferred"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"services": [
|
"services": [
|
||||||
{
|
{
|
||||||
"key": "warp.tickerService",
|
"key": "tickerService",
|
||||||
"implementation": "services/TickerService.js",
|
"implementation": "services/TickerService.js",
|
||||||
"depends": [ "$timeout", "now" ]
|
"depends": [ "$timeout", "now" ]
|
||||||
}
|
}
|
||||||
@ -32,7 +32,7 @@
|
|||||||
{
|
{
|
||||||
"key": "ClockController",
|
"key": "ClockController",
|
||||||
"implementation": "controllers/ClockController.js",
|
"implementation": "controllers/ClockController.js",
|
||||||
"depends": [ "$scope", "warp.tickerService" ]
|
"depends": [ "$scope", "tickerService" ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "TimerController",
|
"key": "TimerController",
|
||||||
@ -42,24 +42,24 @@
|
|||||||
{
|
{
|
||||||
"key": "RefreshingController",
|
"key": "RefreshingController",
|
||||||
"implementation": "controllers/RefreshingController.js",
|
"implementation": "controllers/RefreshingController.js",
|
||||||
"depends": [ "$scope", "warp.tickerService" ]
|
"depends": [ "$scope", "tickerService" ]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"views": [
|
"views": [
|
||||||
{
|
{
|
||||||
"key": "warp.clock",
|
"key": "clock",
|
||||||
"type": "warp.clock",
|
"type": "clock",
|
||||||
"templateUrl": "templates/clock.html"
|
"templateUrl": "templates/clock.html"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "warp.timer",
|
"key": "timer",
|
||||||
"type": "warp.timer",
|
"type": "timer",
|
||||||
"templateUrl": "templates/timer.html"
|
"templateUrl": "templates/timer.html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"actions": [
|
"actions": [
|
||||||
{
|
{
|
||||||
"key": "warp.timer.start",
|
"key": "timer.start",
|
||||||
"implementation": "actions/StartTimerAction.js",
|
"implementation": "actions/StartTimerAction.js",
|
||||||
"depends": ["now"],
|
"depends": ["now"],
|
||||||
"category": "contextual",
|
"category": "contextual",
|
||||||
@ -68,7 +68,7 @@
|
|||||||
"priority": "preferred"
|
"priority": "preferred"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "warp.timer.restart",
|
"key": "timer.restart",
|
||||||
"implementation": "actions/RestartTimerAction.js",
|
"implementation": "actions/RestartTimerAction.js",
|
||||||
"depends": ["now"],
|
"depends": ["now"],
|
||||||
"category": "contextual",
|
"category": "contextual",
|
||||||
@ -79,7 +79,7 @@
|
|||||||
],
|
],
|
||||||
"types": [
|
"types": [
|
||||||
{
|
{
|
||||||
"key": "warp.clock",
|
"key": "clock",
|
||||||
"name": "Clock",
|
"name": "Clock",
|
||||||
"glyph": "C",
|
"glyph": "C",
|
||||||
"features": [ "creation" ],
|
"features": [ "creation" ],
|
||||||
@ -127,7 +127,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "warp.timer",
|
"key": "timer",
|
||||||
"name": "Timer",
|
"name": "Timer",
|
||||||
"glyph": "\u00F5",
|
"glyph": "\u00F5",
|
||||||
"features": [ "creation" ],
|
"features": [ "creation" ],
|
||||||
|
@ -23,7 +23,7 @@ define(
|
|||||||
|
|
||||||
// We show this variant for timers which already have
|
// We show this variant for timers which already have
|
||||||
// a target time.
|
// a target time.
|
||||||
return model.type === 'warp.timer' &&
|
return model.type === 'timer' &&
|
||||||
model.timestamp !== undefined;
|
model.timestamp !== undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ define(
|
|||||||
|
|
||||||
// We show this variant for timers which do not yet have
|
// We show this variant for timers which do not yet have
|
||||||
// a target time.
|
// a target time.
|
||||||
return model.type === 'warp.timer' &&
|
return model.type === 'timer' &&
|
||||||
model.timestamp === undefined;
|
model.timestamp === undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ define(
|
|||||||
formatKey = model.timerFormat,
|
formatKey = model.timerFormat,
|
||||||
actionCapability = domainObject.getCapability('action'),
|
actionCapability = domainObject.getCapability('action'),
|
||||||
actionKey = (timestamp === undefined) ?
|
actionKey = (timestamp === undefined) ?
|
||||||
'warp.timer.start' : 'warp.timer.restart';
|
'timer.start' : 'timer.restart';
|
||||||
|
|
||||||
updateFormat(formatKey);
|
updateFormat(formatKey);
|
||||||
updateTimestamp(timestamp);
|
updateTimestamp(timestamp);
|
||||||
|
@ -59,15 +59,15 @@ define(
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("applies only to timers with a target time", function () {
|
it("applies only to timers with a target time", function () {
|
||||||
testModel.type = 'warp.timer';
|
testModel.type = 'timer';
|
||||||
testModel.timestamp = 12000;
|
testModel.timestamp = 12000;
|
||||||
expect(RestartTimerAction.appliesTo(testContext)).toBeTruthy();
|
expect(RestartTimerAction.appliesTo(testContext)).toBeTruthy();
|
||||||
|
|
||||||
testModel.type = 'warp.timer';
|
testModel.type = 'timer';
|
||||||
testModel.timestamp = undefined;
|
testModel.timestamp = undefined;
|
||||||
expect(RestartTimerAction.appliesTo(testContext)).toBeFalsy();
|
expect(RestartTimerAction.appliesTo(testContext)).toBeFalsy();
|
||||||
|
|
||||||
testModel.type = 'warp.clock';
|
testModel.type = 'clock';
|
||||||
testModel.timestamp = 12000;
|
testModel.timestamp = 12000;
|
||||||
expect(RestartTimerAction.appliesTo(testContext)).toBeFalsy();
|
expect(RestartTimerAction.appliesTo(testContext)).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
@ -62,8 +62,8 @@ define(
|
|||||||
});
|
});
|
||||||
mockActionCapability.getActions.andCallFake(function (k) {
|
mockActionCapability.getActions.andCallFake(function (k) {
|
||||||
return [{
|
return [{
|
||||||
'warp.timer.start': mockStart,
|
'timer.start': mockStart,
|
||||||
'warp.timer.restart': mockRestart
|
'timer.restart': mockRestart
|
||||||
}[k]];
|
}[k]];
|
||||||
});
|
});
|
||||||
mockStart.getMetadata.andReturn({ glyph: "S", name: "Start" });
|
mockStart.getMetadata.andReturn({ glyph: "S", name: "Start" });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user