Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Fullscreen mode for advanced json editor #42

Closed
wants to merge 20 commits into from
Closed

Fullscreen mode for advanced json editor #42

wants to merge 20 commits into from

Conversation

gastonche
Copy link
Contributor

PR for issue #41
I have added the full screen mode to the advanced json editor added lately. So one can toggle full screen mode on and off easily now.

@coveralls
Copy link

coveralls commented Mar 10, 2017

Coverage Status

Coverage remained the same at 99.877% when pulling 84a9ea2 on gastonche:fullscreen_editor into 3a7287d on openwisp:master.

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

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

I left you a formal review for style issues.

Could you please also squash the commits into one?

Try to use a commit message like the following:

[prefix] Past tense verb of action completed

Example:

[admin] Added full screen to advanced mode #41

Implements and closes #41 

I will test the the feature asap.

@@ -21,6 +26,10 @@
fontSize: 14,
showInvisibles: true
});

//add listener to .screen-mode button for toggleScreenMode
Copy link
Member

Choose a reason for hiding this comment

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

leave a space after //:

// add listener to .screen-mode button for toggleScreenMode

var initAdvancedEditor = function(target, data, schema){

Copy link
Member

Choose a reason for hiding this comment

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

remove blank line for consistency with the rest of the code (increase line-height in your editor if you think lines are too close together)

@@ -21,6 +26,10 @@
fontSize: 14,
showInvisibles: true
});

Copy link
Member

Choose a reason for hiding this comment

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

remove this blank line too

@@ -21,6 +26,10 @@
fontSize: 14,
showInvisibles: true
});

//add listener to .screen-mode button for toggleScreenMode

Copy link
Member

Choose a reason for hiding this comment

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

same here


//set the advanced editor container to full screen mode
toggleFullScreen();

Copy link
Member

Choose a reason for hiding this comment

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

same here, these blank lines are not needed, the code is readable enough to be understood without them

@gastonche
Copy link
Contributor Author

gastonche commented Mar 10, 2017 via email

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.877% when pulling a900da2 on gastonche:fullscreen_editor into 3a7287d on openwisp:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.877% when pulling a900da2 on gastonche:fullscreen_editor into 3a7287d on openwisp:master.

rohithasrk and others added 13 commits March 10, 2017 09:18
Show template name instead of config name (more useful).
Allows applying the admin theme for the frontend.
Added syntax highlighting, line numbers and
other nice features via the ace json editor

Closes #40 (commits were squashed and merged manually).
- switched default theme to a dark theme
- set indentation to 4 spaces
- set font size to 14px
- show invisibles
- allow only 'code' mode (less is more)
@coveralls
Copy link

coveralls commented Mar 10, 2017

Coverage Status

Coverage remained the same at 99.877% when pulling 323e71a on gastonche:fullscreen_editor into 3a7287d on openwisp:master.

@coveralls
Copy link

coveralls commented Mar 10, 2017

Coverage Status

Coverage remained the same at 99.877% when pulling 10e7332 on gastonche:fullscreen_editor into 3a7287d on openwisp:master.

@nemesifier
Copy link
Member

Read a guide on how to use git rebase interactive to learn to squash your commits into one.

@nemesifier
Copy link
Member

Pay attention, you are including commits that are already on master, please fix it, I suggest you to start from a clean master branch

@gastonche
Copy link
Contributor Author

okay, let me do so now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants