Description:
jquery, bootstrap ok
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r865:8fe37a31b728 - - The requested commit is too big and content was truncated. 139 files changed. Show full diff

@@ -0,0 +1,9
1 + import { Application } from "@hotwired/stimulus"
2 +
3 + const application = Application.start()
4 +
5 + // Configure Stimulus development experience
6 + application.debug = false
7 + window.Stimulus = application
8 +
9 + export { application }
@@ -0,0 +1,7
1 + import { Controller } from "@hotwired/stimulus"
2 +
3 + export default class extends Controller {
4 + connect() {
5 + this.element.textContent = "Hello World!"
6 + }
7 + }
@@ -0,0 +1,11
1 + // Import and register all your controllers from the importmap under controllers/*
2 +
3 + import { application } from "controllers/application"
4 +
5 + // Eager load all controllers defined in the import map under controllers/**/*_controller
6 + import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
7 + eagerLoadControllersFrom("controllers", application)
8 +
9 + // Lazy load controllers as they appear in the DOM (remember not to preload controllers in import map!)
10 + // import { lazyLoadControllersFrom } from "@hotwired/stimulus-loading"
11 + // lazyLoadControllersFrom("controllers", application)
@@ -0,0 +1,11
1 + //we need jquery to load first, this is enforced by
2 + // doing
3 + // <%= javascript_import_module_tag('prepen_jquery') %>
4 + // before
5 + // <%= javascript_importmap_tags %>
6 + // (which loads application.js
7 +
8 + import jQuery from "jquery"
9 + window.$ = window.jQuery = jQuery;
10 +
11 + console.log('i am prepend_jquery');
new file 100644
@@ -1,125 +1,126
1 source 'https://rubygems.org'
1 source 'https://rubygems.org'
2 git_source(:github) { |repo| "https://github.com/#{repo}.git" }
2 git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
3
4 ruby '3.1.2'
4 ruby '3.1.2'
5
5
6 #rails
6 #rails
7 gem 'rails', '~>7.0'
7 gem 'rails', '~>7.0'
8
8
9 # The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
9 # The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
10 gem "sprockets-rails"
10 gem "sprockets-rails"
11
11
12 gem 'activerecord-session_store'
12 gem 'activerecord-session_store'
13 gem 'puma'
13 gem 'puma'
14
14
15 # Reduces boot times through caching; required in config/boot.rb
15 # Reduces boot times through caching; required in config/boot.rb
16 gem 'bootsnap', require: false
16 gem 'bootsnap', require: false
17
17
18 # Bundle edge Rails instead:
18 # Bundle edge Rails instead:
19 # gem 'rails', :git => 'git://github.com/rails/rails.git'
19 # gem 'rails', :git => 'git://github.com/rails/rails.git'
20
20
21 #---------------- database ---------------------
21 #---------------- database ---------------------
22 #the database
22 #the database
23 gem 'mysql2'
23 gem 'mysql2'
24 #for testing
24 #for testing
25 gem 'sqlite3'
25 gem 'sqlite3'
26 gem 'rails-controller-testing'
26 gem 'rails-controller-testing'
27 #for dumping database into yaml
27 #for dumping database into yaml
28 gem 'yaml_db'
28 gem 'yaml_db'
29
29
30
30
31 #------------- assset pipeline -----------------
31 #------------- assset pipeline -----------------
32 # Gems used only for assets and not required
32 # Gems used only for assets and not required
33 # in production environments by default.
33 # in production environments by default.
34 #sass-rails is depricated
34 #sass-rails is depricated
35 #gem 'sass-rails'
35 #gem 'sass-rails'
36 gem 'sassc-rails'
36 gem 'sassc-rails'
37 gem 'coffee-rails'
37 gem 'coffee-rails'
38
38
39 # See https://github.com/sstephenson/execjs#readme for more supported runtimes
39 # See https://github.com/sstephenson/execjs#readme for more supported runtimes
40 # gem 'therubyracer', :platforms => :ruby
40 # gem 'therubyracer', :platforms => :ruby
41
41
42 gem 'uglifier'
42 gem 'uglifier'
43
43
44 gem 'haml'
44 gem 'haml'
45 gem 'haml-rails'
45 gem 'haml-rails'
46
46
47 # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
47 # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
48 #gem 'turbolinks', '~> 5'
48 #gem 'turbolinks', '~> 5'
49 # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
49 # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
50 gem 'jbuilder'
50 gem 'jbuilder'
51
51
52
52
53 #in-place editor
53 #in-place editor
54 gem 'best_in_place', git: "https://github.com/mmotherwell/best_in_place"
54 gem 'best_in_place', git: "https://github.com/mmotherwell/best_in_place"
55
55
56 # jquery addition
56 # jquery addition
57 - gem 'jquery-rails'
57 + #gem 'jquery-rails'
58 - gem 'jquery-ui-rails'
58 + #gem 'jquery-ui-rails'
59 #gem 'jquery-timepicker-addon-rails'
59 #gem 'jquery-timepicker-addon-rails'
60 - gem 'jquery-tablesorter'
60 + #gem 'jquery-tablesorter'
61 - gem 'jquery-countdown-rails'
61 + #gem 'jquery-countdown-rails'
62
62
63 #syntax highlighter
63 #syntax highlighter
64 gem 'rouge'
64 gem 'rouge'
65
65
66 #bootstrap add-ons
66 #bootstrap add-ons
67 - gem 'bootstrap-sass', '~> 3.4.1'
67 + #gem 'bootstrap-sass', '~> 3.4.1'
68 - gem 'bootstrap-switch-rails'
68 + gem 'bootstrap', '~> 5.2'
69 - gem 'bootstrap-toggle-rails'
69 + #gem 'bootstrap-switch-rails'
70 - gem 'autoprefixer-rails'
70 + #gem 'bootstrap-toggle-rails'
71 - gem 'momentjs-rails', '>= 2.9.0'
71 + #gem 'autoprefixer-rails'
72 - gem 'rails_bootstrap_sortable'
72 + #gem 'momentjs-rails', '>= 2.9.0'
73 + #gem 'rails_bootstrap_sortable'
73 #gem 'bootstrap-datepicker-rails'
74 #gem 'bootstrap-datepicker-rails'
74 - gem 'bootstrap3-datetimepicker-rails', '~> 4.17.47'
75 + #gem 'bootstrap3-datetimepicker-rails', '~> 4.17.47'
75 #gem 'jquery-datatables-rails'
76 #gem 'jquery-datatables-rails'
76
77
77 #----------- user interface -----------------
78 #----------- user interface -----------------
78 gem 'simple_form'
79 gem 'simple_form'
79 #select 2
80 #select 2
80 gem 'select2-rails'
81 gem 'select2-rails'
81 #ace editor
82 #ace editor
82 gem 'ace-rails-ap'
83 gem 'ace-rails-ap'
83 #paginator
84 #paginator
84 #gem 'will_paginate', '~> 3.0.7'
85 #gem 'will_paginate', '~> 3.0.7'
85
86
86 gem 'mail'
87 gem 'mail'
87 gem 'rdiscount'
88 gem 'rdiscount'
88 gem 'dynamic_form'
89 gem 'dynamic_form'
89 gem 'in_place_editing'
90 gem 'in_place_editing'
90 #gem 'verification', :git => 'https://github.com/sikachu/verification.git'
91 #gem 'verification', :git => 'https://github.com/sikachu/verification.git'
91
92
92
93
93 #---------------- testiing -----------------------
94 #---------------- testiing -----------------------
94 gem 'minitest-reporters'
95 gem 'minitest-reporters'
95
96
96 #---------------- for console --------------------
97 #---------------- for console --------------------
97 gem 'fuzzy-string-match'
98 gem 'fuzzy-string-match'
98
99
99
100
100 group :development, :test do
101 group :development, :test do
101 # Call 'byebug' anywhere in the code to stop execution and get a debugger console
102 # Call 'byebug' anywhere in the code to stop execution and get a debugger console
102 gem 'debug', platforms: [:mri, :mingw, :x64_mingw]
103 gem 'debug', platforms: [:mri, :mingw, :x64_mingw]
103 end
104 end
104
105
105 group :development do
106 group :development do
106 # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
107 # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
107 gem 'web-console', '>= 3.3.0'
108 gem 'web-console', '>= 3.3.0'
108 gem 'listen', '>= 3.0.5', '< 3.2'
109 gem 'listen', '>= 3.0.5', '< 3.2'
109 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
110 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
110 gem 'spring'
111 gem 'spring'
111 gem 'spring-watcher-listen', '~> 2.0.0'
112 gem 'spring-watcher-listen', '~> 2.0.0'
112
113
113 # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
114 # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
114 # gem "rack-mini-profiler"
115 # gem "rack-mini-profiler"
115 end
116 end
116
117
117 group :test do
118 group :test do
118 # Adds support for Capybara system testing and selenium driver
119 # Adds support for Capybara system testing and selenium driver
119 gem 'capybara'
120 gem 'capybara'
120 gem 'selenium-webdriver'
121 gem 'selenium-webdriver'
121 gem 'webdrivers'
122 gem 'webdrivers'
122 end
123 end
123
124
124
125
125 gem "importmap-rails", "~> 1.1"
126 gem "importmap-rails", "~> 1.1"
@@ -1,377 +1,352
1 GIT
1 GIT
2 remote: https://github.com/mmotherwell/best_in_place
2 remote: https://github.com/mmotherwell/best_in_place
3 revision: 88eb3052623a9a6cd346864d2aca05021c2f80d0
3 revision: 88eb3052623a9a6cd346864d2aca05021c2f80d0
4 specs:
4 specs:
5 best_in_place (3.1.1)
5 best_in_place (3.1.1)
6 actionpack (>= 3.2)
6 actionpack (>= 3.2)
7 railties (>= 3.2)
7 railties (>= 3.2)
8
8
9 GEM
9 GEM
10 remote: https://rubygems.org/
10 remote: https://rubygems.org/
11 specs:
11 specs:
12 RubyInline (3.12.6)
12 RubyInline (3.12.6)
13 ZenTest (~> 4.3)
13 ZenTest (~> 4.3)
14 ZenTest (4.12.1)
14 ZenTest (4.12.1)
15 ace-rails-ap (4.4)
15 ace-rails-ap (4.4)
16 actioncable (7.0.4)
16 actioncable (7.0.4)
17 actionpack (= 7.0.4)
17 actionpack (= 7.0.4)
18 activesupport (= 7.0.4)
18 activesupport (= 7.0.4)
19 nio4r (~> 2.0)
19 nio4r (~> 2.0)
20 websocket-driver (>= 0.6.1)
20 websocket-driver (>= 0.6.1)
21 actionmailbox (7.0.4)
21 actionmailbox (7.0.4)
22 actionpack (= 7.0.4)
22 actionpack (= 7.0.4)
23 activejob (= 7.0.4)
23 activejob (= 7.0.4)
24 activerecord (= 7.0.4)
24 activerecord (= 7.0.4)
25 activestorage (= 7.0.4)
25 activestorage (= 7.0.4)
26 activesupport (= 7.0.4)
26 activesupport (= 7.0.4)
27 mail (>= 2.7.1)
27 mail (>= 2.7.1)
28 net-imap
28 net-imap
29 net-pop
29 net-pop
30 net-smtp
30 net-smtp
31 actionmailer (7.0.4)
31 actionmailer (7.0.4)
32 actionpack (= 7.0.4)
32 actionpack (= 7.0.4)
33 actionview (= 7.0.4)
33 actionview (= 7.0.4)
34 activejob (= 7.0.4)
34 activejob (= 7.0.4)
35 activesupport (= 7.0.4)
35 activesupport (= 7.0.4)
36 mail (~> 2.5, >= 2.5.4)
36 mail (~> 2.5, >= 2.5.4)
37 net-imap
37 net-imap
38 net-pop
38 net-pop
39 net-smtp
39 net-smtp
40 rails-dom-testing (~> 2.0)
40 rails-dom-testing (~> 2.0)
41 actionpack (7.0.4)
41 actionpack (7.0.4)
42 actionview (= 7.0.4)
42 actionview (= 7.0.4)
43 activesupport (= 7.0.4)
43 activesupport (= 7.0.4)
44 rack (~> 2.0, >= 2.2.0)
44 rack (~> 2.0, >= 2.2.0)
45 rack-test (>= 0.6.3)
45 rack-test (>= 0.6.3)
46 rails-dom-testing (~> 2.0)
46 rails-dom-testing (~> 2.0)
47 rails-html-sanitizer (~> 1.0, >= 1.2.0)
47 rails-html-sanitizer (~> 1.0, >= 1.2.0)
48 actiontext (7.0.4)
48 actiontext (7.0.4)
49 actionpack (= 7.0.4)
49 actionpack (= 7.0.4)
50 activerecord (= 7.0.4)
50 activerecord (= 7.0.4)
51 activestorage (= 7.0.4)
51 activestorage (= 7.0.4)
52 activesupport (= 7.0.4)
52 activesupport (= 7.0.4)
53 globalid (>= 0.6.0)
53 globalid (>= 0.6.0)
54 nokogiri (>= 1.8.5)
54 nokogiri (>= 1.8.5)
55 actionview (7.0.4)
55 actionview (7.0.4)
56 activesupport (= 7.0.4)
56 activesupport (= 7.0.4)
57 builder (~> 3.1)
57 builder (~> 3.1)
58 erubi (~> 1.4)
58 erubi (~> 1.4)
59 rails-dom-testing (~> 2.0)
59 rails-dom-testing (~> 2.0)
60 rails-html-sanitizer (~> 1.1, >= 1.2.0)
60 rails-html-sanitizer (~> 1.1, >= 1.2.0)
61 activejob (7.0.4)
61 activejob (7.0.4)
62 activesupport (= 7.0.4)
62 activesupport (= 7.0.4)
63 globalid (>= 0.3.6)
63 globalid (>= 0.3.6)
64 activemodel (7.0.4)
64 activemodel (7.0.4)
65 activesupport (= 7.0.4)
65 activesupport (= 7.0.4)
66 activerecord (7.0.4)
66 activerecord (7.0.4)
67 activemodel (= 7.0.4)
67 activemodel (= 7.0.4)
68 activesupport (= 7.0.4)
68 activesupport (= 7.0.4)
69 activerecord-session_store (2.0.0)
69 activerecord-session_store (2.0.0)
70 actionpack (>= 5.2.4.1)
70 actionpack (>= 5.2.4.1)
71 activerecord (>= 5.2.4.1)
71 activerecord (>= 5.2.4.1)
72 multi_json (~> 1.11, >= 1.11.2)
72 multi_json (~> 1.11, >= 1.11.2)
73 rack (>= 2.0.8, < 3)
73 rack (>= 2.0.8, < 3)
74 railties (>= 5.2.4.1)
74 railties (>= 5.2.4.1)
75 activestorage (7.0.4)
75 activestorage (7.0.4)
76 actionpack (= 7.0.4)
76 actionpack (= 7.0.4)
77 activejob (= 7.0.4)
77 activejob (= 7.0.4)
78 activerecord (= 7.0.4)
78 activerecord (= 7.0.4)
79 activesupport (= 7.0.4)
79 activesupport (= 7.0.4)
80 marcel (~> 1.0)
80 marcel (~> 1.0)
81 mini_mime (>= 1.1.0)
81 mini_mime (>= 1.1.0)
82 activesupport (7.0.4)
82 activesupport (7.0.4)
83 concurrent-ruby (~> 1.0, >= 1.0.2)
83 concurrent-ruby (~> 1.0, >= 1.0.2)
84 i18n (>= 1.6, < 2)
84 i18n (>= 1.6, < 2)
85 minitest (>= 5.1)
85 minitest (>= 5.1)
86 tzinfo (~> 2.0)
86 tzinfo (~> 2.0)
87 addressable (2.8.1)
87 addressable (2.8.1)
88 public_suffix (>= 2.0.2, < 6.0)
88 public_suffix (>= 2.0.2, < 6.0)
89 ansi (1.5.0)
89 ansi (1.5.0)
90 autoprefixer-rails (10.4.7.0)
90 autoprefixer-rails (10.4.7.0)
91 execjs (~> 2)
91 execjs (~> 2)
92 bindex (0.8.1)
92 bindex (0.8.1)
93 bootsnap (1.13.0)
93 bootsnap (1.13.0)
94 msgpack (~> 1.2)
94 msgpack (~> 1.2)
95 - bootstrap-sass (3.4.1)
95 + bootstrap (5.2.0)
96 - autoprefixer-rails (>= 5.2.1)
96 + autoprefixer-rails (>= 9.1.0)
97 - sassc (>= 2.0.0)
97 + popper_js (>= 2.11.5, < 3)
98 - bootstrap-switch-rails (3.3.5)
98 + sassc-rails (>= 2.0.0)
99 - bootstrap-toggle-rails (2.2.1.0)
100 - bootstrap3-datetimepicker-rails (4.17.47)
101 - momentjs-rails (>= 2.8.1)
102 builder (3.2.4)
99 builder (3.2.4)
103 capybara (3.37.1)
100 capybara (3.37.1)
104 addressable
101 addressable
105 matrix
102 matrix
106 mini_mime (>= 0.1.3)
103 mini_mime (>= 0.1.3)
107 nokogiri (~> 1.8)
104 nokogiri (~> 1.8)
108 rack (>= 1.6.0)
105 rack (>= 1.6.0)
109 rack-test (>= 0.6.3)
106 rack-test (>= 0.6.3)
110 regexp_parser (>= 1.5, < 3.0)
107 regexp_parser (>= 1.5, < 3.0)
111 xpath (~> 3.2)
108 xpath (~> 3.2)
112 childprocess (4.1.0)
109 childprocess (4.1.0)
113 coffee-rails (5.0.0)
110 coffee-rails (5.0.0)
114 coffee-script (>= 2.2.0)
111 coffee-script (>= 2.2.0)
115 railties (>= 5.2.0)
112 railties (>= 5.2.0)
116 coffee-script (2.4.1)
113 coffee-script (2.4.1)
117 coffee-script-source
114 coffee-script-source
118 execjs
115 execjs
119 coffee-script-source (1.12.2)
116 coffee-script-source (1.12.2)
120 concurrent-ruby (1.1.10)
117 concurrent-ruby (1.1.10)
121 crass (1.0.6)
118 crass (1.0.6)
122 debug (1.6.2)
119 debug (1.6.2)
123 irb (>= 1.3.6)
120 irb (>= 1.3.6)
124 reline (>= 0.3.1)
121 reline (>= 0.3.1)
125 digest (3.1.0)
122 digest (3.1.0)
126 dynamic_form (1.1.4)
123 dynamic_form (1.1.4)
127 erubi (1.11.0)
124 erubi (1.11.0)
128 erubis (2.7.0)
125 erubis (2.7.0)
129 execjs (2.8.1)
126 execjs (2.8.1)
130 ffi (1.15.5)
127 ffi (1.15.5)
131 fuzzy-string-match (1.0.1)
128 fuzzy-string-match (1.0.1)
132 RubyInline (>= 3.8.6)
129 RubyInline (>= 3.8.6)
133 globalid (1.0.0)
130 globalid (1.0.0)
134 activesupport (>= 5.0)
131 activesupport (>= 5.0)
135 haml (5.2.2)
132 haml (5.2.2)
136 temple (>= 0.8.0)
133 temple (>= 0.8.0)
137 tilt
134 tilt
138 haml-rails (2.0.1)
135 haml-rails (2.0.1)
139 actionpack (>= 5.1)
136 actionpack (>= 5.1)
140 activesupport (>= 5.1)
137 activesupport (>= 5.1)
141 haml (>= 4.0.6, < 6.0)
138 haml (>= 4.0.6, < 6.0)
142 html2haml (>= 1.0.1)
139 html2haml (>= 1.0.1)
143 railties (>= 5.1)
140 railties (>= 5.1)
144 html2haml (2.2.0)
141 html2haml (2.2.0)
145 erubis (~> 2.7.0)
142 erubis (~> 2.7.0)
146 haml (>= 4.0, < 6)
143 haml (>= 4.0, < 6)
147 nokogiri (>= 1.6.0)
144 nokogiri (>= 1.6.0)
148 ruby_parser (~> 3.5)
145 ruby_parser (~> 3.5)
149 i18n (1.12.0)
146 i18n (1.12.0)
150 concurrent-ruby (~> 1.0)
147 concurrent-ruby (~> 1.0)
151 importmap-rails (1.1.5)
148 importmap-rails (1.1.5)
152 actionpack (>= 6.0.0)
149 actionpack (>= 6.0.0)
153 railties (>= 6.0.0)
150 railties (>= 6.0.0)
154 in_place_editing (1.2.0)
151 in_place_editing (1.2.0)
155 io-console (0.5.11)
152 io-console (0.5.11)
156 irb (1.4.1)
153 irb (1.4.1)
157 reline (>= 0.3.0)
154 reline (>= 0.3.0)
158 jbuilder (2.11.5)
155 jbuilder (2.11.5)
159 actionview (>= 5.0.0)
156 actionview (>= 5.0.0)
160 activesupport (>= 5.0.0)
157 activesupport (>= 5.0.0)
161 - jquery-countdown-rails (2.0.2)
162 - jquery-rails (4.5.0)
163 - rails-dom-testing (>= 1, < 3)
164 - railties (>= 4.2.0)
165 - thor (>= 0.14, < 2.0)
166 - jquery-tablesorter (1.27.2)
167 - railties (>= 3.2)
168 - jquery-ui-rails (6.0.1)
169 - railties (>= 3.2.16)
170 listen (3.0.8)
158 listen (3.0.8)
171 rb-fsevent (~> 0.9, >= 0.9.4)
159 rb-fsevent (~> 0.9, >= 0.9.4)
172 rb-inotify (~> 0.9, >= 0.9.7)
160 rb-inotify (~> 0.9, >= 0.9.7)
173 loofah (2.18.0)
161 loofah (2.18.0)
174 crass (~> 1.0.2)
162 crass (~> 1.0.2)
175 nokogiri (>= 1.5.9)
163 nokogiri (>= 1.5.9)
176 mail (2.7.1)
164 mail (2.7.1)
177 mini_mime (>= 0.1.1)
165 mini_mime (>= 0.1.1)
178 marcel (1.0.2)
166 marcel (1.0.2)
179 matrix (0.4.2)
167 matrix (0.4.2)
180 method_source (1.0.0)
168 method_source (1.0.0)
181 mini_mime (1.1.2)
169 mini_mime (1.1.2)
182 minitest (5.16.3)
170 minitest (5.16.3)
183 minitest-reporters (1.5.0)
171 minitest-reporters (1.5.0)
184 ansi
172 ansi
185 builder
173 builder
186 minitest (>= 5.0)
174 minitest (>= 5.0)
187 ruby-progressbar
175 ruby-progressbar
188 - momentjs-rails (2.29.4.1)
189 - railties (>= 3.1)
190 msgpack (1.5.6)
176 msgpack (1.5.6)
191 multi_json (1.15.0)
177 multi_json (1.15.0)
192 mysql2 (0.5.4)
178 mysql2 (0.5.4)
193 net-imap (0.2.3)
179 net-imap (0.2.3)
194 digest
180 digest
195 net-protocol
181 net-protocol
196 strscan
182 strscan
197 net-pop (0.1.1)
183 net-pop (0.1.1)
198 digest
184 digest
199 net-protocol
185 net-protocol
200 timeout
186 timeout
201 net-protocol (0.1.3)
187 net-protocol (0.1.3)
202 timeout
188 timeout
203 net-smtp (0.3.1)
189 net-smtp (0.3.1)
204 digest
190 digest
205 net-protocol
191 net-protocol
206 timeout
192 timeout
207 nio4r (2.5.8)
193 nio4r (2.5.8)
208 nokogiri (1.13.8-x86_64-linux)
194 nokogiri (1.13.8-x86_64-linux)
209 racc (~> 1.4)
195 racc (~> 1.4)
196 + popper_js (2.11.5)
210 public_suffix (5.0.0)
197 public_suffix (5.0.0)
211 puma (5.6.5)
198 puma (5.6.5)
212 nio4r (~> 2.0)
199 nio4r (~> 2.0)
213 racc (1.6.0)
200 racc (1.6.0)
214 rack (2.2.4)
201 rack (2.2.4)
215 rack-test (2.0.2)
202 rack-test (2.0.2)
216 rack (>= 1.3)
203 rack (>= 1.3)
217 rails (7.0.4)
204 rails (7.0.4)
218 actioncable (= 7.0.4)
205 actioncable (= 7.0.4)
219 actionmailbox (= 7.0.4)
206 actionmailbox (= 7.0.4)
220 actionmailer (= 7.0.4)
207 actionmailer (= 7.0.4)
221 actionpack (= 7.0.4)
208 actionpack (= 7.0.4)
222 actiontext (= 7.0.4)
209 actiontext (= 7.0.4)
223 actionview (= 7.0.4)
210 actionview (= 7.0.4)
224 activejob (= 7.0.4)
211 activejob (= 7.0.4)
225 activemodel (= 7.0.4)
212 activemodel (= 7.0.4)
226 activerecord (= 7.0.4)
213 activerecord (= 7.0.4)
227 activestorage (= 7.0.4)
214 activestorage (= 7.0.4)
228 activesupport (= 7.0.4)
215 activesupport (= 7.0.4)
229 bundler (>= 1.15.0)
216 bundler (>= 1.15.0)
230 railties (= 7.0.4)
217 railties (= 7.0.4)
231 rails-controller-testing (1.0.5)
218 rails-controller-testing (1.0.5)
232 actionpack (>= 5.0.1.rc1)
219 actionpack (>= 5.0.1.rc1)
233 actionview (>= 5.0.1.rc1)
220 actionview (>= 5.0.1.rc1)
234 activesupport (>= 5.0.1.rc1)
221 activesupport (>= 5.0.1.rc1)
235 rails-dom-testing (2.0.3)
222 rails-dom-testing (2.0.3)
236 activesupport (>= 4.2.0)
223 activesupport (>= 4.2.0)
237 nokogiri (>= 1.6)
224 nokogiri (>= 1.6)
238 rails-html-sanitizer (1.4.3)
225 rails-html-sanitizer (1.4.3)
239 loofah (~> 2.3)
226 loofah (~> 2.3)
240 - rails_bootstrap_sortable (2.0.7)
241 - momentjs-rails (>= 2.8.3)
242 railties (7.0.4)
227 railties (7.0.4)
243 actionpack (= 7.0.4)
228 actionpack (= 7.0.4)
244 activesupport (= 7.0.4)
229 activesupport (= 7.0.4)
245 method_source
230 method_source
246 rake (>= 12.2)
231 rake (>= 12.2)
247 thor (~> 1.0)
232 thor (~> 1.0)
248 zeitwerk (~> 2.5)
233 zeitwerk (~> 2.5)
249 rake (13.0.6)
234 rake (13.0.6)
250 rb-fsevent (0.11.2)
235 rb-fsevent (0.11.2)
251 rb-inotify (0.10.1)
236 rb-inotify (0.10.1)
252 ffi (~> 1.0)
237 ffi (~> 1.0)
253 rdiscount (2.2.0.2)
238 rdiscount (2.2.0.2)
254 regexp_parser (2.5.0)
239 regexp_parser (2.5.0)
255 reline (0.3.1)
240 reline (0.3.1)
256 io-console (~> 0.5)
241 io-console (~> 0.5)
257 rexml (3.2.5)
242 rexml (3.2.5)
258 rouge (4.0.0)
243 rouge (4.0.0)
259 ruby-progressbar (1.11.0)
244 ruby-progressbar (1.11.0)
260 ruby_parser (3.19.1)
245 ruby_parser (3.19.1)
261 sexp_processor (~> 4.16)
246 sexp_processor (~> 4.16)
262 rubyzip (2.3.2)
247 rubyzip (2.3.2)
263 sassc (2.4.0)
248 sassc (2.4.0)
264 ffi (~> 1.9)
249 ffi (~> 1.9)
265 sassc-rails (2.1.2)
250 sassc-rails (2.1.2)
266 railties (>= 4.0.0)
251 railties (>= 4.0.0)
267 sassc (>= 2.0)
252 sassc (>= 2.0)
268 sprockets (> 3.0)
253 sprockets (> 3.0)
269 sprockets-rails
254 sprockets-rails
270 tilt
255 tilt
271 select2-rails (4.0.13)
256 select2-rails (4.0.13)
272 selenium-webdriver (4.4.0)
257 selenium-webdriver (4.4.0)
273 childprocess (>= 0.5, < 5.0)
258 childprocess (>= 0.5, < 5.0)
274 rexml (~> 3.2, >= 3.2.5)
259 rexml (~> 3.2, >= 3.2.5)
275 rubyzip (>= 1.2.2, < 3.0)
260 rubyzip (>= 1.2.2, < 3.0)
276 websocket (~> 1.0)
261 websocket (~> 1.0)
277 sexp_processor (4.16.1)
262 sexp_processor (4.16.1)
278 simple_form (5.1.0)
263 simple_form (5.1.0)
279 actionpack (>= 5.2)
264 actionpack (>= 5.2)
280 activemodel (>= 5.2)
265 activemodel (>= 5.2)
281 spring (2.1.1)
266 spring (2.1.1)
282 spring-watcher-listen (2.0.1)
267 spring-watcher-listen (2.0.1)
283 listen (>= 2.7, < 4.0)
268 listen (>= 2.7, < 4.0)
284 spring (>= 1.2, < 3.0)
269 spring (>= 1.2, < 3.0)
285 sprockets (4.1.1)
270 sprockets (4.1.1)
286 concurrent-ruby (~> 1.0)
271 concurrent-ruby (~> 1.0)
287 rack (> 1, < 3)
272 rack (> 1, < 3)
288 sprockets-rails (3.4.2)
273 sprockets-rails (3.4.2)
289 actionpack (>= 5.2)
274 actionpack (>= 5.2)
290 activesupport (>= 5.2)
275 activesupport (>= 5.2)
291 sprockets (>= 3.0.0)
276 sprockets (>= 3.0.0)
292 sqlite3 (1.5.0-x86_64-linux)
277 sqlite3 (1.5.0-x86_64-linux)
293 strscan (3.0.4)
278 strscan (3.0.4)
294 temple (0.8.2)
279 temple (0.8.2)
295 thor (1.2.1)
280 thor (1.2.1)
296 tilt (2.0.11)
281 tilt (2.0.11)
297 timeout (0.3.0)
282 timeout (0.3.0)
298 tzinfo (2.0.5)
283 tzinfo (2.0.5)
299 concurrent-ruby (~> 1.0)
284 concurrent-ruby (~> 1.0)
300 uglifier (4.2.0)
285 uglifier (4.2.0)
301 execjs (>= 0.3.0, < 3)
286 execjs (>= 0.3.0, < 3)
302 web-console (4.2.0)
287 web-console (4.2.0)
303 actionview (>= 6.0.0)
288 actionview (>= 6.0.0)
304 activemodel (>= 6.0.0)
289 activemodel (>= 6.0.0)
305 bindex (>= 0.4.0)
290 bindex (>= 0.4.0)
306 railties (>= 6.0.0)
291 railties (>= 6.0.0)
307 webdrivers (5.0.0)
292 webdrivers (5.0.0)
308 nokogiri (~> 1.6)
293 nokogiri (~> 1.6)
309 rubyzip (>= 1.3.0)
294 rubyzip (>= 1.3.0)
310 selenium-webdriver (~> 4.0)
295 selenium-webdriver (~> 4.0)
311 websocket (1.2.9)
296 websocket (1.2.9)
312 websocket-driver (0.7.5)
297 websocket-driver (0.7.5)
313 websocket-extensions (>= 0.1.0)
298 websocket-extensions (>= 0.1.0)
314 websocket-extensions (0.1.5)
299 websocket-extensions (0.1.5)
315 xpath (3.2.0)
300 xpath (3.2.0)
316 nokogiri (~> 1.8)
301 nokogiri (~> 1.8)
317 yaml_db (0.7.0)
302 yaml_db (0.7.0)
318 rails (>= 3.0)
303 rails (>= 3.0)
319 rake (>= 0.8.7)
304 rake (>= 0.8.7)
320 zeitwerk (2.6.0)
305 zeitwerk (2.6.0)
321
306
322 PLATFORMS
307 PLATFORMS
323 x86_64-linux
308 x86_64-linux
324
309
325 DEPENDENCIES
310 DEPENDENCIES
326 ace-rails-ap
311 ace-rails-ap
327 activerecord-session_store
312 activerecord-session_store
328 - autoprefixer-rails
329 best_in_place!
313 best_in_place!
330 bootsnap
314 bootsnap
331 - bootstrap-sass (~> 3.4.1)
315 + bootstrap (~> 5.2)
332 - bootstrap-switch-rails
333 - bootstrap-toggle-rails
334 - bootstrap3-datetimepicker-rails (~> 4.17.47)
335 capybara
316 capybara
336 coffee-rails
317 coffee-rails
337 debug
318 debug
338 dynamic_form
319 dynamic_form
339 fuzzy-string-match
320 fuzzy-string-match
340 haml
321 haml
341 haml-rails
322 haml-rails
342 importmap-rails (~> 1.1)
323 importmap-rails (~> 1.1)
343 in_place_editing
324 in_place_editing
344 jbuilder
325 jbuilder
345 - jquery-countdown-rails
346 - jquery-rails
347 - jquery-tablesorter
348 - jquery-ui-rails
349 listen (>= 3.0.5, < 3.2)
326 listen (>= 3.0.5, < 3.2)
350 mail
327 mail
351 minitest-reporters
328 minitest-reporters
352 - momentjs-rails (>= 2.9.0)
353 mysql2
329 mysql2
354 puma
330 puma
355 rails (~> 7.0)
331 rails (~> 7.0)
356 rails-controller-testing
332 rails-controller-testing
357 - rails_bootstrap_sortable
358 rdiscount
333 rdiscount
359 rouge
334 rouge
360 sassc-rails
335 sassc-rails
361 select2-rails
336 select2-rails
362 selenium-webdriver
337 selenium-webdriver
363 simple_form
338 simple_form
364 spring
339 spring
365 spring-watcher-listen (~> 2.0.0)
340 spring-watcher-listen (~> 2.0.0)
366 sprockets-rails
341 sprockets-rails
367 sqlite3
342 sqlite3
368 uglifier
343 uglifier
369 web-console (>= 3.3.0)
344 web-console (>= 3.3.0)
370 webdrivers
345 webdrivers
371 yaml_db
346 yaml_db
372
347
373 RUBY VERSION
348 RUBY VERSION
374 ruby 3.1.2p20
349 ruby 3.1.2p20
375
350
376 BUNDLED WITH
351 BUNDLED WITH
377 2.3.22
352 2.3.22
@@ -1,6 +1,5
1 //= link_tree ../images
1 //= link_tree ../images
2 - // x= link_directory ../javascripts .js
3 //= link_directory ../stylesheets .css
2 //= link_directory ../stylesheets .css
4 //= link_tree ../../javascript .js
3 //= link_tree ../../javascript .js
5 //= link_tree ../../../vendor/javascript .js
4 //= link_tree ../../../vendor/javascript .js
6
5
@@ -1,594 +1,594
1 /* This is a manifest file that'll be compiled into application.css, which will include all the files
1 /* This is a manifest file that'll be compiled into application.css, which will include all the files
2 * listed below.
2 * listed below.
3 *
3 *
4 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
4 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
5 * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
5 * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
6 *
6 *
7 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
7 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
8 * compiled file so the styles you add here take precedence over styles defined in any styles
8 * compiled file so the styles you add here take precedence over styles defined in any styles
9 * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
9 * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
10 * file per style scope.
10 * file per style scope.
11 *
11 *
12 * // bootstrap says that we should not do this, but @import each file instead
12 * // bootstrap says that we should not do this, but @import each file instead
13 * # *= require_tree .
13 * # *= require_tree .
14 * # *= require_self
14 * # *= require_self
15 */
15 */
16
16
17 - @import "jquery-ui";
17 + //@import "jquery-ui";
18 //@import "jquery.ui.core";
18 //@import "jquery.ui.core";
19 //@import "jquery.ui.theme";
19 //@import "jquery.ui.theme";
20 //@import "jquery.ui.datepicker";
20 //@import "jquery.ui.datepicker";
21 //@import "jquery.ui.slider";
21 //@import "jquery.ui.slider";
22 //@import "jquery-ui-timepicker-addon";
22 //@import "jquery-ui-timepicker-addon";
23 //@import "jquery-tablesorter/theme.metro-dark";
23 //@import "jquery-tablesorter/theme.metro-dark";
24 - @import "jquery.countdown";
24 + //@import "jquery.countdown";
25 - @import "tablesorter-theme.cafe";
25 + //@import "tablesorter-theme.cafe";
26
26
27 //bootstrap
27 //bootstrap
28 - @import "bootstrap-sprockets";
28 + //@import "bootstrap-sprockets";
29 @import "bootstrap";
29 @import "bootstrap";
30 @import "select2";
30 @import "select2";
31 @import "select2-bootstrap";
31 @import "select2-bootstrap";
32
32
33 //@import bootstrap3-switch
33 //@import bootstrap3-switch
34 - @import "bootstrap-toggle";
34 + //@import "bootstrap-toggle";
35 - @import "bootstrap-sortable";
35 + //@import "bootstrap-sortable";
36 //@import "bootstrap-datepicker3";
36 //@import "bootstrap-datepicker3";
37 - @import "bootstrap-datetimepicker";
37 + //@import "bootstrap-datetimepicker";
38 @import "datatables.net-bs/css/dataTables.bootstrap.min";
38 @import "datatables.net-bs/css/dataTables.bootstrap.min";
39 @import "datatables.net-buttons-bs/css/buttons.bootstrap.min";
39 @import "datatables.net-buttons-bs/css/buttons.bootstrap.min";
40
40
41 //bootstrap navbar color (from)
41 //bootstrap navbar color (from)
42 $bgDefault: #19197b;
42 $bgDefault: #19197b;
43 $bgHighlight: #06064b;
43 $bgHighlight: #06064b;
44 $colDefault: #8e8eb4;
44 $colDefault: #8e8eb4;
45 $colHighlight: #ffffff;
45 $colHighlight: #ffffff;
46 $dropDown: false;
46 $dropDown: false;
47
47
48 @font-face {
48 @font-face {
49 font-family: 'Glyphicons Halflings';
49 font-family: 'Glyphicons Halflings';
50 src: font-path('bootstrap/glyphicons-halflings-regular.eot');
50 src: font-path('bootstrap/glyphicons-halflings-regular.eot');
51 src: font-path('bootstrap/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
51 src: font-path('bootstrap/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
52 font-path('bootstrap/glyphicons-halflings-regular.woff') format('woff'),
52 font-path('bootstrap/glyphicons-halflings-regular.woff') format('woff'),
53 font-path('bootstrap/glyphicons-halflings-regular.ttf') format('truetype'),
53 font-path('bootstrap/glyphicons-halflings-regular.ttf') format('truetype'),
54 font-path('bootstrap/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg');
54 font-path('bootstrap/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg');
55 }
55 }
56
56
57
57
58 .navbar-default {
58 .navbar-default {
59 background-color: $bgDefault;
59 background-color: $bgDefault;
60 border-color: $bgHighlight;
60 border-color: $bgHighlight;
61
61
62 .navbar-brand {
62 .navbar-brand {
63 color: $colDefault;
63 color: $colDefault;
64
64
65 &:hover, &:focus {
65 &:hover, &:focus {
66 color: $colHighlight;
66 color: $colHighlight;
67 }
67 }
68 }
68 }
69
69
70 .navbar-text {
70 .navbar-text {
71 color: $colDefault;
71 color: $colDefault;
72 }
72 }
73
73
74 .navbar-nav {
74 .navbar-nav {
75 > li {
75 > li {
76 > a {
76 > a {
77 color: $colDefault;
77 color: $colDefault;
78
78
79 &:hover, &:focus {
79 &:hover, &:focus {
80 color: $colHighlight;
80 color: $colHighlight;
81 }
81 }
82 }
82 }
83
83
84 @if $dropDown {
84 @if $dropDown {
85 > .dropdown-menu {
85 > .dropdown-menu {
86 background-color: $bgDefault;
86 background-color: $bgDefault;
87
87
88 > li {
88 > li {
89 > a {
89 > a {
90 color: $colDefault;
90 color: $colDefault;
91
91
92 &:hover, &:focus {
92 &:hover, &:focus {
93 color: $colHighlight;
93 color: $colHighlight;
94 background-color: $bgHighlight;
94 background-color: $bgHighlight;
95 }
95 }
96 }
96 }
97
97
98 > .divider {
98 > .divider {
99 background-color: $bgHighlight;
99 background-color: $bgHighlight;
100 }
100 }
101 }
101 }
102 }
102 }
103 }
103 }
104 }
104 }
105
105
106 @if $dropDown {
106 @if $dropDown {
107 .open .dropdown-menu > .active {
107 .open .dropdown-menu > .active {
108 > a, > a:hover, > a:focus {
108 > a, > a:hover, > a:focus {
109 color: $colHighlight;
109 color: $colHighlight;
110 background-color: $bgHighlight;
110 background-color: $bgHighlight;
111 }
111 }
112 }
112 }
113 }
113 }
114
114
115 > .active {
115 > .active {
116 > a, > a:hover, > a:focus {
116 > a, > a:hover, > a:focus {
117 color: $colHighlight;
117 color: $colHighlight;
118 background-color: $bgHighlight;
118 background-color: $bgHighlight;
119 }
119 }
120 }
120 }
121
121
122 > .open {
122 > .open {
123 > a, > a:hover, > a:focus {
123 > a, > a:hover, > a:focus {
124 color: $colHighlight;
124 color: $colHighlight;
125 background-color: $bgHighlight;
125 background-color: $bgHighlight;
126 }
126 }
127 }
127 }
128 }
128 }
129
129
130 .navbar-toggle {
130 .navbar-toggle {
131 border-color: $bgHighlight;
131 border-color: $bgHighlight;
132
132
133 &:hover, &:focus {
133 &:hover, &:focus {
134 background-color: $bgHighlight;
134 background-color: $bgHighlight;
135 }
135 }
136
136
137 .icon-bar {
137 .icon-bar {
138 background-color: $colDefault;
138 background-color: $colDefault;
139 }
139 }
140 }
140 }
141
141
142 .navbar-collapse,
142 .navbar-collapse,
143 .navbar-form {
143 .navbar-form {
144 border-color: $colDefault;
144 border-color: $colDefault;
145 }
145 }
146
146
147 .navbar-link {
147 .navbar-link {
148 color: $colDefault;
148 color: $colDefault;
149
149
150 &:hover {
150 &:hover {
151 color: $colHighlight;
151 color: $colHighlight;
152 }
152 }
153 }
153 }
154 }
154 }
155
155
156 @media (max-width: 767px) {
156 @media (max-width: 767px) {
157 .navbar-default .navbar-nav .open .dropdown-menu {
157 .navbar-default .navbar-nav .open .dropdown-menu {
158 > li > a {
158 > li > a {
159 color: $colDefault;
159 color: $colDefault;
160
160
161 &:hover, &:focus {
161 &:hover, &:focus {
162 color: $colHighlight;
162 color: $colHighlight;
163 }
163 }
164 }
164 }
165
165
166 > .active {
166 > .active {
167 > a, > a:hover, > a:focus {
167 > a, > a:hover, > a:focus {
168 color: $colHighlight;
168 color: $colHighlight;
169 background-color: $bgHighlight;
169 background-color: $bgHighlight;
170 }
170 }
171 }
171 }
172 }
172 }
173 }
173 }
174
174
175 .secondnavbar {
175 .secondnavbar {
176 top: 50px;
176 top: 50px;
177 }
177 }
178
178
179 // --------------- bootstrap file upload ----------------------
179 // --------------- bootstrap file upload ----------------------
180 .btn-file {
180 .btn-file {
181 position: relative;
181 position: relative;
182 overflow: hidden;
182 overflow: hidden;
183 }
183 }
184
184
185 .btn-file input[type=file] {
185 .btn-file input[type=file] {
186 position: absolute;
186 position: absolute;
187 top: 0;
187 top: 0;
188 right: 0;
188 right: 0;
189 min-width: 100%;
189 min-width: 100%;
190 min-height: 100%;
190 min-height: 100%;
191 font-size: 100px;
191 font-size: 100px;
192 text-align: right;
192 text-align: right;
193 filter: alpha(opacity = 0);
193 filter: alpha(opacity = 0);
194 opacity: 0;
194 opacity: 0;
195 outline: none;
195 outline: none;
196 background: white;
196 background: white;
197 cursor: inherit;
197 cursor: inherit;
198 display: block;
198 display: block;
199 }
199 }
200
200
201 body {
201 body {
202 background: white image-url("topbg.jpg") repeat-x top center;
202 background: white image-url("topbg.jpg") repeat-x top center;
203
203
204 //font-size: 13px
204 //font-size: 13px
205 //font-family: Tahoma, "sans-serif"
205 //font-family: Tahoma, "sans-serif"
206 margin: 10px;
206 margin: 10px;
207 padding: 10px;
207 padding: 10px;
208 padding-top: 60px;
208 padding-top: 60px;
209 }
209 }
210
210
211 // ------------------ bootstrap sortable --------------------
211 // ------------------ bootstrap sortable --------------------
212 table.sortable th {
212 table.sortable th {
213 padding-right: 20px !important;
213 padding-right: 20px !important;
214
214
215 span.sign {
215 span.sign {
216 right: (-15px) !important;
216 right: (-15px) !important;
217 }
217 }
218
218
219 &.text-right {
219 &.text-right {
220 padding-left: 20px !important;
220 padding-left: 20px !important;
221 padding-right: 8px !important;
221 padding-right: 8px !important;
222
222
223 &:after, span.sign {
223 &:after, span.sign {
224 left: (-15px) !important;
224 left: (-15px) !important;
225 }
225 }
226 }
226 }
227 }
227 }
228
228
229 input {
229 input {
230 font-family: Tahoma, "sans-serif";
230 font-family: Tahoma, "sans-serif";
231 }
231 }
232
232
233 h1 {
233 h1 {
234 font-size: 24px;
234 font-size: 24px;
235 color: #334488;
235 color: #334488;
236 line-height: 2em;
236 line-height: 2em;
237 }
237 }
238
238
239 h2 {
239 h2 {
240 font-size: 18px;
240 font-size: 18px;
241 color: #5566bb;
241 color: #5566bb;
242 line-height: 1.5em;
242 line-height: 1.5em;
243 }
243 }
244
244
245 hr {
245 hr {
246 border-top: 1px solid #dddddd;
246 border-top: 1px solid #dddddd;
247 border-bottom: 1px solid #eeeeee;
247 border-bottom: 1px solid #eeeeee;
248 }
248 }
249
249
250 //#a
250 //#a
251 // color: #6666cc
251 // color: #6666cc
252 // text-decoration: none
252 // text-decoration: none
253 //
253 //
254 // &:link, &:visited
254 // &:link, &:visited
255 // color: #6666cc
255 // color: #6666cc
256 // text-decoration: none
256 // text-decoration: none
257 //
257 //
258 // &:hover, &:focus
258 // &:hover, &:focus
259 // color: #111166
259 // color: #111166
260 // text-decoration: none
260 // text-decoration: none
261
261
262 div {
262 div {
263 &.userbar {
263 &.userbar {
264 line-height: 1.5em;
264 line-height: 1.5em;
265 text-align: right;
265 text-align: right;
266 font-size: 12px;
266 font-size: 12px;
267 }
267 }
268
268
269 &.title {
269 &.title {
270 padding: 10px 0px;
270 padding: 10px 0px;
271 line-height: 1.5em;
271 line-height: 1.5em;
272 font-size: 13px;
272 font-size: 13px;
273
273
274 span.contest-over-msg {
274 span.contest-over-msg {
275 font-size: 15px;
275 font-size: 15px;
276 color: red;
276 color: red;
277 }
277 }
278
278
279 table {
279 table {
280 width: 100%;
280 width: 100%;
281 font-weight: bold;
281 font-weight: bold;
282 }
282 }
283
283
284 td {
284 td {
285 &.left-col {
285 &.left-col {
286 text-align: left;
286 text-align: left;
287 vertical-align: top;
287 vertical-align: top;
288 color: #444444;
288 color: #444444;
289 }
289 }
290
290
291 &.right-col {
291 &.right-col {
292 text-align: right;
292 text-align: right;
293 vertical-align: top;
293 vertical-align: top;
294 font-size: 18px;
294 font-size: 18px;
295 color: #116699;
295 color: #116699;
296 }
296 }
297 }
297 }
298 }
298 }
299 }
299 }
300
300
301 table.info {
301 table.info {
302 margin: 10px 0;
302 margin: 10px 0;
303 border: 1px solid #666666;
303 border: 1px solid #666666;
304 border-collapse: collapse;
304 border-collapse: collapse;
305 font-size: 12px;
305 font-size: 12px;
306
306
307 th {
307 th {
308 border: 1px solid #666666;
308 border: 1px solid #666666;
309 line-height: 1.5em;
309 line-height: 1.5em;
310 padding: 0 0.5em;
310 padding: 0 0.5em;
311 }
311 }
312
312
313 td {
313 td {
314 border-left: 1px solid #666666;
314 border-left: 1px solid #666666;
315 border-right: 1px solid #666666;
315 border-right: 1px solid #666666;
316 line-height: 1.5em;
316 line-height: 1.5em;
317 padding: 0 0.5em;
317 padding: 0 0.5em;
318 }
318 }
319 }
319 }
320
320
321 tr {
321 tr {
322 &.info-head {
322 &.info-head {
323 background: #777777;
323 background: #777777;
324 color: white;
324 color: white;
325 }
325 }
326
326
327 &.info-odd {
327 &.info-odd {
328 background: #eeeeee;
328 background: #eeeeee;
329 }
329 }
330
330
331 &.info-even {
331 &.info-even {
332 background: #fcfcfc;
332 background: #fcfcfc;
333 }
333 }
334 }
334 }
335
335
336 @mixin basicbox {
336 @mixin basicbox {
337 background: #eeeeff;
337 background: #eeeeff;
338 border: 1px dotted #99aaee;
338 border: 1px dotted #99aaee;
339 padding: 5px;
339 padding: 5px;
340 margin: 10px 0px;
340 margin: 10px 0px;
341 color: black;
341 color: black;
342 font-size: 13px;
342 font-size: 13px;
343 }
343 }
344
344
345 .infobox {
345 .infobox {
346 @include basicbox;
346 @include basicbox;
347 }
347 }
348
348
349 .submitbox {
349 .submitbox {
350 @include basicbox;
350 @include basicbox;
351 }
351 }
352
352
353 .errorExplanation {
353 .errorExplanation {
354 border: 1px dotted gray;
354 border: 1px dotted gray;
355 color: #bb2222;
355 color: #bb2222;
356 padding: 5px 15px 5px 15px;
356 padding: 5px 15px 5px 15px;
357 margin-bottom: 5px;
357 margin-bottom: 5px;
358 background-color: white;
358 background-color: white;
359 font-weight: normal;
359 font-weight: normal;
360
360
361 h2 {
361 h2 {
362 color: #cc1111;
362 color: #cc1111;
363 font-weight: bold;
363 font-weight: bold;
364 }
364 }
365 }
365 }
366
366
367 table.uinfo {
367 table.uinfo {
368 border-collapse: collapse;
368 border-collapse: collapse;
369 border: 1px solid black;
369 border: 1px solid black;
370 font-size: 13px;
370 font-size: 13px;
371 }
371 }
372
372
373 td.uinfo {
373 td.uinfo {
374 vertical-align: top;
374 vertical-align: top;
375 border: 1px solid black;
375 border: 1px solid black;
376 padding: 5px;
376 padding: 5px;
377 }
377 }
378
378
379 th.uinfo {
379 th.uinfo {
380 background: lightgreen;
380 background: lightgreen;
381 vertical-align: top;
381 vertical-align: top;
382 text-align: right;
382 text-align: right;
383 border: 1px solid black;
383 border: 1px solid black;
384 padding: 5px;
384 padding: 5px;
385 }
385 }
386
386
387 div {
387 div {
388 &.compilermsgbody {
388 &.compilermsgbody {
389 font-family: monospace;
389 font-family: monospace;
390 }
390 }
391
391
392 &.task-menu {
392 &.task-menu {
393 text-align: center;
393 text-align: center;
394 font-size: 13px;
394 font-size: 13px;
395 line-height: 1.75em;
395 line-height: 1.75em;
396 font-weight: bold;
396 font-weight: bold;
397 border-top: 1px dashed gray;
397 border-top: 1px dashed gray;
398 border-bottom: 1px dashed gray;
398 border-bottom: 1px dashed gray;
399 margin-top: 2px;
399 margin-top: 2px;
400 margin-bottom: 4px;
400 margin-bottom: 4px;
401 }
401 }
402 }
402 }
403
403
404 table.taskdesc {
404 table.taskdesc {
405 border: 2px solid #dddddd;
405 border: 2px solid #dddddd;
406 border-collapse: collapse;
406 border-collapse: collapse;
407 margin: 10px auto;
407 margin: 10px auto;
408 width: 90%;
408 width: 90%;
409 font-size: 13px;
409 font-size: 13px;
410
410
411 p {
411 p {
412 font-size: 13px;
412 font-size: 13px;
413 }
413 }
414
414
415 tr.name {
415 tr.name {
416 border: 2px solid #dddddd;
416 border: 2px solid #dddddd;
417 background: #dddddd;
417 background: #dddddd;
418 color: #333333;
418 color: #333333;
419 font-weight: bold;
419 font-weight: bold;
420 font-size: 14px;
420 font-size: 14px;
421 line-height: 1.5em;
421 line-height: 1.5em;
422 text-align: center;
422 text-align: center;
423 }
423 }
424
424
425 td {
425 td {
426 &.desc-odd {
426 &.desc-odd {
427 padding: 5px;
427 padding: 5px;
428 padding-left: 20px;
428 padding-left: 20px;
429 background: #fefeee;
429 background: #fefeee;
430 }
430 }
431
431
432 &.desc-even {
432 &.desc-even {
433 padding: 5px;
433 padding: 5px;
434 padding-left: 20px;
434 padding-left: 20px;
435 background: #feeefe;
435 background: #feeefe;
436 }
436 }
437 }
437 }
438 }
438 }
439
439
440 .announcementbox {
440 .announcementbox {
441 margin: 10px 0px;
441 margin: 10px 0px;
442 background: #bbddee;
442 background: #bbddee;
443 padding: 1px;
443 padding: 1px;
444
444
445 span.title {
445 span.title {
446 font-weight: bold;
446 font-weight: bold;
447 color: #224455;
447 color: #224455;
448 padding-left: 10px;
448 padding-left: 10px;
449 line-height: 1.6em;
449 line-height: 1.6em;
450 }
450 }
451 }
451 }
452
452
453 .announcement {
453 .announcement {
454 margin: 2px;
454 margin: 2px;
455 background: white;
455 background: white;
456 padding: 1px;
456 padding: 1px;
457 padding-left: 10px;
457 padding-left: 10px;
458 padding-right: 10px;
458 padding-right: 10px;
459 padding-top: 5px;
459 padding-top: 5px;
460 padding-bottom: 5px;
460 padding-bottom: 5px;
461 }
461 }
462
462
463 .announcement p {
463 .announcement p {
464 font-size: 12px;
464 font-size: 12px;
465 margin: 2px;
465 margin: 2px;
466 }
466 }
467
467
468 .pub-info {
468 .pub-info {
469 text-align: right;
469 text-align: right;
470 font-style: italic;
470 font-style: italic;
471 font-size: 9px;
471 font-size: 9px;
472
472
473 p {
473 p {
474 text-align: right;
474 text-align: right;
475 font-style: italic;
475 font-style: italic;
476 font-size: 9px;
476 font-size: 9px;
477 }
477 }
478 }
478 }
479
479
480 .announcement {
480 .announcement {
481 .toggles {
481 .toggles {
482 font-weight: normal;
482 font-weight: normal;
483 float: right;
483 float: right;
484 font-size: 80%;
484 font-size: 80%;
485 }
485 }
486
486
487 .announcement-title {
487 .announcement-title {
488 font-weight: bold;
488 font-weight: bold;
489 }
489 }
490 }
490 }
491
491
492 div {
492 div {
493 &.message {
493 &.message {
494 margin: 10px 0 0;
494 margin: 10px 0 0;
495
495
496 div {
496 div {
497 &.message {
497 &.message {
498 margin: 0 0 0 30px;
498 margin: 0 0 0 30px;
499 }
499 }
500
500
501 &.body {
501 &.body {
502 border: 2px solid #dddddd;
502 border: 2px solid #dddddd;
503 background: #fff8f8;
503 background: #fff8f8;
504 padding-left: 5px;
504 padding-left: 5px;
505 }
505 }
506
506
507 &.reply-body {
507 &.reply-body {
508 border: 2px solid #bbbbbb;
508 border: 2px solid #bbbbbb;
509 background: #fffff8;
509 background: #fffff8;
510 padding-left: 5px;
510 padding-left: 5px;
511 }
511 }
512
512
513 &.stat {
513 &.stat {
514 font-size: 10px;
514 font-size: 10px;
515 line-height: 1.75em;
515 line-height: 1.75em;
516 padding: 0 5px;
516 padding: 0 5px;
517 color: #333333;
517 color: #333333;
518 background: #dddddd;
518 background: #dddddd;
519 font-weight: bold;
519 font-weight: bold;
520 }
520 }
521
521
522 &.message div.stat {
522 &.message div.stat {
523 font-size: 10px;
523 font-size: 10px;
524 line-height: 1.75em;
524 line-height: 1.75em;
525 padding: 0 5px;
525 padding: 0 5px;
526 color: #444444;
526 color: #444444;
527 background: #bbbbbb;
527 background: #bbbbbb;
528 font-weight: bold;
528 font-weight: bold;
529 }
529 }
530 }
530 }
531 }
531 }
532
532
533 &.contest-title {
533 &.contest-title {
534 color: white;
534 color: white;
535 text-align: center;
535 text-align: center;
536 line-height: 2em;
536 line-height: 2em;
537 }
537 }
538
538
539 &.registration-desc, &.test-desc {
539 &.registration-desc, &.test-desc {
540 border: 1px dotted gray;
540 border: 1px dotted gray;
541 background: #f5f5f5;
541 background: #f5f5f5;
542 padding: 5px;
542 padding: 5px;
543 margin: 10px 0;
543 margin: 10px 0;
544 font-size: 12px;
544 font-size: 12px;
545 line-height: 1.5em;
545 line-height: 1.5em;
546 }
546 }
547 }
547 }
548
548
549 h2.contest-title {
549 h2.contest-title {
550 margin-top: 5px;
550 margin-top: 5px;
551 margin-bottom: 5px;
551 margin-bottom: 5px;
552 }
552 }
553
553
554
554
555
555
556 .grader-comment {
556 .grader-comment {
557 word-wrap: break-word;
557 word-wrap: break-word;
558 }
558 }
559
559
560
560
561 golden-btn + .golden-btn { margin-top: 1em; }
561 golden-btn + .golden-btn { margin-top: 1em; }
562
562
563 .golden-btn {
563 .golden-btn {
564 display: inline-block;
564 display: inline-block;
565 outline: none;
565 outline: none;
566 font-family: inherit;
566 font-family: inherit;
567 box-sizing: border-box;
567 box-sizing: border-box;
568 border: none;
568 border: none;
569 box-shadow: 0 3px 6px rgba(0,0,0,.16), 0 3px 6px rgba(110,80,20,.4),
569 box-shadow: 0 3px 6px rgba(0,0,0,.16), 0 3px 6px rgba(110,80,20,.4),
570 inset 0 -2px 5px 1px rgba(139,66,8,1),
570 inset 0 -2px 5px 1px rgba(139,66,8,1),
571 inset 0 -1px 1px 3px rgba(250,227,133,1);
571 inset 0 -1px 1px 3px rgba(250,227,133,1);
572 background-image: linear-gradient(160deg, #a54e07, #b47e11, #fef1a2, #bc881b, #a54e07) !important;
572 background-image: linear-gradient(160deg, #a54e07, #b47e11, #fef1a2, #bc881b, #a54e07) !important;
573 border: 1px solid #a55d07;
573 border: 1px solid #a55d07;
574 color: rgb(120,50,5);
574 color: rgb(120,50,5);
575 text-shadow: 0 2px 2px rgba(250, 227, 133, 1);
575 text-shadow: 0 2px 2px rgba(250, 227, 133, 1);
576 cursor: pointer;
576 cursor: pointer;
577 transition: all .2s ease-in-out;
577 transition: all .2s ease-in-out;
578 background-size: 100% 100%;
578 background-size: 100% 100%;
579 background-position:center;
579 background-position:center;
580 }
580 }
581 .golden-btn:focus,
581 .golden-btn:focus,
582 .golden-btn:hover {
582 .golden-btn:hover {
583 background-size: 150% 150%;
583 background-size: 150% 150%;
584 box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23),
584 box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23),
585 inset 0 -2px 5px 1px #b17d10,
585 inset 0 -2px 5px 1px #b17d10,
586 inset 0 -1px 1px 3px rgba(250,227,133,1);
586 inset 0 -1px 1px 3px rgba(250,227,133,1);
587 border: 1px solid rgba(165,93,7,.6);
587 border: 1px solid rgba(165,93,7,.6);
588 color: rgba(120,50,5,.8);
588 color: rgba(120,50,5,.8);
589 }
589 }
590 .golden-btn:active {
590 .golden-btn:active {
591 box-shadow: 0 3px 6px rgba(0,0,0,.16), 0 3px 6px rgba(110,80,20,.4),
591 box-shadow: 0 3px 6px rgba(0,0,0,.16), 0 3px 6px rgba(110,80,20,.4),
592 inset 0 -2px 5px 1px #b17d10,
592 inset 0 -2px 5px 1px #b17d10,
593 inset 0 -1px 1px 3px rgba(250,227,133,1);
593 inset 0 -1px 1px 3px rgba(250,227,133,1);
594 }
594 }
@@ -1,17 +1,20
1 // Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
1 // Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
2 //import "@hotwired/turbo-rails"
2 //import "@hotwired/turbo-rails"
3 //import "controllers"
3 //import "controllers"
4 //
4 //
5 - console.log('xxxxx')
5 +
6 - import jQuery from "jquery"
6 + import pdfmake from "pdfmake"
7 - //import pdfmake from "pdfmake"
8 //import jszip from "jszip"
7 //import jszip from "jszip"
9 //import DataTable from "datatables.net-bs5"
8 //import DataTable from "datatables.net-bs5"
10 - //
11 - window.$ = window.jQuery = jQuery;
12 //window.DataTable = DataTable();
9 //window.DataTable = DataTable();
13 - //
10 +
11 + //bootstrap
12 + //import * as bootstrap from "bootstrap"
13 + import "bootstrap"
14 + window.bootstrap = bootstrap
14 console.log($); // ok
15 console.log($); // ok
15 - ////console.log(jszip);
16 + console.log(bootstrap)
17 + console.log(jszip);
18 +
16 console.log('application.js ready')
19 console.log('application.js ready')
17
20
@@ -1,18 +1,24
1 <!DOCTYPE html>
1 <!DOCTYPE html>
2 %html
2 %html
3 %head
3 %head
4 %title= GraderConfiguration['contest.name']
4 %title= GraderConfiguration['contest.name']
5 = stylesheet_link_tag "application", params[:controller], :media => "all"
5 = stylesheet_link_tag "application", params[:controller], :media => "all"
6 = csrf_meta_tags
6 = csrf_meta_tags
7 = csp_meta_tag
7 = csp_meta_tag
8 + = javascript_import_module_tag('prepend_jquery')
8 = javascript_importmap_tags
9 = javascript_importmap_tags
9 = content_for :header
10 = content_for :header
10 = yield :head
11 = yield :head
12 + -# %link{href:"https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css",rel:"stylesheet",integrity:"sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT",crossorigin:"anonymous"}
13 + -# %script{src:"https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js",integrity:"sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3",crossorigin:"anonymous"}
14 + -# %script{src:"https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js",integrity:"sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz",crossorigin:"anonymous"}
15 +
16 +
11
17
12 %body
18 %body
13 - unless local_assigns[:skip_header]
19 - unless local_assigns[:skip_header]
14 = render 'layouts/header'
20 = render 'layouts/header'
15
21
16 /= content_tag(:p,flash[:notice],class: 'alert alert-success') if flash[:notice]!=nil
22 /= content_tag(:p,flash[:notice],class: 'alert alert-success') if flash[:notice]!=nil
17 = flash_messages
23 = flash_messages
18 = yield
24 = yield
@@ -1,8 +1,12
1 # Pin npm packages by running ./bin/importmap
1 # Pin npm packages by running ./bin/importmap
2
2
3 + #entry point
3 pin "application", preload: true
4 pin "application", preload: true
4 - #pin_all_from "app/javascript/controllers", under: "controllers"
5 + pin "prepend_jquery", preload: true
6 + pin_all_from "app/javascript/controllers", under: "controllers"
5
7
6 - #pin "jquery" # @3.6.1
8 + pin "pdfmake", to: "https://ga.jspm.io/npm:pdfmake@0.2.5/build/pdfmake.js"
7 - #pin "pdfmake", to: "https://ga.jspm.io/npm:pdfmake@0.2.5/build/pdfmake.js"
9 + pin "jquery", to: 'jquery.js'
8 - pin "jquery", to: 'jquery-local.js'
10 + pin "bootstrap", to: "bootstrap.bundle.min.js"
11 + #no need popper, because bundled already in bootstrap
12 + #pin "@popperjs/core", to: "https://ga.jspm.io/npm:@popperjs/core@2.11.6/lib/index.js"
@@ -1,22 +1,24
1 # Be sure to restart your server when you modify this file.
1 # Be sure to restart your server when you modify this file.
2
2
3 # Version of your assets, change this if you want to expire all your assets.
3 # Version of your assets, change this if you want to expire all your assets.
4 Rails.application.config.assets.version = "1.0"
4 Rails.application.config.assets.version = "1.0"
5
5
6 # Add additional assets to the asset load path.
6 # Add additional assets to the asset load path.
7 # Rails.application.config.assets.paths << Emoji.images_path
7 # Rails.application.config.assets.paths << Emoji.images_path
8 # Add Yarn node_modules folder to the asset load path.
8 # Add Yarn node_modules folder to the asset load path.
9 Rails.application.config.assets.paths << Rails.root.join('node_modules')
9 Rails.application.config.assets.paths << Rails.root.join('node_modules')
10
10
11 # Precompile additional assets.
11 # Precompile additional assets.
12 # application.js, application.css, and all non-JS/CSS in the app/assets
12 # application.js, application.css, and all non-JS/CSS in the app/assets
13 # folder are already added.
13 # folder are already added.
14 # Rails.application.config.assets.precompile += %w( admin.js admin.css )
14 # Rails.application.config.assets.precompile += %w( admin.js admin.css )
15 + Rails.application.config.assets.precompile += %w(bootstrap.min.js popper.js)
16 +
15 Rails.application.config.assets.precompile += ['announcement_refresh.js','effects.js','site_update.js']
17 Rails.application.config.assets.precompile += ['announcement_refresh.js','effects.js','site_update.js']
16 Rails.application.config.assets.precompile += ['local_jquery.js','tablesorter-theme.cafe.css']
18 Rails.application.config.assets.precompile += ['local_jquery.js','tablesorter-theme.cafe.css']
17 %w( announcements submissions configurations contests contest_management graders heartbeat
19 %w( announcements submissions configurations contests contest_management graders heartbeat
18 login main messages problems report site sites sources tasks groups
20 login main messages problems report site sites sources tasks groups
19 test user_admin users tags testcases).each do |controller|
21 test user_admin users tags testcases).each do |controller|
20 Rails.application.config.assets.precompile += ["#{controller}.js", "#{controller}.css"]
22 Rails.application.config.assets.precompile += ["#{controller}.js", "#{controller}.css"]
21 end
23 end
22
24
file renamed from vendor/javascript/jquery-local.js to vendor/javascript/jquery.js
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
deleted file
You need to be logged in to leave comments. Login now