waibu-maps 2.2.3 → 2.2.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.
@@ -1,5 +1,4 @@
1
1
  import control from './control.js'
2
- import path from 'path'
3
2
  const prefix = 'clogo'
4
3
 
5
4
  async function controlLogo () {
@@ -13,7 +12,6 @@ async function controlLogo () {
13
12
  }
14
13
 
15
14
  build = async () => {
16
- const { fs, fastGlob } = this.app.lib
17
15
  const { routePath } = this.app.waibu
18
16
  const { jsonStringify, groupAttrs, stringifyAttribs } = this.app.waibuMpa
19
17
  const opts = { class: prefix }
@@ -21,17 +19,7 @@ async function controlLogo () {
21
19
  const group = groupAttrs(this.params.attr, ['img'])
22
20
  const img = group.img ?? {}
23
21
  img.opacity = parseFloat(img.opacity) || 0.3
24
- let logo = 'waibu'
25
- let logoAlt
26
- const files = await fastGlob(`${this.app.main.dir.pkg}/logo.*`)
27
- if (files.length > 0) {
28
- const dir = path.dirname(files[0])
29
- const ext = path.extname(files[0])
30
- logoAlt = fs.existsSync(`${dir}/logo-alt${ext}`)
31
- logo = 'main'
32
- }
33
- img.src = routePath(`waibuMpa:/logo/${logo}`)
34
- if (logoAlt) img.srcHover = routePath(`waibuMpa:/logo/${logo}?type=alt`)
22
+ img.src = routePath('waibuMpa:/logo/main')
35
23
  let animate = `@mouseenter="$el.style.opacity = 1" @mouseleave="$el.style.opacity = ${img.opacity}" `
36
24
  if (this.params.attr.noAnimate) {
37
25
  animate = ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-maps",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "description": "Maps for Waibu MPA",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,16 +1,20 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-03-15
4
+
5
+ - [2.2.4] Bug fix in ```wmaps-control-logo``` widget
6
+
3
7
  ## 2026-03-07
4
8
 
5
- - [2.2.3] Bug fix on map's search box
9
+ - [2.2.3] Bug fix in map's search box
6
10
 
7
11
  ## 2026-03-05
8
12
 
9
- - [2.2.2] Bug fix on ```wmpa``` component function parameters
13
+ - [2.2.2] Bug fix in ```wmpa``` component function parameters
10
14
 
11
15
  ## 2026-02-25
12
16
 
13
- - [2.2.1] Bug fix on ```wmaps.loadIcon()```
17
+ - [2.2.1] Bug fix in ```wmaps.loadIcon()```
14
18
 
15
19
  ## 2026-02-18
16
20
 
@@ -18,11 +22,11 @@
18
22
 
19
23
  ## 2026-02-15
20
24
 
21
- - [2.1.6] Bug fix on ```<:wmaps-control-search />``` feed labeling
25
+ - [2.1.6] Bug fix in ```<:wmaps-control-search />``` feed labeling
22
26
 
23
27
  ## 2026-01-20
24
28
 
25
- - [2.1.4] Bug fix on ```wmaps.createControl()```
29
+ - [2.1.4] Bug fix in ```wmaps.createControl()```
26
30
 
27
31
  ## 2026-01-17
28
32
 
@@ -30,7 +34,7 @@
30
34
 
31
35
  ## 2026-01-13
32
36
 
33
- - [2.1.1] Bug fix on waibuMpa's widgeting system
37
+ - [2.1.1] Bug fix in waibuMpa's widgeting system
34
38
 
35
39
  ## 2026-01-07
36
40