Comments (14)
I'd be interested in helping with this. Perhaps this feature could be introduced alongside a delete button in the UI.
from superpowers-core.
Cool, sounds great! I created a separate issue for project deletion: #99.
The way I see it, for project upload:
- We could add an import project button at the top of the project hub. The ZIP should be uploaded as-is to the server through socket.io.
- The server would unpack it in a temporary place (and check that it has the proper structure probably?)
fs.rename
the temporary folder into the user data projects folder- Load it through
ProjectHub.loadProject
- Notify users subscribed to the project hub of the new project's existence and call back to the uploading user to let them know the result.
And we'll need to figure out which package to use for unzipping (I don't believe we already do any unzipping in Superpowers currently, but it's worth a quick check to see if we already have a useful dependency).
Is that enough info to get you started?
from superpowers-core.
We do some unzipping in server/index when installing/updating systems or plugins.
See https://github.com/superpowers/superpowers/blob/0840b1f95a9ade091892aba6b55522fd8af581a7/server/index.ts#L227.
from superpowers-core.
Ah right, somehow didn't think of that. Well then that's one less decision to make!
from superpowers-core.
Hi! Is there any new stuff about this issue? :) Importing a project is a very interesting feature
from superpowers-core.
Hi! I would like to try this issue :3
I don't know yet enough Electron, nodeJS, Jade, etc.. But I'd love to learn!
I don't know how much time I will need to finish it :/
from superpowers-core.
sorry for dropping this back then, have been moving country / job etc.
from superpowers-core.
Hi guys! Sure feel free to give it a shot @Ilphrin! We haven't worked on it at all so what @elisee specified above should still be pretty much valid.
You can open a pull request when you have some basics going on even if it's not finished and we can then help you if needed.
And no problem @basiclaser ;)
from superpowers-core.
Hi @bilou84 , thanks :) I am on Discord so I will probably ask for help.
By the way, the format inside the Zip content of the project should it be exactly like a project inside the superpowers' folder or like what we have when we do "Build Project"?
from superpowers-core.
The discord chat is more about helping each other on how to use Superpowers.
This chat is the more suited one to talk about Superpowers development: https://gitter.im/superpowers/dev
As for your question, we should use the source project. So the data inside the Superpowers folder indeed. The exported project could be very different from the source (although it's not at the moment on the game system, but that is not a requirement). We can't provide a general way to convert it back into the source data.
from superpowers-core.
Thanks, I am registered now on gitter, if there is some question I will post it on there :)
OK, that's what I thought but wasn't sure. By the way, shouldn't there be a button in "Build Project" to export in a ZIP file, that can be imported back later?
from superpowers-core.
I don't know if it should be a part of the build project interface or in the server hub where you can see all projects and where you should be able to import them. But we definitly need something to export the project as well.
from superpowers-core.
IMHO, the "Build Project" button should be entirely in the server hub, as the project interface has already a lot of stuff printed and maybe later will need to show more things, but the server hub has a lot of free space to show something like this.
from superpowers-core.
I have the core of the code to fix this, but I have some troubles with the last point
Notify users subscribed to the project hub of the new project's existence and call back to the uploading user to let them know the result.
I don't understand exactly what are these variables (manifest and actualIndex).
from superpowers-core.
Related Issues (20)
- Systematically disconnected when trying to modify a script HOT 3
- Server management cancel buttons are missing text HOT 1
- local rotations are global HOT 1
- Typescript error checking is extremely slow HOT 6
- Add superpowers to IndieDB HOT 1
- Attempting to edit script from cloned git repo results in being disconnected from server HOT 2
- Loadscreen - legal HOT 1
- Can not move in the scene editor HOT 1
- Why the software history was not kept? HOT 2
- Sup.exit() HOT 1
- Pas de prévisualisation sur serveur externe HOT 2
- Prevent creating a project if no system is installed.
- Error - only a single primitive is supported - Importing 3D asset. HOT 4
- Possible bug in ArcadeBody2D HOT 1
- Can't create a project: this server doesn't have any systems installed yet. HOT 2
- Linux Mint 18.1 64 bit can't use buttons/load graphics
- [FEATURE] game and editor is working on glitch
- Possible bug in installation (or installation tutorial) HOT 3
- Keep super powers alive
- Is the engine dead? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superpowers-core.