@raketa-cloud/admin 0.0.44 → 0.0.47

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.44",
3
+ "version": "0.0.47",
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",
@@ -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(`${ctx.method} "${ctx.rawPath}" -> ${resource}/${action} | ${JSON.stringify(ctx.params)}`);
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=/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' : '' %>">
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=/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' : '' %>">
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,21 @@
11
11
  </head>
12
12
 
13
13
  <script>
14
- var RAKETA_IMAGES_API_KEY = '841e3f57-4b61-4b7c-b350-8a2f2c108b7b.qMnfOVbPgaMUvQ596XZae12uNYMOMG';
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>
27
+
28
+ <script src="https://storage.googleapis.com/cdn-raketa-cloud/js/raketa-markdown-input-webcomponent.umd.js"></script>
18
29
 
19
30
  <body class="relative max-h-screen overflow-hidden">
20
31
  <%- include('header.ejs') %>
@@ -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=/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' : '' %>">
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>