vapid 0.1.1 → 0.1.2
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 +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/vapid/assets/images/vapid/favicon.ico +0 -0
- data/lib/vapid/assets/images/vapid/logo.png +0 -0
- data/lib/vapid/assets/images/vapid/logo_inverse.png +0 -0
- data/lib/vapid/assets/javascripts/vapid/{admin.coffee → dashboard.coffee} +0 -0
- data/lib/vapid/assets/stylesheets/vapid/dashboard.scss +25 -0
- data/lib/vapid/assets/stylesheets/vapid/dashboard/_base.scss +36 -0
- data/lib/vapid/assets/stylesheets/vapid/dashboard/_fonts.scss +14 -0
- data/lib/vapid/assets/stylesheets/vapid/dashboard/_modal.scss +53 -0
- data/lib/vapid/assets/stylesheets/vapid/dashboard/_sidebar.scss +22 -0
- data/lib/vapid/assets/stylesheets/vapid/dashboard/_variables.scss +6 -0
- data/lib/vapid/cli.rb +45 -13
- data/lib/vapid/controllers/{admin_controller.rb → dashboard_controller.rb} +60 -64
- data/lib/vapid/generator_template/Gemfile.tt +1 -7
- data/lib/vapid/generator_template/assets/javascripts/site.js +0 -0
- data/lib/vapid/generator_template/assets/stylesheets/site.css +0 -0
- data/lib/vapid/generator_template/templates/index.html.erb +84 -24
- data/lib/vapid/generator_template/templates/layouts/default.html.erb +3 -14
- data/lib/vapid/models/record.rb +22 -0
- data/lib/vapid/models/user.rb +7 -2
- data/lib/vapid/server.rb +5 -5
- data/lib/vapid/version.rb +1 -1
- data/lib/vapid/views/{admin → dashboard}/install.html.erb +3 -3
- data/lib/vapid/views/{admin → dashboard}/login.html.erb +2 -2
- data/lib/vapid/views/dashboard/overview/index.html.erb +3 -0
- data/lib/vapid/views/dashboard/records/_form_fields.erb +5 -0
- data/lib/vapid/views/dashboard/records/edit.html.erb +10 -0
- data/lib/vapid/views/{admin → dashboard}/records/index.html.erb +6 -8
- data/lib/vapid/views/dashboard/records/new.html.erb +6 -0
- data/lib/vapid/views/dashboard/settings/edit.html.erb +22 -0
- data/lib/vapid/views/errors/404.html.erb +4 -1
- data/lib/vapid/views/errors/500.html.erb +4 -1
- data/lib/vapid/views/layouts/dashboard.html.erb +47 -0
- data/lib/vapid/views/layouts/modal.html.erb +21 -0
- data/lib/vapid/views/shared/_flash.html.erb +5 -0
- metadata +27 -16
- data/lib/vapid/assets/stylesheets/vapid/admin.scss +0 -72
- data/lib/vapid/generator_template/assets/stylesheets/application.css +0 -120
- data/lib/vapid/views/admin/overview/index.html.erb +0 -1
- data/lib/vapid/views/admin/records/_form.erb +0 -9
- data/lib/vapid/views/admin/records/edit.html.erb +0 -5
- data/lib/vapid/views/admin/records/new.html.erb +0 -3
- data/lib/vapid/views/layouts/admin.html.erb +0 -41
- data/lib/vapid/views/layouts/admin_form.html.erb +0 -22
- data/lib/vapid/views/layouts/error.html.erb +0 -11
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vapid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Robbin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -345,6 +345,7 @@ files:
|
|
345
345
|
- ".rspec"
|
346
346
|
- ".rubocop.yml"
|
347
347
|
- ".travis.yml"
|
348
|
+
- CHANGELOG.md
|
348
349
|
- Gemfile
|
349
350
|
- README.md
|
350
351
|
- Rakefile
|
@@ -352,11 +353,19 @@ files:
|
|
352
353
|
- bin/setup
|
353
354
|
- exe/vapid
|
354
355
|
- lib/vapid.rb
|
355
|
-
- lib/vapid/assets/
|
356
|
-
- lib/vapid/assets/
|
356
|
+
- lib/vapid/assets/images/vapid/favicon.ico
|
357
|
+
- lib/vapid/assets/images/vapid/logo.png
|
358
|
+
- lib/vapid/assets/images/vapid/logo_inverse.png
|
359
|
+
- lib/vapid/assets/javascripts/vapid/dashboard.coffee
|
360
|
+
- lib/vapid/assets/stylesheets/vapid/dashboard.scss
|
361
|
+
- lib/vapid/assets/stylesheets/vapid/dashboard/_base.scss
|
362
|
+
- lib/vapid/assets/stylesheets/vapid/dashboard/_fonts.scss
|
363
|
+
- lib/vapid/assets/stylesheets/vapid/dashboard/_modal.scss
|
364
|
+
- lib/vapid/assets/stylesheets/vapid/dashboard/_sidebar.scss
|
365
|
+
- lib/vapid/assets/stylesheets/vapid/dashboard/_variables.scss
|
357
366
|
- lib/vapid/builder.rb
|
358
367
|
- lib/vapid/cli.rb
|
359
|
-
- lib/vapid/controllers/
|
368
|
+
- lib/vapid/controllers/dashboard_controller.rb
|
360
369
|
- lib/vapid/controllers/project_controller.rb
|
361
370
|
- lib/vapid/db/migrate/20170202182310_create_groups.rb
|
362
371
|
- lib/vapid/db/migrate/20170202183017_create_records.rb
|
@@ -379,8 +388,9 @@ files:
|
|
379
388
|
- lib/vapid/generator_template/assets/favicon.ico
|
380
389
|
- lib/vapid/generator_template/assets/images/.keep
|
381
390
|
- lib/vapid/generator_template/assets/javascripts/.keep
|
391
|
+
- lib/vapid/generator_template/assets/javascripts/site.js
|
382
392
|
- lib/vapid/generator_template/assets/stylesheets/.keep
|
383
|
-
- lib/vapid/generator_template/assets/stylesheets/
|
393
|
+
- lib/vapid/generator_template/assets/stylesheets/site.css
|
384
394
|
- lib/vapid/generator_template/config.ru
|
385
395
|
- lib/vapid/generator_template/config/database.yml
|
386
396
|
- lib/vapid/generator_template/config/settings.yml.tt
|
@@ -759,18 +769,19 @@ files:
|
|
759
769
|
- lib/vapid/vendor/trix/test/vendor/rangy-core.js
|
760
770
|
- lib/vapid/vendor/trix/test/vendor/rangy-textrange.js
|
761
771
|
- lib/vapid/version.rb
|
762
|
-
- lib/vapid/views/
|
763
|
-
- lib/vapid/views/
|
764
|
-
- lib/vapid/views/
|
765
|
-
- lib/vapid/views/
|
766
|
-
- lib/vapid/views/
|
767
|
-
- lib/vapid/views/
|
768
|
-
- lib/vapid/views/
|
772
|
+
- lib/vapid/views/dashboard/install.html.erb
|
773
|
+
- lib/vapid/views/dashboard/login.html.erb
|
774
|
+
- lib/vapid/views/dashboard/overview/index.html.erb
|
775
|
+
- lib/vapid/views/dashboard/records/_form_fields.erb
|
776
|
+
- lib/vapid/views/dashboard/records/edit.html.erb
|
777
|
+
- lib/vapid/views/dashboard/records/index.html.erb
|
778
|
+
- lib/vapid/views/dashboard/records/new.html.erb
|
779
|
+
- lib/vapid/views/dashboard/settings/edit.html.erb
|
769
780
|
- lib/vapid/views/errors/404.html.erb
|
770
781
|
- lib/vapid/views/errors/500.html.erb
|
771
|
-
- lib/vapid/views/layouts/
|
772
|
-
- lib/vapid/views/layouts/
|
773
|
-
- lib/vapid/views/
|
782
|
+
- lib/vapid/views/layouts/dashboard.html.erb
|
783
|
+
- lib/vapid/views/layouts/modal.html.erb
|
784
|
+
- lib/vapid/views/shared/_flash.html.erb
|
774
785
|
- vapid.gemspec
|
775
786
|
homepage: https://www.vapid.com
|
776
787
|
licenses: []
|
@@ -1,72 +0,0 @@
|
|
1
|
-
//= require semantic-ui/components/reset
|
2
|
-
//= require semantic-ui/components/button
|
3
|
-
//= require semantic-ui/components/divider
|
4
|
-
//= require semantic-ui/components/form
|
5
|
-
//= require semantic-ui/components/grid
|
6
|
-
//= require semantic-ui/components/header
|
7
|
-
//= require semantic-ui/components/icon
|
8
|
-
//= require semantic-ui/components/image
|
9
|
-
//= require semantic-ui/components/message
|
10
|
-
//= require semantic-ui/components/menu
|
11
|
-
//= require semantic-ui/components/segment
|
12
|
-
//= require semantic-ui/components/sidebar
|
13
|
-
//= require semantic-ui/components/site
|
14
|
-
//= require semantic-ui/components/table
|
15
|
-
//= require trix/dist/trix
|
16
|
-
//= require_self
|
17
|
-
|
18
|
-
@font-face {
|
19
|
-
font-family: 'Icons';
|
20
|
-
src: url("../../semantic-ui/themes/default/assets/fonts/icons.eot");
|
21
|
-
src: url("../../semantic-ui/themes/default/assets/fonts/icons.eot?#iefix") format('embedded-opentype'),
|
22
|
-
url("../../semantic-ui/themes/default/assets/fonts/icons.woff2") format('woff2'),
|
23
|
-
url("../../semantic-ui/themes/default/assets/fonts/icons.woff") format('woff'),
|
24
|
-
url("../../semantic-ui/themes/default/assets/fonts/icons.ttf") format('truetype'),
|
25
|
-
url("../../semantic-ui/themes/default/assets/fonts/icons.svg#icons") format('svg');
|
26
|
-
font-style: normal;
|
27
|
-
font-weight: normal;
|
28
|
-
font-variant: normal;
|
29
|
-
text-decoration: inherit;
|
30
|
-
text-transform: none;
|
31
|
-
}
|
32
|
-
|
33
|
-
body > .grid {
|
34
|
-
height: 100%;
|
35
|
-
}
|
36
|
-
|
37
|
-
body.admin {
|
38
|
-
.pusher {
|
39
|
-
padding: 1rem 2rem 1rem 17rem;
|
40
|
-
}
|
41
|
-
|
42
|
-
.ui.form {
|
43
|
-
max-width: 40rem;
|
44
|
-
padding-bottom: 5rem;
|
45
|
-
}
|
46
|
-
|
47
|
-
form.ui.button input[type="submit"] {
|
48
|
-
padding: 0;
|
49
|
-
border: none;
|
50
|
-
outline: none;
|
51
|
-
line-height: 1em;
|
52
|
-
background: none;
|
53
|
-
}
|
54
|
-
|
55
|
-
.preview,
|
56
|
-
.destroy {
|
57
|
-
margin-top: 1em;
|
58
|
-
}
|
59
|
-
|
60
|
-
.destroy {
|
61
|
-
input[type=checkbox] {
|
62
|
-
vertical-align: middle;
|
63
|
-
margin-right: 0.5em;
|
64
|
-
}
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
|
-
body.admin_form {
|
69
|
-
.column {
|
70
|
-
max-width: 35em;
|
71
|
-
}
|
72
|
-
}
|
@@ -1,120 +0,0 @@
|
|
1
|
-
*, *:before, *:after {
|
2
|
-
box-sizing: border-box;
|
3
|
-
}
|
4
|
-
|
5
|
-
body {
|
6
|
-
font-family: 'Courier New', Courier, serif;
|
7
|
-
font-size: 12px;
|
8
|
-
margin: 0;
|
9
|
-
padding: 0;
|
10
|
-
color: #49274A;
|
11
|
-
}
|
12
|
-
|
13
|
-
h1, h2, h3, h4, h5 {
|
14
|
-
font-family: 'Helvetica Neue', Helvetica, sans-serif;
|
15
|
-
}
|
16
|
-
|
17
|
-
a {
|
18
|
-
color: #94618E;
|
19
|
-
text-decoration: none;
|
20
|
-
}
|
21
|
-
|
22
|
-
a:hover {
|
23
|
-
text-decoration: underline;
|
24
|
-
}
|
25
|
-
|
26
|
-
code {
|
27
|
-
padding: 0.25em;
|
28
|
-
background-color: #F8EEE7;
|
29
|
-
white-space: nowrap;
|
30
|
-
}
|
31
|
-
|
32
|
-
.container {
|
33
|
-
margin: 0 auto;
|
34
|
-
padding: 1em;
|
35
|
-
max-width: 1200px;
|
36
|
-
}
|
37
|
-
|
38
|
-
/* Navigation */
|
39
|
-
nav {
|
40
|
-
font-family: 'Helvetica Neue', Helvetica, sans-serif;
|
41
|
-
}
|
42
|
-
|
43
|
-
nav .vapid {
|
44
|
-
font-weight: bold;
|
45
|
-
font-size: 1.3em;
|
46
|
-
color: #49274A;
|
47
|
-
text-transform: uppercase;
|
48
|
-
}
|
49
|
-
|
50
|
-
nav ul {
|
51
|
-
float: right;
|
52
|
-
list-style: none;
|
53
|
-
padding: 0;
|
54
|
-
margin: 0;
|
55
|
-
line-height: 1.3em;
|
56
|
-
}
|
57
|
-
|
58
|
-
nav li {
|
59
|
-
float: left;
|
60
|
-
margin-left: 2em;
|
61
|
-
}
|
62
|
-
|
63
|
-
nav li:first-of-type {
|
64
|
-
margin-left: 0;
|
65
|
-
}
|
66
|
-
|
67
|
-
/* Hero */
|
68
|
-
.hero {
|
69
|
-
padding: 6em 0;
|
70
|
-
color: white;
|
71
|
-
text-align: center;
|
72
|
-
background: #49274A;
|
73
|
-
background: linear-gradient(#49274A 50%, #94618E);
|
74
|
-
}
|
75
|
-
|
76
|
-
.hero h1 {
|
77
|
-
margin: 0.5em 0;
|
78
|
-
font-size: 4em;
|
79
|
-
font-weight: 900;
|
80
|
-
}
|
81
|
-
|
82
|
-
/* How it works */
|
83
|
-
.how {
|
84
|
-
text-align: center;
|
85
|
-
}
|
86
|
-
|
87
|
-
.how ul {
|
88
|
-
margin: 3em 0;
|
89
|
-
padding: 0;
|
90
|
-
list-style: none;
|
91
|
-
counter-reset: counter;
|
92
|
-
}
|
93
|
-
|
94
|
-
.how li {
|
95
|
-
flex: 1;
|
96
|
-
margin-bottom: 2em;
|
97
|
-
padding: 0 1em;
|
98
|
-
line-height: 1.5em;
|
99
|
-
text-align: center;
|
100
|
-
}
|
101
|
-
|
102
|
-
.how li p {
|
103
|
-
text-align: left;
|
104
|
-
}
|
105
|
-
|
106
|
-
|
107
|
-
.how .support {
|
108
|
-
font-size: 1.1em;
|
109
|
-
}
|
110
|
-
|
111
|
-
/* Responsive */
|
112
|
-
@media only screen and (min-width : 768px) {
|
113
|
-
body {
|
114
|
-
font-size: 16px;
|
115
|
-
}
|
116
|
-
|
117
|
-
.how ul {
|
118
|
-
display: flex;
|
119
|
-
}
|
120
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
<h1>Overview</h1>
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<% record_form_for record, path, multipart: true, class: "ui form" do |f| %>
|
2
|
-
<% record.group.fields.each do |field, type| %>
|
3
|
-
<div class="field">
|
4
|
-
<%= f.vp_field field, type, @record.content[field] %>
|
5
|
-
</div>
|
6
|
-
<% end %>
|
7
|
-
|
8
|
-
<%= f.submit "Save #{@group.display_name.singularize}", class: "ui primary positive left floated button" %>
|
9
|
-
<% end %>
|
@@ -1,5 +0,0 @@
|
|
1
|
-
<h1>Edit <%= @group.display_name.singularize %></h1>
|
2
|
-
|
3
|
-
<%= admin_partial "records/form", locals: {path: "/admin/groups/#{@group.id}/records/#{@record.id}", record: @record} %>
|
4
|
-
|
5
|
-
<%= button_to "Delete #{@group.display_name.singularize}", "/admin/groups/#{@group.id}/records/#{@record.id}", method: :delete, class: "ui negative button" if @group.repeating? %>
|
@@ -1,41 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Vapid Admin</title>
|
5
|
-
<%= stylesheet_link_tag "vapid/admin" %>
|
6
|
-
<%= javascript_include_tag "vapid/admin" %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body class="admin">
|
10
|
-
<div class="ui left fixed inverted vertical menu">
|
11
|
-
<div class="item">
|
12
|
-
<%= link_to "Vapid", "/admin", class: "ui big inverted header" %>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
<div class="item">
|
16
|
-
<div class="header"><i class="icon file text"></i>Content</div>
|
17
|
-
<div class="menu">
|
18
|
-
<% @groups.each do |group| %>
|
19
|
-
<%= link_to group.display_name, group_or_records_path(group), class: "item" %>
|
20
|
-
<% end %>
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div class="item">
|
25
|
-
<div class="header"><i class="icon setting"></i>Settings</div>
|
26
|
-
<div class="menu">
|
27
|
-
<%= link_to "Build Site", "/admin/build", class: "item" %>
|
28
|
-
<%= link_to "Log out", "/admin/logout", class: "item" %>
|
29
|
-
</div>
|
30
|
-
</div>
|
31
|
-
</div>
|
32
|
-
|
33
|
-
<div class="pusher">
|
34
|
-
<% flash.each do |key, value| %>
|
35
|
-
<div class="ui message <%= flash_class(key) %>"><%= value %></div>
|
36
|
-
<% end %>
|
37
|
-
|
38
|
-
<%= yield %>
|
39
|
-
</div>
|
40
|
-
</body>
|
41
|
-
</html>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Vapid Admin</title>
|
5
|
-
<%= stylesheet_link_tag "vapid/admin" %>
|
6
|
-
<%= csrf_meta_tags %>
|
7
|
-
</head>
|
8
|
-
<body class="admin_form">
|
9
|
-
<div class="ui middle aligned center aligned grid">
|
10
|
-
<div class="column">
|
11
|
-
<h1 class="ui header">Vapid</h1>
|
12
|
-
<div class="ui segment left aligned">
|
13
|
-
<% flash.each do |key, value| %>
|
14
|
-
<div class="ui message <%= flash_class(key) %>"><%= value %></div>
|
15
|
-
<% end %>
|
16
|
-
|
17
|
-
<%= yield %>
|
18
|
-
</div>
|
19
|
-
</div>
|
20
|
-
</div>
|
21
|
-
</body>
|
22
|
-
</html>
|