project-booster-vue 10.32.3 → 10.32.4
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/README.md
CHANGED
|
@@ -59,6 +59,14 @@ Add it in the `components` property of your component and use it in your templat
|
|
|
59
59
|
|
|
60
60
|
## Project setup
|
|
61
61
|
|
|
62
|
+
### Requirements
|
|
63
|
+
|
|
64
|
+
- **Node.js 16** (see `.nvmrc`)
|
|
65
|
+
- **Python 3.11** — required by `node-gyp` to build native modules (e.g. `deasync`). Python 3.12+ removed `distutils` from the stdlib, which breaks the install. The version is pinned in `mise.toml`.
|
|
66
|
+
- **Yarn 1.x** - install with `npm install -g yarn`.
|
|
67
|
+
|
|
68
|
+
Otherwise, make sure `node`, `python3.11` and `yarn` are available on your `PATH` before running `yarn install`.
|
|
69
|
+
|
|
62
70
|
```
|
|
63
71
|
yarn install
|
|
64
72
|
```
|
|
@@ -132,12 +140,6 @@ yarn storybook
|
|
|
132
140
|
yarn storybook-kozikaza
|
|
133
141
|
```
|
|
134
142
|
|
|
135
|
-
### Deploys storybook to github pages
|
|
136
|
-
|
|
137
|
-
```
|
|
138
|
-
yarn storybook:deploy
|
|
139
|
-
```
|
|
140
|
-
|
|
141
143
|
## Note about linting
|
|
142
144
|
|
|
143
145
|
### Integration with IDE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "project-booster-vue",
|
|
3
|
-
"version": "10.32.
|
|
3
|
+
"version": "10.32.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"semantic-release": "semantic-release",
|
|
19
19
|
"storybook": "start-storybook --port 60009 --loglevel verbose",
|
|
20
20
|
"storybook-kozikaza": "env PB_THEME=kozikaza start-storybook --port 60010",
|
|
21
|
-
"storybook:deploy": "storybook-to-ghpages",
|
|
22
21
|
"test:puppeteer": "vue-cli-service test:unit --config jest.puppeteer.config.js --forceExit --detectOpenHandles",
|
|
23
22
|
"contentful-typescript-codegen": "contentful-typescript-codegen --output src/types/contentful.d.ts"
|
|
24
23
|
},
|
|
@@ -41,7 +40,7 @@
|
|
|
41
40
|
"@vue/test-utils": "^2.2.6",
|
|
42
41
|
"@xstate/vue": "0.8.1",
|
|
43
42
|
"ajv": "8.6.0",
|
|
44
|
-
"axios": "0.
|
|
43
|
+
"axios": "0.31.0",
|
|
45
44
|
"contentful": "9.1.12",
|
|
46
45
|
"core-js": "3.21.1",
|
|
47
46
|
"date-fns": "2.22.1",
|
|
@@ -94,7 +93,6 @@
|
|
|
94
93
|
"@storybook/builder-webpack5": "6.4.22",
|
|
95
94
|
"@storybook/manager-webpack5": "6.4.22",
|
|
96
95
|
"@storybook/source-loader": "6.4.22",
|
|
97
|
-
"@storybook/storybook-deployer": "2.8.11",
|
|
98
96
|
"@storybook/theming": "6.4.22",
|
|
99
97
|
"@storybook/vue3": "6.4.22",
|
|
100
98
|
"@testing-library/jest-dom": "5.16.2",
|
|
@@ -155,6 +155,11 @@ export const mediaDocumentsUploadStoreOptions = {
|
|
|
155
155
|
uploadFile.documentSubtype,
|
|
156
156
|
);
|
|
157
157
|
const location = response.headers.location;
|
|
158
|
+
|
|
159
|
+
if (!location) {
|
|
160
|
+
throw new Error('Upload response is missing the Location header');
|
|
161
|
+
}
|
|
162
|
+
|
|
158
163
|
const [mediaId] = location.split('/').slice(-1);
|
|
159
164
|
commit('setUploadedId', mediaId);
|
|
160
165
|
commit('setIsUploaded', true);
|
|
@@ -727,6 +727,11 @@ export const projectItemSaveStoreOptions = {
|
|
|
727
727
|
|
|
728
728
|
try {
|
|
729
729
|
const location = await saveInhabitantProject(projectToSave);
|
|
730
|
+
|
|
731
|
+
if (!location) {
|
|
732
|
+
throw new Error('Save project response is missing the Location header');
|
|
733
|
+
}
|
|
734
|
+
|
|
730
735
|
const split = location.split('/');
|
|
731
736
|
const projectId = split[split.length - 1];
|
|
732
737
|
// TODO extract BI from stores
|