用 web 模拟桌面,感觉这个思路很有意思,但是想了想好像也没啥用

130 天前
 meeop

如下链接复制到浏览器地址栏可以看看示例效果

以前有一阵流行云桌面,现在都搜不到了,我在想以 pc 桌面的交互方式展示一般 web 服务,有啥有用的场景吗?

data:text/html;base64,PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KCjxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0iVVRGLTgiPgogICAgPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xLjAiPgogICAgPHRpdGxlPkRlc2t0b3AgU2ltdWxhdGlvbjwvdGl0bGU+CiAgICA8c3R5bGU+CiAgICAgICAgYm9keSB7CiAgICAgICAgICAgIGZvbnQtZmFtaWx5OiBBcmlhbCwgc2Fucy1zZXJpZjsKICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2YwZjBmMDsKICAgICAgICAgICAgbWFyZ2luOiAwOwogICAgICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgICAgICAgd2lkdGg6IDEwMHZ3OwogICAgICAgICAgICBoZWlnaHQ6IDEwMHZoOwogICAgICAgIH0KCiAgICAgICAgI2Rlc2t0b3AgewogICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgICAgIHdpZHRoOiAxMDAwJTsKICAgICAgICAgICAgaGVpZ2h0OiAxMDAwJTsKICAgICAgICAgICAgcGFkZGluZzogMjBweDsKICAgICAgICB9CgogICAgICAgIC5zaG9ydGN1dCB7CiAgICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmOwogICAgICAgICAgICBwYWRkaW5nOiAxMHB4OwogICAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjOwogICAgICAgICAgICBib3JkZXItcmFkaXVzOiA1cHg7CiAgICAgICAgICAgIGJveC1zaGFkb3c6IDAgMnB4IDVweCByZ2JhKDAsIDAsIDAsIDAuMSk7CiAgICAgICAgfQoKICAgICAgICAud2luZG93IHsKICAgICAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgICAgICB3aWR0aDogNTB2dzsKCiAgICAgICAgICAgIGhlaWdodDogNTB2aDsKICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjsKICAgICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2NjYzsKICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogNXB4OwogICAgICAgICAgICBib3gtc2hhZG93OiAwIDJweCA1cHggcmdiYSgwLCAwLCAwLCAwLjMpOwogICAgICAgICAgICB6LWluZGV4OiAxMDA7CiAgICAgICAgfQoKICAgICAgICAud2luZG93LXRpdGxlYmFyIHsKICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2YwZjBmMDsKICAgICAgICAgICAgcGFkZGluZzogOHB4OwogICAgICAgICAgICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2NjYzsKICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogNXB4IDVweCAwIDA7CiAgICAgICAgICAgIGN1cnNvcjogbW92ZTsKICAgICAgICB9CgogICAgICAgIC50aXRsZSB7CiAgICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIH0KCiAgICAgICAgLmNsb3NlLWJ0biB7CiAgICAgICAgICAgIGZsb2F0OiByaWdodDsKICAgICAgICAgICAgYm9yZGVyOiBub25lOwogICAgICAgICAgICBiYWNrZ3JvdW5kOiBub25lOwogICAgICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgICAgfQoKICAgICAgICAud2luZG93LWNvbnRlbnQgewogICAgICAgICAgICBwYWRkaW5nOiAxMHB4OwogICAgICAgICAgICBoZWlnaHQ6IGNhbGMoMTAwJSAtIDMwcHgpOwogICAgICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIH0KCiAgICAgICAgLmlmcmFtZS1jb250YWluZXIgewogICAgICAgICAgICBoZWlnaHQ6IGNhbGMoMTAwJSAtIDMwcHgpOwogICAgICAgIH0KCiAgICAgICAgLmlmcmFtZS1jb250YWluZXIgaWZyYW1lIHsKICAgICAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICAgICAgYm9yZGVyOiBub25lOwogICAgICAgIH0KCiAgICAgICAgLnJlc2l6ZS1oYW5kbGUgewogICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgICAgIHdpZHRoOiAxMHB4OwogICAgICAgICAgICBoZWlnaHQ6IDEwcHg7CiAgICAgICAgICAgIGJvdHRvbTogMDsKICAgICAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgICAgIGN1cnNvcjogbndzZS1yZXNpemU7CiAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNjY2M7CiAgICAgICAgfQogICAgPC9zdHlsZT4KPC9oZWFkPgoKPGJvZHk+CiAgICA8ZGl2IGlkPSJkZXNrdG9wIj4KICAgICAgICA8ZGl2IGNsYXNzPSJzaG9ydGN1dCIgaWQ9ImNyZWF0ZVdpbmRvd0J0biIgc3R5bGU9ImxlZnQ6IDIwMHB4OyB0b3A6IDMwcHg7Ij4KICAgICAgICAgICAg54K55Ye75Yib5bu65rWP6KeI5Zmo56qX5Y+jCiAgICAgICAgPC9kaXY+CiAgICAgICAgPGRpdj4KICAgICAgICAgICAgPGJ1dHRvbiBvbmNsaWNrPSdjcmVhdGVCcm93c2VyV2luZG93KCJodHRwczovL2N0b29sLmRldi90b29sLmh0bWwjL3Rvb2wvanNvbj9jYXRlZ29yeT1jb252ZXJzaW9uIiknPmpzb25FZGl0PC9idXR0b24+PGJyPgogICAgICAgIDwvZGl2PgogICAgPC9kaXY+CgogICAgPHNjcmlwdD4KICAgICAgICBsZXQgekluZGV4ID0gMTsgCgogICAgICAgIAogICAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdjcmVhdGVXaW5kb3dCdG4nKS5hZGRFdmVudExpc3RlbmVyKCdjbGljaycsICgpID0+IHsKICAgICAgICAgICAgY3JlYXRlQnJvd3NlcldpbmRvdygpOwogICAgICAgIH0pOwoKICAgICAgICAKICAgICAgICBmdW5jdGlvbiBjbG9zZVdpbmRvdyh3aW5kb3dJZCkgewogICAgICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCh3aW5kb3dJZCkucmVtb3ZlKCk7CiAgICAgICAgfQoKICAgICAgICAKICAgICAgICBmdW5jdGlvbiBkcmFnV2luZG93KHdpbmRvd0lkLCBldmVudCkgewogICAgICAgICAgICBjb25zdCB3aW5kb3dFbGVtID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQod2luZG93SWQpOwogICAgICAgICAgICB3aW5kb3dFbGVtLnN0eWxlLnpJbmRleCA9ICsrekluZGV4OyAKICAgICAgICAgICAgbGV0IHBvc1ggPSBldmVudC5jbGllbnRYOwogICAgICAgICAgICBsZXQgcG9zWSA9IGV2ZW50LmNsaWVudFk7CiAgICAgICAgICAgIGxldCB3aW5kb3dMZWZ0ID0gd2luZG93RWxlbS5vZmZzZXRMZWZ0OwogICAgICAgICAgICBsZXQgd2luZG93VG9wID0gd2luZG93RWxlbS5vZmZzZXRUb3A7CgogICAgICAgICAgICBmdW5jdGlvbiBtb3ZlV2luZG93KGV2ZW50KSB7CiAgICAgICAgICAgICAgICBsZXQgZHggPSBldmVudC5jbGllbnRYIC0gcG9zWDsKICAgICAgICAgICAgICAgIGxldCBkeSA9IGV2ZW50LmNsaWVudFkgLSBwb3NZOwogICAgICAgICAgICAgICAgd2luZG93RWxlbS5zdHlsZS5sZWZ0ID0gd2luZG93TGVmdCArIGR4ICsgJ3B4JzsKICAgICAgICAgICAgICAgIHdpbmRvd0VsZW0uc3R5bGUudG9wID0gd2luZG93VG9wICsgZHkgKyAncHgnOwogICAgICAgICAgICB9CgogICAgICAgICAgICBmdW5jdGlvbiBzdG9wTW92ZSgpIHsKICAgICAgICAgICAgICAgIGRvY3VtZW50LnJlbW92ZUV2ZW50TGlzdGVuZXIoJ21vdXNlbW92ZScsIG1vdmVXaW5kb3cpOwogICAgICAgICAgICAgICAgZG9jdW1lbnQucmVtb3ZlRXZlbnRMaXN0ZW5lcignbW91c2V1cCcsIHN0b3BNb3ZlKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcignbW91c2Vtb3ZlJywgbW92ZVdpbmRvdyk7CiAgICAgICAgICAgIGRvY3VtZW50LmFkZEV2ZW50TGlzdGVuZXIoJ21vdXNldXAnLCBzdG9wTW92ZSk7CiAgICAgICAgfQoKICAgICAgICAKICAgICAgICBmdW5jdGlvbiBjcmVhdGVCcm93c2VyV2luZG93KHVybCkgewogICAgICAgICAgICBjb25zdCB3aW5kb3dJZCA9IGB3aW5kb3cke3pJbmRleH1gOwogICAgICAgICAgICBjb25zdCBpZnJhbWVJZCA9IGBpZnJhbWUke3pJbmRleH1gOwoKICAgICAgICAgICAgY29uc3QgbmV3V2luZG93ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnZGl2Jyk7CiAgICAgICAgICAgIG5ld1dpbmRvdy5pZCA9IHdpbmRvd0lkOwogICAgICAgICAgICBuZXdXaW5kb3cuY2xhc3NOYW1lID0gJ3dpbmRvdyc7CiAgICAgICAgICAgIG5ld1dpbmRvdy5zdHlsZS5sZWZ0ID0gJzEwMHB4JzsgCiAgICAgICAgICAgIG5ld1dpbmRvdy5zdHlsZS50b3AgPSAnMTAwcHgnOyAKICAgICAgICAgICAgbmV3V2luZG93LnN0eWxlLnpJbmRleCA9ICsrekluZGV4OyAKICAgICAgICAgICAgbmV3V2luZG93LmlubmVySFRNTCA9IGAKICAgICAgICAgICAgPGRpdiBjbGFzcz0id2luZG93LXRpdGxlYmFyIiBvbm1vdXNlZG93bj0iZHJhZ1dpbmRvdygnJHt3aW5kb3dJZH0nLCBldmVudCkiPgogICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9InRpdGxlIj7mtY/op4jlmajnqpflj6M8L3NwYW4+CiAgICAgICAgICAgICAgICA8YnV0dG9uIGNsYXNzPSJjbG9zZS1idG4iIG9uY2xpY2s9ImNsb3NlV2luZG93KCcke3dpbmRvd0lkfScpIj5YPC9idXR0b24+CiAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJ3aW5kb3ctY29udGVudCI+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJpZnJhbWUtY29udGFpbmVyIj4KICAgICAgICAgICAgICAgICAgICA8aWZyYW1lIGlkPSIke2lmcmFtZUlkfSIgc3JjPSIiPjwvaWZyYW1lPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJyZXNpemUtaGFuZGxlIiBvbm1vdXNlZG93bj0ic3RhcnRSZXNpemUoZXZlbnQpIj48L2Rpdj4KICAgICAgICBgOwogICAgICAgICAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKG5ld1dpbmRvdyk7CgogICAgICAgICAgICAKICAgICAgICAgICAgY29uc3QgaWZyYW1lID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoaWZyYW1lSWQpOwogICAgICAgICAgICBpZiAodXJsKSB7CiAgICAgICAgICAgICAgICBpZnJhbWUuc3JjID0gdXJsOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgY29uc3QgaW5wdXRVcmwgPSBwcm9tcHQoJ+ivt+i+k+WFpee9keWdgO+8micsICdodHRwczovLycpOwogICAgICAgICAgICAgICAgaWYgKGlucHV0VXJsKSB7CiAgICAgICAgICAgICAgICAgICAgaWZyYW1lLnNyYyA9IGlucHV0VXJsOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICAgICAgCiAgICAgICAgZnVuY3Rpb24gc3RhcnRSZXNpemUoZXZlbnQpIHsKICAgICAgICAgICAgY29uc3QgcmVzaXplSGFuZGxlID0gZXZlbnQudGFyZ2V0OwogICAgICAgICAgICBjb25zdCB3aW5kb3dFbGVtID0gcmVzaXplSGFuZGxlLnBhcmVudEVsZW1lbnQ7CiAgICAgICAgICAgIGNvbnN0IGlmcmFtZUNvbnRhaW5lciA9IHdpbmRvd0VsZW0ucXVlcnlTZWxlY3RvcignLmlmcmFtZS1jb250YWluZXInKTsKICAgICAgICAgICAgY29uc3QgaWZyYW1lID0gaWZyYW1lQ29udGFpbmVyLnF1ZXJ5U2VsZWN0b3IoJ2lmcmFtZScpOwogICAgICAgICAgICBsZXQgc3RhcnRYID0gZXZlbnQuY2xpZW50WDsKICAgICAgICAgICAgbGV0IHN0YXJ0WSA9IGV2ZW50LmNsaWVudFk7CiAgICAgICAgICAgIGxldCBzdGFydFdpZHRoID0gd2luZG93RWxlbS5vZmZzZXRXaWR0aDsKICAgICAgICAgICAgbGV0IHN0YXJ0SGVpZ2h0ID0gd2luZG93RWxlbS5vZmZzZXRIZWlnaHQ7CgogICAgICAgICAgICBmdW5jdGlvbiByZXNpemVXaW5kb3coZXZlbnQpIHsKICAgICAgICAgICAgICAgIGxldCBkeCA9IGV2ZW50LmNsaWVudFggLSBzdGFydFg7CiAgICAgICAgICAgICAgICBsZXQgZHkgPSBldmVudC5jbGllbnRZIC0gc3RhcnRZOwogICAgICAgICAgICAgICAgbGV0IG5ld1dpZHRoID0gc3RhcnRXaWR0aCArIGR4OwogICAgICAgICAgICAgICAgbGV0IG5ld0hlaWdodCA9IHN0YXJ0SGVpZ2h0ICsgZHk7CgogICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICB3aW5kb3dFbGVtLnN0eWxlLndpZHRoID0gbmV3V2lkdGggKyAncHgnOwogICAgICAgICAgICAgICAgd2luZG93RWxlbS5zdHlsZS5oZWlnaHQgPSBuZXdIZWlnaHQgKyAncHgnOwogICAgICAgICAgICAgICAgaWZyYW1lQ29udGFpbmVyLnN0eWxlLmhlaWdodCA9IGBjYWxjKDEwMCUgLSAke3dpbmRvd0VsZW0ucXVlcnlTZWxlY3RvcignLndpbmRvdy10aXRsZWJhcicpLm9mZnNldEhlaWdodH1weClgOwogICAgICAgICAgICB9CgogICAgICAgICAgICBmdW5jdGlvbiBzdG9wUmVzaXplKCkgewogICAgICAgICAgICAgICAgZG9jdW1lbnQucmVtb3ZlRXZlbnRMaXN0ZW5lcignbW91c2Vtb3ZlJywgcmVzaXplV2luZG93KTsKICAgICAgICAgICAgICAgIGRvY3VtZW50LnJlbW92ZUV2ZW50TGlzdGVuZXIoJ21vdXNldXAnLCBzdG9wUmVzaXplKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcignbW91c2Vtb3ZlJywgcmVzaXplV2luZG93KTsKICAgICAgICAgICAgZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcignbW91c2V1cCcsIHN0b3BSZXNpemUpOwogICAgICAgIH0KICAgIDwvc2NyaXB0Pgo8L2JvZHk+Cgo8L2h0bWw+

