-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEKR.com.leo
445 lines (415 loc) · 18 KB
/
EKR.com.leo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by Leo: http://leoeditor.com/leo_toc.html -->
<leo_file xmlns:leo="http://leoeditor.com/namespaces/leo-python-editor/1.1" >
<leo_header file_format="2"/>
<globals/>
<preferences/>
<find_panel_settings/>
<vnodes>
<v t="ekr.20201122072754.1"><vh>read me</vh></v>
<v t="ekr.20201122075704.1"><vh>@clean README.md</vh>
<v t="ekr.20201122075734.1"><vh>leo-editor-leovue</vh></v>
</v>
<v t="ekr.20201122074608.1"><vh>@clean chunking.md </vh>
<v t="ekr.20201122075134.1"><vh>Code Chunking</vh></v>
</v>
<v t="ekr.20201122075109.1"><vh>@clean feature-introduction.md</vh>
<v t="ekr.20201122075117.1"><vh>Leo Is an Outlining Editor</vh></v>
<v t="ekr.20201122075117.2"><vh>Leo Outlines can contain Cloned Nodes</vh></v>
<v t="ekr.20201122075117.3"><vh>Leo Outlines can mirror other files</vh></v>
</v>
<v t="ekr.20201122062937.1"><vh>@clean index.html</vh>
<v t="ekr.20201122062937.2"><vh><<head>></vh>
<v t="ekr.20201122062937.3"><vh><< set window.lconfig >></vh></v>
</v>
<v t="ekr.20201122062937.4"><vh><< body >></vh>
<v t="ekr.20201122062937.5"><vh><< static footer >></vh></v>
<v t="ekr.20201122062937.6"><vh><< templates >></vh>
<v t="ekr.20201122062937.7"><vh><< rgarticle >></vh></v>
<v t="ekr.20201122062937.8"><vh><< rgarticle-brief >></vh></v>
<v t="ekr.20201122062937.9"><vh><< repec >></vh></v>
<v t="ekr.20201122062937.10"><vh><< rgauthor >></vh></v>
<v t="ekr.20201122062937.11"><vh><< rgarticles >></vh></v>
<v t="ekr.20201122062937.12"><vh><< repec-articles >></vh></v>
<v t="ekr.20201122062937.13"><vh><< rgcitiations >></vh></v>
</v>
<v t="ekr.20201122062937.14"><vh><< global site tag >></vh></v>
<v t="ekr.20201122062937.15"><vh><< style >></vh></v>
</v>
</v>
<v t="ekr.20201122062937.3"></v>
</vnodes>
<tnodes>
<t tx="ekr.20201122062937.1">@language html
@tabwidth -2
<html>
<head>
<< head >>
</head>
<body>
<< body >>
</body>
</html>
</t>
<t tx="ekr.20201122062937.10"> <div
class="rg">
<h2>Author</h2>
<div>{{- data.name}} {{- data.title}}</div>
<div>
<a target="_blank" href="{{- data.institution.href}}">{{- data.institution.text}}</a>
</div>
<div>
<a target="_blank" href="{{- data.department.href}}">{{- data.department.text}}</a>
</div>
<h3>ResearchGate Stats</h3>
<div>Citations: {{- data.citations}}</div>
<div>Reads: {{- data.reads}}</div>
<div>Research Items: {{- data.researchItems}}</div>
<div><a target="_blank" href="{{- data.url}}">Profile</a></div>
</div></script>
<script type=text/template id=rgarticles>
</t>
<t tx="ekr.20201122062937.11"> <div
class="table-component">
<table-component
@rowClick="this.$parent.dataTableClick"
:data="[
{{ data.articles.forEach(article => { }}
{{ if (article.type.text === 'Article') { }}
{
title: '<div>{{- article.title.text}}</div>',
date: '<div>{{- moment(article.date).format('YYYY-MM') }}</div>',
reads: '{{- article.reads.replace(/[a-zA-Z]/g, '')}}',
readNum: {{- article.reads.replace(/[,a-zA-Z]/g, '')}}
},
{{ } }}
{{ }) }}
]"
sort-order="asc"
sort-by="readNum">
<table-column show="title" label="Title" header-class="title-cell" cell-class="title-cell"></table-column>
<table-column show="date" label="Date" header-class="data-cell" cell-class="data-cell"></table-column>
<table-column show="reads" label="Reads" sort-by="readNum" cell-class="right"></table-column>
<table-column show="readNum" label="R" data-type="numeric" :hidden="true"></table-column>
</table-component>
</div></script>
<script type=text/template id=repec-articles>
</t>
<t tx="ekr.20201122062937.12"> <div
class="table-component">
<table-component
@rowClick="this.$parent.dataTableClick"
:data="[
{{ data.articles.forEach(article => { }}
{
title: '<div>{{- article.bibliographic.name}}</div>',
year: '<div>{{- article.bibliographic.creation_date || article.bibliographic.year }}</div>'
},
{{ }) }}
]"
sort-order="asc">
<table-column show="title" label="Title" header-class="title-cell" cell-class="title-cell"></table-column>
<table-column show="year" label="Year" header-class="data-cell" cell-class="data-cell"></table-column>
</table-component>
</div></script>
<script type=text/template id=rgcitations>CITATIONS</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-118289537-1"></script>
<script>window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-118289537-1');</script>
<script src=https://cdn.jsdelivr.net/gh/cferdinandi/smooth-scroll/dist/smooth-scroll.polyfills.min.js></script>
<script>var scroll = new SmoothScroll('a[href*="#"]');</script>
<style type=text/css>#app {
font-family: Avenir, Nunito, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale
}
H1, H2 {
margin-bottom: 1.5rem;
}</style>
<script type=text/javascript src=https://cdn.jsdelivr.net/npm/leo-vue/dist/static/js/manifest.js>
</script>
</t>
<t tx="ekr.20201122062937.13"><script type=text/javascript
src=https://cdn.jsdelivr.net/npm/leo-vue/dist/static/js/vendor.js></script>
<script type=text/javascript src=https://cdn.jsdelivr.net/npm/leo-vue/dist/static/js/app.js></script>
</t>
<t tx="ekr.20201122062937.14"></t>
<t tx="ekr.20201122062937.15"><style type="text/css">
.topItem span {
line-height: 1.5;
white-space: normal;
width: 250px;
display: inline-block;
line-height: 1.2;
}
</style>
</t>
<t tx="ekr.20201122062937.2"><script defer=defer
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<link href="https://fonts.googleapis.com/css?family=Nunito" rel=stylesheet>
<script src=https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.0/moment.min.js></script>
<script defer=defer src=https://cdn.rawgit.com/OnsenUI/OnsenUI-dist/2.0.0-beta.5/js/onsenui.min.js></script>
<script src=https://unpkg.com/[email protected]/dist/mermaid.min.js></script>
<link rel=stylesheet href=https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css>
<script>window.lconfig = {
<< set window.lconfig >>
}
</script>
<meta charset=utf-8>
<title>LeoVue (EKR.com)</title>
<meta name=keywords content="knowledge organization, outlines, outliner, outlining IDE">
<meta name=description
content="Knowledge Organization with Leo and LeoVue: organize content and files into complex outlines.">
<link href=https://cdn.jsdelivr.net/npm/leo-vue/dist/static/css/app.css?146b226f238fbded81574d7b5914df3f rel=stylesheet>
</t>
<t tx="ekr.20201122062937.3">@language javascript
"showAppTitle": false,
"showHeader": true,
"docTitle": "My Outline",
"filename": "LeoVue", // was docs.
"firstNodeAsTitle": true,
"baseMode": "t", // t = outline, for other types, see below
"activeBackgroundColor": "#01FF70", //
"itemArrow": "\uf105", // ▹▷▶›>►
"leftPaneWidth": '300px',
"leftPaneBackground": '#fafafa',
"leftPanePadding": '10px',
"contentPaneWidth": '780px',
"coverPage": true,
"viewTypes": [
{"name": "Outline", "type": "t"},
{"name": "Inline", "type": "a"},
{"name": "Graphic Tree", "type": "d"},
// {"name": "Dendrogram", "type": "z"},
{"name": "Nested Menu", "type": "n"}
],
githubRibbon: {
text: 'Fork me on GitHub',
linkUrl: 'https://github.com/kaleguy/leovue',
fixed: true
},
// dataSources have a template name as key
// the template object has one key: host
// the host will have the node title appended to fetch JSON which gets processed via the template
"dataSources":
{
"rgarticle": {
"host": "http://localhost:8888/rg/article?title=",
},
"rgarticle-brief": {
"host": "http://localhost:8888/rg/article?title=",
},
"rgarticles": {
"host": "http://localhost:8888/rg/articles?name=",
},
"rgauthor": {
"host": "http://localhost:8888/rg/author?name=",
},
"rgcitations": {
"host": "http://localhost:8888/rg/citations?name=",
}
}
// "leftPaneWidth": 'calc(50vw - 300px)',
// "rightPaneWidth": 'calc(50vw + 300px)',
// "leftPanePadding": 'calc(50vw - 600px)',</t>
<t tx="ekr.20201122062937.4"><div id=app></div>
<script type=text/ons-template id=popover.html>
<< static footer >>
<< templates >>
<< global site tag >>
<< style >>
</t>
<t tx="ekr.20201122062937.5"> <ons-popover
direction="up down" cancelable>
<div style="text-align: center; opacity: 0.7;" id="popover.content.html">
<p>This is a popover!</p>
<p>
<small>Click the background to remove the popover.</small>
</p>
</div>
</t>
<t tx="ekr.20201122062937.6"> </ons-popover></script>
<< rgarticle >>
<< rgarticle-brief >>
<< repec >>
<< rgauthor >>
<< rgarticles >>
<< repec-articles >>
<< rgcitiations >>
</t>
<t tx="ekr.20201122062937.7"><div id=popup class=popover style=display:none>
<div class=arrow></div>
<h3 class=popover-header>Popover Title</h3>
<div class=popover-body>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia
quam venenatis vestibulum.
</div>
</div>
<script type=text/template id=rgarticle>
<div
class="rg">
<div class="publication-header">
<h1>{{- data.title }}</h1>
<div class="publication-meta-text">
<strong>
<span>
<a target="_blank" href="{{- data.url }}">Article</a>
in
<a target="_blank" href="//www.researchgate.net/{{- data.journal.href}}">{{- data.journal.text }}</a>
</span>
</strong>
<span> with {{- data.reads }}</span>
</div>
<div>
<ul>
{{ data.authors.forEach(author => { }}
<li class="publication-author-list__item">
<div>
<a target="_blank" href="{{- author.name.href }}">{{- author.name.text }}</a>
</div>
{{ if (author.rating){ }}
<span class="bars-1"/>
{{ } }}
<span>{{- author.rating }} {{- author.institution }}</span>
</li>
{{ }) }}
</ul>
</div>
<div class="publication-abstract">
<div>
<strong>Abstract</strong>
</div>
<div>{{- data.abstract }}</div>
<div class="references">{{- data.references }} References</div>
</div>
{{ if (data.correction) { }}
<div class="publication-abstract">
<div class="hshim"></div>
<div>
<strong>Correction</strong>
</div>
<div>{{- data.correction.text }} <a href="{{- data.correction.href }}">Details</a>
</div>
</div>
{{ } }}
<div class="footer">
<a target="_blank" href="{{- data.url }}">See this article on ResearchGate.</a>
</div>
</div>
</div></script>
<script type=text/template id=rgarticle-brief>
</t>
<t tx="ekr.20201122062937.8"> <div
class="rg">
<div class="publication-header">
<h1>{{- data.title.text }}</h1>
<div class="publication-meta-text">
<span> {{- data['type'].text}}: {{- data.date }} with {{- data.reads }}</span>
</div>
<div>
<ul>
{{ data.authors.forEach(author => { }}
<li class="publication-author-list__item_brief">
<div>
<a target="_blank" href="http://researchget.net/{{- author.author.href }}">{{- author.author.text }}</a>
</div>
</li>
{{ }) }}
</ul>
</div>
<div class="publication-abstract">
<div>
<strong>Abstract</strong>
</div>
<div>{{- data.abstract }}</div>
</div>
<div class="footer">
<a target="_blank" href="https://www.researchgate.net/{{- data.title.href}}">See this article on ResearchGate.</a>
</div>
</div>
</div></script>
<script type=text/template id=repec>
</t>
<t tx="ekr.20201122062937.9"> <div
class="rg">
<div class="publication-header">
<h1>{{- data.bibliographic.name }}</h1>
<div>
{{- data.author }}
</div>
<div class="series">
{{- data.series && data.series.name }} ({{- data.bibliographic.creation_date || data.bibliographic.year }})
</div>
<div class="publication-abstract">
<div>
<strong>Abstract</strong>
</div>
<div>{{- data.abstract }}</div>
</div>
<div class="footer">
<a target="_blank" href="{{- data.link}}">See this article on IDEAS.</a>
</div>
</div>
</div></script>
<script type=text/template id=rgauthor>
</t>
<t tx="ekr.20201122072754.1">@language rest
@wrap
This file manages all the files in the leo-editor-leovue repo.
https://github.com/leo-editor/leo-editor-leovue
Originals of all files came from Joe Orr's leovue repo:
https://github.com/kaleguy/leovue
Joe Orr's original site:
https://kaleguy.github.io/leovue
</t>
<t tx="ekr.20201122074608.1">@language md
@wrap
@tabwidth -4
@others
</t>
<t tx="ekr.20201122075109.1">@language md
@tabwidth -4
@others
</t>
<t tx="ekr.20201122075117.1"># Leo Is an Outlining Editor
In the screenshot below, you can see an outline or tree in the top left pane, and content for current node being entered into the bottom pane.
<!--- Download these from https://kaleguy.github.io/leovue --->
<img width="700" src="http://ekr.rrhandwovens.com/static/leo1.png" alt="leo1.png">
</t>
<t tx="ekr.20201122075117.2"># Leo Outlines can contain Cloned Nodes
A single node can appear in multiple places in your tree, this is called a "clone" node. This allows Leo Outlines to be in effect, three dimensional and arbitrarily complex.
In the screenshot below, the "Coffeescript" node has been cloned and is appearing in two places in the tree. When you edit the content of the node and then click on its clone, you'll see that the edited content shows on both.
<img width="700" src="http://ekr.rrhandwovens.com/static/leo2.png" alt="ScreenShot">
</t>
<t tx="ekr.20201122075117.3"># Leo Outlines can mirror other files
The screenshot below shows a node with a '@clean' directive. This tells Leo that the content of the node should mirror the file specified by the directive.
This means that, when the target file is updated by another program, the content in the node will automatically update in Leo, regardless of whether that content has been divided into subnodes by Leo. To see how this works, read the next section: <b>Chunking</b>.
<img width="700" src="http://ekr.rrhandwovens.com/static/leo3.png" alt="ScreenShot">
</t>
<t tx="ekr.20201122075134.1"># Code Chunking
In the screenshot below, we've created a new node with a @clean directive with a file name. We've pasted the contents of the file into the node.
<img width="700" src="http://ekr.rrhandwovens.com/static/leo4.png" alt="leo4.png">
This is a Vuejs component file, with three sections. We're going to break the sections out into separate nodes. First create a section name using double angle brackets.
<img width="700" src="http://ekr.rrhandwovens.com/static/leo5.png" alt="leo5.png">
Now select the section name plus the code you want to put in a sub node.
<img width="700" src="http://ekr.rrhandwovens.com/static/leo6.png" alt="leo6.png">
Enter Cmd-Shift-D to chunk the selected content into a subnode.
<img width="700" src="http://ekr.rrhandwovens.com/static/leo7.png" alt="leo7.png">
Repeat this process with the other sections of the Vuejs component, now each has its own node.
<img width="700" src="http://ekr.rrhandwovens.com/static/leo8.png" alt="leo8.png">
This is a simple example, but using Leo it is possible to quickly break up a large, complex set of code into manageable pieces. The target file is not affected, and if the target file is changed in another program, Leo will update the appropriate nodes.
</t>
<t tx="ekr.20201122075704.1">@language md
@tabwidth -4
@others</t>
<t tx="ekr.20201122075734.1"># leo-editor-leovue
The repository for EKR.com, at http://ekr.rrhandwovens.com
The contents of the static folder came from [Joe Orr's Leovue site](https://kaleguy.github.io/leovue).
index.html came from Joe Orr's site, unmodified.
docs.leo came from Joe Orr's site, with slight modification for Leo's install instructions.
</t>
</tnodes>
</leo_file>