social_snippet-registry_views 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/.gitignore +14 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +31 -0
- data/Rakefile +2 -0
- data/bower.json +15 -0
- data/lib/social_snippet/registry_views.rb +3 -0
- data/lib/social_snippet/registry_views/common_views.rb +1 -0
- data/lib/social_snippet/registry_views/version.rb +5 -0
- data/lib/social_snippet/registry_views/views/empty_view.slim +0 -0
- data/lib/social_snippet/registry_views/views/layouts/application_view.slim +258 -0
- data/social_snippet-registry_views.gemspec +26 -0
- metadata +112 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 328dffd06bd047663de601b1cfa3750ff4b0c84e
|
4
|
+
data.tar.gz: f5c880b7887530c9a5c12a0549668c1a58ea5031
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d7507fd31cc2173b94c71edf5e1f0e028e15a62fff35cd7d289fa3dba0509d560ef0f25bfb6afdc1061b5e4ae7b9be3114542f50579ce9168ccf800abce4f989
|
7
|
+
data.tar.gz: 8ce3bae9385cd3d0d3c4a2dbab8b809adc4c4b0d27fb24463e41121e8be30dc6ba474e27567d4e364edb4209b80533692c6539f63c59873278a90f0be97c15d0
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Hiroyuki Sano
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# SocialSnippet::RegistryViews
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'social_snippet-registry_views'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install social_snippet-registry_views
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Contributing
|
26
|
+
|
27
|
+
1. Fork it ( https://github.com/[my-github-username]/social_snippet-registry_views/fork )
|
28
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/bower.json
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
class SocialSnippet::Registry < Padrino::Application; end
|
File without changes
|
@@ -0,0 +1,258 @@
|
|
1
|
+
doctype html
|
2
|
+
html
|
3
|
+
head
|
4
|
+
meta charset="UTF-8"
|
5
|
+
title Social Snippet Registry System - SSPM Registry
|
6
|
+
meta csrf_token="#{csrf_token}"
|
7
|
+
- if ENV["SSPM_ROBOTS_NOINDEX"] === "true"
|
8
|
+
meta name="robots" content="noindex"
|
9
|
+
|
10
|
+
// jQuery
|
11
|
+
script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"
|
12
|
+
|
13
|
+
// application code
|
14
|
+
script src="#{assets_host}/js/main.js"
|
15
|
+
|
16
|
+
// styles
|
17
|
+
link href="//fonts.googleapis.com/css?family=Droid+Sans+Mono" rel="stylesheet" type="text/css"
|
18
|
+
link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"
|
19
|
+
link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"
|
20
|
+
script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"
|
21
|
+
link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.2.1/bootstrap-social.min.css"
|
22
|
+
link rel="stylesheet" href="#{assets_host}/css/main.css"
|
23
|
+
|
24
|
+
//
|
25
|
+
// Templates (Common Views)
|
26
|
+
//
|
27
|
+
|
28
|
+
// site footer
|
29
|
+
script#template-footer-view type="text/html"
|
30
|
+
ul.list-unstyled.text-right
|
31
|
+
li.col-sm-4
|
32
|
+
a href="https://social-snippet.github.io"
|
33
|
+
| Social Snippet
|
34
|
+
|
35
|
+
li.col-sm-4
|
36
|
+
a href="http://social-snippet.tumblr.com/"
|
37
|
+
| Blog
|
38
|
+
|
39
|
+
li.col-sm-4
|
40
|
+
a href="https://github.com/social-snippet"
|
41
|
+
| GitHub
|
42
|
+
|
43
|
+
li.col-sm-4
|
44
|
+
a href="https://github.com/social-snippet/social-snippet-registry/issues"
|
45
|
+
| Feedback
|
46
|
+
|
47
|
+
// site header
|
48
|
+
script#template-header-view type="text/html"
|
49
|
+
div.container-fluid
|
50
|
+
a.navbar-brand href="/"
|
51
|
+
| <%- "SSPM Registry System" %>
|
52
|
+
form.navbar-form.pull-right.hidden-xs action="/search" method="get"
|
53
|
+
div.input-group
|
54
|
+
span.input-group-addon
|
55
|
+
i.glyphicon.glyphicon-search
|
56
|
+
input.form-control.query type="text" name="q" placeholder="Search all repos"
|
57
|
+
span.input-group-btn
|
58
|
+
input.btn.btn-primary.search.pull-right type="submit" value="Go"
|
59
|
+
|
60
|
+
// site whole layout
|
61
|
+
script#template-app-layout-view type="text/html"
|
62
|
+
header.region
|
63
|
+
div.container-fluid
|
64
|
+
section.region.sidebar-region.col-md-3.col-sm-4
|
65
|
+
section.region.contents-region.col-md-9.col-sm-8
|
66
|
+
footer.region
|
67
|
+
|
68
|
+
// site sidebar
|
69
|
+
script#template-sidebar-view type="text/html"
|
70
|
+
section.navigation
|
71
|
+
ul.nav
|
72
|
+
li
|
73
|
+
a href="/"
|
74
|
+
i.glyphicon.glyphicon-home
|
75
|
+
| Home
|
76
|
+
|
77
|
+
li
|
78
|
+
a href="/repos/new"
|
79
|
+
i.glyphicon.glyphicon-plus
|
80
|
+
| Add
|
81
|
+
|
82
|
+
li
|
83
|
+
a href="/search"
|
84
|
+
i.glyphicon.glyphicon-search
|
85
|
+
| Search
|
86
|
+
|
87
|
+
section.navigation
|
88
|
+
ul.nav
|
89
|
+
- if is_logged_in
|
90
|
+
li
|
91
|
+
a href="/user/dashboard"
|
92
|
+
i.glyphicon.glyphicon-user
|
93
|
+
| Dashboard
|
94
|
+
|
95
|
+
li
|
96
|
+
a href="/user/logout"
|
97
|
+
i.glyphicon.glyphicon-off
|
98
|
+
| Logout
|
99
|
+
- else
|
100
|
+
li
|
101
|
+
a href="/user/login"
|
102
|
+
i.glyphicon.glyphicon-user
|
103
|
+
| Login
|
104
|
+
|
105
|
+
|
106
|
+
//
|
107
|
+
// Templates (Contents)
|
108
|
+
//
|
109
|
+
|
110
|
+
// home
|
111
|
+
script#template-home-view type="text/html"
|
112
|
+
section.region.main-region.col-sm-12.col-md-8
|
113
|
+
section.region.sub-region.col-sm-12.col-md-4
|
114
|
+
|
115
|
+
// user repo detail
|
116
|
+
script#template-user-repository-detail-view type="text/html"
|
117
|
+
div.panel-heading
|
118
|
+
h4
|
119
|
+
| <%- name %>
|
120
|
+
|
121
|
+
div.panel-body
|
122
|
+
button.btn.btn-primary.action-update
|
123
|
+
span.glyphicon.glyphicon-refresh
|
124
|
+
= " Update"
|
125
|
+
button.btn.btn-danger.action-disable
|
126
|
+
span.glyphicon.glyphicon-stop
|
127
|
+
= " Disable"
|
128
|
+
|
129
|
+
// user dashboard
|
130
|
+
script#template-user-dashboard-view type="text/html"
|
131
|
+
section.region.repos-region
|
132
|
+
|
133
|
+
// user login
|
134
|
+
script#template-user-login-view type="text/html"
|
135
|
+
section.region.github-login-region
|
136
|
+
|
137
|
+
|
138
|
+
//
|
139
|
+
// Templates (Common Component Views)
|
140
|
+
//
|
141
|
+
|
142
|
+
// repositories
|
143
|
+
script#template-user-repositories-view type="text/html"
|
144
|
+
div.panel-heading
|
145
|
+
h4
|
146
|
+
| Repositories
|
147
|
+
div.panel-body
|
148
|
+
div.pull-left
|
149
|
+
p
|
150
|
+
| This page is showing your repositories on "github.com".
|
151
|
+
div.operations.pull-right
|
152
|
+
button.btn.btn-primary.btn-sm.sync
|
153
|
+
span.glyphicon.glyphicon-refresh
|
154
|
+
= " Sync"
|
155
|
+
div.clearfix
|
156
|
+
hr
|
157
|
+
table.table.repositories.table-striped.table-hover
|
158
|
+
|
159
|
+
script#template-user-repository-view type="text/html"
|
160
|
+
== '<td class="link" href="/user/repos/<%- name %>">'
|
161
|
+
== '<%- name %>'
|
162
|
+
== '</td>'
|
163
|
+
|
164
|
+
// add repo by user / repo (GitHub)
|
165
|
+
script#template-add-repository-by-github-view type="text/html"
|
166
|
+
div.form
|
167
|
+
h3
|
168
|
+
| Add GitHub Repository
|
169
|
+
div.row
|
170
|
+
div.col-sm-5
|
171
|
+
input.form-control.input-lg.new-repo-user placeholder="Enter the user name"
|
172
|
+
div.col-sm-5
|
173
|
+
input.form-control.input-lg.new-repo-name placeholder="Enter the repo name"
|
174
|
+
div.col-sm-2
|
175
|
+
button.btn.btn-lg.btn-primary.add type="button"
|
176
|
+
| Add
|
177
|
+
|
178
|
+
// add repo by URL
|
179
|
+
script#template-add-repository-by-url-view type="text/html"
|
180
|
+
div.container-fluid
|
181
|
+
div.row
|
182
|
+
div.form
|
183
|
+
h3
|
184
|
+
| Add Repository by URL
|
185
|
+
div.row
|
186
|
+
div.col-sm-10
|
187
|
+
input.form-control.input-lg.new-repo-url type="text" placeholder="Enter the URL of repository"
|
188
|
+
div.col-sm-2
|
189
|
+
button.btn.btn-lg.btn-primary.add type="button"
|
190
|
+
| Add
|
191
|
+
|
192
|
+
div.row
|
193
|
+
hr
|
194
|
+
|
195
|
+
div.row
|
196
|
+
div.alert.alert-danger.col-sm-12
|
197
|
+
p
|
198
|
+
span.label.label-danger
|
199
|
+
| Note
|
200
|
+
= " "
|
201
|
+
| Currently, supported only for the GitHub repositories.
|
202
|
+
|
203
|
+
// login with GitHub
|
204
|
+
script#template-github-login-form-view type="text/html"
|
205
|
+
a.btn.btn-block.btn-social.btn-github
|
206
|
+
i.fa.fa-github
|
207
|
+
| Sign in with GitHub
|
208
|
+
|
209
|
+
// normal link
|
210
|
+
script#template-link-view type="text/html"
|
211
|
+
== '<a href="<%- href %>"><%- text %></a>'
|
212
|
+
|
213
|
+
// search form
|
214
|
+
script#template-search-form-panel-view type="text/html"
|
215
|
+
div.panel-heading
|
216
|
+
h4
|
217
|
+
| Search Repositories
|
218
|
+
|
219
|
+
div.panel-body
|
220
|
+
form.form-inline action="/search" method="get"
|
221
|
+
div.form-group
|
222
|
+
div.input-group
|
223
|
+
span.input-group-addon
|
224
|
+
i.glyphicon.glyphicon-search
|
225
|
+
input.form-control.query type="text" name="q" placeholder="Search all repos"
|
226
|
+
input.btn.btn-primary.search.pull-right type="submit" value="Go"
|
227
|
+
|
228
|
+
// repository info (for collection view)
|
229
|
+
script#template-repository-panel-view type="text/html"
|
230
|
+
div.panel-heading
|
231
|
+
h4
|
232
|
+
== '<a href="/repos/r/<%- name %>">'
|
233
|
+
| <%- name %>
|
234
|
+
== '</a>'
|
235
|
+
| <%= github_link %>
|
236
|
+
|
237
|
+
div.panel-body
|
238
|
+
p
|
239
|
+
| <%- desc %>
|
240
|
+
|
241
|
+
// repository detailed info
|
242
|
+
script#template-repository-detail-panel-view type="text/html"
|
243
|
+
div.panel-heading
|
244
|
+
h3
|
245
|
+
| <%- name %>
|
246
|
+
| <%- latest_version %>
|
247
|
+
|
248
|
+
div.panel-body
|
249
|
+
h4 Description
|
250
|
+
p
|
251
|
+
| <%- desc %>
|
252
|
+
h4 URL
|
253
|
+
p <%- url %>
|
254
|
+
|
255
|
+
== yield if block_given?
|
256
|
+
|
257
|
+
body
|
258
|
+
div#app-root
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'social_snippet/registry_views/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "social_snippet-registry_views"
|
8
|
+
spec.version = SocialSnippet::RegistryViews::VERSION
|
9
|
+
spec.authors = ["Hiroyuki Sano"]
|
10
|
+
spec.email = ["sh19910711@gmail.com"]
|
11
|
+
spec.summary = %q{}
|
12
|
+
spec.description = %q{}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_runtime_dependency "padrino", "~> 0.12.0"
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.7.0"
|
24
|
+
spec.add_development_dependency "rake", "~> 10.4.0"
|
25
|
+
spec.add_development_dependency "rspec", "~> 3.1.0"
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: social_snippet-registry_views
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Hiroyuki Sano
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: padrino
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.12.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.12.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.7.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.7.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 10.4.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 10.4.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.1.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.1.0
|
69
|
+
description: ''
|
70
|
+
email:
|
71
|
+
- sh19910711@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- Gemfile
|
78
|
+
- LICENSE.txt
|
79
|
+
- README.md
|
80
|
+
- Rakefile
|
81
|
+
- bower.json
|
82
|
+
- lib/social_snippet/registry_views.rb
|
83
|
+
- lib/social_snippet/registry_views/common_views.rb
|
84
|
+
- lib/social_snippet/registry_views/version.rb
|
85
|
+
- lib/social_snippet/registry_views/views/empty_view.slim
|
86
|
+
- lib/social_snippet/registry_views/views/layouts/application_view.slim
|
87
|
+
- social_snippet-registry_views.gemspec
|
88
|
+
homepage: ''
|
89
|
+
licenses:
|
90
|
+
- MIT
|
91
|
+
metadata: {}
|
92
|
+
post_install_message:
|
93
|
+
rdoc_options: []
|
94
|
+
require_paths:
|
95
|
+
- lib
|
96
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
101
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
requirements: []
|
107
|
+
rubyforge_project:
|
108
|
+
rubygems_version: 2.4.5
|
109
|
+
signing_key:
|
110
|
+
specification_version: 4
|
111
|
+
summary: ''
|
112
|
+
test_files: []
|