locally loading exported .zip project? #187
Replies: 4 comments 6 replies
-
An easy way to directly share your content, for demonstration purposes, would be to use WebTorrent. I wrote a little post on this: https://liascript.github.io/blog/sharing-content-via-webtorrent/ This would only require to download and extract the zip and then to move all files to instant.io ... If you have ownCloud or Nextcloud, then you should also be able to upload your content there and simply link it, as with GitHub. With Dropbox, this is unfortunately not possible anymore ... If you have only an example, you could try to share your content directly from the editor "Share via data-URI" this will encode the entire README into the URL, which can then be shared with your colleagues. The longer the content, the longer the URL. This works also with the editor, by using snap-shot-URL, this will encode the content and open the editor ... However, and as you have mentioned, you can go online with your editor. You can try this out with different browsers. If you go online with WebRTC, then the URL changes. Copy this URL into the other Browser (don't use the same browser twice), the states will be synced. Hence, if you have a couple of multimedia-files uploaded, the synchronization might take some time ... In this case you can now work collaboratively on the same document, all changes will be transmitted from one browser to the other ... WebSocket, simply uses another server as a relay, but does not store any content. All synchronization happens securely only between the browsers as endpoint ... Uploading multimedia to gist is unfortunately not possible by using the API. Although, I can upload multiple files, only text files are accepted. I also tried base64 encoding / data-protocol, of images which means, the images are stored as hell long URLs within the text. But, this is also prohibited and blocked by GitHub. I hope that we can later connect such projects from the live-editor and directly connect them with GitHub... |
Beta Was this translation helpful? Give feedback.
-
Concerning WebTorrent, some of these "trackers" might fail, I think if the network administrator is not too restrictive, then you will get a connection. The thing with the NextCloud is bad news ... LiaScript uses the URL of the README as the base URL and sets the address of images, etc. relative to this. If the path of the README is somehow encoded within the query-parameters, then this approach fails. Especially if keys are used ... Some time ago, Dropbox offered such simple download-links, but they removed it ... Thanks for trying out... I will have to check, if this can be solved somehow ... Embedding images into the URL does not work at the moment. I think this will also blow-up the URL length ... After a few thousand characters, GitHub will block it ... Syncing should work in theory also if you are offline and later come back online ... so two authors should be able to synchronize their work also after offline times ... We use Yjs for this task. A library for conflict-free-replicated-data types. Also in theory they should always merge, thus, all peers will end up with the same version, but Yjs can also be very strict, when merging ... If you predefine your areas: # course
--------------
author A
# Sec 1
....
--------------
author B
# Sec n Then there should not be any problems when merging your states. Only if changes are too chaotic, it might not look as expected ... You can try this out with different browser ... Due to this conversation, I experimented a bit with file-uploads. Actually, it should be not too complicated to implement something like this, which would allow uploading folders or zip-files... I think, this would be an interesting feature also for offline-learning ... |
Beta Was this translation helpful? Give feedback.
-
@michaelkowalczyk ... If you load the liascript index https://liascript.github.io/course , you will have now the possibility to upload projects directly from your device or from a zip file ... I hope the descriptions is self-explanatory ;-) |
Beta Was this translation helpful? Give feedback.
-
@michaelkowalczyk ... just updated the zip-loading functionality, which now allows uploading a zip-file to dropbox, github, or onedrive ... the Interpreter will now detect if it is a zip-file and apply the same methods for extracting and storing the content ... still a bit experimental and url-translation is done automatically ;-) |
Beta Was this translation helpful? Give feedback.
-
Each time when I like to show a project preview to a client or collaborator I need to do following steps.
Would it be possible to make the process quicker and have a way to load the project .zip locally in the browser?
Taking all files online is just needed when publishing the course at the final stage.
*working with free version of github as place to serve the project files is only possible when they are made public. When private the .md files url is not accessible.
The collaborative? WebRTC or Websocket functions are currently a mystery for me. Nothings comes up when searching for the terms in the documentation course https://liascript.github.io/course/?https://raw.githubusercontent.com/liaScript/docs/master/README.md#1
When using "Export to Github Gist" the externally embedded media files like "youtube" and "h5p" element do not appear.
Best regards
Michael
Beta Was this translation helpful? Give feedback.
All reactions