vipassana-design-standards 0.0.14 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/HOW_TO_PUBLISH.md +7 -11
  2. package/README.md +31 -17
  3. package/TODO +9 -11
  4. package/demo/.gitattributes +5 -0
  5. package/demo/.ruby-version +1 -0
  6. package/demo/Gemfile +29 -0
  7. package/demo/Gemfile.lock +182 -0
  8. package/demo/Rakefile +6 -0
  9. package/demo/app/assets/config/manifest.js +2 -0
  10. package/demo/app/assets/stylesheets/application.css +15 -0
  11. package/demo/app/controllers/application_controller.rb +3 -0
  12. package/demo/app/controllers/demo_controller.rb +4 -0
  13. package/demo/app/views/demo/index.html.erb +11 -0
  14. package/demo/app/views/layouts/application.html.erb +74 -0
  15. package/demo/bin/bundle +114 -0
  16. package/demo/bin/rails +4 -0
  17. package/demo/bin/rake +4 -0
  18. package/demo/bin/setup +25 -0
  19. package/demo/config/application.rb +37 -0
  20. package/demo/config/boot.rb +3 -0
  21. package/demo/config/credentials.yml.enc +1 -0
  22. package/demo/config/environment.rb +5 -0
  23. package/demo/config/environments/development.rb +56 -0
  24. package/demo/config/environments/production.rb +72 -0
  25. package/demo/config/environments/test.rb +50 -0
  26. package/demo/config/initializers/assets.rb +12 -0
  27. package/demo/config/initializers/content_security_policy.rb +25 -0
  28. package/demo/config/initializers/filter_parameter_logging.rb +8 -0
  29. package/demo/config/initializers/inflections.rb +16 -0
  30. package/demo/config/initializers/permissions_policy.rb +11 -0
  31. package/demo/config/locales/en.yml +33 -0
  32. package/demo/config/puma.rb +43 -0
  33. package/demo/config/routes.rb +5 -0
  34. package/demo/config.ru +6 -0
  35. package/demo/public/404.html +67 -0
  36. package/demo/public/422.html +67 -0
  37. package/demo/public/500.html +66 -0
  38. package/demo/public/apple-touch-icon-precomposed.png +0 -0
  39. package/demo/public/apple-touch-icon.png +0 -0
  40. package/demo/public/favicon.ico +0 -0
  41. package/demo/public/robots.txt +1 -0
  42. package/demo.html +55 -0
  43. package/dist/0.0.16/css/bootstrap5-theme.css +12623 -0
  44. package/dist/0.0.16/css/bootstrap5-theme.css.map +1 -0
  45. package/dist/0.0.16/css/bootstrap5-theme.min.css +6 -0
  46. package/dist/0.0.16/css/bootstrap5-theme.rtl.css +12586 -0
  47. package/dist/0.0.16/css/bootstrap5-theme.rtl.min.css +6 -0
  48. package/dist/0.0.16/css/fonts-gu.css +65 -0
  49. package/dist/0.0.16/css/fonts-gu.min.css +1 -0
  50. package/dist/0.0.16/css/fonts-ja.css +2399 -0
  51. package/dist/0.0.16/css/fonts-ja.min.css +1 -0
  52. package/dist/0.0.16/css/fonts-km.css +2399 -0
  53. package/dist/0.0.16/css/fonts-km.min.css +1 -0
  54. package/dist/0.0.16/css/fonts.css +472 -0
  55. package/dist/0.0.16/css/fonts.css.map +1 -0
  56. package/dist/0.0.16/css/fonts.min.css +1 -0
  57. package/dist/0.0.16/css/logo.css +135 -0
  58. package/dist/0.0.16/css/logo.css.map +1 -0
  59. package/dist/0.0.16/css/logo.min.css +1 -0
  60. package/dist/0.0.16/js/bootstrap.bundle.js +7075 -0
  61. package/dist/0.0.16/js/bootstrap.bundle.js.map +1 -0
  62. package/dist/0.0.16/js/bootstrap.bundle.min.js +7 -0
  63. package/dist/0.0.16/js/bootstrap.bundle.min.js.map +1 -0
  64. package/dist/0.0.17/css/bootstrap5-theme.css +12629 -0
  65. package/dist/0.0.17/css/bootstrap5-theme.css.map +1 -0
  66. package/dist/0.0.17/css/bootstrap5-theme.min.css +6 -0
  67. package/dist/0.0.17/css/bootstrap5-theme.rtl.css +12592 -0
  68. package/dist/0.0.17/css/bootstrap5-theme.rtl.min.css +6 -0
  69. package/dist/0.0.17/css/fonts-gu.css +65 -0
  70. package/dist/0.0.17/css/fonts-gu.min.css +1 -0
  71. package/dist/0.0.17/css/fonts-ja.css +2399 -0
  72. package/dist/0.0.17/css/fonts-ja.min.css +1 -0
  73. package/dist/0.0.17/css/fonts-km.css +2399 -0
  74. package/dist/0.0.17/css/fonts-km.min.css +1 -0
  75. package/dist/0.0.17/css/fonts.css +472 -0
  76. package/dist/0.0.17/css/fonts.css.map +1 -0
  77. package/dist/0.0.17/css/fonts.min.css +1 -0
  78. package/dist/0.0.17/css/logo.css +135 -0
  79. package/dist/0.0.17/css/logo.css.map +1 -0
  80. package/dist/0.0.17/css/logo.min.css +1 -0
  81. package/dist/0.0.17/js/bootstrap5-theme.min.js +37 -0
  82. package/dist/0.0.17/js/bootstrap5-theme.min.js.map +1 -0
  83. package/dist/css/bootstrap5-theme.css +210 -4555
  84. package/dist/css/bootstrap5-theme.css.map +1 -1
  85. package/dist/css/bootstrap5-theme.min.css +1 -1
  86. package/dist/css/bootstrap5-theme.rtl.css +12592 -0
  87. package/dist/css/bootstrap5-theme.rtl.min.css +6 -0
  88. package/dist/css/fonts-gu.css +65 -0
  89. package/dist/css/fonts-gu.min.css +1 -0
  90. package/dist/css/fonts-ja.css +2399 -0
  91. package/dist/css/fonts-ja.min.css +1 -0
  92. package/dist/css/fonts-km.css +2399 -0
  93. package/dist/css/fonts-km.min.css +1 -0
  94. package/dist/css/fonts.css +23 -4386
  95. package/dist/css/fonts.css.map +1 -1
  96. package/dist/css/fonts.min.css +1 -1
  97. package/dist/css/logo.css +0 -9
  98. package/dist/css/logo.css.map +1 -1
  99. package/dist/css/logo.min.css +1 -0
  100. package/dist/js/bootstrap5-theme.min.js +37 -0
  101. package/dist/js/bootstrap5-theme.min.js.map +1 -0
  102. package/index.html +8 -8
  103. package/lib/vipassana/design_standards_helper.rb +111 -0
  104. package/lib/vipassana/logos_inline_svg.rb +1 -1
  105. package/lib/vipassana/translations.rb +9 -1
  106. package/lib/vipassana-design-standards.rb +1 -1
  107. package/package.json +13 -2
  108. package/src/javascripts/auto-resize.js +30 -0
  109. package/src/javascripts/i18n.js +7 -0
  110. package/src/javascripts/index.js +4 -7
  111. package/src/stylesheets/bootstrap5-theme.scss +11 -1
  112. package/src/stylesheets/custom-bootstrap.scss +19 -11
  113. package/src/stylesheets/fonts.scss +16 -4867
  114. package/src/stylesheets/layout/vds-header.scss +7 -0
  115. package/src/stylesheets/layout/vds-layout.scss +6 -5
  116. package/src/stylesheets/logo.scss +1 -8
  117. package/src/stylesheets/specific-fonts/fonts-gu.css +65 -0
  118. package/src/stylesheets/specific-fonts/fonts-ja.css +2399 -0
  119. package/src/stylesheets/specific-fonts/fonts-km.css +2399 -0
  120. package/vipassana-design-standards.gemspec +1 -1
  121. package/lib/vipassana/logo_helper.rb +0 -50
