master
关凯 2024-04-15 15:51:57 +08:00
parent 1a4cd9575f
commit 9540958d12
211 changed files with 194978 additions and 193702 deletions

View File

@ -1,32 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java"> <classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes> <attributes>
<attribute name="optional" value="true"/> <attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes> <attributes>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes> <attributes>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes> <attributes>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> <classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes> <attributes>
<attribute name="test" value="true"/> <attribute name="test" value="true"/>
<attribute name="optional" value="true"/> <attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="output" path="target/classes"/> <classpathentry kind="output" path="target/classes"/>
</classpath> </classpath>

View File

@ -1,7 +1,7 @@
/target/ /target/
/logs/ /logs/
/upload/ /upload/
.settings/ .settings/
license.lic license.lic
package-lock.json package-lock.json
*.ui.prefs *.ui.prefs

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project-module <project-module
type="WEB" type="WEB"
name="kdayun" name="kdayun"
id="myeclipse.1513761110848" id="myeclipse.1513761110848"
context-root="/kdayun" context-root="/kdayun"
j2ee-spec="6.0" j2ee-spec="6.0"
archive="kdayun.war"> archive="kdayun.war">
<attributes> <attributes>
<attribute name="webrootdir" value="WebRoot" /> <attribute name="webrootdir" value="WebRoot" />
</attributes> </attributes>
</project-module> </project-module>

View File

@ -1,67 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<projectDescription> <projectDescription>
<name>kdayun-app</name> <name>kdayun-app</name>
<comment></comment> <comment></comment>
<projects> <projects>
<project>kdayun-report</project> <project>kdayun-report</project>
</projects> </projects>
<buildSpec> <buildSpec>
<buildCommand> <buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name> <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name> <name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name> <name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name> <name>org.eclipse.jdt.core.javabuilder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name> <name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name> <name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name> <name>org.eclipse.wst.validation.validationbuilder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name> <name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>com.genuitec.eclipse.springframework.springbuilder</name> <name>com.genuitec.eclipse.springframework.springbuilder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name> <name>org.eclipse.m2e.core.maven2Builder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
</buildSpec> </buildSpec>
<natures> <natures>
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature> <nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures> </natures>
</projectDescription> </projectDescription>

View File

@ -1,14 +1,14 @@
{ {
"plugins": { "plugins": {
"guess-types": { "guess-types": {
}, },
"outline": { "outline": {
} }
}, },
"libs": [ "libs": [
"ecma5", "ecma5",
"browser" "browser"
] ]
} }

View File

@ -1,3 +1,3 @@
Manifest-Version: 1.0 Manifest-Version: 1.0
Class-Path: Class-Path:

View File

@ -1,6 +1,6 @@
cd /d %~dp0 cd /d %~dp0
set JAVA_HOME="G:\jdk1.8.0_151" set JAVA_HOME="G:\jdk1.8.0_151"
set mavenpath=D:\<5C><><EFBFBD><EFBFBD>\Tools\maven\apache-maven-3.2.5-bin\apache-maven-3.2.5\bin\mvn set mavenpath=D:\<5C><><EFBFBD><EFBFBD>\Tools\maven\apache-maven-3.2.5-bin\apache-maven-3.2.5\bin\mvn
call jar.bat call jar.bat
pause pause

View File

@ -1,5 +1,5 @@
cd /d %~dp0 cd /d %~dp0
mvn source:jar -Dmaven.test.skip=true mvn source:jar -Dmaven.test.skip=true

View File

@ -1,3 +1,3 @@
cd /d %~dp0 cd /d %~dp0
mvn clean package -Dmaven.test.skip=true mvn clean package -Dmaven.test.skip=true

View File

