@raketa-cloud/admin 0.0.82 → 0.0.84

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/admin",
3
- "version": "0.0.82",
3
+ "version": "0.0.84",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "dev": "npx tailwindcss -i ./src/styles/application.css -o ../../apps/admin/static/application.css --watch",
@@ -0,0 +1,5 @@
1
+ <%- f.field('resource.settings.codes.scripts', {
2
+ as: 'textarea',
3
+ "data-validations-json": true,
4
+ value: JSON.stringify(resource.settings?.codes?.scripts || undefined)
5
+ }) %>
@@ -0,0 +1,7 @@
1
+ <%- f.field('resource.settings.codes.structured_json', {
2
+ label: 'Structured data (JSON)',
3
+ as: 'textarea',
4
+ hint: '<a target="_blank" href="https://search.google.com/test/rich-results">Click here for a structured data verification tool</a>',
5
+ "data-validations-json": true,
6
+ value: JSON.stringify(resource.settings?.codes?.structured_json || undefined)
7
+ }) %>
@@ -12,19 +12,8 @@
12
12
  <div>
13
13
  <% form_for({ resource }, errors, (f) => { %>
14
14
  <form action="<%= `/${_context.locale}/${_context.resourceConfig.articleType}_revisions/${resource.id}/codes` %>" method="POST" class="form">
15
- <%- f.field('resource.settings.codes.scripts', {
16
- as: 'textarea',
17
- "data-validations-json": true,
18
- value: JSON.stringify(resource.settings?.codes?.scripts || undefined)
19
- }) %>
20
-
21
- <%- f.field('resource.settings.codes.structured_json', {
22
- label: 'Structured data (JSON)',
23
- as: 'textarea',
24
- hint: '<a target="_blank" href="https://search.google.com/test/rich-results">Click here for a structured data verification tool</a>',
25
- "data-validations-json": true,
26
- value: JSON.stringify(resource.settings?.codes?.structured_json || undefined)
27
- }) %>
15
+ <%- render_partial('../../_shared/_scripts_input.ejs', { resource, f }) %>
16
+ <%- render_partial('../../_shared/_structured_json_input.ejs', { resource, f }) %>
28
17
 
29
18
  <div class="form-actions">
30
19
  <div class="btn-toolbar">
@@ -36,4 +25,4 @@
36
25
  <% }) %>
37
26
  </div>
38
27
  </div>
39
- </div>
28
+ </div>
@@ -12,19 +12,8 @@
12
12
  <div>
13
13
  <% form_for({ resource }, errors, (f) => { %>
14
14
  <form action="<%= `/${_context.locale}/${_context.resourceConfig.eventType}_revisions/${resource.id}/codes` %>" method="POST" class="form">
15
- <%- f.field('resource.settings.codes.scripts', {
16
- as: 'textarea',
17
- "data-validations-json": true,
18
- value: JSON.stringify(resource.settings?.codes?.scripts || undefined)
19
- }) %>
20
-
21
- <%- f.field('resource.settings.codes.structured_json', {
22
- label: 'Structured data (JSON)',
23
- as: 'textarea',
24
- hint: '<a target="_blank" href="https://search.google.com/test/rich-results">Click here for a structured data verification tool</a>',
25
- "data-validations-json": true,
26
- value: JSON.stringify(resource.settings?.codes?.structured_json || undefined)
27
- }) %>
15
+ <%- render_partial('../../_shared/_scripts_input.ejs', { resource, f }) %>
16
+ <%- render_partial('../../_shared/_structured_json_input.ejs', { resource, f }) %>
28
17
 
29
18
  <div class="form-actions">
30
19
  <div class="btn-toolbar">
@@ -36,4 +25,4 @@
36
25
  <% }) %>
37
26
  </div>
38
27
  </div>
39
- </div>
28
+ </div>
@@ -12,19 +12,8 @@
12
12
  <div>
13
13
  <% form_for({ resource }, errors, (f) => { %>
14
14
  <form action="<%= `/${_context.locale}/${_context.resourceConfig.pageType}_revisions/${resource.id}/codes` %>" method="POST" class="form">
15
- <%- f.field('resource.settings.codes.scripts', {
16
- as: 'textarea',
17
- "data-validations-json": true,
18
- value: JSON.stringify(resource.settings?.codes?.scripts || undefined)
19
- }) %>
20
-
21
- <%- f.field('resource.settings.codes.structured_json', {
22
- label: 'Structured data (JSON)',
23
- as: 'textarea',
24
- hint: '<a target="_blank" href="https://search.google.com/test/rich-results">Click here for a structured data verification tool</a>',
25
- "data-validations-json": true,
26
- value: JSON.stringify(resource.settings?.codes?.structured_json || undefined)
27
- }) %>
15
+ <%- render_partial('../../_shared/_scripts_input.ejs', { resource, f }) %>
16
+ <%- render_partial('../../_shared/_structured_json_input.ejs', { resource, f }) %>
28
17
 
29
18
  <div class="form-actions">
30
19
  <div class="btn-toolbar">
@@ -1,8 +1,8 @@
1
1
  <% form_for({ redirect }, errors, (f) => { %>
2
2
  <form action="<%= redirect?.id ? `/${_context.locale}/redirects/${redirect.id}` : `/${_context.locale}/redirects` %>" method="post" class="form">
3
- <%- f.field('redirect.url', { label: 'URL', hint: "Provide an existing URL from this website. Won't work with subdomains." }) %>
4
- <%- f.field('redirect.destination', { placeholder: "/another-page, https://google.com" }) %>
5
- <%- f.field('redirect.httpResponseCode', { type: 'number', label: 'HTTP response code' }) %>
3
+ <%- f.field('redirect.url', { required: true, label: 'URL', hint: "Provide an existing URL from this website. Won't work with subdomains." }) %>
4
+ <%- f.field('redirect.destination', { required: true, placeholder: "/another-page, https://google.com" }) %>
5
+ <%- f.field('redirect.httpResponseCode', { required: true, type: 'number', label: 'HTTP response code' }) %>
6
6
  <%- f.field('redirect.note', { hint: 'Why is this redirect needed?' }) %>
7
7
 
8
8
  <div class="form-actions">
@@ -23,4 +23,4 @@
23
23
  <% } %>
24
24
  </div>
25
25
  </form>
26
- <% }) %>
26
+ <% }) %>