Bringing back features from HFS2 #657
Replies: 12 comments 19 replies
-
Yes, please please please restore the tons of missing functionality from v2. Alternatively, please update v2 to fix the security issue. V2 was TONS better than v3 for my use case. I'm considering risking the security threat rather than use v3, it's that much worse. Icons for added items (directories, files, etc.) No import / upgrade of existing VFS files from v2 -> v3 (huge management pain!!) |
Beta Was this translation helpful? Give feedback.
-
you understand that the problem in v2 allows strangers to execute any command on your computer?
it seems fair
the vfs is in config, and you can have different configs. You can specify the file when starting, as a parameter at command line.
what you mean by simple?
hfs3 is actually ~3MB. The rest is nodejs, that is bundled in the exe for convenience.
i guess this is the issue you recently opened
that's not planned, not by me at least. I will reply to the first post asap. |
Beta Was this translation helpful? Give feedback.
-
you can also consider calling a powershell script, if the module proves to be not a nice option.
sounds promising, we can explore that
well, i guess it's best if we manually convert hfs-logo-icon.svg in admin/public instead.
but would the server part stay separated from the gui?
are you sure electron allows that? that's not so obvious
true
you must also consider "competition". File servers and Web servers tend to be smaller. |
Beta Was this translation helpful? Give feedback.
-
ok, but you cannot make this "version" with nodejs, of course :) i considered bun long ago when it was still too soon for some missing features, especially on Windows. |
Beta Was this translation helpful? Give feedback.
-
at the moment tray icon is not a possibility, i miss the necessary commands.
not random, there's a reason to this: both https protocol and certificate are not limited to the internet, while letsencrypt is.
you can go directly to the admin-panel address, no need to pass by the options. You should consider adding it to the favorite.
there are tools that let you hide to tray apps.
i don't think there's any. The only source of information is the source code, sorry. |
Beta Was this translation helpful? Give feedback.
-
this is ready to land with 0.54
i wasn't sure about any choice with the web icon, so i didn't pick any |
Beta Was this translation helpful? Give feedback.
-
version 0.54.0-alpha1 is out and includes this |
Beta Was this translation helpful? Give feedback.
-
Just tried 0.54.0-alpha1 and the icons work, but there's a caching issue. Steps to reproduce:Set the icon to a file and save that change. Now change the icon to default or to an embedded icon. Now change the icon to a file again (different from the file used the first time). BTW, completely exiting the HFS server and restarting it also does not fix this caching issue. I therefore suspect it is actually the browser caching this image and the server is simply not setting the correct expiry headers on the image to force it to be reloaded. I'm doing this on Win 10, 64 bit using Chrome Version 126.0.6478.128 (Official Build) (64-bit) |
Beta Was this translation helpful? Give feedback.
-
the fix is not retroactive, meaning that if your browser has still an old response in the cache, you will still see the problem. |
Beta Was this translation helpful? Give feedback.
-
ok thanks, i will test it again. |
Beta Was this translation helpful? Give feedback.
-
The problems that you are referring to are caused by the same bug for which i decided to retire alpha3: it is affecting not just login as i initially thought, but most dialogs. |
Beta Was this translation helpful? Give feedback.
-
@jbrown123 thanks to your verifications, I've found out that the caching information wasn't enough, and it would reuse the previous file in case it has a newer timestamp on file system. |
Beta Was this translation helpful? Give feedback.
-
This is a continuation of: rejetto/hfs2#43
You're quite right, I was actually thinking more of releasing a plugin package that would make use of that. In fact, all features like this need to be a plugin since HFS 3 supports this so well.
Regarding the use case, it is used to deliver important notifications to the user, and also it can be used to notify of updates, etc.
Additionally, I'll be very interested in a plugin that would display the progress of file download in the tray bar, like how HFS 2 (R.I.P) used to do.
I see, I can understand why
pkg
is abandoned by @vercel.I did some research and while
pkg
doesn't provide such feature, it is indeed possible to change the icon using methods to directly modify the resources that is included in the.exe
file. I'm interested in doing this and submitting a PR, you'll need to add some development packages such asresedit
. This tool is also written entirely injs
so it's a) cross platform and b) doesn't execute any binaries so it can be used for cross building of HFS.This can also be used to attach version information and company info to the resulting
.exe
file and can also be used with whatever build process that you may use later. I also implore you to setup GitHub Actions so that HFS can be entirely built on the cloud using CI, instead of building it on your own machine and uploading it to the releases page.Are you fine with me submitting PRs that would address the icon issue? I would be very happy to contribute to other areas as well. I'm a bit busy now but I would love to code for the admin page as well, I believe it can improve in many areas. What stack are you using for JS/CSS/components? It isn't vanilla JS, right?
Please commit a
.ico
file that can be used for this (if you haven't had already). I can also make use of utilities that would generate this on the fly from the.svg
/.png
files included, it takes ~500KB of the development packages to do so.Lastly please also consider a plugin or something that would utilize electron. All modern apps use something like this and one important use case for it in my opinion is the drag & drop functionality that it provides similar to HFS 2.
I also believe the icon/tray/... other areas can also be addressed with this too, however I can predict how users will react when seeing its ~90mb size 😆
In any case, the era of 2-5MB exe files is over in my opinion. We must all embrace the new era of cool web-based apps. I use things like Balena Etcher, VS Code, Discord, etc. Instead of Win32 Disk Imager, Notepad++, TeamSpeak now.
I also use Postman, Insomnia, and other apps that use Web technologies. I welcome and embrace HFS' transition from a Delphi app to a full-fledged and well-made app that would be used to serve HTTP files 👍🏻 Thanks for the development!
Originally posted by @DRSDavidSoft in rejetto/hfs2#43 (comment)
Beta Was this translation helpful? Give feedback.
All reactions