social_snippet-registry_views 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjMyNzYzYjIxY2FlZDE1YzAwOTdmNTczYjUzZThlNzQ0NzljOTEwOQ==
4
+ NTg1ZGI2NDYwYWIwYTI1YTRjZTFmMTI2ZDEwYmRlNjM5MDE5ZTViOA==
5
5
  data.tar.gz: !binary |-
6
- ZTkzMGE2ZWQ2NDMxMjU4NDcxMGE3ZjE1MjZlMWVjMjEyOTE5M2ZkMA==
6
+ MDdkYjJiNmZjZGUzOWNkYTc0MzRiZWVkYmU4ZTZlZjQzZDYxOTg5Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmMxZWMxZGFiZjU1NmQ3YTk0MTQyMDcyZjcyNjJhYzIwZWI4ZWQ0OTIyNjJm
10
- NTU2MTY4OGEzMzExMjE0NjM0ODMzZjMzN2ViMjVkZmIyY2Y1NzY5YjA3YWEz
11
- YjI0ODg5ODEzZTZhMzdiYTJlMjU1OTE5ZGZmYjUwMTFhMjEyMDI=
9
+ NDA5NjI3OWM3MDU4MWUzN2U5NGFhMGMyNzkxOWQ2NTUzMjQzZjExNjA4OGEw
10
+ ZDllYmJkOWU4NTQwZjgxY2E5MDE1ZDBiMTQzMjZjN2NkNzNkMWYyODI1N2Ex
11
+ OTZjMmJmMmNmYzYzOGM3Y2I0M2RhOTA5ZjJhMzRjYTBhNzA1MWU=
12
12
  data.tar.gz: !binary |-
13
- YmVhNGI5NWRhODYwNjkzYTBlYTRmNjM3NTdjMGEzYjFiYTc5ODkwMTc4ZjVj
14
- NWVhMDcwMTFkMWRmOThmZTcyMTQwNWExNDQ1YTY0ODEyOTc2NjcyZDQ4Mjli
15
- OGY5ZTIzYjMzNzliZmIxNWU2ZWZmOGRlMDUwMzgyNjA4MDUyMmI=
13
+ MDE4ZDlmODM4Y2M4NDFiOWI3YWFkMTE3N2Y1MTExYTc2OWI0ZWU0MjgwMWI4
14
+ MWE1MDk2Yjk1NjFmYTg2OTBjZWYwM2YwNDM0ODI5M2FlZWJkZjEwNTRlNDIw
15
+ YzgzMDg1Njg0YjA4ZjUxNzViMjE3OWI0MWE0MTRmNjZhMDE5OTg=
@@ -1,5 +1,5 @@
1
1
  module SocialSnippet
2
2
  module RegistryViews
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
@@ -0,0 +1,3 @@
1
+ == ::Slim::Template.new(File.expand_path "../templates/common.slim", __FILE__).render(self)
2
+ == ::Slim::Template.new(File.expand_path "../templates/contents.slim", __FILE__).render(self)
3
+ == ::Slim::Template.new(File.expand_path "../templates/components.slim", __FILE__).render(self)
@@ -21,236 +21,6 @@ html
21
21
  link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.2.1/bootstrap-social.min.css"
22
22
  link rel="stylesheet" href="#{assets_host}/css/main.css"
23
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
24
 
255
25
  == yield if block_given?
256
26
 
