hyde_admin 0.0.8 → 0.0.9
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 +5 -0
- data/README.md +7 -1
- data/bin/admin_views/admin_layout.html.erb +8 -6
- data/bin/hyde_admin_config +16 -0
- data/bin/i18n/en.yml +2 -2
- data/bin/i18n/fr.yml +2 -2
- data/hyde_admin.gemspec +1 -1
- data/lib/hyde_admin/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b6c1b4aa57c65ae8ea48b7317b4d8c53b6dacc5162f9cf413b086213e8d16b9
|
4
|
+
data.tar.gz: e92ce331dd7fcb499084f1aff3dda0db7ac2093bb864c7a024068aa9ab29d0b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76426f6867cebd4884ab7cd5e589e3a72c0f14e7b8b5df64d16c3d98c08890c38d708cb4e55a840070604e957afcd6285818b82a7d0961375f17cf3ef5d000db
|
7
|
+
data.tar.gz: f94cb4bd9aa9d8337c5ebf7d86dc1e77ff257192bd724c84bb0fb2fd7190b9ffb2741e529d0c9ee4efe0d541f21630cba4685cefe4283df0d588252ee33854de
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -24,4 +24,10 @@ You can visit localhost:9292 !
|
|
24
24
|
hyde_admin.yml is automatically generated in your jekyll directory.
|
25
25
|
(you can change settings with hyde_admin ou directly)
|
26
26
|
|
27
|
-
Hyde_admin allow ssh deployment.
|
27
|
+
Hyde_admin allow ssh deployment.
|
28
|
+
|
29
|
+
## New version of hyde_admin ?
|
30
|
+
|
31
|
+
Just install the lastest config file (your config file will be renamed, and latest config file will be installed), run :
|
32
|
+
|
33
|
+
`hyde_admin_config`
|
@@ -84,12 +84,14 @@
|
|
84
84
|
<%= EscapeUtils.escape_html t.overview.capitalize %>
|
85
85
|
</a>
|
86
86
|
</li>
|
87
|
-
|
88
|
-
<
|
89
|
-
<
|
90
|
-
|
91
|
-
|
92
|
-
|
87
|
+
<% if !@hyde_parameters['deploy_dest_address'].blank? %>
|
88
|
+
<li class="nav-item">
|
89
|
+
<a class="nav-link active" aria-current="page" href="/deploy" id="btn-deploy">
|
90
|
+
<span data-feather="home" class="fas fa-cloud-upload-alt"></span>
|
91
|
+
<%= EscapeUtils.escape_html t.deploy.capitalize %>
|
92
|
+
</a>
|
93
|
+
</li>
|
94
|
+
<% end %>
|
93
95
|
</ul>
|
94
96
|
<p class="text-center text-muted"><br><br><em>Hyde Admin V.<%= HydeAdmin::VERSION %></em> <a href="https://github.com/rivsc/hyde_admin" class="link-secondary"><i class="fab fa-github"></i></a></p>
|
95
97
|
</div>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/bin/env ruby
|
2
|
+
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
local_config_file = File.join(Dir.pwd, 'hyde_admin.yml')
|
6
|
+
old_filename = "hyde_admin_old_#{Time.now.strftime('%Y_%m_%d')}.yml"
|
7
|
+
|
8
|
+
# Backup actual config file
|
9
|
+
if File.exist?(local_config_file)
|
10
|
+
FileUtils.mv(local_config_file, old_filename)
|
11
|
+
end
|
12
|
+
|
13
|
+
# Copy the default config file
|
14
|
+
FileUtils.copy(File.join(File.expand_path(File.dirname(__FILE__)), 'hyde_admin.yml'), local_config_file)
|
15
|
+
|
16
|
+
puts "#{local_config_file} copied, you can find your old config file here : #{old_filename} !"
|
data/bin/i18n/en.yml
CHANGED
@@ -103,7 +103,7 @@ images: images
|
|
103
103
|
load_images: load images
|
104
104
|
resize_format: jpg
|
105
105
|
help_resize_format: jpg or png
|
106
|
-
resize_size: 1500x1000
|
106
|
+
resize_size: "size to fit, example : 1500x1000"
|
107
107
|
help_resize_size: Downsize to fit to the specified size (resize preserve ratio), example 1500x1000
|
108
|
-
resize_enable:
|
108
|
+
resize_enable: Enable resizing for images
|
109
109
|
help_resize_enable: enable feature resize image at upload
|
data/bin/i18n/fr.yml
CHANGED
@@ -103,7 +103,7 @@ images: images
|
|
103
103
|
load_images: charger images
|
104
104
|
resize_format: jpg
|
105
105
|
help_resize_format: jpg ou png
|
106
|
-
resize_size: 1500x1000
|
106
|
+
resize_size: "Recadrer en (example : 1500x1000)"
|
107
107
|
help_resize_size: Réduit les image pour coller à la taille spécifiée (le redimensionnement préserve le ratio), exemple 1500x1000
|
108
|
-
resize_enable:
|
108
|
+
resize_enable: activer redimensionnement
|
109
109
|
help_resize_enable: active la fonctionnalité de redimensionnement d'image à l'upload
|
data/hyde_admin.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
all_files = `git ls-files`.split("\n").reject{ |filepath| filepath.start_with? 'test/' }
|
12
12
|
s.files = all_files
|
13
13
|
|
14
|
-
s.executables = ['hyde_admin']
|
14
|
+
s.executables = ['hyde_admin','hyde_admin_config']
|
15
15
|
s.bindir = "bin"
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvain Claudel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roda
|
@@ -98,6 +98,7 @@ description: A Jekyll admin interface
|
|
98
98
|
email: claudel.sylvain@gmail.com
|
99
99
|
executables:
|
100
100
|
- hyde_admin
|
101
|
+
- hyde_admin_config
|
101
102
|
extensions: []
|
102
103
|
extra_rdoc_files: []
|
103
104
|
files:
|
@@ -127,6 +128,7 @@ files:
|
|
127
128
|
- bin/hyde_admin
|
128
129
|
- bin/hyde_admin.ru
|
129
130
|
- bin/hyde_admin.yml
|
131
|
+
- bin/hyde_admin_config
|
130
132
|
- bin/hyde_assets/hyde_admin.css
|
131
133
|
- bin/hyde_assets/hyde_admin.js
|
132
134
|
- bin/i18n/en.yml
|