@burh/nuxt-core 1.0.151 → 1.0.152

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.
@@ -1,5 +1,5 @@
1
1
  <template lang="">
2
- <div>
2
+ <div v-if='isShowing' class="fullpage-loading">
3
3
  <span class="loader-wrapper">
4
4
  <div>
5
5
  <div :class="'mb-5 product-item--avatar bg-' + color">
@@ -28,13 +28,39 @@ export default {
28
28
  },
29
29
  productImage: String,
30
30
  color: String
31
- }
31
+ },
32
+
33
+ data() {
34
+ return {
35
+ isShowing: true
36
+ };
37
+ },
38
+
39
+ mounted(){
40
+
41
+ const currentPage = window.location.pathname.split('/')[1];
42
+ if (sessionStorage.getItem('lastPage') != currentPage ){
43
+ sessionStorage.setItem('lastPage', currentPage);
44
+ }else{
45
+ this.isShowing = false;
46
+ }
47
+ },
48
+ // beforeDestroy() {
49
+ // sessionStorage.removeItem('lastPage');
50
+ // },
32
51
  };
33
52
  </script>
34
53
 
35
54
  <style lang="scss" scoped>
36
55
  // @import "assets/sass/burh-ds/variables/_colors.scss";
37
-
56
+ .fullpage-loading{
57
+ width: 100vw;
58
+ height: 100vh;
59
+ position: fixed;
60
+ top: 0;
61
+ left: 0;
62
+ z-index: 1000;
63
+ }
38
64
  .product-item--avatar {
39
65
  width: 64.78px;
40
66
  height: 64.78px;
@@ -57,4 +83,4 @@ export default {
57
83
  width: 100vw;
58
84
  height: 100vh;
59
85
  }
60
- </style>
86
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.151",
3
+ "version": "1.0.152",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {