@mongoosejs/studio 0.5.12 → 0.5.13
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/frontend/public/app.js +2900 -2619
- package/frontend/src/chat/chat-message/chat-message.js +5 -1
- package/frontend/src/detail-default/detail-default.html +0 -10
- package/frontend/src/detail-default/detail-default.js +29 -1061
- package/frontend/src/document-details/document-property/document-property.html +0 -11
- package/frontend/src/document-details/document-property/document-property.js +6 -14
- package/frontend/src/edit-geojson/edit-geojson.html +17 -0
- package/frontend/src/edit-geojson/edit-geojson.js +1104 -0
- package/local.js +1 -1
- package/package.json +1 -1
- package/seed/connect.js +4 -0
- package/seed/index.js +16 -0
- package/vercel.d.ts +46 -0
- package/vercel.js +3 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const api = require('../../api');
|
|
4
4
|
const marked = require('marked').marked;
|
|
5
|
+
const xss = require('xss');
|
|
5
6
|
const template = require('./chat-message.html');
|
|
6
7
|
|
|
7
8
|
module.exports = app => app.component('chat-message', {
|
|
@@ -52,7 +53,10 @@ module.exports = app => app.component('chat-message', {
|
|
|
52
53
|
},
|
|
53
54
|
methods: {
|
|
54
55
|
marked(text) {
|
|
55
|
-
|
|
56
|
+
if (text == null || text === '') {
|
|
57
|
+
return '';
|
|
58
|
+
}
|
|
59
|
+
return xss(marked(text));
|
|
56
60
|
},
|
|
57
61
|
formatToolInput(input) {
|
|
58
62
|
if (!input) return '';
|
|
@@ -2,15 +2,5 @@
|
|
|
2
2
|
<pre v-if="!isGeoJsonGeometry || !mapVisible" class="w-full whitespace-pre-wrap break-words font-mono text-sm text-content-secondary m-0">{{displayValue}}</pre>
|
|
3
3
|
<div v-show="isGeoJsonGeometry && mapVisible" class="mt-2 border border-edge rounded relative">
|
|
4
4
|
<div ref="map" class="h-64 w-full" style="min-height: 256px; height: 256px;"></div>
|
|
5
|
-
<!-- Undo button below map -->
|
|
6
|
-
<div v-if="isEditable && canUndo" class="mt-2 flex justify-end">
|
|
7
|
-
<button
|
|
8
|
-
@click="undoDelete"
|
|
9
|
-
class="text-xs px-3 py-1.5 bg-gray-600 text-white rounded hover:bg-gray-700 transition-colors"
|
|
10
|
-
title="Undo all changes"
|
|
11
|
-
>
|
|
12
|
-
Undo
|
|
13
|
-
</button>
|
|
14
|
-
</div>
|
|
15
5
|
</div>
|
|
16
6
|
</div>
|