Skip to content

Commit 1eb31ba

Browse files
authored
Merge pull request #34 from agoravoting/release-17-04
Release 17 04
2 parents 9f8b300 + c57968b commit 1eb31ba

31 files changed

+1667
-1748
lines changed

Gruntfile.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'use strict';
2020

2121
var pkg = require('./package.json');
22-
var AV_CONFIG_VERSION = '3.4.0';
22+
var AV_CONFIG_VERSION = '17.04';
2323

2424
//Using exclusion patterns slows down Grunt significantly
2525
//instead of creating a set of patterns like '**/*.js' and '!**/node_modules/**'
@@ -192,10 +192,10 @@ module.exports = function (grunt) {
192192
options: {
193193
remove: ['script[data-remove!="false"]','link[data-remove!="false"]'],
194194
append: [
195-
{selector:'body',html:'<!--[if lte IE 8]><script src="/libcompat-v3.4.0.js"></script><![endif]--><!--[if gte IE 9]><script src="/libnocompat-v3.4.0.js"></script><![endif]--><!--[if !IE]><!--><script src="/libnocompat-v3.4.0.js"></script><!--<![endif]-->'},
195+
{selector:'body',html:'<!--[if lte IE 8]><script src="/libcompat-v17.04.js"></script><![endif]--><!--[if gte IE 9]><script src="/libnocompat-v17.04.js"></script><![endif]--><!--[if !IE]><!--><script src="/libnocompat-v17.04.js"></script><!--<![endif]-->'},
196196
{selector:'body',html:'<!--All the source code of this program under copyright. Take a look at the license details at https://github.com/agoravoting/agora-core-view/blob/master/README.md -->'},
197-
{selector:'body',html:'<script src="/appCommon-v3.4.0.js"></script>'},
198-
{selector:'body',html:'<script src="/avPlugins-v3.4.0.js"></script>'},
197+
{selector:'body',html:'<script src="/appCommon-v17.04.js"></script>'},
198+
{selector:'body',html:'<script src="/avPlugins-v17.04.js"></script>'},
199199
{selector:'head',html:'<link rel="stylesheet" id="theme" href="/themes/default/app.min.css">'}
200200
]
201201
},
@@ -225,9 +225,9 @@ module.exports = function (grunt) {
225225
'temp/libnocompat.js': ['<%= dom_munger.data.libnocompatjs %>'],
226226
'temp/lib.js': ['<%= dom_munger.data.libjs %>'],
227227
'temp/app.js': ['<%= dom_munger.data.appjs %>','<%= ngtemplates.main.dest %>'],
228-
'dist/avConfig-v3.4.0.js': ['avConfig.js'],
229-
'dist/avThemes-v3.4.0.js': ['avThemes.js'],
230-
'dist/avPlugins-v3.4.0.js': ['plugins/**/*.js']
228+
'dist/avConfig-v17.04.js': ['avConfig.js'],
229+
'dist/avThemes-v17.04.js': ['avThemes.js'],
230+
'dist/avPlugins-v17.04.js': ['plugins/**/*.js']
231231
}
232232
}
233233
},
@@ -259,10 +259,10 @@ module.exports = function (grunt) {
259259
beautify: true
260260
},
261261
files: {
262-
'dist/appCommon-v3.4.0.js': 'temp/app.js',
263-
'dist/libCommon-v3.4.0.js': 'temp/lib.js',
264-
'dist/libnocompat-v3.4.0.js': 'temp/libnocompat.js',
265-
'dist/libcompat-v3.4.0.js': 'temp/libcompat.js',
262+
'dist/appCommon-v17.04.js': 'temp/app.js',
263+
'dist/libCommon-v17.04.js': 'temp/lib.js',
264+
'dist/libnocompat-v17.04.js': 'temp/libnocompat.js',
265+
'dist/libcompat-v17.04.js': 'temp/libcompat.js',
266266
'dist/avWidgets.js': 'avWidgets.js',
267267

268268
"dist/locales/moment/es.js": "bower_components/moment/lang/es.js",

avConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* in this same file, which you might want to edit and tune if needed.
2121
*/
2222

23-
var AV_CONFIG_VERSION = '3.4.0';
23+
var AV_CONFIG_VERSION = '17.04';
2424

2525
var avConfigData = {
2626
// the base url path for ajax requests, for example for sending ballots or

avRegistration/login-directive/login-directive.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ angular.module('avRegistration')
147147
} else {
148148
scope.sendingData = false;
149149
scope.status = 'Not found';
150-
scope.error = $i18next('avRegistration.invalidCredentials');
150+
scope.error = $i18next('avRegistration.invalidCredentials', { support: ConfigService.contact.email });
151151
}
152152
})
153153
.error(function(error) {
154154
scope.sendingData = false;
155155
scope.status = 'Registration error: ' + error.message;
156-
scope.error = $i18next('avRegistration.invalidCredentials');
156+
scope.error = $i18next('avRegistration.invalidCredentials', { support: ConfigService.contact.email });
157157
});
158158
};
159159

