hyde_admin 0.0.9 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b6c1b4aa57c65ae8ea48b7317b4d8c53b6dacc5162f9cf413b086213e8d16b9
4
- data.tar.gz: e92ce331dd7fcb499084f1aff3dda0db7ac2093bb864c7a024068aa9ab29d0b1
3
+ metadata.gz: dbc26086f9910e8ec6eb2348b8510e033d4cc022d1ff41445cb0aa93b84cd7ca
4
+ data.tar.gz: 538ebf983c3f25eae07a9326244e520884e078b56be53a647758d11e4f07ddbe
5
5
  SHA512:
6
- metadata.gz: 76426f6867cebd4884ab7cd5e589e3a72c0f14e7b8b5df64d16c3d98c08890c38d708cb4e55a840070604e957afcd6285818b82a7d0961375f17cf3ef5d000db
7
- data.tar.gz: f94cb4bd9aa9d8337c5ebf7d86dc1e77ff257192bd724c84bb0fb2fd7190b9ffb2741e529d0c9ee4efe0d541f21630cba4685cefe4283df0d588252ee33854de
6
+ metadata.gz: c06f9bf58f50c87b5721aa6e49725750a7a593daa23bee08deec169447d144f3cc292a736ae7b49576f0cfc026fe6805753694ee94a267f837d8c63146c37af7
7
+ data.tar.gz: 69b883a756e8caabb1db403b64bcde3af33f920d743e02a2c415c4b7d59dbc43b1aed2fe2bc6bbe88d493e3d0cb2ae5410ca8d8db7fb49ed27b0d0adac38294e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.0.11
2
+
3
+ Add logo hyde admin
4
+ Increase image window size
5
+ Add dependency to avoid to set them in jekyll site gemfile
6
+
1
7
  # 0.0.9
2
8
 
3
9
  Hide deploy button if 'deploy_dest_address' is empty.
data/README.md CHANGED
@@ -2,11 +2,25 @@
2
2
 
3
3
  Hyde_admin is a administration frontend for Jekyll (static site generator in Ruby).
4
4
 
5
+ ![Hyde_admin for jekyll](hyde_admin_for_jekyll.png)
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
- `gem 'hyde_admin'`
21
+ ```
22
+ gem 'hyde_admin'
23
+ ```
10
24
 
11
25
  In the Gemfile of your jekyll site.
12
26
 
@@ -14,20 +28,26 @@ Run
14
28
 
15
29
  `bundle update`
16
30
 
17
- When run
31
+ # Run hyde_admin
32
+
33
+ Run
18
34
 
19
35
  `hyde_admin`
20
36
 
21
37
  in your jekyll directory.
22
- You can visit localhost:9292 !
38
+ You can visit http://localhost:9292/ !
23
39
 
24
40
  hyde_admin.yml is automatically generated in your jekyll directory.
25
- (you can change settings with hyde_admin ou directly)
41
+ (you can change settings with hyde_admin at http://localhost:9292/configuration or directly with text editor)
26
42
 
27
- Hyde_admin allow ssh deployment.
43
+ Hyde_admin allow ssh deployment with rsync.
28
44
 
29
45
  ## New version of hyde_admin ?
30
46
 
31
47
  Just install the lastest config file (your config file will be renamed, and latest config file will be installed), run :
32
48
 
33
- `hyde_admin_config`
49
+ `hyde_admin_config`
50
+
51
+ ## Error when bundle install
52
+
53
+ Try this [https://stackoverflow.com/questions/30818391/gem-eventmachine-fatal-error-openssl-ssl-h-file-not-found](https://stackoverflow.com/questions/30818391/gem-eventmachine-fatal-error-openssl-ssl-h-file-not-found)
@@ -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>
@@ -84,7 +85,7 @@
84
85
  <%= EscapeUtils.escape_html t.overview.capitalize %>
85
86
  </a>
86
87
  </li>
87
- <% if !@hyde_parameters['deploy_dest_address'].blank? %>
88
+ <% if !@hyde_parameters['deploy_dest_address'].to_s.empty? %>
88
89
  <li class="nav-item">
89
90
  <a class="nav-link active" aria-current="page" href="/deploy" id="btn-deploy">
90
91
  <span data-feather="home" class="fas fa-cloud-upload-alt"></span>
@@ -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
@@ -1,3 +1,3 @@
1
1
  #!/bin/env ruby
2
2
 
3
- `rackup "#{File.expand_path(File.dirname(__FILE__))}/hyde_admin.ru"`
3
+ `rackup -o 0.0.0.0 -p 9292 "#{File.expand_path(File.dirname(__FILE__))}/hyde_admin.ru"`
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
- run App.freeze.app
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
@@ -1,3 +1,3 @@
1
1
  module HydeAdmin
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.11"
3
3
  end
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.9
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: 2021-11-12 00:00:00.000000000 Z
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
@@ -196,8 +240,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
240
  - !ruby/object:Gem::Version
197
241
  version: '0'
198
242
  requirements: []
199
- rubygems_version: 3.1.4
200
- signing_key:
243
+ rubygems_version: 3.3.7
244
+ signing_key:
201
245
  specification_version: 4
202
246
  summary: Hyde for Jekyll site
203
247
  test_files: []