waibu-maps 2.7.2 → 2.7.4
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.
|
@@ -27,7 +27,7 @@ async function controlNewsticker () {
|
|
|
27
27
|
.at-ticker-label { --at-bg-cl: #f00 }
|
|
28
28
|
.at-ticker-box { font-size: larger; padding-right: 10px }
|
|
29
29
|
.at-ticker-box ul { padding-top: 5px }
|
|
30
|
-
.text-content { max-height: calc(100vh -
|
|
30
|
+
.text-content { max-height: calc(100vh - 450px); overflow-y: auto }
|
|
31
31
|
`
|
|
32
32
|
|
|
33
33
|
constructor (options) {
|
|
@@ -50,9 +50,9 @@ async function controlNewsticker () {
|
|
|
50
50
|
let rsc = ''
|
|
51
51
|
if (att) {
|
|
52
52
|
if (att.mimeType.startsWith('video')) {
|
|
53
|
-
rsc = '<iframe style="height:
|
|
53
|
+
rsc = '<iframe style="height:250px; width:100%" frameborder="0" allowfullscreen scrolling="no" allow="camera; microphone; fullscreen" src="' + att.url + '"></iframe>'
|
|
54
54
|
} else {
|
|
55
|
-
rsc = '<img style="height:
|
|
55
|
+
rsc = '<img style="height:250px" class="img-fluid" src="' + att.url + '">'
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
const html = '<div class="d-flex border-bottom justify-content-center">' +
|
|
@@ -76,6 +76,7 @@ async function controlNewsticker () {
|
|
|
76
76
|
const el = document.querySelector('.maplibregl-ctrl-newsticker .content')
|
|
77
77
|
el.innerHTML = ''
|
|
78
78
|
this.posts = await wmpa.fetchApi('/cms/post', { headers: { 'X-Attachments': 'true' } }, { limit: 10 })
|
|
79
|
+
if (this.posts.length === 0) return
|
|
79
80
|
this.posts.forEach(post => {
|
|
80
81
|
const li = document.createElement('li')
|
|
81
82
|
const a = document.createElement('a')
|
|
@@ -102,7 +103,7 @@ async function controlNewsticker () {
|
|
|
102
103
|
this.newstickerDt()
|
|
103
104
|
setInterval(this.newstickerDt, 1000)
|
|
104
105
|
await this.getPosts()
|
|
105
|
-
setInterval(this.getPosts,
|
|
106
|
+
setInterval(this.getPosts, 3 * 60 * 1000)
|
|
106
107
|
`)
|
|
107
108
|
|
|
108
109
|
const ui = await minify(await this.component.buildSentence(`
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 2026-10-27
|
|
4
|
+
|
|
5
|
+
- [2.7.4] Bug fix in `getPosts()`
|
|
6
|
+
|
|
3
7
|
## 2026-10-25
|
|
4
8
|
|
|
5
|
-
- [2.7.0] Refactor getPosts()
|
|
9
|
+
- [2.7.0] Refactor `getPosts()`
|
|
6
10
|
- [2.7.1] Bug fix some positioning & dimensions
|
|
7
11
|
- [2.7.2] Bug fix in timer
|
|
12
|
+
- [2.7.3] Bug fix in image dimension
|
|
8
13
|
|
|
9
14
|
## 2026-10-21
|
|
10
15
|
|