Browse Source

v1.0.0

master
谕仙 2 years ago
commit
dc8a5b98d0
  1. 33
      fastcode/fastcode/.gitignore
  2. BIN
      fastcode/fastcode/.mvn/wrapper/maven-wrapper.jar
  3. 2
      fastcode/fastcode/.mvn/wrapper/maven-wrapper.properties
  4. 316
      fastcode/fastcode/mvnw
  5. 188
      fastcode/fastcode/mvnw.cmd
  6. 89
      fastcode/fastcode/pom.xml
  7. 14
      fastcode/fastcode/src/main/java/com/renc/fastcode/FastcodeApplication.java
  8. 28
      fastcode/fastcode/src/main/java/com/renc/fastcode/controll/HtmlConvertPng.java
  9. 9
      fastcode/fastcode/src/main/java/com/renc/fastcode/service/IHtmlConvertPng.java
  10. 27
      fastcode/fastcode/src/main/java/com/renc/fastcode/service/impl/HtmlConvertPngImpl.java
  11. 75
      fastcode/fastcode/src/main/java/com/renc/fastcode/util/FileUtil.java
  12. 136
      fastcode/fastcode/src/main/java/com/renc/fastcode/util/RunChromeCmd.java
  13. 2
      fastcode/fastcode/src/main/resources/application.yml
  14. 8
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/103.0.5060.53.manifest
  15. 5
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/Extensions/external_extensions.json
  16. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/Locales/en-US.pak
  17. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/Locales/zh-CN.pak
  18. 8
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/MEIPreload/manifest.json
  19. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/MEIPreload/preloaded_data.pb
  20. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/Logo.png
  21. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/LogoBeta.png
  22. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/LogoCanary.png
  23. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/LogoDev.png
  24. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/SmallLogo.png
  25. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/SmallLogoBeta.png
  26. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/SmallLogoCanary.png
  27. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/SmallLogoDev.png
  28. 8
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/WidevineCdm/LICENSE
  29. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/WidevineCdm/_platform_specific/win_x64/widevinecdm.dll
  30. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/WidevineCdm/_platform_specific/win_x64/widevinecdm.dll.sig
  31. 38
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/WidevineCdm/manifest.json
  32. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome.dll
  33. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome.dll.sig
  34. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome.exe.sig
  35. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome_100_percent.pak
  36. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome_200_percent.pak
  37. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome_elf.dll
  38. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome_pwa_launcher.exe
  39. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/d3dcompiler_47.dll
  40. 39
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/default_apps/external_extensions.json
  41. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/elevation_service.exe
  42. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/eventlog_provider.dll
  43. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/icudtl.dat
  44. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/libEGL.dll
  45. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/libGLESv2.dll
  46. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/mojo_core.dll
  47. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/nacl_irt_x86_64.nexe
  48. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/notification_helper.exe
  49. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/optimization_guide_internal.dll
  50. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/resources.pak
  51. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/v8_context_snapshot.bin
  52. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/vk_swiftshader.dll
  53. 1
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/vk_swiftshader_icd.json
  54. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/vulkan-1.dll
  55. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/Chrome.exe
  56. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/chrome_proxy.exe
  57. 1
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/debug.log
  58. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/App/version.dll
  59. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Cache/Cache_Data/data_0
  60. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Cache/Cache_Data/data_1
  61. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Cache/Cache_Data/data_2
  62. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Cache/Cache_Data/data_3
  63. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Cache/Cache_Data/f_000002
  64. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Cache/Cache_Data/index
  65. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/js/127ac28cf5dfd50d_0
  66. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/js/efb41a8c3deef33c_0
  67. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/js/f87fcf1cb2565197_0
  68. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/js/index
  69. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/js/index-dir/the-real-index
  70. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/wasm/index
  71. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/wasm/index-dir/the-real-index
  72. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Chrome.exe
  73. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/BrowserMetrics/BrowserMetrics-63807033-2A2C.pma
  74. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/BrowserMetrics/BrowserMetrics-63807AC6-4D78.pma
  75. 0
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Crashpad/metadata
  76. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Crashpad/settings.dat
  77. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Affiliation Database
  78. 0
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Affiliation Database-journal
  79. 0
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/AutofillStrikeDatabase/LOCK
  80. 0
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/AutofillStrikeDatabase/LOG
  81. 0
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/AutofillStrikeDatabase/LOG.old
  82. 0
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/BudgetDatabase/LOCK
  83. 0
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/BudgetDatabase/LOG
  84. 0
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/BudgetDatabase/LOG.old
  85. 0
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Download Service/EntryDB/LOCK
  86. 0
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Download Service/EntryDB/LOG
  87. 0
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Download Service/EntryDB/LOG.old
  88. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension Scripts/000003.log
  89. 1
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension Scripts/CURRENT
  90. 0
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension Scripts/LOCK
  91. 3
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension Scripts/LOG
  92. 3
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension Scripts/LOG.old
  93. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension Scripts/MANIFEST-000001
  94. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension State/000003.log
  95. 1
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension State/CURRENT
  96. 0
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension State/LOCK
  97. 3
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension State/LOG
  98. 3
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension State/LOG.old
  99. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension State/MANIFEST-000001
  100. BIN
      fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Favicons

