1
0
mirror of synced 2025-11-06 04:21:11 +08:00

Compare commits

...

5 Commits

Author SHA1 Message Date
redhoodsu
50cc399d3b release: v3.4.3 2025-06-15 17:09:33 +08:00
redhoodsu
4fe2874e22 fix: tests 2025-06-15 16:54:40 +08:00
redhoodsu
63e0da13a1 release: v3.4.2 2025-06-15 16:51:03 +08:00
redhoodsu
4c960e4c3c chore: replace backer info 2025-06-15 16:49:32 +08:00
redhoodsu
cea1535a65 chore: update luna dependencies 2025-06-15 16:22:16 +08:00
5 changed files with 56 additions and 21 deletions

View File

@@ -1,3 +1,11 @@
## 3.4.3 (15 Jun 2025)
* fix: redundant code imported
## 3.4.2 (15 Jun 2025)
* fix: elements horizontal scrollbar [#504](https://github.com/liriliri/eruda/issues/504)
## 3.4.1 (10 Nov 2024)
* fix: no copy and delete for shadow root

View File

@@ -1,6 +1,6 @@
{
"name": "eruda",
"version": "3.4.1",
"version": "3.4.3",
"description": "Console for Mobile Browsers",
"main": "eruda.js",
"browserslist": [
@@ -64,15 +64,15 @@
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^5.0.0",
"licia": "^1.44.0",
"luna-box-model": "^1.0.0",
"luna-box-model": "^1.0.1",
"luna-console": "^1.3.6",
"luna-data-grid": "^1.4.2",
"luna-data-grid": "^1.6.4",
"luna-dom-viewer": "^1.8.3",
"luna-modal": "^1.3.1",
"luna-notification": "^0.3.3",
"luna-object-viewer": "^0.3.2",
"luna-setting": "^2.0.2",
"luna-tab": "^0.3.4",
"luna-tab": "^0.4.3",
"luna-text-viewer": "^0.2.1",
"postcss-clean": "^1.2.2",
"postcss-loader": "^3.0.0",

View File

@@ -1,6 +1,7 @@
import detectBrowser from 'licia/detectBrowser'
import detectOs from 'licia/detectOs'
import escape from 'licia/escape'
import map from 'licia/map'
const browser = detectBrowser()
@@ -36,6 +37,41 @@ export default [
'</tbody></table>',
].join(''),
},
{
name: 'Sponsor this Project',
val() {
return (
'<table><tbody>' +
map(
[
{
name: 'Open Collective',
link: 'https://opencollective.com/eruda',
},
{
name: 'Ko-fi',
link: 'https://ko-fi.com/surunzi',
},
{
name: 'Wechat Pay',
link: 'https://surunzi.com/wechatpay.html',
},
],
(item) => {
return `<tr><td>${
item.name
}</td><td><a rel="noreferrer noopener" href="${
item.link
}" target="_blank">${item.link.replace(
'https://',
''
)}</a></td></tr>`
}
).join(' ') +
'</tbody></table>'
)
},
},
{
name: 'About',
val:
@@ -43,15 +79,4 @@ export default [
VERSION +
'</a>',
},
{
name: 'Backers',
val() {
return `
<a rel="noreferrer noopener" href="https://opencollective.com/eruda" target="_blank">
<img data-exclude="true" style="width: 100%;" loading="lazy" src="https://opencollective.com/eruda/backers.svg?width=${
window.innerWidth * 1.5
}&exclude=true">
</a>`
},
},
]

View File

@@ -98,11 +98,7 @@ export default class Network extends Tool {
return ret
}
_updateDataGridHeight() {
const height = this._$el.offset().height - this._$control.offset().height
this._requestDataGrid.setOption({
minHeight: height,
maxHeight: height,
})
this._requestDataGrid.fit()
}
_reqWillBeSent = (params) => {
if (!this._isRecording) {

View File

@@ -23,8 +23,14 @@ describe('info', function () {
expect($tool.find('.eruda-content').eq(3)).toContainText('os')
})
it('sponsor', function () {
expect($tool.find('.eruda-content').eq(4)).toContainText(
'Open Collective'
)
})
it('about', function () {
expect($tool.find('.eruda-content').eq(4)).toHaveText(/Eruda v[\d.]+/)
expect($tool.find('.eruda-content').eq(5)).toHaveText(/Eruda v[\d.]+/)
})
})