Skip to content

Commit 4b358e8

Browse files
committed
Update #2 v1.5
μSciter : - Merged update from orginal source - SQLite built in - Live Reload every 2s - setting fix - closing inspector with usciter disabled for now Inspector : - Impormenet to style properties listing - Layout improvement to app, log, element path, debugger - Fix of log command line and scroll bar
1 parent 050b51a commit 4b358e8

18 files changed

Lines changed: 311 additions & 150 deletions

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
Sciter Developer tool Kit (SDTK)
44
Brings quality-of-life improvements and fixes to [Sciter](https://sciter.com/)'s μSciter and Inspector.
5-
For more details check the links below
5+
For more details check the links below :
66

77

8-
> Version : 1.0
8+
> Version : 1.5
99
> [Binary Release](https://github.com/MustafaHi/Sciter-Dev-Tool-Kit/releases)
10-
> [Change Log](https://github.com/MustafaHi/Sciter-Dev-Tool-Kit/wiki/Change-log)
10+
> [Change Log & Features](https://github.com/MustafaHi/Sciter-Dev-Tool-Kit/wiki/Change-log-&-Features)
1111
> [Dev Guide](https://github.com/MustafaHi/Sciter-Dev-Tool-Kit/wiki/Dev-Guide)
1212
> More information in the [wiki](https://github.com/MustafaHi/Sciter-Dev-Tool-Kit/wiki)
1313
1414
This is an open source project taking the original source from [Sciter](https://sciter.com/) and Improving upon it.
1515
You are welcome to [contribute](https://github.com/MustafaHi/Sciter-Dev-Tool-Kit/wiki/Dev-Guide) with any new features, fixes or ideas.
16-
If you face any issues [submit one](https://github.com/MustafaHi/Sciter-Dev-Tool-Kit/issues) with details.
16+
If you face any issues [report it](https://github.com/MustafaHi/Sciter-Dev-Tool-Kit/issues) with details.

inspector/res/dom-element-details.tis

Lines changed: 68 additions & 69 deletions
Large diffs are not rendered by default.

inspector/res/dom-tree.tis

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-

1+
include "sciter:reactor.tis";
2+
23
class DomTree : Element
34
{
45
function attached() {
@@ -135,6 +136,7 @@ class DomTree : Element
135136

136137
function appendRoot(caption, path, isFolder)
137138
{
139+
this.clear();
138140
var rn = appendOption(this, caption, path, isFolder? true: undefined);
139141
if(isFolder) {
140142
var bodyNode = expandOption(rn);

inspector/res/facade.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ body
3131
{
3232
padding:0; margin:0;
3333
flow: vertical;
34-
/*background: #fff;*/
3534
}
3635

3736
body > main { display:block; size:*; background:#fff; }
@@ -181,7 +180,9 @@ ul.dom-element-path
181180
padding:0 0 0 4dip; margin:0;
182181
font:system;
183182
flow:horizontal;
184-
overflow-x:scroll-indicator;
183+
/* overflow-x:scroll-indicator; */
184+
overflow-x: auto;
185+
horizontal-scrollbar: my-v-scrollbar;
185186
}
186187
ul.dom-element-path > text { color:#aaa; }
187188
ul.dom-element-path > li {
@@ -211,6 +212,7 @@ text.resource-url {
211212
text-align:center;
212213
overflow-x:hidden;
213214
text-overflow:ellipsis;
215+
/* vertical-scrollbar: my-v-scrollbar; */
214216
}
215217

216218

@@ -219,7 +221,8 @@ select.log {
219221
prototype: Log url(log.tis);
220222
display:block;
221223
padding:0;
222-
padding-bottom: 26dip;
224+
padding-bottom: 20dip;
225+
margin-bottom: 30dip;
223226
/* overflow-x:scroll-indicator; */
224227
overflow-x: auto;
225228
context-menu: selector(menu#for-log-list);
@@ -279,6 +282,7 @@ select.log > option.current-view { border-right-color: highlight; }
279282
line-height: 1.3em;
280283
white-space :pre;
281284
font-family:monospace;
285+
font-size: 1.2em;
282286
border:none;
283287
border-top: 1dip solid #eee;
284288
border-radius: 0;
@@ -437,10 +441,6 @@ widget.element-details > section:expanded > dl > dd
437441
margin:0;
438442
padding:2dip 3dip;
439443
font-weight:bold;
440-
//white-space:nowrap;
441-
//max-width:300dip;
442-
//overflow-x:hidden;
443-
//text-overflow:ellipsis;
444444
}
445445

446446
/* resources view content */
@@ -571,7 +571,7 @@ widget.element-details > section:expanded > dl > dd
571571
.debugger-area > div.sections { height:*; /* overflow:scroll-indicator; */ vertical-scrollbar: my-v-scrollbar; }
572572
.debugger-area section { height:auto; }
573573
/*.debugger-area widget { size:*; background:window; height:max-content; }*/
574-
.debugger-area > .debugger-toolbar { flow:horizontal; padding:4dip; border-spacing:4dip; background: #eee; }
574+
.debugger-area > .debugger-toolbar { flow:horizontal; padding:4dip; border-spacing:4dip; background: #fff; }
575575
.debugger-area > .debugger-toolbar > button { display:block; width:*; min-width:2em; max-width:auto; overflow-x:hidden; }
576576
.debugger-area > .debugger-toolbar:not(:disabled) { background:red; }
577577

@@ -584,7 +584,7 @@ widget.element-details > section:expanded > dl > dd
584584
.debugger-area section span.file { display:block; font-weight:bold; }
585585
.debugger-area section span.funcName { display:block; font-weight:bold; margin-right:8dip; }
586586

587-
.debugger-area section > header { background: #eee; color:black; padding:2dip 4dip; }
587+
.debugger-area section > header { background: #eee; color:black; padding:5dip; }
588588

589589
/*.debugger-area dl { flow: row(dt,dd); border-spacing:2dip; margin:0; padding:0;}
590590
.debugger-area dl > dt { text-align:right; font-weight:bold; width:max-content; white-space:nowrap; }
@@ -670,6 +670,6 @@ widget.element-details > section.metrics > dl.intrinsics > dd { overflow:none; w
670670
/* .slider:active { background: rgba(255,0,0,0.549); } */
671671
.slider:active { background: rgba(29,29,29,1); }
672672

673-
.base { width: 6dip; } /* explicit declaration of its width */
673+
.base { width: 6dip; height: 5dip; } /* explicit declaration of its width */
674674
.corner { background: transparent; }
675675
}

inspector/res/facade.htm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
}
4141
});
4242
self.on("connected", function(evt) { $(main).attributes["state"] = "views"; });
43-
self.on("disconnected", function(evt) { if( ! $(#views).hasTabs ) { $(main).attributes["state"] = "intro"; view.close(); } } );
43+
self.on("disconnected", function(evt) { if( ! $(#views).hasTabs ) { $(main).attributes["state"] = "intro"; } } );
4444

45-
view.caption = "SDTK's Inspector";
45+
//view.caption = "SDTK's Inspector";
4646
</script>
4747

4848
<menu.context #for-log-list>
4949
<li command="edit:copy" name="edit:copy" style="foreground-image:url(sres:edit-copy.png)">Copy log items<span class="accesskey">Ctrl+C</span></li>
5050
<li command="edit:clear" name="edit:clear">Clear log items</li>
51-
</menu>
51+
</menu>
5252

5353
<menu .context #for-input-eval>
5454
<li name="edit:undo" command="edit:undo" style="foreground-image:url(sciter:undo.png)"><label>Undo</label><span class="accesskey">&platform-cmd-mod;Z</span></li>
@@ -66,12 +66,12 @@
6666
<li.code command="paste-code"><code>this.style#display = "none";</code></li>
6767
<hr/>
6868
</menu>
69-
69+
7070
</head>
7171
<body>
7272
<main state="intro">
7373
<section #intro><include src="intro.htm"/></section>
74-
<frameset rows="3*,*">
74+
<frameset rows="4*,3*">
7575
<tabs.aside #views></tabs>
7676
<splitter/>
7777
<select|list .log.list.panel multiple>

inspector/res/resources-view.htm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<!-- <frameset(resources-view) cols="1*,3*" .resources-view > -->
2-
<frameset(resources-view) cols="200dip,*dip" .resources-view >
1+
<frameset(resources-view) cols="200dip,*dip" .resources-view >
32
<div .resource-list .panel>
43
<section .collapsible .resurces-markup restype=0 >
54
<header.treed>markup</header>
@@ -32,7 +31,6 @@
3231
<div .viewers>
3332
<div .source-view>
3433
<div .source-code-toolbar hidden>
35-
<!--<button|checkbox #do-syntax-highlighting>highlight syntax</button>-->
3634
<label>#</label><input|integer #do-goto-line novalue="{go to line}"/>
3735
<label>?</label><input|text #do-search-text novalue="{search}" />
3836
</div>

inspector/res/styles-view.htm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<widget(styles-view) .element-details .panel>
22
<section.metrics expanded>
3-
<!-- <header .treed>Metrics</header> -->
43
<div.box.margin>
54
<output(mt) value="-" />
65
<output(ml) value="-" />

inspector/res/value-view.tis

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,17 @@ class ValueView : Element
138138
case #NativeFunction:
139139
return ("native-function()", #function);
140140
default:
141-
//if( cls )
142-
// return (String.printf("%s %s{%s}", typ, cls, formatMap(props,exp)), #object-like);
143-
//else if( varval.tag == #proxy )
144-
if( props && props.length)
145-
return (String.printf("%s{%s}", typ, formatMap(props,false)), #object-like);
146-
else
147-
return (String.printf("%s", typ), false);
141+
if( cls ) {
142+
if( props && props.length)
143+
return (String.printf("%s(%s){%s}", typ, cls, formatMap(props,exp)), #object-like);
144+
else
145+
return (String.printf("%s(%s){}", typ, cls), #object-like);
146+
} else {
147+
if( props && props.length)
148+
return (String.printf("%s{%s}", typ, formatMap(props,false)), #object-like);
149+
else
150+
return (String.printf("%s", typ), false);
151+
}
148152
}
149153
}
150154
return (String.printf("[%s:%s]", varval.tag, formatArray(varval,exp)), #tuple);

inspector/res/view-driver.htm

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@
1414
<labels>
1515
<label for="styles-view">Styles</label>
1616
<label for="debugger-view">Script</label>
17-
<!-- <label for="test-view">Testing</label> -->
1817
</labels>
1918
<include src="styles-view.htm" />
2019
<include src="debugger-view.htm" />
21-
<!-- <div(test-view)>
22-
{under construction}
23-
</div> -->
2420
</tabs>
2521
</frameset>

usciter/res/default-else.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<html theme="dark" window-blurbehind="dark">
1+
<html theme="dark" window-blurbehind="dark" window-resizable>
22
<include src="default.htm">
33
</html>

0 commit comments

Comments
 (0)