@ -1,258 +1,258 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging> <packaging>jar</packaging>
<parent> <parent>
<artifactId>kdayun-root</artifactId> <artifactId>kdayun-root</artifactId>
<groupId>com.kdayun</groupId> <groupId>com.kdayun</groupId>
<version>5.0.0</version> <version>5.0.0</version>
<relativePath>../../</relativePath> <relativePath>../../</relativePath>
</parent> </parent>
<version>${base.version}</version> <version>${base.version}</version>
<artifactId>kdayun-app</artifactId> <artifactId>kdayun-app</artifactId>
<name>kdayun-app</name> <name>kdayun-app</name>
<url>http://www.kdayun.com</url> <url>http://www.kdayun.com</url>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<deployRoot>${project.build.directory}/deploy/${base.version}/</deployRoot> <deployRoot>${project.build.directory}/deploy/${base.version}/</deployRoot>
</properties> </properties>
<distributionManagement> <distributionManagement>
<repository> <repository>
<id>kdayun-releases</id> <id>kdayun-releases</id>
<url>http://develop.kdayun.com:8081/repository/maven-local/</url> <url>http://develop.kdayun.com:8081/repository/maven-local/</url>
</repository> </repository>
<snapshotRepository> <snapshotRepository>
<id>kdayun-snapshots</id> <id>kdayun-snapshots</id>
<url>http://develop.kdayun.com:8081/repository/maven-snapshots/</url> <url>http://develop.kdayun.com:8081/repository/maven-snapshots/</url>
</snapshotRepository> </snapshotRepository>
</distributionManagement> </distributionManagement>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.kdayun</groupId> <groupId>com.kdayun</groupId>
<artifactId>kdayun-manager</artifactId> <artifactId>kdayun-manager</artifactId>
<version>${base.version}</version> <version>${base.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.kdayun</groupId> <groupId>com.kdayun</groupId>
<artifactId>kdayun-admin</artifactId> <artifactId>kdayun-admin</artifactId>
<version>${base.version}</version> <version>${base.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.kdayun</groupId> <groupId>com.kdayun</groupId>
<artifactId>kdayun-core</artifactId> <artifactId>kdayun-core</artifactId>
<version>${base.version}</version> <version>${base.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.kdayun</groupId> <groupId>com.kdayun</groupId>
<artifactId>kdayun-report</artifactId> <artifactId>kdayun-report</artifactId>
<version>${base.version}</version> <version>${base.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.kdayun</groupId> <groupId>com.kdayun</groupId>
<artifactId>kdayun-api</artifactId> <artifactId>kdayun-api</artifactId>
<version>1.0.2</version> <version>1.0.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.kdayun</groupId> <groupId>com.kdayun</groupId>
<artifactId>kdayun-wechat</artifactId> <artifactId>kdayun-wechat</artifactId>
<version>1.0.4</version> <version>1.0.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.kdayun</groupId> <groupId>com.kdayun</groupId>
<artifactId>kdayun-wecom</artifactId> <artifactId>kdayun-wecom</artifactId>
<version>1.0.4</version> <version>1.0.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.kdayun</groupId> <groupId>com.kdayun</groupId>
<artifactId>kdayun-baidu</artifactId> <artifactId>kdayun-baidu</artifactId>
<version>1.0.1</version> <version>1.0.1</version>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>commons.commons-beanutils</groupId> <groupId>commons.commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId> <artifactId>commons-beanutils</artifactId>
</exclusion> </exclusion>
<exclusion> <exclusion>
<groupId>ch.qos.logback</groupId> <groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId> <artifactId>logback-classic</artifactId>
</exclusion> </exclusion>
<exclusion> <exclusion>
<groupId>ch.qos.logback</groupId> <groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId> <artifactId>logback-core</artifactId>
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.kdayun</groupId> <groupId>com.kdayun</groupId>
<artifactId>kdayun-demo</artifactId> <artifactId>kdayun-demo</artifactId>
<version>1.0.1</version> <version>1.0.1</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<defaultGoal>compile</defaultGoal> <defaultGoal>compile</defaultGoal>
<finalName>kdayun-app</finalName> <finalName>kdayun-app</finalName>
<plugins> <plugins>
<!--定义项目的编译环境--> <!--定义项目的编译环境-->
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<configuration> <configuration>
<source>${jdk.version}</source> <source>${jdk.version}</source>
<target>${jdk.version}</target> <target>${jdk.version}</target>
<encoding>UTF-8</encoding> <encoding>UTF-8</encoding>
</configuration> </configuration>
</plugin> </plugin>
<!--maven的测试用例插件建议跳过。--> <!--maven的测试用例插件建议跳过。-->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<skip>true</skip> <skip>true</skip>
</configuration> </configuration>
</plugin> </plugin>
<!--这个是springboot的默认编译插件他默认会把所有的文件打包成一个jar--> <!--这个是springboot的默认编译插件他默认会把所有的文件打包成一个jar-->
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<executions> <executions>
<execution> <execution>
<goals> <goals>
<goal>repackage</goal> <goal>repackage</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
<configuration> <configuration>
<mainClass>com.ruoyi.RuoYiApplication</mainClass> <mainClass>com.ruoyi.RuoYiApplication</mainClass>
<fork>true</fork> <fork>true</fork>
<addResources>true</addResources> <addResources>true</addResources>
<outputDirectory>${project.build.directory}/jar</outputDirectory> <outputDirectory>${project.build.directory}/jar</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
<!-- 打JAR包 --> <!-- 打JAR包 -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 将静态资源排除出jar包 --> <!-- 将静态资源排除出jar包 -->
<excludes> <excludes>
<exclude>*.*</exclude> <exclude>*.*</exclude>
<exclude>static/**</exclude> <exclude>static/**</exclude>
<exclude>view/**</exclude> <exclude>view/**</exclude>
<exclude>dataimport/**</exclude> <exclude>dataimport/**</exclude>
<exclude>scriptutil/**</exclude> <exclude>scriptutil/**</exclude>
<exclude>update/**</exclude> <exclude>update/**</exclude>
</excludes> </excludes>
<archive> <archive>
<manifest> <manifest>
<addClasspath>true</addClasspath> <addClasspath>true</addClasspath>
<!-- MANIFEST.MF 中 Class-Path 加入前缀 --> <!-- MANIFEST.MF 中 Class-Path 加入前缀 -->
<classpathPrefix>lib/</classpathPrefix> <classpathPrefix>lib/</classpathPrefix>
<!-- jar包不包含唯一版本标识 --> <!-- jar包不包含唯一版本标识 -->
<useUniqueVersions>false</useUniqueVersions> <useUniqueVersions>false</useUniqueVersions>
<!-- 指定启动类的包路径 --> <!-- 指定启动类的包路径 -->
<mainClass>com.kdayun.MainApplication</mainClass> <mainClass>com.kdayun.MainApplication</mainClass>
</manifest> </manifest>
<manifestEntries> <manifestEntries>
<!--MANIFEST.MF 中 Class-Path 加入资源文件目录 --> <!--MANIFEST.MF 中 Class-Path 加入资源文件目录 -->
<Class-Path>config/</Class-Path> <Class-Path>config/</Class-Path>
</manifestEntries> </manifestEntries>
</archive> </archive>
<!-- 指定打出的jar包路径 --> <!-- 指定打出的jar包路径 -->
<outputDirectory>${deployRoot}</outputDirectory> <outputDirectory>${deployRoot}</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
<!-- 该插件的作用是用于复制依赖的jar包到指定的文件夹里 --> <!-- 该插件的作用是用于复制依赖的jar包到指定的文件夹里 -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId> <artifactId>maven-dependency-plugin</artifactId>
<executions> <executions>
<execution> <execution>
<id>copy-dependencies</id> <id>copy-dependencies</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>
<goal>copy-dependencies</goal> <goal>copy-dependencies</goal>
</goals> </goals>
<configuration> <configuration>
<outputDirectory>${deployRoot}/lib/</outputDirectory> <outputDirectory>${deployRoot}/lib/</outputDirectory>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!-- 该插件的作用是用于复制指定的文件 --> <!-- 该插件的作用是用于复制指定的文件 -->
<plugin> <plugin>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<executions> <executions>
<execution> <!-- 复制配置文件 --> <execution> <!-- 复制配置文件 -->
<id>copy-resources</id> <id>copy-resources</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>
<goal>copy-resources</goal> <goal>copy-resources</goal>
</goals> </goals>
<configuration> <configuration>
<resources> <resources>
<resource> <resource>
<!-- 指定静态资源的路径 --> <!-- 指定静态资源的路径 -->
<directory>src/main/resources</directory> <directory>src/main/resources</directory>
<excludes> <excludes>
<exclude>run.bat</exclude> <exclude>run.bat</exclude>
</excludes> </excludes>
<!-- 指定需要复制的文件 --> <!-- 指定需要复制的文件 -->
<includes> <includes>
<include>*.*</include> <include>*.*</include>
<include>static/**</include> <include>static/**</include>
<include>view/**</include> <include>view/**</include>
<include>dataimport/**</include> <include>dataimport/**</include>
<include>scriptutil/**</include> <include>scriptutil/**</include>
<include>update/**</include> <include>update/**</include>
</includes> </includes>
</resource> </resource>
</resources> </resources>
<outputDirectory>${deployRoot}/config</outputDirectory> <outputDirectory>${deployRoot}/config</outputDirectory>
</configuration> </configuration>
</execution> </execution>
<execution> <execution>
<id>copy-run-bat</id> <id>copy-run-bat</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>
<goal>copy-resources</goal> <goal>copy-resources</goal>
</goals> </goals>
<configuration> <configuration>
<resources> <resources>
<resource> <resource>
<!-- 指定静态资源的路径 --> <!-- 指定静态资源的路径 -->
<directory>src/main/resources</directory> <directory>src/main/resources</directory>
<!-- 指定需要复制的文件 --> <!-- 指定需要复制的文件 -->
<includes> <includes>
<include>run.bat</include> <include>run.bat</include>
<include>run</include> <include>run</include>
<include>stop</include> <include>stop</include>
</includes> </includes>
</resource> </resource>
</resources> </resources>
<outputDirectory>${deployRoot}</outputDirectory> <outputDirectory>${deployRoot}</outputDirectory>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles> <profiles>
<profile> <profile>
<id>jdk-${jdk.version}</id> <id>jdk-${jdk.version}</id>
<!-- 另外一种激活方式 --> <!-- 另外一种激活方式 -->
<activation> <activation>
<activeByDefault>true</activeByDefault> <activeByDefault>true</activeByDefault>
<jdk>${jdk.version}</jdk> <jdk>${jdk.version}</jdk>
</activation> </activation>
<properties> <properties>
<maven.compiler.source>${jdk.version}</maven.compiler.source> <maven.compiler.source>${jdk.version}</maven.compiler.source>
<maven.compiler.target>${jdk.version}</maven.compiler.target> <maven.compiler.target>${jdk.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${jdk.version}</maven.compiler.compilerVersion> <maven.compiler.compilerVersion>${jdk.version}</maven.compiler.compilerVersion>
</properties> </properties>
</profile> </profile>
</profiles> </profiles>
</project> </project>

View File

@ -1,35 +1,35 @@
package com.kdayun; package com.kdayun;
import java.nio.charset.Charset; import java.nio.charset.Charset;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import com.kdayun.z1.core.common.KdPrintStream; import com.kdayun.z1.core.common.KdPrintStream;
import com.kdayun.z1.core.framework.ApplicationContextHolder; import com.kdayun.z1.core.framework.ApplicationContextHolder;
@ServletComponentScan @ServletComponentScan
@ComponentScan(basePackages = { "com.kdayun.admin", "com.kdayun.boot", "com.kdayun.z1", "com.kdayun.manager", @ComponentScan(basePackages = { "com.kdayun.admin", "com.kdayun.boot", "com.kdayun.z1", "com.kdayun.manager",
"com.kdayun.report", "com.kdayun.baidu", "com.kdayun.wecom", "com.kdayun.wechat","com.kdayun.app", "com.kdayun.home", "com.kdayun.api" }) "com.kdayun.report", "com.kdayun.baidu", "com.kdayun.wecom", "com.kdayun.wechat","com.kdayun.app", "com.kdayun.home", "com.kdayun.api" })
@SpringBootApplication @SpringBootApplication
@MapperScan(basePackages = { "com.kdayun.*.mapper" }) @MapperScan(basePackages = { "com.kdayun.*.mapper" })
public class MainApplication extends SpringBootServletInitializer { public class MainApplication extends SpringBootServletInitializer {
public static void main(String[] args) { public static void main(String[] args) {
System.setOut(new KdPrintStream(System.out)); System.setOut(new KdPrintStream(System.out));
System.setErr(new KdPrintStream(System.err)); System.setErr(new KdPrintStream(System.err));
SpringApplication springApplication = new SpringApplication(MainApplication.class, ApplicationContextHolder.class); SpringApplication springApplication = new SpringApplication(MainApplication.class, ApplicationContextHolder.class);
System.getProperties().setProperty("oracle.jdbc.J2EE13Compliant", "true"); System.getProperties().setProperty("oracle.jdbc.J2EE13Compliant", "true");
System.out.println("file.encoding:" + System.getProperty("file.encoding")); System.out.println("file.encoding:" + System.getProperty("file.encoding"));
System.out.println("defaultCharset:" + Charset.defaultCharset()); System.out.println("defaultCharset:" + Charset.defaultCharset());
springApplication.run(args); springApplication.run(args);
} }
} }

View File

@ -1,6 +1,6 @@
api: api:
#启动api编写功能,由于api开发是会存在注入的风险.只建议在开发环境内开启,生成环境上建议关闭关闭此功能. #启动api编写功能,由于api开发是会存在注入的风险.只建议在开发环境内开启,生成环境上建议关闭关闭此功能.
enabled: false enabled: false
#是否启动api加密 数据库和网络传输都会都会以加密方式 #是否启动api加密 数据库和网络传输都会都会以加密方式
encrypt: encrypt:
enable: true enable: true

View File

@ -1,8 +1,8 @@
apidoc: apidoc:
#启动在线api文档 #启动在线api文档
enabled: false enabled: false
docket: docket:
user: user:
title: 平台模块API title: 平台模块API
base-package: com.kdayun.bbjc.controller base-package: com.kdayun.bbjc.controller

View File

@ -1,16 +1,16 @@
spring: spring:
datasource: datasource:
dbs: dbs:
enable: false enable: false
datasource: datasource:
db1: db1:
url: jdbc:mysql://127.0.0.1:3706/dev?useSSL=true&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true url: jdbc:mysql://127.0.0.1:3706/dev?useSSL=true&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
username: kd username: kd
password: kd123456 password: kd123456
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
db2: db2:
url: jdbc:jtds:sqlserver://127.0.0.1:1433/dev url: jdbc:jtds:sqlserver://127.0.0.1:1433/dev
username: sa username: sa
password: kd123456 password: kd123456
driver-class-name: net.sourceforge.jtds.jdbc.Driver driver-class-name: net.sourceforge.jtds.jdbc.Driver
validationQuery: SELECT 1A04536DED47F4716B44B18D2CD3A2521 validationQuery: SELECT 1A04536DED47F4716B44B18D2CD3A2521

View File

@ -1,13 +1,13 @@
security: security:
# 表单模型在网络网络上是否要开启加密加传输 # 表单模型在网络网络上是否要开启加密加传输
# enable : true 启用(默认), false 启用加密 , aseKey 加密的aes key , aseIv aes加密的 # enable : true 启用(默认), false 启用加密 , aseKey 加密的aes key , aseIv aes加密的
# encrypt: # encrypt:
# enable: true # enable: true
# aseKey: C20A84DAAB331419 # aseKey: C20A84DAAB331419
# aseIv: 3D6B046E3A0148FD # aseIv: 3D6B046E3A0148FD
# sm2加密算法的私钥,密钥 # sm2加密算法的私钥,密钥
sm2: sm2:
publickey: 04745df4d87581af5643a50b27abe47ccd4bb416602499b50e440ddbd16d130c70e85e3aa1b522b0008b9398ee696b5cb3e1df37fb3f1e7c497df3bd8766d73e4d publickey: 04745df4d87581af5643a50b27abe47ccd4bb416602499b50e440ddbd16d130c70e85e3aa1b522b0008b9398ee696b5cb3e1df37fb3f1e7c497df3bd8766d73e4d
privatekey: 92e8627122535ed1f6f8d42be39a23dbc7dc0cf6ba41dad4de98f552a65fb80f privatekey: 92e8627122535ed1f6f8d42be39a23dbc7dc0cf6ba41dad4de98f552a65fb80f

View File

@ -1,15 +1,15 @@
proxy: proxy:
urls: urls:
# 将/cgi-bin/以下地址转发到企业微信微信服务器 反向代理避免前端浏览器的跨区异步请求 # 将/cgi-bin/以下地址转发到企业微信微信服务器 反向代理避免前端浏览器的跨区异步请求
- servlet_url: /cgi-bin/* - servlet_url: /cgi-bin/*
target_url: https://qyapi.weixin.qq.com/cgi-bin target_url: https://qyapi.weixin.qq.com/cgi-bin
logging_enabled: false logging_enabled: false
- servlet_url: /baidu-test/* - servlet_url: /baidu-test/*
target_url: https://baidu.com target_url: https://baidu.com
logging_enabled: false logging_enabled: false
#百度云代理 否则会出现跨域问题. #百度云代理 否则会出现跨域问题.
- servlet_url: /rest/* - servlet_url: /rest/*
target_url: https://aip.baidubce.com/rest target_url: https://aip.baidubce.com/rest
logging_enabled: false logging_enabled: false

View File

@ -1,14 +1,14 @@
#(安全测评需要开启) #(安全测评需要开启)
# enabled true 启用/false 不启用; # enabled true 启用/false 不启用;
# includes:需要处理的url标志字符串 逗号隔开 ,默认为空则是全部要处理; # includes:需要处理的url标志字符串 逗号隔开 ,默认为空则是全部要处理;
# excludes不需要处理的url标志字符串 逗号隔开 默认为空; # excludes不需要处理的url标志字符串 逗号隔开 默认为空;
# urlPatterns: 需要xss过滤器处理的url 逗号隔开 默认是 /* # urlPatterns: 需要xss过滤器处理的url 逗号隔开 默认是 /*
# excludeUrl: 某个url无需xss的过滤 # excludeUrl: 某个url无需xss的过滤
# #
security: security:
xss: xss:
enabled: true enabled: true
includes: includes:
excludes: img excludes: img
urlPatterns: /* urlPatterns: /*
excludeUrl: /manager/coremodeldesign/modify,/manager/coredatasource/post,/manager/coredatasource/processModel,/manager/coredatasource/querySqlC excludeUrl: /manager/coremodeldesign/modify,/manager/coredatasource/post,/manager/coredatasource/processModel,/manager/coredatasource/querySqlC

View File

@ -0,0 +1,13 @@
_ _
| | | |
| | ____| | __ _ _ _ _ _ _ __ ___ ___ _ __ ___
| |/ / _` |/ _` | | | | | | | '_ \ / __/ _ \| '_ ` _ \
| < (_| | (_| | |_| | |_| | | | || (_| (_) | | | | | |
|_|\_\__,_|\__,_|\__, |\__,_|_| |_(_)___\___/|_| |_| |_|
__/ |
|___/
=> Spring Boot :: ${spring-boot.version}
=> Home site :: http://kdayun.com
=> Help site :: http://help.kdayun.com

View File

@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
# 快搭科技-业务服务器 # 快搭科技-业务服务器
# chkconfig: 345 91 10 # chkconfig: 345 91 10
# description:该服务器用于业务数据处理 # description:该服务器用于业务数据处理
# processname: java # processname: java
# #
export JRE_HOME=/usr/local/jdk export JRE_HOME=/usr/local/jdk
export JAVA_HOME=/usr/local/jdk export JAVA_HOME=/usr/local/jdk
nohup $JAVA_HOME/bin/java -Dfile.encoding=utf-8 -jar kdayun-app.jar >/dev/null nohup $JAVA_HOME/bin/java -Dfile.encoding=utf-8 -jar kdayun-app.jar >/dev/null

View File

@ -1,2 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1655960276361" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8858" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); } <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1655960276361" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8858" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M917.333333 874.666667h-810.666666a42.666667 42.666667 0 0 0 0 85.333333h810.666666a42.666667 42.666667 0 0 0 0-85.333333zM279.466667 810.666667h465.066666a213.333333 213.333333 0 0 0 213.333334-213.333334V277.333333a213.333333 213.333333 0 0 0-213.333334-213.333333H279.466667a213.333333 213.333333 0 0 0-213.333334 213.333333V597.333333a213.333333 213.333333 0 0 0 213.333334 213.333334z m-128-533.333334a128 128 0 0 1 128-128h465.066666a128 128 0 0 1 128 128V597.333333a128 128 0 0 1-128 128H279.466667a128 128 0 0 1-128-128z" fill="#bfbfbf" p-id="8859"></path><path d="M284.16 654.506667a42.666667 42.666667 0 0 0 23.04 6.826666A42.666667 42.666667 0 0 0 341.333333 640a200.533333 200.533333 0 0 1 336.64 0 42.666667 42.666667 0 1 0 70.826667-47.786667 285.866667 285.866667 0 0 0-145.493333-110.933333 158.72 158.72 0 1 0-183.466667 0A285.44 285.44 0 0 0 271.36 597.333333a42.666667 42.666667 0 0 0 12.8 57.173334zM512 277.333333a73.813333 73.813333 0 1 1-73.386667 73.386667A73.386667 73.386667 0 0 1 512 277.333333z" fill="#bfbfbf" p-id="8860"></path></svg> </style></defs><path d="M917.333333 874.666667h-810.666666a42.666667 42.666667 0 0 0 0 85.333333h810.666666a42.666667 42.666667 0 0 0 0-85.333333zM279.466667 810.666667h465.066666a213.333333 213.333333 0 0 0 213.333334-213.333334V277.333333a213.333333 213.333333 0 0 0-213.333334-213.333333H279.466667a213.333333 213.333333 0 0 0-213.333334 213.333333V597.333333a213.333333 213.333333 0 0 0 213.333334 213.333334z m-128-533.333334a128 128 0 0 1 128-128h465.066666a128 128 0 0 1 128 128V597.333333a128 128 0 0 1-128 128H279.466667a128 128 0 0 1-128-128z" fill="#bfbfbf" p-id="8859"></path><path d="M284.16 654.506667a42.666667 42.666667 0 0 0 23.04 6.826666A42.666667 42.666667 0 0 0 341.333333 640a200.533333 200.533333 0 0 1 336.64 0 42.666667 42.666667 0 1 0 70.826667-47.786667 285.866667 285.866667 0 0 0-145.493333-110.933333 158.72 158.72 0 1 0-183.466667 0A285.44 285.44 0 0 0 271.36 597.333333a42.666667 42.666667 0 0 0 12.8 57.173334zM512 277.333333a73.813333 73.813333 0 1 1-73.386667 73.386667A73.386667 73.386667 0 0 1 512 277.333333z" fill="#bfbfbf" p-id="8860"></path></svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -1,2 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1655960584294" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11114" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); } <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1655960584294" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11114" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M336.1 696.6H929v141.5H336.1V696.6z m0-244.3H929v146.2H336.1V452.3z m0-243.2H929v135.6H336.1V209.1z m-237 491.8h118.4v141.5H99.1V700.9z m0-248.6h118.4v146.2H99.1V452.3z m0-243.3h118.4v135.6H99.1V209z" fill="#bfbfbf" p-id="11115"></path></svg> </style></defs><path d="M336.1 696.6H929v141.5H336.1V696.6z m0-244.3H929v146.2H336.1V452.3z m0-243.2H929v135.6H336.1V209.1z m-237 491.8h118.4v141.5H99.1V700.9z m0-248.6h118.4v146.2H99.1V452.3z m0-243.3h118.4v135.6H99.1V209z" fill="#bfbfbf" p-id="11115"></path></svg>

Before

Width:  |  Height:  |  Size: 933 B

After

Width:  |  Height:  |  Size: 934 B

View File

@ -1,2 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1655960845738" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16428" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); } <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1655960845738" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16428" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M521.644581 99.902439c84.917073 0 149.853659 64.936585 149.853659 149.853659s-64.936585 149.853659-149.853659 149.853658-149.853659-64.936585-149.853658-149.853658 69.931707-149.853659 149.853658-149.853659m0-99.902439c-139.863415 0-249.756098 109.892683-249.756097 249.756098s109.892683 249.756098 249.756097 249.756097 249.756098-109.892683 249.756098-249.756097-109.892683-249.756098-249.756098-249.756098zM406.756777 1024H147.010435c-74.926829 0-134.868293-59.941463-134.868293-139.863415V799.219512c0-124.878049 99.902439-224.780488 224.780488-224.780488H711.459216c29.970732 0 49.95122 19.980488 49.951219 49.95122s-19.980488 49.95122-49.951219 49.951219H236.92263C166.990923 674.341463 112.044581 734.282927 112.044581 799.219512v89.912195c0 19.980488 14.985366 39.960976 34.965854 39.960976h259.746342c29.970732 0 49.95122 19.980488 49.951219 49.951219s-19.980488 44.956098-49.951219 44.956098z" p-id="16429" fill="#bfbfbf"></path><path d="M996.181167 729.287805c-19.980488-19.980488-49.95122-19.980488-69.931707 0l-174.829269 174.829268-109.892683-104.897561c-19.980488-19.980488-49.95122-19.980488-69.931707 0-19.980488 19.980488-19.980488 49.95122 0 69.931708l139.863415 139.863414s4.995122 4.995122 9.990244 4.995122 4.995122 4.995122 9.990243 4.995122h39.960976c4.995122 0 4.995122-4.995122 9.990244-4.995122s4.995122-4.995122 9.990244-4.995122l209.795122-209.795122c14.985366-19.980488 14.985366-49.95122-4.995122-69.931707z" p-id="16430" fill="#bfbfbf"></path></svg> </style></defs><path d="M521.644581 99.902439c84.917073 0 149.853659 64.936585 149.853659 149.853659s-64.936585 149.853659-149.853659 149.853658-149.853659-64.936585-149.853658-149.853658 69.931707-149.853659 149.853658-149.853659m0-99.902439c-139.863415 0-249.756098 109.892683-249.756097 249.756098s109.892683 249.756098 249.756097 249.756097 249.756098-109.892683 249.756098-249.756097-109.892683-249.756098-249.756098-249.756098zM406.756777 1024H147.010435c-74.926829 0-134.868293-59.941463-134.868293-139.863415V799.219512c0-124.878049 99.902439-224.780488 224.780488-224.780488H711.459216c29.970732 0 49.95122 19.980488 49.951219 49.95122s-19.980488 49.95122-49.951219 49.951219H236.92263C166.990923 674.341463 112.044581 734.282927 112.044581 799.219512v89.912195c0 19.980488 14.985366 39.960976 34.965854 39.960976h259.746342c29.970732 0 49.95122 19.980488 49.951219 49.951219s-19.980488 44.956098-49.951219 44.956098z" p-id="16429" fill="#bfbfbf"></path><path d="M996.181167 729.287805c-19.980488-19.980488-49.95122-19.980488-69.931707 0l-174.829269 174.829268-109.892683-104.897561c-19.980488-19.980488-49.95122-19.980488-69.931707 0-19.980488 19.980488-19.980488 49.95122 0 69.931708l139.863415 139.863414s4.995122 4.995122 9.990244 4.995122 4.995122 4.995122 9.990243 4.995122h39.960976c4.995122 0 4.995122-4.995122 9.990244-4.995122s4.995122-4.995122 9.990244-4.995122l209.795122-209.795122c14.985366-19.980488 14.985366-49.95122-4.995122-69.931707z" p-id="16430" fill="#bfbfbf"></path></svg>

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -1,2 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1655960055895" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5653" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); } <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1655960055895" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5653" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M870.4 12.8H153.6A140.902 140.902 0 0 0 12.8 153.6v716.8a140.902 140.902 0 0 0 140.8 140.8h504.32a38.4 38.4 0 0 0 0-76.8H153.6c-35.277 0-64-28.723-64-64V153.6c0-35.277 28.723-64 64-64h716.8c35.277 0 64 28.723 64 64v716.8c0 35.277-28.723 64-64 64h-11.469a38.4 38.4 0 0 0 0 76.8H870.4a140.902 140.902 0 0 0 140.8-140.8V153.6A140.902 140.902 0 0 0 870.4 12.8z" p-id="5654" fill="#bfbfbf"></path><path d="M243.558 294.4h389.888a38.4 38.4 0 0 0 0-76.8H243.558a38.4 38.4 0 0 0 0 76.8z m486.4 179.2H242.842a38.4 38.4 0 0 0 0 76.8h487.116a38.4 38.4 0 0 0 0-76.8z m-486.4 256a38.4 38.4 0 0 0 0 76.8h192.973a38.4 38.4 0 0 0 0-76.8H243.558z m541.543-512h-3.943c-21.196 0-36.403 17.203-36.403 38.4s19.2 38.4 40.397 38.4a38.4 38.4 0 1 0-0.051-76.8z" p-id="5655" fill="#bfbfbf"></path></svg> </style></defs><path d="M870.4 12.8H153.6A140.902 140.902 0 0 0 12.8 153.6v716.8a140.902 140.902 0 0 0 140.8 140.8h504.32a38.4 38.4 0 0 0 0-76.8H153.6c-35.277 0-64-28.723-64-64V153.6c0-35.277 28.723-64 64-64h716.8c35.277 0 64 28.723 64 64v716.8c0 35.277-28.723 64-64 64h-11.469a38.4 38.4 0 0 0 0 76.8H870.4a140.902 140.902 0 0 0 140.8-140.8V153.6A140.902 140.902 0 0 0 870.4 12.8z" p-id="5654" fill="#bfbfbf"></path><path d="M243.558 294.4h389.888a38.4 38.4 0 0 0 0-76.8H243.558a38.4 38.4 0 0 0 0 76.8z m486.4 179.2H242.842a38.4 38.4 0 0 0 0 76.8h487.116a38.4 38.4 0 0 0 0-76.8z m-486.4 256a38.4 38.4 0 0 0 0 76.8h192.973a38.4 38.4 0 0 0 0-76.8H243.558z m541.543-512h-3.943c-21.196 0-36.403 17.203-36.403 38.4s19.2 38.4 40.397 38.4a38.4 38.4 0 1 0-0.051-76.8z" p-id="5655" fill="#bfbfbf"></path></svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1651567902828" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2067" width="32" height="32" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); } <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1651567902828" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2067" width="32" height="32" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M384 912h496c17.7 0 32-14.3 32-32V340H384v572zM880 112H384v164h528V144c0-17.7-14.3-32-32-32zM112 144v736c0 17.7 14.3 32 32 32h176V112H144c-17.7 0-32 14.3-32 32z" p-id="2068"></path></svg> </style></defs><path d="M384 912h496c17.7 0 32-14.3 32-32V340H384v572zM880 112H384v164h528V144c0-17.7-14.3-32-32-32zM112 144v736c0 17.7 14.3 32 32 32h176V112H144c-17.7 0-32 14.3-32 32z" p-id="2068"></path></svg>

Before

Width:  |  Height:  |  Size: 877 B

After

Width:  |  Height:  |  Size: 878 B

View File

@ -1,2 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1651568047924" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6840" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); } <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1651568047924" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6840" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M938.666667 426.666667v426.666666a42.666667 42.666667 0 0 1-42.666667 42.666667H128a42.666667 42.666667 0 0 1-42.666667-42.666667V426.666667h853.333334z m-42.666667-298.666667a42.666667 42.666667 0 0 1 42.666667 42.666667v170.666666H85.333333V170.666667a42.666667 42.666667 0 0 1 42.666667-42.666667h768z" p-id="6841"></path></svg> </style></defs><path d="M938.666667 426.666667v426.666666a42.666667 42.666667 0 0 1-42.666667 42.666667H128a42.666667 42.666667 0 0 1-42.666667-42.666667V426.666667h853.333334z m-42.666667-298.666667a42.666667 42.666667 0 0 1 42.666667 42.666667v170.666666H85.333333V170.666667a42.666667 42.666667 0 0 1 42.666667-42.666667h768z" p-id="6841"></path></svg>

Before

Width:  |  Height:  |  Size: 1021 B

After

Width:  |  Height:  |  Size: 1022 B

View File

@ -1,13 +1,13 @@
const COMMON_NAMESPACE = "Common"; const COMMON_NAMESPACE = "Common";
export const OK = `${COMMON_NAMESPACE}.Ok`; export const OK = `${COMMON_NAMESPACE}.Ok`;
export const CANCEL = `${COMMON_NAMESPACE}.Cancel`; export const CANCEL = `${COMMON_NAMESPACE}.Cancel`;
export const ERROR = `${COMMON_NAMESPACE}.Error`; export const ERROR = `${COMMON_NAMESPACE}.Error`;
export const TITLE = `${COMMON_NAMESPACE}.Title`; export const TITLE = `${COMMON_NAMESPACE}.Title`;
export const BUTTON = `${COMMON_NAMESPACE}.Button`; export const BUTTON = `${COMMON_NAMESPACE}.Button`;
export const TABLE = `${COMMON_NAMESPACE}.Table`; export const TABLE = `${COMMON_NAMESPACE}.Table`;
export const READONLY = `${COMMON_NAMESPACE}.Readonly`; export const READONLY = `${COMMON_NAMESPACE}.Readonly`;

View File

@ -1,9 +1,9 @@
import * as C from './constants'; import * as C from './constants';
const lang = { const lang = {
"en-us": { "en-us": {
[C.OK]: "Ok" [C.OK]: "Ok"
} }
} }
window["kdayun.lang"] = lang; window["kdayun.lang"] = lang;

View File

@ -1,11 +1,11 @@
import * as C from './constants.js'; import * as C from './constants.js';
const lang = { const lang = {
"zh-cn": { "zh-cn": {
[C.OK]: "确定", [C.OK]: "确定",
[C.READONLY]: "只读", [C.READONLY]: "只读",
[C.TITLE]: "标题" [C.TITLE]: "标题"
} }
} }
window["kdayun.lang"] = lang; window["kdayun.lang"] = lang;

View File

@ -1,18 +1,18 @@
!function(t,n){"object"==typeof exports?module.exports=exports=n():"function"==typeof define&&define.amd?define([],n):t.CryptoJS=n()}(this,function(){var t=t||function(t,n){var i=Object.create||function(){function t(){}return function(n){var i;return t.prototype=n,i=new t,t.prototype=null,i}}(),e={},r=e.lib={},o=r.Base=function(){return{extend:function(t){var n=i(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=r.WordArray=o.extend({init:function(t,i){t=this.words=t||[],i!=n?this.sigBytes=i:this.sigBytes=4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var n=this.words,i=t.words,e=this.sigBytes,r=t.sigBytes;if(this.clamp(),e%4)for(var o=0;o<r;o++){var s=i[o>>>2]>>>24-o%4*8&255;n[e+o>>>2]|=s<<24-(e+o)%4*8}else for(var o=0;o<r;o+=4)n[e+o>>>2]=i[o>>>2];return this.sigBytes+=r,this},clamp:function(){var n=this.words,i=this.sigBytes;n[i>>>2]&=4294967295<<32-i%4*8,n.length=t.ceil(i/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(n){for(var i,e=[],r=function(n){var n=n,i=987654321,e=4294967295;return function(){i=36969*(65535&i)+(i>>16)&e,n=18e3*(65535&n)+(n>>16)&e;var r=(i<<16)+n&e;return r/=4294967296,r+=.5,r*(t.random()>.5?1:-1)}},o=0;o<n;o+=4){var a=r(4294967296*(i||t.random()));i=987654071*a(),e.push(4294967296*a()|0)}return new s.init(e,n)}}),a=e.enc={},c=a.Hex={stringify:function(t){for(var n=t.words,i=t.sigBytes,e=[],r=0;r<i;r++){var o=n[r>>>2]>>>24-r%4*8&255;e.push((o>>>4).toString(16)),e.push((15&o).toString(16))}return e.join("")},parse:function(t){for(var n=t.length,i=[],e=0;e<n;e+=2)i[e>>>3]|=parseInt(t.substr(e,2),16)<<24-e%8*4;return new s.init(i,n/2)}},u=a.Latin1={stringify:function(t){for(var n=t.words,i=t.sigBytes,e=[],r=0;r<i;r++){var o=n[r>>>2]>>>24-r%4*8&255;e.push(String.fromCharCode(o))}return e.join("")},parse:function(t){for(var n=t.length,i=[],e=0;e<n;e++)i[e>>>2]|=(255&t.charCodeAt(e))<<24-e%4*8;return new s.init(i,n)}},f=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},h=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var i=this._data,e=i.words,r=i.sigBytes,o=this.blockSize,a=4*o,c=r/a;c=n?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var u=c*o,f=t.min(4*u,r);if(u){for(var h=0;h<u;h+=o)this._doProcessBlock(e,h);var p=e.splice(0,u);i.sigBytes-=f}return new s.init(p,f)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),p=(r.Hasher=h.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var n=this._doFinalize();return n},blockSize:16,_createHelper:function(t){return function(n,i){return new t.init(i).finalize(n)}},_createHmacHelper:function(t){return function(n,i){return new p.HMAC.init(t,i).finalize(n)}}}),e.algo={});return e}(Math);return t}); !function(t,n){"object"==typeof exports?module.exports=exports=n():"function"==typeof define&&define.amd?define([],n):t.CryptoJS=n()}(this,function(){var t=t||function(t,n){var i=Object.create||function(){function t(){}return function(n){var i;return t.prototype=n,i=new t,t.prototype=null,i}}(),e={},r=e.lib={},o=r.Base=function(){return{extend:function(t){var n=i(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=r.WordArray=o.extend({init:function(t,i){t=this.words=t||[],i!=n?this.sigBytes=i:this.sigBytes=4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var n=this.words,i=t.words,e=this.sigBytes,r=t.sigBytes;if(this.clamp(),e%4)for(var o=0;o<r;o++){var s=i[o>>>2]>>>24-o%4*8&255;n[e+o>>>2]|=s<<24-(e+o)%4*8}else for(var o=0;o<r;o+=4)n[e+o>>>2]=i[o>>>2];return this.sigBytes+=r,this},clamp:function(){var n=this.words,i=this.sigBytes;n[i>>>2]&=4294967295<<32-i%4*8,n.length=t.ceil(i/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(n){for(var i,e=[],r=function(n){var n=n,i=987654321,e=4294967295;return function(){i=36969*(65535&i)+(i>>16)&e,n=18e3*(65535&n)+(n>>16)&e;var r=(i<<16)+n&e;return r/=4294967296,r+=.5,r*(t.random()>.5?1:-1)}},o=0;o<n;o+=4){var a=r(4294967296*(i||t.random()));i=987654071*a(),e.push(4294967296*a()|0)}return new s.init(e,n)}}),a=e.enc={},c=a.Hex={stringify:function(t){for(var n=t.words,i=t.sigBytes,e=[],r=0;r<i;r++){var o=n[r>>>2]>>>24-r%4*8&255;e.push((o>>>4).toString(16)),e.push((15&o).toString(16))}return e.join("")},parse:function(t){for(var n=t.length,i=[],e=0;e<n;e+=2)i[e>>>3]|=parseInt(t.substr(e,2),16)<<24-e%8*4;return new s.init(i,n/2)}},u=a.Latin1={stringify:function(t){for(var n=t.words,i=t.sigBytes,e=[],r=0;r<i;r++){var o=n[r>>>2]>>>24-r%4*8&255;e.push(String.fromCharCode(o))}return e.join("")},parse:function(t){for(var n=t.length,i=[],e=0;e<n;e++)i[e>>>2]|=(255&t.charCodeAt(e))<<24-e%4*8;return new s.init(i,n)}},f=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},h=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var i=this._data,e=i.words,r=i.sigBytes,o=this.blockSize,a=4*o,c=r/a;c=n?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var u=c*o,f=t.min(4*u,r);if(u){for(var h=0;h<u;h+=o)this._doProcessBlock(e,h);var p=e.splice(0,u);i.sigBytes-=f}return new s.init(p,f)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),p=(r.Hasher=h.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var n=this._doFinalize();return n},blockSize:16,_createHelper:function(t){return function(n,i){return new t.init(i).finalize(n)}},_createHmacHelper:function(t){return function(n,i){return new p.HMAC.init(t,i).finalize(n)}}}),e.algo={});return e}(Math);return t});
//# sourceMappingURL=core.min.js.map //# sourceMappingURL=core.min.js.map
!function(e,t,i){"object"==typeof exports?module.exports=exports=t(require("./core.min"),require("./sha1.min"),require("./hmac.min")):"function"==typeof define&&define.amd?define(["./core.min","./sha1.min","./hmac.min"],t):t(e.CryptoJS)}(this,function(e){return function(){var t=e,i=t.lib,r=i.Base,n=i.WordArray,o=t.algo,a=o.MD5,c=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var i=this.cfg,r=i.hasher.create(),o=n.create(),a=o.words,c=i.keySize,f=i.iterations;a.length<c;){s&&r.update(s);var s=r.update(e).finalize(t);r.reset();for(var u=1;u<f;u++)s=r.finalize(s),r.reset();o.concat(s)}return o.sigBytes=4*c,o}});t.EvpKDF=function(e,t,i){return c.create(i).compute(e,t)}}(),e.EvpKDF}); !function(e,t,i){"object"==typeof exports?module.exports=exports=t(require("./core.min"),require("./sha1.min"),require("./hmac.min")):"function"==typeof define&&define.amd?define(["./core.min","./sha1.min","./hmac.min"],t):t(e.CryptoJS)}(this,function(e){return function(){var t=e,i=t.lib,r=i.Base,n=i.WordArray,o=t.algo,a=o.MD5,c=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var i=this.cfg,r=i.hasher.create(),o=n.create(),a=o.words,c=i.keySize,f=i.iterations;a.length<c;){s&&r.update(s);var s=r.update(e).finalize(t);r.reset();for(var u=1;u<f;u++)s=r.finalize(s),r.reset();o.concat(s)}return o.sigBytes=4*c,o}});t.EvpKDF=function(e,t,i){return c.create(i).compute(e,t)}}(),e.EvpKDF});
//# sourceMappingURL=evpkdf.min.js.map //# sourceMappingURL=evpkdf.min.js.map
!function(r,e){"object"==typeof exports?module.exports=exports=e(require("./core.min")):"function"==typeof define&&define.amd?define(["./core.min"],e):e(r.CryptoJS)}(this,function(r){return function(){function e(r,e,t){for(var n=[],i=0,o=0;o<e;o++)if(o%4){var f=t[r.charCodeAt(o-1)]<<o%4*2,c=t[r.charCodeAt(o)]>>>6-o%4*2;n[i>>>2]|=(f|c)<<24-i%4*8,i++}return a.create(n,i)}var t=r,n=t.lib,a=n.WordArray,i=t.enc;i.Base64={stringify:function(r){var e=r.words,t=r.sigBytes,n=this._map;r.clamp();for(var a=[],i=0;i<t;i+=3)for(var o=e[i>>>2]>>>24-i%4*8&255,f=e[i+1>>>2]>>>24-(i+1)%4*8&255,c=e[i+2>>>2]>>>24-(i+2)%4*8&255,s=o<<16|f<<8|c,h=0;h<4&&i+.75*h<t;h++)a.push(n.charAt(s>>>6*(3-h)&63));var p=n.charAt(64);if(p)for(;a.length%4;)a.push(p);return a.join("")},parse:function(r){var t=r.length,n=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var i=0;i<n.length;i++)a[n.charCodeAt(i)]=i}var o=n.charAt(64);if(o){var f=r.indexOf(o);f!==-1&&(t=f)}return e(r,t,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64}); !function(r,e){"object"==typeof exports?module.exports=exports=e(require("./core.min")):"function"==typeof define&&define.amd?define(["./core.min"],e):e(r.CryptoJS)}(this,function(r){return function(){function e(r,e,t){for(var n=[],i=0,o=0;o<e;o++)if(o%4){var f=t[r.charCodeAt(o-1)]<<o%4*2,c=t[r.charCodeAt(o)]>>>6-o%4*2;n[i>>>2]|=(f|c)<<24-i%4*8,i++}return a.create(n,i)}var t=r,n=t.lib,a=n.WordArray,i=t.enc;i.Base64={stringify:function(r){var e=r.words,t=r.sigBytes,n=this._map;r.clamp();for(var a=[],i=0;i<t;i+=3)for(var o=e[i>>>2]>>>24-i%4*8&255,f=e[i+1>>>2]>>>24-(i+1)%4*8&255,c=e[i+2>>>2]>>>24-(i+2)%4*8&255,s=o<<16|f<<8|c,h=0;h<4&&i+.75*h<t;h++)a.push(n.charAt(s>>>6*(3-h)&63));var p=n.charAt(64);if(p)for(;a.length%4;)a.push(p);return a.join("")},parse:function(r){var t=r.length,n=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var i=0;i<n.length;i++)a[n.charCodeAt(i)]=i}var o=n.charAt(64);if(o){var f=r.indexOf(o);f!==-1&&(t=f)}return e(r,t,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64});
//# sourceMappingURL=enc-base64.min.js.map //# sourceMappingURL=enc-base64.min.js.map
!function(e,t,r){"object"==typeof exports?module.exports=exports=t(require("./core.min"),require("./evpkdf.min")):"function"==typeof define&&define.amd?define(["./core.min","./evpkdf.min"],t):t(e.CryptoJS)}(this,function(e){e.lib.Cipher||function(t){var r=e,i=r.lib,n=i.Base,c=i.WordArray,o=i.BufferedBlockAlgorithm,s=r.enc,a=(s.Utf8,s.Base64),f=r.algo,p=f.EvpKDF,d=i.Cipher=o.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?B:x}return function(t){return{encrypt:function(r,i,n){return e(i).encrypt(t,r,i,n)},decrypt:function(r,i,n){return e(i).decrypt(t,r,i,n)}}}}()}),h=(i.StreamCipher=d.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),r.mode={}),u=i.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),l=h.CBC=function(){function e(e,r,i){var n=this._iv;if(n){var c=n;this._iv=t}else var c=this._prevBlock;for(var o=0;o<i;o++)e[r+o]^=c[o]}var r=u.extend();return r.Encryptor=r.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize;e.call(this,t,r,n),i.encryptBlock(t,r),this._prevBlock=t.slice(r,r+n)}}),r.Decryptor=r.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize,c=t.slice(r,r+n);i.decryptBlock(t,r),e.call(this,t,r,n),this._prevBlock=c}}),r}(),_=r.pad={},v=_.Pkcs7={pad:function(e,t){for(var r=4*t,i=r-e.sigBytes%r,n=i<<24|i<<16|i<<8|i,o=[],s=0;s<i;s+=4)o.push(n);var a=c.create(o,i);e.concat(a)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},y=(i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:l,padding:v}),reset:function(){d.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=r.createEncryptor;else{var i=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,t&&t.words):(this._mode=i.call(r,this,t&&t.words),this._mode.__creator=i)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),i.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=r.format={},k=m.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var i=c.create([1398893684,1701076831]).concat(r).concat(t);else var i=t;return i.toString(a)},parse:function(e){var t=a.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var i=c.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return y.create({ciphertext:t,salt:i})}},x=i.SerializableCipher=n.extend({cfg:n.extend({format:k}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=e.createEncryptor(r,i),c=n.finalize(t),o=n.cfg;return y.create({ciphertext:c,key:r,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=e.createDecryptor(r,i).finalize(t.ciphertext);return n},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),g=r.kdf={},S=g.OpenSSL={execute:function(e,t,r,i){i||(i=c.random(8));var n=p.create({keySize:t+r}).compute(e,i),o=c.create(n.words.slice(t),4*r);return n.sigBytes=4*t,y.create({key:n,iv:o,salt:i})}},B=i.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:S}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=i.kdf.execute(r,e.keySize,e.ivSize);i.iv=n.iv;var c=x.encrypt.call(this,e,t,n.key,i);return c.mixIn(n),c},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=i.kdf.execute(r,e.keySize,e.ivSize,t.salt);i.iv=n.iv;var c=x.decrypt.call(this,e,t,n.key,i);return c}})}()}); !function(e,t,r){"object"==typeof exports?module.exports=exports=t(require("./core.min"),require("./evpkdf.min")):"function"==typeof define&&define.amd?define(["./core.min","./evpkdf.min"],t):t(e.CryptoJS)}(this,function(e){e.lib.Cipher||function(t){var r=e,i=r.lib,n=i.Base,c=i.WordArray,o=i.BufferedBlockAlgorithm,s=r.enc,a=(s.Utf8,s.Base64),f=r.algo,p=f.EvpKDF,d=i.Cipher=o.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?B:x}return function(t){return{encrypt:function(r,i,n){return e(i).encrypt(t,r,i,n)},decrypt:function(r,i,n){return e(i).decrypt(t,r,i,n)}}}}()}),h=(i.StreamCipher=d.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),r.mode={}),u=i.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),l=h.CBC=function(){function e(e,r,i){var n=this._iv;if(n){var c=n;this._iv=t}else var c=this._prevBlock;for(var o=0;o<i;o++)e[r+o]^=c[o]}var r=u.extend();return r.Encryptor=r.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize;e.call(this,t,r,n),i.encryptBlock(t,r),this._prevBlock=t.slice(r,r+n)}}),r.Decryptor=r.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize,c=t.slice(r,r+n);i.decryptBlock(t,r),e.call(this,t,r,n),this._prevBlock=c}}),r}(),_=r.pad={},v=_.Pkcs7={pad:function(e,t){for(var r=4*t,i=r-e.sigBytes%r,n=i<<24|i<<16|i<<8|i,o=[],s=0;s<i;s+=4)o.push(n);var a=c.create(o,i);e.concat(a)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},y=(i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:l,padding:v}),reset:function(){d.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=r.createEncryptor;else{var i=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,t&&t.words):(this._mode=i.call(r,this,t&&t.words),this._mode.__creator=i)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),i.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=r.format={},k=m.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var i=c.create([1398893684,1701076831]).concat(r).concat(t);else var i=t;return i.toString(a)},parse:function(e){var t=a.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var i=c.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return y.create({ciphertext:t,salt:i})}},x=i.SerializableCipher=n.extend({cfg:n.extend({format:k}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=e.createEncryptor(r,i),c=n.finalize(t),o=n.cfg;return y.create({ciphertext:c,key:r,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=e.createDecryptor(r,i).finalize(t.ciphertext);return n},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),g=r.kdf={},S=g.OpenSSL={execute:function(e,t,r,i){i||(i=c.random(8));var n=p.create({keySize:t+r}).compute(e,i),o=c.create(n.words.slice(t),4*r);return n.sigBytes=4*t,y.create({key:n,iv:o,salt:i})}},B=i.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:S}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=i.kdf.execute(r,e.keySize,e.ivSize);i.iv=n.iv;var c=x.encrypt.call(this,e,t,n.key,i);return c.mixIn(n),c},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=i.kdf.execute(r,e.keySize,e.ivSize,t.salt);i.iv=n.iv;var c=x.decrypt.call(this,e,t,n.key,i);return c}})}()});
//# sourceMappingURL=cipher-core.min.js.map //# sourceMappingURL=cipher-core.min.js.map
!function(e,i){"object"==typeof exports?module.exports=exports=i(require("./core.min")):"function"==typeof define&&define.amd?define(["./core.min"],i):i(e.CryptoJS)}(this,function(e){!function(){var i=e,t=i.lib,n=t.Base,s=i.enc,r=s.Utf8,o=i.algo;o.HMAC=n.extend({init:function(e,i){e=this._hasher=new e.init,"string"==typeof i&&(i=r.parse(i));var t=e.blockSize,n=4*t;i.sigBytes>n&&(i=e.finalize(i)),i.clamp();for(var s=this._oKey=i.clone(),o=this._iKey=i.clone(),a=s.words,f=o.words,c=0;c<t;c++)a[c]^=1549556828,f[c]^=909522486;s.sigBytes=o.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var i=this._hasher,t=i.finalize(e);i.reset();var n=i.finalize(this._oKey.clone().concat(t));return n}})}()}); !function(e,i){"object"==typeof exports?module.exports=exports=i(require("./core.min")):"function"==typeof define&&define.amd?define(["./core.min"],i):i(e.CryptoJS)}(this,function(e){!function(){var i=e,t=i.lib,n=t.Base,s=i.enc,r=s.Utf8,o=i.algo;o.HMAC=n.extend({init:function(e,i){e=this._hasher=new e.init,"string"==typeof i&&(i=r.parse(i));var t=e.blockSize,n=4*t;i.sigBytes>n&&(i=e.finalize(i)),i.clamp();for(var s=this._oKey=i.clone(),o=this._iKey=i.clone(),a=s.words,f=o.words,c=0;c<t;c++)a[c]^=1549556828,f[c]^=909522486;s.sigBytes=o.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var i=this._hasher,t=i.finalize(e);i.reset();var n=i.finalize(this._oKey.clone().concat(t));return n}})}()});
//# sourceMappingURL=hmac.min.js.map //# sourceMappingURL=hmac.min.js.map
!function(e,o,r){"object"==typeof exports?module.exports=exports=o(require("./core.min"),require("./cipher-core.min")):"function"==typeof define&&define.amd?define(["./core.min","./cipher-core.min"],o):o(e.CryptoJS)}(this,function(e){return e.mode.ECB=function(){var o=e.lib.BlockCipherMode.extend();return o.Encryptor=o.extend({processBlock:function(e,o){this._cipher.encryptBlock(e,o)}}),o.Decryptor=o.extend({processBlock:function(e,o){this._cipher.decryptBlock(e,o)}}),o}(),e.mode.ECB}); !function(e,o,r){"object"==typeof exports?module.exports=exports=o(require("./core.min"),require("./cipher-core.min")):"function"==typeof define&&define.amd?define(["./core.min","./cipher-core.min"],o):o(e.CryptoJS)}(this,function(e){return e.mode.ECB=function(){var o=e.lib.BlockCipherMode.extend();return o.Encryptor=o.extend({processBlock:function(e,o){this._cipher.encryptBlock(e,o)}}),o.Decryptor=o.extend({processBlock:function(e,o){this._cipher.decryptBlock(e,o)}}),o}(),e.mode.ECB});
//# sourceMappingURL=mode-ecb.min.js.map //# sourceMappingURL=mode-ecb.min.js.map
!function(e,r,i){"object"==typeof exports?module.exports=exports=r(require("./core.min"),require("./cipher-core.min")):"function"==typeof define&&define.amd?define(["./core.min","./cipher-core.min"],r):r(e.CryptoJS)}(this,function(e){return e.pad.Pkcs7}); !function(e,r,i){"object"==typeof exports?module.exports=exports=r(require("./core.min"),require("./cipher-core.min")):"function"==typeof define&&define.amd?define(["./core.min","./cipher-core.min"],r):r(e.CryptoJS)}(this,function(e){return e.pad.Pkcs7});
//# sourceMappingURL=pad-pkcs7.min.js.map //# sourceMappingURL=pad-pkcs7.min.js.map
!function(e,r,i){"object"==typeof exports?module.exports=exports=r(require("./core.min"),require("./enc-base64.min"),require("./md5.min"),require("./evpkdf.min"),require("./cipher-core.min")):"function"==typeof define&&define.amd?define(["./core.min","./enc-base64.min","./md5.min","./evpkdf.min","./cipher-core.min"],r):r(e.CryptoJS)}(this,function(e){return function(){var r=e,i=r.lib,n=i.BlockCipher,o=r.algo,t=[],c=[],s=[],f=[],a=[],d=[],u=[],v=[],h=[],y=[];!function(){for(var e=[],r=0;r<256;r++)r<128?e[r]=r<<1:e[r]=r<<1^283;for(var i=0,n=0,r=0;r<256;r++){var o=n^n<<1^n<<2^n<<3^n<<4;o=o>>>8^255&o^99,t[i]=o,c[o]=i;var p=e[i],l=e[p],_=e[l],k=257*e[o]^16843008*o;s[i]=k<<24|k>>>8,f[i]=k<<16|k>>>16,a[i]=k<<8|k>>>24,d[i]=k;var k=16843009*_^65537*l^257*p^16843008*i;u[o]=k<<24|k>>>8,v[o]=k<<16|k>>>16,h[o]=k<<8|k>>>24,y[o]=k,i?(i=p^e[e[e[_^p]]],n^=e[e[n]]):i=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],l=o.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,r=e.words,i=e.sigBytes/4,n=this._nRounds=i+6,o=4*(n+1),c=this._keySchedule=[],s=0;s<o;s++)if(s<i)c[s]=r[s];else{var f=c[s-1];s%i?i>6&&s%i==4&&(f=t[f>>>24]<<24|t[f>>>16&255]<<16|t[f>>>8&255]<<8|t[255&f]):(f=f<<8|f>>>24,f=t[f>>>24]<<24|t[f>>>16&255]<<16|t[f>>>8&255]<<8|t[255&f],f^=p[s/i|0]<<24),c[s]=c[s-i]^f}for(var a=this._invKeySchedule=[],d=0;d<o;d++){var s=o-d;if(d%4)var f=c[s];else var f=c[s-4];d<4||s<=4?a[d]=f:a[d]=u[t[f>>>24]]^v[t[f>>>16&255]]^h[t[f>>>8&255]]^y[t[255&f]]}}},encryptBlock:function(e,r){this._doCryptBlock(e,r,this._keySchedule,s,f,a,d,t)},decryptBlock:function(e,r){var i=e[r+1];e[r+1]=e[r+3],e[r+3]=i,this._doCryptBlock(e,r,this._invKeySchedule,u,v,h,y,c);var i=e[r+1];e[r+1]=e[r+3],e[r+3]=i},_doCryptBlock:function(e,r,i,n,o,t,c,s){for(var f=this._nRounds,a=e[r]^i[0],d=e[r+1]^i[1],u=e[r+2]^i[2],v=e[r+3]^i[3],h=4,y=1;y<f;y++){var p=n[a>>>24]^o[d>>>16&255]^t[u>>>8&255]^c[255&v]^i[h++],l=n[d>>>24]^o[u>>>16&255]^t[v>>>8&255]^c[255&a]^i[h++],_=n[u>>>24]^o[v>>>16&255]^t[a>>>8&255]^c[255&d]^i[h++],k=n[v>>>24]^o[a>>>16&255]^t[d>>>8&255]^c[255&u]^i[h++];a=p,d=l,u=_,v=k}var p=(s[a>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&v])^i[h++],l=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[v>>>8&255]<<8|s[255&a])^i[h++],_=(s[u>>>24]<<24|s[v>>>16&255]<<16|s[a>>>8&255]<<8|s[255&d])^i[h++],k=(s[v>>>24]<<24|s[a>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^i[h++];e[r]=p,e[r+1]=l,e[r+2]=_,e[r+3]=k},keySize:8});r.AES=n._createHelper(l)}(),e.AES}); !function(e,r,i){"object"==typeof exports?module.exports=exports=r(require("./core.min"),require("./enc-base64.min"),require("./md5.min"),require("./evpkdf.min"),require("./cipher-core.min")):"function"==typeof define&&define.amd?define(["./core.min","./enc-base64.min","./md5.min","./evpkdf.min","./cipher-core.min"],r):r(e.CryptoJS)}(this,function(e){return function(){var r=e,i=r.lib,n=i.BlockCipher,o=r.algo,t=[],c=[],s=[],f=[],a=[],d=[],u=[],v=[],h=[],y=[];!function(){for(var e=[],r=0;r<256;r++)r<128?e[r]=r<<1:e[r]=r<<1^283;for(var i=0,n=0,r=0;r<256;r++){var o=n^n<<1^n<<2^n<<3^n<<4;o=o>>>8^255&o^99,t[i]=o,c[o]=i;var p=e[i],l=e[p],_=e[l],k=257*e[o]^16843008*o;s[i]=k<<24|k>>>8,f[i]=k<<16|k>>>16,a[i]=k<<8|k>>>24,d[i]=k;var k=16843009*_^65537*l^257*p^16843008*i;u[o]=k<<24|k>>>8,v[o]=k<<16|k>>>16,h[o]=k<<8|k>>>24,y[o]=k,i?(i=p^e[e[e[_^p]]],n^=e[e[n]]):i=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],l=o.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,r=e.words,i=e.sigBytes/4,n=this._nRounds=i+6,o=4*(n+1),c=this._keySchedule=[],s=0;s<o;s++)if(s<i)c[s]=r[s];else{var f=c[s-1];s%i?i>6&&s%i==4&&(f=t[f>>>24]<<24|t[f>>>16&255]<<16|t[f>>>8&255]<<8|t[255&f]):(f=f<<8|f>>>24,f=t[f>>>24]<<24|t[f>>>16&255]<<16|t[f>>>8&255]<<8|t[255&f],f^=p[s/i|0]<<24),c[s]=c[s-i]^f}for(var a=this._invKeySchedule=[],d=0;d<o;d++){var s=o-d;if(d%4)var f=c[s];else var f=c[s-4];d<4||s<=4?a[d]=f:a[d]=u[t[f>>>24]]^v[t[f>>>16&255]]^h[t[f>>>8&255]]^y[t[255&f]]}}},encryptBlock:function(e,r){this._doCryptBlock(e,r,this._keySchedule,s,f,a,d,t)},decryptBlock:function(e,r){var i=e[r+1];e[r+1]=e[r+3],e[r+3]=i,this._doCryptBlock(e,r,this._invKeySchedule,u,v,h,y,c);var i=e[r+1];e[r+1]=e[r+3],e[r+3]=i},_doCryptBlock:function(e,r,i,n,o,t,c,s){for(var f=this._nRounds,a=e[r]^i[0],d=e[r+1]^i[1],u=e[r+2]^i[2],v=e[r+3]^i[3],h=4,y=1;y<f;y++){var p=n[a>>>24]^o[d>>>16&255]^t[u>>>8&255]^c[255&v]^i[h++],l=n[d>>>24]^o[u>>>16&255]^t[v>>>8&255]^c[255&a]^i[h++],_=n[u>>>24]^o[v>>>16&255]^t[a>>>8&255]^c[255&d]^i[h++],k=n[v>>>24]^o[a>>>16&255]^t[d>>>8&255]^c[255&u]^i[h++];a=p,d=l,u=_,v=k}var p=(s[a>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&v])^i[h++],l=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[v>>>8&255]<<8|s[255&a])^i[h++],_=(s[u>>>24]<<24|s[v>>>16&255]<<16|s[a>>>8&255]<<8|s[255&d])^i[h++],k=(s[v>>>24]<<24|s[a>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^i[h++];e[r]=p,e[r+1]=l,e[r+2]=_,e[r+3]=k},keySize:8});r.AES=n._createHelper(l)}(),e.AES});
//# sourceMappingURL=aes.min.js.map //# sourceMappingURL=aes.min.js.map
!function(e,n){"object"==typeof exports?module.exports=exports=n(require("./core.min")):"function"==typeof define&&define.amd?define(["./core.min"],n):n(e.CryptoJS)}(this,function(e){return e.enc.Utf8}); !function(e,n){"object"==typeof exports?module.exports=exports=n(require("./core.min")):"function"==typeof define&&define.amd?define(["./core.min"],n):n(e.CryptoJS)}(this,function(e){return e.enc.Utf8});
//# sourceMappingURL=enc-utf8.min.js.map //# sourceMappingURL=enc-utf8.min.js.map

File diff suppressed because one or more lines are too long

View File

@ -1,203 +1,203 @@
@font-face { @font-face {
font-family: "iconfont"; /* Project id 4067164 */ font-family: "iconfont"; /* Project id 4067164 */
src: url('iconfont.woff2?t=1699242797963') format('woff2'), src: url('iconfont.woff2?t=1699242797963') format('woff2'),
url('iconfont.woff?t=1699242797963') format('woff'), url('iconfont.woff?t=1699242797963') format('woff'),
url('iconfont.ttf?t=1699242797963') format('truetype'); url('iconfont.ttf?t=1699242797963') format('truetype');
} }
.iconfont { .iconfont {
font-family: "iconfont" !important; font-family: "iconfont" !important;
font-size: 16px; font-size: 16px;
font-style: normal; font-style: normal;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-chatgpt:before { .icon-chatgpt:before {
content: "\e6bf"; content: "\e6bf";
} }
.icon-wuguan:before { .icon-wuguan:before {
content: "\ec5f"; content: "\ec5f";
} }
.icon-API:before { .icon-API:before {
content: "\e66d"; content: "\e66d";
} }
.icon-APIguanli:before { .icon-APIguanli:before {
content: "\e65f"; content: "\e65f";
} }
.icon-shujudaochu:before { .icon-shujudaochu:before {
content: "\e695"; content: "\e695";
} }
.icon-baiduyun1:before { .icon-baiduyun1:before {
content: "\e60f"; content: "\e60f";
} }
.icon-yemian-yinyong:before { .icon-yemian-yinyong:before {
content: "\e72e"; content: "\e72e";
} }
.icon-datafull:before { .icon-datafull:before {
content: "\e6ed"; content: "\e6ed";
} }
.icon-biaoti:before { .icon-biaoti:before {
content: "\e62b"; content: "\e62b";
} }
.icon-chepai:before { .icon-chepai:before {
content: "\e62e"; content: "\e62e";
} }
.icon-sql:before { .icon-sql:before {
content: "\e6d1"; content: "\e6d1";
} }
.icon-mianban:before { .icon-mianban:before {
content: "\e6a0"; content: "\e6a0";
} }
.icon-progress:before { .icon-progress:before {
content: "\e648"; content: "\e648";
} }
.icon-pingtaiguanlishujuquanxian:before { .icon-pingtaiguanlishujuquanxian:before {
content: "\e64d"; content: "\e64d";
} }
.icon-shouyelunbotu:before { .icon-shouyelunbotu:before {
content: "\e627"; content: "\e627";
} }
.icon-gongzhonghao:before { .icon-gongzhonghao:before {
content: "\e625"; content: "\e625";
} }
.icon-markdown:before { .icon-markdown:before {
content: "\f1eb"; content: "\f1eb";
} }
.icon-undo:before { .icon-undo:before {
content: "\e739"; content: "\e739";
} }
.icon-mobansheji:before { .icon-mobansheji:before {
content: "\e672"; content: "\e672";
} }
.icon-tuxingyanzhengma:before { .icon-tuxingyanzhengma:before {
content: "\e608"; content: "\e608";
} }
.icon-jurassic_process:before { .icon-jurassic_process:before {
content: "\e6c4"; content: "\e6c4";
} }
.icon-yemianshezhi:before { .icon-yemianshezhi:before {
content: "\e60d"; content: "\e60d";
} }
.icon-bianjiyemian:before { .icon-bianjiyemian:before {
content: "\e633"; content: "\e633";
} }
.icon-html-editor:before { .icon-html-editor:before {
content: "\e85e"; content: "\e85e";
} }
.icon-buzhoutiao:before { .icon-buzhoutiao:before {
content: "\e760"; content: "\e760";
} }
.icon-dateTimeBox:before { .icon-dateTimeBox:before {
content: "\e649"; content: "\e649";
} }
.icon-baidu:before { .icon-baidu:before {
content: "\e8cb"; content: "\e8cb";
} }
.icon-html:before { .icon-html:before {
content: "\e618"; content: "\e618";
} }
.icon-jishuqi:before { .icon-jishuqi:before {
content: "\e68c"; content: "\e68c";
} }
.icon-mianbaoxie-youjiantou:before { .icon-mianbaoxie-youjiantou:before {
content: "\e605"; content: "\e605";
} }
.icon-xiugairizhi:before { .icon-xiugairizhi:before {
content: "\e6e7"; content: "\e6e7";
} }
.icon-qiyeweixin:before { .icon-qiyeweixin:before {
content: "\e619"; content: "\e619";
} }
.icon-shujudaoru:before { .icon-shujudaoru:before {
content: "\e693"; content: "\e693";
} }
.icon-m-chuansuokuang:before { .icon-m-chuansuokuang:before {
content: "\e857"; content: "\e857";
} }
.icon-icon-fanpaiqi:before { .icon-icon-fanpaiqi:before {
content: "\e6a2"; content: "\e6a2";
} }
.icon-bianjiyemian1:before { .icon-bianjiyemian1:before {
content: "\eb78"; content: "\eb78";
} }
.icon-vue_20x20:before { .icon-vue_20x20:before {
content: "\e640"; content: "\e640";
} }
.icon-yewuquanxian:before { .icon-yewuquanxian:before {
content: "\e606"; content: "\e606";
} }
.icon-zujianshu:before { .icon-zujianshu:before {
content: "\e621"; content: "\e621";
} }
.icon-shangzhongxiabuju:before { .icon-shangzhongxiabuju:before {
content: "\e858"; content: "\e858";
} }
.icon-shouji:before { .icon-shouji:before {
content: "\e615"; content: "\e615";
} }
.icon-baiduyun:before { .icon-baiduyun:before {
content: "\e600"; content: "\e600";
} }
.icon-elementui:before { .icon-elementui:before {
content: "\e604"; content: "\e604";
} }
.icon-buju:before { .icon-buju:before {
content: "\e641"; content: "\e641";
} }
.icon-vant:before { .icon-vant:before {
content: "\e678"; content: "\e678";
} }
.icon-yewu:before { .icon-yewu:before {
content: "\e68b"; content: "\e68b";
} }
.icon-dapingzhanshi:before { .icon-dapingzhanshi:before {
content: "\e628"; content: "\e628";
} }

View File

@ -1,338 +1,338 @@
{ {
"id": "4067164", "id": "4067164",
"name": "设计器", "name": "设计器",
"font_family": "iconfont", "font_family": "iconfont",
"css_prefix_text": "icon-", "css_prefix_text": "icon-",
"description": "", "description": "",
"glyphs": [ "glyphs": [
{ {
"icon_id": "35001563", "icon_id": "35001563",
"name": "chatgpt", "name": "chatgpt",
"font_class": "chatgpt", "font_class": "chatgpt",
"unicode": "e6bf", "unicode": "e6bf",
"unicode_decimal": 59071 "unicode_decimal": 59071
}, },
{ {
"icon_id": "5961321", "icon_id": "5961321",
"name": "AI", "name": "AI",
"font_class": "wuguan", "font_class": "wuguan",
"unicode": "ec5f", "unicode": "ec5f",
"unicode_decimal": 60511 "unicode_decimal": 60511
}, },
{ {
"icon_id": "33546560", "icon_id": "33546560",
"name": "API", "name": "API",
"font_class": "API", "font_class": "API",
"unicode": "e66d", "unicode": "e66d",
"unicode_decimal": 58989 "unicode_decimal": 58989
}, },
{ {
"icon_id": "4417791", "icon_id": "4417791",
"name": "API管理", "name": "API管理",
"font_class": "APIguanli", "font_class": "APIguanli",
"unicode": "e65f", "unicode": "e65f",
"unicode_decimal": 58975 "unicode_decimal": 58975
}, },
{ {
"icon_id": "22427570", "icon_id": "22427570",
"name": "数据导出", "name": "数据导出",
"font_class": "shujudaochu", "font_class": "shujudaochu",
"unicode": "e695", "unicode": "e695",
"unicode_decimal": 59029 "unicode_decimal": 59029
}, },
{ {
"icon_id": "2912768", "icon_id": "2912768",
"name": "百度云", "name": "百度云",
"font_class": "baiduyun1", "font_class": "baiduyun1",
"unicode": "e60f", "unicode": "e60f",
"unicode_decimal": 58895 "unicode_decimal": 58895
}, },
{ {
"icon_id": "18231024", "icon_id": "18231024",
"name": "页面-引用", "name": "页面-引用",
"font_class": "yemian-yinyong", "font_class": "yemian-yinyong",
"unicode": "e72e", "unicode": "e72e",
"unicode_decimal": 59182 "unicode_decimal": 59182
}, },
{ {
"icon_id": "586827", "icon_id": "586827",
"name": "data-full", "name": "data-full",
"font_class": "datafull", "font_class": "datafull",
"unicode": "e6ed", "unicode": "e6ed",
"unicode_decimal": 59117 "unicode_decimal": 59117
}, },
{ {
"icon_id": "695127", "icon_id": "695127",
"name": "标题", "name": "标题",
"font_class": "biaoti", "font_class": "biaoti",
"unicode": "e62b", "unicode": "e62b",
"unicode_decimal": 58923 "unicode_decimal": 58923
}, },
{ {
"icon_id": "874852", "icon_id": "874852",
"name": "车牌", "name": "车牌",
"font_class": "chepai", "font_class": "chepai",
"unicode": "e62e", "unicode": "e62e",
"unicode_decimal": 58926 "unicode_decimal": 58926
}, },
{ {
"icon_id": "1057415", "icon_id": "1057415",
"name": "sql", "name": "sql",
"font_class": "sql", "font_class": "sql",
"unicode": "e6d1", "unicode": "e6d1",
"unicode_decimal": 59089 "unicode_decimal": 59089
}, },
{ {
"icon_id": "1766510", "icon_id": "1766510",
"name": "符号-折叠面板", "name": "符号-折叠面板",
"font_class": "mianban", "font_class": "mianban",
"unicode": "e6a0", "unicode": "e6a0",
"unicode_decimal": 59040 "unicode_decimal": 59040
}, },
{ {
"icon_id": "1881849", "icon_id": "1881849",
"name": "progress", "name": "progress",
"font_class": "progress", "font_class": "progress",
"unicode": "e648", "unicode": "e648",
"unicode_decimal": 58952 "unicode_decimal": 58952
}, },
{ {
"icon_id": "4772831", "icon_id": "4772831",
"name": "平台管理—数据权限", "name": "平台管理—数据权限",
"font_class": "pingtaiguanlishujuquanxian", "font_class": "pingtaiguanlishujuquanxian",
"unicode": "e64d", "unicode": "e64d",
"unicode_decimal": 58957 "unicode_decimal": 58957
}, },
{ {
"icon_id": "5437734", "icon_id": "5437734",
"name": "首页轮播图", "name": "首页轮播图",
"font_class": "shouyelunbotu", "font_class": "shouyelunbotu",
"unicode": "e627", "unicode": "e627",
"unicode_decimal": 58919 "unicode_decimal": 58919
}, },
{ {
"icon_id": "5532887", "icon_id": "5532887",
"name": "公众号", "name": "公众号",
"font_class": "gongzhonghao", "font_class": "gongzhonghao",
"unicode": "e625", "unicode": "e625",
"unicode_decimal": 58917 "unicode_decimal": 58917
}, },
{ {
"icon_id": "5634755", "icon_id": "5634755",
"name": "markdown", "name": "markdown",
"font_class": "markdown", "font_class": "markdown",
"unicode": "f1eb", "unicode": "f1eb",
"unicode_decimal": 61931 "unicode_decimal": 61931
}, },
{ {
"icon_id": "7009033", "icon_id": "7009033",
"name": "undo", "name": "undo",
"font_class": "undo", "font_class": "undo",
"unicode": "e739", "unicode": "e739",
"unicode_decimal": 59193 "unicode_decimal": 59193
}, },
{ {
"icon_id": "8897322", "icon_id": "8897322",
"name": "模板设计", "name": "模板设计",
"font_class": "mobansheji", "font_class": "mobansheji",
"unicode": "e672", "unicode": "e672",
"unicode_decimal": 58994 "unicode_decimal": 58994
}, },
{ {
"icon_id": "9715331", "icon_id": "9715331",
"name": "图形验证码", "name": "图形验证码",
"font_class": "tuxingyanzhengma", "font_class": "tuxingyanzhengma",
"unicode": "e608", "unicode": "e608",
"unicode_decimal": 58888 "unicode_decimal": 58888
}, },
{ {
"icon_id": "10595634", "icon_id": "10595634",
"name": "工作流程-流程-状态_jurassic", "name": "工作流程-流程-状态_jurassic",
"font_class": "jurassic_process", "font_class": "jurassic_process",
"unicode": "e6c4", "unicode": "e6c4",
"unicode_decimal": 59076 "unicode_decimal": 59076
}, },
{ {
"icon_id": "11179906", "icon_id": "11179906",
"name": "页面设置", "name": "页面设置",
"font_class": "yemianshezhi", "font_class": "yemianshezhi",
"unicode": "e60d", "unicode": "e60d",
"unicode_decimal": 58893 "unicode_decimal": 58893
}, },
{ {
"icon_id": "12174707", "icon_id": "12174707",
"name": "编辑页面 ", "name": "编辑页面 ",
"font_class": "bianjiyemian", "font_class": "bianjiyemian",
"unicode": "e633", "unicode": "e633",
"unicode_decimal": 58931 "unicode_decimal": 58931
}, },
{ {
"icon_id": "15659162", "icon_id": "15659162",
"name": "html-editor", "name": "html-editor",
"font_class": "html-editor", "font_class": "html-editor",
"unicode": "e85e", "unicode": "e85e",
"unicode_decimal": 59486 "unicode_decimal": 59486
}, },
{ {
"icon_id": "16557145", "icon_id": "16557145",
"name": "步骤条", "name": "步骤条",
"font_class": "buzhoutiao", "font_class": "buzhoutiao",
"unicode": "e760", "unicode": "e760",
"unicode_decimal": 59232 "unicode_decimal": 59232
}, },
{ {
"icon_id": "16859934", "icon_id": "16859934",
"name": "日期时间框", "name": "日期时间框",
"font_class": "dateTimeBox", "font_class": "dateTimeBox",
"unicode": "e649", "unicode": "e649",
"unicode_decimal": 58953 "unicode_decimal": 58953
}, },
{ {
"icon_id": "18166606", "icon_id": "18166606",
"name": "百度", "name": "百度",
"font_class": "baidu", "font_class": "baidu",
"unicode": "e8cb", "unicode": "e8cb",
"unicode_decimal": 59595 "unicode_decimal": 59595
}, },
{ {
"icon_id": "19035878", "icon_id": "19035878",
"name": "html", "name": "html",
"font_class": "html", "font_class": "html",
"unicode": "e618", "unicode": "e618",
"unicode_decimal": 58904 "unicode_decimal": 58904
}, },
{ {
"icon_id": "19582055", "icon_id": "19582055",
"name": "计数器", "name": "计数器",
"font_class": "jishuqi", "font_class": "jishuqi",
"unicode": "e68c", "unicode": "e68c",
"unicode_decimal": 59020 "unicode_decimal": 59020
}, },
{ {
"icon_id": "21009385", "icon_id": "21009385",
"name": "面包屑-右箭头", "name": "面包屑-右箭头",
"font_class": "mianbaoxie-youjiantou", "font_class": "mianbaoxie-youjiantou",
"unicode": "e605", "unicode": "e605",
"unicode_decimal": 58885 "unicode_decimal": 58885
}, },
{ {
"icon_id": "21553729", "icon_id": "21553729",
"name": "修改日志", "name": "修改日志",
"font_class": "xiugairizhi", "font_class": "xiugairizhi",
"unicode": "e6e7", "unicode": "e6e7",
"unicode_decimal": 59111 "unicode_decimal": 59111
}, },
{ {
"icon_id": "22032561", "icon_id": "22032561",
"name": "企业微信", "name": "企业微信",
"font_class": "qiyeweixin", "font_class": "qiyeweixin",
"unicode": "e619", "unicode": "e619",
"unicode_decimal": 58905 "unicode_decimal": 58905
}, },
{ {
"icon_id": "22427565", "icon_id": "22427565",
"name": "数据导入", "name": "数据导入",
"font_class": "shujudaoru", "font_class": "shujudaoru",
"unicode": "e693", "unicode": "e693",
"unicode_decimal": 59027 "unicode_decimal": 59027
}, },
{ {
"icon_id": "22782989", "icon_id": "22782989",
"name": "m-穿梭框", "name": "m-穿梭框",
"font_class": "m-chuansuokuang", "font_class": "m-chuansuokuang",
"unicode": "e857", "unicode": "e857",
"unicode_decimal": 59479 "unicode_decimal": 59479
}, },
{ {
"icon_id": "24373380", "icon_id": "24373380",
"name": "icon-翻牌器", "name": "icon-翻牌器",
"font_class": "icon-fanpaiqi", "font_class": "icon-fanpaiqi",
"unicode": "e6a2", "unicode": "e6a2",
"unicode_decimal": 59042 "unicode_decimal": 59042
}, },
{ {
"icon_id": "27678439", "icon_id": "27678439",
"name": "编辑页面", "name": "编辑页面",
"font_class": "bianjiyemian1", "font_class": "bianjiyemian1",
"unicode": "eb78", "unicode": "eb78",
"unicode_decimal": 60280 "unicode_decimal": 60280
}, },
{ {
"icon_id": "29273003", "icon_id": "29273003",
"name": "vue_20x20", "name": "vue_20x20",
"font_class": "vue_20x20", "font_class": "vue_20x20",
"unicode": "e640", "unicode": "e640",
"unicode_decimal": 58944 "unicode_decimal": 58944
}, },
{ {
"icon_id": "29859137", "icon_id": "29859137",
"name": "业务权限", "name": "业务权限",
"font_class": "yewuquanxian", "font_class": "yewuquanxian",
"unicode": "e606", "unicode": "e606",
"unicode_decimal": 58886 "unicode_decimal": 58886
}, },
{ {
"icon_id": "33152366", "icon_id": "33152366",
"name": "组件树", "name": "组件树",
"font_class": "zujianshu", "font_class": "zujianshu",
"unicode": "e621", "unicode": "e621",
"unicode_decimal": 58913 "unicode_decimal": 58913
}, },
{ {
"icon_id": "34258425", "icon_id": "34258425",
"name": "上中下布局", "name": "上中下布局",
"font_class": "shangzhongxiabuju", "font_class": "shangzhongxiabuju",
"unicode": "e858", "unicode": "e858",
"unicode_decimal": 59480 "unicode_decimal": 59480
}, },
{ {
"icon_id": "2578491", "icon_id": "2578491",
"name": "手机", "name": "手机",
"font_class": "shouji", "font_class": "shouji",
"unicode": "e615", "unicode": "e615",
"unicode_decimal": 58901 "unicode_decimal": 58901
}, },
{ {
"icon_id": "3877118", "icon_id": "3877118",
"name": "百度云", "name": "百度云",
"font_class": "baiduyun", "font_class": "baiduyun",
"unicode": "e600", "unicode": "e600",
"unicode_decimal": 58880 "unicode_decimal": 58880
}, },
{ {
"icon_id": "7380660", "icon_id": "7380660",
"name": "elementui", "name": "elementui",
"font_class": "elementui", "font_class": "elementui",
"unicode": "e604", "unicode": "e604",
"unicode_decimal": 58884 "unicode_decimal": 58884
}, },
{ {
"icon_id": "8094172", "icon_id": "8094172",
"name": "布局", "name": "布局",
"font_class": "buju", "font_class": "buju",
"unicode": "e641", "unicode": "e641",
"unicode_decimal": 58945 "unicode_decimal": 58945
}, },
{ {
"icon_id": "13925299", "icon_id": "13925299",
"name": "vant", "name": "vant",
"font_class": "vant", "font_class": "vant",
"unicode": "e678", "unicode": "e678",
"unicode_decimal": 59000 "unicode_decimal": 59000
}, },
{ {
"icon_id": "21053830", "icon_id": "21053830",
"name": "业务", "name": "业务",
"font_class": "yewu", "font_class": "yewu",
"unicode": "e68b", "unicode": "e68b",
"unicode_decimal": 59019 "unicode_decimal": 59019
}, },
{ {
"icon_id": "15351474", "icon_id": "15351474",
"name": "大屏展示", "name": "大屏展示",
"font_class": "dapingzhanshi", "font_class": "dapingzhanshi",
"unicode": "e628", "unicode": "e628",
"unicode_decimal": 58920 "unicode_decimal": 58920
} }
] ]
} }

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
(function (a, b) { if ("function" == typeof define && define.amd) define([], b); else if ("undefined" != typeof exports) b(); else { b(), a.FileSaver = { exports: {} }.exports } })(this, function () { "use strict"; function b(a, b) { return "undefined" == typeof b ? b = { autoBom: !1 } : "object" != typeof b && (console.warn("Depricated: Expected third argument to be a object"), b = { autoBom: !b }), b.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type) ? new Blob(["\uFEFF", a], { type: a.type }) : a } function c(b, c, d) { var e = new XMLHttpRequest; e.open("GET", b), e.responseType = "blob", e.onload = function () { a(e.response, c, d) }, e.onerror = function () { console.error("could not download file") }, e.send() } function d(a) { var b = new XMLHttpRequest; return b.open("HEAD", a, !1), b.send(), 200 <= b.status && 299 >= b.status } function e(a) { try { a.dispatchEvent(new MouseEvent("click")) } catch (c) { var b = document.createEvent("MouseEvents"); b.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), a.dispatchEvent(b) } } var f = "object" == typeof window && window.window === window ? window : "object" == typeof self && self.self === self ? self : "object" == typeof global && global.global === global ? global : void 0, a = f.saveAs || "object" != typeof window || window !== f ? function () { } : "download" in HTMLAnchorElement.prototype ? function (b, g, h) { var i = f.URL || f.webkitURL, j = document.createElement("a"); g = g || b.name || "download", j.download = g, j.rel = "noopener", "string" == typeof b ? (j.href = b, j.origin === location.origin ? e(j) : d(j.href) ? c(b, g, h) : e(j, j.target = "_blank")) : (j.href = i.createObjectURL(b), setTimeout(function () { i.revokeObjectURL(j.href) }, 4E4), setTimeout(function () { e(j) }, 0)) } : "msSaveOrOpenBlob" in navigator ? function (f, g, h) { if (g = g || f.name || "download", "string" != typeof f) navigator.msSaveOrOpenBlob(b(f, h), g); else if (d(f)) c(f, g, h); else { var i = document.createElement("a"); i.href = f, i.target = "_blank", setTimeout(function () { e(i) }) } } : function (a, b, d, e) { if (e = e || open("", "_blank"), e && (e.document.title = e.document.body.innerText = "downloading..."), "string" == typeof a) return c(a, b, d); var g = "application/octet-stream" === a.type, h = /constructor/i.test(f.HTMLElement) || f.safari, i = /CriOS\/[\d]+/.test(navigator.userAgent); if ((i || g && h) && "object" == typeof FileReader) { var j = new FileReader; j.onloadend = function () { var a = j.result; a = i ? a : a.replace(/^data:[^;]*;/, "data:attachment/file;"), e ? e.location.href = a : location = a, e = null }, j.readAsDataURL(a) } else { var k = f.URL || f.webkitURL, l = k.createObjectURL(a); e ? e.location = l : location.href = l, e = null, setTimeout(function () { k.revokeObjectURL(l) }, 4E4) } }; f.saveAs = a.saveAs = a, "undefined" != typeof module && (module.exports = a) }); (function (a, b) { if ("function" == typeof define && define.amd) define([], b); else if ("undefined" != typeof exports) b(); else { b(), a.FileSaver = { exports: {} }.exports } })(this, function () { "use strict"; function b(a, b) { return "undefined" == typeof b ? b = { autoBom: !1 } : "object" != typeof b && (console.warn("Depricated: Expected third argument to be a object"), b = { autoBom: !b }), b.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type) ? new Blob(["\uFEFF", a], { type: a.type }) : a } function c(b, c, d) { var e = new XMLHttpRequest; e.open("GET", b), e.responseType = "blob", e.onload = function () { a(e.response, c, d) }, e.onerror = function () { console.error("could not download file") }, e.send() } function d(a) { var b = new XMLHttpRequest; return b.open("HEAD", a, !1), b.send(), 200 <= b.status && 299 >= b.status } function e(a) { try { a.dispatchEvent(new MouseEvent("click")) } catch (c) { var b = document.createEvent("MouseEvents"); b.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), a.dispatchEvent(b) } } var f = "object" == typeof window && window.window === window ? window : "object" == typeof self && self.self === self ? self : "object" == typeof global && global.global === global ? global : void 0, a = f.saveAs || "object" != typeof window || window !== f ? function () { } : "download" in HTMLAnchorElement.prototype ? function (b, g, h) { var i = f.URL || f.webkitURL, j = document.createElement("a"); g = g || b.name || "download", j.download = g, j.rel = "noopener", "string" == typeof b ? (j.href = b, j.origin === location.origin ? e(j) : d(j.href) ? c(b, g, h) : e(j, j.target = "_blank")) : (j.href = i.createObjectURL(b), setTimeout(function () { i.revokeObjectURL(j.href) }, 4E4), setTimeout(function () { e(j) }, 0)) } : "msSaveOrOpenBlob" in navigator ? function (f, g, h) { if (g = g || f.name || "download", "string" != typeof f) navigator.msSaveOrOpenBlob(b(f, h), g); else if (d(f)) c(f, g, h); else { var i = document.createElement("a"); i.href = f, i.target = "_blank", setTimeout(function () { e(i) }) } } : function (a, b, d, e) { if (e = e || open("", "_blank"), e && (e.document.title = e.document.body.innerText = "downloading..."), "string" == typeof a) return c(a, b, d); var g = "application/octet-stream" === a.type, h = /constructor/i.test(f.HTMLElement) || f.safari, i = /CriOS\/[\d]+/.test(navigator.userAgent); if ((i || g && h) && "object" == typeof FileReader) { var j = new FileReader; j.onloadend = function () { var a = j.result; a = i ? a : a.replace(/^data:[^;]*;/, "data:attachment/file;"), e ? e.location.href = a : location = a, e = null }, j.readAsDataURL(a) } else { var k = f.URL || f.webkitURL, l = k.createObjectURL(a); e ? e.location = l : location.href = l, e = null, setTimeout(function () { k.revokeObjectURL(l) }, 4E4) } }; f.saveAs = a.saveAs = a, "undefined" != typeof module && (module.exports = a) });
//# sourceMappingURL=FileSaver.min.js.map //# sourceMappingURL=FileSaver.min.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -220,7 +220,7 @@
//容器 //容器
Class.pt.vessel = function (conType, callback) { Class.pt.vessel = function (conType, callback) {
var that = this, times = that.index, config = that.config; var that = this, times = that.index, config = that.config;
that.config.zIndex = Common ? Common.generalSeri(2) : new Date().getTime().substring(0, 7); that.config.zIndex = window['Common'] ? window['Common'].generalSeri(2) : new Date().getTime().toString().substring(0, 7);
var zIndex = config.zIndex + times, titype = typeof config.title === 'object'; var zIndex = config.zIndex + times, titype = typeof config.title === 'object';
var ismax = config.maxmin && (config.type === 1 || config.type === 2); var ismax = config.maxmin && (config.type === 1 || config.type === 2);
var titleHTML = (config.title ? '<div class="layui-layer-title" style="' + (titype ? config.title[1] : '') + '">' var titleHTML = (config.title ? '<div class="layui-layer-title" style="' + (titype ? config.title[1] : '') + '">'

View File

@ -1,113 +1,113 @@
pre code.hljs { pre code.hljs {
display: block; display: block;
overflow-x: auto; overflow-x: auto;
padding: 1em padding: 1em
} }
code.hljs { code.hljs {
padding: 3px 5px padding: 3px 5px
} }
.hljs { .hljs {
background: #1e1e1e !important; background: #1e1e1e !important;
color: #dcdcdc color: #dcdcdc
} }
.hljs-keyword, .hljs-keyword,
.hljs-literal, .hljs-literal,
.hljs-name, .hljs-name,
.hljs-symbol { .hljs-symbol {
color: #569cd6 color: #569cd6
} }
.hljs-link { .hljs-link {
color: #569cd6; color: #569cd6;
text-decoration: underline text-decoration: underline
} }
.hljs-built_in, .hljs-built_in,
.hljs-type { .hljs-type {
color: #4ec9b0 color: #4ec9b0
} }
.hljs-class, .hljs-class,
.hljs-number { .hljs-number {
color: #b8d7a3 color: #b8d7a3
} }
.hljs-meta .hljs-string, .hljs-meta .hljs-string,
.hljs-string { .hljs-string {
color: #d69d85 color: #d69d85
} }
.hljs-regexp, .hljs-regexp,
.hljs-template-tag { .hljs-template-tag {
color: #9a5334 color: #9a5334
} }
.hljs-formula, .hljs-formula,
.hljs-function, .hljs-function,
.hljs-params, .hljs-params,
.hljs-subst, .hljs-subst,
.hljs-title { .hljs-title {
color: #dcdcdc color: #dcdcdc
} }
.hljs-comment, .hljs-comment,
.hljs-quote { .hljs-quote {
color: #57a64a; color: #57a64a;
font-style: italic font-style: italic
} }
.hljs-doctag { .hljs-doctag {
color: #608b4e color: #608b4e
} }
.hljs-meta, .hljs-meta,
.hljs-meta .hljs-keyword, .hljs-meta .hljs-keyword,
.hljs-tag { .hljs-tag {
color: #9b9b9b color: #9b9b9b
} }
.hljs-template-variable, .hljs-template-variable,
.hljs-variable { .hljs-variable {
color: #bd63c5 color: #bd63c5
} }
.hljs-attr, .hljs-attr,
.hljs-attribute { .hljs-attribute {
color: #9cdcfe color: #9cdcfe
} }
.hljs-section { .hljs-section {
color: gold color: gold
} }
.hljs-emphasis { .hljs-emphasis {
font-style: italic font-style: italic
} }
.hljs-strong { .hljs-strong {
font-weight: 700 font-weight: 700
} }
.hljs-bullet, .hljs-bullet,
.hljs-selector-attr, .hljs-selector-attr,
.hljs-selector-class, .hljs-selector-class,
.hljs-selector-id, .hljs-selector-id,
.hljs-selector-pseudo, .hljs-selector-pseudo,
.hljs-selector-tag { .hljs-selector-tag {
color: #d7ba7d color: #d7ba7d
} }
.hljs-addition { .hljs-addition {
background-color: #144212; background-color: #144212;
display: inline-block; display: inline-block;
width: 100% width: 100%
} }
.hljs-deletion { .hljs-deletion {
background-color: #600; background-color: #600;
display: inline-block; display: inline-block;
width: 100% width: 100%
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
!function(o,l){var r,a,s="createElement",g="getElementsByTagName",b="length",E="style",d="title",y="undefined",k="setAttribute",w="getAttribute",x=null,A="__svgInject",C="--inject-",S=new RegExp(C+"\\d+","g"),I="LOAD_FAIL",t="SVG_NOT_SUPPORTED",L="SVG_INVALID",v=["src","alt","onload","onerror"],j=l[s]("a"),G=typeof SVGRect!=y,f={useCache:!0,copyAttributes:!0,makeIdsUnique:!0},N={clipPath:["clip-path"],"color-profile":x,cursor:x,filter:x,linearGradient:["fill","stroke"],marker:["marker", !function(o,l){var r,a,s="createElement",g="getElementsByTagName",b="length",E="style",d="title",y="undefined",k="setAttribute",w="getAttribute",x=null,A="__svgInject",C="--inject-",S=new RegExp(C+"\\d+","g"),I="LOAD_FAIL",t="SVG_NOT_SUPPORTED",L="SVG_INVALID",v=["src","alt","onload","onerror"],j=l[s]("a"),G=typeof SVGRect!=y,f={useCache:!0,copyAttributes:!0,makeIdsUnique:!0},N={clipPath:["clip-path"],"color-profile":x,cursor:x,filter:x,linearGradient:["fill","stroke"],marker:["marker",
"marker-end","marker-mid","marker-start"],mask:x,pattern:["fill","stroke"],radialGradient:["fill","stroke"]},u=1,c=2,O=1;function T(e){return(r=r||new XMLSerializer).serializeToString(e)}function P(e,r){var t,n,i,o,a=C+O++,f=/url\("?#([a-zA-Z][\w:.-]*)"?\)/g,u=e.querySelectorAll("[id]"),c=r?[]:x,l={},s=[],d=!1;if(u[b]){for(i=0;i<u[b];i++)(n=u[i].localName)in N&&(l[n]=1);for(n in l)(N[n]||[n]).forEach(function(e){s.indexOf(e)<0&&s.push(e)});s[b]&&s.push(E);var v,p,m,h=e[g]("*"),y=e;for(i=-1;y!=x; "marker-end","marker-mid","marker-start"],mask:x,pattern:["fill","stroke"],radialGradient:["fill","stroke"]},u=1,c=2,O=1;function T(e){return(r=r||new XMLSerializer).serializeToString(e)}function P(e,r){var t,n,i,o,a=C+O++,f=/url\("?#([a-zA-Z][\w:.-]*)"?\)/g,u=e.querySelectorAll("[id]"),c=r?[]:x,l={},s=[],d=!1;if(u[b]){for(i=0;i<u[b];i++)(n=u[i].localName)in N&&(l[n]=1);for(n in l)(N[n]||[n]).forEach(function(e){s.indexOf(e)<0&&s.push(e)});s[b]&&s.push(E);var v,p,m,h=e[g]("*"),y=e;for(i=-1;y!=x;
){if(y.localName==E)(m=(p=y.textContent)&&p.replace(f,function(e,r){return c&&(c[r]=1),"url(#"+r+a+")"}))!==p&&(y.textContent=m);else if(y.hasAttributes()){for(o=0;o<s[b];o++)v=s[o],(m=(p=y[w](v))&&p.replace(f,function(e,r){return c&&(c[r]=1),"url(#"+r+a+")"}))!==p&&y[k](v,m);["xlink:href","href"].forEach(function(e){var r=y[w](e);/^\s*#/.test(r)&&(r=r.trim(),y[k](e,r+a),c&&(c[r.substring(1)]=1))})}y=h[++i]}for(i=0;i<u[b];i++)t=u[i],c&&!c[t.id]||(t.id+=a,d=!0)}return d}function V(e,r,t,n){if(r){ ){if(y.localName==E)(m=(p=y.textContent)&&p.replace(f,function(e,r){return c&&(c[r]=1),"url(#"+r+a+")"}))!==p&&(y.textContent=m);else if(y.hasAttributes()){for(o=0;o<s[b];o++)v=s[o],(m=(p=y[w](v))&&p.replace(f,function(e,r){return c&&(c[r]=1),"url(#"+r+a+")"}))!==p&&y[k](v,m);["xlink:href","href"].forEach(function(e){var r=y[w](e);/^\s*#/.test(r)&&(r=r.trim(),y[k](e,r+a),c&&(c[r.substring(1)]=1))})}y=h[++i]}for(i=0;i<u[b];i++)t=u[i],c&&!c[t.id]||(t.id+=a,d=!0)}return d}function V(e,r,t,n){if(r){
r[k]("data-inject-url",t);var i=e.parentNode;if(i){n.copyAttributes&&function c(e,r){for(var t,n,i,o=e.attributes,a=0;a<o[b];a++)if(n=(t=o[a]).name,-1==v.indexOf(n))if(i=t.value,n==d){var f,u=r.firstElementChild;u&&u.localName.toLowerCase()==d?f=u:(f=l[s+"NS"]("http://www.w3.org/2000/svg",d),r.insertBefore(f,u)),f.textContent=i}else r[k](n,i)}(e,r);var o=n.beforeInject,a=o&&o(e,r)||r;i.replaceChild(a,e),e[A]=u,m(e);var f=n.afterInject;f&&f(e,a)}}else D(e,n)}function p(){for(var e={},r=arguments, r[k]("data-inject-url",t);var i=e.parentNode;if(i){n.copyAttributes&&function c(e,r){for(var t,n,i,o=e.attributes,a=0;a<o[b];a++)if(n=(t=o[a]).name,-1==v.indexOf(n))if(i=t.value,n==d){var f,u=r.firstElementChild;u&&u.localName.toLowerCase()==d?f=u:(f=l[s+"NS"]("http://www.w3.org/2000/svg",d),r.insertBefore(f,u)),f.textContent=i}else r[k](n,i)}(e,r);var o=n.beforeInject,a=o&&o(e,r)||r;i.replaceChild(a,e),e[A]=u,m(e);var f=n.afterInject;f&&f(e,a)}}else D(e,n)}function p(){for(var e={},r=arguments,
t=0;t<r[b];t++){var n=r[t];for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}function _(e,r){if(r){var t;try{t=function i(e){return(a=a||new DOMParser).parseFromString(e,"text/xml")}(e)}catch(o){return x}return t[g]("parsererror")[b]?x:t.documentElement}var n=l.createElement("div");return n.innerHTML=e,n.firstElementChild}function m(e){e.removeAttribute("onload")}function n(e){console.error("SVGInject: "+e)}function i(e,r,t){e[A]=c,t.onFail?t.onFail(e,r):n(r)}function D(e,r){m(e),i(e,L,r) t=0;t<r[b];t++){var n=r[t];for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}function _(e,r){if(r){var t;try{t=function i(e){return(a=a||new DOMParser).parseFromString(e,"text/xml")}(e)}catch(o){return x}return t[g]("parsererror")[b]?x:t.documentElement}var n=l.createElement("div");return n.innerHTML=e,n.firstElementChild}function m(e){e.removeAttribute("onload")}function n(e){console.error("SVGInject: "+e)}function i(e,r,t){e[A]=c,t.onFail?t.onFail(e,r):n(r)}function D(e,r){m(e),i(e,L,r)
}function F(e,r){m(e),i(e,t,r)}function M(e,r){i(e,I,r)}function q(e){e.onload=x,e.onerror=x}function R(e){n("no img element")}var e=function z(e,r){var t=p(f,r),h={};function n(a,f){f=p(t,f);var e=function(r){var e=function(){var e=f.onAllFinish;e&&e(),r&&r()};if(a&&typeof a[b]!=y){var t=0,n=a[b];if(0==n)e();else for(var i=function(){++t==n&&e()},o=0;o<n;o++)u(a[o],f,i)}else u(a,f,e)};return typeof Promise==y?e():new Promise(e)}function u(u,c,e){if(u){var r=u[A];if(r)Array.isArray(r)?r.push(e }function F(e,r){m(e),i(e,t,r)}function M(e,r){i(e,I,r)}function q(e){e.onload=x,e.onerror=x}function R(e){n("no img element")}var e=function z(e,r){var t=p(f,r),h={};function n(a,f){f=p(t,f);var e=function(r){var e=function(){var e=f.onAllFinish;e&&e(),r&&r()};if(a&&typeof a[b]!=y){var t=0,n=a[b];if(0==n)e();else for(var i=function(){++t==n&&e()},o=0;o<n;o++)u(a[o],f,i)}else u(a,f,e)};return typeof Promise==y?e():new Promise(e)}function u(u,c,e){if(u){var r=u[A];if(r)Array.isArray(r)?r.push(e
):e();else{if(q(u),!G)return F(u,c),void e();var t=c.beforeLoad,n=t&&t(u)||u[w]("src");if(!n)return""===n&&M(u,c),void e();var i=[];u[A]=i;var l=function(){e(),i.forEach(function(e){e()})},s=function f(e){return j.href=e,j.href}(n),d=c.useCache,v=c.makeIdsUnique,p=function(r){d&&(h[s].forEach(function(e){e(r)}),h[s]=r)};if(d){var o,a=function(e){if(e===I)M(u,c);else if(e===L)D(u,c);else{var r,t=e[0],n=e[1],i=e[2];v&&(t===x?(t=P(r=_(n,!1),!1),e[0]=t,e[2]=t&&T(r)):t&&(n=function o(e){ ):e();else{if(q(u),!G)return F(u,c),void e();var t=c.beforeLoad,n=t&&t(u)||u[w]("src");if(!n)return""===n&&M(u,c),void e();var i=[];u[A]=i;var l=function(){e(),i.forEach(function(e){e()})},s=function f(e){return j.href=e,j.href}(n),d=c.useCache,v=c.makeIdsUnique,p=function(r){d&&(h[s].forEach(function(e){e(r)}),h[s]=r)};if(d){var o,a=function(e){if(e===I)M(u,c);else if(e===L)D(u,c);else{var r,t=e[0],n=e[1],i=e[2];v&&(t===x?(t=P(r=_(n,!1),!1),e[0]=t,e[2]=t&&T(r)):t&&(n=function o(e){
return e.replace(S,C+O++)}(i))),r=r||_(n,!1),V(u,r,s,c)}l()};if(typeof(o=h[s])!=y)return void(o.isCallbackQueue?o.push(a):a(o));(o=[]).isCallbackQueue=!0,h[s]=o}!function m(e,r,t){if(e){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4==n.readyState){var e=n.status;200==e?r(n.responseXML,n.responseText.trim()):400<=e?t():0==e&&t()}},n.open("GET",e,!0),n.send()}}(s,function(e,r){var t=e instanceof Document?e.documentElement:_(r,!0),n=c.afterLoad;if(n){var i=n(t,r)||t;if(i){ return e.replace(S,C+O++)}(i))),r=r||_(n,!1),V(u,r,s,c)}l()};if(typeof(o=h[s])!=y)return void(o.isCallbackQueue?o.push(a):a(o));(o=[]).isCallbackQueue=!0,h[s]=o}!function m(e,r,t){if(e){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4==n.readyState){var e=n.status;200==e?r(n.responseXML,n.responseText.trim()):400<=e?t():0==e&&t()}},n.open("GET",e,!0),n.send()}}(s,function(e,r){var t=e instanceof Document?e.documentElement:_(r,!0),n=c.afterLoad;if(n){var i=n(t,r)||t;if(i){
var o="string"==typeof i;r=o?i:T(t),t=o?_(i,!0):i}}if(t instanceof SVGElement){var a=x;if(v&&(a=P(t,!1)),d){var f=a&&T(t);p([a,r,f])}V(u,t,s,c)}else D(u,c),p(L);l()},function(){M(u,c),p(I),l()})}}else R()}return G&&function i(e){var r=l[g]("head")[0];if(r){var t=l[s](E);t.type="text/css",t.appendChild(l.createTextNode(e)),r.appendChild(t)}}('img[onload^="'+e+'("]{visibility:hidden;}'),n.setOptions=function(e){t=p(t,e)},n.create=z,n.err=function(e,r){e?e[A]!=c&&(q(e),G?(m(e),M(e,t)):F(e,t),r&&(m( var o="string"==typeof i;r=o?i:T(t),t=o?_(i,!0):i}}if(t instanceof SVGElement){var a=x;if(v&&(a=P(t,!1)),d){var f=a&&T(t);p([a,r,f])}V(u,t,s,c)}else D(u,c),p(L);l()},function(){M(u,c),p(I),l()})}}else R()}return G&&function i(e){var r=l[g]("head")[0];if(r){var t=l[s](E);t.type="text/css",t.appendChild(l.createTextNode(e)),r.appendChild(t)}}('img[onload^="'+e+'("]{visibility:hidden;}'),n.setOptions=function(e){t=p(t,e)},n.create=z,n.err=function(e,r){e?e[A]!=c&&(q(e),G?(m(e),M(e,t)):F(e,t),r&&(m(
e),e.src=r)):R()},o[e]=n}("SVGInject");"object"==typeof module&&"object"==typeof module.exports&&(module.exports=e)}(window,document); e),e.src=r)):R()},o[e]=n}("SVGInject");"object"==typeof module&&"object"==typeof module.exports&&(module.exports=e)}(window,document);

File diff suppressed because one or more lines are too long

View File

@ -1,40 +1,40 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title> <title></title>
<style type="text/css"> <style type="text/css">
*{color: #838383;margin: 0;padding: 0} *{color: #838383;margin: 0;padding: 0}
html,body {font-size: 12px;overflow: hidden; } html,body {font-size: 12px;overflow: hidden; }
.content{padding:5px 0 0 15px;} .content{padding:5px 0 0 15px;}
input{width:210px;height:21px;line-height:21px;margin-left: 4px;} input{width:210px;height:21px;line-height:21px;margin-left: 4px;}
</style> </style>
</head> </head>
<body> <body>
<div class="content"> <div class="content">
<span><var id="lang_input_anchorName"></var></span><input id="anchorName" value="" /> <span><var id="lang_input_anchorName"></var></span><input id="anchorName" value="" />
</div> </div>
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var anchorInput = $G('anchorName'), var anchorInput = $G('anchorName'),
node = editor.selection.getRange().getClosedNode(); node = editor.selection.getRange().getClosedNode();
if(node && node.tagName == 'IMG' && (node = node.getAttribute('anchorname'))){ if(node && node.tagName == 'IMG' && (node = node.getAttribute('anchorname'))){
anchorInput.value = node; anchorInput.value = node;
} }
anchorInput.onkeydown = function(evt){ anchorInput.onkeydown = function(evt){
evt = evt || window.event; evt = evt || window.event;
if(evt.keyCode == 13){ if(evt.keyCode == 13){
editor.execCommand('anchor', anchorInput.value); editor.execCommand('anchor', anchorInput.value);
dialog.close(); dialog.close();
domUtils.preventDefault(evt) domUtils.preventDefault(evt)
} }
}; };
dialog.onok = function (){ dialog.onok = function (){
editor.execCommand('anchor', anchorInput.value); editor.execCommand('anchor', anchorInput.value);
dialog.close(); dialog.close();
}; };
$focus(anchorInput); $focus(anchorInput);
</script> </script>
</body> </body>
</html> </html>

View File

@ -1,60 +1,60 @@
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>ueditor图片对话框</title> <title>ueditor图片对话框</title>
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
<!-- jquery --> <!-- jquery -->
<script type="text/javascript" src="../../third-party/jquery-1.10.2.min.js"></script> <script type="text/javascript" src="../../third-party/jquery-1.10.2.min.js"></script>
<!-- webuploader --> <!-- webuploader -->
<script src="../../third-party/webuploader/webuploader.min.js"></script> <script src="../../third-party/webuploader/webuploader.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../third-party/webuploader/webuploader.css"> <link rel="stylesheet" type="text/css" href="../../third-party/webuploader/webuploader.css">
<!-- attachment dialog --> <!-- attachment dialog -->
<link rel="stylesheet" href="attachment.css" type="text/css" /> <link rel="stylesheet" href="attachment.css" type="text/css" />
</head> </head>
<body> <body>
<div class="wrapper"> <div class="wrapper">
<div id="tabhead" class="tabhead"> <div id="tabhead" class="tabhead">
<span class="tab focus" data-content-id="upload"><var id="lang_tab_upload"></var></span> <span class="tab focus" data-content-id="upload"><var id="lang_tab_upload"></var></span>
<span class="tab" data-content-id="online"><var id="lang_tab_online"></var></span> <span class="tab" data-content-id="online"><var id="lang_tab_online"></var></span>
</div> </div>
<div id="tabbody" class="tabbody"> <div id="tabbody" class="tabbody">
<!-- 上传图片 --> <!-- 上传图片 -->
<div id="upload" class="panel focus"> <div id="upload" class="panel focus">
<div id="queueList" class="queueList"> <div id="queueList" class="queueList">
<div class="statusBar element-invisible"> <div class="statusBar element-invisible">
<div class="progress"> <div class="progress">
<span class="text">0%</span> <span class="text">0%</span>
<span class="percentage"></span> <span class="percentage"></span>
</div><div class="info"></div> </div><div class="info"></div>
<div class="btns"> <div class="btns">
<div id="filePickerBtn"></div> <div id="filePickerBtn"></div>
<div class="uploadBtn"><var id="lang_start_upload"></var></div> <div class="uploadBtn"><var id="lang_start_upload"></var></div>
</div> </div>
</div> </div>
<div id="dndArea" class="placeholder"> <div id="dndArea" class="placeholder">
<div class="filePickerContainer"> <div class="filePickerContainer">
<div id="filePickerReady"></div> <div id="filePickerReady"></div>
</div> </div>
</div> </div>
<ul class="filelist element-invisible"> <ul class="filelist element-invisible">
<li id="filePickerBlock" class="filePickerBlock"></li> <li id="filePickerBlock" class="filePickerBlock"></li>
</ul> </ul>
</div> </div>
</div> </div>
<!-- 在线图片 --> <!-- 在线图片 -->
<div id="online" class="panel"> <div id="online" class="panel">
<div id="fileList"><var id="lang_imgLoading"></var></div> <div id="fileList"><var id="lang_imgLoading"></var></div>
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="attachment.js"></script> <script type="text/javascript" src="attachment.js"></script>
</body> </body>
</html> </html>

View File

@ -1,94 +1,94 @@
.wrapper{ width: 424px;margin: 10px auto; zoom:1;position: relative} .wrapper{ width: 424px;margin: 10px auto; zoom:1;position: relative}
.tabbody{height:225px;} .tabbody{height:225px;}
.tabbody .panel { position: absolute;width:100%; height:100%;background: #fff; display: none;} .tabbody .panel { position: absolute;width:100%; height:100%;background: #fff; display: none;}
.tabbody .focus { display: block;} .tabbody .focus { display: block;}
body{font-size: 12px;color: #888;overflow: hidden;} body{font-size: 12px;color: #888;overflow: hidden;}
input,label{vertical-align:middle} input,label{vertical-align:middle}
.clear{clear: both;} .clear{clear: both;}
.pl{padding-left: 18px;padding-left: 23px\9;} .pl{padding-left: 18px;padding-left: 23px\9;}
#imageList {width: 420px;height: 215px;margin-top: 10px;overflow: hidden;overflow-y: auto;} #imageList {width: 420px;height: 215px;margin-top: 10px;overflow: hidden;overflow-y: auto;}
#imageList div {float: left;width: 100px;height: 95px;margin: 5px 10px;} #imageList div {float: left;width: 100px;height: 95px;margin: 5px 10px;}
#imageList img {cursor: pointer;border: 2px solid white;} #imageList img {cursor: pointer;border: 2px solid white;}
.bgarea{margin: 10px;padding: 5px;height: 84%;border: 1px solid #A8A297;} .bgarea{margin: 10px;padding: 5px;height: 84%;border: 1px solid #A8A297;}
.content div{margin: 10px 0 10px 5px;} .content div{margin: 10px 0 10px 5px;}
.content .iptradio{margin: 0px 5px 5px 0px;} .content .iptradio{margin: 0px 5px 5px 0px;}
.txt{width:280px;} .txt{width:280px;}
.wrapcolor{height: 19px;} .wrapcolor{height: 19px;}
div.color{float: left;margin: 0;} div.color{float: left;margin: 0;}
#colorPicker{width: 17px;height: 17px;border: 1px solid #CCC;display: inline-block;border-radius: 3px;box-shadow: 2px 2px 5px #D3D6DA;margin: 0;float: left;} #colorPicker{width: 17px;height: 17px;border: 1px solid #CCC;display: inline-block;border-radius: 3px;box-shadow: 2px 2px 5px #D3D6DA;margin: 0;float: left;}
div.alignment,#custom{margin-left: 23px;margin-left: 28px\9;} div.alignment,#custom{margin-left: 23px;margin-left: 28px\9;}
#custom input{height: 15px;min-height: 15px;width:20px;} #custom input{height: 15px;min-height: 15px;width:20px;}
#repeatType{width:100px;} #repeatType{width:100px;}
/* 图片管理样式 */ /* 图片管理样式 */
#imgManager { #imgManager {
width: 100%; width: 100%;
height: 225px; height: 225px;
} }
#imgManager #imageList{ #imgManager #imageList{
width: 100%; width: 100%;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
} }
#imgManager ul { #imgManager ul {
display: block; display: block;
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
#imgManager li { #imgManager li {
float: left; float: left;
display: block; display: block;
list-style: none; list-style: none;
padding: 0; padding: 0;
width: 113px; width: 113px;
height: 113px; height: 113px;
margin: 9px 0 0 19px; margin: 9px 0 0 19px;
background-color: #eee; background-color: #eee;
overflow: hidden; overflow: hidden;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
} }
#imgManager li.clearFloat { #imgManager li.clearFloat {
float: none; float: none;
clear: both; clear: both;
display: block; display: block;
width:0; width:0;
height:0; height:0;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
#imgManager li img { #imgManager li img {
cursor: pointer; cursor: pointer;
} }
#imgManager li .icon { #imgManager li .icon {
cursor: pointer; cursor: pointer;
width: 113px; width: 113px;
height: 113px; height: 113px;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
z-index: 2; z-index: 2;
border: 0; border: 0;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
#imgManager li .icon:hover { #imgManager li .icon:hover {
width: 107px; width: 107px;
height: 107px; height: 107px;
border: 3px solid #1094fa; border: 3px solid #1094fa;
} }
#imgManager li.selected .icon { #imgManager li.selected .icon {
background-image: url(images/success.png); background-image: url(images/success.png);
background-position: 75px 75px; background-position: 75px 75px;
} }
#imgManager li.selected .icon:hover { #imgManager li.selected .icon:hover {
width: 107px; width: 107px;
height: 107px; height: 107px;
border: 3px solid #1094fa; border: 3px solid #1094fa;
background-position: 72px 72px; background-position: 72px 72px;
} }

