Commit 16f27cd9 authored by Julien's avatar Julien
Browse files

adding files that were forgotten

parent f7859529
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# Change these settings to your own preference
indent_style = space
indent_size = 4
# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
[{package,bower}.json]
indent_style = space
indent_size = 2
# This file is inspired by https://github.com/alexkaratarakis/gitattributes
#
# Auto detect text files and perform LF normalization
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
* text=auto
# The above will handle all files NOT found below
# These files are text and should be normalized (Convert crlf => lf)
*.bat text eol=crlf
*.coffee text
*.css text
*.cql text
*.df text
*.ejs text
*.html text
*.java text
*.js text
*.json text
*.less text
*.properties text
*.sass text
*.scss text
*.sh text eol=lf
*.sql text
*.txt text
*.ts text
*.xml text
*.yaml text
*.yml text
# Documents
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.markdown text
*.md text
*.adoc text
*.textile text
*.mustache text
*.csv text
*.tab text
*.tsv text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text
# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as an asset (binary) by default. If you want to treat it as text,
# comment-out the following line and uncomment the line after.
*.svg binary
#*.svg text
*.eps binary
# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.class binary
*.jar binary
*.war binary
## LINTERS
.csslintrc text
.eslintrc text
.jscsrc text
.jshintrc text
.jshintignore text
.stylelintrc text
## CONFIGS
*.bowerrc text
*.conf text
*.config text
.editorconfig text
.gitattributes text
.gitconfig text
.gitignore text
.htaccess text
*.npmignore text
## HEROKU
Procfile text
.slugignore text
## AUDIO
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary
## VIDEO
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.swc binary
*.swf binary
*.webm binary
## ARCHIVES
*.7z binary
*.gz binary
*.rar binary
*.tar binary
*.zip binary
## FONTS
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary
######################
# Project Specific
######################
/src/main/webapp/content/css/main.css
/target/www/**
/src/test/javascript/coverage/
######################
# Node
######################
/node/
node_tmp/
node_modules/
npm-debug.log.*
/.awcache/*
/.cache-loader/*
######################
# SASS
######################
.sass-cache/
######################
# Eclipse
######################
*.pydevproject
.project
.metadata
tmp/
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath
.factorypath
/src/main/resources/rebel.xml
# External tool builders
.externalToolBuilders/**
# Locally stored "Eclipse launch configurations"
*.launch
# CDT-specific
.cproject
# PDT-specific
.buildpath
######################
# Intellij
######################
.idea/
*.iml
*.iws
*.ipr
*.ids
*.orig
classes/
out/
######################
# Visual Studio Code
######################
.vscode/
######################
# Maven
######################
/log/
/target/
######################
# Gradle
######################
.gradle/
/build/
######################
# Package Files
######################
*.jar
*.war
*.ear
*.db
######################
# Windows
######################
# Windows image file caches
Thumbs.db
# Folder config file
Desktop.ini
######################
# Mac OSX
######################
.DS_Store
.svn
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
######################
# Directories
######################
/bin/
/deploy/
######################
# Logs
######################
*.log*
######################
# Others
######################
*.class
*.*~
*~
.merge_file*
######################
# Gradle Wrapper
######################
!gradle/wrapper/gradle-wrapper.jar
######################
# Maven Wrapper
######################
!.mvn/wrapper/maven-wrapper.jar
######################
# ESLint
######################
.eslintcache
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
import java.net.*;
import java.io.*;
import java.nio.channels.*;
import java.util.Properties;
public class MavenWrapperDownloader {
/**
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL =
"https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
/**
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
".mvn/wrapper/maven-wrapper.properties";
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
".mvn/wrapper/maven-wrapper.jar";
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
public static void main(String args[]) {
System.out.println("- Downloader started");
File baseDirectory = new File(args[0]);
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists, read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if(mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
} catch (IOException e) {
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
} finally {
try {
if(mavenWrapperPropertyFileInputStream != null) {
mavenWrapperPropertyFileInputStream.close();
}
} catch (IOException e) {
// Ignore ...
}
}
}
System.out.println("- Downloading from: : " + url);
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
if(!outputFile.getParentFile().exists()) {
if(!outputFile.getParentFile().mkdirs()) {
System.out.println(
"- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
}
}
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
try {
downloadFileFromURL(url, outputFile);
System.out.println("Done");
System.exit(0);
} catch (Throwable e) {
System.out.println("- Error downloading");
e.printStackTrace();
System.exit(1);
}
}
private static void downloadFileFromURL(String urlString, File destination) throws Exception {
URL website = new URL(urlString);
ReadableByteChannel rbc;
rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(destination);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
fos.close();
rbc.close();
}
}
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip
\ No newline at end of file
node_modules
target
# Prettier configuration
printWidth: 140
singleQuote: true
tabWidth: 4
useTabs: false
# js and ts rules:
arrowParens: avoid
# jsx and tsx rules:
jsxBracketSameLine: false
{
"generator-jhipster": {
"promptValues": {
"packageName": "com.mycompany.myapp",
"nativeLanguage": "fr"
},
"jhipsterVersion": "5.3.4",
"applicationType": "gateway",
"baseName": "MyTransport",
"packageName": "com.mycompany.myapp",
"packageFolder": "com/mycompany/myapp",
"serverPort": "8080",
"authenticationType": "jwt",
"cacheProvider": "hazelcast",
"enableHibernateCache": true,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "mysql",
"prodDatabaseType": "mysql",
"searchEngine": "elasticsearch",
"messageBroker": false,
"serviceDiscoveryType": "eureka",
"buildTool": "maven",
"enableSwaggerCodegen": false,
"jwtSecretKey": "ZmQyM2E0OWE2OWJmZjRjZjE5ZTE5ZGM0NjVkMzBkNDYyZGZjY2I1YzIyNWQzMjIzMjI0MjRiMWM2MmM5YWJhYTYzOTg2ZjkxOWYxY2ZjMDY5N2E5ZTRjMTBmYzdhODIzMTlhZTI4ODYwODYxYjZmODE3MmVjOWM3ZjNiODZiOTQ=",
"clientFramework": "angularX",
"useSass": true,
"clientPackageManager": "npm",
"testFrameworks": [
"gatling"
],
"jhiPrefix": "jhi",
"enableTranslation": true,
"nativeLanguage": "fr",
"languages": [
"fr",
"en"
]
}
}
\ No newline at end of file
......@@ -6627,7 +6627,8 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"aproba": {
"version": "1.2.0",
......@@ -7042,7 +7043,8 @@
"safe-buffer": {
"version": "5.1.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"safer-buffer": {
"version": "2.1.2",
......@@ -7098,6 +7100,7 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
......@@ -7141,12 +7144,14 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"yallist": {
"version": "3.0.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
}
}
},
......
......@@ -128,7 +128,7 @@ jhipster:
authentication:
jwt:
# This token must be encoded using Base64 (you can type `echo 'secret-key'|base64` on your command line)
base64-secret: NWE2NGYyYzlhN2VkNGQ0MDEyY2NhODlmNjlkYzkyYTMwYTIzYTA5YTMzYjU2MjYyN2RhNjMyY2RmYTRkMjVhNWExZjYzOGVlMTk4Njk1NmE4ZWJiNjE3OTE5MDU2ZDc4ZmNiYTU3ZTBlOWJjYWExMGU5NWE5YzMwNTg1ODNiM2M=
base64-secret: ZmQyM2E0OWE2OWJmZjRjZjE5ZTE5ZGM0NjVkMzBkNDYyZGZjY2I1YzIyNWQzMjIzMjI0MjRiMWM2MmM5YWJhYTYzOTg2ZjkxOWYxY2ZjMDY5N2E5ZTRjMTBmYzdhODIzMTlhZTI4ODYwODYxYjZmODE3MmVjOWM3ZjNiODZiOTQ=
# Token is valid 24 hours
token-validity-in-seconds: 86400
token-validity-in-seconds-for-remember-me: 2592000
......
......@@ -135,7 +135,7 @@ jhipster:
# - In the JHipster Registry (which includes a Spring Cloud Config server)
# - In a separate `application-prod.yml` file, in the same folder as your executable WAR file
# - In the `JHIPSTER_SECURITY_AUTHENTICATION_JWT_SECRET` environment variable
base64-secret: NWE2NGYyYzlhN2VkNGQ0MDEyY2NhODlmNjlkYzkyYTMwYTIzYTA5YTMzYjU2MjYyN2RhNjMyY2RmYTRkMjVhNWExZjYzOGVlMTk4Njk1NmE4ZWJiNjE3OTE5MDU2ZDc4ZmNiYTU3ZTBlOWJjYWExMGU5NWE5YzMwNTg1ODNiM2M=
base64-secret: ZmQyM2E0OWE2OWJmZjRjZjE5ZTE5ZGM0NjVkMzBkNDYyZGZjY2I1YzIyNWQzMjIzMjI0MjRiMWM2MmM5YWJhYTYzOTg2ZjkxOWYxY2ZjMDY5N2E5ZTRjMTBmYzdhODIzMTlhZTI4ODYwODYxYjZmODE3MmVjOWM3ZjNiODZiOTQ=
# Token is valid 24 hours
token-validity-in-seconds: 86400
token-validity-in-seconds-for-remember-me: 2592000
......
......@@ -3,6 +3,7 @@
They are written in English to avoid character encoding issues (not a perfect solution)
*/
export const LANGUAGES: string[] = [
'fr'
'fr',
'en'
// jhipster-needle-i18n-language-constant - JHipster will add/remove languages in this array
];
......@@ -3,6 +3,7 @@ import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'findLanguageFromKey' })
export class FindLanguageFromKeyPipe implements PipeTransform {
private languages: any = {
en: { name: 'English' },
fr: { name: 'Français' }
// jhipster-needle-i18n-language-key-pipe - JHipster will add/remove languages in this object
};
......
{
"gateway": {
"title": "Gateway",
"routes": {
"title": "Current routes",
"url": "URL",
"service": "Service",
"servers": "Available servers",
"error": "Warning: no server available!"
},
"refresh": {
"button": "Refresh"
}
}
}
......@@ -20,6 +20,7 @@
},
"admin": {
"main": "Administration",
"gateway": "Gateway",
"userManagement": "User management",
"tracker": "User tracker",
"metrics": "Metrics",
......
......@@ -11,6 +11,10 @@
"error": "Error"
},
"indicator": {
"discoveryComposite": "Discovery Composite",
"refreshScope": "Microservice Refresh Scope",
"configServer": "Microservice Config Server",
"hystrix": "Hystrix",
"diskSpace": "Disk space",
"mail": "Email",
"elasticsearch": "Elasticsearch",
......
......@@ -101,7 +101,7 @@ jhipster:
authentication:
jwt:
# This token must be encoded using Base64 (you can type `echo 'secret-key'|base64` on your command line)
base64-secret: NWE2NGYyYzlhN2VkNGQ0MDEyY2NhODlmNjlkYzkyYTMwYTIzYTA5YTMzYjU2MjYyN2RhNjMyY2RmYTRkMjVhNWExZjYzOGVlMTk4Njk1NmE4ZWJiNjE3OTE5MDU2ZDc4ZmNiYTU3ZTBlOWJjYWExMGU5NWE5YzMwNTg1ODNiM2M=
base64-secret: ZmQyM2E0OWE2OWJmZjRjZjE5ZTE5ZGM0NjVkMzBkNDYyZGZjY2I1YzIyNWQzMjIzMjI0MjRiMWM2MmM5YWJhYTYzOTg2ZjkxOWYxY2ZjMDY5N2E5ZTRjMTBmYzdhODIzMTlhZTI4ODYwODYxYjZmODE3MmVjOWM3ZjNiODZiOTQ=
# Token is valid 24 hours
token-validity-in-seconds: 86400
metrics: # DropWizard Metrics configuration, used by MetricsConfiguration
......
......@@ -80,7 +80,8 @@ module.exports = (options) => ({
new MergeJsonWebpackPlugin({
output: {
groupBy: [
{ pattern: "./src/main/webapp/i18n/fr/*.json", fileName: "./i18n/fr.json" }
{ pattern: "./src/main/webapp/i18n/fr/*.json", fileName: "./i18n/fr.json" },
{ pattern: "./src/main/webapp/i18n/en/*.json", fileName: "./i18n/en.json" }
// jhipster-needle-i18n-language-webpack - JHipster will add/remove languages in this array
]
}
......
......@@ -119,7 +119,8 @@ module.exports = webpackMerge(commonConfig({ env: ENV }), {