Skip to content

Commit 7c7b7fb

Browse files
committed
Update URL parsing
1 parent 9d91e6e commit 7c7b7fb

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

easycoder/easycoder.zip

130 Bytes
Binary file not shown.

js/plugins/json.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,14 @@ const EasyCoder_Json = {
319319
if (content.domain.endsWith(`/`)) {
320320
content.domain = content.domain.substr(0, content.domain.length - 1);
321321
}
322+
n = content.domain.indexOf(`/`);
323+
if (n > 0) {
324+
content.path = content.domain.substr(n + 1);
325+
content.domain = content.domain.substr(0, n);
326+
}
327+
else {
328+
content.path = ``;
329+
}
322330
targetRecord.value[targetRecord.index] = {
323331
type: `constant`,
324332
numeric: false,

resources/ecs/docman.ecs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Viewer:
286286

287287
create Label in RowDiv
288288
set the style of Label to
289-
`flex:39;padding-top:0.2em;font-size:2em;font-weight:bold;font-family:mono;color:#800`
289+
`flex:39;padding-top:0.2em;font-size:2em;font-weight:bold;font-family:Courier New;color:#800`
290290
set the content of Label to Keyword
291291

292292
create PaddingDiv in RowDiv
@@ -323,13 +323,13 @@ Viewer:
323323
set the style of TitleDiv to `margin-top:1em;font-weight:bold`
324324
set the content of TitleDiv to `Syntax:`
325325
create SyntaxDiv in ContentDiv
326-
set the style of SyntaxDiv to `color:#800;font-family:mono`
326+
set the style of SyntaxDiv to `color:#800;font-family:Courier New`
327327
set the content of SyntaxDiv to Syntax
328328
create TitleDiv in ContentDiv
329329
set the style of TitleDiv to `margin-top:1em;font-weight:bold`
330330
set the content of TitleDiv to `Examples:`
331331
create ExamplesDiv in ContentDiv
332-
set the style of ExamplesDiv to `color:#800;font-family:mono`
332+
set the style of ExamplesDiv to `color:#800;font-family:Courier New`
333333
set the content of ExamplesDiv to Examples
334334
create TitleDiv in ContentDiv
335335
set the style of TitleDiv to `margin-top:1em;font-weight:bold`
@@ -411,7 +411,7 @@ Decorate:
411411
stop
412412

413413
ProcessMono:
414-
put `<span style="color:#800;font-family:mono">` cat Data cat `</span>` into Payload
414+
put `<span style="color:#800;font-family:Courier New">` cat Data cat `</span>` into Payload
415415
return
416416

417417
ProcessQuote:

0 commit comments

Comments
 (0)