gridjs-spreadsheet 25.4.0 → 25.6.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/{9ab1b217edd126e8925e88cc8f25a154.svg → 555f60323063f2b68b6eac7ce9c45b19.svg} +88 -88
- package/{2922578eabb1a88d1974da56c65189ba.svg → a3b683289420fd8ec937908397907279.svg} +907 -907
- package/example/Dockerfile +6 -26
- package/example/README.md +27 -1
- package/example/pom.xml +2 -2
- package/example/src/main/java/com/aspose/gridjs/demo/GridjsdemoApplication.java +15 -14
- package/example/src/main/java/com/aspose/gridjs/demo/MyConfig.java +40 -0
- package/example/src/main/java/com/aspose/gridjs/demo/MyConfig.java.bak +31 -0
- package/example/src/main/java/com/aspose/gridjs/demo/controller/GridJs2Controller.java +38 -401
- package/example/src/main/resources/templates/fileFromUpload.html +1 -1
- package/example/src/main/resources/templates/index.html +1 -1
- package/package.json +1 -1
- package/readme.md +10 -0
- package/xspreadsheet.css +34 -5
- package/xspreadsheet.js +5 -5
package/example/Dockerfile
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
# FROM mcr.microsoft.com/java/openjdk:11 AS build
|
|
4
|
-
FROM eclipse/ubuntu_jdk8
|
|
5
|
-
|
|
1
|
+
FROM maven:3.8.6-amazoncorretto-17 AS build
|
|
6
2
|
# ���ù���Ŀ¼
|
|
7
3
|
WORKDIR /usr/src/app
|
|
8
4
|
|
|
@@ -10,34 +6,18 @@ WORKDIR /usr/src/app
|
|
|
10
6
|
|
|
11
7
|
|
|
12
8
|
# �����ص� Maven �����ļ��ͻ������������ļ����Ƶ�������
|
|
13
|
-
COPY mvnw .
|
|
14
9
|
COPY .mvn .mvn
|
|
15
10
|
COPY pom.xml .
|
|
16
11
|
COPY src src
|
|
17
12
|
|
|
18
|
-
# ʹ�� Maven ����Ӧ�ã�������ʹ�õ��� Maven��
|
|
19
|
-
RUN ./mvnw package -DskipTests
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
# Set the user
|
|
26
|
-
USER root
|
|
27
|
-
|
|
28
13
|
RUN ls -l *
|
|
14
|
+
# ʹ�� Maven ����Ӧ��
|
|
15
|
+
RUN mvn package -DskipTests
|
|
29
16
|
|
|
17
|
+
FROM eclipse/ubuntu_jdk8
|
|
18
|
+
WORKDIR /app
|
|
30
19
|
# �������� jar �ļ����Ƶ��µ�������
|
|
31
|
-
COPY
|
|
32
|
-
|
|
33
|
-
# ɾ��������Ҫ��Դ��� Maven ���棬���پ������
|
|
34
|
-
RUN rm -rf target && rm -rf .mvn && rm -rf src
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
20
|
+
COPY --from=build /usr/src/app/target/*.jar /app/app.jar
|
|
41
21
|
|
|
42
22
|
|
|
43
23
|
# web port
|
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.4</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.4</version>
|
|
60
60
|
<classifier>gridjs</classifier>
|
|
61
61
|
</dependency>
|
|
62
62
|
<!-- <dependency>
|
|
@@ -5,6 +5,7 @@ import org.springframework.boot.SpringApplication;
|
|
|
5
5
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
6
6
|
import org.springframework.stereotype.Component;
|
|
7
7
|
import org.springframework.context.ApplicationContext;
|
|
8
|
+
import org.springframework.context.annotation.ComponentScan;
|
|
8
9
|
|
|
9
10
|
import com.aspose.cells.Workbook;
|
|
10
11
|
import com.aspose.gridjs.Config;
|
|
@@ -15,19 +16,19 @@ import java.io.File;
|
|
|
15
16
|
import javax.annotation.PostConstruct;
|
|
16
17
|
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
class MyConfig {
|
|
20
|
-
|
|
21
|
-
@Value("${testconfig.CachePath}")
|
|
22
|
-
public String cachePath;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@Value("${testconfig.AsposeLicensePath}")
|
|
26
|
-
public String asposeLicensePath;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
19
|
+
//@Component
|
|
20
|
+
//class MyConfig {
|
|
21
|
+
//
|
|
22
|
+
// @Value("${testconfig.CachePath}")
|
|
23
|
+
// public String cachePath;
|
|
24
|
+
//
|
|
25
|
+
//
|
|
26
|
+
// @Value("${testconfig.AsposeLicensePath}")
|
|
27
|
+
// public String asposeLicensePath;
|
|
28
|
+
//
|
|
29
|
+
//
|
|
30
|
+
//}
|
|
31
|
+
@ComponentScan(basePackages = {"com.aspose.gridjs.demo", "com.aspose.gridjs"})
|
|
31
32
|
@SpringBootApplication
|
|
32
33
|
public class GridjsdemoApplication {
|
|
33
34
|
|
|
@@ -88,7 +89,7 @@ public class GridjsdemoApplication {
|
|
|
88
89
|
if ((new File(myConfig.asposeLicensePath)).exists()) {
|
|
89
90
|
lic.setLicense(myConfig.asposeLicensePath);
|
|
90
91
|
}
|
|
91
|
-
init(myConfig);
|
|
92
|
+
// init(myConfig);
|
|
92
93
|
|
|
93
94
|
}
|
|
94
95
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
package com.aspose.gridjs.demo;
|
|
2
|
+
|
|
3
|
+
import org.springframework.beans.factory.annotation.Value;
|
|
4
|
+
import org.springframework.context.annotation.Bean;
|
|
5
|
+
import org.springframework.context.annotation.ComponentScan;
|
|
6
|
+
import org.springframework.context.annotation.Configuration;
|
|
7
|
+
|
|
8
|
+
import com.aspose.gridjs.GridJsOptions;
|
|
9
|
+
import com.aspose.gridjs.GridJsService;
|
|
10
|
+
import com.aspose.gridjs.GridJsWorkbook;
|
|
11
|
+
import com.aspose.gridjs.IGridJsService;
|
|
12
|
+
|
|
13
|
+
@Configuration
|
|
14
|
+
public class MyConfig {
|
|
15
|
+
@Value("${testconfig.CachePath}")
|
|
16
|
+
public String cachePath;
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@Value("${testconfig.AsposeLicensePath}")
|
|
20
|
+
public String asposeLicensePath;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@Bean
|
|
24
|
+
public GridJsWorkbook gridJsWorkbook() {
|
|
25
|
+
return new GridJsWorkbook();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@Bean
|
|
30
|
+
public GridJsOptions gridJsOptions() {
|
|
31
|
+
GridJsOptions options=new GridJsOptions();
|
|
32
|
+
options.setFileCacheDirectory(cachePath);
|
|
33
|
+
return options;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@Bean
|
|
37
|
+
public IGridJsService gridJsService(GridJsOptions gridJsOptions) throws Exception {
|
|
38
|
+
return new GridJsService(gridJsOptions);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
package com.aspose.gridjs.demo;
|
|
2
|
+
|
|
3
|
+
import org.springframework.beans.factory.annotation.Value;
|
|
4
|
+
import org.springframework.context.annotation.Bean;
|
|
5
|
+
import org.springframework.context.annotation.Configuration;
|
|
6
|
+
|
|
7
|
+
import com.aspose.gridjs.GridJsOptions;
|
|
8
|
+
import com.aspose.gridjs.GridJsService;
|
|
9
|
+
import com.aspose.gridjs.IGridJsService;
|
|
10
|
+
|
|
11
|
+
@Configuration
|
|
12
|
+
public class MyConfig {
|
|
13
|
+
@Value("${testconfig.CachePath}")
|
|
14
|
+
public String cachePath;
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@Value("${testconfig.AsposeLicensePath}")
|
|
18
|
+
public String asposeLicensePath;
|
|
19
|
+
|
|
20
|
+
@Bean
|
|
21
|
+
public GridJsOptions gridJsOptions() {
|
|
22
|
+
GridJsOptions options=new GridJsOptions();
|
|
23
|
+
options.setFileCacheDirectory(cachePath);
|
|
24
|
+
return options;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@Bean
|
|
28
|
+
public IGridJsService gridJsService(GridJsOptions gridJsOptions) throws Exception {
|
|
29
|
+
return new GridJsService(gridJsOptions);
|
|
30
|
+
}
|
|
31
|
+
}
|