-
Notifications
You must be signed in to change notification settings - Fork 206
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
Upgrade to bootstrap 4 #461
Upgrade to bootstrap 4 #461
Conversation
Hi @Stefanni. Apologies for having removed those dependencies, it was an
oversight on my part! I thought I had restored them!
…On 28/03/19 19:21, Stefanni wrote:
Fixes #377 <#377>
Hi all, I have some questions:
* Why do we have two |bower.json| files? I wasn't sure which one to
use, so I updated both of them.
* In order to make Bootstrap 4 work, I had to install the
|popper_js| gem and update |jquery-ui| version.
* @icarito <https://github.com/icarito> after I rebased my branch
with some of your work from #450
<#450> the map on
|/maps/some-map-title| wasn't working... It only worked after I
re-added 3 dependencies that you had removed:
|# javascripts/application.js //= require
leaflet-easybutton/src/easy-button.js //= require leaflet-google/index.js |
and
|# javascripts/maps.js //= require
seiyria-bootstrap-slider/dist/bootstrap-slider.min.js |
@icarito <https://github.com/icarito> Did you manage to make the maps
be shown without those 3 dependencies?
------------------------------------------------------------------------
A little more about this PR: I just updated some of the components
that were broken from switching to Bootstrap 4, especially because we
will soon update the UI.
Please let me know if I did those version updates correctly, this was
my first time doing something like this! :)
Appreciate any help here! @jywarren <https://github.com/jywarren>
------------------------------------------------------------------------
You can view, comment on, or merge this pull request online at:
#461
Commit Summary
* Start upgrading Bootstrap
* Updating views with Bootstrap 4
* more bootstrap 4 tweaks
* more tweaks
* Upgrade jquery-ui for geolocation
* Fix tags form
* Those dependencies are required to show the map on /maps
* fix size of maps images
File Changes
* *M* Gemfile
<https://github.com/publiclab/mapknitter/pull/461/files#diff-0> (2)
* *M* Gemfile.lock
<https://github.com/publiclab/mapknitter/pull/461/files#diff-1> (2)
* *M* app/assets/bower.json
<https://github.com/publiclab/mapknitter/pull/461/files#diff-2> (2)
* *M* app/assets/javascripts/application.js
<https://github.com/publiclab/mapknitter/pull/461/files#diff-3> (4)
* *M* app/assets/javascripts/maps.js
<https://github.com/publiclab/mapknitter/pull/461/files#diff-4> (2)
* *M* app/assets/stylesheets/header.css.scss
<https://github.com/publiclab/mapknitter/pull/461/files#diff-5> (61)
* *M* app/assets/stylesheets/maps.css.scss
<https://github.com/publiclab/mapknitter/pull/461/files#diff-6> (4)
* *M* app/assets/stylesheets/style.css.scss
<https://github.com/publiclab/mapknitter/pull/461/files#diff-7> (14)
* *M* app/views/images/_new.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-8> (14)
* *M* app/views/layouts/_header.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-9> (55)
* *M* app/views/layouts/_login.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-10> (32)
* *M* app/views/layouts/_login_form.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-11> (14)
* *M* app/views/layouts/knitter2.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-12>
(150)
* *M* app/views/maps/_edit.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-13> (1)
* *M* app/views/maps/_exports.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-14> (4)
* *M* app/views/maps/_list.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-15> (2)
* *M* app/views/maps/_search.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-16> (14)
* *M* app/views/maps/_sidebar_annotations.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-17> (4)
* *M* app/views/maps/_sidebar_exports.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-18> (14)
* *M* app/views/maps/index.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-19> (14)
* *M* app/views/maps/new.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-20> (11)
* *M* app/views/maps/show.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-21> (20)
* *M* app/views/tags/_index.html.erb
<https://github.com/publiclab/mapknitter/pull/461/files#diff-22> (39)
* *M* bower.json
<https://github.com/publiclab/mapknitter/pull/461/files#diff-23> (7)
Patch Links:
* https://github.com/publiclab/mapknitter/pull/461.patch
* https://github.com/publiclab/mapknitter/pull/461.diff
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#461>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMMS2AawtUa4avsVtI0CY_keGUuan48ks5vbVybgaJpZM4cRXjm>.
|
Actually I had tried this in order to set us up with a staging environment like we have for plots2 - in #429 and related issues we had a lot of moving around of dependency installation and I thought I'd put it all back, thanks for catching it! I have here to share with you that our staging instances should be functional (currently we have an empty database but I'll copy database from production). http://mapknitter-unstable.laboratoriopublico.org/ (built from unstable branch) @stefannibrasil @sashadev-sky @jywarren I hope it will be useful! |
@icarito Thank you!!! |
oh, don't worry, just wanted to double check, @icarito :) that's awesome! I tried finding how to push to the staging branch, just run |
I need to document it in the README - it builds on pushing to `main`
branch and Unstable builds on `unstable` branch.
While it works right now I'm still pending to copy data from production,
then I'll document it!
Thanks!
…On 29/03/19 17:39, Stefanni wrote:
oh, don't worry, just wanted to double check, @icarito
<https://github.com/icarito> :)
that's awesome! I tried finding how to push to the staging branch, is
it just run |git push stable|? Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#461 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMMS_I4FfkDtHXLVILqRtt5cJn9ij68ks5vbpYvgaJpZM4cRXjm>.
|
* byebug gem added and alerts in separate file * adding byebug history to gitignore * adding timestamp to redirect * added z-index to render login dropdown above leaflet icon
…pknitter into upgrade-to-bootstrap-4
I believe data was copied in over the weekend! @stefannibrasil did it work to push this up? |
Fixes #377
Hi all, I have some questions:
bower.json
files? I wasn't sure which one to use, so I updated both of them.popper_js
gem and updatejquery-ui
version./maps/some-map-title
wasn't working... It only worked after I re-added 3 dependencies that you had removed:and
@icarito Did you manage to make the maps be shown without those 3 dependencies?
A little more about this PR: I just updated some of the components that were broken from switching to Bootstrap 4, especially because we will soon update the UI.
Please let me know if I did those version updates correctly, this was my first time doing something like this! :)
Appreciate any help here, I think I didn't forget anything here
Moved to #480
@jywarren @gauravano @sashadev-sky (any more others I should mention here?)