@pristy/pristy-libvue 0.2.4 → 0.2.6
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/.gitlab-ci.yml +1 -3
- package/README.md +14 -16
- package/package.json +12 -1
- package/src/ErrorService.js +4 -4
package/.gitlab-ci.yml
CHANGED
|
@@ -13,7 +13,6 @@ variables:
|
|
|
13
13
|
DOCKER_HOST: tcp://docker:2375
|
|
14
14
|
DOCKER_TLS_CERTDIR: ""
|
|
15
15
|
DOCKER_DRIVER: overlay2
|
|
16
|
-
NPM_TOKEN: ${NPM_TOKEN}
|
|
17
16
|
|
|
18
17
|
## NODE BUILD ##
|
|
19
18
|
|
|
@@ -46,8 +45,7 @@ publish:
|
|
|
46
45
|
- npm-install
|
|
47
46
|
script:
|
|
48
47
|
- npm config set -- '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
|
|
49
|
-
- npm whoami
|
|
50
48
|
- npm publish --access public
|
|
51
49
|
resource_group: 'deployment-$CI_COMMIT_REF_SLUG'
|
|
52
50
|
only:
|
|
53
|
-
-
|
|
51
|
+
- stable
|
package/README.md
CHANGED
|
@@ -1,43 +1,41 @@
|
|
|
1
1
|
# Pristy Libvue
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
Package scopé @pristy.
|
|
3
|
+
Code factoring for Pristy
|
|
5
4
|
|
|
6
|
-
##
|
|
5
|
+
## Developing with Pristy-libvue
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
Add `@pristy/pristy-libvue` package.
|
|
9
8
|
|
|
10
|
-
Le package est publié sur la registry interne Nexus quand un tag est ajouté au commit.
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
## Développer avec Pristy-libvue
|
|
14
|
-
|
|
15
|
-
Ajouter le package `@pristy/pristy-libvue`.
|
|
16
|
-
Puis appeler les classes disponibles où c'est nécessaire. Attention il n'y pas de classe par défaut, il faut utiliser des {} dans l'import. Par exemple :
|
|
10
|
+
Then call the available classes where necessary. Be careful, there is no default class, you must use {} in the import.
|
|
17
11
|
|
|
18
12
|
```vue
|
|
19
13
|
import { AlfrescoFileService } from "@pristy/pristy-libvue"
|
|
20
14
|
```
|
|
21
15
|
|
|
22
16
|
|
|
23
|
-
##
|
|
17
|
+
## Dev locally
|
|
24
18
|
|
|
25
|
-
1.
|
|
19
|
+
1. In prity-libvue
|
|
26
20
|
|
|
27
21
|
```
|
|
28
22
|
npm link
|
|
29
23
|
```
|
|
30
24
|
|
|
31
|
-
2.
|
|
25
|
+
2. In another pristy application
|
|
32
26
|
|
|
33
27
|
```
|
|
34
|
-
npm link <
|
|
28
|
+
npm link <local directory off pristy-libvue>
|
|
35
29
|
```
|
|
36
30
|
|
|
37
|
-
|
|
31
|
+
The pristy-libvue package of the package.json will be overloaded by the local library.
|
|
38
32
|
|
|
39
33
|
## Versions
|
|
40
34
|
|
|
41
35
|
| Version | Commits |
|
|
42
36
|
|---------|:---------------------------------------------------------------------------------------|
|
|
43
|
-
| 0.1.4 |
|
|
37
|
+
| 0.1.4 | First stable release |
|
|
38
|
+
| 0.2.0 | Add copy and move nodes functions, Error management corrections |
|
|
39
|
+
| 0.2.3 | Add workspaceService |
|
|
40
|
+
| 0.2.4 | Adding the publication of an act |
|
|
41
|
+
| 0.2.5 | Update Readme and licence in package.json |
|
package/package.json
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristy/pristy-libvue",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Library for Pristy application",
|
|
5
|
+
"homepage": "https://pristy.fr/en/",
|
|
5
6
|
"main": "src/index.js",
|
|
6
7
|
"dependencies": {
|
|
7
8
|
"@alfresco/js-api": "^4.11.0",
|
|
8
9
|
"pinia": "^2.0.15"
|
|
10
|
+
},
|
|
11
|
+
"author": "JECI SARL",
|
|
12
|
+
"license": "AGPL-3.0",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"alfresco",
|
|
15
|
+
"vue"
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://gitlab.com/pristy-oss/pristy-libvue.git"
|
|
9
20
|
}
|
|
10
21
|
}
|
package/src/ErrorService.js
CHANGED
|
@@ -86,7 +86,7 @@ export default class ErrorService {
|
|
|
86
86
|
message =
|
|
87
87
|
"Vous ne pouvez pas supprimer ce " +
|
|
88
88
|
type +
|
|
89
|
-
", ce dernier est
|
|
89
|
+
", ce dernier est verrouillé.";
|
|
90
90
|
break;
|
|
91
91
|
default:
|
|
92
92
|
message = error.message;
|
|
@@ -104,7 +104,7 @@ export default class ErrorService {
|
|
|
104
104
|
message = "Vous n'avez pas la permission pour mettre à jour.";
|
|
105
105
|
break;
|
|
106
106
|
case 404:
|
|
107
|
-
message = "Impossible
|
|
107
|
+
message = "Impossible de mettre à jour un fichier inexistant.";
|
|
108
108
|
break;
|
|
109
109
|
case 409:
|
|
110
110
|
message = "Le nom du fichier est déjà existant.";
|
|
@@ -179,10 +179,10 @@ export function loginError(data){
|
|
|
179
179
|
let error = JSON.parse(data.message).error;
|
|
180
180
|
switch (error.statusCode) {
|
|
181
181
|
case 401:
|
|
182
|
-
message = "L'authentification
|
|
182
|
+
message = "L'authentification a échoué";
|
|
183
183
|
break;
|
|
184
184
|
case 403:
|
|
185
|
-
message = "
|
|
185
|
+
message = "Nom d'utilisateur ou mot de passe incorrect.";
|
|
186
186
|
break;
|
|
187
187
|
default:
|
|
188
188
|
message = error.message;
|