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: Add modal view component #225

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
278cd0c
rails app:update changes
syphax-bouazzouni May 26, 2022
c776c53
fix the rails zeitwerk:check warnings
syphax-bouazzouni May 26, 2022
a7132a9
rails 7 app:update changes
syphax-bouazzouni May 28, 2022
c5d286b
update rails config load_defaults to 7.0
syphax-bouazzouni May 28, 2022
99c42ae
update db schema to version 7.0
syphax-bouazzouni May 28, 2022
1f56d3c
install jsbundling-rails
syphax-bouazzouni May 28, 2022
e7002ec
import and install stimulus
syphax-bouazzouni May 28, 2022
6cc4604
add to Gemfile the new gems of Rails 7
syphax-bouazzouni May 29, 2022
98d133c
add the asset pipeline entry points manifest
syphax-bouazzouni May 29, 2022
6c1d365
add the esbuild bundle to the application asset pipeline
syphax-bouazzouni May 29, 2022
87e809e
use the new Rails 7 js compressor (terser)
syphax-bouazzouni May 29, 2022
a36924c
use the new Rails 7 sass compiler
syphax-bouazzouni May 29, 2022
452e736
remove useless precompile additional assets already added by default
syphax-bouazzouni May 29, 2022
82ed032
enable assets.debug in development environment
syphax-bouazzouni May 29, 2022
ada92ff
remove and replace sass ruby script functions because did not work
syphax-bouazzouni May 29, 2022
1e84464
enable turbo-rails but disable by default turbo-drive
syphax-bouazzouni Sep 19, 2022
9371bc4
replace bp_ontology_viewer.js with turbo frame in the ontology viewer
syphax-bouazzouni Sep 19, 2022
f73f7fc
fix visits chart not showing
syphax-bouazzouni Sep 19, 2022
4e06e29
fix more... submission button not working
syphax-bouazzouni Sep 19, 2022
0987e08
fix notes js
syphax-bouazzouni Sep 19, 2022
d21c570
fix notes unsubscribe button
syphax-bouazzouni Sep 19, 2022
b07647a
fix mappings facebox links
syphax-bouazzouni Sep 19, 2022
8daa8f0
fix classes tree node click
syphax-bouazzouni Sep 20, 2022
0674ce2
fix classes jump to init
syphax-bouazzouni Sep 20, 2022
92a2060
fix properties tab init
syphax-bouazzouni Sep 20, 2022
9c7d3a2
add concept show endpoint
syphax-bouazzouni Sep 21, 2022
412bd3f
replace tree view node click js code with turbo_frames
syphax-bouazzouni Sep 21, 2022
a8e029b
update and centralize Split dependancy and usage
syphax-bouazzouni Sep 21, 2022
675c4f3
replace tree view display js with a turbo_frame and stimulus controller
syphax-bouazzouni Sep 21, 2022
ecfa8ca
exctract autocomplete behavior in a stimulus controller
syphax-bouazzouni Sep 21, 2022
6910d78
replace concept tabs js code to bootstrap navs
syphax-bouazzouni Sep 21, 2022
8005da0
fix notes link_button href
syphax-bouazzouni Sep 21, 2022
7e32997
add card style to the visualize partial
syphax-bouazzouni Sep 21, 2022
565e5c4
center the loader
syphax-bouazzouni Sep 21, 2022
bee5d70
remove HelloController and unused dependencies in package.json
syphax-bouazzouni Sep 21, 2022
fde69e0
add view component gem
syphax-bouazzouni Sep 21, 2022
d3351a0
configure view components
syphax-bouazzouni Sep 21, 2022
64e6ee9
update mappings from style
syphax-bouazzouni Sep 21, 2022
b41eb85
replace mappings show from rendering js to html
syphax-bouazzouni Sep 21, 2022
25922c2
add show_modal controller using bootstrap modal
syphax-bouazzouni Sep 22, 2022
0717542
add turbo modal controller to hide modal and remove content
syphax-bouazzouni Sep 22, 2022
7d43e2d
add turbo_modal view component
syphax-bouazzouni Sep 22, 2022
18b8e66
remplace old modal for creating a new mapping with the modal component
syphax-bouazzouni Sep 22, 2022
5e73cee
remove unused js code in bp_create_mappings
syphax-bouazzouni Sep 22, 2022
b5f690e
remove forgotten import
syphax-bouazzouni Sep 22, 2022
31e9a89
Merge branch 'pr/refactor/ontology-viewer-replace-js-with-hotwire' in…
syphax-bouazzouni Sep 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ nohup.out
config/newrelic.yml

node_modules

/app/assets/builds/*
!/app/assets/builds/.keep

/node_modules
54 changes: 44 additions & 10 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '6.0.4.1'
gem 'rails', '7.0.3'

gem 'jsbundling-rails'

gem 'sassc-rails' #sass-rails replacent
gem 'terser' #ugilifer replacent

gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.0.3'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# gem 'duktape'
Expand All @@ -15,14 +18,35 @@ gem 'jquery-rails'
gem 'jquery-ui-rails'
gem 'select2-rails'


# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
gem 'sprockets-rails'


# Use the Puma web server [https://github.com/puma/puma]
gem 'puma', '~> 5.0'

# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
gem 'importmap-rails'

# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
gem 'turbo-rails'

# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
gem 'stimulus-rails'

# Build JSON APIs with ease [https://github.com/rails/jbuilder]
#gem "jbuilder"

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: %i[ mingw mswin x64_mingw jruby ]

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Reduces boot times through caching; required in config/boot.rb

# To use debugger
# gem 'debugger'
gem 'bootsnap', require: false

gem 'cube-ruby', require: 'cube'
gem 'dalli'
Expand All @@ -34,18 +58,19 @@ gem 'multi_json'
gem 'mysql2', '0.5.2'
gem 'oj'
gem 'open_uri_redirections'
gem 'psych', '< 4'
gem 'pry'
gem 'psych', '< 4'
gem 'rack-mini-profiler'
gem 'rails_autolink'
gem 'rdoc'
gem 'recaptcha', '~> 5.2'
gem 'rest-client'
gem 'stackprof', require: false
gem 'thin'
gem 'view_component', '~> 2.72'
gem 'will_paginate', '~> 3.0'

gem 'ontologies_api_client', github: 'ncbo/ontologies_api_ruby_client', tag: 'v2.1.0'
gem 'ontologies_api_client', github: 'ontoportal-lirmm/ontologies_api_ruby_client', branch: 'development'

group :staging, :production do
# application monitoring
Expand All @@ -68,12 +93,21 @@ group :development do
gem 'brakeman', require: false
gem 'rubocop', require: false
# gem 'i18n-debug'
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem 'debug', platforms: %i[ mri mingw x64_mingw ]

# Use console on exceptions pages [https://github.com/rails/web-console]
gem 'web-console'
end

group :test, :development do
gem 'rspec-rails'
end

group :test do
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
gem 'capybara'
end
gem 'selenium-webdriver'
gem 'webdrivers'
end

Loading