View File

@ -1,56 +1,56 @@
<!DOCTYPE HTML> <!DOCTYPE HTML>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
<link rel="stylesheet" type="text/css" href="background.css"> <link rel="stylesheet" type="text/css" href="background.css">
</head> </head>
<body> <body>
<div id="bg_container" class="wrapper"> <div id="bg_container" class="wrapper">
<div id="tabHeads" class="tabhead"> <div id="tabHeads" class="tabhead">
<span class="focus" data-content-id="normal"><var id="lang_background_normal"></var></span> <span class="focus" data-content-id="normal"><var id="lang_background_normal"></var></span>
<span class="" data-content-id="imgManager"><var id="lang_background_local"></var></span> <span class="" data-content-id="imgManager"><var id="lang_background_local"></var></span>
</div> </div>
<div id="tabBodys" class="tabbody"> <div id="tabBodys" class="tabbody">
<div id="normal" class="panel focus"> <div id="normal" class="panel focus">
<fieldset class="bgarea"> <fieldset class="bgarea">
<legend><var id="lang_background_set"></var></legend> <legend><var id="lang_background_set"></var></legend>
<div class="content"> <div class="content">
<div> <div>
<label><input id="nocolorRadio" class="iptradio" type="radio" name="t" value="none" checked="checked"><var id="lang_background_none"></var></label> <label><input id="nocolorRadio" class="iptradio" type="radio" name="t" value="none" checked="checked"><var id="lang_background_none"></var></label>
<label><input id="coloredRadio" class="iptradio" type="radio" name="t" value="color"><var id="lang_background_colored"></var></label> <label><input id="coloredRadio" class="iptradio" type="radio" name="t" value="color"><var id="lang_background_colored"></var></label>
</div> </div>
<div class="wrapcolor pl"> <div class="wrapcolor pl">
<div class="color"> <div class="color">
<var id="lang_background_color"></var>: <var id="lang_background_color"></var>:
</div> </div>
<div id="colorPicker"></div> <div id="colorPicker"></div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div class="wrapcolor pl"> <div class="wrapcolor pl">
<label><var id="lang_background_netimg"></var>:</label><input class="txt" type="text" id="url"> <label><var id="lang_background_netimg"></var>:</label><input class="txt" type="text" id="url">
</div> </div>
<div id="alignment" class="alignment"> <div id="alignment" class="alignment">
<var id="lang_background_align"></var>:<select id="repeatType"> <var id="lang_background_align"></var>:<select id="repeatType">
<option value="center"></option> <option value="center"></option>
<option value="repeat-x"></option> <option value="repeat-x"></option>
<option value="repeat-y"></option> <option value="repeat-y"></option>
<option value="repeat"></option> <option value="repeat"></option>
<option value="self"></option> <option value="self"></option>
</select> </select>
</div> </div>
<div id="custom" > <div id="custom" >
<var id="lang_background_position"></var>:x:<input type="text" size="1" id="x" maxlength="4" value="0">px&nbsp;&nbsp;y:<input type="text" size="1" id="y" maxlength="4" value="0">px <var id="lang_background_position"></var>:x:<input type="text" size="1" id="x" maxlength="4" value="0">px&nbsp;&nbsp;y:<input type="text" size="1" id="y" maxlength="4" value="0">px
</div> </div>
</div> </div>
</fieldset> </fieldset>
</div> </div>
<div id="imgManager" class="panel"> <div id="imgManager" class="panel">
<div id="imageList" style=""></div> <div id="imageList" style=""></div>
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="background.js"></script> <script type="text/javascript" src="background.js"></script>
</body> </body>
</html> </html>

