@asd20/ui 3.2.536 → 3.2.538

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.536",
8
+ "version": "3.2.538",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -6,11 +6,7 @@
6
6
  :aria-label="hideLabel ? label : undefined"
7
7
  :title="hideLabel ? label : undefined"
8
8
  :target="
9
- !link ||
10
- link.startsWith('/') ||
11
- link.startsWith('https://directory') ||
12
- link.startsWith('https://calendar') ||
13
- link.startsWith('https://school')
9
+ !link || link.startsWith('/') || link.includes('asd20.org')
14
10
  ? undefined
15
11
  : '_blank'
16
12
  "
@@ -24,7 +24,7 @@
24
24
  <asd20-button
25
25
  class="back"
26
26
  v-if="!breadcrumbLinks.length"
27
- @click.native="goBack()"
27
+ :link="goBack()"
28
28
  label="Back"
29
29
  icon="chevron"
30
30
  :iconAngle="-90"
@@ -201,7 +201,8 @@ export default {
201
201
  methods: {
202
202
  goBack() {
203
203
  if (typeof window === 'undefined') return
204
- window.history.back()
204
+ return document.referrer
205
+ // window.history.back()
205
206
  },
206
207
  },
207
208
  }
@@ -24,7 +24,7 @@
24
24
  <asd20-button
25
25
  class="back"
26
26
  v-if="!breadcrumbLinks.length"
27
- @click.native="goBack()"
27
+ :link="goBack()"
28
28
  label="Back"
29
29
  icon="chevron"
30
30
  :iconAngle="-90"
@@ -203,17 +203,20 @@ export default {
203
203
  showModifiedDateTime() {
204
204
  const publishDateTimeString = new Date(this.publishDateTime)
205
205
  const modifiedDateTimeString = new Date(this.modifiedDateTime)
206
- console.log(publishDateTimeString, modifiedDateTimeString)
206
+ // console.log(publishDateTimeString, modifiedDateTimeString)
207
207
 
208
208
  let publishDateTimePlusOne = new Date(publishDateTimeString.setDate(publishDateTimeString.getDate() + 1))
209
- console.log(publishDateTimePlusOne, modifiedDateTimeString)
209
+ // console.log(publishDateTimePlusOne, modifiedDateTimeString)
210
210
  return modifiedDateTimeString > publishDateTimePlusOne ? true : false
211
211
  },
212
212
  },
213
213
  methods: {
214
214
  goBack() {
215
215
  if (typeof window === 'undefined') return
216
- window.history.back()
216
+ return document.referrer
217
+ // window.history.back()
218
+ // const url = window.location.href
219
+ // return url.slice(0, url.lastIndexOf('/'))
217
220
  },
218
221
  },
219
222
  }