hyde_admin 0.0.10 → 0.0.11
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 +6 -0
- data/README.md +18 -5
- data/bin/admin_views/admin_layout.html.erb +1 -15
- data/bin/hyde_admin +1 -1
- data/bin/hyde_admin.ru +7 -5
- data/bin/hyde_assets/hyde_admin.css +23 -3
- data/bin/img/logo.png +0 -0
- data/hyde_admin.gemspec +3 -0
- data/hyde_admin_for_jekyll.png +0 -0
- data/lib/hyde_admin/version.rb +1 -1
- metadata +49 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbc26086f9910e8ec6eb2348b8510e033d4cc022d1ff41445cb0aa93b84cd7ca
|
4
|
+
data.tar.gz: 538ebf983c3f25eae07a9326244e520884e078b56be53a647758d11e4f07ddbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c06f9bf58f50c87b5721aa6e49725750a7a593daa23bee08deec169447d144f3cc292a736ae7b49576f0cfc026fe6805753694ee94a267f837d8c63146c37af7
|
7
|
+
data.tar.gz: 69b883a756e8caabb1db403b64bcde3af33f920d743e02a2c415c4b7d59dbc43b1aed2fe2bc6bbe88d493e3d0cb2ae5410ca8d8db7fb49ed27b0d0adac38294e
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,13 +2,24 @@
|
|
2
2
|
|
3
3
|
Hyde_admin is a administration frontend for Jekyll (static site generator in Ruby).
|
4
4
|
|
5
|
+

