@byu-oit/vue-decision-processing-components 9.7.0 → 9.7.1

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
@@ -3,23 +3,27 @@
3
3
  ## Overview
4
4
  Vue.js components to be shared between the decision processing applications for the various CES Schools.
5
5
 
6
- ## How to Use This
7
-
8
- - All Decision Processing Clients use various components from this npm package.
9
-
10
- ## How to Build Locally
6
+ ## How to Run Locally
7
+ This package isn’t currently set up to run or build locally.
8
+ - To install it in a project, run:
9
+ `npm install @byu-oit/vue-decision-processing-components`
11
10
 
12
- - Currently no way to run/build locally
13
- - installation: npm install @byu-oit/vue-decision-processing-components
14
-
15
- ## How to Publish
11
+ ## How to Deploy
16
12
  - Bump version number in [package.json](./package.json#L3) using the following command in bash
17
- - `npm version [patch|minor|major]`
18
- - then change the commit message to follow the conventional commit message standard `git commit --amend` to something like `chore: bump version x.y.z`
13
+ - `npm version [patch|minor|major]`
14
+ - then change the commit message to follow the conventional commit message standard `git commit --amend` to something like `chore: bump version x.y.z`
19
15
  This automatically creates a git tag if you run `git push --follow-tags` (which labels commits with the exact version that was published to npm).
20
16
  - PR to main
21
17
  - Manually publish a release by clicking on “Releases” in the sidebar and then draft a new release from there.
22
- - The name should be the new version number prefixed with a “v”.
18
+ - The name should be the new version number prefixed with a “v”.
19
+
20
+ ## How to Use This
21
+ This package provides common components for:
22
+ - BYUI and Ensign decision processing clients (ldsbc-decision-processing, byui-decision-processing)
23
+ - BYUH uses ces-decision-processing, a refactored front-end for decision processing sites
23
24
 
24
25
  ## How to Test
25
- - vue-decision-processing-components can be tested by making changes to node modules in any decision-processing client and then copied to this repo to push the changes to prd.
26
+ To test changes before publishing:
27
+ - Make edits directly in the node_modules folder of a decision processing client
28
+ - Verify the changes work as expected
29
+ - Copy the updated code back into this repo and push a PR
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "9.7.0",
3
+ "version": "9.7.1",
4
4
  "description": "Vue components shared between decision processing systems for the CES schools.",
5
5
  "dependencies": {
6
6
  "@fortawesome/fontawesome-free": "^5.15.4",
@@ -0,0 +1,26 @@
1
+ /*
2
+ * shape of elements:
3
+ * {
4
+ * status: '',
5
+ * call: '',
6
+ * message : ''
7
+ * }
8
+ */
9
+ export const state = {
10
+ status: '',
11
+ call: '',
12
+ message: ''
13
+ }
14
+
15
+ export const mutations = {
16
+ resetApiError (state) {
17
+ state.status = ''
18
+ state.call = ''
19
+ state.message = ''
20
+ },
21
+ setApiError (state, error = {}) {
22
+ state.status = error.status
23
+ state.call = error.call
24
+ state.message = error.message
25
+ }
26
+ }