33
fastcode/fastcode/.gitignore

@ -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
fastcode/fastcode/.mvn/wrapper/maven-wrapper.jar

Binary file not shown.

2
fastcode/fastcode/.mvn/wrapper/maven-wrapper.properties

@ -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
fastcode/fastcode/mvnw

@ -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
fastcode/fastcode/mvnw.cmd

@ -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%

89
fastcode/fastcode/pom.xml

@ -0,0 +1,89 @@
<?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.renc</groupId>
<artifactId>fastcode</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>fastcode</name>
<description>Demo project for Spring Boot</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>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.6.0</version>
</dependency>
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>3.8.1</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.google.guava</groupId>-->
<!-- <artifactId>guava</artifactId>-->
<!-- <version>30.1.1-jre</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>com.squareup.okhttp3</groupId>-->
<!-- <artifactId>okhttp</artifactId>-->
<!-- <version>3.11.0</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>com.squareup.okio</groupId>-->
<!-- <artifactId>okio</artifactId>-->
<!-- <version>1.14.0</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>net.bytebuddy</groupId>-->
<!-- <artifactId>byte-buddy</artifactId>-->
<!-- <version>1.8.15</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.apache.commons</groupId>-->
<!-- <artifactId>commons-exec</artifactId>-->
<!-- <version>1.3</version>-->
<!-- </dependency>-->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

14
fastcode/fastcode/src/main/java/com/renc/fastcode/FastcodeApplication.java

@ -0,0 +1,14 @@
package com.renc.fastcode;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class FastcodeApplication {
public static void main(String[] args) {
System.setProperty("spring.devtools.restart.enabled", "false");
SpringApplication.run(FastcodeApplication.class, args);
}
}

28
fastcode/fastcode/src/main/java/com/renc/fastcode/controll/HtmlConvertPng.java

@ -0,0 +1,28 @@
package com.renc.fastcode.controll;
import com.renc.fastcode.service.impl.HtmlConvertPngImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@Controller
@RequestMapping("/htmlConvertPng")
public class HtmlConvertPng {
@Autowired
private HtmlConvertPngImpl htmlConvertPng;
@RequestMapping("/png")
public void htmlToPng(HttpServletRequest request, HttpServletResponse response){
try {
htmlConvertPng.htmlToPng(request,response);
} catch (IOException e) {
System.out.println( "转换为图片失败");
}
System.out.println("转换为图片成功");
}
}

9
fastcode/fastcode/src/main/java/com/renc/fastcode/service/IHtmlConvertPng.java

@ -0,0 +1,9 @@
package com.renc.fastcode.service;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public interface IHtmlConvertPng {
void htmlToPng(HttpServletRequest request, HttpServletResponse response) throws IOException;
}

27
fastcode/fastcode/src/main/java/com/renc/fastcode/service/impl/HtmlConvertPngImpl.java

@ -0,0 +1,27 @@
package com.renc.fastcode.service.impl;
import com.renc.fastcode.service.IHtmlConvertPng;
import com.renc.fastcode.util.RunChromeCmd;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.Map;
@Service
public class HtmlConvertPngImpl implements IHtmlConvertPng {
@Autowired
private RunChromeCmd runChromeCmd;
@Override
public void htmlToPng(HttpServletRequest request, HttpServletResponse response) throws IOException {
response.setContentType("Image/png");
String className= request.getParameter("className");
String htmlContext=request.getParameter("htmlContext");
// RunChromeCmd runChromeCmd=new RunChromeCmd();
runChromeCmd.convertPng(className,response.getOutputStream(),htmlContext);
}
}

