Browse Source

Initial application generation by hypaas

master
hypaas 1 year ago
commit
2f459402d3
  1. 8
      Dockerfile
  2. 53
      build.gradle
  3. 10
      gradle.properties
  4. 45
      gradle/style.gradle
  5. BIN
      gradle/wrapper/gradle-wrapper.jar
  6. 6
      gradle/wrapper/gradle-wrapper.properties
  7. 188
      gradlew
  8. 100
      gradlew.bat
  9. 7
      modules/export/build.gradle
  10. 8
      modules/export/src/main/resources/domains/CommonBoolean.xml
  11. 13
      modules/export/src/main/resources/domains/ExportStrategy.xml
  12. 10
      modules/export/src/main/resources/domains/ExportTemplate.xml
  13. 1
      modules/export/src/main/resources/i18n/messages.csv
  14. 1
      modules/export/src/main/resources/i18n/messages_en.csv
  15. 1
      modules/export/src/main/resources/i18n/messages_zh.csv
  16. 11
      modules/export/src/main/resources/views/ExportTemplate-form.xml
  17. 9
      modules/export/src/main/resources/views/ExportTemplate-grid.xml
  18. 5
      settings.gradle
  19. 3
      src/main/resources/AccessInterface.yml
  20. 39
      src/main/resources/META-INF/persistence.xml
  21. 321
      src/main/resources/application.properties
  22. 3
      src/main/resources/i18n/messages.csv
  23. 3
      src/main/resources/i18n/messages_en.csv
  24. 3
      src/main/resources/i18n/messages_fr.csv
  25. 3
      src/main/resources/i18n/messages_zh.csv
  26. 25
      src/main/resources/views/welcome.xml

8
Dockerfile

@ -0,0 +1,8 @@
FROM 117.78.10.170:3001/library/tomcat-session:8-alpine
ARG WAR_FILE
ARG APP_NAME
COPY ${WAR_FILE} /usr/local/tomcat/webapps/${APP_NAME}.war
#端口
EXPOSE 8080
#设置启动命令
ENTRYPOINT ["/usr/local/tomcat/bin/catalina.sh","run"]

53
build.gradle