View File

@ -1,376 +1,376 @@
(function () { (function () {
var onlineImage, var onlineImage,
backupStyle = editor.queryCommandValue('background'); backupStyle = editor.queryCommandValue('background');
window.onload = function () { window.onload = function () {
initTabs(); initTabs();
initColorSelector(); initColorSelector();
}; };
/* 初始化tab标签 */ /* 初始化tab标签 */
function initTabs() { function initTabs() {
var tabs = $G('tabHeads').children; var tabs = $G('tabHeads').children;
for (var i = 0; i < tabs.length; i++) { for (var i = 0; i < tabs.length; i++) {
domUtils.on(tabs[i], "click", function (e) { domUtils.on(tabs[i], "click", function (e) {
var target = e.target || e.srcElement; var target = e.target || e.srcElement;
for (var j = 0; j < tabs.length; j++) { for (var j = 0; j < tabs.length; j++) {
if (tabs[j] == target) { if (tabs[j] == target) {
tabs[j].className = "focus"; tabs[j].className = "focus";
var contentId = tabs[j].getAttribute('data-content-id'); var contentId = tabs[j].getAttribute('data-content-id');
$G(contentId).style.display = "block"; $G(contentId).style.display = "block";
if (contentId == 'imgManager') { if (contentId == 'imgManager') {
initImagePanel(); initImagePanel();
} }
} else { } else {
tabs[j].className = ""; tabs[j].className = "";
$G(tabs[j].getAttribute('data-content-id')).style.display = "none"; $G(tabs[j].getAttribute('data-content-id')).style.display = "none";
} }
} }
}); });
} }
} }
/* 初始化颜色设置 */ /* 初始化颜色设置 */
function initColorSelector() { function initColorSelector() {
var obj = editor.queryCommandValue('background'); var obj = editor.queryCommandValue('background');
if (obj) { if (obj) {
var color = obj['background-color'], var color = obj['background-color'],
repeat = obj['background-repeat'] || 'repeat', repeat = obj['background-repeat'] || 'repeat',
image = obj['background-image'] || '', image = obj['background-image'] || '',
position = obj['background-position'] || 'center center', position = obj['background-position'] || 'center center',
pos = position.split(' '), pos = position.split(' '),
x = parseInt(pos[0]) || 0, x = parseInt(pos[0]) || 0,
y = parseInt(pos[1]) || 0; y = parseInt(pos[1]) || 0;
if (repeat == 'no-repeat' && (x || y)) repeat = 'self'; if (repeat == 'no-repeat' && (x || y)) repeat = 'self';
image = image.match(/url[\s]*\(([^\)]*)\)/); image = image.match(/url[\s]*\(([^\)]*)\)/);
image = image ? image[1] : ''; image = image ? image[1] : '';
updateFormState('colored', color, image, repeat, x, y); updateFormState('colored', color, image, repeat, x, y);
} else { } else {
updateFormState(); updateFormState();
} }
var updateHandler = function () { var updateHandler = function () {
updateFormState(); updateFormState();
updateBackground(); updateBackground();
} }
domUtils.on($G('nocolorRadio'), 'click', updateBackground); domUtils.on($G('nocolorRadio'), 'click', updateBackground);
domUtils.on($G('coloredRadio'), 'click', updateHandler); domUtils.on($G('coloredRadio'), 'click', updateHandler);
domUtils.on($G('url'), 'keyup', function () { domUtils.on($G('url'), 'keyup', function () {
if ($G('url').value && $G('alignment').style.display == "none") { if ($G('url').value && $G('alignment').style.display == "none") {
utils.each($G('repeatType').children, function (item) { utils.each($G('repeatType').children, function (item) {
item.selected = ('repeat' == item.getAttribute('value') ? 'selected' : false); item.selected = ('repeat' == item.getAttribute('value') ? 'selected' : false);
}); });
} }
updateHandler(); updateHandler();
}); });
domUtils.on($G('repeatType'), 'change', updateHandler); domUtils.on($G('repeatType'), 'change', updateHandler);
domUtils.on($G('x'), 'keyup', updateBackground); domUtils.on($G('x'), 'keyup', updateBackground);
domUtils.on($G('y'), 'keyup', updateBackground); domUtils.on($G('y'), 'keyup', updateBackground);
initColorPicker(); initColorPicker();
} }
/* 初始化颜色选择器 */ /* 初始化颜色选择器 */
function initColorPicker() { function initColorPicker() {
var me = editor, var me = editor,
cp = $G("colorPicker"); cp = $G("colorPicker");
/* 生成颜色选择器ui对象 */ /* 生成颜色选择器ui对象 */
var popup = new UE.ui.Popup({ var popup = new UE.ui.Popup({
content: new UE.ui.ColorPicker({ content: new UE.ui.ColorPicker({
noColorText: me.getLang("clearColor"), noColorText: me.getLang("clearColor"),
editor: me, editor: me,
onpickcolor: function (t, color) { onpickcolor: function (t, color) {
updateFormState('colored', color); updateFormState('colored', color);
updateBackground(); updateBackground();
UE.ui.Popup.postHide(); UE.ui.Popup.postHide();
}, },
onpicknocolor: function (t, color) { onpicknocolor: function (t, color) {
updateFormState('colored', 'transparent'); updateFormState('colored', 'transparent');
updateBackground(); updateBackground();
UE.ui.Popup.postHide(); UE.ui.Popup.postHide();
} }
}), }),
editor: me, editor: me,
onhide: function () { onhide: function () {
} }
}); });
/* 设置颜色选择器 */ /* 设置颜色选择器 */
domUtils.on(cp, "click", function () { domUtils.on(cp, "click", function () {
popup.showAnchor(this); popup.showAnchor(this);
}); });
domUtils.on(document, 'mousedown', function (evt) { domUtils.on(document, 'mousedown', function (evt) {
var el = evt.target || evt.srcElement; var el = evt.target || evt.srcElement;
UE.ui.Popup.postHide(el); UE.ui.Popup.postHide(el);
}); });
domUtils.on(window, 'scroll', function () { domUtils.on(window, 'scroll', function () {
UE.ui.Popup.postHide(); UE.ui.Popup.postHide();
}); });
} }
/* 初始化在线图片列表 */ /* 初始化在线图片列表 */
function initImagePanel() { function initImagePanel() {
onlineImage = onlineImage || new OnlineImage('imageList'); onlineImage = onlineImage || new OnlineImage('imageList');
} }
/* 更新背景色设置面板 */ /* 更新背景色设置面板 */
function updateFormState(radio, color, url, align, x, y) { function updateFormState(radio, color, url, align, x, y) {
var nocolorRadio = $G('nocolorRadio'), var nocolorRadio = $G('nocolorRadio'),
coloredRadio = $G('coloredRadio'); coloredRadio = $G('coloredRadio');
if (radio) { if (radio) {
nocolorRadio.checked = (radio == 'colored' ? false : 'checked'); nocolorRadio.checked = (radio == 'colored' ? false : 'checked');
coloredRadio.checked = (radio == 'colored' ? 'checked' : false); coloredRadio.checked = (radio == 'colored' ? 'checked' : false);
} }
if (color) { if (color) {
domUtils.setStyle($G("colorPicker"), "background-color", color); domUtils.setStyle($G("colorPicker"), "background-color", color);
} }
if (url && /^\//.test(url)) { if (url && /^\//.test(url)) {
var a = document.createElement('a'); var a = document.createElement('a');
a.href = url; a.href = url;
browser.ie && (a.href = a.href); browser.ie && (a.href = a.href);
url = browser.ie ? a.href : (a.protocol + '//' + a.host + a.pathname + a.search + a.hash); url = browser.ie ? a.href : (a.protocol + '//' + a.host + a.pathname + a.search + a.hash);
} }
if (url || url === '') { if (url || url === '') {
$G('url').value = url; $G('url').value = url;
} }
if (align) { if (align) {
utils.each($G('repeatType').children, function (item) { utils.each($G('repeatType').children, function (item) {
item.selected = (align == item.getAttribute('value') ? 'selected' : false); item.selected = (align == item.getAttribute('value') ? 'selected' : false);
}); });
} }
if (x || y) { if (x || y) {
$G('x').value = parseInt(x) || 0; $G('x').value = parseInt(x) || 0;
$G('y').value = parseInt(y) || 0; $G('y').value = parseInt(y) || 0;
} }
$G('alignment').style.display = coloredRadio.checked && $G('url').value ? '' : 'none'; $G('alignment').style.display = coloredRadio.checked && $G('url').value ? '' : 'none';
$G('custom').style.display = coloredRadio.checked && $G('url').value && $G('repeatType').value == 'self' ? '' : 'none'; $G('custom').style.display = coloredRadio.checked && $G('url').value && $G('repeatType').value == 'self' ? '' : 'none';
} }
/* 更新背景颜色 */ /* 更新背景颜色 */
function updateBackground() { function updateBackground() {
if ($G('coloredRadio').checked) { if ($G('coloredRadio').checked) {
var color = domUtils.getStyle($G("colorPicker"), "background-color"), var color = domUtils.getStyle($G("colorPicker"), "background-color"),
bgimg = $G("url").value, bgimg = $G("url").value,
align = $G("repeatType").value, align = $G("repeatType").value,
backgroundObj = { backgroundObj = {
"background-repeat": "no-repeat", "background-repeat": "no-repeat",
"background-position": "center center" "background-position": "center center"
}; };
if (color) backgroundObj["background-color"] = color; if (color) backgroundObj["background-color"] = color;
if (bgimg) backgroundObj["background-image"] = 'url(' + bgimg + ')'; if (bgimg) backgroundObj["background-image"] = 'url(' + bgimg + ')';
if (align == 'self') { if (align == 'self') {
backgroundObj["background-position"] = $G("x").value + "px " + $G("y").value + "px"; backgroundObj["background-position"] = $G("x").value + "px " + $G("y").value + "px";
} else if (align == 'repeat-x' || align == 'repeat-y' || align == 'repeat') { } else if (align == 'repeat-x' || align == 'repeat-y' || align == 'repeat') {
backgroundObj["background-repeat"] = align; backgroundObj["background-repeat"] = align;
} }
editor.execCommand('background', backgroundObj); editor.execCommand('background', backgroundObj);
} else { } else {
editor.execCommand('background', null); editor.execCommand('background', null);
} }
} }
/* 在线图片 */ /* 在线图片 */
function OnlineImage(target) { function OnlineImage(target) {
this.container = utils.isString(target) ? document.getElementById(target) : target; this.container = utils.isString(target) ? document.getElementById(target) : target;
this.init(); this.init();
} }
OnlineImage.prototype = { OnlineImage.prototype = {
init: function () { init: function () {
this.reset(); this.reset();
this.initEvents(); this.initEvents();
}, },
/* 初始化容器 */ /* 初始化容器 */
initContainer: function () { initContainer: function () {
this.container.innerHTML = ''; this.container.innerHTML = '';
this.list = document.createElement('ul'); this.list = document.createElement('ul');
this.clearFloat = document.createElement('li'); this.clearFloat = document.createElement('li');
domUtils.addClass(this.list, 'list'); domUtils.addClass(this.list, 'list');
domUtils.addClass(this.clearFloat, 'clearFloat'); domUtils.addClass(this.clearFloat, 'clearFloat');
this.list.id = 'imageListUl'; this.list.id = 'imageListUl';
this.list.appendChild(this.clearFloat); this.list.appendChild(this.clearFloat);
this.container.appendChild(this.list); this.container.appendChild(this.list);
}, },
/* 初始化滚动事件,滚动到地步自动拉取数据 */ /* 初始化滚动事件,滚动到地步自动拉取数据 */
initEvents: function () { initEvents: function () {
var _this = this; var _this = this;
/* 滚动拉取图片 */ /* 滚动拉取图片 */
domUtils.on($G('imageList'), 'scroll', function (e) { domUtils.on($G('imageList'), 'scroll', function (e) {
var panel = this; var panel = this;
if (panel.scrollHeight - (panel.offsetHeight + panel.scrollTop) < 10) { if (panel.scrollHeight - (panel.offsetHeight + panel.scrollTop) < 10) {
_this.getImageData(); _this.getImageData();
} }
}); });
/* 选中图片 */ /* 选中图片 */
domUtils.on(this.container, 'click', function (e) { domUtils.on(this.container, 'click', function (e) {
var target = e.target || e.srcElement, var target = e.target || e.srcElement,
li = target.parentNode, li = target.parentNode,
nodes = $G('imageListUl').childNodes; nodes = $G('imageListUl').childNodes;
if (li.tagName.toLowerCase() == 'li') { if (li.tagName.toLowerCase() == 'li') {
updateFormState('nocolor', null, ''); updateFormState('nocolor', null, '');
for (var i = 0, node; node = nodes[i++];) { for (var i = 0, node; node = nodes[i++];) {
if (node == li && !domUtils.hasClass(node, 'selected')) { if (node == li && !domUtils.hasClass(node, 'selected')) {
domUtils.addClass(node, 'selected'); domUtils.addClass(node, 'selected');
updateFormState('colored', null, li.firstChild.getAttribute("_src"), 'repeat'); updateFormState('colored', null, li.firstChild.getAttribute("_src"), 'repeat');
} else { } else {
domUtils.removeClasses(node, 'selected'); domUtils.removeClasses(node, 'selected');
} }
} }
updateBackground(); updateBackground();
} }
}); });
}, },
/* 初始化第一次的数据 */ /* 初始化第一次的数据 */
initData: function () { initData: function () {
/* 拉取数据需要使用的值 */ /* 拉取数据需要使用的值 */
this.state = 0; this.state = 0;
this.listSize = editor.getOpt('imageManagerListSize'); this.listSize = editor.getOpt('imageManagerListSize');
this.listIndex = 0; this.listIndex = 0;
this.listEnd = false; this.listEnd = false;
/* 第一次拉取数据 */ /* 第一次拉取数据 */
this.getImageData(); this.getImageData();
}, },
/* 重置界面 */ /* 重置界面 */
reset: function () { reset: function () {
this.initContainer(); this.initContainer();
this.initData(); this.initData();
}, },
/* 向后台拉取图片列表数据 */ /* 向后台拉取图片列表数据 */
getImageData: function () { getImageData: function () {
var _this = this; var _this = this;
if (!_this.listEnd && !this.isLoadingData) { if (!_this.listEnd && !this.isLoadingData) {
this.isLoadingData = true; this.isLoadingData = true;
var url = editor.getActionUrl(editor.getOpt('imageManagerActionName')), var url = editor.getActionUrl(editor.getOpt('imageManagerActionName')),
isJsonp = utils.isCrossDomainUrl(url); isJsonp = utils.isCrossDomainUrl(url);
ajax.request(url, { ajax.request(url, {
'timeout': 100000, 'timeout': 100000,
'dataType': isJsonp ? 'jsonp' : '', 'dataType': isJsonp ? 'jsonp' : '',
'data': utils.extend({ 'data': utils.extend({
start: this.listIndex, start: this.listIndex,
size: this.listSize size: this.listSize
}, editor.queryCommandValue('serverparam')), }, editor.queryCommandValue('serverparam')),
'method': 'get', 'method': 'get',
'onsuccess': function (r) { 'onsuccess': function (r) {
try { try {
var json = isJsonp ? r : JSON.parse( r.responseText ); var json = isJsonp ? r : JSON.parse( r.responseText );
if (json.state == 'SUCCESS') { if (json.state == 'SUCCESS') {
_this.pushData(json.list); _this.pushData(json.list);
_this.listIndex = parseInt(json.start) + parseInt(json.list.length); _this.listIndex = parseInt(json.start) + parseInt(json.list.length);
if (_this.listIndex >= json.total) { if (_this.listIndex >= json.total) {
_this.listEnd = true; _this.listEnd = true;
} }
_this.isLoadingData = false; _this.isLoadingData = false;
} }
} catch (e) { } catch (e) {
if (r.responseText.indexOf('ue_separate_ue') != -1) { if (r.responseText.indexOf('ue_separate_ue') != -1) {
var list = r.responseText.split(r.responseText); var list = r.responseText.split(r.responseText);
_this.pushData(list); _this.pushData(list);
_this.listIndex = parseInt(list.length); _this.listIndex = parseInt(list.length);
_this.listEnd = true; _this.listEnd = true;
_this.isLoadingData = false; _this.isLoadingData = false;
} }
} }
}, },
'onerror': function () { 'onerror': function () {
_this.isLoadingData = false; _this.isLoadingData = false;
} }
}); });
} }
}, },
/* 添加图片到列表界面上 */ /* 添加图片到列表界面上 */
pushData: function (list) { pushData: function (list) {
var i, item, img, icon, _this = this, var i, item, img, icon, _this = this,
urlPrefix = editor.getOpt('imageManagerUrlPrefix'); urlPrefix = editor.getOpt('imageManagerUrlPrefix');
for (i = 0; i < list.length; i++) { for (i = 0; i < list.length; i++) {
if (list[i] && list[i].url) { if (list[i] && list[i].url) {
item = document.createElement('li'); item = document.createElement('li');
img = document.createElement('img'); img = document.createElement('img');
icon = document.createElement('span'); icon = document.createElement('span');
domUtils.on(img, 'load', (function (image) { domUtils.on(img, 'load', (function (image) {
return function () { return function () {
_this.scale(image, image.parentNode.offsetWidth, image.parentNode.offsetHeight); _this.scale(image, image.parentNode.offsetWidth, image.parentNode.offsetHeight);
} }
})(img)); })(img));
img.width = 113; img.width = 113;
img.setAttribute('src', urlPrefix + list[i].url + (list[i].url.indexOf('?') == -1 ? '?noCache=' : '&noCache=') + (+new Date()).toString(36)); img.setAttribute('src', urlPrefix + list[i].url + (list[i].url.indexOf('?') == -1 ? '?noCache=' : '&noCache=') + (+new Date()).toString(36));
img.setAttribute('_src', urlPrefix + list[i].url); img.setAttribute('_src', urlPrefix + list[i].url);
domUtils.addClass(icon, 'icon'); domUtils.addClass(icon, 'icon');
item.appendChild(img); item.appendChild(img);
item.appendChild(icon); item.appendChild(icon);
this.list.insertBefore(item, this.clearFloat); this.list.insertBefore(item, this.clearFloat);
} }
} }
}, },
/* 改变图片大小 */ /* 改变图片大小 */
scale: function (img, w, h, type) { scale: function (img, w, h, type) {
var ow = img.width, var ow = img.width,
oh = img.height; oh = img.height;
if (type == 'justify') { if (type == 'justify') {
if (ow >= oh) { if (ow >= oh) {
img.width = w; img.width = w;
img.height = h * oh / ow; img.height = h * oh / ow;
img.style.marginLeft = '-' + parseInt((img.width - w) / 2) + 'px'; img.style.marginLeft = '-' + parseInt((img.width - w) / 2) + 'px';
} else { } else {
img.width = w * ow / oh; img.width = w * ow / oh;
img.height = h; img.height = h;
img.style.marginTop = '-' + parseInt((img.height - h) / 2) + 'px'; img.style.marginTop = '-' + parseInt((img.height - h) / 2) + 'px';
} }
} else { } else {
if (ow >= oh) { if (ow >= oh) {
img.width = w * ow / oh; img.width = w * ow / oh;
img.height = h; img.height = h;
img.style.marginLeft = '-' + parseInt((img.width - w) / 2) + 'px'; img.style.marginLeft = '-' + parseInt((img.width - w) / 2) + 'px';
} else { } else {
img.width = w; img.width = w;
img.height = h * oh / ow; img.height = h * oh / ow;
img.style.marginTop = '-' + parseInt((img.height - h) / 2) + 'px'; img.style.marginTop = '-' + parseInt((img.height - h) / 2) + 'px';
} }
} }
}, },
getInsertList: function () { getInsertList: function () {
var i, lis = this.list.children, list = [], align = getAlign(); var i, lis = this.list.children, list = [], align = getAlign();
for (i = 0; i < lis.length; i++) { for (i = 0; i < lis.length; i++) {
if (domUtils.hasClass(lis[i], 'selected')) { if (domUtils.hasClass(lis[i], 'selected')) {
var img = lis[i].firstChild, var img = lis[i].firstChild,
src = img.getAttribute('_src'); src = img.getAttribute('_src');
list.push({ list.push({
src: src, src: src,
_src: src, _src: src,
floatStyle: align floatStyle: align
}); });
} }
} }
return list; return list;
} }
}; };
dialog.onok = function () { dialog.onok = function () {
updateBackground(); updateBackground();
editor.fireEvent('saveScene'); editor.fireEvent('saveScene');
}; };
dialog.oncancel = function () { dialog.oncancel = function () {
editor.execCommand('background', backupStyle); editor.execCommand('background', backupStyle);
}; };
})(); })();