|
6
|
+
|
5
7
|
## Getting Started with Hyde Admin
|
6
8
|
|
9
|
+
# Prerequisite
|
10
|
+
|
11
|
+
Install ImageMagick (required by mini_magick)
|
12
|
+
|
13
|
+
```
|
14
|
+
apt install imagemagick
|
15
|
+
```
|
16
|
+
|
17
|
+
# Install
|
18
|
+
|
7
19
|
Add
|
8
20
|
|
9
21
|
```
|
10
22
|
gem 'hyde_admin'
|
11
|
-
gem 'puma'
|
12
23
|
```
|
13
24
|
|
14
25
|
In the Gemfile of your jekyll site.
|
@@ -17,17 +28,19 @@ Run
|
|
17
28
|
|
18
29
|
`bundle update`
|
19
30
|
|
20
|
-
|
31
|
+
# Run hyde_admin
|
32
|
+
|
33
|
+
Run
|
21
34
|
|
22
35
|
`hyde_admin`
|
23
36
|
|
24
37
|
in your jekyll directory.
|
25
|
-
You can visit localhost:9292 !
|
38
|
+
You can visit http://localhost:9292/ !
|
26
39
|
|
27
40
|
hyde_admin.yml is automatically generated in your jekyll directory.
|
28
|
-
(you can change settings with hyde_admin
|
41
|
+
(you can change settings with hyde_admin at http://localhost:9292/configuration or directly with text editor)
|
29
42
|
|
30
|
-
Hyde_admin allow ssh deployment.
|
43
|
+
Hyde_admin allow ssh deployment with rsync.
|
31
44
|
|
32
45
|
## New version of hyde_admin ?
|
33
46
|
|
@@ -31,6 +31,7 @@
|
|
31
31
|
<div class="row">
|
32
32
|
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
|
33
33
|
<div class="position-sticky pt-3">
|
34
|
+
<a href="/"><img src="/img/logo.png" alt="Hyde Admin" title="Logo hyde admin" class="sidebarMenu-logo" /></a>
|
34
35
|
<ul class="nav flex-column">
|
35
36
|
<li class="nav-item">
|
36
37
|
</li>
|
@@ -97,21 +98,6 @@
|
|
97
98
|
</div>
|
98
99
|
</nav>
|
99
100
|
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
|
100
|
-
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
101
|
-
<h1 class="h2">Hyde Admin for Jekyll</h1>
|
102
|
-
<!--
|
103
|
-
<div class="btn-toolbar mb-2 mb-md-0">
|
104
|
-
<div class="btn-group me-2">
|
105
|
-
<button type="button" class="btn btn-sm btn-outline-secondary"><%= t.backup_zip %></button>
|
106
|
-
<button type="button" class="btn btn-sm btn-outline-secondary">Export</button>
|
107
|
-
</div>
|
108
|
-
<button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle">
|
109
|
-
<span data-feather="calendar"></span>
|
110
|
-
This week
|
111
|
-
</button>
|
112
|
-
</div>
|
113
|
-
-->
|
114
|
-
</div>
|
115
101
|
<%= yield %>
|
116
102
|
</main>
|
117
103
|
</div>
|
data/bin/hyde_admin
CHANGED
data/bin/hyde_admin.ru
CHANGED
@@ -25,7 +25,7 @@ class Mid < Roda
|
|
25
25
|
plugin :i18n, translations: File.join(File.expand_path(File.dirname(__FILE__)), 'i18n') # gem 'roda-i18n'
|
26
26
|
opts[:root] = Dir.pwd
|
27
27
|
plugin :public, root: File.join(Dir.pwd, '_site') # simulate jekyll site
|
28
|
-
plugin :static, ['/mode', '/lib', '/fslightbox', '/hyde_assets'], :root => File.join(File.expand_path(File.dirname(__FILE__)))
|
28
|
+
plugin :static, ['/mode', '/lib', '/fslightbox', '/hyde_assets', '/img'], :root => File.join(File.expand_path(File.dirname(__FILE__)))
|
29
29
|
plugin :http_auth
|
30
30
|
plugin :common_logger
|
31
31
|
|
@@ -38,6 +38,7 @@ class Mid < Roda
|
|
38
38
|
FileUtils.cp(yml_in_gem, yml_in_current_dir)
|
39
39
|
end
|
40
40
|
@hyde_parameters ||= YAML.load(File.read(yml_in_current_dir))
|
41
|
+
|
41
42
|
super(param)
|
42
43
|
end
|
43
44
|
|
@@ -132,8 +133,8 @@ class Mid < Roda
|
|
132
133
|
|
133
134
|
# Rebuild static files
|
134
135
|
r.on "rebuild" do
|
135
|
-
puts Dir.pwd
|
136
|
-
`cd #{Dir.pwd} && jekyll b`
|
136
|
+
$stderr.puts Dir.pwd
|
137
|
+
$stderr.puts `cd #{Dir.pwd} && jekyll b`
|
137
138
|
r.redirect "/dashboard"
|
138
139
|
end
|
139
140
|
|
@@ -411,7 +412,8 @@ end
|
|
411
412
|
class App < Roda
|
412
413
|
use Mid
|
413
414
|
use Rack::Static, :urls => [''], root: Dir.pwd # allow to match all files in Dir.pwd
|
414
|
-
end
|
415
415
|
|
416
|
-
|
416
|
+
$stderr.puts "===> Starting hyde_admin : open http://127.0.0.1:9292/"
|
417
|
+
end
|
417
418
|
|
419
|
+
run App.freeze.app
|
@@ -20,18 +20,38 @@
|
|
20
20
|
|
21
21
|
.image-element{
|
22
22
|
position: relative;
|
23
|
+
margin-left: auto;
|
24
|
+
margin-right: auto;
|
25
|
+
margin-bottom: 20px;
|
23
26
|
}
|
24
27
|
|
25
28
|
.image-element span{
|
26
|
-
position: absolute;
|
27
29
|
bottom:0px;
|
28
|
-
left:5px;
|
29
30
|
z-index: 10;
|
30
31
|
font-weight: bold;
|
31
32
|
margin-bottom: -20px;
|
33
|
+
|
34
|
+
text-shadow: 0px 0px 3px white;
|
35
|
+
margin-left: -100%;
|
36
|
+
margin-right: -100%;
|
37
|
+
text-align: center;
|
38
|
+
display: block;
|
39
|
+
}
|
40
|
+
.modal-dialog {
|
41
|
+
max-width: 90vw;
|
32
42
|
}
|
33
43
|
|
34
44
|
.CodeMirror{
|
35
45
|
border: 1px solid #ced4da;
|
36
46
|
border-radius: 4px;
|
37
|
-
}
|
47
|
+
}
|
48
|
+
|
49
|
+
/* hyde admin style */
|
50
|
+
.sidebarMenu-logo{
|
51
|
+
width: 144px;
|
52
|
+
margin-left: auto;
|
53
|
+
margin-right: auto;
|
54
|
+
display: block;
|
55
|
+
margin-bottom: 30px;
|
56
|
+
margin-top: 10px;
|
57
|
+
}
|
data/bin/img/logo.png
ADDED
Binary file
|
data/hyde_admin.gemspec
CHANGED
@@ -32,4 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
#s.add_runtime_dependency("i18n", "~> 0.4.0") # I18n.transliterate (already required by jekyll)
|
33
33
|
s.add_runtime_dependency('jekyll') # Because we call jekyll binary
|
34
34
|
s.add_runtime_dependency('image_processing') # JPEG quality
|
35
|
+
s.add_runtime_dependency('mini_magick')
|
36
|
+
s.add_runtime_dependency('rack', '2.2.4')
|
37
|
+
s.add_runtime_dependency('puma')
|
35
38
|
end
|
Binary file
|
data/lib/hyde_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyde_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvain Claudel
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roda
|
@@ -94,6 +94,48 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: mini_magick
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rack
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 2.2.4
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 2.2.4
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: puma
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
97
139
|
description: A Jekyll admin interface
|
98
140
|
email: claudel.sylvain@gmail.com
|
99
141
|
executables:
|
@@ -133,6 +175,7 @@ files:
|
|
133
175
|
- bin/hyde_assets/hyde_admin.js
|
134
176
|
- bin/i18n/en.yml
|
135
177
|
- bin/i18n/fr.yml
|
178
|
+
- bin/img/logo.png
|
136
179
|
- bin/lib/codemirror.css
|
137
180
|
- bin/lib/codemirror.js
|
138
181
|
- bin/mode/css/css.js
|
@@ -172,6 +215,7 @@ files:
|
|
172
215
|
- bin/mode/yaml/index.html
|
173
216
|
- bin/mode/yaml/yaml.js
|
174
217
|
- hyde_admin.gemspec
|
218
|
+
- hyde_admin_for_jekyll.png
|
175
219
|
- lib/hyde_admin/version.rb
|
176
220
|
homepage: https://rubygems.org/gems/hyde_admin
|
177
221
|
licenses:
|
@@ -181,7 +225,7 @@ metadata:
|
|
181
225
|
bug_tracker_uri: https://github.com/rivsc/hyde_admin/issues
|
182
226
|
changelog_uri: https://github.com/rivsc/hyde_admin/releases
|
183
227
|
homepage_uri: https://rubygems.org/gems/hyde_admin
|
184
|
-
post_install_message:
|
228
|
+
post_install_message:
|
185
229
|
rdoc_options: []
|
186
230
|
require_paths:
|
187
231
|
- lib
|
@@ -197,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
241
|
version: '0'
|
198
242
|
requirements: []
|
199
243
|
rubygems_version: 3.3.7
|
200
|
-
signing_key:
|
244
|
+
signing_key:
|
201
245
|
specification_version: 4
|
202
246
|
summary: Hyde for Jekyll site
|
203
247
|
test_files: []
|