This repository was archived by the owner on Oct 29, 2024. It is now read-only.
File tree 6 files changed +22
-10
lines changed
6 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 9
9
doc
10
10
website
11
11
images
12
- assets
13
12
14
13
# examples
15
14
example
Original file line number Diff line number Diff line change 21
21
//= require blueimp-file-upload/js/jquery.fileupload
22
22
//= require blueimp-load-image/js/load-image
23
23
//= require blueimp-tmpl/js/tmpl
24
- //= require rails-ujs
25
24
//= require activestorage
26
- //= require turbolinks
27
25
//= require punchbox
28
26
//= require_tree .
29
27
30
- new PiwikAnalytics ( ) ;
28
+ new PiwikAnalytics ( )
31
29
32
30
$ ( document ) . on ( 'turbolinks:load' , function ( ) {
33
- new TooltipEnabler ( ) ;
34
- new InfiniteScrolling ( ) ;
35
- } ) ;
31
+ new TooltipEnabler ( )
32
+ new InfiniteScrolling ( )
33
+ } )
Original file line number Diff line number Diff line change 7
7
// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate
8
8
// layout file, like app/views/layouts/application.html.erb
9
9
10
- console . log ( 'Hello World from Webpacker' )
10
+ import Rails from '@rails/ujs'
11
+ import Turbolinks from 'turbolinks'
12
+ Rails . start ( )
13
+ Turbolinks . start ( )
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ html[lang="en"]
9
9
= csp_meta_tag
10
10
= action_cable_meta_tag
11
11
= piwik_meta_tags
12
+ = javascript_pack_tag 'application', 'data-turbolinks-track': 'reload'
12
13
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
13
14
= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
14
- = javascript_pack_tag 'application', 'data-turbolinks-track': 'reload'
15
15
16
16
body data-punchbox-controller =controller_path data-punchbox-action =action_name
17
17
= render 'layouts/navbar'
Original file line number Diff line number Diff line change 5
5
"lint" : " eslint --ext .js app/javascript"
6
6
},
7
7
"dependencies" : {
8
+ "@rails/ujs" : " ^6.0.0-alpha" ,
8
9
"@rails/webpacker" : " ^4.0.0-rc.7" ,
9
10
"CSSBox" : " TheLastProject/CSSBox" ,
10
11
"blueimp-file-upload" : " ^9.28.0" ,
11
12
"coffeescript" : " ^2.3.1" ,
12
13
"corejs-typeahead" : " ^1.2.1" ,
13
14
"jquery" : " ^3.2.1" ,
14
- "parsleyjs" : " ^2.8.0"
15
+ "parsleyjs" : " ^2.8.0" ,
16
+ "turbolinks" : " ^5.2.0"
15
17
},
16
18
"devDependencies" : {
17
19
"babel-eslint" : " ^10.0.1" ,
Original file line number Diff line number Diff line change 648
648
resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7"
649
649
integrity sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==
650
650
651
+ " @rails/ujs@^6.0.0-alpha " :
652
+ version "6.0.0-alpha"
653
+ resolved "https://registry.yarnpkg.com/@rails/ujs/-/ujs-6.0.0-alpha.tgz#d5761d93e19215f5f342229f934d5ca8f6dd22a5"
654
+ integrity sha512-6AZcab77PeJQv8RdfryDYh6tAGcndcRnqYaciLiFclADBPFE9Ip978pGCPiKcKGgCg8S1P1nZII+1GNIrUrx+g==
655
+
651
656
" @rails/webpacker@^4.0.0-rc.7 " :
652
657
version "4.0.0-rc.7"
653
658
resolved "https://registry.yarnpkg.com/@rails/webpacker/-/webpacker-4.0.0-rc.7.tgz#da354003dd0a0e23d801b75c21aa1f3dc722f732"
@@ -7058,6 +7063,11 @@ tunnel-agent@^0.6.0:
7058
7063
dependencies :
7059
7064
safe-buffer "^5.0.1"
7060
7065
7066
+ turbolinks@^5.2.0 :
7067
+ version "5.2.0"
7068
+ resolved "https://registry.yarnpkg.com/turbolinks/-/turbolinks-5.2.0.tgz#e6877a55ea5c1cb3bb225f0a4ae303d6d32ff77c"
7069
+ integrity sha512-pMiez3tyBo6uRHFNNZoYMmrES/IaGgMhQQM+VFF36keryjb5ms0XkVpmKHkfW/4Vy96qiGW3K9bz0tF5sK9bBw==
7070
+
7061
7071
tweetnacl@^0.14.3, tweetnacl@~0.14.0 :
7062
7072
version "0.14.5"
7063
7073
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
You can’t perform that action at this time.
0 commit comments