gridjs-spreadsheet 25.2.0 → 25.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example/Dockerfile +12 -35
- package/example/README.md +27 -1
- package/example/pom.xml +2 -2
- package/example/src/main/resources/application.properties +7 -3
- package/example/src/main/resources/static/xspread/555f60323063f2b68b6eac7ce9c45b19.svg +88 -0
- package/example/src/main/resources/static/xspread/a3b683289420fd8ec937908397907279.svg +907 -0
- package/example/src/main/resources/templates/fileFromUpload.html +18 -17
- package/example/src/main/resources/templates/index.html +1 -1
- package/package.json +1 -1
- package/readme.md +4 -34
- package/xspreadsheet.js +1 -1
- package/example/src/main/resources/static/xspread/content/img/20130527034914143.gif +0 -0
- package/example/src/main/resources/static/xspread/content/img/20130527034914229.gif +0 -0
- package/example/src/main/resources/static/xspread/content/img/20130527034916363.gif +0 -0
- package/example/src/main/resources/static/xspread/content/img/20130527034917946.gif +0 -0
- package/example/src/main/resources/static/xspread/content/img/20130527034918372.gif +0 -0
- package/example/src/main/resources/static/xspread/content/img/testupdating1.png +0 -0
- package/example/wb/SampleFile2.xlsx +0 -0
- package/preview.gif +0 -0
package/example/Dockerfile
CHANGED
|
@@ -1,53 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# FROM mcr.microsoft.com/java/openjdk:11 AS build
|
|
4
|
-
FROM eclipse/ubuntu_jdk8
|
|
5
|
-
|
|
6
|
-
# ���ù���Ŀ¼
|
|
1
|
+
FROM maven:3.8.6-amazoncorretto-17 AS build
|
|
2
|
+
# 设置工作目录
|
|
7
3
|
WORKDIR /usr/src/app
|
|
8
4
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
# �����ص� Maven �����ļ��ͻ������������ļ����Ƶ�������
|
|
13
|
-
COPY mvnw .
|
|
5
|
+
# 将本地的 Maven 设置文件和环境变量设置文件复制到容器中
|
|
14
6
|
COPY .mvn .mvn
|
|
15
7
|
COPY pom.xml .
|
|
16
8
|
COPY src src
|
|
17
|
-
|
|
18
|
-
# ʹ�� Maven ����Ӧ�ã�������ʹ�õ��� Maven��
|
|
19
|
-
RUN ./mvnw package -DskipTests
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
# Set the user
|
|
26
|
-
USER root
|
|
27
|
-
|
|
28
|
-
RUN ls -l *
|
|
29
|
-
|
|
30
|
-
# �������� jar �ļ����Ƶ��µ�������
|
|
31
|
-
COPY target/*.jar /app/app.jar
|
|
32
|
-
|
|
33
|
-
# ɾ��������Ҫ��Դ��� Maven ���棬���پ������
|
|
34
|
-
RUN rm -rf target && rm -rf .mvn && rm -rf src
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
9
|
|
|
10
|
+
RUN ls -l *
|
|
11
|
+
# 使用 Maven 构建应用
|
|
12
|
+
RUN mvn package -DskipTests
|
|
40
13
|
|
|
14
|
+
FROM eclipse/ubuntu_jdk8
|
|
15
|
+
WORKDIR /app
|
|
16
|
+
# 将构建的 jar 文件复制到新的容器中
|
|
17
|
+
COPY --from=build /usr/src/app/target/*.jar /app/app.jar
|
|
41
18
|
|
|
42
19
|
|
|
43
20
|
# web port
|
|
44
21
|
EXPOSE 8080
|
|
45
|
-
# Install Fonts because the SDK image contains very few fonts. The command copies font files from local to docker image. Make sure you have a local
|
|
22
|
+
# Install Fonts because the SDK image contains very few fonts. The command copies font files from local to docker image. Make sure you have a local “fonts” directory that contains all the fonts you need to install. In this example, the local “fonts” directory is put in the same directory as the Dockerfile.
|
|
46
23
|
# COPY fonts/* /usr/share/fonts/
|
|
47
24
|
RUN mkdir -p /app/wb
|
|
48
25
|
RUN mkdir -p /app/grid_cache/streamcache
|
|
49
26
|
RUN mkdir -p /app/upload
|
|
50
27
|
COPY wb/*.xlsx /app/wb/
|
|
51
28
|
# RUN ls -l /app/
|
|
52
|
-
#
|
|
29
|
+
# 启动应用
|
|
53
30
|
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app/app.jar"]
|
package/example/README.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
[Product Page](https://products.aspose.com/cells/java) | [Docs](https://docs.aspose.com/cells/java/aspose-cells-gridjs/) | [API Reference](https://reference.aspose.com/cells/java/com.aspose.gridjs/) | [Demos](https://products.aspose.app/cells/family/) | [Blog](https://blog.aspose.com/category/cells/) | [Code Samples](https://github.com/aspose-cells/Aspose.Cells-for-Java/tree/master/Examples.GridJs) | [Free Support](https://forum.aspose.com/c/cells) | [Temporary License](https://purchase.aspose.com/temporary-license) | [EULA](https://company.aspose.com/legal/eula)
|
|
2
|
+
|
|
3
|
+
Try our [free online apps](https://products.aspose.app/cells/family) demonstrating some of the most popular Aspose.Cells functionality.
|
|
4
|
+
|
|
2
5
|
[Aspose.Cells.GridJs for Java](http://www.aspose.com/products/cells/java) is a lightweight, scalable, and customizable toolkit that provides cross-platform web applications, enables convenient development for editing or viewing Excel/Spreadsheet files, offers simple deployment, and provides easy-to-use APIs.
|
|
3
6
|
|
|
7
|
+
This is a demo to show how we can use GridJs to implment a spreadsheet Editor .
|
|
8
|
+
|
|
9
|
+
|
|
4
10
|
## Preview
|
|
5
11
|
|
|
6
12
|
<img alt='demo' src='https://unpkg.com/gridjs-spreadsheet@25.1.0/preview.gif' />
|
|
@@ -29,12 +35,32 @@ open browser and navigate to view all the files in the directory at http://local
|
|
|
29
35
|
1. docker build -t gridjs-demo-java .
|
|
30
36
|
|
|
31
37
|
2. run with aspose license file:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
32
40
|
docker run -d -p 8080:8080 -v C:/path/to/license.txt:/app/license gridjs-demo-java
|
|
41
|
+
```
|
|
42
|
+
|
|
33
43
|
or just run the demo in trial mode:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
34
46
|
docker run -d -p 8080:8080 gridjs-demo-java
|
|
47
|
+
```
|
|
35
48
|
|
|
36
49
|
3. open browser and enter the url: http://localhost:8080/gridjsdemo/list
|
|
37
50
|
|
|
51
|
+
## Reference js lib used in the demo project:
|
|
52
|
+
jquery.js v2.1.1
|
|
53
|
+
|
|
54
|
+
jquery-ui.js v1.12.1
|
|
55
|
+
|
|
56
|
+
jquery-ui.css v1.12.1
|
|
57
|
+
|
|
58
|
+
jszip.min.js v3.6.0
|
|
59
|
+
|
|
60
|
+
bootstrap.css v22.5.5.2
|
|
61
|
+
|
|
62
|
+
quantumui.css v22.5.5.2
|
|
63
|
+
|
|
38
64
|
## Resources
|
|
39
65
|
|
|
40
66
|
+ **Website:** [www.aspose.com](http://www.aspose.com)
|
package/example/pom.xml
CHANGED
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
<dependency>
|
|
52
52
|
<groupId>com.aspose</groupId>
|
|
53
53
|
<artifactId>aspose-cells</artifactId>
|
|
54
|
-
<version>25.
|
|
54
|
+
<version>25.3</version>
|
|
55
55
|
</dependency>
|
|
56
56
|
<dependency>
|
|
57
57
|
<groupId>com.aspose</groupId>
|
|
58
58
|
<artifactId>aspose-cells</artifactId>
|
|
59
|
-
<version>25.
|
|
59
|
+
<version>25.3</version>
|
|
60
60
|
<classifier>gridjs</classifier>
|
|
61
61
|
</dependency>
|
|
62
62
|
<!-- <dependency>
|
|
@@ -2,12 +2,16 @@ spring.application.name=gridjsdemo
|
|
|
2
2
|
spring.servlet.multipart.enabled=true
|
|
3
3
|
spring.servlet.multipart.max-file-size=10MB
|
|
4
4
|
spring.servlet.multipart.max-request-size=10MB
|
|
5
|
+
#for local test
|
|
5
6
|
#testconfig.ListDir=D:\\codebase\\customerissue\\wb\\tempfromdownload\\
|
|
6
|
-
#
|
|
7
|
+
#testconfig.FileName=excelColumnWordBreak.xlsm
|
|
8
|
+
#testconfig.CachePath=F:\\storage\\gridjs_temp
|
|
9
|
+
#testconfig.UploadPath=F:\\storage\\upload
|
|
10
|
+
#testconfig.AsposeLicensePath=F:\\aspose.lic
|
|
11
|
+
#for docker linux
|
|
7
12
|
testconfig.ListDir=/app/wb
|
|
8
|
-
testconfig.FileName=
|
|
13
|
+
testconfig.FileName=controls.xlsx
|
|
9
14
|
testconfig.CachePath=/app/grid_cache
|
|
10
15
|
testconfig.UploadPath=/app/upload
|
|
11
16
|
testconfig.AsposeLicensePath=/app/license
|
|
12
|
-
|
|
13
17
|
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 25.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 22 22" style="enable-background:new 0 0 22 22;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:url(#SVGID_1_);}
|
|
7
|
+
.st1{fill:url(#SVGID_2_);}
|
|
8
|
+
.st2{fill:url(#SVGID_3_);}
|
|
9
|
+
.st3{fill:url(#SVGID_4_);}
|
|
10
|
+
.st4{opacity:0.6;}
|
|
11
|
+
.st5{opacity:0.38;fill:url(#SVGID_5_);enable-background:new ;}
|
|
12
|
+
.st6{opacity:0.38;fill:url(#SVGID_6_);enable-background:new ;}
|
|
13
|
+
.st7{opacity:0.38;fill:url(#SVGID_7_);enable-background:new ;}
|
|
14
|
+
.st8{opacity:0.38;fill:url(#SVGID_8_);enable-background:new ;}
|
|
15
|
+
</style>
|
|
16
|
+
<g>
|
|
17
|
+
|
|
18
|
+
<radialGradient id="SVGID_1_" cx="519.1851" cy="-127.3083" r="8.2454" gradientTransform="matrix(0 1 -0.9943 0 -113.4659 -506.377)" gradientUnits="userSpaceOnUse">
|
|
19
|
+
<stop offset="0.1429" style="stop-color:#D5EFFC"/>
|
|
20
|
+
<stop offset="0.8424" style="stop-color:#3C8EC6"/>
|
|
21
|
+
<stop offset="1" style="stop-color:#3399CC"/>
|
|
22
|
+
</radialGradient>
|
|
23
|
+
<path class="st0" d="M21,13.6c0-0.5,0.5-6.4-4.6-9.1C14.1,3.2,10.9,3.2,9.1,5C6,8.2,8.6,11.5,9.6,11.8c0,0,0,0,0-0.1
|
|
24
|
+
c-1.6-6.3,9.3-7.4,11.2,1.8C20.9,13.9,21,13.9,21,13.6z"/>
|
|
25
|
+
|
|
26
|
+
<radialGradient id="SVGID_2_" cx="446.2906" cy="702.4343" r="5.9862" gradientTransform="matrix(0.9943 0 0 1 -430.3552 -688)" gradientUnits="userSpaceOnUse">
|
|
27
|
+
<stop offset="0.1429" style="stop-color:#FEE588"/>
|
|
28
|
+
<stop offset="0.5636" style="stop-color:#F79B30"/>
|
|
29
|
+
<stop offset="0.6867" style="stop-color:#F58B2D"/>
|
|
30
|
+
<stop offset="0.8883" style="stop-color:#F3752A"/>
|
|
31
|
+
<stop offset="1" style="stop-color:#F36C29"/>
|
|
32
|
+
</radialGradient>
|
|
33
|
+
<path class="st1" d="M8.5,21.2c0.5,0,6.4,0.5,9.1-4.6c1.3-2.4,1.2-5.6-0.5-7.4c-3.1-3.1-6.4-0.5-6.8,0.5c0,0,0,0,0.1,0
|
|
34
|
+
c6.2-1.6,7.3,9.3-1.8,11.3C8.3,21,8.3,21.1,8.5,21.2z"/>
|
|
35
|
+
|
|
36
|
+
<radialGradient id="SVGID_3_" cx="-378.6884" cy="623.4329" r="8.246" gradientTransform="matrix(0 -1 0.9943 0 -610.95 -369.3066)" gradientUnits="userSpaceOnUse">
|
|
37
|
+
<stop offset="0" style="stop-color:#FCB116"/>
|
|
38
|
+
<stop offset="0.193" style="stop-color:#FBB318"/>
|
|
39
|
+
<stop offset="0.3352" style="stop-color:#F9B91C"/>
|
|
40
|
+
<stop offset="0.461" style="stop-color:#F6C323"/>
|
|
41
|
+
<stop offset="0.5767" style="stop-color:#F4D12D"/>
|
|
42
|
+
<stop offset="0.6727" style="stop-color:#F0E03A"/>
|
|
43
|
+
<stop offset="0.7439" style="stop-color:#E5D534"/>
|
|
44
|
+
<stop offset="0.8645" style="stop-color:#CFBD24"/>
|
|
45
|
+
<stop offset="1" style="stop-color:#B19E11"/>
|
|
46
|
+
</radialGradient>
|
|
47
|
+
<path class="st2" d="M1,8.6c0,0.5-0.5,6.4,4.6,9.1C8,19,11.2,18.9,13,17.2c3.1-3.2,0.5-6.5-0.5-6.8c0,0,0,0,0,0.1
|
|
48
|
+
c1.6,6.3-9.3,7.4-11.2-1.8C1.2,8.3,1.1,8.3,1,8.6z"/>
|
|
49
|
+
|
|
50
|
+
<radialGradient id="SVGID_4_" cx="445.619" cy="696.9989" r="8.2461" gradientTransform="matrix(0.9943 0 0 1 -430.3552 -688)" gradientUnits="userSpaceOnUse">
|
|
51
|
+
<stop offset="0" style="stop-color:#A1C43A"/>
|
|
52
|
+
<stop offset="0.4545" style="stop-color:#A0CC3A"/>
|
|
53
|
+
<stop offset="1" style="stop-color:#3C943A"/>
|
|
54
|
+
</radialGradient>
|
|
55
|
+
<path class="st3" d="M13.5,1C13,1,7.1,0.6,4.5,5.7C3.2,8.1,3.2,11.3,5,13c3.1,3.1,6.4,0.5,6.8-0.5c0,0,0,0-0.1,0
|
|
56
|
+
c-6.2,1.6-7.3-9.3,1.8-11.3C13.8,1.2,13.8,1.1,13.5,1z"/>
|
|
57
|
+
<g class="st4">
|
|
58
|
+
|
|
59
|
+
<radialGradient id="SVGID_5_" cx="413.168" cy="345.1736" r="9.5277" gradientTransform="matrix(1.0925 0 0 1.6216 -440.2973 -540.7683)" gradientUnits="userSpaceOnUse">
|
|
60
|
+
<stop offset="0" style="stop-color:#F9E788"/>
|
|
61
|
+
<stop offset="1" style="stop-color:#FFFFFF"/>
|
|
62
|
+
</radialGradient>
|
|
63
|
+
<path class="st5" d="M11,5.2c-0.9,0-1.7,0.2-2.4,0.5c-2.3,3,0.1,5.9,1,6.2c0,0,0,0,0-0.1C8.7,8,12.4,6,15.8,7.2
|
|
64
|
+
C14.7,6,12.9,5.2,11,5.2z"/>
|
|
65
|
+
|
|
66
|
+
<radialGradient id="SVGID_6_" cx="413.1686" cy="345.1745" r="9.5274" gradientTransform="matrix(1.0925 0 0 1.6216 -440.2973 -540.7683)" gradientUnits="userSpaceOnUse">
|
|
67
|
+
<stop offset="0" style="stop-color:#F9E788"/>
|
|
68
|
+
<stop offset="1" style="stop-color:#FFFFFF"/>
|
|
69
|
+
</radialGradient>
|
|
70
|
+
<path class="st6" d="M10.3,9.7C10.3,9.7,10.3,9.7,10.3,9.7c3.8-0.9,5.7,2.7,4.6,6.1c1.5-1.1,2.4-2.8,2.4-4.7
|
|
71
|
+
c0-0.7-0.1-1.4-0.4-2.1C13.8,6.1,10.6,8.7,10.3,9.7z"/>
|
|
72
|
+
|
|
73
|
+
<radialGradient id="SVGID_7_" cx="413.1689" cy="345.1732" r="9.526" gradientTransform="matrix(1.0925 0 0 1.6216 -440.2973 -540.7683)" gradientUnits="userSpaceOnUse">
|
|
74
|
+
<stop offset="0" style="stop-color:#F9E788"/>
|
|
75
|
+
<stop offset="1" style="stop-color:#FFFFFF"/>
|
|
76
|
+
</radialGradient>
|
|
77
|
+
<path class="st7" d="M12.5,10.4C12.4,10.3,12.4,10.4,12.5,10.4c0.9,3.9-2.7,5.8-6.2,4.6C7.4,16.2,9.1,17,11,17
|
|
78
|
+
c0.9,0,1.7-0.2,2.4-0.5C15.7,13.6,13.4,10.7,12.5,10.4z"/>
|
|
79
|
+
|
|
80
|
+
<radialGradient id="SVGID_8_" cx="413.168" cy="345.1736" r="9.5275" gradientTransform="matrix(1.0925 0 0 1.6216 -440.2973 -540.7683)" gradientUnits="userSpaceOnUse">
|
|
81
|
+
<stop offset="0" style="stop-color:#F9E788"/>
|
|
82
|
+
<stop offset="1" style="stop-color:#FFFFFF"/>
|
|
83
|
+
</radialGradient>
|
|
84
|
+
<path class="st8" d="M11.8,12.5C11.8,12.5,11.8,12.5,11.8,12.5C8,13.5,6.1,9.9,7.2,6.4c-1.5,1.1-2.4,2.8-2.4,4.7
|
|
85
|
+
c0,0.7,0.1,1.4,0.4,2.1C8.3,16.1,11.4,13.5,11.8,12.5z"/>
|
|
86
|
+
</g>
|
|
87
|
+
</g>
|
|
88
|
+
</svg>
|