common_engine 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +24 -0
- data/Rakefile +6 -0
- data/app/assets/config/manifest.js +3 -0
- data/app/assets/javascripts/application.js +16 -0
- data/app/assets/javascripts/cable.js +13 -0
- data/app/assets/javascripts/init_fullcalendar.js +40 -0
- data/app/assets/stylesheets/application.css +15 -0
- data/app/channels/application_cable/channel.rb +4 -0
- data/app/channels/application_cable/connection.rb +4 -0
- data/app/controllers/application_base_controller.rb +61 -0
- data/app/controllers/concerns/fullcalendar_utility.rb +47 -0
- data/app/controllers/concerns/zoom_utility.rb +110 -0
- data/app/helpers/application_helper.rb +2 -0
- data/app/jobs/application_job.rb +2 -0
- data/app/mailers/application_mailer.rb +4 -0
- data/app/models/application_base_record.rb +48 -0
- data/app/models/common_engine/admin.rb +13 -0
- data/app/models/common_engine/admin_login_history.rb +5 -0
- data/app/models/common_engine/chapter.rb +25 -0
- data/app/models/common_engine/commodity.rb +6 -0
- data/app/models/common_engine/course.rb +8 -0
- data/app/models/common_engine/event.rb +5 -0
- data/app/models/common_engine/favorite.rb +8 -0
- data/app/models/common_engine/group.rb +9 -0
- data/app/models/common_engine/idle.rb +35 -0
- data/app/models/common_engine/idle_login_history.rb +7 -0
- data/app/models/common_engine/notice.rb +8 -0
- data/app/models/common_engine/schedule.rb +32 -0
- data/app/models/common_engine/settlement_history.rb +8 -0
- data/app/models/common_engine/user.rb +15 -0
- data/app/models/common_engine/user_login_history.rb +7 -0
- data/app/models/concerns/image_uploader.rb +49 -0
- data/app/models/concerns/login_module.rb +14 -0
- data/app/views/_prepare_fullcalendar.slim +20 -0
- data/app/views/errors/error_404.html.slim +1 -0
- data/app/views/errors/error_500.html.slim +1 -0
- data/app/views/layouts/application_base.html.erb +29 -0
- data/config/application.rb +19 -0
- data/config/boot.rb +4 -0
- data/config/cable.yml +10 -0
- data/config/credentials.yml.enc +1 -0
- data/config/database.yml +93 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +61 -0
- data/config/environments/production.rb +94 -0
- data/config/environments/test.rb +46 -0
- data/config/initializers/application_controller_renderer.rb +10 -0
- data/config/initializers/assets.rb +14 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/content_security_policy.rb +25 -0
- data/config/initializers/cookies_serializer.rb +5 -0
- data/config/initializers/filter_parameter_logging.rb +4 -0
- data/config/initializers/inflections.rb +16 -0
- data/config/initializers/mime_types.rb +4 -0
- data/config/initializers/wrap_parameters.rb +14 -0
- data/config/locales/en.yml +251 -0
- data/config/locales/ja.yml +255 -0
- data/config/locales/vi.yml +249 -0
- data/config/puma.rb +34 -0
- data/config/routes.rb +3 -0
- data/config/spring.rb +6 -0
- data/config/storage.yml +34 -0
- data/db/schema.rb +18 -0
- data/db/seeds.rb +7 -0
- data/lib/common_engine.rb +9 -0
- data/lib/common_engine/engine.rb +5 -0
- data/lib/common_engine/version.rb +3 -0
- metadata +125 -0
data/config/puma.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
2
|
+
# The `threads` method setting takes two numbers: a minimum and maximum.
|
3
|
+
# Any libraries that use thread pools should be configured to match
|
4
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
|
+
# and maximum; this matches the default thread size of Active Record.
|
6
|
+
#
|
7
|
+
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
8
|
+
threads threads_count, threads_count
|
9
|
+
|
10
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
11
|
+
#
|
12
|
+
port ENV.fetch("PORT") { 3000 }
|
13
|
+
|
14
|
+
# Specifies the `environment` that Puma will run in.
|
15
|
+
#
|
16
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
17
|
+
|
18
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
19
|
+
# Workers are forked webserver processes. If using threads and workers together
|
20
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
21
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
22
|
+
# processes).
|
23
|
+
#
|
24
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
25
|
+
|
26
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
27
|
+
# This directive tells Puma to first boot the application and load code
|
28
|
+
# before forking the application. This takes advantage of Copy On Write
|
29
|
+
# process behavior so workers use less memory.
|
30
|
+
#
|
31
|
+
# preload_app!
|
32
|
+
|
33
|
+
# Allow puma to be restarted by `rails restart` command.
|
34
|
+
plugin :tmp_restart
|
data/config/routes.rb
ADDED
data/config/spring.rb
ADDED
data/config/storage.yml
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
test:
|
2
|
+
service: Disk
|
3
|
+
root: <%= Rails.root.join("tmp/storage") %>
|
4
|
+
|
5
|
+
local:
|
6
|
+
service: Disk
|
7
|
+
root: <%= Rails.root.join("storage") %>
|
8
|
+
|
9
|
+
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
|
10
|
+
# amazon:
|
11
|
+
# service: S3
|
12
|
+
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
|
13
|
+
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
|
14
|
+
# region: us-east-1
|
15
|
+
# bucket: your_own_bucket
|
16
|
+
|
17
|
+
# Remember not to checkin your GCS keyfile to a repository
|
18
|
+
# google:
|
19
|
+
# service: GCS
|
20
|
+
# project: your_project
|
21
|
+
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
|
22
|
+
# bucket: your_own_bucket
|
23
|
+
|
24
|
+
# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
|
25
|
+
# microsoft:
|
26
|
+
# service: AzureStorage
|
27
|
+
# storage_account_name: your_account_name
|
28
|
+
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
|
29
|
+
# container: your_container_name
|
30
|
+
|
31
|
+
# mirror:
|
32
|
+
# service: Mirror
|
33
|
+
# primary: local
|
34
|
+
# mirrors: [ amazon, google, microsoft ]
|
data/db/schema.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(version: 0) do
|
14
|
+
|
15
|
+
# These are extensions that must be enabled in order to support this database
|
16
|
+
enable_extension "plpgsql"
|
17
|
+
|
18
|
+
end
|
data/db/seeds.rb
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
+
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
|
3
|
+
#
|
4
|
+
# Examples:
|
5
|
+
#
|
6
|
+
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
|
7
|
+
# Character.create(name: 'Luke', movie: movies.first)
|
metadata
ADDED
@@ -0,0 +1,125 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: common_engine
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- IDLE
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-08-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 5.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 5.2.0
|
27
|
+
description: Description of CommonEngine.
|
28
|
+
email:
|
29
|
+
- ''
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- README.md
|
35
|
+
- Rakefile
|
36
|
+
- app/assets/config/manifest.js
|
37
|
+
- app/assets/javascripts/application.js
|
38
|
+
- app/assets/javascripts/cable.js
|
39
|
+
- app/assets/javascripts/init_fullcalendar.js
|
40
|
+
- app/assets/stylesheets/application.css
|
41
|
+
- app/channels/application_cable/channel.rb
|
42
|
+
- app/channels/application_cable/connection.rb
|
43
|
+
- app/controllers/application_base_controller.rb
|
44
|
+
- app/controllers/concerns/fullcalendar_utility.rb
|
45
|
+
- app/controllers/concerns/zoom_utility.rb
|
46
|
+
- app/helpers/application_helper.rb
|
47
|
+
- app/jobs/application_job.rb
|
48
|
+
- app/mailers/application_mailer.rb
|
49
|
+
- app/models/application_base_record.rb
|
50
|
+
- app/models/common_engine/admin.rb
|
51
|
+
- app/models/common_engine/admin_login_history.rb
|
52
|
+
- app/models/common_engine/chapter.rb
|
53
|
+
- app/models/common_engine/commodity.rb
|
54
|
+
- app/models/common_engine/course.rb
|
55
|
+
- app/models/common_engine/event.rb
|
56
|
+
- app/models/common_engine/favorite.rb
|
57
|
+
- app/models/common_engine/group.rb
|
58
|
+
- app/models/common_engine/idle.rb
|
59
|
+
- app/models/common_engine/idle_login_history.rb
|
60
|
+
- app/models/common_engine/notice.rb
|
61
|
+
- app/models/common_engine/schedule.rb
|
62
|
+
- app/models/common_engine/settlement_history.rb
|
63
|
+
- app/models/common_engine/user.rb
|
64
|
+
- app/models/common_engine/user_login_history.rb
|
65
|
+
- app/models/concerns/image_uploader.rb
|
66
|
+
- app/models/concerns/login_module.rb
|
67
|
+
- app/views/_prepare_fullcalendar.slim
|
68
|
+
- app/views/errors/error_404.html.slim
|
69
|
+
- app/views/errors/error_500.html.slim
|
70
|
+
- app/views/layouts/application_base.html.erb
|
71
|
+
- config/application.rb
|
72
|
+
- config/boot.rb
|
73
|
+
- config/cable.yml
|
74
|
+
- config/credentials.yml.enc
|
75
|
+
- config/database.yml
|
76
|
+
- config/environment.rb
|
77
|
+
- config/environments/development.rb
|
78
|
+
- config/environments/production.rb
|
79
|
+
- config/environments/test.rb
|
80
|
+
- config/initializers/application_controller_renderer.rb
|
81
|
+
- config/initializers/assets.rb
|
82
|
+
- config/initializers/backtrace_silencers.rb
|
83
|
+
- config/initializers/content_security_policy.rb
|
84
|
+
- config/initializers/cookies_serializer.rb
|
85
|
+
- config/initializers/filter_parameter_logging.rb
|
86
|
+
- config/initializers/inflections.rb
|
87
|
+
- config/initializers/mime_types.rb
|
88
|
+
- config/initializers/wrap_parameters.rb
|
89
|
+
- config/locales/en.yml
|
90
|
+
- config/locales/ja.yml
|
91
|
+
- config/locales/vi.yml
|
92
|
+
- config/puma.rb
|
93
|
+
- config/routes.rb
|
94
|
+
- config/spring.rb
|
95
|
+
- config/storage.yml
|
96
|
+
- db/schema.rb
|
97
|
+
- db/seeds.rb
|
98
|
+
- lib/common_engine.rb
|
99
|
+
- lib/common_engine/engine.rb
|
100
|
+
- lib/common_engine/version.rb
|
101
|
+
homepage: ''
|
102
|
+
licenses:
|
103
|
+
- MIT
|
104
|
+
metadata:
|
105
|
+
allowed_push_host: https://rubygems.org
|
106
|
+
post_install_message:
|
107
|
+
rdoc_options: []
|
108
|
+
require_paths:
|
109
|
+
- lib
|
110
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
requirements: []
|
121
|
+
rubygems_version: 3.0.4
|
122
|
+
signing_key:
|
123
|
+
specification_version: 4
|
124
|
+
summary: Summary of CommonEngine
|
125
|
+
test_files: []
|