slideshow-service 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/HISTORY.md +3 -0
- data/Manifest.txt +29 -0
- data/README.md +27 -0
- data/Rakefile +32 -0
- data/lib/slideshow/service.rb +185 -0
- data/lib/slideshow/service/docs/welcome.md +52 -0
- data/lib/slideshow/service/public/css/markdown/note.css +34 -0
- data/lib/slideshow/service/public/i/dots-white.gif +0 -0
- data/lib/slideshow/service/public/js/lib3rd/jquery-2.0.1.min.js +6 -0
- data/lib/slideshow/service/public/js/markdown.note.js +69 -0
- data/lib/slideshow/service/public/slideshow-s6-blank/s6/jquery.js +8176 -0
- data/lib/slideshow/service/public/slideshow-s6-blank/s6/jquery.slideshow.js +534 -0
- data/lib/slideshow/service/public/slideshow-s6-blank/s6/print.css +1 -0
- data/lib/slideshow/service/public/slideshow-s6-blank/s6/projection.css +109 -0
- data/lib/slideshow/service/public/slideshow-s6-blank/s6/screen.css +50 -0
- data/lib/slideshow/service/public/slideshow-s6-blank/slides.html +46 -0
- data/lib/slideshow/service/public/slideshow-s6-blank/slides.pdf.html +63 -0
- data/lib/slideshow/service/public/slideshow-s6-blank/style.css +94 -0
- data/lib/slideshow/service/public/style.css +62 -0
- data/lib/slideshow/service/version.rb +25 -0
- data/lib/slideshow/service/views/_debug.erb +28 -0
- data/lib/slideshow/service/views/_editor.erb +33 -0
- data/lib/slideshow/service/views/_editor_head.erb +6 -0
- data/lib/slideshow/service/views/_editor_setup.erb +18 -0
- data/lib/slideshow/service/views/_version.erb +9 -0
- data/lib/slideshow/service/views/debug.erb +3 -0
- data/lib/slideshow/service/views/editor.erb +8 -0
- data/lib/slideshow/service/views/index.erb +10 -0
- data/lib/slideshow/service/views/layout.erb +36 -0
- metadata +148 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
module SlideshowService
|
4
|
+
|
5
|
+
MAJOR = 0
|
6
|
+
MINOR = 0
|
7
|
+
PATCH = 1
|
8
|
+
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
9
|
+
|
10
|
+
def self.version
|
11
|
+
VERSION
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.banner
|
15
|
+
"slideshow-service/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] " +
|
16
|
+
"using slideshow/#{Slideshow::VERSION} " +
|
17
|
+
"on Sinatra/#{Sinatra::VERSION} (#{ENV['RACK_ENV']})"
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.root
|
21
|
+
"#{File.expand_path( File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) )}"
|
22
|
+
end
|
23
|
+
|
24
|
+
end # module SlideshowService
|
25
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
<h3>Debug</h3>
|
3
|
+
|
4
|
+
<h4>Params</h4>
|
5
|
+
|
6
|
+
<pre>
|
7
|
+
<%= params.inspect %>
|
8
|
+
</pre>
|
9
|
+
|
10
|
+
|
11
|
+
<h4>Request</h4>
|
12
|
+
|
13
|
+
<pre>
|
14
|
+
request.scheme <%= request.scheme %>
|
15
|
+
request.script_name <%= request.script_name %>
|
16
|
+
request.path_info <%= request.path_info %>
|
17
|
+
request.port <%= request.port %>
|
18
|
+
request.request_method <%= request.request_method %>
|
19
|
+
request.query_string <%= request.query_string %>
|
20
|
+
request.host <%= request.host %>
|
21
|
+
request.referrer <%= request.referrer %>
|
22
|
+
request.user_agent <%= request.user_agent %>
|
23
|
+
request.url <%= request.url %>
|
24
|
+
request.path <%= request.path %>
|
25
|
+
request.ip <%= request.ip %>
|
26
|
+
</pre>
|
27
|
+
|
28
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
<%= erb :'_editor_setup' %>
|
3
|
+
|
4
|
+
|
5
|
+
<form id='noteform' action="#">
|
6
|
+
<button type="submit" formtarget="slideshow_s6" formaction="slideshow-s6-blank/slides">Show S6 Blank</button>
|
7
|
+
<button type="submit" formtarget="slideshow_s6_pdf" formaction="slideshow-s6-blank/slides.pdf">Show S6 Blank (PDF)</button>
|
8
|
+
<button type="submit" formtarget="slideshow_deckjs" formaction="slideshow-deck.js/slides">Show Deck.js</button>
|
9
|
+
</form>
|
10
|
+
|
11
|
+
|
12
|
+
<table width="100%">
|
13
|
+
<tr>
|
14
|
+
<td>
|
15
|
+
<div style="font-size: 80%;">
|
16
|
+
Options: <br>
|
17
|
+
<a id='input-toggle' href='#'>[ Use White Color Theme ]</a>
|
18
|
+
</div>
|
19
|
+
</td>
|
20
|
+
<div>
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
<table width='100%'>
|
25
|
+
<tr>
|
26
|
+
<td>
|
27
|
+
<div id='input'>
|
28
|
+
<!-- note: use text for name - will get used for get url param in form submit -->
|
29
|
+
<textarea id='note' name='text' form='noteform' class='black'></textarea>
|
30
|
+
</div>
|
31
|
+
</td>
|
32
|
+
</tr>
|
33
|
+
</table>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<script>
|
2
|
+
|
3
|
+
$(document).ready( function () {
|
4
|
+
|
5
|
+
/* NB: we need to use to_json (to escape newlines in string if present etc.)
|
6
|
+
*/
|
7
|
+
|
8
|
+
markdown_note_new( {
|
9
|
+
welcome: <%= @welcome_sample.to_json %>
|
10
|
+
} );
|
11
|
+
|
12
|
+
});
|
13
|
+
|
14
|
+
|
15
|
+
/* todo: check if loading image w/ relative path works ??
|
16
|
+
*/
|
17
|
+
|
18
|
+
</script>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<div class='version'>
|
2
|
+
<a href="http://groups.google.com/group/wwwmake">Questions? Comments?</a> |
|
3
|
+
<span>
|
4
|
+
<a href="https://github.com/slideshow-s9/slideshow-service">slideshow-service/<%= SlideshowService::VERSION %></a> using
|
5
|
+
</span>
|
6
|
+
<a href="https://github.com/slideshow-s9/slideshow-models">slideshow/<%= Slideshow::VERSION %></a> -
|
7
|
+
<span>Ruby/<%= "#{RUBY_VERSION} (#{RUBY_RELEASE_DATE}/#{RUBY_PLATFORM})" %> on</span>
|
8
|
+
<span>Sinatra/<%= Sinatra::VERSION %> (<%= ENV['RACK_ENV'] %>)</span>
|
9
|
+
</div>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset='UTF-8'>
|
5
|
+
<title>Try Slide Show (S9) - slideshow-service ruby gem - convert markdown to slide shows</title>
|
6
|
+
<link href="<%= url('/style.css') %>" rel='stylesheet'>
|
7
|
+
|
8
|
+
<%= erb :'_editor_head' %>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
|
12
|
+
|
13
|
+
<table width="100%" class="header">
|
14
|
+
<tr>
|
15
|
+
<td class="title">
|
16
|
+
<h1><a href="/">Slide Show (S9) Online Service</a></h1>
|
17
|
+
</td>
|
18
|
+
<td align="right">
|
19
|
+
<a href="https://github.com/slideshow-s9/slideshow-service">About</a>
|
20
|
+
</td>
|
21
|
+
</tr>
|
22
|
+
</table>
|
23
|
+
|
24
|
+
|
25
|
+
<%= yield %>
|
26
|
+
|
27
|
+
|
28
|
+
<div class="footer" align="center">
|
29
|
+
Brought to you by <a href="http://manuscripts.github.io">Manuscripts</a> and friends.
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<%= erb :'_version' %>
|
33
|
+
|
34
|
+
|
35
|
+
</body>
|
36
|
+
</html>
|
metadata
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: slideshow-service
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Gerald Bauer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-05-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: slideshow-models
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.1.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.1.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sinatra
|
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
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: liquid
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rdoc
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '4.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '4.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: hoe
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.14'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.14'
|
83
|
+
description: slideshow-service gem - convert markdown to slide shows
|
84
|
+
email: wwwmake@googlegroups.com
|
85
|
+
executables: []
|
86
|
+
extensions: []
|
87
|
+
extra_rdoc_files:
|
88
|
+
- HISTORY.md
|
89
|
+
- Manifest.txt
|
90
|
+
- README.md
|
91
|
+
- lib/slideshow/service/docs/welcome.md
|
92
|
+
files:
|
93
|
+
- HISTORY.md
|
94
|
+
- Manifest.txt
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- lib/slideshow/service.rb
|
98
|
+
- lib/slideshow/service/docs/welcome.md
|
99
|
+
- lib/slideshow/service/public/css/markdown/note.css
|
100
|
+
- lib/slideshow/service/public/i/dots-white.gif
|
101
|
+
- lib/slideshow/service/public/js/lib3rd/jquery-2.0.1.min.js
|
102
|
+
- lib/slideshow/service/public/js/markdown.note.js
|
103
|
+
- lib/slideshow/service/public/slideshow-s6-blank/s6/jquery.js
|
104
|
+
- lib/slideshow/service/public/slideshow-s6-blank/s6/jquery.slideshow.js
|
105
|
+
- lib/slideshow/service/public/slideshow-s6-blank/s6/print.css
|
106
|
+
- lib/slideshow/service/public/slideshow-s6-blank/s6/projection.css
|
107
|
+
- lib/slideshow/service/public/slideshow-s6-blank/s6/screen.css
|
108
|
+
- lib/slideshow/service/public/slideshow-s6-blank/slides.html
|
109
|
+
- lib/slideshow/service/public/slideshow-s6-blank/slides.pdf.html
|
110
|
+
- lib/slideshow/service/public/slideshow-s6-blank/style.css
|
111
|
+
- lib/slideshow/service/public/style.css
|
112
|
+
- lib/slideshow/service/version.rb
|
113
|
+
- lib/slideshow/service/views/_debug.erb
|
114
|
+
- lib/slideshow/service/views/_editor.erb
|
115
|
+
- lib/slideshow/service/views/_editor_head.erb
|
116
|
+
- lib/slideshow/service/views/_editor_setup.erb
|
117
|
+
- lib/slideshow/service/views/_version.erb
|
118
|
+
- lib/slideshow/service/views/debug.erb
|
119
|
+
- lib/slideshow/service/views/editor.erb
|
120
|
+
- lib/slideshow/service/views/index.erb
|
121
|
+
- lib/slideshow/service/views/layout.erb
|
122
|
+
homepage: https://github.com/slideshow-s9/slideshow-service
|
123
|
+
licenses:
|
124
|
+
- Public Domain
|
125
|
+
metadata: {}
|
126
|
+
post_install_message:
|
127
|
+
rdoc_options:
|
128
|
+
- "--main"
|
129
|
+
- README.md
|
130
|
+
require_paths:
|
131
|
+
- lib
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: 1.9.2
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
requirements: []
|
143
|
+
rubyforge_project:
|
144
|
+
rubygems_version: 2.2.3
|
145
|
+
signing_key:
|
146
|
+
specification_version: 4
|
147
|
+
summary: slideshow-service gem - convert markdown to slide shows
|
148
|
+
test_files: []
|