spina 2.14.0 → 2.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/components/spina/pages/new_page_button_component.html.erb +2 -2
- data/app/views/spina/admin/accounts/edit.html.erb +1 -1
- data/app/views/spina/admin/attachments/index.html.erb +2 -2
- data/app/views/spina/admin/images/_image.html.erb +2 -2
- data/app/views/spina/admin/images/index.html.erb +2 -2
- data/app/views/spina/admin/layout/edit.html.erb +1 -1
- data/app/views/spina/admin/navigations/edit.html.erb +1 -1
- data/app/views/spina/admin/pages/_form.html.erb +3 -3
- data/app/views/spina/admin/pages/index.html.erb +2 -2
- data/app/views/spina/admin/resources/edit.html.erb +1 -1
- data/app/views/spina/admin/settings/edit.html.erb +1 -1
- data/app/views/spina/admin/shared/_navigation.html.erb +4 -4
- data/app/views/spina/admin/theme/edit.html.erb +1 -1
- data/app/views/spina/admin/users/_form.html.erb +1 -1
- data/app/views/spina/admin/users/index.html.erb +1 -1
- data/config/locales/de.yml +1 -0
- data/lib/spina/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3558f114de8005fc0c084368f65cd8dbae2f8b0bcc49db4e960d1c7a6222183e
|
4
|
+
data.tar.gz: '098bdbd62bce0981fc65f6b4ae681a9524d9cab0402495405f9212aa37a39cfd'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fbf8a1433fdb7bcbe360d866559508d65c25dd15a0b3477fb99ea8fefc9c5cab9a83a4370e168f04243989c13276ab7c653f4a89f32e6c4c63001d06d3041c4
|
7
|
+
data.tar.gz: 7441777cda493884b34bde643c302f2bfef71ea3533616a0d7bb0e94445c8731dd7324fe25da3322afff142137e1bb62ed73f2ddde65cc707f02525f64af50c0
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<% if view_templates.many? %>
|
2
2
|
|
3
3
|
<%= render Spina::UserInterface::DropdownComponent.new do |dropdown| %>
|
4
|
-
<% dropdown.
|
4
|
+
<% dropdown.with_button(classes: "btn btn-primary w-full") do %>
|
5
5
|
<%= helpers.heroicon("document-plus", style: :solid, class: "w-5 h-5 -ml-1 mr-1") %>
|
6
6
|
<%=t 'spina.pages.new' %>
|
7
7
|
<% end %>
|
8
8
|
|
9
|
-
<% dropdown.
|
9
|
+
<% dropdown.with_menu do %>
|
10
10
|
<% view_templates.each do |template| %>
|
11
11
|
<%= link_to helpers.spina.new_admin_page_path(view_template: template.name, resource_id: @resource&.id), class: "block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900", data: {turbo_frame: "modal", action: "reveal#hide"} do %>
|
12
12
|
<div class="font-medium text-gray-700">
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= form_with model: current_spina_account, url: spina.admin_account_path do |f| %>
|
2
2
|
|
3
3
|
<%= render Spina::UserInterface::HeaderComponent.new do |header| %>
|
4
|
-
<% header.
|
4
|
+
<% header.with_actions do %>
|
5
5
|
|
6
6
|
<%= button_tag type: :submit, class: 'btn btn-primary', data: {controller: "button hotkeys", hotkeys: "command+s, ctrl+s", hotkeys_target: "button", action: "button#loading", loading_message: t("spina.ui.saving")} do %>
|
7
7
|
<%= heroicon('check', style: :mini, class: 'w-5 h-5 -ml-1 mr-1') %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= render Spina::UserInterface::HeaderComponent.new do |header| %>
|
2
|
-
<% header.
|
2
|
+
<% header.with_actions do %>
|
3
3
|
<%= form_with model: [:admin, Spina::Attachment.new], url: spina.admin_attachments_path, data: {controller: "form loading-button", loading_message: t('spina.media_library.uploading'), action: "turbo:submit-end->loading-button#doneLoading"} do |f| %>
|
4
4
|
|
5
5
|
<%= f.file_field :files, multiple: true, id: "new_attachment_file_field", class: 'hidden', data: {action: "loading-button#loading form#requestSubmit"} %>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
</button>
|
11
11
|
<% end %>
|
12
12
|
<% end %>
|
13
|
-
<% header.
|
13
|
+
<% header.with_navigation do %>
|
14
14
|
<nav class="-mb-3 mt-4">
|
15
15
|
<ul class="inline-flex w-auto rounded-md bg-white">
|
16
16
|
<%= render Spina::UserInterface::TabLinkComponent.new(spina.admin_images_path) do %>
|
@@ -27,13 +27,13 @@
|
|
27
27
|
|
28
28
|
<% if @media_folders.present? %>
|
29
29
|
<%= render Spina::UserInterface::DropdownComponent.new do |dropdown| %>
|
30
|
-
<% dropdown.
|
30
|
+
<% dropdown.with_button(classes: 'btn btn-default h-7 px-2 text-xs') do %>
|
31
31
|
<%= heroicon('folder', style: :mini, class: 'w-4 h-4 mr-1 text-gray-600') %>
|
32
32
|
<%=t 'spina.ui.move_to' %>
|
33
33
|
<%= heroicon('chevron-down', style: :solid, class: 'w-4 h-4') %>
|
34
34
|
<% end %>
|
35
35
|
|
36
|
-
<% dropdown.
|
36
|
+
<% dropdown.with_menu do %>
|
37
37
|
<% if image.media_folder_id.present? %>
|
38
38
|
<%= form_with model: image, url: spina.admin_image_path(image) do |f| %>
|
39
39
|
<%= f.hidden_field :media_folder_id, value: nil %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= render Spina::UserInterface::HeaderComponent.new do |header| %>
|
2
|
-
<% header.
|
2
|
+
<% header.with_actions do %>
|
3
3
|
<% if @media_folder.blank? %>
|
4
4
|
<%= link_to spina.new_admin_media_folder_path, class: "btn btn-default", data: {turbo_frame: "modal"} do %>
|
5
5
|
<%= heroicon("folder", style: :solid, class: 'w-4 h-4 mr-1 -ml-1') %>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<% end %>
|
25
25
|
<% end %>
|
26
26
|
|
27
|
-
<% header.
|
27
|
+
<% header.with_navigation do %>
|
28
28
|
<nav class="-mb-3 mt-4">
|
29
29
|
<ul class="inline-flex w-auto rounded-md bg-white">
|
30
30
|
<%= render Spina::UserInterface::TabLinkComponent.new(spina.admin_images_path, active: true) do %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= render Spina::UserInterface::HeaderComponent.new do |header| %>
|
2
|
-
<% header.
|
2
|
+
<% header.with_actions do %>
|
3
3
|
<%= render Spina::UserInterface::TranslationsComponent.new(@account, label: @locale.upcase) %>
|
4
4
|
|
5
5
|
<% if Spina::Current.theme.layout_parts.any? %>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div data-controller="tabs" data-tabs-active="cursor-default text-gray-900 bg-spina-dark bg-opacity-10" data-tabs-inactive="cursor-pointer bg-transparent text-gray-400 border-transparent">
|
2
2
|
<%= render Spina::UserInterface::HeaderComponent.new do |header| %>
|
3
|
-
<% header.
|
3
|
+
<% header.with_after_breadcrumbs do %>
|
4
4
|
<% if @page.draft? %>
|
5
5
|
<span class="text-gray-400 ml-2 text-sm">(<%= Spina::Page.human_attribute_name(:draft) %>)</span>
|
6
6
|
<% end %>
|
@@ -8,10 +8,10 @@
|
|
8
8
|
<%= heroicon("external-link", style: :mini, class: "w-4 h-4") %>
|
9
9
|
<% end %>
|
10
10
|
<% end %>
|
11
|
-
<% header.
|
11
|
+
<% header.with_actions do %>
|
12
12
|
<%= render Spina::Pages::ActionsComponent.new(page: @page, locale: @locale) %>
|
13
13
|
<% end %>
|
14
|
-
<% header.
|
14
|
+
<% header.with_navigation do %>
|
15
15
|
<nav class="-mb-3 mt-4">
|
16
16
|
<ul class="inline-flex w-auto rounded-md bg-white">
|
17
17
|
<% @tabs.each do |tab_name| %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= render Spina::UserInterface::HeaderComponent.new do |header| %>
|
2
|
-
<% header.
|
2
|
+
<% header.with_actions do %>
|
3
3
|
<% if @resource %>
|
4
4
|
<%= link_to spina.edit_admin_resource_path(@resource), class: 'btn btn-default' do %>
|
5
5
|
<%= heroicon('cog-8-tooth', style: :solid, class: 'text-gray-300 w-5 h-5 -ml-1 mr-1') %>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
</div>
|
13
13
|
<% end %>
|
14
14
|
|
15
|
-
<% header.
|
15
|
+
<% header.with_navigation do %>
|
16
16
|
<nav class="-mb-1 md:-mb-3 mt-4">
|
17
17
|
<ul class="inline-flex flex-wrap w-auto rounded-md bg-white">
|
18
18
|
<%= render Spina::UserInterface::TabLinkComponent.new(spina.admin_pages_path, active: @resource.nil?) do %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= render Spina::UserInterface::HeaderComponent.new do |header| %>
|
2
|
-
<% header.
|
2
|
+
<% header.with_actions do %>
|
3
3
|
<%= render Spina::UserInterface::TranslationsComponent.new(@resource, label: @locale.upcase) %>
|
4
4
|
|
5
5
|
<%= button_tag type: :submit, form: dom_id(@resource), class: 'btn btn-primary', data: {controller: "button", action: "button#loading", loading_message: t('spina.ui.saving')} do %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= form_with model: @setting, scope: :setting, url: admin_settings_path do |f| %>
|
2
2
|
|
3
3
|
<%= render Spina::UserInterface::HeaderComponent.new do |header| %>
|
4
|
-
<% header.
|
4
|
+
<% header.with_actions do %>
|
5
5
|
|
6
6
|
<%= button_tag type: :submit, class: 'btn btn-primary', data: {controller: "button", action: "button#loading", loading_message: t('spina.ui.saving')} do %>
|
7
7
|
<%= heroicon('check', style: :solid, class: 'w-5 h-5 mr-1 -ml-2') %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
<ul class="flex md:flex-col">
|
5
5
|
<%= render Spina::MainNavigation::SubNavComponent.new(:content) do |nav| %>
|
6
|
-
<% nav.
|
6
|
+
<% nav.with_icon do %>
|
7
7
|
<%= heroicon('document-text', style: :solid, class: 'hidden md:block w-8 h-8 text-white md:mr-3') %>
|
8
8
|
<%= heroicon('menu', style: :solid, class: 'md:hidden w-8 h-8 text-white md:mr-3') %>
|
9
9
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
</div>
|
13
13
|
<% end %>
|
14
14
|
|
15
|
-
<% nav.
|
15
|
+
<% nav.with_links do %>
|
16
16
|
|
17
17
|
<%= render Spina::MainNavigation::LinkComponent.new t('spina.website.pages'), spina.admin_pages_path, active: controller_name.in?(%w(pages resources)) %>
|
18
18
|
|
@@ -29,7 +29,7 @@
|
|
29
29
|
<%= render Spina::Hooks::HookComponent.new(partial: "primary_navigation") %>
|
30
30
|
|
31
31
|
<%= render Spina::MainNavigation::SubNavComponent.new(:settings) do |nav| %>
|
32
|
-
<% nav.
|
32
|
+
<% nav.with_icon do %>
|
33
33
|
<%= heroicon('cog-8-tooth', style: :solid, class: 'w-8 h-8 text-white md:mr-3') %>
|
34
34
|
|
35
35
|
<div class="text-white font-semibold hidden md:block transform -translate-x-2 ease-in-out duration-300 absolute md:relative opacity-0 transition-all" data-navigation-target="label">
|
@@ -37,7 +37,7 @@
|
|
37
37
|
</div>
|
38
38
|
<% end %>
|
39
39
|
|
40
|
-
<% nav.
|
40
|
+
<% nav.with_links do %>
|
41
41
|
<%= render Spina::MainNavigation::LinkComponent.new(t('spina.settings.general'), spina.edit_admin_account_path, active: controller_name == "accounts") %>
|
42
42
|
<%= render Spina::MainNavigation::LinkComponent.new(t('spina.website.theme'), spina.edit_admin_theme_path, active: controller_name == "theme") %>
|
43
43
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= form_with model: Spina::Current.account, url: spina.admin_theme_path do |f| %>
|
2
2
|
|
3
3
|
<%= render Spina::UserInterface::HeaderComponent.new do |header| %>
|
4
|
-
<% header.
|
4
|
+
<% header.with_actions do %>
|
5
5
|
|
6
6
|
<%= button_tag type: :submit, class: 'btn btn-primary', data: {controller: "button hotkeys", hotkeys: "command+s, ctrl+s", hotkeys_target: "button", action: "button#loading", loading_message: t("spina.ui.saving")} do %>
|
7
7
|
<%= heroicon('check', style: :mini, class: 'w-5 h-5 -ml-1 mr-1') %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= render Spina::UserInterface::HeaderComponent.new do |header| %>
|
2
|
-
<% header.
|
2
|
+
<% header.with_actions do %>
|
3
3
|
<%= button_tag type: :submit, form: dom_id(@user), class: 'btn btn-primary', data: {controller: "button hotkeys", hotkeys: "command+s, ctrl+s", hotkeys_target: "button", action: "button#loading", loading_message: t('spina.ui.saving')} do %>
|
4
4
|
<%= heroicon('check', style: :mini, class: 'w-5 h-5 -ml-1 mr-1') %>
|
5
5
|
<%=t 'spina.users.save' %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= render Spina::UserInterface::HeaderComponent.new do |header| %>
|
2
|
-
<% header.
|
2
|
+
<% header.with_after_breadcrumbs do %>
|
3
3
|
<% if current_spina_user.admin? %>
|
4
4
|
<%= link_to spina.new_admin_user_path, class: 'btn btn-default h-8 px-2 ml-3' do %>
|
5
5
|
<%= heroicon('plus', style: :mini, class: 'w-4 h-4') %>
|
data/config/locales/de.yml
CHANGED
data/lib/spina/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spina
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bram Jetten
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -168,16 +168,22 @@ dependencies:
|
|
168
168
|
name: view_component
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - "
|
171
|
+
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '2.32'
|
174
|
+
- - "<"
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '4.0'
|
174
177
|
type: :runtime
|
175
178
|
prerelease: false
|
176
179
|
version_requirements: !ruby/object:Gem::Requirement
|
177
180
|
requirements:
|
178
|
-
- - "
|
181
|
+
- - ">="
|
179
182
|
- !ruby/object:Gem::Version
|
180
183
|
version: '2.32'
|
184
|
+
- - "<"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '4.0'
|
181
187
|
- !ruby/object:Gem::Dependency
|
182
188
|
name: importmap-rails
|
183
189
|
requirement: !ruby/object:Gem::Requirement
|