@byu-oit/vue-decision-processing-components 8.37.0-2 → 8.37.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.
@@ -2,7 +2,7 @@ name: Deployment
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ main ]
5
+ branches: [ main, v8 ]
6
6
 
7
7
  env:
8
8
  node_version: "14"
@@ -38,4 +38,4 @@ jobs:
38
38
  - name: Publish
39
39
  run: npm publish --access public
40
40
  env:
41
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [8.37.0](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.37.0-2...v8.37.0) (2024-10-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * api calls ([3c4dd71](https://github.com/byu-oit/vue-decision-processing-components/commit/3c4dd71dc2b24323e1b8179462a8084ee422805f))
11
+ * fetch request ([c44d2d1](https://github.com/byu-oit/vue-decision-processing-components/commit/c44d2d104168a0d1975c54b8cd95af4df20fb6c4))
12
+ * update yapi base url ([9f5198e](https://github.com/byu-oit/vue-decision-processing-components/commit/9f5198e6a0c8b2302b84c50a91f9ea3f60dd6e3e))
13
+ * ymessage api ([349924f](https://github.com/byu-oit/vue-decision-processing-components/commit/349924f3e7a7c3ba5ae2c925369141293df3e28e))
14
+
5
15
  ### [8.35.8](https://github.com/byu-oit/vue-decision-processing-components/compare/v.8.35.8...v8.35.7) (2023-12-13)
6
16
 
7
17
  ### Bug Fixes
@@ -79,24 +79,19 @@ export default {
79
79
  q.append('categoryId', 'CESADM')
80
80
  q.append('sortAscending', 'true')
81
81
  q.append('results', '100')
82
- const url = `https://api.byu.edu:443/domains/ymessage-archive/1.0/student-overview/${personId}?${q.toString()}`
82
+ const url = `/api/ymessage/student-overview/${personId}?${q.toString()}`
83
83
 
84
- const headers = {
85
- 'accept': 'application/json'
86
- }
87
- const { body, status } = await window.byu.auth.request({ url, headers })
84
+ const headers = { accept: 'application/json' }
85
+ const response = await fetch(url, { headers })
88
86
 
89
- if (status >= 400) {
90
- console.error(Error(`Unable to load filenotes! Error code ${status}`))
87
+ if (!response.ok) {
88
+ console.error(new Error(`Unable to load filenotes! Error code ${response.status}`))
91
89
  this.error = true
92
90
  return
93
91
  }
94
92
 
95
- const data = JSON.parse(body)
96
- const parsedFilenotes = parseFilenotes(data.results)
97
- console.log('DetailsFilenoteList.vue::parsedFilenotes=', parsedFilenotes)
98
- // const count = data.totalResults
99
- this.filenotes = parsedFilenotes
93
+ const data = await response.json()
94
+ this.filenotes = parseFilenotes(data.results)
100
95
  this.loaded = true
101
96
  } catch (err) {
102
97
  console.error(err)
@@ -41,6 +41,18 @@ import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
41
41
  import { faCalendarAlt } from '@fortawesome/free-solid-svg-icons'
42
42
  import { mapGetters, mapMutations, mapActions } from 'vuex'
43
43
 
44
+ function calcAdmitPeriods () {
45
+ const terms = [1, 3, 5],
46
+ currentYear = new Date().getFullYear(),
47
+ prevYearFall = `${currentYear}5`,
48
+ nextYearWinter = `${currentYear + 2}1`
49
+ return [
50
+ prevYearFall,
51
+ ...terms.map(term => `${currentYear + 1}${term}`),
52
+ nextYearWinter
53
+ ]
54
+ }
55
+
44
56
  export default {
45
57
  name: 'FilterButtonAdmitPeriod',
46
58
  components: { FilterButton, FontAwesomeIcon },
@@ -49,11 +61,7 @@ export default {
49
61
  admitPeriods: {
50
62
  type: Array,
51
63
  default() {
52
- return [
53
- '20241',
54
- '20243',
55
- '20245'
56
- ]
64
+ return calcAdmitPeriods()
57
65
  }
58
66
  }
59
67
  },
package/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright [yyyy] [name of copyright owner]
189
+ Copyright 2024 Brigham Young University
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
package/Report.vue CHANGED
@@ -238,20 +238,15 @@ export default {
238
238
  }
239
239
  },
240
240
  async loadReport (url, acceptHeader) {
241
- const options = {
242
- headers: {
243
- 'authorization': `Bearer ${window.byu.auth.accessToken}`,
244
- 'accept': acceptHeader
245
- },
246
- cache: 'no-store'
247
- }
248
241
  try {
249
- const response = await fetch(url, options)
242
+ const response = await fetch(url, {
243
+ headers: { accept: acceptHeader },
244
+ cache: 'no-store'
245
+ })
250
246
  if (!response.ok) {
251
247
  this.error = true
252
248
  const err = Error(`Error ${response.status}-'${response.statusText}' while fetching report from ${url}`)
253
249
  console.error(err)
254
- console.error(err.stack)
255
250
  return null
256
251
  }
257
252
  this.newCursor = response.headers.get('Cursor')
@@ -259,7 +254,6 @@ export default {
259
254
  } catch (err) {
260
255
  this.error = true
261
256
  console.error(err)
262
- console.error(err.stack)
263
257
  }
264
258
  },
265
259
  reloadOnPageBackIntoFocus () {
package/SupportDialog.vue CHANGED
@@ -119,20 +119,17 @@ export default {
119
119
  short_description: this.shortDescription,
120
120
  description: [this.description.trim(), '\n', callerId, location.href].join('\n')
121
121
  }
122
- const service = this.institutionSvc === 'byudce' ? 'byudce/clearance' : `${this.institutionSvc}/admission`
123
122
  const options = {
124
- url: `${this.baseUrl}/domain/applications/${service}/v1/proxy/incident`,
125
123
  method: 'POST',
126
- headers: {
127
- 'Content-Type': 'application/json',
128
- },
124
+ headers: { 'Content-Type': 'application/json' },
129
125
  body: JSON.stringify({
130
126
  ...body,
131
127
  ...this.email !== '' && { u_email: this.email }
132
128
  })
133
129
  }
130
+
134
131
  this.incrementFetchCount()
135
- const { status } = await window.byu.auth.request(options)
132
+ const { status } = await fetch(`/api/app/proxy/incident`, options)
136
133
  this.decrementFetchCount()
137
134
  if (status < 400) {
138
135
  this.success = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "8.37.0-2",
3
+ "version": "8.37.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",
package/.repo-meta.yml DELETED
@@ -1,55 +0,0 @@
1
- # For full spec reference see https://github.com/byu-oit/repo-meta/blob/master/repo-meta-template.yml
2
- # This file was automatically generated. It is used for various integrations like creating and updating Software CIs in the CMDB.
3
- # You are required to maintain Software CI records in the CMDB for all of the deployable software artifacts you maintain.
4
- # You can fill in the information here and have the integration do that for you or you can do that yourself manually.
5
- $schemaver: 2.1
6
- repo_url: https://github.com/byu-oit/vue-decision-processing-components # optional
7
- software:
8
- - name: vue-decision-processing-components # optional
9
- deploy_to_cmdb: true # optional
10
- type: ''
11
- aliases: # optional
12
- short_description: Vue.js components to be shared between the decision processing
13
- applications for the various CES Schools. # optional
14
- assignment_group: gro:OIT-App Dev Student Info Mgmt
15
- notes: # optional
16
- maintained_by: # optional
17
- - arasmus8
18
- data_sensitivity: internal
19
- developed_by_byu: true # optional
20
- ddd: # optional
21
- business_domain:
22
- ubiquitous_language_url:
23
- context_map_url:
24
- links: # optional
25
- system_documentation_url: https://github.com/byu-oit/vue-decision-processing-components
26
- swagger_urls:
27
- microservice: true # optional
28
- technologies_used: # optional
29
- - Vue
30
- - JavaScript
31
- - NodeJS
32
- standard_change_template:
33
- stages:
34
- development:
35
- urls: # optional
36
- product_page:
37
- physical_url:
38
- virtual_url:
39
- hosting_location: ''
40
- aws_account: # optional
41
- relationships: # optional
42
- depends_on: # optional
43
- db_read_write:
44
- db_read_only:
45
- software:
46
- supports: # optional
47
- software:
48
- service:
49
- reverse_proxy: # optional
50
- runs_on: # optional
51
- server_cluster:
52
- virtual_server:
53
- rack_server:
54
- blade_server:
55
- data-sensitivity: ''