Skip to content

Commit

Permalink
use ISO date string in queries
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrjo committed Nov 27, 2018
1 parent 4326974 commit 25ef740
Show file tree
Hide file tree
Showing 9 changed files with 159 additions and 163 deletions.
242 changes: 124 additions & 118 deletions Gruntfile.js

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"name": "Effort By Expense Category",
"className": "effort-by-expense-category",
"sdk": "2.1",
"version": "1.1.3",
"className": "CArABU.app.TSApp",
"artifact": "",
"javascript": [
"node_modules/file-saver/FileSaver.min.js",
"src/javascript/utils/__ts-utilities.js",
Expand Down
16 changes: 7 additions & 9 deletions deploy/Ugly.txt

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"_comment": "This file is used by grunt",
"name": "tsabc",
"version": "1.1.3",
"name": "effort-by-expense-category",
"version": "1.1.4",
"scripts": {
"debug": "grunt debug",
"debug:watch": "nodemon --exec grunt debug",
Expand All @@ -25,5 +24,14 @@
"request": "2.67",
"underscore": "1.8.3",
"username": "2.1.0"
},
"nodemonConfig": {
"watch": [
"*.js",
"**/*.js",
"templates/*",
"*.json"
],
"verbose": true
}
}
6 changes: 3 additions & 3 deletions src/javascript/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* global Ext Deft TSUtilities CArABU Constants SummaryItem _ Rally Renderers */
Ext.define("CArABU.app.TSApp", {
Ext.define("effort-by-expense-category", {
extend: 'Rally.app.App',
componentCls: 'app',
defaults: { margin: 10 },
Expand Down Expand Up @@ -108,12 +108,12 @@ Ext.define("CArABU.app.TSApp", {
filters: [{
property: 'AcceptedDate',
operator: '>=',
value: this.startDate
value: new Date(this.startDate).toISOString()
},
{
property: 'AcceptedDate',
operator: '<=',
value: this.endDate
value: new Date(this.endDate).toISOString()
},
{
property: 'DirectChildrenCount',
Expand Down
9 changes: 3 additions & 6 deletions templates/App-debug-tpl.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title><%= name %></title>
<title><%= pkg.name %>-<%= pkg.version %></title>
<!-- (c) 2017 CA Technologies. All Rights Reserved. -->
<!-- Build Date: <%= new Date() %> -->

<script type="text/javascript">
var APP_BUILD_DATE = "<%= new Date() %>";
var ARTIFACT = "<%= artifact %>";
var BUILDER = "[%= builder %]";
var CHECKSUM = [%= checksum %];
</script>

<script type="text/javascript" src="<%= auth.server %>/apps/<%= sdk %>/sdk-debug.js"></script>
Expand All @@ -22,7 +19,7 @@
Rally.loadScripts(<%= JSON.stringify(js_files) %>,
function() {
Rally.launchApp('<%= className %>', {
name: '<%= name %>'
name: '<%= pkg.name %>'
})
}, true);
});
Expand All @@ -36,4 +33,4 @@

</head>
<body></body>
</html>
</html>
14 changes: 4 additions & 10 deletions templates/App-debugsdk-tpl.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
<!DOCTYPE html>
<html>

<head>
<title>CATS-
<%= name %>-
<%= version %>
</title>
<title><%= pkg.name %>-<%= pkg.version %></title>
<!-- (c) 2017 CA Technologies. All Rights Reserved. -->
<!-- Build Date: <%= new Date() %> -->

<script type="text/javascript">
var APP_BUILD_DATE = "<%= new Date() %>";
var ARTIFACT = "<%= artifact %>";
var BUILDER = "[%= builder %]";
var CHECKSUM = "[%= checksum %]";
var CHECKSUM = [%= checksum %];
</script>

<script type="text/javascript" src="<%= auth.server %>/apps/<%= sdk %>/sdk-debug.js"></script>
Expand All @@ -27,7 +21,7 @@
<%= js_contents %>

Rally.launchApp('<%= className %>', {
name: '<%= name %>'
name: '<%= pkg.name %>'
});
});
</script>
Expand All @@ -40,4 +34,4 @@

<body></body>

</html>
</html>
8 changes: 3 additions & 5 deletions templates/App-tpl.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>CATS-<%= name %>-<%= version %></title>
<title><%= pkg.name %>-<%= pkg.version %></title>
<!-- (c) 2017 CA Technologies. All Rights Reserved. -->
<!-- Build Date: <%= new Date() %> -->

<script type="text/javascript">
var APP_BUILD_DATE = "<%= new Date() %>";
var ARTIFACT = "<%= artifact %>";
var BUILDER = "[%= builder %]";
var CHECKSUM = [%= checksum %];
</script>

Expand All @@ -23,7 +21,7 @@
<%= js_contents %>

Rally.launchApp('<%= className %>', {
name: '<%= name %>'
name: '<%= pkg.name %>'
});
});
</script>
Expand All @@ -34,4 +32,4 @@

</head>
<body></body>
</html>
</html>
8 changes: 3 additions & 5 deletions templates/App-ugly-tpl.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>CATS-<%= name %>-<%= version %></title>
<title><%= pkg.name %>-<%= pkg.version %></title>
<!-- (c) 2017 CA Technologies. All Rights Reserved. -->
<!-- Build Date: <%= new Date() %> -->

<script type="text/javascript">
var APP_BUILD_DATE = "<%= new Date() %>";
var ARTIFACT = "<%= artifact %>";
var BUILDER = "[%= builder %]";
var CHECKSUM = [%= checksum %];
</script>

Expand All @@ -23,7 +21,7 @@
<%= ugly_contents %>

Rally.launchApp('<%= className %>', {
name: '<%= name %>'
name: '<%= pkg.name %>'
});
});
</script>
Expand All @@ -34,4 +32,4 @@

</head>
<body></body>
</html>
</html>

0 comments on commit 25ef740

Please sign in to comment.