waibu-maps 2.2.3 → 2.2.5

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 = ''
@@ -85,7 +85,7 @@ async function controlSearch () {
85
85
  this.$store.mapSearch.value = this.$refs.input.value
86
86
  },
87
87
  clearHistory () {
88
- wmpa.replaceWithComponentHtml('', { selector: '#${id} .result div', wrapper: 'div' })
88
+ this.$store.mapSearch.recent = ''
89
89
  },
90
90
  abort () {
91
91
  const endpoint = this.$store.mapSearch.busy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-maps",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "description": "Maps for Waibu MPA",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,16 +1,25 @@
1
1
  # Changes
2
2
 
3
+
4
+ ## 2026-03-19
5
+
6
+ - [2.2.5] Bug fix in ```wmaps-control-search:clearHistory()``` widget
7
+
8
+ ## 2026-03-15
9
+
10
+ - [2.2.4] Bug fix in ```wmaps-control-logo``` widget
11
+
3
12
  ## 2026-03-07
4
13
 
5
- - [2.2.3] Bug fix on map's search box
14
+ - [2.2.3] Bug fix in map's search box
6
15
 
7
16
  ## 2026-03-05
8
17
 
9
- - [2.2.2] Bug fix on ```wmpa``` component function parameters
18
+ - [2.2.2] Bug fix in ```wmpa``` component function parameters
10
19
 
11
20
  ## 2026-02-25
12
21
 
13
- - [2.2.1] Bug fix on ```wmaps.loadIcon()```
22
+ - [2.2.1] Bug fix in ```wmaps.loadIcon()```
14
23
 
15
24
  ## 2026-02-18
16
25
 
@@ -18,11 +27,11 @@
18
27
 
19
28
  ## 2026-02-15
20
29
 
21
- - [2.1.6] Bug fix on ```<:wmaps-control-search />``` feed labeling
30
+ - [2.1.6] Bug fix in ```<:wmaps-control-search />``` feed labeling
22
31
 
23
32
  ## 2026-01-20
24
33
 
25
- - [2.1.4] Bug fix on ```wmaps.createControl()```
34
+ - [2.1.4] Bug fix in ```wmaps.createControl()```
26
35
 
27
36
  ## 2026-01-17
28
37
 
@@ -30,7 +39,7 @@
30
39
 
31
40
  ## 2026-01-13
32
41
 
33
- - [2.1.1] Bug fix on waibuMpa's widgeting system
42
+ - [2.1.1] Bug fix in waibuMpa's widgeting system
34
43
 
35
44
  ## 2026-01-07
36
45