Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Save files back to server #145

Closed
wants to merge 482 commits into from

Conversation

thatkookooguy
Copy link
Member

@thatkookooguy thatkookooguy commented Jun 21, 2016

Change Summary

  • FUCKING SAVE FILES!!!! [resolves SAVE EXISTING FILES #144]

    We can now save already existing files :-) Later, when we'll start to add more keyboard shortcuts, we should add a cmd + s \ ctrl + s shortcut to save quickly

  • FUCKING SAVE & LOAD SETTINGS!!! [resolves Settings Feature #83]

now, if one of us changes the settings in the demo, anyone can see it on reload! 😄
The only issue I have remining is that for some reason, ruler other than 80 or 0 doesn't work 😢
Settings are saved in the user folder directory under the file .kibibit.json

We should change all files little by little to make everything more clear. But no rush, this is just a start

More info

how exciting! 😁

Before you submit a PR, make sure you did the following things:

  • did you link this PR to an issue?
  • did you lint your changes to both javascript and scss?
  • "I'm pretty sure I'll be able to read and understand this PR, even if I wasn't the author." - _said the PR author_

ortichon and others added 30 commits March 23, 2016 03:16
## summary
* code editor component gets the selected file path, get it's content and update the view
* file tree component gets the folder path, load the folder structure and update the tree
* main controller now acts as a "bridge" between the file tree and code editor components
* trailing white spaces deletion
* multiple var declaration fix
* merged two duplicate selectors to 1 in scss
Currently, the `style.scss` file contains all of our override styles. we need to move this to another file to have the lint disabled for those only. The only thing we need to disable globally later is the `NestingDepth` and `SelectorDepth` rules
fix loading bar styling and disable some lint rules
made `isFullscreen` part of the init of the settings + made the button toggle that setting.
toggle material icon with isFullscreen setting
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-145 June 28, 2016 14:29 Inactive
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-145 June 29, 2016 22:23 Inactive

settingsService.put = function(req, res) {
if (req.body.newContent) {
fs.writeFile(settingsLocation, JSON.stringify(req.body.newContent, null, 2), 'utf8', function(err) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line must be at most 80 characters

@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-145 June 29, 2016 22:25 Inactive
Since require caches requests, we get the same json for the life of the server.

but we want to get the updated settings on each refresh
yess!!!!! for some reason the ruler is the only thing that doesn't work..... hmmmmm
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-145 June 29, 2016 23:26 Inactive
settings.init = function(savedSettings) {
cursor = savedSettings.cursor || {row: '0', column: '0'};
editorSettings.init(savedSettings.editorSettings);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon after statement

@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-145 June 29, 2016 23:43 Inactive
now, coded on kibibit :-)
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-145 June 29, 2016 23:45 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SAVE EXISTING FILES Settings Feature
4 participants