-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Organize the JS and less files by component. #3325
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
Conversation
Is there really any reason to have a separate style for each component? Wouldn't that be significantly less efficient than a single style.min.css that's slightly larger, but only needs to be downloaded / cached once? |
the vast majority of CSS is shared, so if we minify to separate style.min.css, we are essentially multiplying the amount of traffic / requests involved in fetching CSS by the number of pages, which is the opposite of the goal. |
Agree with the 2 comments of @minrk . |
Also, this can be part of another PR, but could the login form be pure JS. I have to re-dive into notebook-list and cluster-list, but something along the same would be great, to for example have a quick access list in the notebook file-open menu. |
|
@ellisonbg did you want to do the same separation of restful services and human on the js side that you did on the Python side? |
Also, was I wrong that you were going to put the IPython stuff in a single 'ipython' tree, rather than unpacking each subcomponent at the highest level? |
I do but we don't really have those cleanly separated in the js code right now. Sent from my iPhone On May 16, 2013, at 7:08 PM, Min RK notifications@github.com wrote:
|
Okay, that's for another PR, then? |
If #3321 has beed merged, shouldn't lots of those commits not even show up ? |
Probably just needs a rebase for them to not show up, which should actually proceed cleanly since those commits are in master. |
Short from my phone. Are the Line number back in the right place? Le mercredi 22 mai 2013, Brian E. Granger a écrit :
|
Ahh, good catch I will do that this morning. |
I think I already commented on te faulty commit. IIRC notebook.less Le mercredi 22 mai 2013, Brian E. Granger a écrit :
|
OK I have fixed line numbers. Only one other change I might make: create a services directory in static. |
Here, for the record: this breaks @Carreau's little slideshow mode button, but that's non-official so I wouldn't worry about it. I figure Matthias can update it once the merge goes in. Otherwise I can't see any problems after running a bunch of stuff. Given we have no testing of JS, our only recourse is to put this in front of trained monkeys (aka our users and devs), and dog-food it as fast as possible. That will at least give us a fighting chance of catching any serious problems before 1.0. My vote is to merge it now-ish. |
Let me fix the custom.JS stuff first. Sent from my iPhone On May 23, 2013, at 4:52 PM, Fernando Perez notifications@github.com wrote:
|
OK I have fixed the custom js/css stuff and have also styled the code/pre elements in rendered_html back to their pre bootstrap versions. As far as I know, this PR is ready to be merged. We can continue to test and fix the css styles in master - the main thing is that the re-org work doesn't seem to have broken anything. |
@@ -3,14 +3,14 @@ | |||
* | |||
* | |||
* Placeholder for custom user javascript | |||
* mainly to be overridden in profile/static/js/custom.js | |||
* mainly to be overridden in profile/static/custom/custom.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you move it back, thoses sentences shoudl be fixed here and there.
FYI, I need to look at requie.js, but I intend to write a small ext where you say: |
Comments as I use it, I'll modify as long as I discover things.
|
This should probably be inside the |
just centers form, rather than allowing it to wrap weirdly
set it to transparent, thus inheriting from the parent div.
CSS tweaks
everything I am aware of has been addressed now. |
Merging now... |
Organize the JS and less files by component, in the `static` directory of the notebook. This PR does the client side re-org that parallels the server side work in #3321. There are now subdirectories in `static/` for each part of the client; roughly speaking there is one subdir for each page, web service or component.
Organize the JS and less files by component, in the `static` directory of the notebook. This PR does the client side re-org that parallels the server side work in ipython#3321. There are now subdirectories in `static/` for each part of the client; roughly speaking there is one subdir for each page, web service or component.
This PR does the client side re-org that parallels the server side work in #3321. I have created subdirectories in static for each part of the client. Roughly speaking there is one subdir for each page, web service or component.
Todo:
custom.js
andcustom.css
should work. The top level js and css directories they were in are now gone.fabfile.py
to build all of the differentstyle.min.css
for each page.