@ezeep/ezeep-js 1.0.134 → 1.0.138
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/package.json +1 -1
- package/readme.md +29 -2
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -17,7 +17,9 @@ The ezeep.js JavaScript library implements the [ezeep Blue API](https://apidocs.
|
|
|
17
17
|
|
|
18
18
|
### Usage
|
|
19
19
|
|
|
20
|
-
Important: You need to set up your server with https!
|
|
20
|
+
#### Important: You need to set up your server with https!
|
|
21
|
+
|
|
22
|
+
#### Angular: See instructions on how to setup ezeep.js with Angular [here](https://github.com/ezeep/ezeep-js/tree/ngx-ezeep-js/ezeep-js-angular).
|
|
21
23
|
|
|
22
24
|
1. Include ezeep.js to your web app by the following options:
|
|
23
25
|
|
|
@@ -59,6 +61,8 @@ There are multiple required and optional attributes the ezp-printing element nee
|
|
|
59
61
|
| hidelogin | If set to true, no additional info popup is shown before the user authentication. | boolean | No |
|
|
60
62
|
| authapihosturl | Overrides the default URL of the authentication API. | string | No |
|
|
61
63
|
| printapihosturl | Overrides the default URL of the printing API. | string | No |
|
|
64
|
+
| theme | The overall color theme. Possible colors are pink, red, orange, green, cyan, blue and violet. | string | No |
|
|
65
|
+
|
|
62
66
|
|
|
63
67
|
### Example
|
|
64
68
|
|
|
@@ -141,7 +145,30 @@ If you want to bind the printing process to a custom html element, you can use t
|
|
|
141
145
|
|
|
142
146
|
Make sure you follow the [GitHub flow](https://guides.github.com/introduction/flow/) if you want to contribute. Clone and create a branch for your contribution. When finished, create a pull request for the main branch.
|
|
143
147
|
|
|
144
|
-
Important: You need to set up your development server with https!
|
|
148
|
+
#### Important: You need to set up your development server with https!
|
|
149
|
+
|
|
150
|
+
The stencil.config is already set up to do exactly this in your development environment.
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
You'll need a certificate and key for this aswell as a .env file placed at the root of the project.
|
|
154
|
+
|
|
155
|
+
To generate a self signed certificate execute the following command:
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out certificate.pem
|
|
159
|
+
```
|
|
160
|
+
and follow the steps to generate a key.pem and certificate.pem.
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
In your .env file specify the following variables:
|
|
164
|
+
```.env
|
|
165
|
+
DEV_SERVER_ADDRESS="your-server-address.com"
|
|
166
|
+
DEV_SERVER_PORT= portnumber
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Additionally, you need to uncomment the "devServer" option in the stencil config file.
|
|
170
|
+
|
|
171
|
+
#### Make sure to comment out the "devServer" option before pushing to the repository!
|
|
145
172
|
|
|
146
173
|
Clone this repository to a new directory:
|
|
147
174
|
|