Skip to content

Commit ce1a412

Browse files
authored
Merge pull request #586 from DocHubTeam/v3.13.3-fixed
V3.13.3 fixed
2 parents 3615215 + a9049aa commit ce1a412

File tree

18 files changed

+266
-230
lines changed

18 files changed

+266
-230
lines changed

distrib/idea/IDEAPlugin-4.1.5.zip

31.8 MB
Binary file not shown.

public/documentation/dochub.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ $package:
22
dochub-doc:
33
version: 3.0.0
44
imports:
5-
- root.yaml
5+
- root.yaml

public/documentation/docs/manual/backend/api.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,18 @@ info:
88
встраивания DocHub в свои производственные процессы.
99
Подробнее тут http://dochub.info/docs/dochub.deployment
1010
servers:
11-
- url: "http://localhost:3030/"
12-
description: Локальный сервер
11+
- url: https://{URL}
12+
description: API server secure
13+
variables:
14+
URL:
15+
default: localhost:3030
16+
description: Сервер http для запроса
17+
- url: http://{URL}
18+
description: API server insecure
19+
variables:
20+
URL:
21+
default: localhost:3030
22+
description: Сервер https для запроса
1323
tags:
1424
- name: DataLake
1525
description: "API для доступа в озеро данных архитектуры"

src/assets/libs/smartants.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/frontend/components/Docs/DocMixin.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,15 @@ export default {
159159
return this.profile?.template;
160160
},
161161
baseURI() {
162-
return uriTool.getBaseURIOfPath(this.path);
162+
let result = uriTool.getBaseURIOfPath(this.path);
163+
result?.startsWith('res://') && (result = requests.expandResourceURI(result));
164+
return result;
163165
},
164166
url() {
165167
const contentBasePath = uriTool.getBaseURIOfPath(`${this.path}/${this.isTemplate ? 'template' : 'source'}`) || this.baseURI;
166-
let result = this.profile ? uriTool.makeURIByBaseURI(this.profile.template || this.profile.source, contentBasePath).toString() : null;
168+
let uri = this.profile.template || this.profile.source;
169+
uri?.startsWith('res://') && (uri = requests.expandResourceURI(uri));
170+
let result = this.profile ? uriTool.makeURIByBaseURI(uri, contentBasePath).toString() : null;
167171
if (!result) return null;
168172
result += result.indexOf('?') > 0 ? '&' : '?';
169173
result += `id=${this.id}&path=${encodeURI(this.path)}`;

src/frontend/components/Docs/DocSmartAnts.vue

Lines changed: 36 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,26 @@
66
{{ isFullScreen ? 'mdi-close-box-outline' : 'fullscreen' }}
77
</v-icon>
88
</div>
9-
<smartants-bar
10-
v-bind:warnings="warnings"
11-
v-bind:selected-nodes="selectedNodes"
12-
v-bind:focus-nodes="focusNodes"
13-
v-bind:scenario="scenario"
14-
v-bind:scenarios="scenarios"
15-
v-bind:is-print-version="isPrintVersion"
16-
v-bind:is-show-links="isShowLinks"
17-
v-bind:is-unwisp="isUnwisp"
18-
v-bind:is-paying="isPaying"
19-
v-on:exportToExcalidraw="exportToExcalidraw"
20-
v-on:doFocus="doFocus"
21-
v-on:clearFocus="clearFocus"
22-
v-on:playScenario="playScenario"
23-
v-on:playNext="playNext"
24-
v-on:setScenario="setScenario"
25-
v-on:setUnwisp="setUnwisp"
26-
v-on:setShowLinks="setShowLinks" />
9+
<div class="fixed">
10+
<smartants-bar
11+
v-bind:warnings="warnings"
12+
v-bind:selected-nodes="selectedNodes"
13+
v-bind:focus-nodes="focusNodes"
14+
v-bind:scenario="scenario"
15+
v-bind:scenarios="scenarios"
16+
v-bind:is-print-version="isPrintVersion"
17+
v-bind:is-show-links="isShowLinks"
18+
v-bind:is-unwisp="isUnwisp"
19+
v-bind:is-paying="isPaying"
20+
v-on:exportToExcalidraw="exportToExcalidraw"
21+
v-on:doFocus="doFocus"
22+
v-on:clearFocus="clearFocus"
23+
v-on:playScenario="playScenario"
24+
v-on:playNext="playNext"
25+
v-on:setScenario="setScenario"
26+
v-on:setUnwisp="setUnwisp"
27+
v-on:setShowLinks="setShowLinks" />
28+
</div>
2729
<schema
2830
ref="schema"
2931
v-model="status"
@@ -242,10 +244,13 @@
242244
243245
const svgElement = this.$refs.schema.$el;
244246
addStyle(svgElement.childNodes);
247+
svgElement.style.width = svgElement.clientWidth;
245248
246249
const serializer = new XMLSerializer();
247250
let source = serializer.serializeToString(svgElement);
248251
252+
svgElement.style.width = '';
253+
249254
// eslint-disable-next-line no-useless-escape
250255
if(!source.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/)){
251256
source = source.replace(/^<svg/, '<svg xmlns="http://www.w3.org/2000/svg"');
@@ -371,17 +376,29 @@
371376
};
372377
</script>
373378
379+
<style>
380+
.fixed {
381+
width: inherit;
382+
position: fixed;
383+
background: transparent;
384+
}
385+
.markdown-document .fixed {
386+
position: static;
387+
}
388+
389+
</style>
390+
374391
<style scoped>
375392
.schema {
376393
/* border: solid 2px #ff0000; */
377394
aspect-ratio : 1 / 0.6;
378395
width: 100%;
379396
min-width: 100%;
397+
margin-top: 60px;
380398
}
381399
382400
.container {
383401
position: relative;
384-
position: relative;
385402
}
386403
387404
.container:hover > .fullscreen-icon,

src/frontend/components/Docs/DocSwagger.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
3939
import DocMixin from './DocMixin';
4040
import { getAsyncApiContext } from '@front/helpers/misc';
41+
import env from '@front/helpers/env';
4142
4243
export default {
4344
name: 'DocSwagger',
@@ -70,7 +71,7 @@
7071
SwaggerUI({
7172
dom_id: `#${this.dom_id}`,
7273
spec: this.data,
73-
deepLinking: true,
74+
deepLinking: !env.isPlugin(),
7475
docExpansion: this.isPrintVersion ? 'full' : 'list',
7576
presets: [
7677
SwaggerUI.presets.apis

src/frontend/components/Docs/SmartAntsBar.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
max-width: calc(100% - 32px);
129129
display: inline-flex;
130130
left: 10px;
131+
background: transparent !important;
131132
}
132133
133134

src/frontend/components/Entities/Entity.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
</template>
1616

1717
<script>
18-
1918
/*
2019
Copyright (C) 2021 owner Roman Piontik R.Piontik@mail.ru
2120

src/frontend/components/JSONata/DevTool.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
log(value, tag) {
257257
this.logItems.push({
258258
id: this.logItems.length,
259-
moment: (((new Date()).getTime() - this.jsonata.trace?.start || 0) * 0.001).toFixed(5),
259+
moment: (((new Date()).getTime() - this.jsonata.expOrigin?.trace?.start || 0) * 0.001).toFixed(5),
260260
value: value ? JSON.parse(JSON.stringify(value)) : value,
261261
tag
262262
});
@@ -272,7 +272,7 @@
272272
const result = JSON.stringify(data, null, 4);
273273
this.logItems.push({
274274
id: this.logItems.length,
275-
moment: ((this.jsonata.trace?.end - this.jsonata.trace?.start || 0) * 0.001).toFixed(5),
275+
moment: ((this.jsonata.expOrigin?.trace?.end - this.jsonata.expOrigin?.trace?.start || 0) * 0.001).toFixed(5),
276276
tag: 'END',
277277
value: result
278278
});

0 commit comments

Comments
 (0)