Skip to content

Commit

Permalink
automatic project update
Browse files Browse the repository at this point in the history
  • Loading branch information
jdubois committed Jul 6, 2017
1 parent 169549d commit f5a8bd9
Show file tree
Hide file tree
Showing 29 changed files with 717 additions and 610 deletions.
2 changes: 1 addition & 1 deletion .yo-rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"en"
],
"serverPort": 8080,
"jhipsterVersion": "4.5.6",
"jhipsterVersion": "4.6.0",
"enableSocialSignIn": false,
"useSass": false,
"jhiPrefix": "jhi",
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# jhipsterSampleApplication
This application was generated using JHipster 4.5.6, you can find documentation and help at [https://jhipster.github.io/documentation-archive/v4.5.6](https://jhipster.github.io/documentation-archive/v4.5.6).
This application was generated using JHipster 4.6.0, you can find documentation and help at [https://jhipster.github.io/documentation-archive/v4.6.0](https://jhipster.github.io/documentation-archive/v4.6.0).

## Development

Expand Down Expand Up @@ -96,13 +96,13 @@ For more information refer to [Using Docker and Docker-Compose][], this page als
To configure CI for your project, run the ci-cd sub-generator (`jhipster ci-cd`), this will let you generate configuration files for a number of Continuous Integration systems. Consult the [Setting up Continuous Integration][] page for more information.

[JHipster Homepage and latest documentation]: https://jhipster.github.io
[JHipster 4.5.6 archive]: https://jhipster.github.io/documentation-archive/v4.5.6
[JHipster 4.6.0 archive]: https://jhipster.github.io/documentation-archive/v4.6.0

[Using JHipster in development]: https://jhipster.github.io/documentation-archive/v4.5.6/development/
[Using Docker and Docker-Compose]: https://jhipster.github.io/documentation-archive/v4.5.6/docker-compose
[Using JHipster in production]: https://jhipster.github.io/documentation-archive/v4.5.6/production/
[Running tests page]: https://jhipster.github.io/documentation-archive/v4.5.6/running-tests/
[Setting up Continuous Integration]: https://jhipster.github.io/documentation-archive/v4.5.6/setting-up-ci/
[Using JHipster in development]: https://jhipster.github.io/documentation-archive/v4.6.0/development/
[Using Docker and Docker-Compose]: https://jhipster.github.io/documentation-archive/v4.6.0/docker-compose
[Using JHipster in production]: https://jhipster.github.io/documentation-archive/v4.6.0/production/
[Running tests page]: https://jhipster.github.io/documentation-archive/v4.6.0/running-tests/
[Setting up Continuous Integration]: https://jhipster.github.io/documentation-archive/v4.6.0/setting-up-ci/

[Gatling]: http://gatling.io/
[Node.js]: https://nodejs.org/
Expand Down
8 changes: 5 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated on 2017-06-23 using generator-jhipster 4.5.6
// Generated on 2017-07-06 using generator-jhipster 4.6.0
'use strict';

var gulp = require('gulp'),
Expand Down Expand Up @@ -100,7 +100,8 @@ gulp.task('ngconstant:dev', function () {
name: 'jhipsterSampleApplicationApp',
constants: {
VERSION: util.parseVersion(),
DEBUG_INFO_ENABLED: true
DEBUG_INFO_ENABLED: true,
BUILD_TIMESTAMP: ''
},
template: config.constantTemplate,
stream: true
Expand All @@ -114,7 +115,8 @@ gulp.task('ngconstant:prod', function () {
name: 'jhipsterSampleApplicationApp',
constants: {
VERSION: util.parseVersion(),
DEBUG_INFO_ENABLED: false
DEBUG_INFO_ENABLED: false,
BUILD_TIMESTAMP: new Date().getTime()
},
template: config.constantTemplate,
stream: true
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0",
"description": "Description for jhipsterSampleApplication",
"private": true,
"license": "UNLICENSED",
"cacheDirectories": [
"node_modules",
"src/main/webapp/bower_components"
Expand All @@ -14,7 +15,7 @@
"eslint-config-angular": "0.5.0",
"eslint-plugin-angular": "2.2.1",
"event-stream": "3.3.4",
"generator-jhipster": "4.5.6",
"generator-jhipster": "4.6.0",
"gulp": "3.9.1",
"gulp-angular-filesort": "1.1.1",
"gulp-angular-templatecache": "2.0.0",
Expand Down
23 changes: 14 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
<!-- Overridden to get metrics-jcache -->
<dropwizard-metrics.version>3.2.2</dropwizard-metrics.version>
<frontend-maven-plugin.version>1.4</frontend-maven-plugin.version>
<gatling.version>2.2.3</gatling.version>
<gatling-maven-plugin.version>2.2.1</gatling-maven-plugin.version>
<gatling.version>2.2.5</gatling.version>
<gatling-maven-plugin.version>2.2.4</gatling-maven-plugin.version>
<hibernate.version>5.2.8.Final</hibernate.version>
<hikaricp.version>2.6.0</hikaricp.version>
<jacoco-maven-plugin.version>0.7.9</jacoco-maven-plugin.version>
<java.version>1.8</java.version>
<jcache.version>1.0.0</jcache.version>
<jzlib.version>1.1.3</jzlib.version>
<jhipster.server.version>1.1.7</jhipster.server.version>
<jhipster.server.version>1.1.8</jhipster.server.version>
<liquibase-hibernate5.version>3.6</liquibase-hibernate5.version>
<liquibase-slf4j.version>2.0.0</liquibase-slf4j.version>
<logstash-logback-encoder.version>4.9</logstash-logback-encoder.version>
Expand Down Expand Up @@ -88,7 +88,7 @@
<sonar.tests>${project.basedir}/src/test/</sonar.tests>

<!-- Spring properties -->
<springfox.version>2.6.1</springfox.version>
<springfox.version>2.7.0</springfox.version>
<validation-api.version>1.1.0.Final</validation-api.version>
<yarn.version>v0.24.6</yarn.version>
</properties>
Expand Down Expand Up @@ -382,10 +382,15 @@
<version>${gatling-maven-plugin.version}</version>
<configuration>
<configFolder>src/test/gatling/conf</configFolder>
<dataFolder>src/test/gatling/data</dataFolder>
<resultsFolder>target/gatling/results</resultsFolder>
<bodiesFolder>src/test/gatling/bodies</bodiesFolder>
<simulationsFolder>src/test/gatling/simulations</simulationsFolder>
<dataFolder>src/test/gatling/user-files/data</dataFolder>
<resultsFolder>target/gatling/results/${maven.build.timestamp}/</resultsFolder>
<bodiesFolder>src/test/gatling/user-files/bodies</bodiesFolder>
<simulationsFolder>src/test/gatling/user-files/simulations</simulationsFolder>
<!-- If uncommented, these arguments below will be applied to all your gatling tests -->
<!--<jvmArgs>
<jvmArg>-Dusers=100</jvmArg>
<jvmArg>-Dramp=1</jvmArg>
</jvmArgs>-->
<!--
This will run multiple simulations one by one. Useful when doing Gatling
tests in CI.
Expand Down Expand Up @@ -805,7 +810,7 @@
Profile for doing "continuous compilation" with the Scala Maven plugin.
It allows automatic compilation of Java classes as soon as they are saved.
To use it, run in 3 terminals:
- './mvnw -Pcc scala:cc' for continous compilation of your classes
- './mvnw -Pcc scala:cc' for continuous compilation of your classes
- './mvnw -Pcc' for hot reload of Spring boot
- 'gulp' for hot reload of the HTML/JavaScript assets
Everything should hot reload automatically!
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/io/github/jhipster/sample/domain/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.io.Serializable;
import java.util.HashSet;
import java.util.Locale;
import java.util.Objects;
import java.util.Set;
import java.time.Instant;

Expand Down Expand Up @@ -111,7 +112,7 @@ public String getLogin() {

//Lowercase the login before saving it in database
public void setLogin(String login) {
this.login = login.toLowerCase(Locale.ENGLISH);
this.login = login == null ? null : login.toLowerCase(Locale.ENGLISH);
}

public String getPassword() {
Expand Down Expand Up @@ -219,13 +220,12 @@ public boolean equals(Object o) {
}

User user = (User) o;

return login.equals(user.login);
return !(user.getId() == null || getId() == null) && Objects.equals(getId(), user.getId());
}

@Override
public int hashCode() {
return login.hashCode();
return Objects.hashCode(getId());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

<property name="now" value="now()" dbms="h2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

<property name="now" value="now()" dbms="h2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
<!--
Added the constraints for entity BankAccount.
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

<property name="now" value="now()" dbms="h2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

<property name="now" value="now()" dbms="h2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
<!--
Added the constraints for entity Operation.
-->
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/liquibase/master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">

<include file="classpath:config/liquibase/changelog/00000000000000_initial_schema.xml" relativeToChangelogFile="false"/>
<include file="classpath:config/liquibase/changelog/20150805124838_added_entity_BankAccount.xml" relativeToChangelogFile="false"/>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mails/activationEmail.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</p>
<p>
<a th:href="@{|${baseUrl}/#/activate?key=${user.activationKey}|}"
th:text="|${user.login}|">Activation Link</a>
th:text="@{|${baseUrl}/#/activate?key=${user.activationKey}|}">Activation Link</a>
</p>
<p>
<span th:text="#{email.activation.text2}">Regards, </span>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mails/creationEmail.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</p>
<p>
<a th:href="@{|${baseUrl}/#/reset/finish?key=${user.resetKey}|}"
th:text="|${user.login}|">login</a>
th:text="@{|${baseUrl}/#/reset/finish?key=${user.resetKey}|}">Login link</a>
</p>
<p>
<span th:text="#{email.activation.text2}">Regards, </span>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mails/passwordResetEmail.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</p>
<p>
<a th:href="@{|${baseUrl}/#/reset/finish?key=${user.resetKey}|}"
th:text="|${user.login}|">Reset Link</a>
th:text="@{|${baseUrl}/#/reset/finish?key=${user.resetKey}|}">Reset Link</a>
</p>
<p>
<span th:text="#{email.reset.text2}">Regards, </span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h4 class="modal-title" id="myUserLabel" data-translate="userManagement.home.cre
<div class="form-group">
<label class="control-label" data-translate="userManagement.login">Login</label>
<input type="text" class="form-control" name="login"
ng-model="vm.user.login" ng-required="vm.user.id == null" ng-minlength=1 ng-maxlength=50 ng-pattern="/^[_'.@A-Za-z0-9-]*$/">
ng-model="vm.user.login" required ng-minlength=1 ng-maxlength=50 ng-pattern="/^[_'.@A-Za-z0-9-]*$/">

<div ng-show="editForm.login.$invalid">
<p class="help-block"
Expand Down
1 change: 1 addition & 0 deletions src/main/webapp/app/app.constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
.module('jhipsterSampleApplicationApp')
.constant('VERSION', "0.0.1-SNAPSHOT")
.constant('DEBUG_INFO_ENABLED', true)
.constant('BUILD_TIMESTAMP', "")
;
})();
6 changes: 3 additions & 3 deletions src/main/webapp/app/blocks/config/translation.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
.module('jhipsterSampleApplicationApp')
.config(translationConfig);

translationConfig.$inject = ['$translateProvider', 'tmhDynamicLocaleProvider'];
translationConfig.$inject = ['$translateProvider', 'tmhDynamicLocaleProvider', 'BUILD_TIMESTAMP'];

function translationConfig($translateProvider, tmhDynamicLocaleProvider) {
function translationConfig($translateProvider, tmhDynamicLocaleProvider, BUILD_TIMESTAMP) {
// Initialize angular-translate
$translateProvider.useLoader('$translatePartialLoader', {
urlTemplate: 'i18n/{lang}/{part}.json'
urlTemplate: 'i18n/{lang}/{part}.json' + (BUILD_TIMESTAMP ? '?build=' + BUILD_TIMESTAMP : '')
});

$translateProvider.preferredLanguage('en');
Expand Down
1 change: 1 addition & 0 deletions src/main/webapp/app/blocks/handlers/translation.handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
});
}


// update the window title using params in the following
// precedence
// 1. titleKey parameter
Expand Down
85 changes: 49 additions & 36 deletions src/main/webapp/app/components/language/language.filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,60 @@

angular
.module('jhipsterSampleApplicationApp')
.filter('findLanguageFromKey', findLanguageFromKey);
.filter('findLanguageFromKey', findLanguageFromKey)
.filter('findLanguageRtlFromKey', findLanguageRtlFromKey);

var languages = {
'ca': { name: 'Català' },
'cs': { name: 'Český' },
'da': { name: 'Dansk' },
'de': { name: 'Deutsch' },
'el': { name: 'Ελληνικά' },
'en': { name: 'English' },
'es': { name: 'Español' },
'et': { name: 'Eesti' },
'fa': { name: 'فارسی', rtl: true },
'fr': { name: 'Français' },
'gl': { name: 'Galego' },
'hu': { name: 'Magyar' },
'hi': { name: 'हिंदी' },
'hy': { name: 'Հայերեն' },
'it': { name: 'Italiano' },
'ja': { name: '日本語' },
'ko': { name: '한국어' },
'mr': { name: 'मराठी' },
'nl': { name: 'Nederlands' },
'pl': { name: 'Polski' },
'pt-br': { name: 'Português (Brasil)' },
'pt-pt': { name: 'Português' },
'ro': { name: 'Română' },
'ru': { name: 'Русский' },
'sk': { name: 'Slovenský' },
'sr': { name: 'Srpski' },
'sv': { name: 'Svenska' },
'ta': { name: 'தமிழ்' },
'th': { name: 'ไทย' },
'tr': { name: 'Türkçe' },
'ua': { name: 'Українська' },
'vi': { name: 'Tiếng Việt' },
'zh-cn': { name: '中文(简体)' },
'zh-tw': { name: '繁體中文' }
};

function findLanguageFromKey() {
return findLanguageFromKeyFilter;

function findLanguageFromKeyFilter(lang) {
return {
'ca': 'Català',
'cs': 'Český',
'da': 'Dansk',
'de': 'Deutsch',
'el': 'Ελληνικά',
'en': 'English',
'es': 'Español',
'et': 'Eesti',
'fr': 'Français',
'gl': 'Galego',
'hu': 'Magyar',
'hi': 'हिंदी',
'hy': 'Հայերեն',
'it': 'Italiano',
'ja': '日本語',
'ko': '한국어',
'mr': 'मराठी',
'nl': 'Nederlands',
'pl': 'Polski',
'pt-br': 'Português (Brasil)',
'pt-pt': 'Português',
'ro': 'Română',
'ru': 'Русский',
'sk': 'Slovenský',
'sr': 'Srpski',
'sv': 'Svenska',
'ta': 'தமிழ்',
'th': 'ไทย',
'tr': 'Türkçe',
'ua': 'Українська',
'vi': 'Tiếng Việt',
'zh-cn': '中文(简体)',
'zh-tw': '繁體中文'
}[lang];
return languages[lang].name;
}
}

function findLanguageRtlFromKey() {
return findLanguageRtlFromKeyFilter;

function findLanguageRtlFromKeyFilter(lang) {
return languages[lang].rtl;
}
}

})();
Loading

0 comments on commit f5a8bd9

Please sign in to comment.