mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
Add Deface hooks
This commit is contained in:
parent
c88ae84001
commit
32f03ec94c
3 changed files with 30 additions and 0 deletions
1
Gemfile
1
Gemfile
|
@ -49,6 +49,7 @@ gem 'remotipart', '~> 1.2' # Async file uploads
|
||||||
gem 'redcarpet' # Markdown parser
|
gem 'redcarpet' # Markdown parser
|
||||||
gem 'faker' # Generate fake data
|
gem 'faker' # Generate fake data
|
||||||
gem 'auto_strip_attributes', '~> 2.1' # Removes unnecessary whitespaces from ActiveRecord or ActiveModel attributes
|
gem 'auto_strip_attributes', '~> 2.1' # Removes unnecessary whitespaces from ActiveRecord or ActiveModel attributes
|
||||||
|
gem 'deface', '~> 1.0'
|
||||||
|
|
||||||
gem 'paperclip', '~> 4.3' # File attachment, image attachment library
|
gem 'paperclip', '~> 4.3' # File attachment, image attachment library
|
||||||
gem 'aws-sdk', '~> 2.2.8'
|
gem 'aws-sdk', '~> 2.2.8'
|
||||||
|
|
26
Gemfile.lock
26
Gemfile.lock
|
@ -43,6 +43,8 @@ GEM
|
||||||
arel (6.0.3)
|
arel (6.0.3)
|
||||||
aspector (0.14.0)
|
aspector (0.14.0)
|
||||||
ast (2.3.0)
|
ast (2.3.0)
|
||||||
|
auto_strip_attributes (2.1.0)
|
||||||
|
activerecord (>= 3.0)
|
||||||
autoprefixer-rails (6.1.2)
|
autoprefixer-rails (6.1.2)
|
||||||
execjs
|
execjs
|
||||||
json
|
json
|
||||||
|
@ -56,6 +58,10 @@ GEM
|
||||||
aws-sdk-v1 (1.66.0)
|
aws-sdk-v1 (1.66.0)
|
||||||
json (~> 1.4)
|
json (~> 1.4)
|
||||||
nokogiri (>= 1.4.4)
|
nokogiri (>= 1.4.4)
|
||||||
|
babel-source (5.8.35)
|
||||||
|
babel-transpiler (0.7.0)
|
||||||
|
babel-source (>= 4.0, < 6)
|
||||||
|
execjs (~> 2.0)
|
||||||
bcrypt (3.1.11)
|
bcrypt (3.1.11)
|
||||||
better_errors (2.1.1)
|
better_errors (2.1.1)
|
||||||
coderay (>= 1.0.0)
|
coderay (>= 1.0.0)
|
||||||
|
@ -84,9 +90,15 @@ GEM
|
||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
coffee-script-source (1.10.0)
|
coffee-script-source (1.10.0)
|
||||||
|
colorize (0.8.1)
|
||||||
commit_param_routing (0.0.1)
|
commit_param_routing (0.0.1)
|
||||||
concurrent-ruby (1.0.0)
|
concurrent-ruby (1.0.0)
|
||||||
debug_inspector (0.0.2)
|
debug_inspector (0.0.2)
|
||||||
|
deface (1.0.2)
|
||||||
|
colorize (>= 0.5.8)
|
||||||
|
nokogiri (~> 1.6.0)
|
||||||
|
polyglot
|
||||||
|
rails (>= 3.1)
|
||||||
delayed_job (4.1.1)
|
delayed_job (4.1.1)
|
||||||
activesupport (>= 3.0, < 5.0)
|
activesupport (>= 3.0, < 5.0)
|
||||||
delayed_job_active_record (4.1.0)
|
delayed_job_active_record (4.1.0)
|
||||||
|
@ -166,6 +178,7 @@ GEM
|
||||||
nokogiri (1.6.8)
|
nokogiri (1.6.8)
|
||||||
mini_portile2 (~> 2.1.0)
|
mini_portile2 (~> 2.1.0)
|
||||||
pkg-config (~> 1.1.7)
|
pkg-config (~> 1.1.7)
|
||||||
|
oj (2.17.4)
|
||||||
orm_adapter (0.5.0)
|
orm_adapter (0.5.0)
|
||||||
paperclip (4.3.2)
|
paperclip (4.3.2)
|
||||||
activemodel (>= 3.2.0)
|
activemodel (>= 3.2.0)
|
||||||
|
@ -177,6 +190,7 @@ GEM
|
||||||
ast (~> 2.2)
|
ast (~> 2.2)
|
||||||
pg (0.18.4)
|
pg (0.18.4)
|
||||||
pkg-config (1.1.7)
|
pkg-config (1.1.7)
|
||||||
|
polyglot (0.3.5)
|
||||||
powerpack (0.1.1)
|
powerpack (0.1.1)
|
||||||
puma (2.15.3)
|
puma (2.15.3)
|
||||||
rack (1.6.4)
|
rack (1.6.4)
|
||||||
|
@ -221,6 +235,7 @@ GEM
|
||||||
rgl (0.5.1)
|
rgl (0.5.1)
|
||||||
algorithms (~> 0.6.1)
|
algorithms (~> 0.6.1)
|
||||||
stream (~> 0.5.0)
|
stream (~> 0.5.0)
|
||||||
|
rkelly-remix (0.0.7)
|
||||||
roo (2.1.1)
|
roo (2.1.1)
|
||||||
nokogiri (~> 1)
|
nokogiri (~> 1)
|
||||||
rubyzip (~> 1.1, < 2.0.0)
|
rubyzip (~> 1.1, < 2.0.0)
|
||||||
|
@ -248,6 +263,7 @@ GEM
|
||||||
activesupport (>= 4.0.0)
|
activesupport (>= 4.0.0)
|
||||||
skylight (0.10.0)
|
skylight (0.10.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
|
sourcemap (0.1.1)
|
||||||
spinjs-rails (1.4)
|
spinjs-rails (1.4)
|
||||||
rails (>= 3.1)
|
rails (>= 3.1)
|
||||||
sprockets (3.5.2)
|
sprockets (3.5.2)
|
||||||
|
@ -257,6 +273,13 @@ GEM
|
||||||
actionpack (>= 3.0)
|
actionpack (>= 3.0)
|
||||||
activesupport (>= 3.0)
|
activesupport (>= 3.0)
|
||||||
sprockets (>= 2.8, < 4.0)
|
sprockets (>= 2.8, < 4.0)
|
||||||
|
starscope (1.5.3)
|
||||||
|
babel-transpiler (~> 0.7)
|
||||||
|
oj (~> 2.9)
|
||||||
|
parser (>= 2.2.2)
|
||||||
|
rkelly-remix (~> 0.0.7)
|
||||||
|
ruby-progressbar (~> 1.5)
|
||||||
|
sourcemap (~> 0.1)
|
||||||
stream (0.5)
|
stream (0.5)
|
||||||
thor (0.19.1)
|
thor (0.19.1)
|
||||||
thread_safe (0.3.5)
|
thread_safe (0.3.5)
|
||||||
|
@ -289,6 +312,7 @@ PLATFORMS
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
ajax-datatables-rails (~> 0.3.1)
|
ajax-datatables-rails (~> 0.3.1)
|
||||||
aspector
|
aspector
|
||||||
|
auto_strip_attributes (~> 2.1)
|
||||||
awesome_print
|
awesome_print
|
||||||
aws-sdk (~> 2.2.8)
|
aws-sdk (~> 2.2.8)
|
||||||
aws-sdk-v1
|
aws-sdk-v1
|
||||||
|
@ -301,6 +325,7 @@ DEPENDENCIES
|
||||||
bootstrap_form
|
bootstrap_form
|
||||||
byebug
|
byebug
|
||||||
commit_param_routing
|
commit_param_routing
|
||||||
|
deface (~> 1.0)
|
||||||
delayed_job_active_record
|
delayed_job_active_record
|
||||||
devise (= 3.5.6)
|
devise (= 3.5.6)
|
||||||
devise-async
|
devise-async
|
||||||
|
@ -338,6 +363,7 @@ DEPENDENCIES
|
||||||
shoulda-matchers (>= 3.0.1)
|
shoulda-matchers (>= 3.0.1)
|
||||||
skylight
|
skylight
|
||||||
spinjs-rails
|
spinjs-rails
|
||||||
|
starscope
|
||||||
turbolinks
|
turbolinks
|
||||||
tzinfo-data
|
tzinfo-data
|
||||||
uglifier (>= 1.3.0)
|
uglifier (>= 1.3.0)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta data-hook="head-js">
|
||||||
<title><%=t "head.title", title: (yield :head_title) %></title>
|
<title><%=t "head.title", title: (yield :head_title) %></title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
||||||
|
@ -15,6 +16,8 @@
|
||||||
</head>
|
</head>
|
||||||
<body class="<%= yield :body_class %>">
|
<body class="<%= yield :body_class %>">
|
||||||
|
|
||||||
|
<span style="display: none;" data-hook="body-js"></span>
|
||||||
|
|
||||||
<!-- Activity modal -->
|
<!-- Activity modal -->
|
||||||
<div class="modal" id="activity-modal" tabindex="-1" role="dialog" aria-labelledby="activity-modal-label">
|
<div class="modal" id="activity-modal" tabindex="-1" role="dialog" aria-labelledby="activity-modal-label">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
|
|
Loading…
Reference in a new issue