支持vercel

This commit is contained in:
Tw93
2022-10-15 17:52:30 +08:00
parent 5725bf6d5f
commit 4181e8a2e6
5 changed files with 25 additions and 9 deletions

Binary file not shown.

BIN
src-tauri/icons/vercel.icns Normal file

Binary file not shown.

View File

@@ -38,18 +38,30 @@ fn main() -> wry::Result<()> {
(function () {
window.addEventListener('DOMContentLoaded', (event) => {
const style = document.createElement('style');
.c-swiper-container{
display:none;
}
style.innerHTML = `
.panel.give_me .nav_view {
top: 154px !important;
}
.c-swiper-container,
.download_entry,
.lang,
.copyright {
display: none !important;
}
.container-with-note #home, .container-with-note #switcher{
top: 30px;
}
.geist-page {
padding-top:10px;
}
.geist-page .submenu button{
margin-top:24px;
}
#pack-top-dom:active {
cursor: grabbing;
cursor: -webkit-grabbing;
@@ -107,7 +119,7 @@ fn main() -> wry::Result<()> {
};
let _webview = WebViewBuilder::new(window)?
.with_url("https://www.duokan.com/pc/")?
.with_url("https://vercel.com/")?
// .with_devtools(true)
.with_initialization_script(script)
.with_ipc_handler(handler)

View File

@@ -1,6 +1,6 @@
{
"package": {
"productName": "Flomo",
"productName": "Vercel",
"version": "0.1.0"
},
"build": {
@@ -14,7 +14,7 @@
"all": true
},
"bundle": {
"icon": ["icons/flomo.icns"],
"icon": ["icons/vercel.icns"],
"active": true,
"category": "DeveloperTool",
"copyright": "",
@@ -22,7 +22,7 @@
"depends": []
},
"externalBin": [],
"identifier": "com.tw93.flomo",
"identifier": "com.tw93.vercel",
"longDescription": "",
"macOS": {
"entitlements": null,
@@ -51,7 +51,7 @@
"fullscreen": false,
"height": 728,
"resizable": true,
"title": "Flomo",
"title": "Vercel",
"width": 1200
}
]