75
fastcode/fastcode/src/main/java/com/renc/fastcode/util/FileUtil.java

@ -0,0 +1,75 @@
package com.renc.fastcode.util;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.ClassPathResource;
import org.springframework.stereotype.Component;
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.locks.ReentrantLock;
public class FileUtil extends ReentrantLock {
public String getBasePath() {
return basePath;
}
private String basePath;
private String filePath;
public FileUtil() throws IOException {
ClassPathResource classPathResource = new ClassPathResource("");
this.basePath=classPathResource.getURI().toString().replace("file:/","");
}
public File createFile(String filePath) throws IOException {
String path=this.basePath+filePath;
System.out.println(path);
File file=new File(path);
if(!file.exists()){
file.getParentFile().mkdirs();
file.createNewFile();
}
return file;
}
public void copyFile(File copyFile,File targetFile) throws IOException {
FileInputStream fileInputStream=new FileInputStream(copyFile);
FileOutputStream fileOutputStream=new FileOutputStream(targetFile);
byte[] copyDatas=new byte[1024];
int len=0;
while ((len=fileInputStream.read(copyDatas))!=-1){
fileOutputStream.write(copyDatas);
}
fileOutputStream.close();
fileInputStream.close();
}
public void copyFile(File copyFile,OutputStream outputStream) throws IOException {
FileInputStream fileInputStream=new FileInputStream(copyFile);
byte[] copyDatas=new byte[1024];
int len=0;
while ((len=fileInputStream.read(copyDatas))!=-1){
outputStream.write(copyDatas);
}
outputStream.close();
fileInputStream.close();
}
public File writeStringInFile(String path,String context) throws IOException {
byte[] datas=context.getBytes(StandardCharsets.UTF_8);
File file=createFile(path);
FileOutputStream fileOutputStream=new FileOutputStream(file);
fileOutputStream.write(datas);
fileOutputStream.close();
return file;
}
public File writeInputStreamInFile(File file,InputStream is) throws IOException {
FileOutputStream fileOutputStream=new FileOutputStream(file);
byte[] readDatas=new byte[1024];
int len=0;
while ((len=is.read(readDatas))!=-1){
fileOutputStream.write(readDatas);
}
fileOutputStream.close();
is.close();
return file;
}
}

136
fastcode/fastcode/src/main/java/com/renc/fastcode/util/RunChromeCmd.java