View File

@ -1,65 +1,65 @@
/* /*
* 图表配置文件 * 图表配置文件
* */ * */
//不同类型的配置 //不同类型的配置
var typeConfig = [ var typeConfig = [
{ {
chart: { chart: {
type: 'line' type: 'line'
}, },
plotOptions: { plotOptions: {
line: { line: {
dataLabels: { dataLabels: {
enabled: false enabled: false
}, },
enableMouseTracking: true enableMouseTracking: true
} }
} }
}, { }, {
chart: { chart: {
type: 'line' type: 'line'
}, },
plotOptions: { plotOptions: {
line: { line: {
dataLabels: { dataLabels: {
enabled: true enabled: true
}, },
enableMouseTracking: false enableMouseTracking: false
} }
} }
}, { }, {
chart: { chart: {
type: 'area' type: 'area'
} }
}, { }, {
chart: { chart: {
type: 'bar' type: 'bar'
} }
}, { }, {
chart: { chart: {
type: 'column' type: 'column'
} }
}, { }, {
chart: { chart: {
plotBackgroundColor: null, plotBackgroundColor: null,
plotBorderWidth: null, plotBorderWidth: null,
plotShadow: false plotShadow: false
}, },
plotOptions: { plotOptions: {
pie: { pie: {
allowPointSelect: true, allowPointSelect: true,
cursor: 'pointer', cursor: 'pointer',
dataLabels: { dataLabels: {
enabled: true, enabled: true,
color: '#000000', color: '#000000',
connectorColor: '#000000', connectorColor: '#000000',
formatter: function() { formatter: function() {
return '<b>'+ this.point.name +'</b>: '+ ( Math.round( this.point.percentage*100 ) / 100 ) +' %'; return '<b>'+ this.point.name +'</b>: '+ ( Math.round( this.point.percentage*100 ) / 100 ) +' %';
} }
} }
} }
} }
} }
]; ];

View File

@ -1,165 +1,165 @@
html, body { html, body {
width: 100%; width: 100%;
height: 100%; height: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
overflow-x: hidden; overflow-x: hidden;
} }
.main { .main {
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
} }
.table-view { .table-view {
height: 100%; height: 100%;
float: left; float: left;
margin: 20px; margin: 20px;
width: 40%; width: 40%;
} }
.table-view .table-container { .table-view .table-container {
width: 100%; width: 100%;
margin-bottom: 50px; margin-bottom: 50px;
overflow: scroll; overflow: scroll;
} }
.table-view th { .table-view th {
padding: 5px 10px; padding: 5px 10px;
background-color: #F7F7F7; background-color: #F7F7F7;
} }
.table-view td { .table-view td {
width: 50px; width: 50px;
text-align: center; text-align: center;
padding:0; padding:0;
} }
.table-container input { .table-container input {
width: 40px; width: 40px;
padding: 5px; padding: 5px;
border: none; border: none;
outline: none; outline: none;
} }
.table-view caption { .table-view caption {
font-size: 18px; font-size: 18px;
text-align: left; text-align: left;
} }
.charts-view { .charts-view {
/*margin-left: 49%!important;*/ /*margin-left: 49%!important;*/
width: 50%; width: 50%;
margin-left: 49%; margin-left: 49%;
height: 400px; height: 400px;
} }
.charts-container { .charts-container {
border-left: 1px solid #c3c3c3; border-left: 1px solid #c3c3c3;
} }
.charts-format fieldset { .charts-format fieldset {
padding-left: 20px; padding-left: 20px;
margin-bottom: 50px; margin-bottom: 50px;
} }
.charts-format legend { .charts-format legend {
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
} }
.format-item-container { .format-item-container {
padding: 20px; padding: 20px;
} }
.format-item-container label { .format-item-container label {
display: block; display: block;
margin: 10px 0; margin: 10px 0;
} }
.charts-format .data-item { .charts-format .data-item {
border: 1px solid black; border: 1px solid black;
outline: none; outline: none;
padding: 2px 3px; padding: 2px 3px;
} }
/* 图表类型 */ /* 图表类型 */
.charts-type { .charts-type {
margin-top: 50px; margin-top: 50px;
height: 300px; height: 300px;
} }
.scroll-view { .scroll-view {
border: 1px solid #c3c3c3; border: 1px solid #c3c3c3;
border-left: none; border-left: none;
border-right: none; border-right: none;
overflow: hidden; overflow: hidden;
} }
.scroll-container { .scroll-container {
margin: 20px; margin: 20px;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
} }
.scroll-bed { .scroll-bed {
width: 10000px; width: 10000px;
_margin-top: 20px; _margin-top: 20px;
-webkit-transition: margin-left .5s ease; -webkit-transition: margin-left .5s ease;
-moz-transition: margin-left .5s ease; -moz-transition: margin-left .5s ease;
transition: margin-left .5s ease; transition: margin-left .5s ease;
} }
.view-box { .view-box {
display: inline-block; display: inline-block;
*display: inline; *display: inline;
*zoom: 1; *zoom: 1;
margin-right: 20px; margin-right: 20px;
border: 2px solid white; border: 2px solid white;
line-height: 0; line-height: 0;
overflow: hidden; overflow: hidden;
cursor: pointer; cursor: pointer;
} }
.view-box img { .view-box img {
border: 1px solid #cecece; border: 1px solid #cecece;
} }
.view-box.selected { .view-box.selected {
border-color: #7274A7; border-color: #7274A7;
} }
.button-container { .button-container {
margin-bottom: 20px; margin-bottom: 20px;
text-align: center; text-align: center;
} }
.button-container a { .button-container a {
display: inline-block; display: inline-block;
width: 100px; width: 100px;
height: 25px; height: 25px;
line-height: 25px; line-height: 25px;
border: 1px solid #c2ccd1; border: 1px solid #c2ccd1;
margin-right: 30px; margin-right: 30px;
text-decoration: none; text-decoration: none;
color: black; color: black;
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
border-radius: 2px; border-radius: 2px;
} }
.button-container a:HOVER { .button-container a:HOVER {
background: #fcfcfc; background: #fcfcfc;
} }
.button-container a:ACTIVE { .button-container a:ACTIVE {
border-top-color: #c2ccd1; border-top-color: #c2ccd1;
box-shadow:inset 0 5px 4px -4px rgba(49, 49, 64, 0.1); box-shadow:inset 0 5px 4px -4px rgba(49, 49, 64, 0.1);
} }
.edui-charts-not-data { .edui-charts-not-data {
height: 100px; height: 100px;
line-height: 100px; line-height: 100px;
text-align: center; text-align: center;
} }

View File

@ -1,89 +1,89 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>chart</title> <title>chart</title>
<meta chartset="utf-8"> <meta chartset="utf-8">
<link rel="stylesheet" type="text/css" href="charts.css"> <link rel="stylesheet" type="text/css" href="charts.css">
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
</head> </head>
<body> <body>
<div class="main"> <div class="main">
<div class="table-view"> <div class="table-view">
<h3><var id="lang_data_source"></var></h3> <h3><var id="lang_data_source"></var></h3>
<div id="tableContainer" class="table-container"></div> <div id="tableContainer" class="table-container"></div>
<h3><var id="lang_chart_format"></var></h3> <h3><var id="lang_chart_format"></var></h3>
<form name="data-form"> <form name="data-form">
<div class="charts-format"> <div class="charts-format">
<fieldset> <fieldset>
<legend><var id="lang_data_align"></var></legend> <legend><var id="lang_data_align"></var></legend>
<div class="format-item-container"> <div class="format-item-container">
<label> <label>
<input type="radio" class="format-ctrl not-pie-item" name="charts-format" value="1" checked="checked"> <input type="radio" class="format-ctrl not-pie-item" name="charts-format" value="1" checked="checked">
<var id="lang_chart_align_same"></var> <var id="lang_chart_align_same"></var>
</label> </label>
<label> <label>
<input type="radio" class="format-ctrl not-pie-item" name="charts-format" value="-1"> <input type="radio" class="format-ctrl not-pie-item" name="charts-format" value="-1">
<var id="lang_chart_align_reverse"></var> <var id="lang_chart_align_reverse"></var>
</label> </label>
<br> <br>
</div> </div>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend><var id="lang_chart_title"></var></legend> <legend><var id="lang_chart_title"></var></legend>
<div class="format-item-container"> <div class="format-item-container">
<label> <label>
<var id="lang_chart_main_title"></var><input type="text" name="title" class="data-item"> <var id="lang_chart_main_title"></var><input type="text" name="title" class="data-item">
</label> </label>
<label> <label>
<var id="lang_chart_sub_title"></var><input type="text" name="sub-title" class="data-item not-pie-item"> <var id="lang_chart_sub_title"></var><input type="text" name="sub-title" class="data-item not-pie-item">
</label> </label>
<label> <label>
<var id="lang_chart_x_title"></var><input type="text" name="x-title" class="data-item not-pie-item"> <var id="lang_chart_x_title"></var><input type="text" name="x-title" class="data-item not-pie-item">
</label> </label>
<label> <label>
<var id="lang_chart_y_title"></var><input type="text" name="y-title" class="data-item not-pie-item"> <var id="lang_chart_y_title"></var><input type="text" name="y-title" class="data-item not-pie-item">
</label> </label>
</div> </div>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend><var id="lang_chart_tip"></var></legend> <legend><var id="lang_chart_tip"></var></legend>
<div class="format-item-container"> <div class="format-item-container">
<label> <label>
<var id="lang_cahrt_tip_prefix"></var> <var id="lang_cahrt_tip_prefix"></var>
<input type="text" id="tipInput" name="tip" class="data-item" disabled="disabled"> <input type="text" id="tipInput" name="tip" class="data-item" disabled="disabled">
</label> </label>
<p><var id="lang_cahrt_tip_description"></var></p> <p><var id="lang_cahrt_tip_description"></var></p>
</div> </div>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend><var id="lang_chart_data_unit"></var></legend> <legend><var id="lang_chart_data_unit"></var></legend>
<div class="format-item-container"> <div class="format-item-container">
<label><var id="lang_chart_data_unit_title"></var><input type="text" name="unit" class="data-item"></label> <label><var id="lang_chart_data_unit_title"></var><input type="text" name="unit" class="data-item"></label>
<p><var id="lang_chart_data_unit_description"></var></p> <p><var id="lang_chart_data_unit_description"></var></p>
</div> </div>
</fieldset> </fieldset>
</div> </div>
</form> </form>
</div> </div>
<div class="charts-view"> <div class="charts-view">
<div id="chartsContainer" class="charts-container"></div> <div id="chartsContainer" class="charts-container"></div>
<div id="chartsType" class="charts-type"> <div id="chartsType" class="charts-type">
<h3><var id="lang_chart_type"></var></h3> <h3><var id="lang_chart_type"></var></h3>
<div class="scroll-view"> <div class="scroll-view">
<div class="scroll-container"> <div class="scroll-container">
<div id="scrollBed" class="scroll-bed"></div> <div id="scrollBed" class="scroll-bed"></div>
</div> </div>
<div id="buttonContainer" class="button-container"> <div id="buttonContainer" class="button-container">
<a href="#" data-title="prev"><var id="lang_prev_btn"></var></a> <a href="#" data-title="prev"><var id="lang_prev_btn"></var></a>
<a href="#" data-title="next"><var id="lang_next_btn"></var></a> <a href="#" data-title="next"><var id="lang_next_btn"></var></a>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<script src="../../third-party/jquery-1.10.2.min.js"></script> <script src="../../third-party/jquery-1.10.2.min.js"></script>
<script src="../../third-party/highcharts/highcharts.js"></script> <script src="../../third-party/highcharts/highcharts.js"></script>
<script src="chart.config.js"></script> <script src="chart.config.js"></script>
<script src="charts.js"></script> <script src="charts.js"></script>
</body> </body>
</html> </html>

View File

