@raketa-cloud/admin 0.0.44 → 0.0.46
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
package/src/HonoAdapter.js
CHANGED
|
@@ -115,9 +115,12 @@ export default class HonoAdapter extends Adapter {
|
|
|
115
115
|
...this.globalConfig.layout,
|
|
116
116
|
},
|
|
117
117
|
resourceConfig: resourceConfig,
|
|
118
|
+
adminJwt: ctx.authentication.token,
|
|
118
119
|
};
|
|
119
120
|
|
|
120
|
-
ctx.logger.info(
|
|
121
|
+
ctx.logger.info(
|
|
122
|
+
`${ctx.method} "${ctx.rawPath}" -> ${resource}/${action} | ${JSON.stringify(ctx.params)}`
|
|
123
|
+
);
|
|
121
124
|
|
|
122
125
|
const assigns = {
|
|
123
126
|
beforeFilterAssigns: {},
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
|
|
119
119
|
<td class="whitespace-nowrap">
|
|
120
120
|
<div class="actions-toolbar justify-end">
|
|
121
|
-
<a href="/remote-login?redirect_to
|
|
121
|
+
<a href="/remote-login?redirect_to=/<%= _context.locale %>/admin/<%= _context.resourceConfig.articleType %>-revisions/<%= revision.id %>/builder" target="_blank" class="btn-text has-icon <%= revision.meta && revision.meta.locked ? 'cursor-not-allowed text-gray-400 pointer-events-none' : '' %>">
|
|
122
122
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
123
123
|
<path stroke-linecap="round" stroke-linejoin="round" d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125" />
|
|
124
124
|
</svg>
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
|
|
119
119
|
<td class="whitespace-nowrap">
|
|
120
120
|
<div class="actions-toolbar justify-end">
|
|
121
|
-
<a href="/remote-login?redirect_to
|
|
121
|
+
<a href="/remote-login?redirect_to=/<%= _context.locale %>/admin/<%= _context.resourceConfig.eventType %>-revisions/<%= revision.id %>/builder" target="_blank" class="btn-text has-icon <%= revision.meta && revision.meta.locked ? 'cursor-not-allowed text-gray-400 pointer-events-none' : '' %>">
|
|
122
122
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
123
123
|
<path stroke-linecap="round" stroke-linejoin="round" d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125" />
|
|
124
124
|
</svg>
|
|
@@ -11,10 +11,19 @@
|
|
|
11
11
|
</head>
|
|
12
12
|
|
|
13
13
|
<script>
|
|
14
|
-
var RAKETA_IMAGES_API_KEY =
|
|
14
|
+
var RAKETA_IMAGES_API_KEY = "<%= process.env.IMAGES_API_KEY %>";
|
|
15
15
|
</script>
|
|
16
|
+
|
|
16
17
|
<script src="https://storage.googleapis.com/cdn-raketa-cloud/js/raketa-image-picker-webcomponent.umd.js"></script>
|
|
17
18
|
|
|
19
|
+
<script>
|
|
20
|
+
var FILE_PICKER_GATEWAY_DISPATCH_URL = "<%= process.env.GATEWAY_DISPATCH_URL %>";
|
|
21
|
+
var FILE_PICKER_GATEWAY_PROJECT = "<%= process.env.GATEWAY_PROJECT %>";
|
|
22
|
+
var FILE_PICKER_DXP_PRIVATE_SERVICE = "<%= process.env.DXP_PRIVATE_SERVICE %>";
|
|
23
|
+
var FILE_PICKER_JWT_TOKEN = "<%= _context.adminJwt %>";
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<script src="https://storage.googleapis.com/cdn-raketa-cloud/js/raketa-file-picker-webcomponent.umd.js"></script>
|
|
18
27
|
|
|
19
28
|
<body class="relative max-h-screen overflow-hidden">
|
|
20
29
|
<%- include('header.ejs') %>
|
package/src/views/pages/show.ejs
CHANGED
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
|
|
119
119
|
<td class="whitespace-nowrap">
|
|
120
120
|
<div class="actions-toolbar justify-end">
|
|
121
|
-
<a href="/remote-login?redirect_to
|
|
121
|
+
<a href="/remote-login?redirect_to=/<%= _context.locale %>/admin/<%= _context.resourceConfig.pageType %>-revisions/<%= revision.id %>/builder" target="_blank" class="btn-text has-icon <%= revision.meta && revision.meta.locked ? 'cursor-not-allowed text-gray-400 pointer-events-none' : '' %>">
|
|
122
122
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
123
123
|
<path stroke-linecap="round" stroke-linejoin="round" d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125" />
|
|
124
124
|
</svg>
|