@ -0,0 +1,53 @@
buildscript {
ext.repos = {
//mavenLocal()
//mavenCentral()
// maven { url 'https://plugins.gradle.org/m2/' }
//jcenter()
maven { url 'http://192.168.0.200:3081/repository/GradleRep/' }
}
ext.platformVersion = '1.0.+'
ext.appVersion = '1.0.0'
repositories repos
dependencies {
classpath "com.hypaas:hypaas-gradle:${platformVersion}"
}
}
allprojects {
repositories repos
}
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'com.hypaas.app'
apply from: './gradle/style.gradle'
hypaas {
title = "HY-IOT-PAAS"
description = "Hypaas IOT Platform"
}
allprojects {
apply plugin: 'idea';
apply plugin: 'eclipse'
group = "com.hypaas"
version = "${appVersion}"
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
configurations {
runtime.exclude group: 'javax.ws.rs', module: 'jsr311-api'
}
dependencies {
implementation project(":modules:export")
}
wrapper {
gradleVersion = "6.3"
}

10
gradle.properties

@ -0,0 +1,10 @@
#<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ػ<EFBFBD><EFBFBD>߳<EFBFBD>
org.gradle.daemon=true
#<EFBFBD><EFBFBD><EFBFBD><EFBFBD>jvm<EFBFBD>ڴ<EFBFBD><EFBFBD>С
#org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
org.gradle.parallel=true
#<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>µķ<EFBFBD><EFBFBD><EFBFBD>ģʽ
org.gradle.configureondemand=true
#<EFBFBD><EFBFBD><EFBFBD><EFBFBD> Gradle <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
org.gradle.caching = true

45
gradle/style.gradle

@ -0,0 +1,45 @@
buildscript {
repositories repos
dependencies {
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.24.3"
}
}
apply plugin: com.diffplug.gradle.spotless.SpotlessPlugin
spotless {
java {
target fileTree(projectDir) {
include '**/*.java'
}
googleJavaFormat()
}
format 'misc', {
target fileTree(projectDir) {
include '**/.gitignore'
include '**/*.gradle'
include '**/*.adoc'
include '**/*.sh'
include '**/*.html'
include '**/*.js'
include '**/*.css'
include '**/*.xml'
include '**/*.xsd'
exclude '**/webapp/lib/*'
exclude '**/webapp/dist/*'
exclude '**/webapp/node_modules/*'
}
indentWithSpaces(2)
trimTrailingWhitespace()
endWithNewline()
}
format 'markdown', {
target '**/*.md'
indentWithSpaces(2)
endWithNewline()
}
}
task formatCode(dependsOn: ['licenseFormat', 'spotlessApply'])
build.dependsOn 'spotlessApply'

BIN
gradle/wrapper/gradle-wrapper.jar vendored

Binary file not shown.

6
gradle/wrapper/gradle-wrapper.properties vendored

@ -0,0 +1,6 @@
#Thu Jun 11 18:08:47 CST 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

188
gradlew vendored

@ -0,0 +1,188 @@
#!/usr/bin/env sh
#
# Copyright 2015 the original author or authors.
#
# Licensed 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.
#
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
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
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
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
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"

100
gradlew.bat vendored

@ -0,0 +1,100 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem http://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

7
modules/export/build.gradle

@ -0,0 +1,7 @@
apply plugin: 'com.hypaas.app-module'
hypaas {
title = "export"
}
dependencies {
}

8
modules/export/src/main/resources/domains/CommonBoolean.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://hypaas.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/domain-models http://hypaas.com/xml/ns/domain-models/domain-models_5.2.xsd">
<module name="com.export.enums" package="com.export.CommonBoolean"/>
<enum name="CommonBoolean">
<item name="IS" title="是" value="IS"/>
<item name="NOT" title="否" value="NOT"/>
</enum>
</domain-models>

13
modules/export/src/main/resources/domains/ExportStrategy.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://hypaas.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/domain-models http://hypaas.com/xml/ns/domain-models/domain-models_5.2.xsd">
<module name="export-entity" package="com.hypass.export"/>
<entity hashAll="false" logUpdates="true" persistable="true" name="ExportStrategy" cacheable="false" lang="java" strategy="SINGLE">
<string actOverwrite="false" title="导出字段名" copy="true" massUpdate="false" name="fieldName" isJudg="false"/>
<string actOverwrite="false" title="导出字段类型" copy="true" massUpdate="false" name="fieldType" isJudg="false"/>
<string actOverwrite="false" title="导出字段属性" copy="true" massUpdate="false" name="fieldAttr" isJudg="false"/>
<enum title="是否支持导出" massUpdate="false" ref="com.export.CommonBoolean.CommonBoolean" name="isExport" copy="true"/>
<string actOverwrite="false" title="导出内容" copy="true" massUpdate="false" name="outContent" isJudg="false"/>
<string actOverwrite="false" title="导出字段名称" copy="true" massUpdate="false" name="exportFiledName" isJudg="false"/>
<string actOverwrite="false" title="导出后的内容" copy="true" massUpdate="false" name="exportContent" isJudg="false"/>
</entity>
</domain-models>

10
modules/export/src/main/resources/domains/ExportTemplate.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://hypaas.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/domain-models http://hypaas.com/xml/ns/domain-models/domain-models_5.2.xsd">
<module name="export-entity" package="com.hypass.export"/>
<entity hashAll="false" logUpdates="true" persistable="true" name="ExportTemplate" cacheable="false" lang="java" strategy="SINGLE">
<string actOverwrite="false" title="模板编码" copy="true" massUpdate="false" name="code" isJudg="false"/>
<string actOverwrite="false" title="模板名称" copy="true" massUpdate="false" name="name" isJudg="false"/>
<many-to-one title="实体名称" massUpdate="false" ref="com.hypaas.meta.db.MetaJsonModel" name="entityName" copy="true"/>
<enum title="是否默认模板" massUpdate="false" ref="com.export.CommonBoolean.CommonBoolean" name="isDefaultTemplate" copy="true"/>
</entity>
</domain-models>

1
modules/export/src/main/resources/i18n/messages.csv

@ -0,0 +1 @@
"key","message","comment","context"

1
modules/export/src/main/resources/i18n/messages_en.csv

@ -0,0 +1 @@
"key","message","comment","context"

1
modules/export/src/main/resources/i18n/messages_zh.csv

@ -0,0 +1 @@
"key","message","comment","context"

11
modules/export/src/main/resources/views/ExportTemplate-form.xml

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd">
<form title="导出模版表单" model="com.hypass.export.ExportTemplate" name="ExportTemplate-form" width="large">
<panel itemSpan="6" showFrame="true" name="panel_9">
<field name="code" title="模板编码"/>
<field name="name" title="模板名称"/>
<field canSuggest="true" name="entityName" title="实体名称"/>
<field canSuggest="true" name="isDefaultTemplate" title="是否默认模板"/>
</panel>
</form>
</object-views>

9
modules/export/src/main/resources/views/ExportTemplate-grid.xml

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd">
<grid title="导出模版列表" model="com.hypass.export.ExportTemplate" edit-icon="true" freeSearch="all" name="ExportTemplate-grid" width="large">
<field name="code" title="模板编码"/>
<field name="name" title="模板名称"/>
<field name="entityName" title="实体名称"/>
<field search-field="true" canSuggest="true" name="isDefaultTemplate" title="是否默认模板"/>
</grid>
</object-views>

5
settings.gradle

@ -0,0 +1,5 @@
rootProject.name = 'hy-iot-paas'
include "modules:export"

3
src/main/resources/AccessInterface.yml

@ -0,0 +1,3 @@
interfaceList:
- "/ws/register/register/face"
- "/ws/register/login/face"

39
src/main/resources/META-INF/persistence.xml

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<persistence version="2.1"
xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
<persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
<properties>
<!--
<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
<property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/hypaas-app" />
<property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver" />
<property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:mem:test" />
-->
<!--
<property name="javax.persistence.jdbc.driver" value="com.mysql.cj.jdbc.Driver" />
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/hypaas-erp?useUnicode=true&amp;characterEncoding=UTF-8&amp;serverTimezone=UTC&amp;useSSL=false" />
<property name="javax.persistence.jdbc.user" value="hypaas" />
<property name="javax.persistence.jdbc.password" value="hypaas" />
-->
<!-- value="create" to build a new database on each run;
value="update" to modify an existing database;
value="create-drop" means the same as "create" but also drops tables when Hibernate closes;
value="validate" makes no changes to the database -->
<!--
<property name="hibernate.hbm2ddl.auto" value="update" />
-->
<!-- connection pooling -->
<property name="hibernate.connection.provider_class"
value="org.hibernate.hikaricp.internal.HikariCPConnectionProvider" />
<property name="hibernate.hikari.minimumIdle" value="10" />
<property name="hibernate.hikari.maximumPoolSize" value="200" />
<property name="hibernate.hikari.idleTimeout" value="30000" />
</properties>
</persistence-unit>
</persistence>

321
src/main/resources/application.properties

@ -0,0 +1,321 @@
# Application Information
# ~~~~~
application.name=\u6587\u4ef6\u5bfc\u51fa
application.id=
application.sid=1611179340802818048
application.callback.url=http://117.78.10.170:3000/api/v1/message/preview/
application.description=
application.version=1.0.0
# Author/Company
# ~~~~~
application.author=Sunwiseinfo
application.copyright=Copyright (c) {year} Sunwise. All Rights Reserved.
# Header Logo
# ~~~~~
# width 237.07mm height 35.28mm
application.logo =img/logo.png
# width 334.43mm height 163.69mm
application.login.logo =img/login.png
# Home Website
# ~~~~~
# Link to be used with header logo
application.home=http://www.sunwiseinfo.com
# Link to the online help
# ~~~~~
application.help=http://docs.sunwiseinfo.com
# Application deployment mode
# ~~~~~
# Set to 'dev' for development mode else 'prod'
application.mode=dev
# CSS Theme
# ~~~~~
# Set default CSS theme, for example `blue`
application.theme=hypaas-sunwise
# Default Locale (language)
# ~~~~~
# Set default application locale (en, fr, fr_FR, en_US)
application.locale=zh_CN
#context.app = com.hypaas.apps.base.service.app.AppService
#context.appLogo = com.hypaas.apps.base.service.user.UserService:getUserActiveCompanyLogoLink
# Encryption
# ~~~~~
# Set encryption password
#encryption.password = MySuperSecretKey
# Set encryption algorithm (CBC or GCM)
#encryption.algorithm = CBC
# Database settings
# ~~~~~
# See hibernate documentation for connection parameters
#local logout config
auth.logout.local=true
#multi_tenancy config
#application.multi_tenancy=true
# PostgreSQL
#db.default.driver = org.postgresql.Driver
#db.default.ddl = update
#db.default.url = jdbc:postgresql://localhost:5432/hypaas-erp
#db.default.user = hypaas
#db.default.password = hypaas
# MySQL
#db.default.driver = com.mysql.jdbc.Driver
#db.default.visible=false
db.default.driver=
db.default.ddl=update
db.default.url=jdbc:://?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false&nullCatalogMeansCurrent=true
db.default.user=
db.default.password=
db.company1.name=Company 1
db.company1.driver=com.mysql.cj.jdbc.Driver
db.company1.url=jdbc:mysql://localhost:3306/hy_iot_paas2?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
db.company1.user=hypaas
db.company1.password=hypaas
db.company2.name=Company 2
db.company2.driver=com.mysql.cj.jdbc.Driver
db.company2.url=jdbc:mysql://localhost:3306/hy_iot_paas3?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
db.company2.user=hypaas
db.company2.password=hypaas
# Oracle
#db.default.driver = oracle.jdbc.OracleDriver
#db.default.ddl = update
#db.default.url = jdbc:oracle:thin:@localhost:1521:oracle
#db.default.user = hypaas
#db.default.password =
#Datasource
jdbc.filters=stat,wall
jdbc.maxActive=20
jdbc.initialSize=5
jdbc.maxWait=60000
jdbc.minIdle=10
jdbc.timeBetweenEvictionRunsMillis=60000
jdbc.minEvictableIdleTimeMillis=300000
jdbc.validationQuery=SELECT 1
jdbc.testWhileIdle=true
jdbc.testOnBorrow=false
jdbc.testOnReturn=false
jdbc.maxOpenPreparedStatements=20
jdbc.removeAbandoned=true
jdbc.removeAbandonedTimeout=1800
jdbc.logAbandoned=true
#0:NONE,1:read_uncommitted,2:read_committed,4:REPEATABLE_READ,8:SERIALIZABLE
jdbc.transactionIsolation=2
jdbc.cache_mode=ENABLE_SELECTIVE
#jdbc.cache_mode = ALL
jdbc.fetch_size=20
jdbc.batch_size=20
mybatis.environment.id=dev
# Date Format
# ~~~~~
date.format=dd/MM/yyyy
# Timezone
# ~~~~~
date.timezone=Asia/Shanghai
# Session timeout (in minutes)
# ~~~~~
session.timeout=60
# Storage path for upload files (attachments)
# ~~~~~
# use {user.home} key to save files under user home directory, or
# use absolute path where server user have write permission.
file.upload.dir={user.home}/.hypaas/attachments
# Upload filename pattern, default is auto where file is save with same name
# in the given upload dir, if file is already there, a count number is
# appended to file name.
#
# This can be overridden by providing custom name pattern, for example:
#
# file.upload.filename.pattern = {year}-{month}/{day}/{name}
# file.upload.filename.pattern = {AA}/{name}
#
# Following placeholders can be used:
#
# {year} - current year
# {month} - current month
# {day} - current day
# {name} - file name
# {A} - first letter from file name
# {AA} - first 2 letter from file name
# {AAA} - first 3 letter from file name
#
#file.upload.filename.pattern = {year}-{month}/{day}/{name}
# Maximum upload size (in MB)
# ~~~~~
file.upload.size=5
#视频文件代理全路径
nginx.proxy.path =
#自动任务调度目标接口路径
scheduling.url =
#序列化字段,逗号分开
serialize.keys =
# Whitelist pattern can be used to allow file upload with matching names.
#
# For example: \\.(xml|html|jpg|png|pdf|xsl)$
#
# Regular expression
# ~~~~~
#file.upload.whitelist.pattern =
# Blacklist pattern can be used to block file upload with matching names.
#
# Regular expression
# ~~~~~
#file.upload.blacklist.pattern =
# Whitelist content type can be used to allow file upload with matching content.
#
# List of mime-types (plain/text,image/*,video/webm)
# ~~~~~
#file.upload.whitelist.types =
# Blacklist content type can be used to block file upload with matching content.
#
# List of mime-types (plain/text,image/*,video/webm)
# ~~~~~
#file.upload.blacklist.types =
# The external report design directory
# ~~~~~
# this directory is searched for the rptdesign files
# (fallbacks to designs provided by modules)
reports.design.dir={user.home}/.hypaas/reports
# Storage path for report outputs
reports.output.dir={user.home}/.hypaas/reports-gen
# Data export (csv) encoding
# ~~~~
# Use Windows-1252, ISO-8859-1 or ISO-8859-15 if targeting ms excel
# (excel does not recognize utf8 encoded csv)
data.export.encoding=UTF-8
# Storage path for export action
# ~~~~~
data.export.dir={user.home}/.hypaas/data-export
# Specify whether to import demo data
# ~~~~~
data.import.hypaas-data=false
# Storage path for templates
# ~~~~~
template.search.dir={user.home}/.hypaas/templates
# LDAP Configuration
# ~~~~~
#ldap.server.url = ldap://localhost:10389
# can be "simple" or "CRAM-MD5"
ldap.auth.type=simple
ldap.system.user=uid=admin,ou=system
ldap.system.password=secret
# group search base
ldap.group.base=ou=groups,dc=example,dc=com
# if set, create groups on ldap server under ldap.group.base
#ldap.group.object.class = groupOfUniqueNames
# a template to search groups by user login id
ldap.group.filter=(uniqueMember=uid={0})
# user search base
ldap.user.base=ou=users,dc=example,dc=com
# a template to search user by user login id
ldap.user.filter=(uid={0})
# CAS configuration
# ~~~~~
#auth.cas.server.url.prefix = http://localhost:8081/cas
# use public accessible url
#auth.cas.service = http://localhost:8080/hy-iot-paas/callback
# login url, if not given prepared from server & service url
#auth.cas.login.url = http://localhost:8081/cas/login?service=http://localhost:8080/hy-iot-paas/callback?client_name=CasClient
# logout url, if not given prepared from server & service url
#auth.cas.logout.url = http://localhost:8081/cas/logout?service=http://localhost:8080/hy-iot-paas
# CAS validation protocol (CAS, SAML)
#auth.cas.protocol = CAS10
# the attribute to map to user display name
#auth.cas.attrs.user.name = name
# the attribute to map to user email
#auth.cas.attrs.user.email = mail
# Quartz Scheduler
# ~~~~~
# quartz job scheduler
# Specify whether to enable quartz scheduler
quartz.enable=false
# total number of threads in quartz thread pool
# the number of jobs that can run simultaneously
quartz.threadCount=3
# SMPT configuration
# ~~~~~
# SMTP server configuration
#mail.smtp.host = smtp.gmail.com
#mail.smtp.port = 587
#mail.smtp.channel = starttls
#mail.smtp.user = user@gmail.com
#mail.smtp.pass = secret
# timeout settings
#mail.smtp.timeout = 60000
#mail.smtp.connectionTimeout = 60000
# IMAP configuration
# ~~~~~
# IMAP server configuration
# (quartz scheduler should be enabled for fetching stream replies)
#mail.imap.host = imap.gmail.com
#mail.imap.port = 993
#mail.imap.channel = ssl
#mail.imap.user = user@gmail.com
#mail.imap.pass = secret
# timeout settings
#mail.imap.timeout = 60000
#mail.imap.connectionTimeout = 60000
# CORS configuration
# ~~~~~
# CORS settings to allow cross origin requests
# regular expression to test allowed origin or * to allow all (not recommended)
#cors.allow.origin = *
#cors.allow.credentials = true
#cors.allow.methods = GET,PUT,POST,DELETE,HEAD,OPTIONS
#cors.allow.headers = Origin,Accept,X-Requested-With,Content-Type,Access-Control-Request-Method,Access-Control-Request-Headers
# View configuration
# ~~~~~
# Set to true to enable single view mode
view.single.tab=false
# Set menu style (left, top, both)
view.menubar.location=both
# Advance Filter Sharing
# ~~~~~
# Set to false to hide advance search filter share option, or set to list of
# role names to enable share for those roles only.
#view.adv-search.share = share-filter,can-share-filter
# Logging
# ~~~~~
# Custom logback configuration can be provided with `logging.config` property pointing
# to a custom `logback.xml`. In this case, all the logging configuration provided here
# will be ignored.
#
# Following settings can be used to configure logging system automatically.
#
#logging.path = {user.home}/.hypaas/logs
#logging.pattern.file = %d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } --- [%t] %-40.40logger{39} : %m%n
#logging.pattern.console = %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n
# Global logging
logging.level.root=ERROR
# Hypaas logging
# Log everything.
logging.level.com.hypaas=INFO
# Hibernate logging
# Log everything. Good for troubleshooting
#logging.level.org.hibernate = INFO
# Log all SQL DML statements as they are executed
#logging.level.org.hibernate.SQL = DEBUG
#logging.level.org.hibernate.engine.jdbc = DEBUG
# Log all SQL DDL statements as they are executed
#logging.level.org.hibernate.tool.hbm2ddl = INFO
# Log all JDBC parameters
#logging.level.org.hibernate.type = ALL
# Log transactions
#logging.level.org.hibernate.transaction = DEBUG
# Log L2-Cache
#logging.level.org.hibernate.cache = DEBUG
# Log JDBC resource acquisition
#logging.level.org.hibernate.jdbc = TRACE
#logging.level.org.hibernate.service.jdbc = TRACE
# Log connection pooling
#logging.level.com.zaxxer.hikari = INFO

3
src/main/resources/i18n/messages.csv

@ -0,0 +1,3 @@
"key","message","comment","context"
"Dashboards",,,
"Welcome!",,,

3
src/main/resources/i18n/messages_en.csv

@ -0,0 +1,3 @@
"key","message","comment","context"
"Dashboards",,,
"Welcome!",,,

3
src/main/resources/i18n/messages_fr.csv

@ -0,0 +1,3 @@
"key","message","comment","context"
"Dashboards","Tableau de bord",,
"Welcome!","Bienvenue",,

3
src/main/resources/i18n/messages_zh.csv

@ -0,0 +1,3 @@
"key","message","comment","context"
"Dashboards","仪表盘",,
"Welcome!","我的仪表盘",,

25
src/main/resources/views/welcome.xml

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<object-views xmlns="http://hypaas.com/xml/ns/object-views"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd">
<dashboard name="welcome.dashboard11" title="Welcome!">
<dashlet action="custom:report-tasks-today" colSpan="4"/>
<dashlet action="custom:report-sales-today" colSpan="4"/>
<dashlet action="custom:report-sales-month" colSpan="4"/>
<dashlet action="chart:chart.sales.per.month"/>
<dashlet action="chart:chart.sales.per.month.pie"/>
<dashlet colSpan="12" action="sale.orders"/>
</dashboard>
<action-view name="welcome11" title="Welcome!">
<view type="dashboard" name="welcome.dashboard11"/>
</action-view>
<!-- <menuitem name="menu-dashboards" order="-101"
title="Dashboards" icon="fa-dashboard" icon-background="blue"/>
<menuitem name="menu-welcome" parent="menu-dashboards"
title="Welcome!" action="welcome"/>-->
</object-views>
Loading…
Cancel
Save