avRegistration/login-directive/login-directive.less

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
text-align: center;
88
}
99

10+
.error.text-danger.ng-binding.ng-scope {
11+
white-space: pre;
12+
}
13+
1014
.help-h3 {
1115
margin-top: 0;
1216
}

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "avCommon",
3-
"version" : "3.4.0",
3+
"version" : "17.04",
44
"main": "index.html",
55
"ignore": [
66
"tests",

dist/appCommon-v3.4.0.js renamed to dist/appCommon-v17.04.js

+26-29
Large diffs are not rendered by default.

dist/avConfig-v3.4.0.js renamed to dist/avConfig-v17.04.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* in this same file, which you might want to edit and tune if needed.
2121
*/
2222

23-
var AV_CONFIG_VERSION = '3.4.0';
23+
var AV_CONFIG_VERSION = '17.04';
2424

2525
var avConfigData = {
2626
// the base url path for ajax requests, for example for sending ballots or
File renamed without changes.
File renamed without changes.

dist/avWidgets.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
var link = links[i], href = link.getAttribute("href");
1010
void 0 !== callback && callback(link, i, className);
1111
var iframe = createElement("iframe", {
12-
"class": className + "-iframe",
12+
class: className + "-iframe",
1313
src: href,
1414
style: "border: 0; width: 100%; height: 100%",
1515
seamless: ""

dist/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<!DOCTYPE html><html id="ng-app" ng-app="agora-gui-common"><head><title>Agora Voting</title><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><base href="/"><meta charset="utf-8"><link rel="stylesheet" id="theme" href="/themes/default/app.min.css"></head><body><!-- Livereload script for development only (stripped during dist build) --><!-- IE8 bind workaround (needed for less) --><!-- JS from Bower Components --><!-- Add New Bower Component JS Above --><!-- JS from Vendor Components --><!-- Add New Vendor Component JS Above --><!-- Configuration file JS --><!-- Themes JS --><!-- Main App JS --><!-- registration --><!-- ui --><!-- for security, we do not include the dynamic directive in the app,
2-
so in the compiled app e2e tests are not expected work. --><!-- IE10 viewport hack for Surface/desktop Windows 8 bug --><!-- IE9 console workaround --><!-- Add New Component JS Above --><div id="no-js">Page is taking some time to load, wait a moment please. If it takes too long, please check that you have javascript activated, try with another browser or contact us.</div><div id="unsupported-browser">For security reasons, your browser is unsupported. Please use a newer web browser (if you are using Internet Explorer, use version 9 or newer).</div><div><!-- Shown while loading --><div id="angular-preloading" class="avb-start-loading"></div><!-- Main content --><div id="content"><!-- This is where angular injects its content --><div ui-view=""></div></div></div><!--[if lte IE 8]><script src="/libcompat-v3.4.0.js"></script><![endif]--><!--[if gte IE 9]><script src="/libnocompat-v3.4.0.js"></script><![endif]--><!--[if !IE]><!--><script src="/libnocompat-v3.4.0.js"></script><!--<![endif]--><!--All the source code of this program under copyright. Take a look at the license details at https://github.com/agoravoting/agora-core-view/blob/master/README.md --><script src="/appCommon-v3.4.0.js"></script><script src="/avPlugins-v3.4.0.js"></script></body></html>
2+
so in the compiled app e2e tests are not expected work. --><!-- IE10 viewport hack for Surface/desktop Windows 8 bug --><!-- IE9 console workaround --><!-- Add New Component JS Above --><div id="no-js">Page is taking some time to load, wait a moment please. If it takes too long, please check that you have javascript activated, try with another browser or contact us.</div><div id="unsupported-browser">For security reasons, your browser is unsupported. Please use a newer web browser (if you are using Internet Explorer, use version 9 or newer).</div><div><!-- Shown while loading --><div id="angular-preloading" class="avb-start-loading"></div><!-- Main content --><div id="content"><!-- This is where angular injects its content --><div ui-view=""></div></div></div><!--[if lte IE 8]><script src="/libcompat-v17.04.js"></script><![endif]--><!--[if gte IE 9]><script src="/libnocompat-v17.04.js"></script><![endif]--><!--[if !IE]><!--><script src="/libnocompat-v17.04.js"></script><!--<![endif]--><!--All the source code of this program under copyright. Take a look at the license details at https://github.com/agoravoting/agora-core-view/blob/master/README.md --><script src="/appCommon-v17.04.js"></script><script src="/avPlugins-v17.04.js"></script></body></html>

0 commit comments

Comments
 (0)