@ -1,43 +1,43 @@
.jd img{ .jd img{
background:transparent url(images/jxface2.gif?v=1.1) no-repeat scroll left top; background:transparent url(images/jxface2.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:35px;height:35px;display:block; cursor:pointer;width:35px;height:35px;display:block;
} }
.pp img{ .pp img{
background:transparent url(images/fface.gif?v=1.1) no-repeat scroll left top; background:transparent url(images/fface.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:25px;height:25px;display:block; cursor:pointer;width:25px;height:25px;display:block;
} }
.ldw img{ .ldw img{
background:transparent url(images/wface.gif?v=1.1) no-repeat scroll left top; background:transparent url(images/wface.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:35px;height:35px;display:block; cursor:pointer;width:35px;height:35px;display:block;
} }
.tsj img{ .tsj img{
background:transparent url(images/tface.gif?v=1.1) no-repeat scroll left top; background:transparent url(images/tface.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:35px;height:35px;display:block; cursor:pointer;width:35px;height:35px;display:block;
} }
.cat img{ .cat img{
background:transparent url(images/cface.gif?v=1.1) no-repeat scroll left top; background:transparent url(images/cface.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:35px;height:35px;display:block; cursor:pointer;width:35px;height:35px;display:block;
} }
.bb img{ .bb img{
background:transparent url(images/bface.gif?v=1.1) no-repeat scroll left top; background:transparent url(images/bface.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:35px;height:35px;display:block; cursor:pointer;width:35px;height:35px;display:block;
} }
.youa img{ .youa img{
background:transparent url(images/yface.gif?v=1.1) no-repeat scroll left top; background:transparent url(images/yface.gif?v=1.1) no-repeat scroll left top;
cursor:pointer;width:35px;height:35px;display:block; cursor:pointer;width:35px;height:35px;display:block;
} }
.smileytable td {height: 37px;} .smileytable td {height: 37px;}
#tabPanel{margin-left:5px;overflow: hidden;} #tabPanel{margin-left:5px;overflow: hidden;}
#tabContent {float:left;background:#FFFFFF;} #tabContent {float:left;background:#FFFFFF;}
#tabContent div{display: none;width:480px;overflow:hidden;} #tabContent div{display: none;width:480px;overflow:hidden;}
#tabIconReview.show{left:17px;display:block;} #tabIconReview.show{left:17px;display:block;}
.menuFocus{background:#ACCD3C;} .menuFocus{background:#ACCD3C;}
.menuDefault{background:#FFFFFF;} .menuDefault{background:#FFFFFF;}
#tabIconReview{position:absolute;left:406px;left:398px \9;top:41px;z-index:65533;width:90px;height:76px;} #tabIconReview{position:absolute;left:406px;left:398px \9;top:41px;z-index:65533;width:90px;height:76px;}
img.review{width:90px;height:76px;border:2px solid #9cb945;background:#FFFFFF;background-position:center;background-repeat:no-repeat;} img.review{width:90px;height:76px;border:2px solid #9cb945;background:#FFFFFF;background-position:center;background-repeat:no-repeat;}
.wrapper .tabbody{position:relative;float:left;clear:both;padding:10px;width: 95%;} .wrapper .tabbody{position:relative;float:left;clear:both;padding:10px;width: 95%;}
.tabbody table{width: 100%;} .tabbody table{width: 100%;}
.tabbody td{border:1px solid #BAC498;} .tabbody td{border:1px solid #BAC498;}
.tabbody td span{display: block;zoom:1;padding:0 4px;} .tabbody td span{display: block;zoom:1;padding:0 4px;}

View File

@ -1,54 +1,54 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title></title> <title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="robots" content="noindex, nofollow"/> <meta name="robots" content="noindex, nofollow"/>
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
<link rel="stylesheet" type="text/css" href="emotion.css"> <link rel="stylesheet" type="text/css" href="emotion.css">
</head> </head>
<body> <body>
<div id="tabPanel" class="wrapper"> <div id="tabPanel" class="wrapper">
<div id="tabHeads" class="tabhead"> <div id="tabHeads" class="tabhead">
<span><var id="lang_input_choice"></var></span> <span><var id="lang_input_choice"></var></span>
<span><var id="lang_input_Tuzki"></var></span> <span><var id="lang_input_Tuzki"></var></span>
<span><var id="lang_input_lvdouwa"></var></span> <span><var id="lang_input_lvdouwa"></var></span>
<span><var id="lang_input_BOBO"></var></span> <span><var id="lang_input_BOBO"></var></span>
<span><var id="lang_input_babyCat"></var></span> <span><var id="lang_input_babyCat"></var></span>
<span><var id="lang_input_bubble"></var></span> <span><var id="lang_input_bubble"></var></span>
<span><var id="lang_input_youa"></var></span> <span><var id="lang_input_youa"></var></span>
</div> </div>
<div id="tabBodys" class="tabbody"> <div id="tabBodys" class="tabbody">
<div id="tab0"></div> <div id="tab0"></div>
<div id="tab1"></div> <div id="tab1"></div>
<div id="tab2"></div> <div id="tab2"></div>
<div id="tab3"></div> <div id="tab3"></div>
<div id="tab4"></div> <div id="tab4"></div>
<div id="tab5"></div> <div id="tab5"></div>
<div id="tab6"></div> <div id="tab6"></div>
</div> </div>
</div> </div>
<div id="tabIconReview"> <div id="tabIconReview">
<img id='faceReview' class='review' src="../../themes/default/images/spacer.gif"/> <img id='faceReview' class='review' src="../../themes/default/images/spacer.gif"/>
</div> </div>
<script type="text/javascript" src="emotion.js"></script> <script type="text/javascript" src="emotion.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var emotion = { var emotion = {
tabNum:7, //切换面板数量 tabNum:7, //切换面板数量
SmilmgName:{ tab0:['j_00', 84], tab1:['t_00', 40], tab2:['w_00', 52], tab3:['B_00', 63], tab4:['C_00', 20], tab5:['i_f', 50], tab6:['y_00', 40] }, //图片前缀名 SmilmgName:{ tab0:['j_00', 84], tab1:['t_00', 40], tab2:['w_00', 52], tab3:['B_00', 63], tab4:['C_00', 20], tab5:['i_f', 50], tab6:['y_00', 40] }, //图片前缀名
imageFolders:{ tab0:'jx2/', tab1:'tsj/', tab2:'ldw/', tab3:'bobo/', tab4:'babycat/', tab5:'face/', tab6:'youa/'}, //图片对应文件夹路径 imageFolders:{ tab0:'jx2/', tab1:'tsj/', tab2:'ldw/', tab3:'bobo/', tab4:'babycat/', tab5:'face/', tab6:'youa/'}, //图片对应文件夹路径
imageCss:{tab0:'jd', tab1:'tsj', tab2:'ldw', tab3:'bb', tab4:'cat', tab5:'pp', tab6:'youa'}, //图片css类名 imageCss:{tab0:'jd', tab1:'tsj', tab2:'ldw', tab3:'bb', tab4:'cat', tab5:'pp', tab6:'youa'}, //图片css类名
imageCssOffset:{tab0:35, tab1:35, tab2:35, tab3:35, tab4:35, tab5:25, tab6:35}, //图片偏移 imageCssOffset:{tab0:35, tab1:35, tab2:35, tab3:35, tab4:35, tab5:25, tab6:35}, //图片偏移
SmileyInfor:{ SmileyInfor:{
tab0:['Kiss', 'Love', 'Yeah', '啊!', '背扭', '顶', '抖胸', '88', '汗', '瞌睡', '鲁拉', '拍砖', '揉脸', '生日快乐', '大笑', '瀑布汗~', '惊讶', '臭美', '傻笑', '抛媚眼', '发怒', '打酱油', '俯卧撑', '气愤', '?', '吻', '怒', '胜利', 'HI', 'KISS', '不说', '不要', '扯花', '大心', '顶', '大惊', '飞吻', '鬼脸', '害羞', '口水', '狂哭', '来', '发财了', '吃西瓜', '套牢', '害羞', '庆祝', '我来了', '敲打', '晕了', '胜利', '臭美', '被打了', '贪吃', '迎接', '酷', '微笑', '亲吻', '调皮', '惊恐', '耍酷', '发火', '害羞', '汗水', '大哭', '', '加油', '困', '你NB', '晕倒', '开心', '偷笑', '大哭', '滴汗', '叹气', '超赞', '??', '飞吻', '天使', '撒花', '生气', '被砸', '吓傻', '随意吐'], tab0:['Kiss', 'Love', 'Yeah', '啊!', '背扭', '顶', '抖胸', '88', '汗', '瞌睡', '鲁拉', '拍砖', '揉脸', '生日快乐', '大笑', '瀑布汗~', '惊讶', '臭美', '傻笑', '抛媚眼', '发怒', '打酱油', '俯卧撑', '气愤', '?', '吻', '怒', '胜利', 'HI', 'KISS', '不说', '不要', '扯花', '大心', '顶', '大惊', '飞吻', '鬼脸', '害羞', '口水', '狂哭', '来', '发财了', '吃西瓜', '套牢', '害羞', '庆祝', '我来了', '敲打', '晕了', '胜利', '臭美', '被打了', '贪吃', '迎接', '酷', '微笑', '亲吻', '调皮', '惊恐', '耍酷', '发火', '害羞', '汗水', '大哭', '', '加油', '困', '你NB', '晕倒', '开心', '偷笑', '大哭', '滴汗', '叹气', '超赞', '??', '飞吻', '天使', '撒花', '生气', '被砸', '吓傻', '随意吐'],
tab1:['Kiss', 'Love', 'Yeah', '啊!', '背扭', '顶', '抖胸', '88', '汗', '瞌睡', '鲁拉', '拍砖', '揉脸', '生日快乐', '摊手', '睡觉', '瘫坐', '无聊', '星星闪', '旋转', '也不行', '郁闷', '正Music', '抓墙', '撞墙至死', '歪头', '戳眼', '飘过', '互相拍砖', '砍死你', '扔桌子', '少林寺', '什么?', '转头', '我爱牛奶', '我踢', '摇晃', '晕厥', '在笼子里', '震荡'], tab1:['Kiss', 'Love', 'Yeah', '啊!', '背扭', '顶', '抖胸', '88', '汗', '瞌睡', '鲁拉', '拍砖', '揉脸', '生日快乐', '摊手', '睡觉', '瘫坐', '无聊', '星星闪', '旋转', '也不行', '郁闷', '正Music', '抓墙', '撞墙至死', '歪头', '戳眼', '飘过', '互相拍砖', '砍死你', '扔桌子', '少林寺', '什么?', '转头', '我爱牛奶', '我踢', '摇晃', '晕厥', '在笼子里', '震荡'],
tab2:['大笑', '瀑布汗~', '惊讶', '臭美', '傻笑', '抛媚眼', '发怒', '我错了', 'money', '气愤', '挑逗', '吻', '怒', '胜利', '委屈', '受伤', '说啥呢?', '闭嘴', '不', '逗你玩儿', '飞吻', '眩晕', '魔法', '我来了', '睡了', '我打', '闭嘴', '打', '打晕了', '刷牙', '爆揍', '炸弹', '倒立', '刮胡子', '邪恶的笑', '不要不要', '爱恋中', '放大仔细看', '偷窥', '超高兴', '晕', '松口气', '我跑', '享受', '修养', '哭', '汗', '啊~', '热烈欢迎', '打酱油', '俯卧撑', '?'], tab2:['大笑', '瀑布汗~', '惊讶', '臭美', '傻笑', '抛媚眼', '发怒', '我错了', 'money', '气愤', '挑逗', '吻', '怒', '胜利', '委屈', '受伤', '说啥呢?', '闭嘴', '不', '逗你玩儿', '飞吻', '眩晕', '魔法', '我来了', '睡了', '我打', '闭嘴', '打', '打晕了', '刷牙', '爆揍', '炸弹', '倒立', '刮胡子', '邪恶的笑', '不要不要', '爱恋中', '放大仔细看', '偷窥', '超高兴', '晕', '松口气', '我跑', '享受', '修养', '哭', '汗', '啊~', '热烈欢迎', '打酱油', '俯卧撑', '?'],
tab3:['HI', 'KISS', '不说', '不要', '扯花', '大心', '顶', '大惊', '飞吻', '鬼脸', '害羞', '口水', '狂哭', '来', '泪眼', '流泪', '生气', '吐舌', '喜欢', '旋转', '再见', '抓狂', '汗', '鄙视', '拜', '吐血', '嘘', '打人', '蹦跳', '变脸', '扯肉', '吃To', '吃花', '吹泡泡糖', '大变身', '飞天舞', '回眸', '可怜', '猛抽', '泡泡', '苹果', '亲', '', '骚舞', '烧香', '睡', '套娃娃', '捅捅', '舞倒', '西红柿', '爱慕', '摇', '摇摆', '杂耍', '招财', '被殴', '被球闷', '大惊', '理想', '欧打', '呕吐', '碎', '吐痰'], tab3:['HI', 'KISS', '不说', '不要', '扯花', '大心', '顶', '大惊', '飞吻', '鬼脸', '害羞', '口水', '狂哭', '来', '泪眼', '流泪', '生气', '吐舌', '喜欢', '旋转', '再见', '抓狂', '汗', '鄙视', '拜', '吐血', '嘘', '打人', '蹦跳', '变脸', '扯肉', '吃To', '吃花', '吹泡泡糖', '大变身', '飞天舞', '回眸', '可怜', '猛抽', '泡泡', '苹果', '亲', '', '骚舞', '烧香', '睡', '套娃娃', '捅捅', '舞倒', '西红柿', '爱慕', '摇', '摇摆', '杂耍', '招财', '被殴', '被球闷', '大惊', '理想', '欧打', '呕吐', '碎', '吐痰'],
tab4:['发财了', '吃西瓜', '套牢', '害羞', '庆祝', '我来了', '敲打', '晕了', '胜利', '臭美', '被打了', '贪吃', '迎接', '酷', '顶', '幸运', '爱心', '躲', '送花', '选择'], tab4:['发财了', '吃西瓜', '套牢', '害羞', '庆祝', '我来了', '敲打', '晕了', '胜利', '臭美', '被打了', '贪吃', '迎接', '酷', '顶', '幸运', '爱心', '躲', '送花', '选择'],
tab5:['微笑', '亲吻', '调皮', '惊讶', '耍酷', '发火', '害羞', '汗水', '大哭', '得意', '鄙视', '困', '夸奖', '晕倒', '疑问', '媒婆', '狂吐', '青蛙', '发愁', '亲吻', '', '爱心', '心碎', '玫瑰', '礼物', '哭', '奸笑', '可爱', '得意', '呲牙', '暴汗', '楚楚可怜', '困', '哭', '生气', '惊讶', '口水', '彩虹', '夜空', '太阳', '钱钱', '灯泡', '咖啡', '蛋糕', '音乐', '爱', '胜利', '赞', '鄙视', 'OK'], tab5:['微笑', '亲吻', '调皮', '惊讶', '耍酷', '发火', '害羞', '汗水', '大哭', '得意', '鄙视', '困', '夸奖', '晕倒', '疑问', '媒婆', '狂吐', '青蛙', '发愁', '亲吻', '', '爱心', '心碎', '玫瑰', '礼物', '哭', '奸笑', '可爱', '得意', '呲牙', '暴汗', '楚楚可怜', '困', '哭', '生气', '惊讶', '口水', '彩虹', '夜空', '太阳', '钱钱', '灯泡', '咖啡', '蛋糕', '音乐', '爱', '胜利', '赞', '鄙视', 'OK'],
tab6:['男兜', '女兜', '开心', '乖乖', '偷笑', '大笑', '抽泣', '大哭', '无奈', '滴汗', '叹气', '狂晕', '委屈', '超赞', '??', '疑问', '飞吻', '天使', '撒花', '生气', '被砸', '口水', '泪奔', '吓傻', '吐舌头', '点头', '随意吐', '旋转', '困困', '鄙视', '狂顶', '篮球', '再见', '欢迎光临', '恭喜发财', '稍等', '我在线', '恕不议价', '库房有货', '货在路上'] tab6:['男兜', '女兜', '开心', '乖乖', '偷笑', '大笑', '抽泣', '大哭', '无奈', '滴汗', '叹气', '狂晕', '委屈', '超赞', '??', '疑问', '飞吻', '天使', '撒花', '生气', '被砸', '口水', '泪奔', '吓傻', '吐舌头', '点头', '随意吐', '旋转', '困困', '鄙视', '狂顶', '篮球', '再见', '欢迎光临', '恭喜发财', '稍等', '我在线', '恕不议价', '库房有货', '货在路上']
} }
}; };
</script> </script>
</body> </body>
</html> </html>

View File

@ -1,186 +1,186 @@
window.onload = function () { window.onload = function () {
editor.setOpt({ editor.setOpt({
emotionLocalization:false emotionLocalization:false
}); });
emotion.SmileyPath = editor.options.emotionLocalization === true ? 'images/' : "http://img.baidu.com/hi/"; emotion.SmileyPath = editor.options.emotionLocalization === true ? 'images/' : "http://img.baidu.com/hi/";
emotion.SmileyBox = createTabList( emotion.tabNum ); emotion.SmileyBox = createTabList( emotion.tabNum );
emotion.tabExist = createArr( emotion.tabNum ); emotion.tabExist = createArr( emotion.tabNum );
initImgName(); initImgName();
initEvtHandler( "tabHeads" ); initEvtHandler( "tabHeads" );
}; };
function initImgName() { function initImgName() {
for ( var pro in emotion.SmilmgName ) { for ( var pro in emotion.SmilmgName ) {
var tempName = emotion.SmilmgName[pro], var tempName = emotion.SmilmgName[pro],
tempBox = emotion.SmileyBox[pro], tempBox = emotion.SmileyBox[pro],
tempStr = ""; tempStr = "";
if ( tempBox.length ) return; if ( tempBox.length ) return;
for ( var i = 1; i <= tempName[1]; i++ ) { for ( var i = 1; i <= tempName[1]; i++ ) {
tempStr = tempName[0]; tempStr = tempName[0];
if ( i < 10 ) tempStr = tempStr + '0'; if ( i < 10 ) tempStr = tempStr + '0';
tempStr = tempStr + i + '.gif'; tempStr = tempStr + i + '.gif';
tempBox.push( tempStr ); tempBox.push( tempStr );
} }
} }
} }
function initEvtHandler( conId ) { function initEvtHandler( conId ) {
var tabHeads = $G( conId ); var tabHeads = $G( conId );
for ( var i = 0, j = 0; i < tabHeads.childNodes.length; i++ ) { for ( var i = 0, j = 0; i < tabHeads.childNodes.length; i++ ) {
var tabObj = tabHeads.childNodes[i]; var tabObj = tabHeads.childNodes[i];
if ( tabObj.nodeType == 1 ) { if ( tabObj.nodeType == 1 ) {
domUtils.on( tabObj, "click", (function ( index ) { domUtils.on( tabObj, "click", (function ( index ) {
return function () { return function () {
switchTab( index ); switchTab( index );
}; };
})( j ) ); })( j ) );
j++; j++;
} }
} }
switchTab( 0 ); switchTab( 0 );
$G( "tabIconReview" ).style.display = 'none'; $G( "tabIconReview" ).style.display = 'none';
} }
function InsertSmiley( url, evt ) { function InsertSmiley( url, evt ) {
var obj = { var obj = {
src:editor.options.emotionLocalization ? editor.options.UEDITOR_HOME_URL + "dialogs/emotion/" + url : url src:editor.options.emotionLocalization ? editor.options.UEDITOR_HOME_URL + "dialogs/emotion/" + url : url
}; };
obj._src = obj.src; obj._src = obj.src;
editor.execCommand( 'insertimage', obj ); editor.execCommand( 'insertimage', obj );
if ( !evt.ctrlKey ) { if ( !evt.ctrlKey ) {
dialog.popup.hide(); dialog.popup.hide();
} }
} }
function switchTab( index ) { function switchTab( index ) {
autoHeight( index ); autoHeight( index );
if ( emotion.tabExist[index] == 0 ) { if ( emotion.tabExist[index] == 0 ) {
emotion.tabExist[index] = 1; emotion.tabExist[index] = 1;
createTab( 'tab' + index ); createTab( 'tab' + index );
} }
//获取呈现元素句柄数组 //获取呈现元素句柄数组
var tabHeads = $G( "tabHeads" ).getElementsByTagName( "span" ), var tabHeads = $G( "tabHeads" ).getElementsByTagName( "span" ),
tabBodys = $G( "tabBodys" ).getElementsByTagName( "div" ), tabBodys = $G( "tabBodys" ).getElementsByTagName( "div" ),
i = 0, L = tabHeads.length; i = 0, L = tabHeads.length;
//隐藏所有呈现元素 //隐藏所有呈现元素
for ( ; i < L; i++ ) { for ( ; i < L; i++ ) {
tabHeads[i].className = ""; tabHeads[i].className = "";
tabBodys[i].style.display = "none"; tabBodys[i].style.display = "none";
} }
//显示对应呈现元素 //显示对应呈现元素
tabHeads[index].className = "focus"; tabHeads[index].className = "focus";
tabBodys[index].style.display = "block"; tabBodys[index].style.display = "block";
} }
function autoHeight( index ) { function autoHeight( index ) {
var iframe = dialog.getDom( "iframe" ), var iframe = dialog.getDom( "iframe" ),
parent = iframe.parentNode.parentNode; parent = iframe.parentNode.parentNode;
switch ( index ) { switch ( index ) {
case 0: case 0:
iframe.style.height = "380px"; iframe.style.height = "380px";
parent.style.height = "392px"; parent.style.height = "392px";
break; break;
case 1: case 1:
iframe.style.height = "220px"; iframe.style.height = "220px";
parent.style.height = "232px"; parent.style.height = "232px";
break; break;
case 2: case 2:
iframe.style.height = "260px"; iframe.style.height = "260px";
parent.style.height = "272px"; parent.style.height = "272px";
break; break;
case 3: case 3:
iframe.style.height = "300px"; iframe.style.height = "300px";
parent.style.height = "312px"; parent.style.height = "312px";
break; break;
case 4: case 4:
iframe.style.height = "140px"; iframe.style.height = "140px";
parent.style.height = "152px"; parent.style.height = "152px";
break; break;
case 5: case 5:
iframe.style.height = "260px"; iframe.style.height = "260px";
parent.style.height = "272px"; parent.style.height = "272px";
break; break;
case 6: case 6:
iframe.style.height = "230px"; iframe.style.height = "230px";
parent.style.height = "242px"; parent.style.height = "242px";
break; break;
default: default:
} }
} }
function createTab( tabName ) { function createTab( tabName ) {
var faceVersion = "?v=1.1", //版本号 var faceVersion = "?v=1.1", //版本号
tab = $G( tabName ), //获取将要生成的Div句柄 tab = $G( tabName ), //获取将要生成的Div句柄
imagePath = emotion.SmileyPath + emotion.imageFolders[tabName], //获取显示表情和预览表情的路径 imagePath = emotion.SmileyPath + emotion.imageFolders[tabName], //获取显示表情和预览表情的路径
positionLine = 11 / 2, //中间数 positionLine = 11 / 2, //中间数
iWidth = iHeight = 35, //图片长宽 iWidth = iHeight = 35, //图片长宽
iColWidth = 3, //表格剩余空间的显示比例 iColWidth = 3, //表格剩余空间的显示比例
tableCss = emotion.imageCss[tabName], tableCss = emotion.imageCss[tabName],
cssOffset = emotion.imageCssOffset[tabName], cssOffset = emotion.imageCssOffset[tabName],
textHTML = ['<table class="smileytable">'], textHTML = ['<table class="smileytable">'],
i = 0, imgNum = emotion.SmileyBox[tabName].length, imgColNum = 11, faceImage, i = 0, imgNum = emotion.SmileyBox[tabName].length, imgColNum = 11, faceImage,
sUrl, realUrl, posflag, offset, infor; sUrl, realUrl, posflag, offset, infor;
for ( ; i < imgNum; ) { for ( ; i < imgNum; ) {
textHTML.push( '<tr>' ); textHTML.push( '<tr>' );
for ( var j = 0; j < imgColNum; j++, i++ ) { for ( var j = 0; j < imgColNum; j++, i++ ) {
faceImage = emotion.SmileyBox[tabName][i]; faceImage = emotion.SmileyBox[tabName][i];
if ( faceImage ) { if ( faceImage ) {
sUrl = imagePath + faceImage + faceVersion; sUrl = imagePath + faceImage + faceVersion;
realUrl = imagePath + faceImage; realUrl = imagePath + faceImage;
posflag = j < positionLine ? 0 : 1; posflag = j < positionLine ? 0 : 1;
offset = cssOffset * i * (-1) - 1; offset = cssOffset * i * (-1) - 1;
infor = emotion.SmileyInfor[tabName][i]; infor = emotion.SmileyInfor[tabName][i];
textHTML.push( '<td class="' + tableCss + '" border="1" width="' + iColWidth + '%" style="border-collapse:collapse;" align="center" bgcolor="transparent" onclick="InsertSmiley(\'' + realUrl.replace( /'/g, "\\'" ) + '\',event)" onmouseover="over(this,\'' + sUrl + '\',\'' + posflag + '\')" onmouseout="out(this)">' ); textHTML.push( '<td class="' + tableCss + '" border="1" width="' + iColWidth + '%" style="border-collapse:collapse;" align="center" bgcolor="transparent" onclick="InsertSmiley(\'' + realUrl.replace( /'/g, "\\'" ) + '\',event)" onmouseover="over(this,\'' + sUrl + '\',\'' + posflag + '\')" onmouseout="out(this)">' );
textHTML.push( '<span>' ); textHTML.push( '<span>' );
textHTML.push( '<img style="background-position:left ' + offset + 'px;" title="' + infor + '" src="' + emotion.SmileyPath + (editor.options.emotionLocalization ? '0.gif" width="' : 'default/0.gif" width="') + iWidth + '" height="' + iHeight + '"></img>' ); textHTML.push( '<img style="background-position:left ' + offset + 'px;" title="' + infor + '" src="' + emotion.SmileyPath + (editor.options.emotionLocalization ? '0.gif" width="' : 'default/0.gif" width="') + iWidth + '" height="' + iHeight + '"></img>' );
textHTML.push( '</span>' ); textHTML.push( '</span>' );
} else { } else {
textHTML.push( '<td width="' + iColWidth + '%" bgcolor="#FFFFFF">' ); textHTML.push( '<td width="' + iColWidth + '%" bgcolor="#FFFFFF">' );
} }
textHTML.push( '</td>' ); textHTML.push( '</td>' );
} }
textHTML.push( '</tr>' ); textHTML.push( '</tr>' );
} }
textHTML.push( '</table>' ); textHTML.push( '</table>' );
textHTML = textHTML.join( "" ); textHTML = textHTML.join( "" );
tab.innerHTML = textHTML; tab.innerHTML = textHTML;
} }
function over( td, srcPath, posFlag ) { function over( td, srcPath, posFlag ) {
td.style.backgroundColor = "#ACCD3C"; td.style.backgroundColor = "#ACCD3C";
$G( 'faceReview' ).style.backgroundImage = "url(" + srcPath + ")"; $G( 'faceReview' ).style.backgroundImage = "url(" + srcPath + ")";
if ( posFlag == 1 ) $G( "tabIconReview" ).className = "show"; if ( posFlag == 1 ) $G( "tabIconReview" ).className = "show";
$G( "tabIconReview" ).style.display = 'block'; $G( "tabIconReview" ).style.display = 'block';
} }
function out( td ) { function out( td ) {
td.style.backgroundColor = "transparent"; td.style.backgroundColor = "transparent";
var tabIconRevew = $G( "tabIconReview" ); var tabIconRevew = $G( "tabIconReview" );
tabIconRevew.className = ""; tabIconRevew.className = "";
tabIconRevew.style.display = 'none'; tabIconRevew.style.display = 'none';
} }
function createTabList( tabNum ) { function createTabList( tabNum ) {
var obj = {}; var obj = {};
for ( var i = 0; i < tabNum; i++ ) { for ( var i = 0; i < tabNum; i++ ) {
obj["tab" + i] = []; obj["tab" + i] = [];
} }
return obj; return obj;
} }
function createArr( tabNum ) { function createArr( tabNum ) {
var arr = []; var arr = [];
for ( var i = 0; i < tabNum; i++ ) { for ( var i = 0; i < tabNum; i++ ) {
arr[i] = 0; arr[i] = 0;
} }
return arr; return arr;
} }

View File

@ -1,89 +1,89 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title> <title></title>
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
<style type="text/css"> <style type="text/css">
.content{width:530px; height: 350px;margin: 10px auto;} .content{width:530px; height: 350px;margin: 10px auto;}
.content table{width: 100%} .content table{width: 100%}
.content table td{vertical-align: middle;} .content table td{vertical-align: middle;}
#address{width:220px;height:21px;background: #FFF;border:1px solid #d7d7d7; line-height: 21px;} #address{width:220px;height:21px;background: #FFF;border:1px solid #d7d7d7; line-height: 21px;}
</style> </style>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
</head> </head>
<body> <body>
<div class="content"> <div class="content">
<table> <table>
<tr> <tr>
<td><label for="address"><var id="lang_input_address"></var></label></td> <td><label for="address"><var id="lang_input_address"></var></label></td>
<td><input id="address" type="text" /></td> <td><input id="address" type="text" /></td>
<td><a id="doSearch" href="javascript:void(0)" class="button"><var id="lang_input_search"></var></a></td> <td><a id="doSearch" href="javascript:void(0)" class="button"><var id="lang_input_search"></var></a></td>
</tr> </tr>
</table> </table>
<div id="container" style="width: 100%; height: 340px;margin: 5px auto; border: 1px solid gray;"></div> <div id="container" style="width: 100%; height: 340px;margin: 5px auto; border: 1px solid gray;"></div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
domUtils.on(window,"load",function(){ domUtils.on(window,"load",function(){
var map = new google.maps.Map(document.getElementById('container'), { var map = new google.maps.Map(document.getElementById('container'), {
zoom: 3, zoom: 3,
streetViewControl: false, streetViewControl: false,
scaleControl: true, scaleControl: true,
mapTypeId: google.maps.MapTypeId.ROADMAP mapTypeId: google.maps.MapTypeId.ROADMAP
}); });
var imgcss; var imgcss;
var marker = new google.maps.Marker({ var marker = new google.maps.Marker({
map: map, map: map,
draggable: true draggable: true
}); });
function doSearch(){ function doSearch(){
var address = document.getElementById('address').value; var address = document.getElementById('address').value;
var geocoder = new google.maps.Geocoder(); var geocoder = new google.maps.Geocoder();
geocoder.geocode( { 'address': address}, function (results, status) { geocoder.geocode( { 'address': address}, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) { if (status == google.maps.GeocoderStatus.OK) {
var bounds = results[0].geometry.viewport; var bounds = results[0].geometry.viewport;
map.fitBounds(bounds); map.fitBounds(bounds);
marker.setPosition(results[0].geometry.location); marker.setPosition(results[0].geometry.location);
marker.setTitle(address); marker.setTitle(address);
} else alert(lang.searchError); } else alert(lang.searchError);
}); });
} }
$G('address').onkeydown = function (evt){ $G('address').onkeydown = function (evt){
evt = evt || event; evt = evt || event;
if (evt.keyCode == 13) { if (evt.keyCode == 13) {
doSearch(); doSearch();
} }
}; };
$G("doSearch").onclick = doSearch; $G("doSearch").onclick = doSearch;
dialog.onok = function (){ dialog.onok = function (){
var center = map.getCenter(); var center = map.getCenter();
var point = marker.getPosition(); var point = marker.getPosition();
var url = "http://maps.googleapis.com/maps/api/staticmap?center=" + center.lat() + ',' + center.lng() + "&zoom=" + map.zoom + "&size=520x340&maptype=" + map.getMapTypeId() + "&markers=" + point.lat() + ',' + point.lng() + "&sensor=false"; var url = "http://maps.googleapis.com/maps/api/staticmap?center=" + center.lat() + ',' + center.lng() + "&zoom=" + map.zoom + "&size=520x340&maptype=" + map.getMapTypeId() + "&markers=" + point.lat() + ',' + point.lng() + "&sensor=false";
editor.execCommand('inserthtml', '<img width="520" height="340" src="' + url + '"' + (imgcss ? ' style="' + imgcss + '"' :'') + '/>'); editor.execCommand('inserthtml', '<img width="520" height="340" src="' + url + '"' + (imgcss ? ' style="' + imgcss + '"' :'') + '/>');
}; };
function getPars(str,par){ function getPars(str,par){
var reg = new RegExp(par+"=((\\d+|[.,])*)","g"); var reg = new RegExp(par+"=((\\d+|[.,])*)","g");
return reg.exec(str)[1]; return reg.exec(str)[1];
} }
var img = editor.selection.getRange().getClosedNode(); var img = editor.selection.getRange().getClosedNode();
if(img && img.src.indexOf("http://maps.googleapis.com/maps/api/staticmap")!=-1){ if(img && img.src.indexOf("http://maps.googleapis.com/maps/api/staticmap")!=-1){
var url = img.getAttribute("src"); var url = img.getAttribute("src");
var centers = getPars(url,"center").split(","); var centers = getPars(url,"center").split(",");
point = new google.maps.LatLng(Number(centers[0]),Number(centers[1])); point = new google.maps.LatLng(Number(centers[0]),Number(centers[1]));
map.setCenter(point); map.setCenter(point);
map.setZoom(Number(getPars(url,"zoom"))); map.setZoom(Number(getPars(url,"zoom")));
centers = getPars(url,"markers").split(","); centers = getPars(url,"markers").split(",");
marker.setPosition(new google.maps.LatLng(Number(centers[0]),Number(centers[1]))); marker.setPosition(new google.maps.LatLng(Number(centers[0]),Number(centers[1])));
imgcss = img.style.cssText; imgcss = img.style.cssText;
}else{ }else{
setTimeout(function(){ setTimeout(function(){
doSearch(); doSearch();
},30) },30)
} }
}); });
</script> </script>
</body> </body>
</html> </html>

View File

@ -1,7 +1,7 @@
.wrapper{width: 370px;margin: 10px auto;zoom: 1;} .wrapper{width: 370px;margin: 10px auto;zoom: 1;}
.tabbody{height: 360px;} .tabbody{height: 360px;}
.tabbody .panel{width:100%;height: 360px;position: absolute;background: #fff;} .tabbody .panel{width:100%;height: 360px;position: absolute;background: #fff;}
.tabbody .panel h1{font-size:26px;margin: 5px 0 0 5px;} .tabbody .panel h1{font-size:26px;margin: 5px 0 0 5px;}
.tabbody .panel p{font-size:12px;margin: 5px 0 0 5px;} .tabbody .panel p{font-size:12px;margin: 5px 0 0 5px;}
.tabbody table{width:90%;line-height: 20px;margin: 5px 0 0 5px;;} .tabbody table{width:90%;line-height: 20px;margin: 5px 0 0 5px;;}
.tabbody table thead{font-weight: bold;line-height: 25px;} .tabbody table thead{font-weight: bold;line-height: 25px;}

View File

@ -1,82 +1,82 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<title>帮助</title> <title>帮助</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
<link rel="stylesheet" type="text/css" href="help.css"> <link rel="stylesheet" type="text/css" href="help.css">
</head> </head>
<body> <body>
<div class="wrapper" id="helptab"> <div class="wrapper" id="helptab">
<div id="tabHeads" class="tabhead"> <div id="tabHeads" class="tabhead">
<span class="focus" tabsrc="about"><var id="lang_input_about"></var></span> <span class="focus" tabsrc="about"><var id="lang_input_about"></var></span>
<span tabsrc="shortcuts"><var id="lang_input_shortcuts"></var></span> <span tabsrc="shortcuts"><var id="lang_input_shortcuts"></var></span>
</div> </div>
<div id="tabBodys" class="tabbody"> <div id="tabBodys" class="tabbody">
<div id="about" class="panel"> <div id="about" class="panel">
<h1>UEditor</h1> <h1>UEditor</h1>
<p id="version"></p> <p id="version"></p>
<p><var id="lang_input_introduction"></var></p> <p><var id="lang_input_introduction"></var></p>
</div> </div>
<div id="shortcuts" class="panel"> <div id="shortcuts" class="panel">
<table> <table>
<thead> <thead>
<tr> <tr>
<td><var id="lang_Txt_shortcuts"></var></td> <td><var id="lang_Txt_shortcuts"></var></td>
<td><var id="lang_Txt_func"></var></td> <td><var id="lang_Txt_func"></var></td>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>ctrl+b</td> <td>ctrl+b</td>
<td><var id="lang_Txt_bold"></var></td> <td><var id="lang_Txt_bold"></var></td>
</tr> </tr>
<tr> <tr>
<td>ctrl+c</td> <td>ctrl+c</td>
<td><var id="lang_Txt_copy"></var></td> <td><var id="lang_Txt_copy"></var></td>
</tr> </tr>
<tr> <tr>
<td>ctrl+x</td> <td>ctrl+x</td>
<td><var id="lang_Txt_cut"></var></td> <td><var id="lang_Txt_cut"></var></td>
</tr> </tr>
<tr> <tr>
<td>ctrl+v</td> <td>ctrl+v</td>
<td><var id="lang_Txt_Paste"></var></td> <td><var id="lang_Txt_Paste"></var></td>
</tr> </tr>
<tr> <tr>
<td>ctrl+y</td> <td>ctrl+y</td>
<td><var id="lang_Txt_undo"></var></td> <td><var id="lang_Txt_undo"></var></td>
</tr> </tr>
<tr> <tr>
<td>ctrl+z</td> <td>ctrl+z</td>
<td><var id="lang_Txt_redo"></var></td> <td><var id="lang_Txt_redo"></var></td>
</tr> </tr>
<tr> <tr>
<td>ctrl+i</td> <td>ctrl+i</td>
<td><var id="lang_Txt_italic"></var></td> <td><var id="lang_Txt_italic"></var></td>
</tr> </tr>
<tr> <tr>
<td>ctrl+u</td> <td>ctrl+u</td>
<td><var id="lang_Txt_underline"></var></td> <td><var id="lang_Txt_underline"></var></td>
</tr> </tr>
<tr> <tr>
<td>ctrl+a</td> <td>ctrl+a</td>
<td><var id="lang_Txt_selectAll"></var></td> <td><var id="lang_Txt_selectAll"></var></td>
</tr> </tr>
<tr> <tr>
<td>shift+enter</td> <td>shift+enter</td>
<td><var id="lang_Txt_visualEnter"></var></td> <td><var id="lang_Txt_visualEnter"></var></td>
</tr> </tr>
<tr> <tr>
<td>alt+z</td> <td>alt+z</td>
<td><var id="lang_Txt_fullscreen"></var></td> <td><var id="lang_Txt_fullscreen"></var></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="help.js"></script> <script type="text/javascript" src="help.js"></script>
</body> </body>
</html> </html>

View File

@ -1,56 +1,56 @@
/** /**
* Created with JetBrains PhpStorm. * Created with JetBrains PhpStorm.
* User: xuheng * User: xuheng
* Date: 12-9-26 * Date: 12-9-26
* Time: 下午1:06 * Time: 下午1:06
* To change this template use File | Settings | File Templates. * To change this template use File | Settings | File Templates.
*/ */
/** /**
* tab点击处理事件 * tab点击处理事件
* @param tabHeads * @param tabHeads
* @param tabBodys * @param tabBodys
* @param obj * @param obj
*/ */
function clickHandler( tabHeads,tabBodys,obj ) { function clickHandler( tabHeads,tabBodys,obj ) {
//head样式更改 //head样式更改
for ( var k = 0, len = tabHeads.length; k < len; k++ ) { for ( var k = 0, len = tabHeads.length; k < len; k++ ) {
tabHeads[k].className = ""; tabHeads[k].className = "";
} }
obj.className = "focus"; obj.className = "focus";
//body显隐 //body显隐
var tabSrc = obj.getAttribute( "tabSrc" ); var tabSrc = obj.getAttribute( "tabSrc" );
for ( var j = 0, length = tabBodys.length; j < length; j++ ) { for ( var j = 0, length = tabBodys.length; j < length; j++ ) {
var body = tabBodys[j], var body = tabBodys[j],
id = body.getAttribute( "id" ); id = body.getAttribute( "id" );
body.onclick = function(){ body.onclick = function(){
this.style.zoom = 1; this.style.zoom = 1;
}; };
if ( id != tabSrc ) { if ( id != tabSrc ) {
body.style.zIndex = 1; body.style.zIndex = 1;
} else { } else {
body.style.zIndex = 200; body.style.zIndex = 200;
} }
} }
} }
/** /**
* TAB切换 * TAB切换
* @param tabParentId tab的父节点ID或者对象本身 * @param tabParentId tab的父节点ID或者对象本身
*/ */
function switchTab( tabParentId ) { function switchTab( tabParentId ) {
var tabElements = $G( tabParentId ).children, var tabElements = $G( tabParentId ).children,
tabHeads = tabElements[0].children, tabHeads = tabElements[0].children,
tabBodys = tabElements[1].children; tabBodys = tabElements[1].children;
for ( var i = 0, length = tabHeads.length; i < length; i++ ) { for ( var i = 0, length = tabHeads.length; i < length; i++ ) {
var head = tabHeads[i]; var head = tabHeads[i];
if ( head.className === "focus" )clickHandler(tabHeads,tabBodys, head ); if ( head.className === "focus" )clickHandler(tabHeads,tabBodys, head );
head.onclick = function () { head.onclick = function () {
clickHandler(tabHeads,tabBodys,this); clickHandler(tabHeads,tabBodys,this);
} }
} }
} }
switchTab("helptab"); switchTab("helptab");
document.getElementById('version').innerHTML = parent.UE.version; document.getElementById('version').innerHTML = parent.UE.version;

View File

@ -1,120 +1,120 @@
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>ueditor图片对话框</title> <title>ueditor图片对话框</title>
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
<!-- jquery --> <!-- jquery -->
<script type="text/javascript" src="../../third-party/jquery-1.10.2.min.js"></script> <script type="text/javascript" src="../../third-party/jquery-1.10.2.min.js"></script>
<!-- webuploader --> <!-- webuploader -->
<script src="../../third-party/webuploader/webuploader.min.js"></script> <script src="../../third-party/webuploader/webuploader.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../third-party/webuploader/webuploader.css"> <link rel="stylesheet" type="text/css" href="../../third-party/webuploader/webuploader.css">
<!-- image dialog --> <!-- image dialog -->
<link rel="stylesheet" href="image.css" type="text/css" /> <link rel="stylesheet" href="image.css" type="text/css" />
</head> </head>
<body> <body>
<div class="wrapper"> <div class="wrapper">
<div id="tabhead" class="tabhead"> <div id="tabhead" class="tabhead">
<span class="tab" data-content-id="remote"><var id="lang_tab_remote"></var></span> <span class="tab" data-content-id="remote"><var id="lang_tab_remote"></var></span>
<span class="tab focus" data-content-id="upload"><var id="lang_tab_upload"></var></span> <span class="tab focus" data-content-id="upload"><var id="lang_tab_upload"></var></span>
<span class="tab" data-content-id="online"><var id="lang_tab_online"></var></span> <span class="tab" data-content-id="online"><var id="lang_tab_online"></var></span>
<span class="tab" data-content-id="search"><var id="lang_tab_search"></var></span> <span class="tab" data-content-id="search"><var id="lang_tab_search"></var></span>
</div> </div>
<div class="alignBar"> <div class="alignBar">
<label class="algnLabel"><var id="lang_input_align"></var></label> <label class="algnLabel"><var id="lang_input_align"></var></label>
<span id="alignIcon"> <span id="alignIcon">
<span id="noneAlign" class="none-align focus" data-align="none"></span> <span id="noneAlign" class="none-align focus" data-align="none"></span>
<span id="leftAlign" class="left-align" data-align="left"></span> <span id="leftAlign" class="left-align" data-align="left"></span>
<span id="rightAlign" class="right-align" data-align="right"></span> <span id="rightAlign" class="right-align" data-align="right"></span>
<span id="centerAlign" class="center-align" data-align="center"></span> <span id="centerAlign" class="center-align" data-align="center"></span>
</span> </span>
<input id="align" name="align" type="hidden" value="none"/> <input id="align" name="align" type="hidden" value="none"/>
</div> </div>
<div id="tabbody" class="tabbody"> <div id="tabbody" class="tabbody">
<!-- 远程图片 --> <!-- 远程图片 -->
<div id="remote" class="panel"> <div id="remote" class="panel">
<div class="top"> <div class="top">
<div class="row"> <div class="row">
<label for="url"><var id="lang_input_url"></var></label> <label for="url"><var id="lang_input_url"></var></label>
<span><input class="text" id="url" type="text"/></span> <span><input class="text" id="url" type="text"/></span>
</div> </div>
</div> </div>
<div class="left"> <div class="left">
<div class="row"> <div class="row">
<label><var id="lang_input_size"></var></label> <label><var id="lang_input_size"></var></label>
<span><var id="lang_input_width">&nbsp;&nbsp;</var><input class="text" type="text" id="width"/>px </span> <span><var id="lang_input_width">&nbsp;&nbsp;</var><input class="text" type="text" id="width"/>px </span>
<span><var id="lang_input_height">&nbsp;&nbsp;</var><input class="text" type="text" id="height"/>px </span> <span><var id="lang_input_height">&nbsp;&nbsp;</var><input class="text" type="text" id="height"/>px </span>
<span><input id="lock" type="checkbox" disabled="disabled"><span id="lockicon"></span></span> <span><input id="lock" type="checkbox" disabled="disabled"><span id="lockicon"></span></span>
</div> </div>
<div class="row"> <div class="row">
<label><var id="lang_input_border"></var></label> <label><var id="lang_input_border"></var></label>
<span><input class="text" type="text" id="border"/>px </span> <span><input class="text" type="text" id="border"/>px </span>
</div> </div>
<div class="row"> <div class="row">
<label><var id="lang_input_vhspace"></var></label> <label><var id="lang_input_vhspace"></var></label>
<span><input class="text" type="text" id="vhSpace"/>px </span> <span><input class="text" type="text" id="vhSpace"/>px </span>
</div> </div>
<div class="row"> <div class="row">
<label><var id="lang_input_title"></var></label> <label><var id="lang_input_title"></var></label>
<span><input class="text" type="text" id="title"/></span> <span><input class="text" type="text" id="title"/></span>
</div> </div>
</div> </div>
<div class="right"><div id="preview"></div></div> <div class="right"><div id="preview"></div></div>
</div> </div>
<!-- 上传图片 --> <!-- 上传图片 -->
<div id="upload" class="panel focus"> <div id="upload" class="panel focus">
<div id="queueList" class="queueList"> <div id="queueList" class="queueList">
<div class="statusBar element-invisible"> <div class="statusBar element-invisible">
<div class="progress"> <div class="progress">
<span class="text">0%</span> <span class="text">0%</span>
<span class="percentage"></span> <span class="percentage"></span>
</div><div class="info"></div> </div><div class="info"></div>
<div class="btns"> <div class="btns">
<div id="filePickerBtn"></div> <div id="filePickerBtn"></div>
<div class="uploadBtn"><var id="lang_start_upload"></var></div> <div class="uploadBtn"><var id="lang_start_upload"></var></div>
</div> </div>
</div> </div>
<div id="dndArea" class="placeholder"> <div id="dndArea" class="placeholder">
<div class="filePickerContainer"> <div class="filePickerContainer">
<div id="filePickerReady"></div> <div id="filePickerReady"></div>
</div> </div>
</div> </div>
<ul class="filelist element-invisible"> <ul class="filelist element-invisible">
<li id="filePickerBlock" class="filePickerBlock"></li> <li id="filePickerBlock" class="filePickerBlock"></li>
</ul> </ul>
</div> </div>
</div> </div>
<!-- 在线图片 --> <!-- 在线图片 -->
<div id="online" class="panel"> <div id="online" class="panel">
<div id="imageList"><var id="lang_imgLoading"></var></div> <div id="imageList"><var id="lang_imgLoading"></var></div>
</div> </div>
<!-- 搜索图片 --> <!-- 搜索图片 -->
<div id="search" class="panel"> <div id="search" class="panel">
<div class="searchBar"> <div class="searchBar">
<input id="searchTxt" class="searchTxt text" type="text" /> <input id="searchTxt" class="searchTxt text" type="text" />
<select id="searchType" class="searchType"> <select id="searchType" class="searchType">
<option value="&s=4&z=0"></option> <option value="&s=4&z=0"></option>
<option value="&s=1&z=19"></option> <option value="&s=1&z=19"></option>
<option value="&s=2&z=0"></option> <option value="&s=2&z=0"></option>
<option value="&s=3&z=0"></option> <option value="&s=3&z=0"></option>
</select> </select>
<input id="searchReset" type="button" /> <input id="searchReset" type="button" />
<input id="searchBtn" type="button" /> <input id="searchBtn" type="button" />
</div> </div>
<div id="searchList" class="searchList"><ul id="searchListUl"></ul></div> <div id="searchList" class="searchList"><ul id="searchListUl"></ul></div>
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="image.js"></script> <script type="text/javascript" src="image.js"></script>
</body> </body>
</html> </html>

File diff suppressed because one or more lines are too long

View File

@ -1,98 +1,98 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title> <title></title>
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
<style type="text/css"> <style type="text/css">
.warp {width: 320px;height: 153px;margin-left:5px;padding: 20px 0 0 15px;position: relative;} .warp {width: 320px;height: 153px;margin-left:5px;padding: 20px 0 0 15px;position: relative;}
#url {width: 290px; margin-bottom: 2px; margin-left: -6px; margin-left: -2px\9;*margin-left:0;_margin-left:0; } #url {width: 290px; margin-bottom: 2px; margin-left: -6px; margin-left: -2px\9;*margin-left:0;_margin-left:0; }
.format span{display: inline-block; width: 58px;text-align: center; zoom:1;} .format span{display: inline-block; width: 58px;text-align: center; zoom:1;}
table td{padding:5px 0;} table td{padding:5px 0;}
#align{width: 65px;height: 23px;line-height: 22px;} #align{width: 65px;height: 23px;line-height: 22px;}
</style> </style>
</head> </head>
<body> <body>
<div class="warp"> <div class="warp">
<table width="300" cellpadding="0" cellspacing="0"> <table width="300" cellpadding="0" cellspacing="0">
<tr> <tr>
<td colspan="2" class="format"> <td colspan="2" class="format">
<span><var id="lang_input_address"></var></span> <span><var id="lang_input_address"></var></span>
<input style="width:200px" id="url" type="text" value=""/> <input style="width:200px" id="url" type="text" value=""/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2" class="format"><span><var id="lang_input_width"></var></span><input style="width:200px" type="text" id="width"/> px</td> <td colspan="2" class="format"><span><var id="lang_input_width"></var></span><input style="width:200px" type="text" id="width"/> px</td>
</tr> </tr>
<tr> <tr>
<td colspan="2" class="format"><span><var id="lang_input_height"></var></span><input style="width:200px" type="text" id="height"/> px</td> <td colspan="2" class="format"><span><var id="lang_input_height"></var></span><input style="width:200px" type="text" id="height"/> px</td>
</tr> </tr>
<tr> <tr>
<td><span><var id="lang_input_isScroll"></var></span><input type="checkbox" id="scroll"/> </td> <td><span><var id="lang_input_isScroll"></var></span><input type="checkbox" id="scroll"/> </td>
<td><span><var id="lang_input_frameborder"></var></span><input type="checkbox" id="frameborder"/> </td> <td><span><var id="lang_input_frameborder"></var></span><input type="checkbox" id="frameborder"/> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"><span><var id="lang_input_alignMode"></var></span> <td colspan="2"><span><var id="lang_input_alignMode"></var></span>
<select id="align"> <select id="align">
<option value=""></option> <option value=""></option>
<option value="left"></option> <option value="left"></option>
<option value="right"></option> <option value="right"></option>
</select> </select>
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
var iframe = editor._iframe; var iframe = editor._iframe;
if(iframe){ if(iframe){
$G("url").value = iframe.getAttribute("src")||""; $G("url").value = iframe.getAttribute("src")||"";
$G("width").value = iframe.getAttribute("width")||iframe.style.width.replace("px","")||""; $G("width").value = iframe.getAttribute("width")||iframe.style.width.replace("px","")||"";
$G("height").value = iframe.getAttribute("height") || iframe.style.height.replace("px","") ||""; $G("height").value = iframe.getAttribute("height") || iframe.style.height.replace("px","") ||"";
$G("scroll").checked = (iframe.getAttribute("scrolling") == "yes") ? true : false; $G("scroll").checked = (iframe.getAttribute("scrolling") == "yes") ? true : false;
$G("frameborder").checked = (iframe.getAttribute("frameborder") == "1") ? true : false; $G("frameborder").checked = (iframe.getAttribute("frameborder") == "1") ? true : false;
$G("align").value = iframe.align ? iframe.align : ""; $G("align").value = iframe.align ? iframe.align : "";
} }
function queding(){ function queding(){
var url = $G("url").value.replace(/^\s*|\s*$/ig,""), var url = $G("url").value.replace(/^\s*|\s*$/ig,""),
width = $G("width").value, width = $G("width").value,
height = $G("height").value, height = $G("height").value,
scroll = $G("scroll"), scroll = $G("scroll"),
frameborder = $G("frameborder"), frameborder = $G("frameborder"),
float = $G("align").value, float = $G("align").value,
newIframe = editor.document.createElement("iframe"), newIframe = editor.document.createElement("iframe"),
div; div;
if(!url){ if(!url){
alert(lang.enterAddress); alert(lang.enterAddress);
return false; return false;
} }
newIframe.setAttribute("src",/http:\/\/|https:\/\//ig.test(url) ? url : "http://"+url); newIframe.setAttribute("src",/http:\/\/|https:\/\//ig.test(url) ? url : "http://"+url);
/^[1-9]+[.]?\d*$/g.test( width ) ? newIframe.setAttribute("width",width) : ""; /^[1-9]+[.]?\d*$/g.test( width ) ? newIframe.setAttribute("width",width) : "";
/^[1-9]+[.]?\d*$/g.test( height ) ? newIframe.setAttribute("height",height) : ""; /^[1-9]+[.]?\d*$/g.test( height ) ? newIframe.setAttribute("height",height) : "";
scroll.checked ? newIframe.setAttribute("scrolling","yes") : newIframe.setAttribute("scrolling","no"); scroll.checked ? newIframe.setAttribute("scrolling","yes") : newIframe.setAttribute("scrolling","no");
frameborder.checked ? newIframe.setAttribute("frameborder","1",0) : newIframe.setAttribute("frameborder","0",0); frameborder.checked ? newIframe.setAttribute("frameborder","1",0) : newIframe.setAttribute("frameborder","0",0);
float ? newIframe.setAttribute("align",float) : newIframe.setAttribute("align",""); float ? newIframe.setAttribute("align",float) : newIframe.setAttribute("align","");
if(iframe){ if(iframe){
iframe.parentNode.insertBefore(newIframe,iframe); iframe.parentNode.insertBefore(newIframe,iframe);
domUtils.remove(iframe); domUtils.remove(iframe);
}else{ }else{
div = editor.document.createElement("div"); div = editor.document.createElement("div");
div.appendChild(newIframe); div.appendChild(newIframe);
editor.execCommand("inserthtml",div.innerHTML); editor.execCommand("inserthtml",div.innerHTML);
} }
editor._iframe = null; editor._iframe = null;
dialog.close(); dialog.close();
} }
dialog.onok = queding; dialog.onok = queding;
$G("url").onkeydown = function(evt){ $G("url").onkeydown = function(evt){
evt = evt || event; evt = evt || event;
if(evt.keyCode == 13){ if(evt.keyCode == 13){
queding(); queding();
} }
}; };
$focus($G( "url" )); $focus($G( "url" ));
</script> </script>
</body> </body>
</html> </html>

View File

@ -1,81 +1,81 @@
(function () { (function () {
var parent = window.parent; var parent = window.parent;
//dialog对象 //dialog对象
dialog = parent.$EDITORUI[window.frameElement.id.replace( /_iframe$/, '' )]; dialog = parent.$EDITORUI[window.frameElement.id.replace( /_iframe$/, '' )];
//当前打开dialog的编辑器实例 //当前打开dialog的编辑器实例
editor = dialog.editor; editor = dialog.editor;
UE = parent.UE; UE = parent.UE;
domUtils = UE.dom.domUtils; domUtils = UE.dom.domUtils;
utils = UE.utils; utils = UE.utils;
browser = UE.browser; browser = UE.browser;
ajax = UE.ajax; ajax = UE.ajax;
$G = function ( id ) { $G = function ( id ) {
return document.getElementById( id ) return document.getElementById( id )
}; };
//focus元素 //focus元素
$focus = function ( node ) { $focus = function ( node ) {
setTimeout( function () { setTimeout( function () {
if ( browser.ie ) { if ( browser.ie ) {
var r = node.createTextRange(); var r = node.createTextRange();
r.collapse( false ); r.collapse( false );
r.select(); r.select();
} else { } else {
node.focus() node.focus()
} }
}, 0 ) }, 0 )
}; };
utils.loadFile(document,{ utils.loadFile(document,{
href:editor.options.themePath + editor.options.theme + "/dialogbase.css?cache="+Math.random(), href:editor.options.themePath + editor.options.theme + "/dialogbase.css?cache="+Math.random(),
tag:"link", tag:"link",
type:"text/css", type:"text/css",
rel:"stylesheet" rel:"stylesheet"
}); });
lang = editor.getLang(dialog.className.split( "-" )[2]); lang = editor.getLang(dialog.className.split( "-" )[2]);
if(lang){ if(lang){
domUtils.on(window,'load',function () { domUtils.on(window,'load',function () {
var langImgPath = editor.options.langPath + editor.options.lang + "/images/"; var langImgPath = editor.options.langPath + editor.options.lang + "/images/";
//针对静态资源 //针对静态资源
for ( var i in lang["static"] ) { for ( var i in lang["static"] ) {
var dom = $G( i ); var dom = $G( i );
if(!dom) continue; if(!dom) continue;
var tagName = dom.tagName, var tagName = dom.tagName,
content = lang["static"][i]; content = lang["static"][i];
if(content.src){ if(content.src){
//clone //clone
content = utils.extend({},content,false); content = utils.extend({},content,false);
content.src = langImgPath + content.src; content.src = langImgPath + content.src;
} }
if(content.style){ if(content.style){
content = utils.extend({},content,false); content = utils.extend({},content,false);
content.style = content.style.replace(/url\s*\(/g,"url(" + langImgPath) content.style = content.style.replace(/url\s*\(/g,"url(" + langImgPath)
} }
switch ( tagName.toLowerCase() ) { switch ( tagName.toLowerCase() ) {
case "var": case "var":
dom.parentNode.replaceChild( document.createTextNode( content ), dom ); dom.parentNode.replaceChild( document.createTextNode( content ), dom );
break; break;
case "select": case "select":
var ops = dom.options; var ops = dom.options;
for ( var j = 0, oj; oj = ops[j]; ) { for ( var j = 0, oj; oj = ops[j]; ) {
oj.innerHTML = content.options[j++]; oj.innerHTML = content.options[j++];
} }
for ( var p in content ) { for ( var p in content ) {
p != "options" && dom.setAttribute( p, content[p] ); p != "options" && dom.setAttribute( p, content[p] );
} }
break; break;
default : default :
domUtils.setAttributes( dom, content); domUtils.setAttributes( dom, content);
} }
} }
} ); } );
} }
})(); })();

View File

@ -1,126 +1,126 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<title></title> <title></title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
<style type="text/css"> <style type="text/css">
*{margin:0;padding:0;color: #838383;} *{margin:0;padding:0;color: #838383;}
table{font-size: 12px;margin: 10px;line-height: 30px} table{font-size: 12px;margin: 10px;line-height: 30px}
.txt{width:300px;height:21px;line-height:21px;border:1px solid #d7d7d7;} .txt{width:300px;height:21px;line-height:21px;border:1px solid #d7d7d7;}
</style> </style>
</head> </head>
<body> <body>
<table> <table>
<tr> <tr>
<td><label for="text"> <var id="lang_input_text"></var></label></td> <td><label for="text"> <var id="lang_input_text"></var></label></td>
<td><input class="txt" id="text" type="text" disabled="true"/></td> <td><input class="txt" id="text" type="text" disabled="true"/></td>
</tr> </tr>
<tr> <tr>
<td><label for="href"> <var id="lang_input_url"></var></label></td> <td><label for="href"> <var id="lang_input_url"></var></label></td>
<td><input class="txt" id="href" type="text" /></td> <td><input class="txt" id="href" type="text" /></td>
</tr> </tr>
<tr> <tr>
<td><label for="title"> <var id="lang_input_title"></var></label></td> <td><label for="title"> <var id="lang_input_title"></var></label></td>
<td><input class="txt" id="title" type="text"/></td> <td><input class="txt" id="title" type="text"/></td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<label for="target"><var id="lang_input_target"></var></label> <label for="target"><var id="lang_input_target"></var></label>
<input id="target" type="checkbox"/> <input id="target" type="checkbox"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2" id="msg"></td> <td colspan="2" id="msg"></td>
</tr> </tr>
</table> </table>
<script type="text/javascript"> <script type="text/javascript">
var range = editor.selection.getRange(), var range = editor.selection.getRange(),
link = range.collapsed ? editor.queryCommandValue( "link" ) : editor.selection.getStart(), link = range.collapsed ? editor.queryCommandValue( "link" ) : editor.selection.getStart(),
url, url,
text = $G('text'), text = $G('text'),
rangeLink = domUtils.findParentByTagName(range.getCommonAncestor(),'a',true), rangeLink = domUtils.findParentByTagName(range.getCommonAncestor(),'a',true),
orgText; orgText;
link = domUtils.findParentByTagName( link, "a", true ); link = domUtils.findParentByTagName( link, "a", true );
if(link){ if(link){
url = utils.html(link.getAttribute( '_href' ) || link.getAttribute( 'href', 2 )); url = utils.html(link.getAttribute( '_href' ) || link.getAttribute( 'href', 2 ));
if(rangeLink === link && !link.getElementsByTagName('img').length){ if(rangeLink === link && !link.getElementsByTagName('img').length){
text.removeAttribute('disabled'); text.removeAttribute('disabled');
orgText = text.value = link[browser.ie ? 'innerText':'textContent']; orgText = text.value = link[browser.ie ? 'innerText':'textContent'];
}else{ }else{
text.setAttribute('disabled','true'); text.setAttribute('disabled','true');
text.value = lang.validLink; text.value = lang.validLink;
} }
}else{ }else{
if(range.collapsed){ if(range.collapsed){
text.removeAttribute('disabled'); text.removeAttribute('disabled');
text.value = ''; text.value = '';
}else{ }else{
text.setAttribute('disabled','true'); text.setAttribute('disabled','true');
text.value = lang.validLink; text.value = lang.validLink;
} }
} }
$G("title").value = url ? link.title : ""; $G("title").value = url ? link.title : "";
$G("href").value = url ? url: ''; $G("href").value = url ? url: '';
$G("target").checked = url && link.target == "_blank" ? true : false; $G("target").checked = url && link.target == "_blank" ? true : false;
$focus($G("href")); $focus($G("href"));
function handleDialogOk(){ function handleDialogOk(){
var href =$G('href').value.replace(/^\s+|\s+$/g, ''); var href =$G('href').value.replace(/^\s+|\s+$/g, '');
if(href){ if(href){
if(!hrefStartWith(href,["http","/","ftp://",'#'])) { if(!hrefStartWith(href,["http","/","ftp://",'#'])) {
href = "http://" + href; href = "http://" + href;
} }
var obj = { var obj = {
'href' : href, 'href' : href,
'target' : $G("target").checked ? "_blank" : '_self', 'target' : $G("target").checked ? "_blank" : '_self',
'title' : $G("title").value.replace(/^\s+|\s+$/g, ''), 'title' : $G("title").value.replace(/^\s+|\s+$/g, ''),
'_href':href '_href':href
}; };
//修改链接内容的情况太特殊了,所以先做到这里了 //修改链接内容的情况太特殊了,所以先做到这里了
//todo:情况多的时候做到command里 //todo:情况多的时候做到command里
if(orgText && text.value != orgText){ if(orgText && text.value != orgText){
link[browser.ie ? 'innerText' : 'textContent'] = obj.textValue = text.value; link[browser.ie ? 'innerText' : 'textContent'] = obj.textValue = text.value;
range.selectNode(link).select() range.selectNode(link).select()
} }
if(range.collapsed){ if(range.collapsed){
obj.textValue = text.value; obj.textValue = text.value;
} }
editor.execCommand('link',utils.clearEmptyAttrs(obj) ); editor.execCommand('link',utils.clearEmptyAttrs(obj) );
dialog.close(); dialog.close();
} }
} }
dialog.onok = handleDialogOk; dialog.onok = handleDialogOk;
$G('href').onkeydown = $G('title').onkeydown = function(evt){ $G('href').onkeydown = $G('title').onkeydown = function(evt){
evt = evt || window.event; evt = evt || window.event;
if (evt.keyCode == 13) { if (evt.keyCode == 13) {
handleDialogOk(); handleDialogOk();
return false; return false;
} }
}; };
$G('href').onblur = function(){ $G('href').onblur = function(){
if(!hrefStartWith(this.value,["http","/","ftp://",'#'])){ if(!hrefStartWith(this.value,["http","/","ftp://",'#'])){
$G("msg").innerHTML = "<span style='color: red'>"+lang.httpPrompt+"</span>"; $G("msg").innerHTML = "<span style='color: red'>"+lang.httpPrompt+"</span>";
}else{ }else{
$G("msg").innerHTML = ""; $G("msg").innerHTML = "";
} }
}; };
function hrefStartWith(href,arr){ function hrefStartWith(href,arr){
href = href.replace(/^\s+|\s+$/g, ''); href = href.replace(/^\s+|\s+$/g, '');
for(var i=0,ai;ai=arr[i++];){ for(var i=0,ai;ai=arr[i++];){
if(href.indexOf(ai)==0){ if(href.indexOf(ai)==0){
return true; return true;
} }
} }
return false; return false;
} }
</script> </script>
</body> </body>
</html> </html>

View File

@ -1,135 +1,135 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title> <title></title>
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.1&services=true"></script> <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.1&services=true"></script>
<style type="text/css"> <style type="text/css">
.content{width:530px; height: 350px;margin: 10px auto;} .content{width:530px; height: 350px;margin: 10px auto;}
.content table{width: 100%} .content table{width: 100%}
.content table td{vertical-align: middle;} .content table td{vertical-align: middle;}
#city,#address{height:21px;background: #FFF;border:1px solid #d7d7d7; line-height: 21px;} #city,#address{height:21px;background: #FFF;border:1px solid #d7d7d7; line-height: 21px;}
#city{width:60px} #city{width:60px}
#address{width:130px} #address{width:130px}
#is_dynamic_label span{vertical-align:middle;margin: 3px 0px 3px 3px;} #is_dynamic_label span{vertical-align:middle;margin: 3px 0px 3px 3px;}
#is_dynamic_label input{vertical-align:middle;margin: 3px 3px 3px 50px;} #is_dynamic_label input{vertical-align:middle;margin: 3px 3px 3px 50px;}
</style> </style>
</head> </head>
<body> <body>
<div class="content"> <div class="content">
<table> <table>
<tr> <tr>
<td><var id="lang_city"></var>:</td> <td><var id="lang_city"></var>:</td>
<td><input id="city" type="text" /></td> <td><input id="city" type="text" /></td>
<td><var id="lang_address"></var>:</td> <td><var id="lang_address"></var>:</td>
<td><input id="address" type="text" value="" /></td> <td><input id="address" type="text" value="" /></td>
<td><a href="javascript:doSearch()" class="button"><var id="lang_search"></var></a></td> <td><a href="javascript:doSearch()" class="button"><var id="lang_search"></var></a></td>
<td><label id="is_dynamic_label" for="is_dynamic"><input id="is_dynamic" type="checkbox" name="is_dynamic" /><span><var id="lang_dynamicmap"></var></span></label></td> <td><label id="is_dynamic_label" for="is_dynamic"><input id="is_dynamic" type="checkbox" name="is_dynamic" /><span><var id="lang_dynamicmap"></var></span></label></td>
</tr> </tr>
</table> </table>
<div style="width:100%;height:340px;margin:5px auto;border:1px solid gray" id="container"></div> <div style="width:100%;height:340px;margin:5px auto;border:1px solid gray" id="container"></div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
var map = new BMap.Map("container"),marker,point,styleStr; var map = new BMap.Map("container"),marker,point,styleStr;
map.enableScrollWheelZoom(); map.enableScrollWheelZoom();
map.enableContinuousZoom(); map.enableContinuousZoom();
function doSearch(){ function doSearch(){
if (!document.getElementById('city').value) { if (!document.getElementById('city').value) {
alert(lang.cityMsg); alert(lang.cityMsg);
return; return;
} }
var search = new BMap.LocalSearch(document.getElementById('city').value, { var search = new BMap.LocalSearch(document.getElementById('city').value, {
onSearchComplete: function (results){ onSearchComplete: function (results){
if (results && results.getNumPois()) { if (results && results.getNumPois()) {
var points = []; var points = [];
for (var i=0; i<results.getCurrentNumPois(); i++) { for (var i=0; i<results.getCurrentNumPois(); i++) {
points.push(results.getPoi(i).point); points.push(results.getPoi(i).point);
} }
if (points.length > 1) { if (points.length > 1) {
map.setViewport(points); map.setViewport(points);
} else { } else {
map.centerAndZoom(points[0], 13); map.centerAndZoom(points[0], 13);
} }
point = map.getCenter(); point = map.getCenter();
marker.setPoint(point); marker.setPoint(point);
} else { } else {
alert(lang.errorMsg); alert(lang.errorMsg);
} }
} }
}); });
search.search(document.getElementById('address').value || document.getElementById('city').value); search.search(document.getElementById('address').value || document.getElementById('city').value);
} }
//获得参数 //获得参数
function getPars(str,par){ function getPars(str,par){
var reg = new RegExp(par+"=((\\d+|[.,])*)","g"); var reg = new RegExp(par+"=((\\d+|[.,])*)","g");
return reg.exec(str)[1]; return reg.exec(str)[1];
} }
function init(){ function init(){
var mapNode = editor.selection.getRange().getClosedNode(), var mapNode = editor.selection.getRange().getClosedNode(),
isMapImg = mapNode && /api[.]map[.]baidu[.]com/ig.test(mapNode.getAttribute("src")), isMapImg = mapNode && /api[.]map[.]baidu[.]com/ig.test(mapNode.getAttribute("src")),
isMapIframe = mapNode && domUtils.hasClass(mapNode, 'ueditor_baidumap'); isMapIframe = mapNode && domUtils.hasClass(mapNode, 'ueditor_baidumap');
if(isMapImg || isMapIframe){ if(isMapImg || isMapIframe){
var url, centerPos, markerPos; var url, centerPos, markerPos;
if(isMapIframe) { if(isMapIframe) {
url = decodeURIComponent(mapNode.getAttribute("src")); url = decodeURIComponent(mapNode.getAttribute("src"));
$G('is_dynamic').checked = true; $G('is_dynamic').checked = true;
styleStr = mapNode.style.cssText; styleStr = mapNode.style.cssText;
} else { } else {
url = mapNode.getAttribute("src"); url = mapNode.getAttribute("src");
styleStr = mapNode.style.cssText; styleStr = mapNode.style.cssText;
} }
centerPos = getPars(url,"center").split(","); centerPos = getPars(url,"center").split(",");
markerPos = getPars(url, "markers").split(","); markerPos = getPars(url, "markers").split(",");
point = new BMap.Point(Number(centerPos[0]),Number(centerPos[1])); point = new BMap.Point(Number(centerPos[0]),Number(centerPos[1]));
marker = new BMap.Marker(new BMap.Point(Number(markerPos[0]), Number(markerPos[1]))); marker = new BMap.Marker(new BMap.Point(Number(markerPos[0]), Number(markerPos[1])));
map.addControl(new BMap.NavigationControl()); map.addControl(new BMap.NavigationControl());
map.centerAndZoom(point, Number(getPars(url,"zoom"))); map.centerAndZoom(point, Number(getPars(url,"zoom")));
}else{ }else{
point = new BMap.Point(116.404, 39.915); // 创建点坐标 point = new BMap.Point(116.404, 39.915); // 创建点坐标
marker = new BMap.Marker(point); marker = new BMap.Marker(point);
map.addControl(new BMap.NavigationControl()); map.addControl(new BMap.NavigationControl());
map.centerAndZoom(point, 10); // 初始化地图,设置中心点坐标和地图级别。 map.centerAndZoom(point, 10); // 初始化地图,设置中心点坐标和地图级别。
} }
marker.enableDragging(); marker.enableDragging();
map.addOverlay(marker); map.addOverlay(marker);
} }
init(); init();
document.getElementById('address').onkeydown = function (evt){ document.getElementById('address').onkeydown = function (evt){
evt = evt || event; evt = evt || event;
if (evt.keyCode == 13) { if (evt.keyCode == 13) {
doSearch(); doSearch();
} }
}; };
dialog.onok = function (){ dialog.onok = function (){
var center = map.getCenter(); var center = map.getCenter();
var zoom = map.zoomLevel; var zoom = map.zoomLevel;
var size = map.getSize(); var size = map.getSize();
var mapWidth = size.width; var mapWidth = size.width;
var mapHeight = size.height; var mapHeight = size.height;
var point = marker.getPoint(); var point = marker.getPoint();
if($G('is_dynamic').checked) { if($G('is_dynamic').checked) {
var URL = editor.options.UEDITOR_HOME_URL, var URL = editor.options.UEDITOR_HOME_URL,
url = [URL + (/\/$/.test(URL) ? '':'/') + "dialogs/map/show.html" + url = [URL + (/\/$/.test(URL) ? '':'/') + "dialogs/map/show.html" +
'#center=' + center.lng + ',' + center.lat, '#center=' + center.lng + ',' + center.lat,
'&zoom=' + zoom, '&zoom=' + zoom,
'&width=' + mapWidth, '&width=' + mapWidth,
'&height=' + mapHeight, '&height=' + mapHeight,
'&markers=' + point.lng + ',' + point.lat, '&markers=' + point.lng + ',' + point.lat,
'&markerStyles=' + 'l,A'].join(''); '&markerStyles=' + 'l,A'].join('');
editor.execCommand('inserthtml', '<iframe class="ueditor_baidumap" src="' + url + '"' + (styleStr ? ' style="' + styleStr + '"' :'') + ' frameborder="0" width="' + (mapWidth+4) + '" height="' + (mapHeight+4) + '"></iframe>'); editor.execCommand('inserthtml', '<iframe class="ueditor_baidumap" src="' + url + '"' + (styleStr ? ' style="' + styleStr + '"' :'') + ' frameborder="0" width="' + (mapWidth+4) + '" height="' + (mapHeight+4) + '"></iframe>');
} else { } else {
var url = "http://api.map.baidu.com/staticimage?center=" + center.lng + ',' + center.lat + var url = "http://api.map.baidu.com/staticimage?center=" + center.lng + ',' + center.lat +
"&zoom=" + zoom + "&width=" + size.width + '&height=' + size.height + "&markers=" + point.lng + ',' + point.lat; "&zoom=" + zoom + "&width=" + size.width + '&height=' + size.height + "&markers=" + point.lng + ',' + point.lat;
editor.execCommand('inserthtml', '<img width="'+ size.width +'"height="'+ size.height +'" src="' + url + '"' + (styleStr ? ' style="' + styleStr + '"' :'') + '/>'); editor.execCommand('inserthtml', '<img width="'+ size.width +'"height="'+ size.height +'" src="' + url + '"' + (styleStr ? ' style="' + styleStr + '"' :'') + '/>');
} }
}; };
document.getElementById("address").focus(); document.getElementById("address").focus();
</script> </script>
</body> </body>
</html> </html>

View File

@ -1,118 +1,118 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<meta name="keywords" content="百度地图,百度地图API百度地图自定义工具百度地图所见即所得工具"/> <meta name="keywords" content="百度地图,百度地图API百度地图自定义工具百度地图所见即所得工具"/>
<meta name="description" content="百度地图API自定义地图帮助用户在可视化操作下生成百度地图"/> <meta name="description" content="百度地图API自定义地图帮助用户在可视化操作下生成百度地图"/>
<title>百度地图API自定义地图</title> <title>百度地图API自定义地图</title>
<!--引用百度地图API--> <!--引用百度地图API-->
<style type="text/css"> <style type="text/css">
html, body { html, body {
margin: 0; margin: 0;
padding: 0; padding: 0;
overflow: hidden; overflow: hidden;
} }
</style> </style>
<script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script> <script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>
</head> </head>
<body onload="initMap();"> <body onload="initMap();">
<!--百度地图容器--> <!--百度地图容器-->
<div style="width:697px;height:550px;border:#ccc solid 1px;" id="dituContent"></div> <div style="width:697px;height:550px;border:#ccc solid 1px;" id="dituContent"></div>
</body> </body>
<script type="text/javascript"> <script type="text/javascript">
function getParam(name) { function getParam(name) {
return location.href.match(new RegExp('[?#&]' + name + '=([^?#&]+)', 'i')) ? RegExp.$1 : ''; return location.href.match(new RegExp('[?#&]' + name + '=([^?#&]+)', 'i')) ? RegExp.$1 : '';
} }
var map, marker; var map, marker;
var centerParam = getParam('center'); var centerParam = getParam('center');
var zoomParam = getParam('zoom'); var zoomParam = getParam('zoom');
var widthParam = getParam('width'); var widthParam = getParam('width');
var heightParam = getParam('height'); var heightParam = getParam('height');
var markersParam = getParam('markers'); var markersParam = getParam('markers');
var markerStylesParam = getParam('markerStyles'); var markerStylesParam = getParam('markerStyles');
//创建和初始化地图函数: //创建和初始化地图函数:
function initMap() { function initMap() {
// [FF]切换模式后报错 // [FF]切换模式后报错
if (!window.BMap) { if (!window.BMap) {
return; return;
} }
var dituContent = document.getElementById('dituContent'); var dituContent = document.getElementById('dituContent');
dituContent.style.width = widthParam + 'px'; dituContent.style.width = widthParam + 'px';
dituContent.style.height = heightParam + 'px'; dituContent.style.height = heightParam + 'px';
createMap();//创建地图 createMap();//创建地图
setMapEvent();//设置地图事件 setMapEvent();//设置地图事件
addMapControl();//向地图添加控件 addMapControl();//向地图添加控件
// 创建标注 // 创建标注
var markersArr = markersParam.split(','); var markersArr = markersParam.split(',');
var point = new BMap.Point(markersArr[0], markersArr[1]); var point = new BMap.Point(markersArr[0], markersArr[1]);
marker = new BMap.Marker(point); marker = new BMap.Marker(point);
marker.enableDragging(); marker.enableDragging();
map.addOverlay(marker); // 将标注添加到地图中 map.addOverlay(marker); // 将标注添加到地图中
if(parent.editor && parent.document.body.contentEditable=="true") { //在编辑状态下 if(parent.editor && parent.document.body.contentEditable=="true") { //在编辑状态下
setMapListener();//地图改变修改外层的iframe标签src属性 setMapListener();//地图改变修改外层的iframe标签src属性
} }
} }
//创建地图函数: //创建地图函数:
function createMap() { function createMap() {
map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图 map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图
var centerArr = centerParam.split(','); var centerArr = centerParam.split(',');
var point = new BMap.Point(parseFloat(centerArr[0]), parseFloat(centerArr[1]));//定义一个中心点坐标 var point = new BMap.Point(parseFloat(centerArr[0]), parseFloat(centerArr[1]));//定义一个中心点坐标
map.centerAndZoom(point, parseInt(zoomParam));//设定地图的中心点和坐标并将地图显示在地图容器中 map.centerAndZoom(point, parseInt(zoomParam));//设定地图的中心点和坐标并将地图显示在地图容器中
} }
//地图事件设置函数: //地图事件设置函数:
function setMapEvent() { function setMapEvent() {
map.enableDragging();//启用地图拖拽事件,默认启用(可不写) map.enableDragging();//启用地图拖拽事件,默认启用(可不写)
map.enableScrollWheelZoom();//启用地图滚轮放大缩小 map.enableScrollWheelZoom();//启用地图滚轮放大缩小
map.enableDoubleClickZoom();//启用鼠标双击放大,默认启用(可不写) map.enableDoubleClickZoom();//启用鼠标双击放大,默认启用(可不写)
map.enableKeyboard();//启用键盘上下左右键移动地图 map.enableKeyboard();//启用键盘上下左右键移动地图
} }
//地图控件添加函数: //地图控件添加函数:
function addMapControl() { function addMapControl() {
//向地图中添加缩放控件 //向地图中添加缩放控件
var ctrl_nav = new BMap.NavigationControl({anchor: BMAP_ANCHOR_TOP_LEFT, type: BMAP_NAVIGATION_CONTROL_LARGE}); var ctrl_nav = new BMap.NavigationControl({anchor: BMAP_ANCHOR_TOP_LEFT, type: BMAP_NAVIGATION_CONTROL_LARGE});
map.addControl(ctrl_nav); map.addControl(ctrl_nav);
//向地图中添加缩略图控件 //向地图中添加缩略图控件
var ctrl_ove = new BMap.OverviewMapControl({anchor: BMAP_ANCHOR_BOTTOM_RIGHT, isOpen: 1}); var ctrl_ove = new BMap.OverviewMapControl({anchor: BMAP_ANCHOR_BOTTOM_RIGHT, isOpen: 1});
map.addControl(ctrl_ove); map.addControl(ctrl_ove);
//向地图中添加比例尺控件 //向地图中添加比例尺控件
var ctrl_sca = new BMap.ScaleControl({anchor: BMAP_ANCHOR_BOTTOM_LEFT}); var ctrl_sca = new BMap.ScaleControl({anchor: BMAP_ANCHOR_BOTTOM_LEFT});
map.addControl(ctrl_sca); map.addControl(ctrl_sca);
} }
function setMapListener() { function setMapListener() {
var editor = parent.editor, containerIframe, var editor = parent.editor, containerIframe,
iframes = parent.document.getElementsByTagName('iframe'); iframes = parent.document.getElementsByTagName('iframe');
for (var key in iframes) { for (var key in iframes) {
if (iframes[key].contentWindow == window) { if (iframes[key].contentWindow == window) {
containerIframe = iframes[key]; containerIframe = iframes[key];
break; break;
} }
} }
if (containerIframe) { if (containerIframe) {
map.addEventListener('moveend', mapListenerHandler); map.addEventListener('moveend', mapListenerHandler);
map.addEventListener('zoomend', mapListenerHandler); map.addEventListener('zoomend', mapListenerHandler);
marker.addEventListener('dragend', mapListenerHandler); marker.addEventListener('dragend', mapListenerHandler);
} }
function mapListenerHandler() { function mapListenerHandler() {
var zoom = map.getZoom(), var zoom = map.getZoom(),
center = map.getCenter(), center = map.getCenter(),
marker = window.marker.getPoint(); marker = window.marker.getPoint();
containerIframe.src = containerIframe.src. containerIframe.src = containerIframe.src.
replace(new RegExp('([?#&])center=([^?#&]+)', 'i'), '$1center=' + center.lng + ',' + center.lat). replace(new RegExp('([?#&])center=([^?#&]+)', 'i'), '$1center=' + center.lng + ',' + center.lat).
replace(new RegExp('([?#&])markers=([^?#&]+)', 'i'), '$1markers=' + marker.lng + ',' + marker.lat). replace(new RegExp('([?#&])markers=([^?#&]+)', 'i'), '$1markers=' + marker.lng + ',' + marker.lat).
replace(new RegExp('([?#&])zoom=([^?#&]+)', 'i'), '$1zoom=' + zoom); replace(new RegExp('([?#&])zoom=([^?#&]+)', 'i'), '$1zoom=' + zoom);
editor.fireEvent('saveScene'); editor.fireEvent('saveScene');
} }
} }
</script> </script>
</html> </html>

View File

@ -1,30 +1,30 @@
.wrapper{margin: 5px 10px;} .wrapper{margin: 5px 10px;}
.searchBar{height:30px;padding:7px 0 3px;text-align:center;} .searchBar{height:30px;padding:7px 0 3px;text-align:center;}
.searchBtn{font-size:13px;height:24px;} .searchBtn{font-size:13px;height:24px;}
.resultBar{width:460px;margin:5px auto;border: 1px solid #CCC;border-radius: 5px;box-shadow: 2px 2px 5px #D3D6DA;overflow: hidden;} .resultBar{width:460px;margin:5px auto;border: 1px solid #CCC;border-radius: 5px;box-shadow: 2px 2px 5px #D3D6DA;overflow: hidden;}
.listPanel{overflow: hidden;} .listPanel{overflow: hidden;}
.panelon{display:block;} .panelon{display:block;}
.paneloff{display:none} .paneloff{display:none}
.page{width:220px;margin:20px auto;overflow: hidden;} .page{width:220px;margin:20px auto;overflow: hidden;}
.pageon{float:right;width:24px;line-height:24px;height:24px;margin-right: 5px;background: none;border: none;color: #000;font-weight: bold;text-align:center} .pageon{float:right;width:24px;line-height:24px;height:24px;margin-right: 5px;background: none;border: none;color: #000;font-weight: bold;text-align:center}
.pageoff{float:right;width:24px;line-height:24px;height:24px;cursor:pointer;background-color: #fff; .pageoff{float:right;width:24px;line-height:24px;height:24px;cursor:pointer;background-color: #fff;
border: 1px solid #E7ECF0;color: #2D64B3;margin-right: 5px;text-decoration: none;text-align:center;} border: 1px solid #E7ECF0;color: #2D64B3;margin-right: 5px;text-decoration: none;text-align:center;}
.m-box{width:460px;} .m-box{width:460px;}
.m-m{float: left;line-height: 20px;height: 20px;} .m-m{float: left;line-height: 20px;height: 20px;}
.m-h{height:24px;line-height:24px;padding-left: 46px;background-color:#FAFAFA;border-bottom: 1px solid #DAD8D8;font-weight: bold;font-size: 12px;color: #333;} .m-h{height:24px;line-height:24px;padding-left: 46px;background-color:#FAFAFA;border-bottom: 1px solid #DAD8D8;font-weight: bold;font-size: 12px;color: #333;}
.m-l{float:left;width:40px; } .m-l{float:left;width:40px; }
.m-t{float:left;width:140px;} .m-t{float:left;width:140px;}
.m-s{float:left;width:110px;} .m-s{float:left;width:110px;}
.m-z{float:left;width:100px;} .m-z{float:left;width:100px;}
.m-try-t{float: left;width: 60px;;} .m-try-t{float: left;width: 60px;;}
.m-try{float:left;width:20px;height:20px;background:url('http://static.tieba.baidu.com/tb/editor/images/try_music.gif') no-repeat ;} .m-try{float:left;width:20px;height:20px;background:url('http://static.tieba.baidu.com/tb/editor/images/try_music.gif') no-repeat ;}
.m-trying{float:left;width:20px;height:20px;background:url('http://static.tieba.baidu.com/tb/editor/images/stop_music.gif') no-repeat ;} .m-trying{float:left;width:20px;height:20px;background:url('http://static.tieba.baidu.com/tb/editor/images/stop_music.gif') no-repeat ;}
.loading{width:95px;height:7px;font-size:7px;margin:60px auto;background:url(http://static.tieba.baidu.com/tb/editor/images/loading.gif) no-repeat} .loading{width:95px;height:7px;font-size:7px;margin:60px auto;background:url(http://static.tieba.baidu.com/tb/editor/images/loading.gif) no-repeat}
.empty{width:300px;height:40px;padding:2px;margin:50px auto;line-height:40px; color:#006699;text-align:center;} .empty{width:300px;height:40px;padding:2px;margin:50px auto;line-height:40px; color:#006699;text-align:center;}

View File

@ -1,32 +1,32 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>插入音乐</title> <title>插入音乐</title>
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
<link rel="stylesheet" type="text/css" href="music.css"> <link rel="stylesheet" type="text/css" href="music.css">
</head> </head>
<body> <body>
<div class="wrapper"> <div class="wrapper">
<div class="searchBar"> <div class="searchBar">
<input id="J_searchName" type="text"/> <input id="J_searchName" type="text"/>
<input type="button" class="searchBtn" id="J_searchBtn"> <input type="button" class="searchBtn" id="J_searchBtn">
</div> </div>
<div class="resultBar" id="J_resultBar"> <div class="resultBar" id="J_resultBar">
<div class="loading" style="display:none"></div> <div class="loading" style="display:none"></div>
<div class="empty"><var id="lang_input_tips"></var></div> <div class="empty"><var id="lang_input_tips"></var></div>
</div> </div>
<div id="J_preview"></div> <div id="J_preview"></div>
</div> </div>
<script type="text/javascript" src="music.js"></script> <script type="text/javascript" src="music.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var music = new Music; var music = new Music;
dialog.onok = function () { dialog.onok = function () {
music.exec(); music.exec();
}; };
dialog.oncancel = function () { dialog.oncancel = function () {
$G('J_preview').innerHTML = ""; $G('J_preview').innerHTML = "";
}; };
</script> </script>
</body> </body>
</html> </html>

View File

@ -1,192 +1,192 @@
function Music() { function Music() {
this.init(); this.init();
} }
(function () { (function () {
var pages = [], var pages = [],
panels = [], panels = [],
selectedItem = null; selectedItem = null;
Music.prototype = { Music.prototype = {
total:70, total:70,
pageSize:10, pageSize:10,
dataUrl:"http://tingapi.ting.baidu.com/v1/restserver/ting?method=baidu.ting.search.common", dataUrl:"http://tingapi.ting.baidu.com/v1/restserver/ting?method=baidu.ting.search.common",
playerUrl:"http://box.baidu.com/widget/flash/bdspacesong.swf", playerUrl:"http://box.baidu.com/widget/flash/bdspacesong.swf",
init:function () { init:function () {
var me = this; var me = this;
domUtils.on($G("J_searchName"), "keyup", function (event) { domUtils.on($G("J_searchName"), "keyup", function (event) {
var e = window.event || event; var e = window.event || event;
if (e.keyCode == 13) { if (e.keyCode == 13) {
me.dosearch(); me.dosearch();
} }
}); });
domUtils.on($G("J_searchBtn"), "click", function () { domUtils.on($G("J_searchBtn"), "click", function () {
me.dosearch(); me.dosearch();
}); });
}, },
callback:function (data) { callback:function (data) {
var me = this; var me = this;
me.data = data.song_list; me.data = data.song_list;
setTimeout(function () { setTimeout(function () {
$G('J_resultBar').innerHTML = me._renderTemplate(data.song_list); $G('J_resultBar').innerHTML = me._renderTemplate(data.song_list);
}, 300); }, 300);
}, },
dosearch:function () { dosearch:function () {
var me = this; var me = this;
selectedItem = null; selectedItem = null;
var key = $G('J_searchName').value; var key = $G('J_searchName').value;
if (utils.trim(key) == "")return false; if (utils.trim(key) == "")return false;
key = encodeURIComponent(key); key = encodeURIComponent(key);
me._sent(key); me._sent(key);
}, },
doselect:function (i) { doselect:function (i) {
var me = this; var me = this;
if (typeof i == 'object') { if (typeof i == 'object') {
selectedItem = i; selectedItem = i;
} else if (typeof i == 'number') { } else if (typeof i == 'number') {
selectedItem = me.data[i]; selectedItem = me.data[i];
} }
}, },
onpageclick:function (id) { onpageclick:function (id) {
var me = this; var me = this;
for (var i = 0; i < pages.length; i++) { for (var i = 0; i < pages.length; i++) {
$G(pages[i]).className = 'pageoff'; $G(pages[i]).className = 'pageoff';
$G(panels[i]).className = 'paneloff'; $G(panels[i]).className = 'paneloff';
} }
$G('page' + id).className = 'pageon'; $G('page' + id).className = 'pageon';
$G('panel' + id).className = 'panelon'; $G('panel' + id).className = 'panelon';
}, },
listenTest:function (elem) { listenTest:function (elem) {
var me = this, var me = this,
view = $G('J_preview'), view = $G('J_preview'),
is_play_action = (elem.className == 'm-try'), is_play_action = (elem.className == 'm-try'),
old_trying = me._getTryingElem(); old_trying = me._getTryingElem();
if (old_trying) { if (old_trying) {
old_trying.className = 'm-try'; old_trying.className = 'm-try';
view.innerHTML = ''; view.innerHTML = '';
} }
if (is_play_action) { if (is_play_action) {
elem.className = 'm-trying'; elem.className = 'm-trying';
view.innerHTML = me._buildMusicHtml(me._getUrl(true)); view.innerHTML = me._buildMusicHtml(me._getUrl(true));
} }
}, },
_sent:function (param) { _sent:function (param) {
var me = this; var me = this;
$G('J_resultBar').innerHTML = '<div class="loading"></div>'; $G('J_resultBar').innerHTML = '<div class="loading"></div>';
utils.loadFile(document, { utils.loadFile(document, {
src:me.dataUrl + '&query=' + param + '&page_size=' + me.total + '&callback=music.callback&.r=' + Math.random(), src:me.dataUrl + '&query=' + param + '&page_size=' + me.total + '&callback=music.callback&.r=' + Math.random(),
tag:"script", tag:"script",
type:"text/javascript", type:"text/javascript",
defer:"defer" defer:"defer"
}); });
}, },
_removeHtml:function (str) { _removeHtml:function (str) {
var reg = /<\s*\/?\s*[^>]*\s*>/gi; var reg = /<\s*\/?\s*[^>]*\s*>/gi;
return str.replace(reg, ""); return str.replace(reg, "");
}, },
_getUrl:function (isTryListen) { _getUrl:function (isTryListen) {
var me = this; var me = this;
var param = 'from=tiebasongwidget&url=&name=' + encodeURIComponent(me._removeHtml(selectedItem.title)) + '&artist=' var param = 'from=tiebasongwidget&url=&name=' + encodeURIComponent(me._removeHtml(selectedItem.title)) + '&artist='
+ encodeURIComponent(me._removeHtml(selectedItem.author)) + '&extra=' + encodeURIComponent(me._removeHtml(selectedItem.author)) + '&extra='
+ encodeURIComponent(me._removeHtml(selectedItem.album_title)) + encodeURIComponent(me._removeHtml(selectedItem.album_title))
+ '&autoPlay='+isTryListen+'' + '&loop=true'; + '&autoPlay='+isTryListen+'' + '&loop=true';
return me.playerUrl + "?" + param; return me.playerUrl + "?" + param;
}, },
_getTryingElem:function () { _getTryingElem:function () {
var s = $G('J_listPanel').getElementsByTagName('span'); var s = $G('J_listPanel').getElementsByTagName('span');
for (var i = 0; i < s.length; i++) { for (var i = 0; i < s.length; i++) {
if (s[i].className == 'm-trying') if (s[i].className == 'm-trying')
return s[i]; return s[i];
} }
return null; return null;
}, },
_buildMusicHtml:function (playerUrl) { _buildMusicHtml:function (playerUrl) {
var html = '<embed class="BDE_try_Music" allowfullscreen="false" pluginspage="http://www.macromedia.com/go/getflashplayer"'; var html = '<embed class="BDE_try_Music" allowfullscreen="false" pluginspage="http://www.macromedia.com/go/getflashplayer"';
html += ' src="' + playerUrl + '"'; html += ' src="' + playerUrl + '"';
html += ' width="1" height="1" style="position:absolute;left:-2000px;"'; html += ' width="1" height="1" style="position:absolute;left:-2000px;"';
html += ' type="application/x-shockwave-flash" wmode="transparent" play="true" loop="false"'; html += ' type="application/x-shockwave-flash" wmode="transparent" play="true" loop="false"';
html += ' menu="false" allowscriptaccess="never" scale="noborder">'; html += ' menu="false" allowscriptaccess="never" scale="noborder">';
return html; return html;
}, },
_byteLength:function (str) { _byteLength:function (str) {
return str.replace(/[^\u0000-\u007f]/g, "\u0061\u0061").length; return str.replace(/[^\u0000-\u007f]/g, "\u0061\u0061").length;
}, },
_getMaxText:function (s) { _getMaxText:function (s) {
var me = this; var me = this;
s = me._removeHtml(s); s = me._removeHtml(s);
if (me._byteLength(s) > 12) if (me._byteLength(s) > 12)
return s.substring(0, 5) + '...'; return s.substring(0, 5) + '...';
if (!s) s = "&nbsp;"; if (!s) s = "&nbsp;";
return s; return s;
}, },
_rebuildData:function (data) { _rebuildData:function (data) {
var me = this, var me = this,
newData = [], newData = [],
d = me.pageSize, d = me.pageSize,
itembox; itembox;
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
if ((i + d) % d == 0) { if ((i + d) % d == 0) {
itembox = []; itembox = [];
newData.push(itembox) newData.push(itembox)
} }
itembox.push(data[i]); itembox.push(data[i]);
} }
return newData; return newData;
}, },
_renderTemplate:function (data) { _renderTemplate:function (data) {
var me = this; var me = this;
if (data.length == 0)return '<div class="empty">' + lang.emptyTxt + '</div>'; if (data.length == 0)return '<div class="empty">' + lang.emptyTxt + '</div>';
data = me._rebuildData(data); data = me._rebuildData(data);
var s = [], p = [], t = []; var s = [], p = [], t = [];
s.push('<div id="J_listPanel" class="listPanel">'); s.push('<div id="J_listPanel" class="listPanel">');
p.push('<div class="page">'); p.push('<div class="page">');
for (var i = 0, tmpList; tmpList = data[i++];) { for (var i = 0, tmpList; tmpList = data[i++];) {
panels.push('panel' + i); panels.push('panel' + i);
pages.push('page' + i); pages.push('page' + i);
if (i == 1) { if (i == 1) {
s.push('<div id="panel' + i + '" class="panelon">'); s.push('<div id="panel' + i + '" class="panelon">');
if (data.length != 1) { if (data.length != 1) {
t.push('<div id="page' + i + '" onclick="music.onpageclick(' + i + ')" class="pageon">' + (i ) + '</div>'); t.push('<div id="page' + i + '" onclick="music.onpageclick(' + i + ')" class="pageon">' + (i ) + '</div>');
} }
} else { } else {
s.push('<div id="panel' + i + '" class="paneloff">'); s.push('<div id="panel' + i + '" class="paneloff">');
t.push('<div id="page' + i + '" onclick="music.onpageclick(' + i + ')" class="pageoff">' + (i ) + '</div>'); t.push('<div id="page' + i + '" onclick="music.onpageclick(' + i + ')" class="pageoff">' + (i ) + '</div>');
} }
s.push('<div class="m-box">'); s.push('<div class="m-box">');
s.push('<div class="m-h"><span class="m-t">' + lang.chapter + '</span><span class="m-s">' + lang.singer s.push('<div class="m-h"><span class="m-t">' + lang.chapter + '</span><span class="m-s">' + lang.singer
+ '</span><span class="m-z">' + lang.special + '</span><span class="m-try-t">' + lang.listenTest + '</span></div>'); + '</span><span class="m-z">' + lang.special + '</span><span class="m-try-t">' + lang.listenTest + '</span></div>');
for (var j = 0, tmpObj; tmpObj = tmpList[j++];) { for (var j = 0, tmpObj; tmpObj = tmpList[j++];) {
s.push('<label for="radio-' + i + '-' + j + '" class="m-m">'); s.push('<label for="radio-' + i + '-' + j + '" class="m-m">');
s.push('<input type="radio" id="radio-' + i + '-' + j + '" name="musicId" class="m-l" onclick="music.doselect(' + (me.pageSize * (i-1) + (j-1)) + ')"/>'); s.push('<input type="radio" id="radio-' + i + '-' + j + '" name="musicId" class="m-l" onclick="music.doselect(' + (me.pageSize * (i-1) + (j-1)) + ')"/>');
s.push('<span class="m-t">' + me._getMaxText(tmpObj.title) + '</span>'); s.push('<span class="m-t">' + me._getMaxText(tmpObj.title) + '</span>');
s.push('<span class="m-s">' + me._getMaxText(tmpObj.author) + '</span>'); s.push('<span class="m-s">' + me._getMaxText(tmpObj.author) + '</span>');
s.push('<span class="m-z">' + me._getMaxText(tmpObj.album_title) + '</span>'); s.push('<span class="m-z">' + me._getMaxText(tmpObj.album_title) + '</span>');
s.push('<span class="m-try" onclick="music.doselect(' + (me.pageSize * (i-1) + (j-1)) + ');music.listenTest(this)"></span>'); s.push('<span class="m-try" onclick="music.doselect(' + (me.pageSize * (i-1) + (j-1)) + ');music.listenTest(this)"></span>');
s.push('</label>'); s.push('</label>');
} }
s.push('</div>'); s.push('</div>');
s.push('</div>'); s.push('</div>');
} }
t.reverse(); t.reverse();
p.push(t.join('')); p.push(t.join(''));
s.push('</div>'); s.push('</div>');
p.push('</div>'); p.push('</div>');
return s.join('') + p.join(''); return s.join('') + p.join('');
}, },
exec:function () { exec:function () {
var me = this; var me = this;
if (selectedItem == null) return; if (selectedItem == null) return;
$G('J_preview').innerHTML = ""; $G('J_preview').innerHTML = "";
editor.execCommand('music', { editor.execCommand('music', {
url:me._getUrl(false), url:me._getUrl(false),
width:400, width:400,
height:95 height:95
}); });
} }
}; };
})(); })();

View File

@ -1,40 +1,40 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style> <style>
html,body{ html,body{
height:100%; height:100%;
width:100%; width:100%;
padding:0; padding:0;
margin:0; margin:0;
} }
#preview{ #preview{
width:100%; width:100%;
height:100%; height:100%;
padding:0; padding:0;
margin:0; margin:0;
} }
#preview *{font-family:sans-serif;font-size:16px;} #preview *{font-family:sans-serif;font-size:16px;}
</style> </style>
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
<script src="../../ueditor.parse.js"></script> <script src="../../ueditor.parse.js"></script>
<title></title> <title></title>
</head> </head>
<body class="view"> <body class="view">
<div id="preview" style="margin:8px"> <div id="preview" style="margin:8px">
</div> </div>
</body> </body>
<script> <script>
document.getElementById('preview').innerHTML = editor.getContent(); document.getElementById('preview').innerHTML = editor.getContent();
uParse('#preview',{ uParse('#preview',{
rootPath : '../../', rootPath : '../../',
chartContainerHeight:500 chartContainerHeight:500
}) })
dialog.oncancel = function(){ dialog.oncancel = function(){
document.getElementById('preview').innerHTML = ''; document.getElementById('preview').innerHTML = '';
} }
</script> </script>
</html> </html>

View File

@ -1,72 +1,72 @@
/*common /*common
*/ */
body{margin: 0;} body{margin: 0;}
table{width:100%;} table{width:100%;}
table td{padding:2px 4px;vertical-align: middle;} table td{padding:2px 4px;vertical-align: middle;}
a{text-decoration: none;} a{text-decoration: none;}
em{font-style: normal;} em{font-style: normal;}
.border_style1{border: 1px solid #ccc;border-radius: 5px;box-shadow:2px 2px 5px #d3d6da;} .border_style1{border: 1px solid #ccc;border-radius: 5px;box-shadow:2px 2px 5px #d3d6da;}
/*module /*module
*/ */
.main{margin: 8px;overflow: hidden;} .main{margin: 8px;overflow: hidden;}
.hot{float:left;height:335px;} .hot{float:left;height:335px;}
.drawBoard{position: relative; cursor: crosshair;} .drawBoard{position: relative; cursor: crosshair;}
.brushBorad{position: absolute;left:0;top:0;z-index: 998;} .brushBorad{position: absolute;left:0;top:0;z-index: 998;}
.picBoard{border: none;text-align: center;line-height: 300px;cursor: default;} .picBoard{border: none;text-align: center;line-height: 300px;cursor: default;}
.operateBar{margin-top:10px;font-size:12px;text-align: center;} .operateBar{margin-top:10px;font-size:12px;text-align: center;}
.operateBar span{margin-left: 10px;} .operateBar span{margin-left: 10px;}
.drawToolbar{float:right;width:110px;height:300px;overflow: hidden;} .drawToolbar{float:right;width:110px;height:300px;overflow: hidden;}
.colorBar{margin-top:10px;font-size: 12px;text-align: center;} .colorBar{margin-top:10px;font-size: 12px;text-align: center;}
.colorBar a{display:block;width: 10px;height: 10px;border:1px solid #1006F1;border-radius: 3px; box-shadow:2px 2px 5px #d3d6da;opacity: 0.3} .colorBar a{display:block;width: 10px;height: 10px;border:1px solid #1006F1;border-radius: 3px; box-shadow:2px 2px 5px #d3d6da;opacity: 0.3}
.sectionBar{margin-top:15px;font-size: 12px;text-align: center;} .sectionBar{margin-top:15px;font-size: 12px;text-align: center;}
.sectionBar a{display:inline-block;width:10px;height:12px;color: #888;text-indent: -999px;opacity: 0.3} .sectionBar a{display:inline-block;width:10px;height:12px;color: #888;text-indent: -999px;opacity: 0.3}
.size1{background: url('images/size.png') 1px center no-repeat ;} .size1{background: url('images/size.png') 1px center no-repeat ;}
.size2{background: url('images/size.png') -10px center no-repeat;} .size2{background: url('images/size.png') -10px center no-repeat;}
.size3{background: url('images/size.png') -22px center no-repeat;} .size3{background: url('images/size.png') -22px center no-repeat;}
.size4{background: url('images/size.png') -35px center no-repeat;} .size4{background: url('images/size.png') -35px center no-repeat;}
.addImgH{position: relative;} .addImgH{position: relative;}
.addImgH_form{position: absolute;left: 18px;top: -1px;width: 75px;height: 21px;opacity: 0;cursor: pointer;} .addImgH_form{position: absolute;left: 18px;top: -1px;width: 75px;height: 21px;opacity: 0;cursor: pointer;}
.addImgH_form input{width: 100%;} .addImgH_form input{width: 100%;}
/*scrawl /*scrawl
*/ */
.maskLayerNull{display: none;} .maskLayerNull{display: none;}
.maskLayer{position: absolute;top:0;left:0;width: 100%; height: 100%;opacity: 0.7; .maskLayer{position: absolute;top:0;left:0;width: 100%; height: 100%;opacity: 0.7;
background-color: #fff;text-align:center;font-weight:bold;line-height:300px;z-index: 1000;} background-color: #fff;text-align:center;font-weight:bold;line-height:300px;z-index: 1000;}
/*btn state /*btn state
*/ */
.previousStepH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/undoH.png');cursor: pointer;} .previousStepH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/undoH.png');cursor: pointer;}
.previousStepH .text{color:#888;cursor:pointer;} .previousStepH .text{color:#888;cursor:pointer;}
.previousStep .icon{display: inline-block;width:16px;height:16px;background-image: url('images/undo.png');cursor:default;} .previousStep .icon{display: inline-block;width:16px;height:16px;background-image: url('images/undo.png');cursor:default;}
.previousStep .text{color:#ccc;cursor:default;} .previousStep .text{color:#ccc;cursor:default;}
.nextStepH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/redoH.png');cursor: pointer;} .nextStepH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/redoH.png');cursor: pointer;}
.nextStepH .text{color:#888;cursor:pointer;} .nextStepH .text{color:#888;cursor:pointer;}
.nextStep .icon{display: inline-block;width:16px;height:16px;background-image: url('images/redo.png');cursor:default;} .nextStep .icon{display: inline-block;width:16px;height:16px;background-image: url('images/redo.png');cursor:default;}
.nextStep .text{color:#ccc;cursor:default;} .nextStep .text{color:#ccc;cursor:default;}
.clearBoardH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/emptyH.png');cursor: pointer;} .clearBoardH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/emptyH.png');cursor: pointer;}
.clearBoardH .text{color:#888;cursor:pointer;} .clearBoardH .text{color:#888;cursor:pointer;}
.clearBoard .icon{display: inline-block;width:16px;height:16px;background-image: url('images/empty.png');cursor:default;} .clearBoard .icon{display: inline-block;width:16px;height:16px;background-image: url('images/empty.png');cursor:default;}
.clearBoard .text{color:#ccc;cursor:default;} .clearBoard .text{color:#ccc;cursor:default;}
.scaleBoardH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/scaleH.png');cursor: pointer;} .scaleBoardH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/scaleH.png');cursor: pointer;}
.scaleBoardH .text{color:#888;cursor:pointer;} .scaleBoardH .text{color:#888;cursor:pointer;}
.scaleBoard .icon{display: inline-block;width:16px;height:16px;background-image: url('images/scale.png');cursor:default;} .scaleBoard .icon{display: inline-block;width:16px;height:16px;background-image: url('images/scale.png');cursor:default;}
.scaleBoard .text{color:#ccc;cursor:default;} .scaleBoard .text{color:#ccc;cursor:default;}
.removeImgH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/delimgH.png');cursor: pointer;} .removeImgH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/delimgH.png');cursor: pointer;}
.removeImgH .text{color:#888;cursor:pointer;} .removeImgH .text{color:#888;cursor:pointer;}
.removeImg .icon{display: inline-block;width:16px;height:16px;background-image: url('images/delimg.png');cursor:default;} .removeImg .icon{display: inline-block;width:16px;height:16px;background-image: url('images/delimg.png');cursor:default;}
.removeImg .text{color:#ccc;cursor:default;} .removeImg .text{color:#ccc;cursor:default;}
.addImgH .icon{vertical-align:top;display: inline-block;width:16px;height:16px;background-image: url('images/addimg.png')} .addImgH .icon{vertical-align:top;display: inline-block;width:16px;height:16px;background-image: url('images/addimg.png')}
.addImgH .text{color:#888;cursor:pointer;} .addImgH .text{color:#888;cursor:pointer;}
/*icon /*icon
*/ */
.brushIcon{display: inline-block;width:16px;height:16px;background-image: url('images/brush.png')} .brushIcon{display: inline-block;width:16px;height:16px;background-image: url('images/brush.png')}
.eraserIcon{display: inline-block;width:16px;height:16px;background-image: url('images/eraser.png')} .eraserIcon{display: inline-block;width:16px;height:16px;background-image: url('images/eraser.png')}

View File

@ -1,95 +1,95 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title></title> <title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="robots" content="noindex, nofollow"/> <meta name="robots" content="noindex, nofollow"/>
<script type="text/javascript" src="../internal.js"></script> <script type="text/javascript" src="../internal.js"></script>
<link rel="stylesheet" type="text/css" href="scrawl.css"> <link rel="stylesheet" type="text/css" href="scrawl.css">
</head> </head>
<body> <body>
<div class="main" id="J_wrap"> <div class="main" id="J_wrap">
<div class="hot"> <div class="hot">
<div class="drawBoard border_style1"> <div class="drawBoard border_style1">
<canvas id="J_brushBoard" class="brushBorad" width="360" height="300"></canvas> <canvas id="J_brushBoard" class="brushBorad" width="360" height="300"></canvas>
<div id="J_picBoard" class="picBoard" style="width: 360px;height: 300px"></div> <div id="J_picBoard" class="picBoard" style="width: 360px;height: 300px"></div>
</div> </div>
<div id="J_operateBar" class="operateBar"> <div id="J_operateBar" class="operateBar">
<span id="J_previousStep" class="previousStep"> <span id="J_previousStep" class="previousStep">
<em class="icon"></em> <em class="icon"></em>
<em class="text"><var id="lang_input_previousStep"></var></em> <em class="text"><var id="lang_input_previousStep"></var></em>
</span> </span>
<span id="J_nextStep" class="nextStep"> <span id="J_nextStep" class="nextStep">
<em class="icon"></em> <em class="icon"></em>
<em class="text"><var id="lang_input_nextsStep"></var></em> <em class="text"><var id="lang_input_nextsStep"></var></em>
</span> </span>
<span id="J_clearBoard" class="clearBoard"> <span id="J_clearBoard" class="clearBoard">
<em class="icon"></em> <em class="icon"></em>
<em class="text"><var id="lang_input_clear"></var></em> <em class="text"><var id="lang_input_clear"></var></em>
</span> </span>
<span id="J_sacleBoard" class="scaleBoard"> <span id="J_sacleBoard" class="scaleBoard">
<em class="icon"></em> <em class="icon"></em>
<em class="text"><var id="lang_input_ScalePic"></var></em> <em class="text"><var id="lang_input_ScalePic"></var></em>
</span> </span>
</div> </div>
</div> </div>
<div class="drawToolbar border_style1"> <div class="drawToolbar border_style1">
<div id="J_colorBar" class="colorBar"></div> <div id="J_colorBar" class="colorBar"></div>
<div id="J_brushBar" class="sectionBar"> <div id="J_brushBar" class="sectionBar">
<em class="brushIcon"></em> <em class="brushIcon"></em>
<a href="javascript:void(0)" class="size1">1</a> <a href="javascript:void(0)" class="size1">1</a>
<a href="javascript:void(0)" class="size2">3</a> <a href="javascript:void(0)" class="size2">3</a>
<a href="javascript:void(0)" class="size3">5</a> <a href="javascript:void(0)" class="size3">5</a>
<a href="javascript:void(0)" class="size4">7</a> <a href="javascript:void(0)" class="size4">7</a>
</div> </div>
<div id="J_eraserBar" class="sectionBar"> <div id="J_eraserBar" class="sectionBar">
<em class="eraserIcon"></em> <em class="eraserIcon"></em>
<a href="javascript:void(0)" class="size1">1</a> <a href="javascript:void(0)" class="size1">1</a>
<a href="javascript:void(0)" class="size2">3</a> <a href="javascript:void(0)" class="size2">3</a>
<a href="javascript:void(0)" class="size3">5</a> <a href="javascript:void(0)" class="size3">5</a>
<a href="javascript:void(0)" class="size4">7</a> <a href="javascript:void(0)" class="size4">7</a>
</div> </div>
<div class="sectionBar"> <div class="sectionBar">
<div id="J_addImg" class="addImgH"> <div id="J_addImg" class="addImgH">
<em class="icon"></em> <em class="icon"></em>
<em class="text"><var id="lang_input_addPic"></var></em> <em class="text"><var id="lang_input_addPic"></var></em>
<form method="post" id="fileForm" enctype="multipart/form-data" class="addImgH_form" target="up"> <form method="post" id="fileForm" enctype="multipart/form-data" class="addImgH_form" target="up">
<input type="file" name="upfile" id="J_imgTxt" <input type="file" name="upfile" id="J_imgTxt"
accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp"/> accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp"/>
</form> </form>
<iframe name="up" style="display: none"></iframe> <iframe name="up" style="display: none"></iframe>
</div> </div>
</div> </div>
<div class="sectionBar"> <div class="sectionBar">
<span id="J_removeImg" class="removeImg"> <span id="J_removeImg" class="removeImg">
<em class="icon"></em> <em class="icon"></em>
<em class="text"><var id="lang_input_removePic"></var></em> <em class="text"><var id="lang_input_removePic"></var></em>
</span> </span>
</div> </div>
</div> </div>
</div> </div>
<div id="J_maskLayer" class="maskLayerNull"></div> <div id="J_maskLayer" class="maskLayerNull"></div>
<script type="text/javascript" src="scrawl.js"></script> <script type="text/javascript" src="scrawl.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var settings = { var settings = {
drawBrushSize:3, //画笔初始大小 drawBrushSize:3, //画笔初始大小
drawBrushColor:"#4bacc6", //画笔初始颜色 drawBrushColor:"#4bacc6", //画笔初始颜色
colorList:['c00000', 'ff0000', 'ffc000', 'ffff00', '92d050', '00b050', '00b0f0', '0070c0', '002060', '7030a0', 'ffffff', colorList:['c00000', 'ff0000', 'ffc000', 'ffff00', '92d050', '00b050', '00b0f0', '0070c0', '002060', '7030a0', 'ffffff',
'000000', 'eeece1', '1f497d', '4f81bd', 'c0504d', '9bbb59', '8064a2', '4bacc6', 'f79646'], //画笔选择颜色 '000000', 'eeece1', '1f497d', '4f81bd', 'c0504d', '9bbb59', '8064a2', '4bacc6', 'f79646'], //画笔选择颜色
saveNum:10 //撤销次数 saveNum:10 //撤销次数
}; };
var scrawlObj = new scrawl( settings ); var scrawlObj = new scrawl( settings );
scrawlObj.isCancelScrawl = false; scrawlObj.isCancelScrawl = false;
dialog.onok = function () { dialog.onok = function () {
exec( scrawlObj ); exec( scrawlObj );
return false; return false;
}; };
dialog.oncancel = function () { dialog.oncancel = function () {
scrawlObj.isCancelScrawl = true; scrawlObj.isCancelScrawl = true;
}; };
</script> </script>
</body> </body>
</html> </html>

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