Xwitter 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +7 -0
  2. data/.babelrc +26 -0
  3. data/.gitignore +19 -0
  4. data/.postcssrc.yml +3 -0
  5. data/.ruby-version +1 -0
  6. data/Gemfile +44 -0
  7. data/Gemfile.lock +247 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +35 -0
  10. data/Rakefile +7 -0
  11. data/Schemafile +40 -0
  12. data/Xwitter.gemspec +28 -0
  13. data/app/assets/config/manifest.js +3 -0
  14. data/app/assets/images/.keep +0 -0
  15. data/app/assets/javascripts/application.js +16 -0
  16. data/app/assets/javascripts/cable.js +13 -0
  17. data/app/assets/javascripts/channels/.keep +0 -0
  18. data/app/assets/javascripts/messages.coffee +3 -0
  19. data/app/assets/javascripts/users.coffee +3 -0
  20. data/app/assets/stylesheets/application.css +15 -0
  21. data/app/assets/stylesheets/messages.scss +3 -0
  22. data/app/assets/stylesheets/scaffolds.scss +84 -0
  23. data/app/assets/stylesheets/users.scss +3 -0
  24. data/app/channels/application_cable/channel.rb +4 -0
  25. data/app/channels/application_cable/connection.rb +4 -0
  26. data/app/controllers/application_controller.rb +2 -0
  27. data/app/controllers/concerns/.keep +0 -0
  28. data/app/controllers/messages_controller.rb +79 -0
  29. data/app/controllers/profiles_controller.rb +48 -0
  30. data/app/helpers/application_helper.rb +2 -0
  31. data/app/helpers/messages_helper.rb +2 -0
  32. data/app/helpers/users_helper.rb +2 -0
  33. data/app/javascript/components/.gitkeep +0 -0
  34. data/app/javascript/packs/application.js +14 -0
  35. data/app/javascript/packs/application.scss +1 -0
  36. data/app/javascript/packs/hello_react.jsx +26 -0
  37. data/app/javascript/packs/hello_typescript.ts +4 -0
  38. data/app/javascript/packs/server_rendering.js +5 -0
  39. data/app/jobs/application_job.rb +2 -0
  40. data/app/mailers/application_mailer.rb +4 -0
  41. data/app/models/application_record.rb +3 -0
  42. data/app/models/concerns/.keep +0 -0
  43. data/app/models/message.rb +4 -0
  44. data/app/models/user.rb +6 -0
  45. data/app/views/layouts/application.html.slim +16 -0
  46. data/app/views/layouts/mailer.html.erb +13 -0
  47. data/app/views/layouts/mailer.text.erb +1 -0
  48. data/app/views/messages/_form.html.slim +12 -0
  49. data/app/views/messages/_index.html.slim +12 -0
  50. data/app/views/messages/_message.json.jbuilder +2 -0
  51. data/app/views/messages/_show.html.slim +11 -0
  52. data/app/views/messages/edit.html.slim +8 -0
  53. data/app/views/messages/index.html.slim +20 -0
  54. data/app/views/messages/index.json.jbuilder +1 -0
  55. data/app/views/messages/new.html.slim +5 -0
  56. data/app/views/messages/show.html.slim +9 -0
  57. data/app/views/messages/show.json.jbuilder +1 -0
  58. data/app/views/profiles/_form.html.slim +15 -0
  59. data/app/views/profiles/_user.json.jbuilder +2 -0
  60. data/app/views/profiles/edit.html.slim +5 -0
  61. data/app/views/profiles/show.html.slim +8 -0
  62. data/app/views/profiles/show.json.jbuilder +1 -0
  63. data/app/views/users/confirmations/new.html.erb +16 -0
  64. data/app/views/users/mailer/confirmation_instructions.html.erb +5 -0
  65. data/app/views/users/mailer/email_changed.html.erb +7 -0
  66. data/app/views/users/mailer/password_change.html.erb +3 -0
  67. data/app/views/users/mailer/reset_password_instructions.html.erb +8 -0
  68. data/app/views/users/mailer/unlock_instructions.html.erb +7 -0
  69. data/app/views/users/passwords/edit.html.erb +25 -0
  70. data/app/views/users/passwords/new.html.erb +16 -0
  71. data/app/views/users/registrations/edit.html.erb +43 -0
  72. data/app/views/users/registrations/new.html.erb +29 -0
  73. data/app/views/users/sessions/new.html.slim +16 -0
  74. data/app/views/users/shared/_links.html.slim +21 -0
  75. data/app/views/users/unlocks/new.html.erb +16 -0
  76. data/bin/bundle +3 -0
  77. data/bin/console +14 -0
  78. data/bin/rails +9 -0
  79. data/bin/rake +9 -0
  80. data/bin/setup +8 -0
  81. data/bin/spring +17 -0
  82. data/bin/update +31 -0
  83. data/bin/webpack +15 -0
  84. data/bin/webpack-dev-server +15 -0
  85. data/bin/yarn +11 -0
  86. data/config/application.rb +19 -0
  87. data/config/boot.rb +4 -0
  88. data/config/cable.yml +10 -0
  89. data/config/credentials.yml.enc +1 -0
  90. data/config/database.yml +26 -0
  91. data/config/environment.rb +5 -0
  92. data/config/environments/development.rb +63 -0
  93. data/config/environments/production.rb +96 -0
  94. data/config/environments/test.rb +46 -0
  95. data/config/initializers/application_controller_renderer.rb +8 -0
  96. data/config/initializers/assets.rb +14 -0
  97. data/config/initializers/backtrace_silencers.rb +7 -0
  98. data/config/initializers/content_security_policy.rb +25 -0
  99. data/config/initializers/cookies_serializer.rb +5 -0
  100. data/config/initializers/devise.rb +290 -0
  101. data/config/initializers/filter_parameter_logging.rb +4 -0
  102. data/config/initializers/inflections.rb +16 -0
  103. data/config/initializers/mime_types.rb +4 -0
  104. data/config/initializers/wrap_parameters.rb +14 -0
  105. data/config/locales/devise.en.yml +64 -0
  106. data/config/locales/en.yml +33 -0
  107. data/config/puma.rb +34 -0
  108. data/config/routes.rb +7 -0
  109. data/config/spring.rb +6 -0
  110. data/config/storage.yml +34 -0
  111. data/config/webpack/development.js +5 -0
  112. data/config/webpack/environment.js +5 -0
  113. data/config/webpack/loaders/typescript.js +6 -0
  114. data/config/webpack/production.js +5 -0
  115. data/config/webpack/test.js +5 -0
  116. data/config/webpacker.yml +71 -0
  117. data/config.ru +5 -0
  118. data/db/seeds.rb +7 -0
  119. data/lib/Xwitter/version.rb +3 -0
  120. data/lib/Xwitter.rb +6 -0
  121. data/lib/assets/.keep +0 -0
  122. data/lib/tasks/.keep +0 -0
  123. data/log/.keep +0 -0
  124. data/package.json +20 -0
  125. data/public/404.html +67 -0
  126. data/public/422.html +67 -0
  127. data/public/500.html +66 -0
  128. data/public/apple-touch-icon-precomposed.png +0 -0
  129. data/public/apple-touch-icon.png +0 -0
  130. data/public/favicon.ico +0 -0
  131. data/public/robots.txt +1 -0
  132. data/storage/.keep +0 -0
  133. data/tsconfig.json +20 -0
  134. data/vendor/.keep +0 -0
  135. data/yarn.lock +6051 -0
  136. metadata +206 -0
