feat: 添加部署脚本、Maven Wrapper 和 mom-frontend-vue2 项目
- deploy/: 后端、ERP前端、MOM前端部署脚本 - mom-backend: Maven Wrapper 支持无全局 Maven 构建 - mom-frontend-vue2: MES 管理前端 Vue2 项目 Made-with: Cursor
This commit is contained in:
94
deploy/deploy-backend.sh
Executable file
94
deploy/deploy-backend.sh
Executable file
@@ -0,0 +1,94 @@
|
||||
#!/bin/bash
|
||||
# =============================================================================
|
||||
# 后端 API 服务部署脚本
|
||||
# 用法:在项目根目录 mom-system-2026/ 下执行 bash deploy/deploy-backend.sh
|
||||
# =============================================================================
|
||||
set -e
|
||||
|
||||
# ── 配置 ─────────────────────────────────────────────────────────────────────
|
||||
SERVER_USER="root"
|
||||
SERVER_HOST="118.31.75.148"
|
||||
SERVER_PORT=22
|
||||
REMOTE_DIR="/www/wwwroot/javaapi"
|
||||
JAR_NAME="ktg-admin.jar"
|
||||
BACKUP_DIR="${REMOTE_DIR}/backup"
|
||||
KEEP_BACKUPS=5
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||
BACKEND_DIR="${PROJECT_ROOT}/mom-backend"
|
||||
LOCAL_JAR="${BACKEND_DIR}/ktg-admin/target/${JAR_NAME}"
|
||||
|
||||
SSH="ssh -p ${SERVER_PORT} ${SERVER_USER}@${SERVER_HOST}"
|
||||
SCP="scp -P ${SERVER_PORT}"
|
||||
|
||||
# ── 工具函数 ──────────────────────────────────────────────────────────────────
|
||||
log() { echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"; }
|
||||
info() { log "INFO $*"; }
|
||||
ok() { log "OK $*"; }
|
||||
err() { log "ERROR $*" >&2; exit 1; }
|
||||
|
||||
# ── 步骤 1:本地 Maven 构建 ────────────────────────────────────────────────────
|
||||
info "Step 1/5 — Maven build (skip tests)"
|
||||
cd "${BACKEND_DIR}"
|
||||
mvn clean package -DskipTests -q
|
||||
[ -f "${LOCAL_JAR}" ] || err "构建产物不存在: ${LOCAL_JAR}"
|
||||
ok "Build OK → ${LOCAL_JAR}"
|
||||
|
||||
# ── 步骤 2:远程备份旧 jar ──────────────────────────────────────────────────────
|
||||
info "Step 2/5 — Backup old jar on remote server"
|
||||
TIMESTAMP=$(date '+%Y%m%d_%H%M%S')
|
||||
$SSH bash -s << EOF
|
||||
set -e
|
||||
mkdir -p "${BACKUP_DIR}"
|
||||
if [ -f "${REMOTE_DIR}/${JAR_NAME}" ]; then
|
||||
cp "${REMOTE_DIR}/${JAR_NAME}" "${BACKUP_DIR}/${JAR_NAME%.jar}_${TIMESTAMP}.jar"
|
||||
echo " Backed up → ${BACKUP_DIR}/${JAR_NAME%.jar}_${TIMESTAMP}.jar"
|
||||
else
|
||||
echo " No existing jar to backup (first deploy)"
|
||||
fi
|
||||
# 只保留最近 ${KEEP_BACKUPS} 个备份
|
||||
cd "${BACKUP_DIR}"
|
||||
ls -t | tail -n +$((${KEEP_BACKUPS} + 1)) | xargs -r rm -f
|
||||
echo " Backup dir now contains: \$(ls | wc -l) file(s)"
|
||||
EOF
|
||||
ok "Backup OK"
|
||||
|
||||
# ── 步骤 3:停止旧进程 ─────────────────────────────────────────────────────────
|
||||
info "Step 3/5 — Stop running ${JAR_NAME} process"
|
||||
$SSH bash -s << 'EOF'
|
||||
PID=$(pgrep -f "ktg-admin.jar" || true)
|
||||
if [ -n "$PID" ]; then
|
||||
kill "$PID"
|
||||
sleep 3
|
||||
echo " Stopped PID $PID"
|
||||
else
|
||||
echo " No running process found (safe)"
|
||||
fi
|
||||
EOF
|
||||
ok "Stop OK"
|
||||
|
||||
# ── 步骤 4:上传新 jar ─────────────────────────────────────────────────────────
|
||||
info "Step 4/5 — Upload new jar to remote"
|
||||
$SCP "${LOCAL_JAR}" "${SERVER_USER}@${SERVER_HOST}:${REMOTE_DIR}/${JAR_NAME}"
|
||||
ok "Upload OK"
|
||||
|
||||
# ── 步骤 5:启动新进程 ─────────────────────────────────────────────────────────
|
||||
info "Step 5/5 — Start new ${JAR_NAME}"
|
||||
$SSH bash -s << EOF
|
||||
set -e
|
||||
cd "${REMOTE_DIR}"
|
||||
nohup java -Xms128m -Xmx256m -jar ${JAR_NAME} > mes.log 2>&1 &
|
||||
sleep 2
|
||||
PID=\$(pgrep -f "${JAR_NAME}" || true)
|
||||
if [ -n "\$PID" ]; then
|
||||
echo " Started PID \$PID"
|
||||
else
|
||||
echo " WARNING: process may not have started, check mes.log"
|
||||
fi
|
||||
EOF
|
||||
ok "Start OK"
|
||||
|
||||
info "============================================"
|
||||
info "后端部署完成!访问日志:tail -f ${REMOTE_DIR}/mes.log"
|
||||
info "============================================"
|
||||
72
deploy/deploy-erp-frontend.sh
Executable file
72
deploy/deploy-erp-frontend.sh
Executable file
@@ -0,0 +1,72 @@
|
||||
#!/bin/bash
|
||||
# =============================================================================
|
||||
# erp-frontend-vue 前端部署脚本
|
||||
# 用法:在项目根目录 mom-system-2026/ 下执行 bash deploy/deploy-erp-frontend.sh
|
||||
# =============================================================================
|
||||
set -e
|
||||
|
||||
# ── 配置 ─────────────────────────────────────────────────────────────────────
|
||||
SERVER_USER="root"
|
||||
SERVER_HOST="118.31.75.148"
|
||||
SERVER_PORT=22
|
||||
REMOTE_DIR="/www/wwwroot/mymom.suzhouyuqi.com"
|
||||
BACKUP_DIR="${REMOTE_DIR}/backup"
|
||||
KEEP_BACKUPS=5
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||
FRONTEND_DIR="${PROJECT_ROOT}/erp-frontend-vue"
|
||||
DIST_DIR="${FRONTEND_DIR}/dist"
|
||||
|
||||
SSH="ssh -p ${SERVER_PORT} ${SERVER_USER}@${SERVER_HOST}"
|
||||
|
||||
export PATH="$HOME/.nvm/versions/node/v22.22.0/bin:$PATH"
|
||||
|
||||
# ── 工具函数 ──────────────────────────────────────────────────────────────────
|
||||
log() { echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"; }
|
||||
info() { log "INFO $*"; }
|
||||
ok() { log "OK $*"; }
|
||||
err() { log "ERROR $*" >&2; exit 1; }
|
||||
|
||||
# ── 步骤 1:本地构建 ───────────────────────────────────────────────────────────
|
||||
info "Step 1/3 — Build erp-frontend-vue (production)"
|
||||
cd "${FRONTEND_DIR}"
|
||||
npm run build
|
||||
[ -d "${DIST_DIR}" ] || err "构建产物目录不存在: ${DIST_DIR}"
|
||||
ok "Build OK → ${DIST_DIR}"
|
||||
|
||||
# ── 步骤 2:远程备份旧版本 ─────────────────────────────────────────────────────
|
||||
info "Step 2/3 — Backup current deployment on remote server"
|
||||
TIMESTAMP=$(date '+%Y%m%d_%H%M%S')
|
||||
$SSH bash -s << EOF
|
||||
set -e
|
||||
mkdir -p "${BACKUP_DIR}"
|
||||
# 将当前站点目录(排除 backup/ 自身)打包为 tar.gz
|
||||
cd "${REMOTE_DIR}"
|
||||
FILES=\$(ls | grep -v '^backup$' || true)
|
||||
if [ -n "\$FILES" ]; then
|
||||
tar -czf "${BACKUP_DIR}/dist_${TIMESTAMP}.tar.gz" \$FILES
|
||||
echo " Backed up → ${BACKUP_DIR}/dist_${TIMESTAMP}.tar.gz"
|
||||
else
|
||||
echo " No existing files to backup (first deploy)"
|
||||
fi
|
||||
# 只保留最近 ${KEEP_BACKUPS} 个备份
|
||||
cd "${BACKUP_DIR}"
|
||||
ls -t | tail -n +$((${KEEP_BACKUPS} + 1)) | xargs -r rm -f
|
||||
echo " Backup dir now contains: \$(ls | wc -l) file(s)"
|
||||
EOF
|
||||
ok "Backup OK"
|
||||
|
||||
# ── 步骤 3:上传新版本 ─────────────────────────────────────────────────────────
|
||||
info "Step 3/3 — Upload dist to remote (rsync)"
|
||||
rsync -avz --delete \
|
||||
--exclude='backup' \
|
||||
-e "ssh -p ${SERVER_PORT}" \
|
||||
"${DIST_DIR}/" \
|
||||
"${SERVER_USER}@${SERVER_HOST}:${REMOTE_DIR}/"
|
||||
ok "Upload OK"
|
||||
|
||||
info "============================================"
|
||||
info "erp-frontend-vue 部署完成!"
|
||||
info "访问地址:http://${SERVER_HOST} 或 https://mymom.suzhouyuqi.com"
|
||||
info "============================================"
|
||||
72
deploy/deploy-mom-frontend.sh
Executable file
72
deploy/deploy-mom-frontend.sh
Executable file
@@ -0,0 +1,72 @@
|
||||
#!/bin/bash
|
||||
# =============================================================================
|
||||
# mom-frontend-vue2 前端部署脚本
|
||||
# 用法:在项目根目录 mom-system-2026/ 下执行 bash deploy/deploy-mom-frontend.sh
|
||||
# =============================================================================
|
||||
set -e
|
||||
|
||||
# ── 配置 ─────────────────────────────────────────────────────────────────────
|
||||
SERVER_USER="root"
|
||||
SERVER_HOST="118.31.75.148"
|
||||
SERVER_PORT=22
|
||||
REMOTE_DIR="/www/wwwroot/mymom.suzhouyuqi.com"
|
||||
BACKUP_DIR="${REMOTE_DIR}/backup"
|
||||
KEEP_BACKUPS=5
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||
FRONTEND_DIR="${PROJECT_ROOT}/mom-frontend-vue2"
|
||||
DIST_DIR="${FRONTEND_DIR}/dist"
|
||||
|
||||
SSH="ssh -p ${SERVER_PORT} ${SERVER_USER}@${SERVER_HOST}"
|
||||
|
||||
# Node.js 17+ 与 Vue CLI 4 (webpack 4) 的 OpenSSL 兼容性修复
|
||||
export NODE_OPTIONS="--openssl-legacy-provider --max-old-space-size=4096"
|
||||
export PATH="$HOME/.nvm/versions/node/v22.22.0/bin:$PATH"
|
||||
|
||||
# ── 工具函数 ──────────────────────────────────────────────────────────────────
|
||||
log() { echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"; }
|
||||
info() { log "INFO $*"; }
|
||||
ok() { log "OK $*"; }
|
||||
err() { log "ERROR $*" >&2; exit 1; }
|
||||
|
||||
# ── 步骤 1:本地构建 ───────────────────────────────────────────────────────────
|
||||
info "Step 1/3 — Build mom-frontend-vue2 (production)"
|
||||
cd "${FRONTEND_DIR}"
|
||||
npm run build:prod
|
||||
[ -d "${DIST_DIR}" ] || err "构建产物目录不存在: ${DIST_DIR}"
|
||||
ok "Build OK → ${DIST_DIR}"
|
||||
|
||||
# ── 步骤 2:远程备份旧版本 ─────────────────────────────────────────────────────
|
||||
info "Step 2/3 — Backup current deployment on remote server"
|
||||
TIMESTAMP=$(date '+%Y%m%d_%H%M%S')
|
||||
$SSH bash -s << EOF
|
||||
set -e
|
||||
mkdir -p "${BACKUP_DIR}"
|
||||
# 将当前站点目录(排除 backup/ 自身)打包为 tar.gz
|
||||
cd "${REMOTE_DIR}"
|
||||
FILES=\$(ls | grep -v '^backup$' || true)
|
||||
if [ -n "\$FILES" ]; then
|
||||
tar -czf "${BACKUP_DIR}/dist_${TIMESTAMP}.tar.gz" \$FILES
|
||||
echo " Backed up → ${BACKUP_DIR}/dist_${TIMESTAMP}.tar.gz"
|
||||
else
|
||||
echo " No existing files to backup (first deploy)"
|
||||
fi
|
||||
# 只保留最近 ${KEEP_BACKUPS} 个备份
|
||||
cd "${BACKUP_DIR}"
|
||||
ls -t | tail -n +$((${KEEP_BACKUPS} + 1)) | xargs -r rm -f
|
||||
echo " Backup dir now contains: \$(ls | wc -l) file(s)"
|
||||
EOF
|
||||
ok "Backup OK"
|
||||
|
||||
# ── 步骤 3:上传新版本 ─────────────────────────────────────────────────────────
|
||||
info "Step 3/3 — Upload dist to remote"
|
||||
# 清空远程目录(保留 backup),再上传
|
||||
$SSH "cd ${REMOTE_DIR} && find . -mindepth 1 -maxdepth 1 ! -name backup -exec rm -rf {} + 2>/dev/null || true"
|
||||
scp -r -P ${SERVER_PORT} "${DIST_DIR}"/* "${SERVER_USER}@${SERVER_HOST}:${REMOTE_DIR}/"
|
||||
ok "Upload OK"
|
||||
|
||||
info "============================================"
|
||||
info "mom-frontend-vue2 部署完成!"
|
||||
info "访问地址:http://${SERVER_HOST} 或 https://mymom.suzhouyuqi.com"
|
||||
info "============================================"
|
||||
BIN
mom-backend/.mvn/wrapper/maven-wrapper.jar
vendored
Normal file
BIN
mom-backend/.mvn/wrapper/maven-wrapper.jar
vendored
Normal file
Binary file not shown.
1
mom-backend/.mvn/wrapper/maven-wrapper.properties
vendored
Normal file
1
mom-backend/.mvn/wrapper/maven-wrapper.properties
vendored
Normal file
@@ -0,0 +1 @@
|
||||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
|
||||
338
mom-backend/mvnw
vendored
Executable file
338
mom-backend/mvnw
vendored
Executable file
@@ -0,0 +1,338 @@
|
||||
#!/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
|
||||
#
|
||||
# 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.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Apache Maven Wrapper startup batch script, version 3.3.4
|
||||
#
|
||||
# Required ENV vars:
|
||||
# ------------------
|
||||
# JAVA_HOME - location of a JDK home dir
|
||||
#
|
||||
# Optional ENV vars
|
||||
# -----------------
|
||||
# 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
|
||||
JAVA_HOME="$(/usr/libexec/java_home)"
|
||||
export JAVA_HOME
|
||||
else
|
||||
JAVA_HOME="/Library/Java/Home"
|
||||
export JAVA_HOME
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
if [ -r /etc/gentoo-release ]; then
|
||||
JAVA_HOME=$(java-config --jre-home)
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
||||
if $cygwin; then
|
||||
[ -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 "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] \
|
||||
&& JAVA_HOME="$(
|
||||
cd "$JAVA_HOME" || (
|
||||
echo "cannot cd into $JAVA_HOME." >&2
|
||||
exit 1
|
||||
)
|
||||
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 2>/dev/null
|
||||
\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." >&2
|
||||
fi
|
||||
|
||||
# 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" >&2
|
||||
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/.." || exit 1
|
||||
pwd
|
||||
)
|
||||
fi
|
||||
# end of workaround
|
||||
done
|
||||
printf '%s' "$(
|
||||
cd "$basedir" || exit 1
|
||||
pwd
|
||||
)"
|
||||
}
|
||||
|
||||
# concatenates all lines of a file
|
||||
concat_lines() {
|
||||
if [ -f "$1" ]; then
|
||||
# Remove \r in case we run on Windows within Git Bash
|
||||
# and check out the repository with auto CRLF management
|
||||
# enabled. Otherwise, we may read lines that are delimited with
|
||||
# \r\n and produce $'-Xarg\r' rather than -Xarg due to word
|
||||
# splitting rules.
|
||||
tr -s '\r\n' ' ' <"$1"
|
||||
fi
|
||||
}
|
||||
|
||||
log() {
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
printf '%s\n' "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
BASE_DIR=$(find_maven_basedir "$(dirname "$0")")
|
||||
if [ -z "$BASE_DIR" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
|
||||
export MAVEN_PROJECTBASEDIR
|
||||
log "$MAVEN_PROJECTBASEDIR"
|
||||
|
||||
trim() {
|
||||
# MWRAPPER-139:
|
||||
# Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
|
||||
# Needed for removing poorly interpreted newline sequences when running in more
|
||||
# exotic environments such as mingw bash on Windows.
|
||||
printf "%s" "${1}" | tr -d '[:space:]'
|
||||
}
|
||||
|
||||
##########################################################################################
|
||||
# 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.
|
||||
##########################################################################################
|
||||
wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar"
|
||||
if [ -r "$wrapperJarPath" ]; then
|
||||
log "Found $wrapperJarPath"
|
||||
else
|
||||
log "Couldn't find $wrapperJarPath, downloading it ..."
|
||||
|
||||
if [ -n "$MVNW_REPOURL" ]; then
|
||||
wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.3.4/maven-wrapper-3.3.4.jar"
|
||||
else
|
||||
wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.4/maven-wrapper-3.3.4.jar"
|
||||
fi
|
||||
while IFS="=" read -r key value; do
|
||||
case "$key" in wrapperUrl)
|
||||
wrapperUrl=$(trim "${value-}")
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done <"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
|
||||
log "Downloading from: $wrapperUrl"
|
||||
|
||||
if $cygwin; then
|
||||
wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
|
||||
fi
|
||||
|
||||
if command -v wget >/dev/null; then
|
||||
log "Found wget ... using wget"
|
||||
[ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet"
|
||||
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
|
||||
wget ${QUIET:+"$QUIET"} "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
|
||||
else
|
||||
wget ${QUIET:+"$QUIET"} --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
|
||||
fi
|
||||
elif command -v curl >/dev/null; then
|
||||
log "Found curl ... using curl"
|
||||
[ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent"
|
||||
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
|
||||
curl ${QUIET:+"$QUIET"} -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
|
||||
else
|
||||
curl ${QUIET:+"$QUIET"} --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
|
||||
fi
|
||||
else
|
||||
log "Falling back to using Java to download"
|
||||
javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java"
|
||||
javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class"
|
||||
# For Cygwin, switch paths to Windows format before running javac
|
||||
if $cygwin; then
|
||||
javaSource=$(cygpath --path --windows "$javaSource")
|
||||
javaClass=$(cygpath --path --windows "$javaClass")
|
||||
fi
|
||||
if [ -e "$javaSource" ]; then
|
||||
if [ ! -e "$javaClass" ]; then
|
||||
log " - Compiling MavenWrapperDownloader.java ..."
|
||||
("$JAVA_HOME/bin/javac" "$javaSource")
|
||||
fi
|
||||
if [ -e "$javaClass" ]; then
|
||||
log " - Running MavenWrapperDownloader.java ..."
|
||||
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
##########################################################################################
|
||||
# End of extension
|
||||
##########################################################################################
|
||||
|
||||
# If specified, validate the SHA-256 sum of the Maven wrapper jar file
|
||||
wrapperSha256Sum=""
|
||||
while IFS="=" read -r key value; do
|
||||
case "$key" in wrapperSha256Sum)
|
||||
wrapperSha256Sum=$(trim "${value-}")
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done <"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
|
||||
if [ -n "$wrapperSha256Sum" ]; then
|
||||
wrapperSha256Result=false
|
||||
if command -v sha256sum >/dev/null; then
|
||||
if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c - >/dev/null 2>&1; then
|
||||
wrapperSha256Result=true
|
||||
fi
|
||||
elif command -v shasum >/dev/null; then
|
||||
if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c >/dev/null 2>&1; then
|
||||
wrapperSha256Result=true
|
||||
fi
|
||||
else
|
||||
echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
|
||||
echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties." >&2
|
||||
exit 1
|
||||
fi
|
||||
if [ $wrapperSha256Result = false ]; then
|
||||
echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2
|
||||
echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2
|
||||
echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2
|
||||
exit 1
|
||||
fi
|
||||
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 "$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
|
||||
|
||||
# shellcheck disable=SC2086 # safe args
|
||||
exec "$JAVACMD" \
|
||||
$MAVEN_OPTS \
|
||||
$MAVEN_DEBUG_OPTS \
|
||||
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
|
||||
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
|
||||
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
|
||||
12
mom-frontend-vue2/.env.development
Normal file
12
mom-frontend-vue2/.env.development
Normal file
@@ -0,0 +1,12 @@
|
||||
# 页面标题
|
||||
VUE_APP_TITLE = MES-软件开发记录
|
||||
|
||||
# 开发环境配置
|
||||
ENV = 'development'
|
||||
|
||||
# 若依管理系统/开发环境
|
||||
# 代理至 vue.config.js 中配置的 /dev-api -> http://localhost:8090
|
||||
VUE_APP_BASE_API = '/dev-api'
|
||||
|
||||
# 报表系统/开发环境
|
||||
VUE_APP_REPORT = 'http://localhost:8090'
|
||||
11
mom-frontend-vue2/.env.production
Normal file
11
mom-frontend-vue2/.env.production
Normal file
@@ -0,0 +1,11 @@
|
||||
# 页面标题
|
||||
VUE_APP_TITLE = MES-软件
|
||||
|
||||
# 生产环境配置
|
||||
ENV = 'production'
|
||||
|
||||
# 若依管理系统/生产环境
|
||||
VUE_APP_BASE_API = '/prod-api'
|
||||
|
||||
# 报表系统/开发环境
|
||||
VUE_APP_REPORT = 'http://192.168.8.66:8080'
|
||||
19
mom-frontend-vue2/.eslintrc.js
Normal file
19
mom-frontend-vue2/.eslintrc.js
Normal file
@@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2021": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:vue/essential"
|
||||
],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 12,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": [
|
||||
"vue"
|
||||
],
|
||||
"rules": {
|
||||
}
|
||||
};
|
||||
36
mom-frontend-vue2/README.en.md
Normal file
36
mom-frontend-vue2/README.en.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# ktg-mes-ui
|
||||
|
||||
#### Description
|
||||
开源、免费MES系统的前端
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
8
mom-frontend-vue2/README.md
Normal file
8
mom-frontend-vue2/README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# ktg-mes-ui
|
||||
|
||||
#### 介绍
|
||||
MES系统的前端
|
||||
|
||||
#### 部署
|
||||
·执行npm install 命令(cnpm install)安装所有依赖包。
|
||||
·执行npm run dev 运行前端代码。
|
||||
13
mom-frontend-vue2/babel.config.js
Normal file
13
mom-frontend-vue2/babel.config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
],
|
||||
'env': {
|
||||
'development': {
|
||||
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
|
||||
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
|
||||
'plugins': ['dynamic-import-node']
|
||||
}
|
||||
}
|
||||
}
|
||||
12
mom-frontend-vue2/bin/build.bat
Normal file
12
mom-frontend-vue2/bin/build.bat
Normal file
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [信息] 打包Web工程,生成dist文件。
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
npm run build:prod
|
||||
|
||||
pause
|
||||
12
mom-frontend-vue2/bin/package.bat
Normal file
12
mom-frontend-vue2/bin/package.bat
Normal file
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [信息] 安装Web工程,生成node_modules文件。
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
npm install --registry=https://registry.npmmirror.com
|
||||
|
||||
pause
|
||||
12
mom-frontend-vue2/bin/run-web.bat
Normal file
12
mom-frontend-vue2/bin/run-web.bat
Normal file
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [信息] 使用 Vue CLI 命令运行 Web 工程。
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
npm run dev
|
||||
|
||||
pause
|
||||
35
mom-frontend-vue2/build/index.js
Normal file
35
mom-frontend-vue2/build/index.js
Normal file
@@ -0,0 +1,35 @@
|
||||
const { run } = require('runjs')
|
||||
const chalk = require('chalk')
|
||||
const config = require('../vue.config.js')
|
||||
const rawArgv = process.argv.slice(2)
|
||||
const args = rawArgv.join(' ')
|
||||
|
||||
if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
|
||||
const report = rawArgv.includes('--report')
|
||||
|
||||
run(`vue-cli-service build ${args}`)
|
||||
|
||||
const port = 9526
|
||||
const publicPath = config.publicPath
|
||||
|
||||
var connect = require('connect')
|
||||
var serveStatic = require('serve-static')
|
||||
const app = connect()
|
||||
|
||||
app.use(
|
||||
publicPath,
|
||||
serveStatic('./dist', {
|
||||
index: ['index.html', '/']
|
||||
})
|
||||
)
|
||||
|
||||
app.listen(port, function () {
|
||||
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
|
||||
if (report) {
|
||||
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
|
||||
}
|
||||
|
||||
})
|
||||
} else {
|
||||
run(`vue-cli-service build ${args}`)
|
||||
}
|
||||
33815
mom-frontend-vue2/package-lock.json
generated
Normal file
33815
mom-frontend-vue2/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
95
mom-frontend-vue2/package.json
Normal file
95
mom-frontend-vue2/package.json
Normal file
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"name": "mes-ui",
|
||||
"version": "3.8.2",
|
||||
"description": "MES",
|
||||
"author": "YinJinLu",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"dev": "vue-cli-service serve",
|
||||
"build:prod": "vue-cli-service build",
|
||||
"build:stage": "vue-cli-service build --mode staging",
|
||||
"preview": "node build/index.js --preview",
|
||||
"lint": "eslint --ext .js,.vue src"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"src/**/*.{js,vue}": [
|
||||
"eslint --fix",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"keywords": [
|
||||
"vue",
|
||||
"admin",
|
||||
"dashboard",
|
||||
"element-ui",
|
||||
"boilerplate",
|
||||
"admin-template",
|
||||
"management-system"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://gitee.com/kutangguo/ktg-mes-ui.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dhtmlx/trial-vue-gantt": "1.1.0",
|
||||
"@riophae/vue-treeselect": "0.4.0",
|
||||
"axios": "0.24.0",
|
||||
"clipboard": "2.0.8",
|
||||
"core-js": "^3.21.1",
|
||||
"dhtmlx-gantt": "^7.1.11",
|
||||
"echarts": "4.9.0",
|
||||
"element-ui": "2.15.6",
|
||||
"file-saver": "2.0.5",
|
||||
"fuse.js": "6.4.3",
|
||||
"highlight.js": "9.18.5",
|
||||
"html2canvas": "^1.4.1",
|
||||
"js-beautify": "1.13.0",
|
||||
"js-cookie": "3.0.1",
|
||||
"jsencrypt": "3.0.0-rc.1",
|
||||
"nprogress": "0.2.0",
|
||||
"quill": "1.3.7",
|
||||
"screenfull": "5.0.2",
|
||||
"sortablejs": "1.10.2",
|
||||
"vue": "2.6.12",
|
||||
"vue-count-to": "1.0.13",
|
||||
"vue-cropper": "0.5.5",
|
||||
"vue-meta": "2.4.0",
|
||||
"vue-plugin-hiprint": "0.0.60",
|
||||
"vue-router": "3.4.9",
|
||||
"vuedraggable": "2.24.3",
|
||||
"vuex": "3.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "4.4.6",
|
||||
"@vue/cli-plugin-eslint": "4.4.6",
|
||||
"@vue/cli-service": "4.4.6",
|
||||
"babel-eslint": "10.1.0",
|
||||
"babel-plugin-dynamic-import-node": "2.3.3",
|
||||
"chalk": "4.1.0",
|
||||
"compression-webpack-plugin": "5.0.2",
|
||||
"connect": "3.6.6",
|
||||
"eslint": "7.15.0",
|
||||
"less": "^4.2.0",
|
||||
"less-loader": "^11.1.3",
|
||||
"lint-staged": "10.5.3",
|
||||
"runjs": "4.4.2",
|
||||
"sass": "1.32.13",
|
||||
"sass-loader": "10.1.1",
|
||||
"script-ext-html-webpack-plugin": "2.1.5",
|
||||
"svg-sprite-loader": "5.1.1",
|
||||
"vue-template-compiler": "2.6.12"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.9",
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"last 2 versions"
|
||||
]
|
||||
}
|
||||
BIN
mom-frontend-vue2/public/.DS_Store
vendored
Normal file
BIN
mom-frontend-vue2/public/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/favicon.ico
Normal file
BIN
mom-frontend-vue2/public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
46
mom-frontend-vue2/public/html/ie.html
Normal file
46
mom-frontend-vue2/public/html/ie.html
Normal file
File diff suppressed because one or more lines are too long
209
mom-frontend-vue2/public/index.html
Normal file
209
mom-frontend-vue2/public/index.html
Normal file
@@ -0,0 +1,209 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<link rel="stylesheet" type="text/css" media="print" href="<%= BASE_URL %>print-lock.css">
|
||||
<title><%= webpackConfig.name %></title>
|
||||
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
|
||||
<style>
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
height: 100%;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
.chromeframe {
|
||||
margin: 0.2em 0;
|
||||
background: #ccc;
|
||||
color: #000;
|
||||
padding: 0.2em 0;
|
||||
}
|
||||
|
||||
#loader-wrapper {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 999999;
|
||||
}
|
||||
|
||||
#loader {
|
||||
display: block;
|
||||
position: relative;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
margin: -75px 0 0 -75px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid transparent;
|
||||
border-top-color: #FFF;
|
||||
-webkit-animation: spin 2s linear infinite;
|
||||
-ms-animation: spin 2s linear infinite;
|
||||
-moz-animation: spin 2s linear infinite;
|
||||
-o-animation: spin 2s linear infinite;
|
||||
animation: spin 2s linear infinite;
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
#loader:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
right: 5px;
|
||||
bottom: 5px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid transparent;
|
||||
border-top-color: #FFF;
|
||||
-webkit-animation: spin 3s linear infinite;
|
||||
-moz-animation: spin 3s linear infinite;
|
||||
-o-animation: spin 3s linear infinite;
|
||||
-ms-animation: spin 3s linear infinite;
|
||||
animation: spin 3s linear infinite;
|
||||
}
|
||||
|
||||
#loader:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
left: 15px;
|
||||
right: 15px;
|
||||
bottom: 15px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid transparent;
|
||||
border-top-color: #FFF;
|
||||
-moz-animation: spin 1.5s linear infinite;
|
||||
-o-animation: spin 1.5s linear infinite;
|
||||
-ms-animation: spin 1.5s linear infinite;
|
||||
-webkit-animation: spin 1.5s linear infinite;
|
||||
animation: spin 1.5s linear infinite;
|
||||
}
|
||||
|
||||
|
||||
@-webkit-keyframes spin {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
-ms-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
-ms-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
-ms-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
-ms-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#loader-wrapper .loader-section {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 51%;
|
||||
height: 100%;
|
||||
background: #7171C6;
|
||||
z-index: 1000;
|
||||
-webkit-transform: translateX(0);
|
||||
-ms-transform: translateX(0);
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
#loader-wrapper .loader-section.section-left {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
#loader-wrapper .loader-section.section-right {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
|
||||
.loaded #loader-wrapper .loader-section.section-left {
|
||||
-webkit-transform: translateX(-100%);
|
||||
-ms-transform: translateX(-100%);
|
||||
transform: translateX(-100%);
|
||||
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||
}
|
||||
|
||||
.loaded #loader-wrapper .loader-section.section-right {
|
||||
-webkit-transform: translateX(100%);
|
||||
-ms-transform: translateX(100%);
|
||||
transform: translateX(100%);
|
||||
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||
}
|
||||
|
||||
.loaded #loader {
|
||||
opacity: 0;
|
||||
-webkit-transition: all 0.3s ease-out;
|
||||
transition: all 0.3s ease-out;
|
||||
}
|
||||
|
||||
.loaded #loader-wrapper {
|
||||
visibility: hidden;
|
||||
-webkit-transform: translateY(-100%);
|
||||
-ms-transform: translateY(-100%);
|
||||
transform: translateY(-100%);
|
||||
-webkit-transition: all 0.3s 1s ease-out;
|
||||
transition: all 0.3s 1s ease-out;
|
||||
}
|
||||
|
||||
.no-js #loader-wrapper {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.no-js h1 {
|
||||
color: #222222;
|
||||
}
|
||||
|
||||
#loader-wrapper .load_title {
|
||||
font-family: 'Open Sans';
|
||||
color: #FFF;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
z-index: 9999999999999;
|
||||
position: absolute;
|
||||
top: 60%;
|
||||
opacity: 1;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
#loader-wrapper .load_title span {
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
font-size: 13px;
|
||||
color: #FFF;
|
||||
opacity: 0.5;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div id="loader-wrapper">
|
||||
<div id="loader"></div>
|
||||
<div class="loader-section section-left"></div>
|
||||
<div class="loader-section section-right"></div>
|
||||
<div class="load_title">正在加载系统资源,请耐心等待</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
mom-frontend-vue2/public/pdf/.DS_Store
vendored
Normal file
BIN
mom-frontend-vue2/public/pdf/.DS_Store
vendored
Normal file
Binary file not shown.
16425
mom-frontend-vue2/public/pdf/build/pdf.js
Normal file
16425
mom-frontend-vue2/public/pdf/build/pdf.js
Normal file
File diff suppressed because it is too large
Load Diff
1
mom-frontend-vue2/public/pdf/build/pdf.js.map
Normal file
1
mom-frontend-vue2/public/pdf/build/pdf.js.map
Normal file
File diff suppressed because one or more lines are too long
309
mom-frontend-vue2/public/pdf/build/pdf.sandbox.js
Normal file
309
mom-frontend-vue2/public/pdf/build/pdf.sandbox.js
Normal file
File diff suppressed because one or more lines are too long
1
mom-frontend-vue2/public/pdf/build/pdf.sandbox.js.map
Normal file
1
mom-frontend-vue2/public/pdf/build/pdf.sandbox.js.map
Normal file
File diff suppressed because one or more lines are too long
74431
mom-frontend-vue2/public/pdf/build/pdf.worker.js
vendored
Normal file
74431
mom-frontend-vue2/public/pdf/build/pdf.worker.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
mom-frontend-vue2/public/pdf/build/pdf.worker.js.map
vendored
Normal file
1
mom-frontend-vue2/public/pdf/build/pdf.worker.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
mom-frontend-vue2/public/pdf/web/.DS_Store
vendored
Normal file
BIN
mom-frontend-vue2/public/pdf/web/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78-EUC-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78-EUC-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78-EUC-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78-EUC-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78-RKSJ-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78-RKSJ-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78-RKSJ-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78-RKSJ-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78ms-RKSJ-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78ms-RKSJ-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78ms-RKSJ-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/78ms-RKSJ-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/83pv-RKSJ-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/83pv-RKSJ-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/90ms-RKSJ-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/90ms-RKSJ-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/90ms-RKSJ-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/90ms-RKSJ-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/90msp-RKSJ-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/90msp-RKSJ-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/90msp-RKSJ-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/90msp-RKSJ-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/90pv-RKSJ-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/90pv-RKSJ-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/90pv-RKSJ-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/90pv-RKSJ-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Add-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Add-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Add-RKSJ-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Add-RKSJ-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Add-RKSJ-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Add-RKSJ-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Add-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Add-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-0.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-0.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-1.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-1.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-2.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-2.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-3.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-3.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-4.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-4.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-5.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-5.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-6.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-6.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-UCS2.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-CNS1-UCS2.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-0.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-0.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-1.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-1.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-2.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-2.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-3.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-3.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-4.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-4.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-5.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-5.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-UCS2.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-GB1-UCS2.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-0.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-0.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-1.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-1.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-2.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-2.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-3.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-3.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-4.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-4.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-5.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-5.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-6.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-6.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-UCS2.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Japan1-UCS2.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Korea1-0.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Korea1-0.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Korea1-1.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Korea1-1.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Korea1-2.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Korea1-2.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Korea1-UCS2.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Adobe-Korea1-UCS2.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/B5-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/B5-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/B5-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/B5-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/B5pc-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/B5pc-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/B5pc-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/B5pc-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/CNS-EUC-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/CNS-EUC-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/CNS-EUC-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/CNS-EUC-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/CNS1-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/CNS1-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/CNS1-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/CNS1-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/CNS2-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/CNS2-H.bcmap
Normal file
Binary file not shown.
3
mom-frontend-vue2/public/pdf/web/cmaps/CNS2-V.bcmap
Normal file
3
mom-frontend-vue2/public/pdf/web/cmaps/CNS2-V.bcmap
Normal file
@@ -0,0 +1,3 @@
|
||||
àRCopyright 1990-2009 Adobe Systems Incorporated.
|
||||
All rights reserved.
|
||||
See ./LICENSEáCNS2-H
|
||||
BIN
mom-frontend-vue2/public/pdf/web/cmaps/ETHK-B5-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/ETHK-B5-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/ETHK-B5-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/ETHK-B5-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/ETen-B5-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/ETen-B5-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/ETen-B5-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/ETen-B5-V.bcmap
Normal file
Binary file not shown.
3
mom-frontend-vue2/public/pdf/web/cmaps/ETenms-B5-H.bcmap
Normal file
3
mom-frontend-vue2/public/pdf/web/cmaps/ETenms-B5-H.bcmap
Normal file
@@ -0,0 +1,3 @@
|
||||
àRCopyright 1990-2009 Adobe Systems Incorporated.
|
||||
All rights reserved.
|
||||
See ./LICENSEá ETen-B5-H` ^
|
||||
BIN
mom-frontend-vue2/public/pdf/web/cmaps/ETenms-B5-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/ETenms-B5-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/EUC-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/EUC-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/EUC-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/EUC-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Ext-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Ext-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Ext-RKSJ-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Ext-RKSJ-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Ext-RKSJ-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Ext-RKSJ-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Ext-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/Ext-V.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/GB-EUC-H.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/GB-EUC-H.bcmap
Normal file
Binary file not shown.
BIN
mom-frontend-vue2/public/pdf/web/cmaps/GB-EUC-V.bcmap
Normal file
BIN
mom-frontend-vue2/public/pdf/web/cmaps/GB-EUC-V.bcmap
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user