提交
This commit is contained in:
33
galaxy-navigation/.gitignore
vendored
Normal file
33
galaxy-navigation/.gitignore
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
HELP.md
|
||||||
|
target/
|
||||||
|
!.mvn/wrapper/maven-wrapper.jar
|
||||||
|
!**/src/main/**/target/
|
||||||
|
!**/src/test/**/target/
|
||||||
|
|
||||||
|
### STS ###
|
||||||
|
.apt_generated
|
||||||
|
.classpath
|
||||||
|
.factorypath
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
.springBeans
|
||||||
|
.sts4-cache
|
||||||
|
|
||||||
|
### IntelliJ IDEA ###
|
||||||
|
.idea
|
||||||
|
*.iws
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
|
||||||
|
### NetBeans ###
|
||||||
|
/nbproject/private/
|
||||||
|
/nbbuild/
|
||||||
|
/dist/
|
||||||
|
/nbdist/
|
||||||
|
/.nb-gradle/
|
||||||
|
build/
|
||||||
|
!**/src/main/**/build/
|
||||||
|
!**/src/test/**/build/
|
||||||
|
|
||||||
|
### VS Code ###
|
||||||
|
.vscode/
|
||||||
BIN
galaxy-navigation/.mvn/wrapper/maven-wrapper.jar
vendored
Normal file
BIN
galaxy-navigation/.mvn/wrapper/maven-wrapper.jar
vendored
Normal file
Binary file not shown.
2
galaxy-navigation/.mvn/wrapper/maven-wrapper.properties
vendored
Normal file
2
galaxy-navigation/.mvn/wrapper/maven-wrapper.properties
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip
|
||||||
|
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
|
||||||
316
galaxy-navigation/mvnw
vendored
Normal file
316
galaxy-navigation/mvnw
vendored
Normal file
@@ -0,0 +1,316 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
# https://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.
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
# Maven Start Up Batch script
|
||||||
|
#
|
||||||
|
# Required ENV vars:
|
||||||
|
# ------------------
|
||||||
|
# JAVA_HOME - location of a JDK home dir
|
||||||
|
#
|
||||||
|
# Optional ENV vars
|
||||||
|
# -----------------
|
||||||
|
# M2_HOME - location of maven2's installed home dir
|
||||||
|
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
|
||||||
|
# e.g. to debug Maven itself, use
|
||||||
|
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
|
||||||
|
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
if [ -z "$MAVEN_SKIP_RC" ] ; then
|
||||||
|
|
||||||
|
if [ -f /usr/local/etc/mavenrc ] ; then
|
||||||
|
. /usr/local/etc/mavenrc
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f /etc/mavenrc ] ; then
|
||||||
|
. /etc/mavenrc
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "$HOME/.mavenrc" ] ; then
|
||||||
|
. "$HOME/.mavenrc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
# OS specific support. $var _must_ be set to either true or false.
|
||||||
|
cygwin=false;
|
||||||
|
darwin=false;
|
||||||
|
mingw=false
|
||||||
|
case "`uname`" in
|
||||||
|
CYGWIN*) cygwin=true ;;
|
||||||
|
MINGW*) mingw=true;;
|
||||||
|
Darwin*) darwin=true
|
||||||
|
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
|
||||||
|
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
|
||||||
|
if [ -z "$JAVA_HOME" ]; then
|
||||||
|
if [ -x "/usr/libexec/java_home" ]; then
|
||||||
|
export JAVA_HOME="`/usr/libexec/java_home`"
|
||||||
|
else
|
||||||
|
export JAVA_HOME="/Library/Java/Home"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -z "$JAVA_HOME" ] ; then
|
||||||
|
if [ -r /etc/gentoo-release ] ; then
|
||||||
|
JAVA_HOME=`java-config --jre-home`
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$M2_HOME" ] ; then
|
||||||
|
## resolve links - $0 may be a link to maven's home
|
||||||
|
PRG="$0"
|
||||||
|
|
||||||
|
# need this for relative symlinks
|
||||||
|
while [ -h "$PRG" ] ; do
|
||||||
|
ls=`ls -ld "$PRG"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
PRG="$link"
|
||||||
|
else
|
||||||
|
PRG="`dirname "$PRG"`/$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
saveddir=`pwd`
|
||||||
|
|
||||||
|
M2_HOME=`dirname "$PRG"`/..
|
||||||
|
|
||||||
|
# make it fully qualified
|
||||||
|
M2_HOME=`cd "$M2_HOME" && pwd`
|
||||||
|
|
||||||
|
cd "$saveddir"
|
||||||
|
# echo Using m2 at $M2_HOME
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
||||||
|
if $cygwin ; then
|
||||||
|
[ -n "$M2_HOME" ] &&
|
||||||
|
M2_HOME=`cygpath --unix "$M2_HOME"`
|
||||||
|
[ -n "$JAVA_HOME" ] &&
|
||||||
|
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||||
|
[ -n "$CLASSPATH" ] &&
|
||||||
|
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For Mingw, ensure paths are in UNIX format before anything is touched
|
||||||
|
if $mingw ; then
|
||||||
|
[ -n "$M2_HOME" ] &&
|
||||||
|
M2_HOME="`(cd "$M2_HOME"; pwd)`"
|
||||||
|
[ -n "$JAVA_HOME" ] &&
|
||||||
|
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$JAVA_HOME" ]; then
|
||||||
|
javaExecutable="`which javac`"
|
||||||
|
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
|
||||||
|
# readlink(1) is not available as standard on Solaris 10.
|
||||||
|
readLink=`which readlink`
|
||||||
|
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
|
||||||
|
if $darwin ; then
|
||||||
|
javaHome="`dirname \"$javaExecutable\"`"
|
||||||
|
javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
|
||||||
|
else
|
||||||
|
javaExecutable="`readlink -f \"$javaExecutable\"`"
|
||||||
|
fi
|
||||||
|
javaHome="`dirname \"$javaExecutable\"`"
|
||||||
|
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
|
||||||
|
JAVA_HOME="$javaHome"
|
||||||
|
export JAVA_HOME
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$JAVACMD" ] ; then
|
||||||
|
if [ -n "$JAVA_HOME" ] ; then
|
||||||
|
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||||
|
# IBM's JDK on AIX uses strange locations for the executables
|
||||||
|
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||||
|
else
|
||||||
|
JAVACMD="$JAVA_HOME/bin/java"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
JAVACMD="`\\unset -f command; \\command -v java`"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -x "$JAVACMD" ] ; then
|
||||||
|
echo "Error: JAVA_HOME is not defined correctly." >&2
|
||||||
|
echo " We cannot execute $JAVACMD" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$JAVA_HOME" ] ; then
|
||||||
|
echo "Warning: JAVA_HOME environment variable is not set."
|
||||||
|
fi
|
||||||
|
|
||||||
|
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
|
||||||
|
|
||||||
|
# traverses directory structure from process work directory to filesystem root
|
||||||
|
# first directory with .mvn subdirectory is considered project base directory
|
||||||
|
find_maven_basedir() {
|
||||||
|
|
||||||
|
if [ -z "$1" ]
|
||||||
|
then
|
||||||
|
echo "Path not specified to find_maven_basedir"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
basedir="$1"
|
||||||
|
wdir="$1"
|
||||||
|
while [ "$wdir" != '/' ] ; do
|
||||||
|
if [ -d "$wdir"/.mvn ] ; then
|
||||||
|
basedir=$wdir
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
|
||||||
|
if [ -d "${wdir}" ]; then
|
||||||
|
wdir=`cd "$wdir/.."; pwd`
|
||||||
|
fi
|
||||||
|
# end of workaround
|
||||||
|
done
|
||||||
|
echo "${basedir}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# concatenates all lines of a file
|
||||||
|
concat_lines() {
|
||||||
|
if [ -f "$1" ]; then
|
||||||
|
echo "$(tr -s '\n' ' ' < "$1")"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
BASE_DIR=`find_maven_basedir "$(pwd)"`
|
||||||
|
if [ -z "$BASE_DIR" ]; then
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
|
##########################################################################################
|
||||||
|
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
|
||||||
|
# This allows using the maven wrapper in projects that prohibit checking in binary data.
|
||||||
|
##########################################################################################
|
||||||
|
if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
|
||||||
|
if [ "$MVNW_VERBOSE" = true ]; then
|
||||||
|
echo "Found .mvn/wrapper/maven-wrapper.jar"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [ "$MVNW_VERBOSE" = true ]; then
|
||||||
|
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
|
||||||
|
fi
|
||||||
|
if [ -n "$MVNW_REPOURL" ]; then
|
||||||
|
jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
|
||||||
|
else
|
||||||
|
jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
|
||||||
|
fi
|
||||||
|
while IFS="=" read key value; do
|
||||||
|
case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
|
||||||
|
esac
|
||||||
|
done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
|
||||||
|
if [ "$MVNW_VERBOSE" = true ]; then
|
||||||
|
echo "Downloading from: $jarUrl"
|
||||||
|
fi
|
||||||
|
wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
|
||||||
|
if $cygwin; then
|
||||||
|
wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
|
||||||
|
fi
|
||||||
|
|
||||||
|
if command -v wget > /dev/null; then
|
||||||
|
if [ "$MVNW_VERBOSE" = true ]; then
|
||||||
|
echo "Found wget ... using wget"
|
||||||
|
fi
|
||||||
|
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
|
||||||
|
wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
|
||||||
|
else
|
||||||
|
wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
|
||||||
|
fi
|
||||||
|
elif command -v curl > /dev/null; then
|
||||||
|
if [ "$MVNW_VERBOSE" = true ]; then
|
||||||
|
echo "Found curl ... using curl"
|
||||||
|
fi
|
||||||
|
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
|
||||||
|
curl -o "$wrapperJarPath" "$jarUrl" -f
|
||||||
|
else
|
||||||
|
curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
|
||||||
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
if [ "$MVNW_VERBOSE" = true ]; then
|
||||||
|
echo "Falling back to using Java to download"
|
||||||
|
fi
|
||||||
|
javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
|
||||||
|
# For Cygwin, switch paths to Windows format before running javac
|
||||||
|
if $cygwin; then
|
||||||
|
javaClass=`cygpath --path --windows "$javaClass"`
|
||||||
|
fi
|
||||||
|
if [ -e "$javaClass" ]; then
|
||||||
|
if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
|
||||||
|
if [ "$MVNW_VERBOSE" = true ]; then
|
||||||
|
echo " - Compiling MavenWrapperDownloader.java ..."
|
||||||
|
fi
|
||||||
|
# Compiling the Java class
|
||||||
|
("$JAVA_HOME/bin/javac" "$javaClass")
|
||||||
|
fi
|
||||||
|
if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
|
||||||
|
# Running the downloader
|
||||||
|
if [ "$MVNW_VERBOSE" = true ]; then
|
||||||
|
echo " - Running MavenWrapperDownloader.java ..."
|
||||||
|
fi
|
||||||
|
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
##########################################################################################
|
||||||
|
# End of extension
|
||||||
|
##########################################################################################
|
||||||
|
|
||||||
|
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
|
||||||
|
if [ "$MVNW_VERBOSE" = true ]; then
|
||||||
|
echo $MAVEN_PROJECTBASEDIR
|
||||||
|
fi
|
||||||
|
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
|
||||||
|
|
||||||
|
# For Cygwin, switch paths to Windows format before running java
|
||||||
|
if $cygwin; then
|
||||||
|
[ -n "$M2_HOME" ] &&
|
||||||
|
M2_HOME=`cygpath --path --windows "$M2_HOME"`
|
||||||
|
[ -n "$JAVA_HOME" ] &&
|
||||||
|
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
|
||||||
|
[ -n "$CLASSPATH" ] &&
|
||||||
|
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
|
||||||
|
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
|
||||||
|
MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Provide a "standardized" way to retrieve the CLI args that will
|
||||||
|
# work with both Windows and non-Windows executions.
|
||||||
|
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
|
||||||
|
export MAVEN_CMD_LINE_ARGS
|
||||||
|
|
||||||
|
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
|
||||||
|
|
||||||
|
exec "$JAVACMD" \
|
||||||
|
$MAVEN_OPTS \
|
||||||
|
$MAVEN_DEBUG_OPTS \
|
||||||
|
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
|
||||||
|
"-Dmaven.home=${M2_HOME}" \
|
||||||
|
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
|
||||||
|
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
|
||||||
188
galaxy-navigation/mvnw.cmd
vendored
Normal file
188
galaxy-navigation/mvnw.cmd
vendored
Normal file
@@ -0,0 +1,188 @@
|
|||||||
|
@REM ----------------------------------------------------------------------------
|
||||||
|
@REM Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@REM or more contributor license agreements. See the NOTICE file
|
||||||
|
@REM distributed with this work for additional information
|
||||||
|
@REM regarding copyright ownership. The ASF licenses this file
|
||||||
|
@REM to you under the Apache License, Version 2.0 (the
|
||||||
|
@REM "License"); you may not use this file except in compliance
|
||||||
|
@REM with the License. You may obtain a copy of the License at
|
||||||
|
@REM
|
||||||
|
@REM https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
@REM
|
||||||
|
@REM Unless required by applicable law or agreed to in writing,
|
||||||
|
@REM software distributed under the License is distributed on an
|
||||||
|
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
@REM KIND, either express or implied. See the License for the
|
||||||
|
@REM specific language governing permissions and limitations
|
||||||
|
@REM under the License.
|
||||||
|
@REM ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@REM ----------------------------------------------------------------------------
|
||||||
|
@REM Maven Start Up Batch script
|
||||||
|
@REM
|
||||||
|
@REM Required ENV vars:
|
||||||
|
@REM JAVA_HOME - location of a JDK home dir
|
||||||
|
@REM
|
||||||
|
@REM Optional ENV vars
|
||||||
|
@REM M2_HOME - location of maven2's installed home dir
|
||||||
|
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
|
||||||
|
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
|
||||||
|
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
|
||||||
|
@REM e.g. to debug Maven itself, use
|
||||||
|
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
|
||||||
|
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
|
||||||
|
@REM ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
|
||||||
|
@echo off
|
||||||
|
@REM set title of command window
|
||||||
|
title %0
|
||||||
|
@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
|
||||||
|
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
|
||||||
|
|
||||||
|
@REM set %HOME% to equivalent of $HOME
|
||||||
|
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
|
||||||
|
|
||||||
|
@REM Execute a user defined script before this one
|
||||||
|
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
|
||||||
|
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
|
||||||
|
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
|
||||||
|
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
|
||||||
|
:skipRcPre
|
||||||
|
|
||||||
|
@setlocal
|
||||||
|
|
||||||
|
set ERROR_CODE=0
|
||||||
|
|
||||||
|
@REM To isolate internal variables from possible post scripts, we use another setlocal
|
||||||
|
@setlocal
|
||||||
|
|
||||||
|
@REM ==== START VALIDATION ====
|
||||||
|
if not "%JAVA_HOME%" == "" goto OkJHome
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo Error: JAVA_HOME not found in your environment. >&2
|
||||||
|
echo Please set the JAVA_HOME variable in your environment to match the >&2
|
||||||
|
echo location of your Java installation. >&2
|
||||||
|
echo.
|
||||||
|
goto error
|
||||||
|
|
||||||
|
:OkJHome
|
||||||
|
if exist "%JAVA_HOME%\bin\java.exe" goto init
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo Error: JAVA_HOME is set to an invalid directory. >&2
|
||||||
|
echo JAVA_HOME = "%JAVA_HOME%" >&2
|
||||||
|
echo Please set the JAVA_HOME variable in your environment to match the >&2
|
||||||
|
echo location of your Java installation. >&2
|
||||||
|
echo.
|
||||||
|
goto error
|
||||||
|
|
||||||
|
@REM ==== END VALIDATION ====
|
||||||
|
|
||||||
|
:init
|
||||||
|
|
||||||
|
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
|
||||||
|
@REM Fallback to current working directory if not found.
|
||||||
|
|
||||||
|
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
|
||||||
|
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
|
||||||
|
|
||||||
|
set EXEC_DIR=%CD%
|
||||||
|
set WDIR=%EXEC_DIR%
|
||||||
|
:findBaseDir
|
||||||
|
IF EXIST "%WDIR%"\.mvn goto baseDirFound
|
||||||
|
cd ..
|
||||||
|
IF "%WDIR%"=="%CD%" goto baseDirNotFound
|
||||||
|
set WDIR=%CD%
|
||||||
|
goto findBaseDir
|
||||||
|
|
||||||
|
:baseDirFound
|
||||||
|
set MAVEN_PROJECTBASEDIR=%WDIR%
|
||||||
|
cd "%EXEC_DIR%"
|
||||||
|
goto endDetectBaseDir
|
||||||
|
|
||||||
|
:baseDirNotFound
|
||||||
|
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
|
||||||
|
cd "%EXEC_DIR%"
|
||||||
|
|
||||||
|
:endDetectBaseDir
|
||||||
|
|
||||||
|
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
|
||||||
|
|
||||||
|
@setlocal EnableExtensions EnableDelayedExpansion
|
||||||
|
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
|
||||||
|
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
|
||||||
|
|
||||||
|
:endReadAdditionalConfig
|
||||||
|
|
||||||
|
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
|
||||||
|
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
|
||||||
|
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
|
||||||
|
|
||||||
|
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
|
||||||
|
|
||||||
|
FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
|
||||||
|
IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
|
||||||
|
)
|
||||||
|
|
||||||
|
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
|
||||||
|
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
|
||||||
|
if exist %WRAPPER_JAR% (
|
||||||
|
if "%MVNW_VERBOSE%" == "true" (
|
||||||
|
echo Found %WRAPPER_JAR%
|
||||||
|
)
|
||||||
|
) else (
|
||||||
|
if not "%MVNW_REPOURL%" == "" (
|
||||||
|
SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
|
||||||
|
)
|
||||||
|
if "%MVNW_VERBOSE%" == "true" (
|
||||||
|
echo Couldn't find %WRAPPER_JAR%, downloading it ...
|
||||||
|
echo Downloading from: %DOWNLOAD_URL%
|
||||||
|
)
|
||||||
|
|
||||||
|
powershell -Command "&{"^
|
||||||
|
"$webclient = new-object System.Net.WebClient;"^
|
||||||
|
"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
|
||||||
|
"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
|
||||||
|
"}"^
|
||||||
|
"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
|
||||||
|
"}"
|
||||||
|
if "%MVNW_VERBOSE%" == "true" (
|
||||||
|
echo Finished downloading %WRAPPER_JAR%
|
||||||
|
)
|
||||||
|
)
|
||||||
|
@REM End of extension
|
||||||
|
|
||||||
|
@REM Provide a "standardized" way to retrieve the CLI args that will
|
||||||
|
@REM work with both Windows and non-Windows executions.
|
||||||
|
set MAVEN_CMD_LINE_ARGS=%*
|
||||||
|
|
||||||
|
%MAVEN_JAVA_EXE% ^
|
||||||
|
%JVM_CONFIG_MAVEN_PROPS% ^
|
||||||
|
%MAVEN_OPTS% ^
|
||||||
|
%MAVEN_DEBUG_OPTS% ^
|
||||||
|
-classpath %WRAPPER_JAR% ^
|
||||||
|
"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
|
||||||
|
%WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
|
||||||
|
if ERRORLEVEL 1 goto error
|
||||||
|
goto end
|
||||||
|
|
||||||
|
:error
|
||||||
|
set ERROR_CODE=1
|
||||||
|
|
||||||
|
:end
|
||||||
|
@endlocal & set ERROR_CODE=%ERROR_CODE%
|
||||||
|
|
||||||
|
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
|
||||||
|
@REM check for post script, once with legacy .bat ending and once with .cmd ending
|
||||||
|
if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
|
||||||
|
if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
|
||||||
|
:skipRcPost
|
||||||
|
|
||||||
|
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
|
||||||
|
if "%MAVEN_BATCH_PAUSE%"=="on" pause
|
||||||
|
|
||||||
|
if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
|
||||||
|
|
||||||
|
cmd /C exit /B %ERROR_CODE%
|
||||||
39
galaxy-navigation/package-lock.json
generated
Normal file
39
galaxy-navigation/package-lock.json
generated
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"requires": true,
|
||||||
|
"lockfileVersion": 1,
|
||||||
|
"dependencies": {
|
||||||
|
"clipboard": {
|
||||||
|
"version": "2.0.11",
|
||||||
|
"resolved": "https://registry.npmmirror.com/clipboard/-/clipboard-2.0.11.tgz",
|
||||||
|
"integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==",
|
||||||
|
"requires": {
|
||||||
|
"good-listener": "^1.2.2",
|
||||||
|
"select": "^1.1.2",
|
||||||
|
"tiny-emitter": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"delegate": {
|
||||||
|
"version": "3.2.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/delegate/-/delegate-3.2.0.tgz",
|
||||||
|
"integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw=="
|
||||||
|
},
|
||||||
|
"good-listener": {
|
||||||
|
"version": "1.2.2",
|
||||||
|
"resolved": "https://registry.npmmirror.com/good-listener/-/good-listener-1.2.2.tgz",
|
||||||
|
"integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==",
|
||||||
|
"requires": {
|
||||||
|
"delegate": "^3.1.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"select": {
|
||||||
|
"version": "1.1.2",
|
||||||
|
"resolved": "https://registry.npmmirror.com/select/-/select-1.1.2.tgz",
|
||||||
|
"integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA=="
|
||||||
|
},
|
||||||
|
"tiny-emitter": {
|
||||||
|
"version": "2.1.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
|
||||||
|
"integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
73
galaxy-navigation/pom.xml
Normal file
73
galaxy-navigation/pom.xml
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
|
<version>2.7.5</version>
|
||||||
|
<relativePath/> <!-- lookup parent from repository -->
|
||||||
|
</parent>
|
||||||
|
<groupId>com.example</groupId>
|
||||||
|
<artifactId>galaxy-navigation</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
<name>galaxy-navigation</name>
|
||||||
|
<description>demo</description>
|
||||||
|
<properties>
|
||||||
|
<java.version>1.8</java.version>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-devtools</artifactId>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-test</artifactId>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.thymeleaf</groupId>
|
||||||
|
<artifactId>thymeleaf-spring5</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.thymeleaf.extras</groupId>
|
||||||
|
<artifactId>thymeleaf-extras-java8time</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba</groupId>
|
||||||
|
<artifactId>fastjson</artifactId>
|
||||||
|
<version>1.2.24</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.galaxy.navigation;
|
||||||
|
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
|
@SpringBootApplication
|
||||||
|
public class IndexApplication {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(IndexApplication.class, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
package com.galaxy.navigation.config;
|
||||||
|
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.context.annotation.PropertySource;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
@ConfigurationProperties(prefix = "file")
|
||||||
|
@PropertySource("classpath:application.properties")
|
||||||
|
@Component
|
||||||
|
public class FileList {
|
||||||
|
private java.util.List<PoolConfiguration> component;
|
||||||
|
|
||||||
|
public static class PoolConfiguration {
|
||||||
|
|
||||||
|
private String url;
|
||||||
|
|
||||||
|
public String getUrl() {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUrl(String url) {
|
||||||
|
this.url = url;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public java.util.List<PoolConfiguration> getComponent() {
|
||||||
|
return component;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComponent(java.util.List<PoolConfiguration> component) {
|
||||||
|
this.component = component;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
package com.galaxy.navigation.config;
|
||||||
|
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.context.annotation.PropertySource;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
@ConfigurationProperties(prefix = "galaxy")
|
||||||
|
@PropertySource("classpath:application.properties")
|
||||||
|
@Component
|
||||||
|
public class GalaxyList {
|
||||||
|
private java.util.List<PoolConfiguration> component;
|
||||||
|
|
||||||
|
public static class PoolConfiguration {
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public java.util.List<PoolConfiguration> getComponent() {
|
||||||
|
return component;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComponent(java.util.List<PoolConfiguration> component) {
|
||||||
|
this.component = component;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,151 @@
|
|||||||
|
package com.galaxy.navigation.config;
|
||||||
|
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.context.annotation.PropertySource;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.util.CollectionUtils;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@ConfigurationProperties(prefix = "master")
|
||||||
|
@PropertySource("classpath:application.properties")
|
||||||
|
@Component
|
||||||
|
public class PropertiesList {
|
||||||
|
|
||||||
|
private List<PoolConfiguration> arangodb;
|
||||||
|
private List<PoolConfiguration> druid;
|
||||||
|
private List<PoolConfiguration> flink;
|
||||||
|
private List<PoolConfiguration> hadoop;
|
||||||
|
private List<PoolConfiguration> hbase;
|
||||||
|
private List<PoolConfiguration> kafka;
|
||||||
|
private List<PoolConfiguration> nacos;
|
||||||
|
private List<PoolConfiguration> spark;
|
||||||
|
private List<PoolConfiguration> xxl_job;
|
||||||
|
|
||||||
|
public static class PoolConfiguration {
|
||||||
|
private String id;
|
||||||
|
private String endpoint;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEndpoint() {
|
||||||
|
return endpoint;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndpoint(String endpoint) {
|
||||||
|
|
||||||
|
this.endpoint = endpoint;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "PoolConfiguration{" +
|
||||||
|
"id='" + id + '\'' +
|
||||||
|
", endpoint='" + endpoint + '\'' +
|
||||||
|
", name='" + name + '\'' +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String endpoint(String hbaseId) {
|
||||||
|
if (CollectionUtils.isEmpty(hbase))
|
||||||
|
return null;
|
||||||
|
for (PoolConfiguration config : hbase) {
|
||||||
|
if (config.getId().equals(hbaseId)) {
|
||||||
|
return config.getEndpoint();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PoolConfiguration> getHbase() {
|
||||||
|
return hbase;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHbase(List<PoolConfiguration> hbase) {
|
||||||
|
|
||||||
|
this.hbase = hbase;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PoolConfiguration> getFlink() {
|
||||||
|
return flink;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFlink(List<PoolConfiguration> flink) {
|
||||||
|
this.flink = flink;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PoolConfiguration> getArangodb() {
|
||||||
|
return arangodb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setArangodb(List<PoolConfiguration> arangodb) {
|
||||||
|
this.arangodb = arangodb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PoolConfiguration> getDruid() {
|
||||||
|
return druid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDruid(List<PoolConfiguration> druid) {
|
||||||
|
this.druid = druid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PoolConfiguration> getHadoop() {
|
||||||
|
return hadoop;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHadoop(List<PoolConfiguration> hadoop) {
|
||||||
|
this.hadoop = hadoop;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PoolConfiguration> getKafka() {
|
||||||
|
return kafka;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKafka(List<PoolConfiguration> kafka) {
|
||||||
|
this.kafka = kafka;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PoolConfiguration> getNacos() {
|
||||||
|
return nacos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNacos(List<PoolConfiguration> nacos) {
|
||||||
|
this.nacos = nacos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PoolConfiguration> getSpark() {
|
||||||
|
return spark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpark(List<PoolConfiguration> spark) {
|
||||||
|
this.spark = spark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PoolConfiguration> getXxl_job() {
|
||||||
|
return xxl_job;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setXxl_job(List<PoolConfiguration> xxl_job) {
|
||||||
|
this.xxl_job = xxl_job;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
package com.galaxy.navigation.controller;
|
||||||
|
|
||||||
|
import com.galaxy.navigation.config.FileList;
|
||||||
|
import com.galaxy.navigation.config.GalaxyList;
|
||||||
|
import com.galaxy.navigation.config.PropertiesList;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
|
||||||
|
|
||||||
|
@CrossOrigin
|
||||||
|
@Controller
|
||||||
|
public class ComponentController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private PropertiesList propertiesList;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private GalaxyList list;
|
||||||
|
@Autowired
|
||||||
|
private FileList hosts;
|
||||||
|
|
||||||
|
@RequestMapping("/index")
|
||||||
|
public String index() {
|
||||||
|
return "index";
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/component")
|
||||||
|
@ResponseBody
|
||||||
|
public HashMap<Object, Object> component() {
|
||||||
|
HashMap<Object, Object> map = new HashMap<>();
|
||||||
|
map.put("lists", list.getComponent());
|
||||||
|
map.put("hosts", hosts.getComponent());
|
||||||
|
map.put("arangodb", propertiesList.getArangodb());
|
||||||
|
map.put("druid", propertiesList.getDruid());
|
||||||
|
map.put("flink", propertiesList.getFlink());
|
||||||
|
map.put("hadoop", propertiesList.getHadoop());
|
||||||
|
map.put("hbase", propertiesList.getHbase());
|
||||||
|
map.put("kafka", propertiesList.getKafka());
|
||||||
|
map.put("nacos", propertiesList.getNacos());
|
||||||
|
map.put("spark", propertiesList.getSpark());
|
||||||
|
map.put("xxl_job", propertiesList.getXxl_job());
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
73
galaxy-navigation/src/main/resources/application.properties
Normal file
73
galaxy-navigation/src/main/resources/application.properties
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
server.port=8099
|
||||||
|
|
||||||
|
spring.web.resources.static-locations=classpath:/,classpath:/static/img/
|
||||||
|
|
||||||
|
galaxy.component[0].name=Nacos
|
||||||
|
galaxy.component[1].name=Kafka-manager
|
||||||
|
galaxy.component[2].name=Apache Hadoop
|
||||||
|
galaxy.component[3].name=Apache HBase
|
||||||
|
galaxy.component[4].name=Apache Flink
|
||||||
|
galaxy.component[5].name=Apache Druid
|
||||||
|
galaxy.component[6].name=Apache Spark
|
||||||
|
galaxy.component[7].name=ArangoDB
|
||||||
|
galaxy.component[8].name=Galaxy-job-service
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
master.arangodb[0].name=ArangoDB
|
||||||
|
master.arangodb[0].id=ArangoDB001
|
||||||
|
master.arangodb[0].endpoint=xxg-bscs-tsg-arango.com
|
||||||
|
|
||||||
|
|
||||||
|
master.druid[0].name=Apache Druid
|
||||||
|
master.druid[0].id=Apache Druid001
|
||||||
|
master.druid[0].endpoint=xxg-bscs-tsg-druid.com
|
||||||
|
|
||||||
|
master.hbase[0].name=Apache HBase
|
||||||
|
master.hbase[0].id=Apache HBase001
|
||||||
|
master.hbase[0].endpoint=xxg-bscs-tsg-hbase001.com
|
||||||
|
master.hbase[1].id=Apache HBase002
|
||||||
|
master.hbase[1].endpoint=xxg-bscs-tsg-hbase002.com
|
||||||
|
|
||||||
|
|
||||||
|
master.flink[0].name=Apache Flink
|
||||||
|
master.flink[0].id=Apache Flink001
|
||||||
|
master.flink[0].endpoint=xxg-bscs-tsg-flink001.com
|
||||||
|
master.flink[1].id=Apache Flink002
|
||||||
|
master.flink[1].endpoint=xxg-bscs-tsg-flink002.com
|
||||||
|
|
||||||
|
master.hadoop[0].name=Apache Hadoop
|
||||||
|
master.hadoop[0].id=Apache Hadoop001
|
||||||
|
master.hadoop[0].endpoint=xxg-bscs-tsg-hadoop001.com
|
||||||
|
master.hadoop[1].id=Apache Hadoop002
|
||||||
|
master.hadoop[1].endpoint=xxg-bscs-tsg-hadoop002.com
|
||||||
|
|
||||||
|
master.kafka[0].name=Kafka-manager
|
||||||
|
master.kafka[0].id=Kafka-manager001
|
||||||
|
master.kafka[0].endpoint=xxg-bscs-tsg-kafka.com
|
||||||
|
|
||||||
|
master.nacos[0].name=Nacos
|
||||||
|
master.nacos[0].id=Nacos001
|
||||||
|
master.nacos[0].endpoint=xxg-bscs-tsg-nacos.com
|
||||||
|
|
||||||
|
master.spark[0].name=Apache Spark
|
||||||
|
master.spark[0].id=Apache Spark001
|
||||||
|
master.spark[0].endpoint=xxg-bscs-tsg-spark.com
|
||||||
|
master.spark[1].id=Apache Spark002
|
||||||
|
master.spark[1].endpoint=xxg-bscs-tsg-sparkhistory.com
|
||||||
|
|
||||||
|
master.xxl-job[0].name=Galaxy-job-service
|
||||||
|
master.xxl-job[0].id=Galaxy-job-service001
|
||||||
|
master.xxl-job[0].endpoint=xxg-bscs-tsg-job.com/xxl-job-admin
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
file.component[0].url=192.168.44.83 xxg-bscs-tsg-arango.com xxg-bscs-tsg-druid.com xxg-bscs-tsg-hbase001.com xxg-bscs-tsg-hbase002.com xxg-bscs-tsg-flink001.com xxg-bscs-tsg-flink002.com xxg-bscs-tsg-hadoop001.com
|
||||||
|
file.component[1].url=192.168.44.83 xxg-bscs-tsg-job.com xxg-bscs-tsg-kafka.com xxg-bscs-tsg-spark.com xxg-bscs-tsg-sparkhistory.com xxg-bscs-tsg-hadoop002.com xxg-bscs-tsg-nacos.com
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
317
galaxy-navigation/src/main/resources/index.html
Normal file
317
galaxy-navigation/src/main/resources/index.html
Normal file
@@ -0,0 +1,317 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<!-- import CSS -->
|
||||||
|
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.bootcss.com/element-ui/2.13.0/theme-chalk/index.css">
|
||||||
|
<style>
|
||||||
|
.el-row {
|
||||||
|
margin-bottom: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-row:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
#copyArea {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
left: 40px;
|
||||||
|
top: 20px;
|
||||||
|
}
|
||||||
|
#copyText {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
#copyBtn {
|
||||||
|
/*display: inline-block;*/
|
||||||
|
position: absolute;
|
||||||
|
bottom: 5px;
|
||||||
|
right: 1px;
|
||||||
|
}
|
||||||
|
/*html { overflow-x:hidden; }*/
|
||||||
|
.body {
|
||||||
|
overflow-x:hidden;
|
||||||
|
overflow-y:hidden;}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app">
|
||||||
|
<template>
|
||||||
|
<div class="container-fluid" style="background-color: #222;border-color: #080808;height: 110px">
|
||||||
|
<img style="max-width:380px; margin-top: 15px; margin-left: 10px; vertical-align: middle"
|
||||||
|
src="/img.png"
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<div class="box">
|
||||||
|
<div style="padding: 0 20px">
|
||||||
|
<el-table
|
||||||
|
ref="singleTable"
|
||||||
|
:data="tableData1"
|
||||||
|
highlight-current-row
|
||||||
|
@current-change="handleCurrentChange"
|
||||||
|
style="width: 220px">
|
||||||
|
<!-- align="center"-->
|
||||||
|
<el-table-column
|
||||||
|
property="name"
|
||||||
|
label="Access component name"
|
||||||
|
width="220px"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="padding: 0 20px">
|
||||||
|
<el-table
|
||||||
|
ref="singleTable"
|
||||||
|
:data="datat"
|
||||||
|
highlight-current-row
|
||||||
|
@row-click="handleCurrentChange1"
|
||||||
|
style="width: 500px">
|
||||||
|
<el-table-column
|
||||||
|
property="endpoint"
|
||||||
|
label="Access address"
|
||||||
|
width="500px">
|
||||||
|
</el-table-column>
|
||||||
|
<template slot="empty" style="height: 48px">
|
||||||
|
<!-- <el-empty>No data</el-empty>-->
|
||||||
|
No data
|
||||||
|
</template>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<div style="width:54%" v-show="conShow">
|
||||||
|
<h4 style="padding: 0 30px;margin: 5px">You need to configure the hosts file to add mapping information.</h4>
|
||||||
|
<el-row :gutter="15">
|
||||||
|
<el-col :offset="6" >
|
||||||
|
<div id="copyArea" >
|
||||||
|
<el-input style="font-size: 18px;"
|
||||||
|
id="copyText"
|
||||||
|
type="textarea"
|
||||||
|
:rows="15"
|
||||||
|
placeholder="请输入要复制的内容"
|
||||||
|
v-model="hostsaddress"
|
||||||
|
>
|
||||||
|
</el-input>
|
||||||
|
<el-button round size="small" id="copyBtn" @click="clickCopyBtn(hostsaddress, $event)"
|
||||||
|
data-clipboard-target="#copyText">Copy
|
||||||
|
</el-button>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<!-- v-for="hostsaddress in host"
|
||||||
|
|
||||||
|
-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
<!-- import Vue before Element -->
|
||||||
|
<script src="http://unpkg.com/vue@2/dist/vue.js"></script>
|
||||||
|
<!-- import JavaScript -->
|
||||||
|
<script src="http://unpkg.com/element-ui/lib/index.js"></script>
|
||||||
|
<script src="http://cdn.staticfile.org/axios/0.18.0/axios.min.js"></script>
|
||||||
|
<!-- import Vue before Element -->
|
||||||
|
<script src="https://cdn.bootcss.com/vue/2.6.11/vue.js"></script>
|
||||||
|
<!-- import JavaScript -->
|
||||||
|
<script src="https://cdn.bootcss.com/element-ui/2.13.0/index.js"></script>
|
||||||
|
<script src="https://cdn.bootcss.com/clipboard.js/2.0.6/clipboard.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
new Vue({
|
||||||
|
el: '#app',
|
||||||
|
data: function() {
|
||||||
|
return { visible: false }
|
||||||
|
},
|
||||||
|
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
tableData1: null,
|
||||||
|
currentRow: null,
|
||||||
|
options: null,
|
||||||
|
arangodb: null,
|
||||||
|
druid: null,
|
||||||
|
flink: null,
|
||||||
|
hadoop: null,
|
||||||
|
hbase: null,
|
||||||
|
kafka: null,
|
||||||
|
nacos: null,
|
||||||
|
spark: null,
|
||||||
|
xxl_job: null,
|
||||||
|
hostsaddress: null,
|
||||||
|
datat: null,
|
||||||
|
address: null,
|
||||||
|
ip:null,
|
||||||
|
host: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
clickCopyBtn: function (text, event) {
|
||||||
|
debugger;
|
||||||
|
const btnId = '#' + event.currentTarget.id;
|
||||||
|
const clipboard = new ClipboardJS(btnId, {
|
||||||
|
text: () => text
|
||||||
|
});
|
||||||
|
// const clipboard = new ClipboardJS(event.target);
|
||||||
|
|
||||||
|
clipboard.on("success", e => {
|
||||||
|
|
||||||
|
this.$message({
|
||||||
|
type: "success",
|
||||||
|
message: "复制成功",
|
||||||
|
duration: 300,
|
||||||
|
showClose: true,
|
||||||
|
}); //这里你如果引入了elementui的提示就可以用,没有就注释即可
|
||||||
|
|
||||||
|
// 释放内存
|
||||||
|
|
||||||
|
clipboard.destroy();
|
||||||
|
|
||||||
|
});
|
||||||
|
clipboard.on("error", e => {
|
||||||
|
|
||||||
|
// 不支持复制
|
||||||
|
|
||||||
|
this.$message({
|
||||||
|
type: "error",
|
||||||
|
message: "复制失败",
|
||||||
|
duration: 300,
|
||||||
|
showClose: true,
|
||||||
|
});
|
||||||
|
clipboard.destroy();
|
||||||
|
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
setCurrent(row) {
|
||||||
|
this.$refs.singleTable.setCurrentRow(row);
|
||||||
|
},
|
||||||
|
handleCurrentChange(val) {
|
||||||
|
this.conShow = false;
|
||||||
|
debugger;
|
||||||
|
|
||||||
|
var test=val.name;
|
||||||
|
if ("ArangoDB"=== test){
|
||||||
|
this.datat=this.arangodb
|
||||||
|
}
|
||||||
|
if ("Apache Druid"=== test){
|
||||||
|
this.datat=this.druid
|
||||||
|
}
|
||||||
|
if ("Apache Flink"=== test){
|
||||||
|
this.datat=this.flink
|
||||||
|
}
|
||||||
|
if ("Apache Hadoop"=== test){
|
||||||
|
this.datat=this.hadoop
|
||||||
|
}
|
||||||
|
if ("Apache HBase"=== test){
|
||||||
|
this.datat=this.hbase
|
||||||
|
}
|
||||||
|
if ("Kafka-manager"=== test){
|
||||||
|
this.datat=this.kafka
|
||||||
|
}
|
||||||
|
if ("Nacos"=== test){
|
||||||
|
this.datat=this.nacos
|
||||||
|
}
|
||||||
|
if ("Apache Spark"=== test){
|
||||||
|
this.datat=this.spark
|
||||||
|
}
|
||||||
|
if ("Galaxy-job-service"=== test){
|
||||||
|
this.datat=this.xxl_job
|
||||||
|
}
|
||||||
|
this.currentRow = val;
|
||||||
|
},
|
||||||
|
handleCurrentChange1(val){
|
||||||
|
|
||||||
|
var test2=val.endpoint;
|
||||||
|
window.open("http://"+test2);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.conShow = true;
|
||||||
|
var urlName= window.document.location.href;
|
||||||
|
axios.get(urlName+"component").then(response => {
|
||||||
|
this.hbase = response.data.hbase;
|
||||||
|
this.arangodb = response.data.arangodb;
|
||||||
|
this.druid = response.data.druid;
|
||||||
|
this.hadoop = response.data.hadoop;
|
||||||
|
this.kafka = response.data.kafka;
|
||||||
|
this.nacos = response.data.nacos;
|
||||||
|
this.spark = response.data.spark;
|
||||||
|
this.xxl_job = response.data.xxl_job;
|
||||||
|
this.flink = response.data.flink;
|
||||||
|
this.tableData1 = response.data.lists;
|
||||||
|
let hostsaddress= response.data.hosts;
|
||||||
|
debugger;
|
||||||
|
var arr=[];
|
||||||
|
hostsaddress.forEach(function (hostsa) {
|
||||||
|
//对象接受数据
|
||||||
|
debugger;
|
||||||
|
console.log(hostsa.url);
|
||||||
|
arr.push(hostsa.url)
|
||||||
|
console.log(arr);
|
||||||
|
})
|
||||||
|
debugger;
|
||||||
|
var b=arr.toString();
|
||||||
|
b=b.replace(/,/g,"\n")
|
||||||
|
console.log(b)
|
||||||
|
this.hostsaddress=b;
|
||||||
|
}).catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.headBox{
|
||||||
|
margin-top: 30px;
|
||||||
|
font-size: 40px;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
.box {
|
||||||
|
margin: 20px;
|
||||||
|
display: flex;
|
||||||
|
/* justify-content: space-around;*/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.container-fluid img {
|
||||||
|
/*设置图片垂直居中*/
|
||||||
|
vertical-align:middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
.prism-atom-one-dark pre code {
|
||||||
|
background-color: #282c34;
|
||||||
|
color: #abb2bf;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
padding: 18px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-card {
|
||||||
|
width: 480px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</html>
|
||||||
BIN
galaxy-navigation/src/main/resources/static/img/img.png
Normal file
BIN
galaxy-navigation/src/main/resources/static/img/img.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.8 KiB |
Reference in New Issue
Block a user