It looks great @AndyAlban and @Shane! This app is top notch.
Hi all,
I had a little bit of free time this morning, so I added arbitrary file uploads.
Now, you can upload files of any type, size, etc, to any domain which you own, these files can then be used in your blog posts, templates, etc.
Iām very close to wrapping up this project now, l just decided to add this feature because it felt like something which was going to be really useful and it wasnāt a lot of effort, since I had already built to tooling for uploading to the network.
Good stuff. Canāt wait to try it!
Time to open up a Feature Request List for 1.1 of SAFE-CMS : ) Great work!
Hi all, the day is finally here.
First of all, please be aware that this is a beta pre-release, things may be rough around the edges and there may be cross-platform issues, etc. The version 0.0.3 beta releases (for Windows and Linux) can be found here: https://github.com/badcodeltd/safecms/releases/tag/0.0.3.
Linux has had a lot less testing than Windows, so please consider it less stable, but Iām free for the next 24 hours to make any hot-fix builds needed and Iāll push a 0.0.4 release for Linux users if there are any major breaking bugs.
Installation instructions can be found here on the Github page: https://github.com/badcodeltd/safecms, though theyāre essentially ārun the safe-cms executable after unzipping the directoryā.
In addition, this also means that the code for the app is now open-source, so you can all have a good laugh at how bad it is. The code is released under an MIT license, so feel free to re-use any part of it.
A true 1.0.0 release should be within the coming 72 hours, including the MacOS build (and, if the electron-builder gods are friendly to us, NSIS installers for Windows and DMG installers for MacOS), but this beta release allows us to find anything weird, funky, nasty, etc.
On a personal note, Iām really nervous right now, thereās something oddly private about revealing a big chunk of code youāve written from scratch to the world like this, but Iām also really excited - not only did I manage to build the thing I said I would, but it has more features than expected and itās being delivered early.
If youāre specifically interested in the code I wrote (and much I borrowed from the safe-examples) to interface with the SAFE Network, that can be found here: https://github.com/badcodeltd/safecms/tree/master/src/safe
Long live the SAFE Network.
Edit
If you build something using the network, please post it here, I would really love to see what people make with the tool.
Edit 2
Updated release number to 0.0.3
Wohoo! Trying it now. Do you want any bugs found or commentary posted here or on Github?
Amazing, thanks a tonne!
To Github on the issues page if you already have an account: Issues Ā· badcodeltd/safecms Ā· GitHub would be best, as Iāll only have to copy them over anyway.
For those reading who donāt have a Github account, donāt worry - if you post it here, Iām more than happy to copy the issue over to Github for you.
Iāll be pushing a 0.0.3 release to fix a directory permissions issue on startup for Linux users - this will be available within the next 15 minutes.
The āDomainsā donāt work.
Windows 10-64. I try both, peruse 0.4.1 and SafeBrowser 0.9.0. As a test I revoke the SafeCMS Permissions and run again but the same results.
Okay, would you be able to do me a favour please @digipl?
Right click within the app and select āInspect Elementā, then click on āConsoleā within the window which pops up.
Try to create a domain, and let me know what error appears. Please send it to me directly as a message instead of posting it here, as it will likely contain some personal information about your machineās directory structure, etc. Thanks!
Edit
This seems to be specific to users who have previously created domains with the project decorum wallet, Iām adding a workaround for this now for version 0.0.3, but this shouldnāt effect other users.
Good to know it just wasnāt a problem for me. Same issue using prebuilt binary and build from source via github. Also, when I run ānpm packageā I get an error. Latest Ubuntu āArtfulā, linux x64, fresh SAFE account.
Version 0.0.3 is now available, I believe I have fixed both the directory permissions issue discovered by @JPL and the publicName decryption issue discovered by @digipl
On my local linux VM, I was encountering some issues where the Safe-CMS would refuse to render while the Safe Browser window was still open, I have no idea why I encountered this, as no one else seems to be, but itās something Iām looking in to. If you donāt get a loading screen (but instead get a blank screen) it may be worth closing the Safe Browser after authenticating and approving the app (and report this back to me so I can look in to why) as itās tricky to reproduce, and could simply be a memory issue, or similar.
@jlpell Iāve removed npm package
from the package.json, this was legacy, I use npm dist-linux
or npm dist-windows
instead.
Edit
I can confirm from a private conversation with @digipl and @JPLās post here that the two issues encountered in 0.0.2 have been fixed by 0.0.3.
I am also getting this error on Fedora. Closing Peruse allows the app to render properly, as you say.
Yeah, Iām not exactly sure why thatās happening on Linux, it seems that the Electron window loadUrl function doesnāt actually return anything until the Safe Browser process is closed - but that makes no sense, since the Safe Browser call isnāt executed until after the page is loaded.
So essentially, the page doesnāt load, because something which happens after it has already loaded is stopping it from loading.
I have a feeling itās either an issue with threading, or itās a function of Electron which considers the Safe-CMS a āhiddenā window because the Safe Browser is loaded on top of it, so Electron is pausing the render thread. Iām sure itāll be a one line configuration change, itās just figuring out which flag I need to set.
OK, progress - I created a domain āhelloooooā and added a service āworldā - all good. But when I tried to add a service to an existing domain ājpl7ā I got an error (tried other strings too, same result).
Okay, thatās good, could you give me some background information about JPL7? What tool was it created with (and version, if you know) does it already have any services, etc?
It was created using web-hosting-manager-v0.4.4-linux-x64 and it has no services
With @JPLās help Iāve diagnosed this issue and create an issue on Github to track it: Unable to create unencrypted services within encrypted domains Ā· Issue #6 Ā· badcodeltd/safecms Ā· GitHub I probably wonāt fix this tonight, but Iāll likely tackle it tomorrow in my live stream on Twitch.
In short: websites created with the web hosting manager are encrypted (private) by default, the blogs I create are unencrypted (public) by default, I need to detect the encryption state of any given domain and create files and services with that same value.
EDIT: I was being dumb here (moral: donāt drink, watch TV and look at code at the same time)⦠see my reply below.
Iām curious about this Shane, can you say a bit more. Iām wondering why WHM would create stuff that is published as private, or how it becomes public, as Iām doing similar stuff - storing LDP resources, and would like these to be accessible similar to a website, but over LDP (a REST API Iām providing in the client).
What exactly is created private by WHM and how can this be accessed by everyone?
Thanks.
Iām still investigating this, but I will get back to you, itās possible Iām totally wrong - unfortunately, the code has absolutely no documentation for what toEncrypt
is for and why some keys are encrypted and others arenāt. Iāll post it in here once I discover why.