data/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "Xwitter",
3
+ "private": true,
4
+ "dependencies": {
5
+ "@rails/webpacker": "3.5",
6
+ "@types/react": "^16.7.1",
7
+ "@types/react-dom": "^16.0.9",
8
+ "babel-preset-react": "^6.24.1",
9
+ "bootstrap": "^4.1.3",
10
+ "prop-types": "^15.6.2",
11
+ "react": "^16.6.1",
12
+ "react-dom": "^16.6.1",
13
+ "react_ujs": "^2.4.4",
14
+ "ts-loader": "3.5.0",
15
+ "typescript": "^3.1.6"
16
+ },
17
+ "devDependencies": {
18
+ "webpack-dev-server": "2.11.2"
19
+ }
20
+ }
data/public/404.html ADDED
@@ -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>
data/public/422.html ADDED
@@ -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>
data/public/500.html ADDED
@@ -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
data/public/robots.txt ADDED
@@ -0,0 +1 @@
1
+ # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
data/storage/.keep ADDED
File without changes
data/tsconfig.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": false,
4
+ "emitDecoratorMetadata": true,
5
+ "experimentalDecorators": true,
6
+ "lib": ["es6", "dom"],
7
+ "module": "es6",
8
+ "moduleResolution": "node",
9
+ "sourceMap": true,
10
+ "target": "es5",
11
+ "jsx": "react"
12
+ },
13
+ "exclude": [
14
+ "**/*.spec.ts",
15
+ "node_modules",
16
+ "vendor",
17
+ "public"
18
+ ],
19
+ "compileOnSave": false
20
+ }
data/vendor/.keep ADDED
File without changes