@@ -0,0 +1,37 @@
1
+ require_relative "boot"
2
+
3
+ require "rails"
4
+ # Pick the frameworks you want:
5
+ require "active_model/railtie"
6
+ # require "active_job/railtie"
7
+ # require "active_record/railtie"
8
+ # require "active_storage/engine"
9
+ require "action_controller/railtie"
10
+ # require "action_mailer/railtie"
11
+ # require "action_mailbox/engine"
12
+ # require "action_text/engine"
13
+ require "action_view/railtie"
14
+ # require "action_cable/engine"
15
+ require "rails/test_unit/railtie"
16
+
17
+ # Require the gems listed in Gemfile, including any gems
18
+ # you've limited to :test, :development, or :production.
19
+ Bundler.require(*Rails.groups)
20
+
21
+ module Demo
22
+ class Application < Rails::Application
23
+ # Initialize configuration defaults for originally generated Rails version.
24
+ config.load_defaults 7.0
25
+
26
+ # Configuration for the application, engines, and railties goes here.
27
+ #
28
+ # These settings can be overridden in specific environments using the files
29
+ # in config/environments, which are processed later.
30
+ #
31
+ # config.time_zone = "Central Time (US & Canada)"
32
+ # config.eager_load_paths << Rails.root.join("extras")
33
+
34
+ # Don't generate system test files.
35
+ config.generators.system_tests = nil
36
+ end
37
+ end
@@ -0,0 +1,3 @@
1
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
2
+
3
+ require "bundler/setup" # Set up gems listed in the Gemfile.
@@ -0,0 +1 @@
1
+ SMCc1JJCcKDlZaa1zivvUXtCa531ikojCKU3HdenCG7quPrYgdioKZHRNZy7cDGOIXhiCTVPG+zaLJiao1xEbrMZI8p6XXJ3RT3ftRwl9/rekzfjdBu39H02NDReCDT69BawZ3m10JHTotx1d0oQsLLwlMdbwiSAxgy5Cg+znRl8dl7LOCNOYPH4gKLuAZz4FMCe53tb37RWZSo868gyD5YbiOosVjfcPmZRuWqyR2BFUQlhYcKi8m26/4VcPiNSR2EEz+8IcpUjPejaIhto4HDCFT1YPB2Kan3w5FuxCP5sy94XgydaSbuMXwQZrgR+v7X75xjbZ+37Ddcc9HaJm5pqowmvZhzp8YMR56b+0Nj9Fnm4Hpn2HmQGi5sujXXO8pNFZSu7Pv406g3ec9hqDc0EeFnjmt2Vc7pi--D2pkBQPjjMjB5eJO--+pMnh0PZJk45goJYz2Mbrw==
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require_relative "application"
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -0,0 +1,56 @@
1
+ require "active_support/core_ext/integer/time"
2
+
3
+ Rails.application.configure do
4
+ # Settings specified here will take precedence over those in config/application.rb.
5
+
6
+ # In the development environment your application's code is reloaded any time
7
+ # it changes. This slows down response time but is perfect for development
8
+ # since you don't have to restart the web server when you make code changes.
9
+ config.cache_classes = false
10
+
11
+ # Do not eager load code on boot.
12
+ config.eager_load = false
13
+
14
+ # Show full error reports.
15
+ config.consider_all_requests_local = true
16
+
17
+ # Enable server timing
18
+ config.server_timing = true
19
+
20
+ # Enable/disable caching. By default caching is disabled.
21
+ # Run rails dev:cache to toggle caching.
22
+ if Rails.root.join("tmp/caching-dev.txt").exist?
23
+ config.action_controller.perform_caching = true
24
+ config.action_controller.enable_fragment_cache_logging = true
25
+
26
+ config.cache_store = :memory_store
27
+ config.public_file_server.headers = {
28
+ "Cache-Control" => "public, max-age=#{2.days.to_i}"
29
+ }
30
+ else
31
+ config.action_controller.perform_caching = false
32
+
33
+ config.cache_store = :null_store
34
+ end
35
+
36
+ # Print deprecation notices to the Rails logger.
37
+ config.active_support.deprecation = :log
38
+
39
+ # Raise exceptions for disallowed deprecations.
40
+ config.active_support.disallowed_deprecation = :raise
41
+
42
+ # Tell Active Support which deprecation messages to disallow.
43
+ config.active_support.disallowed_deprecation_warnings = []
44
+
45
+ # Suppress logger output for asset requests.
46
+ config.assets.quiet = true
47
+
48
+ # Raises error for missing translations.
49
+ # config.i18n.raise_on_missing_translations = true
50
+
51
+ # Annotate rendered view with file names.
52
+ # config.action_view.annotate_rendered_view_with_filenames = true
53
+
54
+ # Uncomment if you wish to allow Action Cable access from any origin.
55
+ # config.action_cable.disable_request_forgery_protection = true
56
+ end
@@ -0,0 +1,72 @@
1
+ require "active_support/core_ext/integer/time"
2
+
3
+ Rails.application.configure do
4
+ # Settings specified here will take precedence over those in config/application.rb.
5
+
6
+ # Code is not reloaded between requests.
7
+ config.cache_classes = true
8
+
9
+ # Eager load code on boot. This eager loads most of Rails and
10
+ # your application in memory, allowing both threaded web servers
11
+ # and those relying on copy on write to perform better.
12
+ # Rake tasks automatically ignore this option for performance.
13
+ config.eager_load = true
14
+
15
+ # Full error reports are disabled and caching is turned on.
16
+ config.consider_all_requests_local = false
17
+ config.action_controller.perform_caching = true
18
+
19
+ # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
20
+ # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
21
+ # config.require_master_key = true
22
+
23
+ # Disable serving static files from the `/public` folder by default since
24
+ # Apache or NGINX already handles this.
25
+ config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
26
+
27
+ # Compress CSS using a preprocessor.
28
+ # config.assets.css_compressor = :sass
29
+
30
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
31
+ config.assets.compile = false
32
+
33
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
34
+ # config.asset_host = "http://assets.example.com"
35
+
36
+ # Specifies the header that your server uses for sending files.
37
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
38
+ # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
39
+
40
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
41
+ # config.force_ssl = true
42
+
43
+ # Include generic and useful information about system operation, but avoid logging too much
44
+ # information to avoid inadvertent exposure of personally identifiable information (PII).
45
+ config.log_level = :info
46
+
47
+ # Prepend all log lines with the following tags.
48
+ config.log_tags = [ :request_id ]
49
+
50
+ # Use a different cache store in production.
51
+ # config.cache_store = :mem_cache_store
52
+
53
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
54
+ # the I18n.default_locale when a translation cannot be found).
55
+ config.i18n.fallbacks = true
56
+
57
+ # Don't log any deprecations.
58
+ config.active_support.report_deprecations = false
59
+
60
+ # Use default logging formatter so that PID and timestamp are not suppressed.
61
+ config.log_formatter = ::Logger::Formatter.new
62
+
63
+ # Use a different logger for distributed setups.
64
+ # require "syslog/logger"
65
+ # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name")
66
+
67
+ if ENV["RAILS_LOG_TO_STDOUT"].present?
68
+ logger = ActiveSupport::Logger.new(STDOUT)
69
+ logger.formatter = config.log_formatter
70
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
71
+ end
72
+ end
@@ -0,0 +1,50 @@
1
+ require "active_support/core_ext/integer/time"
2
+
3
+ # The test environment is used exclusively to run your application's
4
+ # test suite. You never need to work with it otherwise. Remember that
5
+ # your test database is "scratch space" for the test suite and is wiped
6
+ # and recreated between test runs. Don't rely on the data there!
7
+
8
+ Rails.application.configure do
9
+ # Settings specified here will take precedence over those in config/application.rb.
10
+
11
+ # Turn false under Spring and add config.action_view.cache_template_loading = true.
12
+ config.cache_classes = true
13
+
14
+ # Eager loading loads your whole application. When running a single test locally,
15
+ # this probably isn't necessary. It's a good idea to do in a continuous integration
16
+ # system, or in some way before deploying your code.
17
+ config.eager_load = ENV["CI"].present?
18
+
19
+ # Configure public file server for tests with Cache-Control for performance.
20
+ config.public_file_server.enabled = true
21
+ config.public_file_server.headers = {
22
+ "Cache-Control" => "public, max-age=#{1.hour.to_i}"
23
+ }
24
+
25
+ # Show full error reports and disable caching.
26
+ config.consider_all_requests_local = true
27
+ config.action_controller.perform_caching = false
28
+ config.cache_store = :null_store
29
+
30
+ # Raise exceptions instead of rendering exception templates.
31
+ config.action_dispatch.show_exceptions = false
32
+
33
+ # Disable request forgery protection in test environment.
34
+ config.action_controller.allow_forgery_protection = false
35
+
36
+ # Print deprecation notices to the stderr.
37
+ config.active_support.deprecation = :stderr
38
+
39
+ # Raise exceptions for disallowed deprecations.
40
+ config.active_support.disallowed_deprecation = :raise
41
+
42
+ # Tell Active Support which deprecation messages to disallow.
43
+ config.active_support.disallowed_deprecation_warnings = []
44
+
45
+ # Raises error for missing translations.
46
+ # config.i18n.raise_on_missing_translations = true
47
+
48
+ # Annotate rendered view with file names.
49
+ # config.action_view.annotate_rendered_view_with_filenames = true
50
+ end
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = "1.0"
5
+
6
+ # Add additional assets to the asset load path.
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in the app/assets
11
+ # folder are already added.
12
+ # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -0,0 +1,25 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Define an application-wide content security policy.
4
+ # See the Securing Rails Applications Guide for more information:
5
+ # https://guides.rubyonrails.org/security.html#content-security-policy-header
6
+
7
+ # Rails.application.configure do
8
+ # config.content_security_policy do |policy|
9
+ # policy.default_src :self, :https
10
+ # policy.font_src :self, :https, :data
11
+ # policy.img_src :self, :https, :data
12
+ # policy.object_src :none
13
+ # policy.script_src :self, :https
14
+ # policy.style_src :self, :https
15
+ # # Specify URI for violation reports
16
+ # # policy.report_uri "/csp-violation-report-endpoint"
17
+ # end
18
+ #
19
+ # # Generate session nonces for permitted importmap and inline scripts
20
+ # config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
21
+ # config.content_security_policy_nonce_directives = %w(script-src)
22
+ #
23
+ # # Report violations without enforcing the policy.
24
+ # # config.content_security_policy_report_only = true
25
+ # end
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure parameters to be filtered from the log file. Use this to limit dissemination of
4
+ # sensitive information. See the ActiveSupport::ParameterFilter documentation for supported
5
+ # notations and behaviors.
6
+ Rails.application.config.filter_parameters += [
7
+ :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
8
+ ]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, "\\1en"
8
+ # inflect.singular /^(ox)en/i, "\\1"
9
+ # inflect.irregular "person", "people"
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym "RESTful"
16
+ # end
@@ -0,0 +1,11 @@
1
+ # Define an application-wide HTTP permissions policy. For further
2
+ # information see https://developers.google.com/web/updates/2018/06/feature-policy
3
+ #
4
+ # Rails.application.config.permissions_policy do |f|
5
+ # f.camera :none
6
+ # f.gyroscope :none
7
+ # f.microphone :none
8
+ # f.usb :none
9
+ # f.fullscreen :self
10
+ # f.payment :self, "https://secure.example.com"
11
+ # end
@@ -0,0 +1,33 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t "hello"
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t("hello") %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # "true": "foo"
28
+ #
29
+ # To learn more, please read the Rails Internationalization guide
30
+ # available at https://guides.rubyonrails.org/i18n.html.
31
+
32
+ en:
33
+ hello: "Hello world"
@@ -0,0 +1,43 @@
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
+ max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
8
+ min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
9
+ threads min_threads_count, max_threads_count
10
+
11
+ # Specifies the `worker_timeout` threshold that Puma will use to wait before
12
+ # terminating a worker in development environments.
13
+ #
14
+ worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
15
+
16
+ # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
17
+ #
18
+ port ENV.fetch("PORT") { 3000 }
19
+
20
+ # Specifies the `environment` that Puma will run in.
21
+ #
22
+ environment ENV.fetch("RAILS_ENV") { "development" }
23
+
24
+ # Specifies the `pidfile` that Puma will use.
25
+ pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
26
+
27
+ # Specifies the number of `workers` to boot in clustered mode.
28
+ # Workers are forked web server processes. If using threads and workers together
29
+ # the concurrency of the application would be max `threads` * `workers`.
30
+ # Workers do not work on JRuby or Windows (both of which do not support
31
+ # processes).
32
+ #
33
+ # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
34
+
35
+ # Use the `preload_app!` method when specifying a `workers` number.
36
+ # This directive tells Puma to first boot the application and load code
37
+ # before forking the application. This takes advantage of Copy On Write
38
+ # process behavior so workers use less memory.
39
+ #
40
+ # preload_app!
41
+
42
+ # Allow puma to be restarted by `bin/rails restart` command.
43
+ plugin :tmp_restart
@@ -0,0 +1,5 @@
1
+ Rails.application.routes.draw do
2
+ root "demo#index"
3
+
4
+ get 'demo/index'
5
+ end
package/demo/config.ru ADDED
@@ -0,0 +1,6 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require_relative "config/environment"
4
+
5
+ run Rails.application
6
+ Rails.application.load_server
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
File without changes
File without changes
@@ -0,0 +1 @@
1
+ # See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
package/demo.html ADDED
@@ -0,0 +1,55 @@
1
+ <html lang="fa" class="vds-html">
2
+ <head>
3
+ <link rel="stylesheet" href="dist/css/bootstrap5-theme.min.css" />
4
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.bundle.min.js" integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous"></script>
5
+ </head>
6
+
7
+ <body class="vds-body">
8
+ <div class="vds-header-and-content">
9
+ <!-- Header -->
10
+ <header class="vds-header">
11
+ <div class="vds-container">
12
+ <a href class="vds-logo-link">
13
+
14
+ </a>
15
+ </div>
16
+ </header>
17
+
18
+ <!-- Page -->
19
+ <div class="vds-page vds-container">
20
+ <div class="vds-sidenav">
21
+ <ul>
22
+ <li>
23
+ <a href="#" class="active">Home Page</a>
24
+ </li>
25
+ <li>
26
+ <a href="#">My Settings</a>
27
+ </li>
28
+ </ul>
29
+ </div>
30
+ <div class="vds-page-content">
31
+ <!-- Page content -->
32
+ <h1>Demo Page</h1>
33
+ <p>
34
+ Quam quos eum minima quod ut facilis laboriosam. Cum sapiente doloremque officiis eos sunt.
35
+ Porro quam ut quos. Qui autem fugit et. Impedit sunt vel in necessitatibus eligendi.
36
+ </p>
37
+ <p>
38
+ Quam quos eum minima quod ut facilis laboriosam. Cum sapiente doloremque officiis eos sunt.
39
+ Porro quam ut quos. Qui autem fugit et. Impedit sunt vel in necessitatibus eligendi.
40
+ </p>
41
+ <button type="button" class="btn btn-secondary">Submit</button>
42
+ </div>
43
+ </div>
44
+ </div>
45
+
46
+ <!-- Footer -->
47
+ <footer class="vds-footer">
48
+ <div class="vds-container">
49
+ <a href="#">Privacy</a>
50
+ <span class="mx-2">|</span>
51
+ <a href="#">Help</a>
52
+ </div>
53
+ </footer>
54
+ </body>
55
+ </html>