chore: replace backer info

This commit is contained in:
redhoodsu
2025-06-15 16:49:32 +08:00
parent cea1535a65
commit 4c960e4c3c
2 changed files with 37 additions and 16 deletions

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) {