rails-playground 0.1.0
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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +67 -0
- data/Rakefile +8 -0
- data/app/assets/javascripts/playground/application.js +17 -0
- data/app/assets/javascripts/playground/controllers/codemirror_controller.js +49 -0
- data/app/assets/javascripts/playground/controllers/hello_controller.js +7 -0
- data/app/assets/javascripts/playground/controllers/playground_controller.js +12 -0
- data/app/assets/javascripts/playground/controllers/search_scripts_controller.js +20 -0
- data/app/assets/javascripts/playground/controllers/select_script_controller.js +8 -0
- data/app/assets/stylesheets/playground/application.scss +28 -0
- data/app/controllers/playground/application_controller.rb +4 -0
- data/app/controllers/playground/consoles_controller.rb +7 -0
- data/app/controllers/playground/scripts_controller.rb +49 -0
- data/app/helpers/playground/application_helper.rb +4 -0
- data/app/helpers/playground/consoles_helper.rb +4 -0
- data/app/helpers/playground/scripts_helper.rb +34 -0
- data/app/jobs/playground/application_job.rb +4 -0
- data/app/mailers/playground/application_mailer.rb +6 -0
- data/app/models/playground/application_record.rb +5 -0
- data/app/views/layouts/playground/application.html.erb +14 -0
- data/app/views/playground/consoles/show.html.erb +20 -0
- data/app/views/playground/scripts/_script.html.erb +5 -0
- data/app/views/playground/scripts/_script_select_box.html.erb +3 -0
- data/app/views/playground/scripts/index.html.erb +1 -0
- data/app/views/playground/scripts/index.turbo_stream.erb +1 -0
- data/app/views/playground/scripts/show.html.erb +1 -0
- data/app/views/playground/scripts/show.turbo_stream.erb +1 -0
- data/config/routes.rb +6 -0
- data/lib/playground/engine.rb +14 -0
- data/lib/playground/templates/index.html.erb +22 -0
- data/lib/playground/version.rb +3 -0
- data/lib/playground.rb +20 -0
- data/lib/tasks/playground_tasks.rake +4 -0
- data/vendor/javascripts/playground/application.js +41 -0
- data/vendor/stylesheets/playground/application.css +57 -0
- data/vendor/stylesheets/playground/application.css.map +1 -0
- metadata +109 -0
@@ -0,0 +1,57 @@
|
|
1
|
+
body#playground {
|
2
|
+
max-width: 900px;
|
3
|
+
margin: auto;
|
4
|
+
padding: 0 1rem;
|
5
|
+
}
|
6
|
+
body#playground .console {
|
7
|
+
margin-top: 1rem;
|
8
|
+
position: relative;
|
9
|
+
border: 0.5rem solid black;
|
10
|
+
}
|
11
|
+
body#playground .console .console-outer {
|
12
|
+
position: unset;
|
13
|
+
}
|
14
|
+
body#playground .console-actions {
|
15
|
+
display: none;
|
16
|
+
}
|
17
|
+
body#playground .code {
|
18
|
+
flex-grow: 1;
|
19
|
+
height: 550px;
|
20
|
+
position: relative;
|
21
|
+
}
|
22
|
+
body#playground .sidebar {
|
23
|
+
margin-right: 1rem;
|
24
|
+
}
|
25
|
+
body#playground input, body#playground select, body#playground .console {
|
26
|
+
-webkit-box-sizing: border-box;
|
27
|
+
-moz-box-sizing: border-box;
|
28
|
+
box-sizing: border-box;
|
29
|
+
}
|
30
|
+
body#playground select {
|
31
|
+
font-size: 0.7em;
|
32
|
+
padding: 1rem;
|
33
|
+
height: 100%;
|
34
|
+
max-height: 500px;
|
35
|
+
}
|
36
|
+
body#playground input {
|
37
|
+
margin-bottom: 0.5rem;
|
38
|
+
padding: 0.5rem;
|
39
|
+
}
|
40
|
+
body#playground select, body#playground input {
|
41
|
+
width: 200px;
|
42
|
+
}
|
43
|
+
body#playground [data-controller=codemirror] {
|
44
|
+
height: 100%;
|
45
|
+
}
|
46
|
+
body#playground [data-controller=codemirror] .cm-scroller {
|
47
|
+
overflow: auto;
|
48
|
+
}
|
49
|
+
body#playground [data-controller=codemirror] .cm-editor {
|
50
|
+
position: absolute !important;
|
51
|
+
top: 0;
|
52
|
+
right: 0;
|
53
|
+
bottom: 0;
|
54
|
+
left: 0;
|
55
|
+
}
|
56
|
+
|
57
|
+
/*# sourceMappingURL=application.css.map */
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../app/assets/stylesheets/playground/application.scss"],"names":[],"mappings":"AAAA;EAAkB;EAAiB;EAAa;;AAC9C;EAAW;EACT;EAAoB;;AACpB;EACE;;AAIJ;EAAmB;;AAEnB;EAAQ;EAAa;EAAc;;AACnC;EAAW;;AAEX;EACE;EACG;EACK;;AAGV;EAAS;EAAiB;EAAc;EAAa;;AACrD;EAAQ;EAAsB;;AAC9B;EAAgB;;AAEhB;EAAiC;;AAC/B;EAAe;;AACf;EAAa;EAA8B;EAAO;EAAS;EAAU","file":"application.css"}
|
metadata
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails-playground
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alexandre Barret
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-03-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: web-console
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: turbo-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description:
|
42
|
+
email:
|
43
|
+
- barret.alx@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- MIT-LICENSE
|
49
|
+
- README.md
|
50
|
+
- Rakefile
|
51
|
+
- app/assets/javascripts/playground/application.js
|
52
|
+
- app/assets/javascripts/playground/controllers/codemirror_controller.js
|
53
|
+
- app/assets/javascripts/playground/controllers/hello_controller.js
|
54
|
+
- app/assets/javascripts/playground/controllers/playground_controller.js
|
55
|
+
- app/assets/javascripts/playground/controllers/search_scripts_controller.js
|
56
|
+
- app/assets/javascripts/playground/controllers/select_script_controller.js
|
57
|
+
- app/assets/stylesheets/playground/application.scss
|
58
|
+
- app/controllers/playground/application_controller.rb
|
59
|
+
- app/controllers/playground/consoles_controller.rb
|
60
|
+
- app/controllers/playground/scripts_controller.rb
|
61
|
+
- app/helpers/playground/application_helper.rb
|
62
|
+
- app/helpers/playground/consoles_helper.rb
|
63
|
+
- app/helpers/playground/scripts_helper.rb
|
64
|
+
- app/jobs/playground/application_job.rb
|
65
|
+
- app/mailers/playground/application_mailer.rb
|
66
|
+
- app/models/playground/application_record.rb
|
67
|
+
- app/views/layouts/playground/application.html.erb
|
68
|
+
- app/views/playground/consoles/show.html.erb
|
69
|
+
- app/views/playground/scripts/_script.html.erb
|
70
|
+
- app/views/playground/scripts/_script_select_box.html.erb
|
71
|
+
- app/views/playground/scripts/index.html.erb
|
72
|
+
- app/views/playground/scripts/index.turbo_stream.erb
|
73
|
+
- app/views/playground/scripts/show.html.erb
|
74
|
+
- app/views/playground/scripts/show.turbo_stream.erb
|
75
|
+
- config/routes.rb
|
76
|
+
- lib/playground.rb
|
77
|
+
- lib/playground/engine.rb
|
78
|
+
- lib/playground/templates/index.html.erb
|
79
|
+
- lib/playground/version.rb
|
80
|
+
- lib/tasks/playground_tasks.rake
|
81
|
+
- vendor/javascripts/playground/application.js
|
82
|
+
- vendor/stylesheets/playground/application.css
|
83
|
+
- vendor/stylesheets/playground/application.css.map
|
84
|
+
homepage: https://github.com/AlexB52/playground
|
85
|
+
licenses:
|
86
|
+
- MIT
|
87
|
+
metadata:
|
88
|
+
homepage_uri: https://github.com/AlexB52/playground
|
89
|
+
source_code_uri: https://github.com/AlexB52/playground
|
90
|
+
post_install_message:
|
91
|
+
rdoc_options: []
|
92
|
+
require_paths:
|
93
|
+
- lib
|
94
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
requirements: []
|
105
|
+
rubygems_version: 3.2.22
|
106
|
+
signing_key:
|
107
|
+
specification_version: 4
|
108
|
+
summary: A playground web console for Rails applications.
|
109
|
+
test_files: []
|