@saooti/octopus-sdk 29.0.23 → 30.0.0

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
@@ -490,4 +490,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
490
490
  * 29.0.21 Eslint
491
491
  * 29.0.22 Eslint
492
492
  * 29.0.23 Eslint
493
+ * 29.0.24 Version stable vue3
494
+ * 29.0.25 Specific category does not display in correct order
495
+ * 29.0.26 Snackbar position
493
496
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "29.0.23",
3
+ "version": "30.0.0",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -16,46 +16,46 @@
16
16
  "dependencies": {
17
17
  "@popperjs/core": "^2.10.2",
18
18
  "@saooti/octopus-api": "^0.29.7",
19
- "@vue/cli": "^5.0.0-beta.7",
20
- "@vue/compat": "^3.1.0",
19
+ "@vue/cli": "^5.0.0-rc.0",
20
+ "@vue/compat": "^3.2.21",
21
21
  "axios": "^0.24.0",
22
- "bootstrap": "^5.1.2",
23
- "core-js": "^3.19.0",
22
+ "bootstrap": "^5.1.3",
23
+ "core-js": "^3.19.01",
24
24
  "hls.js": "^1.0.12",
25
25
  "humanize-duration": "^3.27.0",
26
26
  "jquery": "^3.6.0",
27
- "luxon": "^2.0.2",
28
- "moment": "^2.29.0",
27
+ "luxon": "^2.1.0",
28
+ "moment": "^2.29.1",
29
29
  "moment-locales-webpack-plugin": "^1.2.0",
30
30
  "popper.js": "^1.16.1",
31
31
  "qrcode.vue": "^3.3.3",
32
32
  "sass": "^1.43.4",
33
33
  "sass-loader": "^12.3.0",
34
34
  "v-calendar": "^3.0.0-alpha.6",
35
- "vue": "^3.1.0",
36
- "vue-i18n": "^9.2.0-beta.15",
35
+ "vue": "^3.2.21",
36
+ "vue-i18n": "^9.2.0-beta.17",
37
37
  "vue-multiselect": "^3.0.0-alpha.2",
38
38
  "vue-recaptcha-v3": "^2.0.1",
39
39
  "vue-router": "^4.0.12",
40
40
  "vue3-swatches": "^1.0.5",
41
41
  "vuex": "^4.0.2",
42
- "webpack": "^5.60.0"
42
+ "webpack": "^5.62.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/bootstrap": "^5.1.6",
46
46
  "@types/hls.js": "^1.0.0",
47
47
  "@types/jquery": "^3.5.8",
48
48
  "@types/vue-datetime": "^1.0.1",
49
- "@typescript-eslint/eslint-plugin": "^5.2.0",
50
- "@typescript-eslint/parser": "^5.2.0",
51
- "@vue/cli-plugin-babel": "^5.0.0-beta.7",
52
- "@vue/cli-plugin-eslint": "^5.0.0-beta.7",
53
- "@vue/cli-plugin-typescript": "^5.0.0-beta.7",
54
- "@vue/cli-service": "^5.0.0-beta.7",
55
- "@vue/compiler-sfc": "^3.1.0",
49
+ "@typescript-eslint/eslint-plugin": "^5.3.0",
50
+ "@typescript-eslint/parser": "^5.3.0",
51
+ "@vue/cli-plugin-babel": "^5.0.0-rc.0",
52
+ "@vue/cli-plugin-eslint": "^5.0.0-rc.0",
53
+ "@vue/cli-plugin-typescript": "^5.0.0-rc.0",
54
+ "@vue/cli-service": "^5.0.0-rc.0",
55
+ "@vue/compiler-sfc": "^3.2.21",
56
56
  "@vue/eslint-config-typescript": "^8.0.0",
57
- "babel-eslint": "^10.0.3",
58
- "eslint": "^8.1.0",
57
+ "babel-eslint": "^10.1.0",
58
+ "eslint": "^8.2.0",
59
59
  "eslint-plugin-vue": "^7.20.0",
60
60
  "typescript": "^4.4.4"
61
61
  },
@@ -116,8 +116,9 @@ export default defineComponent({
116
116
  return undefined;
117
117
  },
118
118
  sort(): string {
119
- if (!this.popularSort && this.sortCriteria) return this.sortCriteria;
120
- return 'POPULARITY';
119
+ if (this.popularSort) return "POPULARITY";
120
+ if (this.sortCriteria) return this.sortCriteria;
121
+ return 'DATE';
121
122
  },
122
123
  sortText(): string {
123
124
  switch (this.sortCriteria) {
@@ -229,7 +229,7 @@ export default defineComponent({
229
229
  }
230
230
  if ('PAUSED' === newValue) {
231
231
  audioPlayer.pause();
232
- } else {
232
+ }else if ('PLAYING' === newValue){
233
233
  audioPlayer.play();
234
234
  }
235
235
  }
@@ -97,8 +97,28 @@ export default defineComponent({
97
97
  return '';
98
98
  },
99
99
  },
100
+ created(){
101
+ window.addEventListener('keydown', this.addKeyboardControl);
102
+ },
103
+ beforeUnmount() {
104
+ window.removeEventListener('keydown', this.addKeyboardControl);
105
+ },
100
106
 
101
107
  methods: {
108
+ addKeyboardControl(event: KeyboardEvent): void{
109
+ if (' ' === event.key || 'Spacebar' === event.key) {
110
+ event.preventDefault();
111
+ this.switchPausePlay();
112
+ }else if ('ArrowRight' === event.key && event.ctrlKey) {
113
+ const audioPlayer: HTMLAudioElement|null = document.querySelector('#audio-player');
114
+ if(!audioPlayer){return;}
115
+ audioPlayer.currentTime += 15;
116
+ }else if ('ArrowLeft' === event.key && event.ctrlKey) {
117
+ const audioPlayer: HTMLAudioElement|null = document.querySelector('#audio-player');
118
+ if(!audioPlayer){return;}
119
+ audioPlayer.currentTime -=15;
120
+ }
121
+ },
102
122
  switchPausePlay(): void {
103
123
  const audioPlayer: HTMLAudioElement|null = document.querySelector('#audio-player');
104
124
  if(!audioPlayer){return;}
@@ -159,3 +159,8 @@ export default defineComponent({
159
159
  },
160
160
  })
161
161
  </script>
162
+ <style lang="scss">
163
+ .snack-bar-wrap{
164
+ bottom: 0px;
165
+ }
166
+ </style>