@@ -0,0 +1,80 @@
1
+ //
2
+ // Templates (Common Views)
3
+ //
4
+
5
+ // site footer
6
+ script#template-footer-view type="text/html"
7
+ ul.list-unstyled.text-right
8
+ li.col-sm-4
9
+ a href="https://social-snippet.github.io"
10
+ | Social Snippet
11
+
12
+ li.col-sm-4
13
+ a href="http://social-snippet.tumblr.com/"
14
+ | Blog
15
+
16
+ li.col-sm-4
17
+ a href="https://github.com/social-snippet"
18
+ | GitHub
19
+
20
+ li.col-sm-4
21
+ a href="https://github.com/social-snippet/social-snippet-registry/issues"
22
+ | Feedback
23
+
24
+ // site header
25
+ script#template-header-view type="text/html"
26
+ div.container-fluid
27
+ a.navbar-brand href="/"
28
+ | <%- "SSPM Registry System" %>
29
+ form.navbar-form.pull-right.hidden-xs action="/search" method="get"
30
+ div.input-group
31
+ span.input-group-addon
32
+ i.glyphicon.glyphicon-search
33
+ input.form-control.query type="text" name="q" placeholder="Search all repos"
34
+ span.input-group-btn
35
+ input.btn.btn-primary.search.pull-right type="submit" value="Go"
36
+
37
+ // site whole layout
38
+ script#template-app-layout-view type="text/html"
39
+ header.region
40
+ div.container-fluid
41
+ section.region.sidebar-region.col-md-3.col-sm-4
42
+ section.region.contents-region.col-md-9.col-sm-8
43
+ footer.region
44
+
45
+ // site sidebar
46
+ script#template-sidebar-view type="text/html"
47
+ section.navigation
48
+ ul.nav
49
+ li
50
+ a href="/"
51
+ i.glyphicon.glyphicon-home
52
+ | Home
53
+
54
+ li
55
+ a href="/repos/new"
56
+ i.glyphicon.glyphicon-plus
57
+ | Add
58
+
59
+ li
60
+ a href="/search"
61
+ i.glyphicon.glyphicon-search
62
+ | Search
63
+
64
+ section.navigation
65
+ ul.nav
66
+ - if is_logged_in
67
+ li
68
+ a href="/user/dashboard"
69
+ i.glyphicon.glyphicon-user
70
+ | Dashboard
71
+
72
+ li
73
+ a href="/user/logout"
74
+ i.glyphicon.glyphicon-off
75
+ | Logout
76
+ - else
77
+ li
78
+ a href="/user/login"
79
+ i.glyphicon.glyphicon-user
80
+ | Login
@@ -0,0 +1,117 @@
1
+ //
2
+ // Templates (Components)
3
+ //
4
+
5
+ // repositories
6
+ script#template-user-repositories-view type="text/html"
7
+ div.panel-heading
8
+ h4
9
+ | Repositories
10
+ div.panel-body
11
+ div.pull-left
12
+ p
13
+ | This page is showing your repositories on "github.com".
14
+ div.operations.pull-right
15
+ button.btn.btn-primary.btn-sm.sync
16
+ span.glyphicon.glyphicon-refresh
17
+ = " Sync"
18
+ div.clearfix
19
+ hr
20
+ table.table.repositories.table-striped.table-hover
21
+
22
+ script#template-user-repository-view type="text/html"
23
+ == '<td class="link" href="/user/repos/<%- name %>">'
24
+ == '<%- name %>'
25
+ == '</td>'
26
+
27
+ // add repo by user / repo (GitHub)
28
+ script#template-add-repository-by-github-view type="text/html"
29
+ div.form
30
+ h3
31
+ | Add GitHub Repository
32
+ div.row
33
+ div.col-sm-5
34
+ input.form-control.input-lg.new-repo-user placeholder="Enter the user name"
35
+ div.col-sm-5
36
+ input.form-control.input-lg.new-repo-name placeholder="Enter the repo name"
37
+ div.col-sm-2
38
+ button.btn.btn-lg.btn-primary.add type="button"
39
+ | Add
40
+
41
+ // add repo by URL
42
+ script#template-add-repository-by-url-view type="text/html"
43
+ div.container-fluid
44
+ div.row
45
+ div.form
46
+ h3
47
+ | Add Repository by URL
48
+ div.row
49
+ div.col-sm-10
50
+ input.form-control.input-lg.new-repo-url type="text" placeholder="Enter the URL of repository"
51
+ div.col-sm-2
52
+ button.btn.btn-lg.btn-primary.add type="button"
53
+ | Add
54
+
55
+ div.row
56
+ hr
57
+
58
+ div.row
59
+ div.alert.alert-danger.col-sm-12
60
+ p
61
+ span.label.label-danger
62
+ | Note
63
+ = " "
64
+ | Currently, supported only for the GitHub repositories.
65
+
66
+ // login with GitHub
67
+ script#template-github-login-form-view type="text/html"
68
+ a.btn.btn-block.btn-social.btn-github
69
+ i.fa.fa-github
70
+ | Sign in with GitHub
71
+
72
+ // normal link
73
+ script#template-link-view type="text/html"
74
+ == '<a href="<%- href %>"><%- text %></a>'
75
+
76
+ // search form
77
+ script#template-search-form-panel-view type="text/html"
78
+ div.panel-heading
79
+ h4
80
+ | Search Repositories
81
+
82
+ div.panel-body
83
+ form.form-inline action="/search" method="get"
84
+ div.form-group
85
+ div.input-group
86
+ span.input-group-addon
87
+ i.glyphicon.glyphicon-search
88
+ input.form-control.query type="text" name="q" placeholder="Search all repos"
89
+ input.btn.btn-primary.search.pull-right type="submit" value="Go"
90
+
91
+ // repository info (for collection view)
92
+ script#template-repository-panel-view type="text/html"
93
+ div.panel-heading
94
+ h4
95
+ == '<a href="/repos/r/<%- name %>">'
96
+ | <%- name %>
97
+ == '</a>'
98
+ | <%= github_link %>
99
+
100
+ div.panel-body
101
+ p
102
+ | <%- desc %>
103
+
104
+ // repository detailed info
105
+ script#template-repository-detail-panel-view type="text/html"
106
+ div.panel-heading
107
+ h3
108
+ | <%- name %>
109
+ | <%- latest_version %>
110
+
111
+ div.panel-body
112
+ h4 Description
113
+ p
114
+ | <%- desc %>
115
+ h4 URL
116
+ p <%- url %>
117
+
@@ -0,0 +1,30 @@
1
+ //
2
+ // Templates (Contents)
3
+ //
4
+
5
+ // home
6
+ script#template-home-view type="text/html"
7
+ section.region.main-region.col-sm-12.col-md-8
8
+ section.region.sub-region.col-sm-12.col-md-4
9
+
10
+ // user repo detail
11
+ script#template-user-repository-detail-view type="text/html"
12
+ div.panel-heading
13
+ h4
14
+ | <%- name %>
15
+
16
+ div.panel-body
17
+ button.btn.btn-primary.action-update
18
+ span.glyphicon.glyphicon-refresh
19
+ = " Update"
20
+ button.btn.btn-danger.action-disable
21
+ span.glyphicon.glyphicon-stop
22
+ = " Disable"
23
+
24
+ // user dashboard
25
+ script#template-user-dashboard-view type="text/html"
26
+ section.region.repos-region
27
+
28
+ // user login
29
+ script#template-user-login-view type="text/html"
30
+ section.region.github-login-region
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_snippet-registry_views
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroyuki Sano
@@ -83,8 +83,12 @@ files:
83
83
  - lib/social_snippet/registry_views.rb
84
84
  - lib/social_snippet/registry_views/common_views.rb
85
85
  - lib/social_snippet/registry_views/version.rb
86
+ - lib/social_snippet/registry_views/views/all_view.slim
86
87
  - lib/social_snippet/registry_views/views/empty_view.slim
87
88
  - lib/social_snippet/registry_views/views/layouts/application_view.slim
89
+ - lib/social_snippet/registry_views/views/templates/common.slim
90
+ - lib/social_snippet/registry_views/views/templates/components.slim
91
+ - lib/social_snippet/registry_views/views/templates/contents.slim
88
92
  - social_snippet-registry_views.gemspec
89
93
  homepage: ''
90
94
  licenses: