rails_com 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/app/assets/javascripts/rails_com/checkbox.js +59 -0
- data/app/assets/javascripts/rails_com/common.js +5 -2
- data/app/assets/javascripts/rails_com/fetch_xhr_script.js +3 -37
- data/app/assets/javascripts/rails_com/sidebar.js +40 -0
- data/app/controllers/common_controller.rb +0 -8
- data/app/controllers/concerns/the_common_api.rb +2 -2
- data/app/helpers/rails_com/active_helper.rb +1 -0
- data/app/helpers/{rails_com_helper.rb → rails_com/assets_helper.rb} +2 -10
- data/app/helpers/rails_com/common_helper.rb +13 -0
- data/app/helpers/rails_com/time_helper.rb +22 -0
- data/app/models/state_machine.rb +63 -15
- data/app/views/shared/_locales.html.erb +1 -1
- data/config/locales/en.yml +7 -1
- data/config/locales/zh.datetime.yml +44 -0
- data/config/locales/zh.yml +9 -0
- data/config/routes.rb +0 -4
- data/lib/mina/puma.rb +3 -2
- data/lib/mina/whenever.rb +27 -0
- data/lib/rails_com/config.rb +11 -0
- data/lib/rails_com/core_ext/array.rb +54 -0
- data/lib/rails_com/model_helper.rb +55 -4
- data/lib/rails_com/rails_ext/activestorage_attached.rb +32 -0
- data/lib/rails_com/rails_ext/persistence_sneakily.rb +11 -0
- data/lib/rails_com/rails_ext/scaffold_generator.rb +1 -0
- data/lib/rails_com/rails_ext/template_renderer.rb +3 -3
- data/lib/rails_com/rails_ext/translation_helper.rb +18 -0
- data/lib/rails_com/routes.rb +5 -0
- data/lib/rails_com/setting.rb +34 -0
- data/lib/rails_com/version.rb +1 -1
- data/lib/rails_com.rb +7 -5
- data/lib/templates/erb/scaffold/_search_form.html.erb.tt +1 -1
- data/lib/templates/erb/scaffold/edit.html.erb.tt +7 -12
- data/lib/templates/erb/scaffold/index.html.erb.tt +32 -36
- data/lib/templates/erb/scaffold/new.html.erb.tt +8 -12
- data/lib/utils/ip_helper.rb +21 -0
- data/lib/utils/time_helper.rb +37 -0
- metadata +17 -12
- data/config/initializers/time_format.rb +0 -1
- data/lib/assets/javascripts/semantic.js +0 -11
- data/lib/nondigest_assets/fonts/themes/default/assets/fonts/icons.eot +0 -0
- data/lib/nondigest_assets/fonts/themes/default/assets/fonts/icons.otf +0 -0
- data/lib/nondigest_assets/fonts/themes/default/assets/fonts/icons.svg +0 -947
- data/lib/nondigest_assets/fonts/themes/default/assets/fonts/icons.ttf +0 -0
- data/lib/nondigest_assets/fonts/themes/default/assets/fonts/icons.woff +0 -0
- data/lib/nondigest_assets/fonts/themes/default/assets/fonts/icons.woff2 +0 -0
- data/lib/nondigest_assets/fonts/themes/default/assets/images/flags.png +0 -0
Binary file
|
Binary file
|