@ -0,0 +1,136 @@
package com.renc.fastcode.util;
import org.openqa.selenium.*;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.Point;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Component;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.text.SimpleDateFormat;
import java.time.Duration;
import java.util.Date;
import java.util.UUID;
@Component
public class RunChromeCmd implements DisposableBean {
private FileUtil fileUtil=null;
private static String chromePath=null;
private String dateString=null;
private File htmlTemplateFile=null;
private WebDriver driver=null;
public RunChromeCmd() throws IOException {
Date date=new Date(System.currentTimeMillis());
SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd");
String dateString=simpleDateFormat.format(date);
this.dateString=dateString;
this.fileUtil=new FileUtil();
this.setDriverProperty();
}
private void setDriverProperty(){
if(System.getProperty("webdriver.chrome.driver")==null){
chromePath=this.fileUtil.getBasePath()+"/static/browser/Chrome/App/Chrome.exe";
String driverPath=this.fileUtil.getBasePath()+"/static/browser/driver/win/chromedriver.exe";
System.setProperty("webdriver.chrome.driver",driverPath);
driver = new ChromeDriver(this.setOption(chromePath));
java.awt.Dimension scrSize= Toolkit.getDefaultToolkit().getScreenSize();
System.out.println(scrSize.getWidth()+"|"+scrSize.height);
driver.manage().window().setSize(new Dimension((int)scrSize.width,(int)scrSize.height));
// System.out.println(driver.manage().window().getSize());
// driver.manage().window().maximize();
try {
Thread.sleep(500);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
public synchronized void setTmplateHtml(String context) throws IOException {
// String htmlTemplateFilePath="html/"+dateString+"/"+UUID.randomUUID().toString()+".html";
String htmlTemplateFilePath="html/htmlToImage.html";
htmlTemplateFile=fileUtil.writeStringInFile(htmlTemplateFilePath,context);
}
public synchronized void setTmplateHtml(InputStream is) throws IOException {
String htmlTemplateFilePath="html/"+UUID.randomUUID().toString()+".html";
htmlTemplateFile=fileUtil.writeInputStreamInFile(this.fileUtil.createFile(htmlTemplateFilePath),is);
}
public synchronized String convertPng(String className,String context) throws IOException {
this.setTmplateHtml(context);
WebDriver driver = new ChromeDriver(this.setOption(chromePath));
driver.get("file:///"+this.htmlTemplateFile.getPath().toString());
driver.manage().timeouts().implicitlyWait(Duration.ofMillis(500));
WebElement img=null;
if(className==null){
img = driver.findElement(By.tagName("HTML"));
}else{
img = driver.findElement(By.className(className));
}
File ChromeFILE = ((ChromeDriver)driver).getScreenshotAs(OutputType.FILE);
File createImg= captureElement(ChromeFILE,img);
String id= UUID.randomUUID().toString();
String targetFilePath="/HtmlToImg/"+dateString+"/"+id+".png";
File targetFile= fileUtil.createFile(targetFilePath);
fileUtil.copyFile(createImg,targetFile);
driver.quit();
return targetFilePath;
}
public synchronized void convertPng(String className,OutputStream outputStream,String context) throws IOException {
this.setTmplateHtml(context);
driver.get("file:///"+this.htmlTemplateFile.getPath().toString());
WebElement img=null;
if(className==null){
img = driver.findElement(By.tagName("HTML"));
}else{
img = driver.findElement(By.className(className));
}
File ChromeFILE = ((ChromeDriver)driver).getScreenshotAs(OutputType.FILE);
File createImg= captureElement(ChromeFILE,img);
fileUtil.copyFile(createImg,outputStream);
}
private synchronized File captureElement(File screenshot, WebElement element){
try {
BufferedImage img = ImageIO.read(screenshot);
int width = element.getSize().getWidth();
int height = element.getSize().getHeight();
//获取指定元素的坐标
Point point = element.getLocation();
//从元素左上角坐标开始,按照元素的高宽对img进行裁剪为符合需要的图片
System.out.println(point.getX()+"|"+point.getY()+"|"+width+"|"+height);
BufferedImage dest = img.getSubimage(point.getX(), point.getY(), width, height);
ImageIO.write(dest, "png", screenshot);
} catch (IOException e) {
e.printStackTrace();
}
return screenshot;
}
private ChromeOptions setOption(String path){
ChromeOptions options = new ChromeOptions();
// 设置浏览器不受测试控制
options.setExperimentalOption("useAutomationExtension",false);
options.setExperimentalOption("excludeSwitches",new String[]{"enable-automation"});
// options.addArguments("start-maximized");
// 设置浏览器后台运行
options.setHeadless(true);
// 设置浏览器位置
System.out.println("地址:"+path);
options.setBinary(path);
return options;
}
@Override
public void destroy() throws Exception {
driver.quit();
}
}

2
fastcode/fastcode/src/main/resources/application.yml

@ -0,0 +1,2 @@
server:
port: 8081

8
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/103.0.5060.53.manifest

@ -0,0 +1,8 @@
<assembly
xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<assemblyIdentity
name='103.0.5060.53'
version='103.0.5060.53'
type='win32'/>
<file name='chrome_elf.dll'/>
</assembly>

5
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/Extensions/external_extensions.json

@ -0,0 +1,5 @@
// This json file will contain a list of extensions that will be included
// in the installer.
{
}

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/Locales/en-US.pak

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/Locales/zh-CN.pak

Binary file not shown.

8
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/MEIPreload/manifest.json

@ -0,0 +1,8 @@
{
"name": "MEI Preload",
"icons": {},
"version": "1.0.6.0",
"manifest_version": 2,
"update_url": "https://clients2.google.com/service/update2/crx",
"description": "Contains preloaded data for Media Engagement"
}

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/MEIPreload/preloaded_data.pb

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/Logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/LogoBeta.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/LogoCanary.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/LogoDev.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/SmallLogo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/SmallLogoBeta.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/SmallLogoCanary.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/VisualElements/SmallLogoDev.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

8
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/WidevineCdm/LICENSE

@ -0,0 +1,8 @@
Google LLC and its affiliates ("Google") own all legal right, title and
interest in and to the content decryption module software ("Software") and
related documentation, including any intellectual property rights in the
Software. You may not use, modify, sell, or otherwise distribute the Software
without a separate license agreement with Google. The Software is not open
source software.
If you are interested in licensing the Software, please contact www.widevine.com

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/WidevineCdm/_platform_specific/win_x64/widevinecdm.dll

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/WidevineCdm/_platform_specific/win_x64/widevinecdm.dll.sig

Binary file not shown.

38
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/WidevineCdm/manifest.json

@ -0,0 +1,38 @@
{
"manifest_version": 2,
"update_url": "https://clients2.google.com/service/update2/crx",
"name": "WidevineCdm",
"description": "Widevine Content Decryption Module",
"version": "4.10.2449.0",
"minimum_chrome_version": "68.0.3430.0",
"x-cdm-module-versions": "4",
"x-cdm-interface-versions": "10",
"x-cdm-host-versions": "10",
"x-cdm-codecs": "vp8,vp09,avc1,av01",
"x-cdm-persistent-license-support": true,
"x-cdm-supported-encryption-schemes": [
"cenc",
"cbcs"
],
"icons": {
"16": "imgs/icon-128x128.png",
"128": "imgs/icon-128x128.png"
},
"platforms": [
{
"os": "win",
"arch": "x64",
"sub_package_path": "_platform_specific/win_x64/"
},
{
"os": "win",
"arch": "x86",
"sub_package_path": "_platform_specific/win_x86/"
},
{
"os": "win",
"arch": "arm64",
"sub_package_path": "_platform_specific/win_arm64/"
}
]
}

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome.dll

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome.dll.sig

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome.exe.sig

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome_100_percent.pak

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome_200_percent.pak

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome_elf.dll

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/chrome_pwa_launcher.exe

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/d3dcompiler_47.dll

Binary file not shown.

39
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/default_apps/external_extensions.json

@ -0,0 +1,39 @@
// Dictionary of default apps to install into new profiles. They will be
// dynamically downloaded and installed from CWS on profile creation.
{
// YouTube
"blpcfgokakmgnkcojhhkbfbldkacnbeo" : {
"external_update_url": "https://clients2.google.com/service/update2/crx",
"web_app_migration_flag": "MigrateDefaultChromeAppToWebAppsNonGSuite"
},
// GMail
"pjkljhegncpnkpknbcohdijeoejaedia" : {
"external_update_url": "https://clients2.google.com/service/update2/crx",
"web_app_migration_flag": "MigrateDefaultChromeAppToWebAppsGSuite"
},
// Google Drive
"apdfllckaahabafndbhieahigkjlhalf" : {
"external_update_url": "https://clients2.google.com/service/update2/crx",
"web_app_migration_flag": "MigrateDefaultChromeAppToWebAppsGSuite"
},
// Google Docs
"aohghmighlieiainnegkcijnfilokake" : {
"external_update_url": "https://clients2.google.com/service/update2/crx",
"web_app_migration_flag": "MigrateDefaultChromeAppToWebAppsGSuite"
},
// Google Sheets
"aapocclcgogkmnckokdopfmhonfmgoek" : {
"external_update_url": "https://clients2.google.com/service/update2/crx",
"web_app_migration_flag": "MigrateDefaultChromeAppToWebAppsGSuite"
},
// Google Slides
"felcaaldnbdncclmgdcncolpebgiejap" : {
"external_update_url": "https://clients2.google.com/service/update2/crx",
"web_app_migration_flag": "MigrateDefaultChromeAppToWebAppsGSuite"
},
// Drive extension
"ghbmnnjooekpmoecnnnilnnbdlolhkhi" : {
"external_update_url": "https://clients2.google.com/service/update2/crx"
}
}

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/elevation_service.exe

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/eventlog_provider.dll

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/icudtl.dat

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/libEGL.dll

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/libGLESv2.dll

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/mojo_core.dll

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/nacl_irt_x86_64.nexe

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/notification_helper.exe

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/optimization_guide_internal.dll

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/resources.pak

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/v8_context_snapshot.bin

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/vk_swiftshader.dll

Binary file not shown.

1
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/vk_swiftshader_icd.json

@ -0,0 +1 @@
{"file_format_version": "1.0.0", "ICD": {"library_path": ".\\vk_swiftshader.dll", "api_version": "1.0.5"}}

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/103.0.5060.53/vulkan-1.dll

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/Chrome.exe

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/chrome_proxy.exe

Binary file not shown.

1
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/debug.log

@ -0,0 +1 @@
[1125/145822.208:ERROR:disk_cache.cc(204)] Unable to create cache

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/App/version.dll

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Cache/Cache_Data/data_0

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Cache/Cache_Data/data_1

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Cache/Cache_Data/data_2

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Cache/Cache_Data/data_3

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Cache/Cache_Data/f_000002

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Cache/Cache_Data/index

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/js/127ac28cf5dfd50d_0

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/js/efb41a8c3deef33c_0

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/js/f87fcf1cb2565197_0

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/js/index

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/js/index-dir/the-real-index

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/wasm/index

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Cache/Default/Code Cache/wasm/index-dir/the-real-index

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Chrome.exe

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/BrowserMetrics/BrowserMetrics-63807033-2A2C.pma

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/BrowserMetrics/BrowserMetrics-63807AC6-4D78.pma

Binary file not shown.

0
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Crashpad/metadata

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Crashpad/settings.dat

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Affiliation Database

Binary file not shown.

0
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Affiliation Database-journal

0
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/AutofillStrikeDatabase/LOCK

0
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/AutofillStrikeDatabase/LOG

0
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/AutofillStrikeDatabase/LOG.old

0
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/BudgetDatabase/LOCK

0
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/BudgetDatabase/LOG

0
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/BudgetDatabase/LOG.old

0
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Download Service/EntryDB/LOCK

0
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Download Service/EntryDB/LOG

0
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Download Service/EntryDB/LOG.old

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension Scripts/000003.log

Binary file not shown.

1
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension Scripts/CURRENT

@ -0,0 +1 @@
MANIFEST-000001

0
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension Scripts/LOCK

3
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension Scripts/LOG

@ -0,0 +1,3 @@
2022/11/25-15:34:22.430 97c Reusing MANIFEST D:\work\fastcode\src\main\resources\static\browser\Chrome\Data\Default\Extension Scripts/MANIFEST-000001
2022/11/25-15:34:22.430 97c Recovering log #3
2022/11/25-15:34:22.431 97c Reusing old log D:\work\fastcode\src\main\resources\static\browser\Chrome\Data\Default\Extension Scripts/000003.log

3
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension Scripts/LOG.old

@ -0,0 +1,3 @@
2022/11/25-14:57:15.303 4ba0 Reusing MANIFEST D:\work\fastcode\src\main\resources\static\browser\Chrome\Data\Default\Extension Scripts/MANIFEST-000001
2022/11/25-14:57:15.303 4ba0 Recovering log #3
2022/11/25-14:57:15.303 4ba0 Reusing old log D:\work\fastcode\src\main\resources\static\browser\Chrome\Data\Default\Extension Scripts/000003.log

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension Scripts/MANIFEST-000001

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension State/000003.log

Binary file not shown.

1
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension State/CURRENT

@ -0,0 +1 @@
MANIFEST-000001

0
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension State/LOCK

3
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension State/LOG

@ -0,0 +1,3 @@
2022/11/25-16:20:23.412 439c Reusing MANIFEST D:\work\fastcode\src\main\resources\static\browser\Chrome\Data\Default\Extension State/MANIFEST-000001
2022/11/25-16:20:23.413 439c Recovering log #3
2022/11/25-16:20:23.413 439c Reusing old log D:\work\fastcode\src\main\resources\static\browser\Chrome\Data\Default\Extension State/000003.log

3
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension State/LOG.old

@ -0,0 +1,3 @@
2022/11/25-15:35:15.979 c3c Reusing MANIFEST D:\work\fastcode\src\main\resources\static\browser\Chrome\Data\Default\Extension State/MANIFEST-000001
2022/11/25-15:35:15.979 c3c Recovering log #3
2022/11/25-15:35:15.980 c3c Reusing old log D:\work\fastcode\src\main\resources\static\browser\Chrome\Data\Default\Extension State/000003.log

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Extension State/MANIFEST-000001

Binary file not shown.

BIN
fastcode/fastcode/src/main/resources/static/browser/Chrome/Data/Default/Favicons

Binary file not shown.

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save