3276 次点击
所在节点    奇思妙想
22 条回复
webbillion
130 天前
没用但有意思,不是还有 jslinux 么
leconio
130 天前
群晖主页
nzd
130 天前
对 iPad 或许有用
kero991
130 天前
前段时间不是有个很著名的开源项目是搞这个的吗
https://puter.com/
https://github.com/HeyPuter/puter

另外,更早的可道云虽然是个文件管理项目,但也有个“云桌面”来着
sentinelK
130 天前
窗口式交互在 2010 年左右火过一阵,但很快就烟消云散了。

窗口式交互有几个前提:
1 、需要有鼠标。
2 、对设备带宽有比较大的需求。
3 、屏幕需要够大。

然后就是 2010 年左右,带宽逐渐满足了,ExtJS 等类似 UI 框架开始发力,然后 2012 年就移动互联网了……
SkywalkerJi
130 天前
被手机 app 干掉了,电脑都没人用了,模拟 pc 桌面还有什么意义。
Configuration
130 天前
@SkywalkerJi [电脑都没人用了] ,企业里的人都用手机办公的吗?
cheneydog
130 天前
个人觉得适合集成各种管理软件。
不同软件的界面风格肯定是不同的,直接拉到一个管理端,要么重新开发界面、要么乱起八糟。
用桌面式方式集成,即使花花绿绿也不显得太乱。
SawyerGuo
130 天前
我很早之前也有这想法,但是这类东西基本都没法运行常用 APP ,不如直接远程桌面。
meeop
130 天前
@kero991 这个好强大
Greendays
130 天前
@kero991 牛的,给家里服务器装个看看
royalknight
130 天前
借楼推荐下我的 webos: https://github.com/royalknight56/vtron
hades97
129 天前
有个叫 sealos 的,你可以看看
guhuisec
128 天前
summerLast
128 天前
LipGallagher
128 天前
部署完了基本就没开过了 https://nav.sob.im/
TaoQAQ
128 天前
有用,极空间就是配套的 Web 模拟桌面,用户操作起来有熟悉感。
KINGWAY
127 天前
有用的, 知道跨境行业的紫鸟浏览器吗? 大概率也是基于这个底层逻辑来实现的。
Meteora626
127 天前
记得小学那时候 qq 空间好多这玩意,点进去就是一台电脑 可以用 qq 播放器啥的
panda1001
126 天前
十几年前火了一阵子,企鹅家做了个 Q+桌面。后来手机无窗口还不适应,装了个悬浮窗 app

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1056167

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX