copious-mail 0.0.0-stage → 0.9.0
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/LICENSE +504 -0
- package/README.md +83 -2
- package/bin/index.js +345 -0
- package/client/copiousLogo.svg +123 -0
- package/client/hosted.html +5173 -0
- package/client/mail_styles.css +40 -0
- package/client/mikado.bundle.debug.js +1406 -0
- package/client/mikado.bundle.min.js +68 -0
- package/client/mikado.bundle.module.debug.js +1401 -0
- package/client/mikado.bundle.module.min.js +67 -0
- package/client/mikado.bundle.profiler.debug.js +1490 -0
- package/client/mikado.es5.debug.js +1995 -0
- package/client/mikado.es5.min.js +85 -0
- package/client/mikado.light.debug.js +535 -0
- package/client/mikado.light.min.js +29 -0
- package/client/mikado.light.module.debug.js +530 -0
- package/data/user_list.db +14 -0
- package/index.html +7242 -0
- package/index.js +5 -0
- package/jsconfig.json +32 -0
- package/lib/mail_repo_bridge_ops.js +1158 -0
- package/lib/utils.js +70 -0
- package/lib/websocket_con.js +248 -0
- package/mail_bridge.conf +10 -0
- package/package.json +41 -5
- package/svelte-src/App.svelte +2513 -0
- package/svelte-src/ContactGrid.svelte +98 -0
- package/svelte-src/FloatWindow.svelte +181 -0
- package/svelte-src/MessageDisplay.svelte +230 -0
- package/svelte-src/MessageEditor.svelte +664 -0
- package/svelte-src/MessageListEditor.svelte +133 -0
- package/svelte-src/Thing.svelte +190 -0
- package/svelte-src/ThingFull.svelte +117 -0
- package/svelte-src/ipfs_profile_proxy.js +923 -0
- package/svelte-src/main.js +10 -0
- package/svelte-src/search_box.js +69 -0
- package/svelte-src/utilities.js +180 -0
- package/test/c +28 -0
- package/test/copiousLogo.svg +123 -0
- package/test/index.html +4408 -0
- package/test/index.js +244 -0
- package/test/mail_styles.css +40 -0
- package/test/mikado.bundle.debug.js +1406 -0
- package/test/mikado.bundle.min.js +68 -0
- package/test/mikado.bundle.module.debug.js +1401 -0
- package/test/mikado.bundle.module.min.js +67 -0
- package/test/mikado.bundle.profiler.debug.js +1490 -0
- package/test/mikado.es5.debug.js +1995 -0
- package/test/mikado.es5.min.js +85 -0
- package/test/mikado.light.debug.js +535 -0
- package/test/mikado.light.min.js +29 -0
- package/test/mikado.light.module.debug.js +530 -0
- package/test/tpl/partial/attachment_edit.es5.js +1 -0
- package/test/tpl/partial/attachment_edit.html +5 -0
- package/test/tpl/partial/attachment_edit.js +1 -0
- package/test/tpl/partial/attachment_view.es5.js +1 -0
- package/test/tpl/partial/attachment_view.html +1 -0
- package/test/tpl/partial/attachment_view.js +1 -0
- package/test/tpl/partial/contact_list.es5.js +1 -0
- package/test/tpl/partial/contact_list.html +9 -0
- package/test/tpl/partial/contact_list.js +1 -0
- package/test/tpl/partial/draft_list.es5.js +1 -0
- package/test/tpl/partial/draft_list.html +8 -0
- package/test/tpl/partial/draft_list.js +1 -0
- package/test/tpl/partial/inbox_list.es5.js +1 -0
- package/test/tpl/partial/inbox_list.html +7 -0
- package/test/tpl/partial/inbox_list.js +1 -0
- package/test/tpl/partial/notify_list.es5.js +1 -0
- package/test/tpl/partial/notify_list.html +8 -0
- package/test/tpl/partial/notify_list.js +1 -0
- package/test/tpl/partial/sent_list.es5.js +1 -0
- package/test/tpl/partial/sent_list.html +7 -0
- package/test/tpl/partial/sent_list.js +1 -0
- package/test/tpl/partial/spam_list.es5.js +1 -0
- package/test/tpl/partial/spam_list.html +8 -0
- package/test/tpl/partial/spam_list.js +1 -0
- package/test/tpl/partial/trash_list.es5.js +1 -0
- package/test/tpl/partial/trash_list.html +7 -0
- package/test/tpl/partial/trash_list.js +1 -0
- package/test/tpl/partial/user.es5.js +1 -0
- package/test/tpl/partial/user.html +18 -0
- package/test/tpl/partial/user.js +1 -0
- package/tools/jsdoc.conf +47 -0
- package/tools/templates/docdash/publish.js +843 -0
- package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.eot +0 -0
- package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.eot +0 -0
- package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
- package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
- package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
- package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
- package/tools/templates/docdash/static/scripts/collapse.js +67 -0
- package/tools/templates/docdash/static/scripts/commonNav.js +28 -0
- package/tools/templates/docdash/static/scripts/linenumber.js +25 -0
- package/tools/templates/docdash/static/scripts/nav.js +12 -0
- package/tools/templates/docdash/static/scripts/polyfill.js +4 -0
- package/tools/templates/docdash/static/scripts/prettify/Apache-License-2.0.txt +202 -0
- package/tools/templates/docdash/static/scripts/prettify/lang-css.js +2 -0
- package/tools/templates/docdash/static/scripts/prettify/prettify.js +28 -0
- package/tools/templates/docdash/static/scripts/search.js +99 -0
- package/tools/templates/docdash/static/styles/jsdoc.css +803 -0
- package/tools/templates/docdash/static/styles/prettify.css +80 -0
- package/tools/templates/docdash/tmpl/augments.tmpl +10 -0
- package/tools/templates/docdash/tmpl/container.tmpl +203 -0
- package/tools/templates/docdash/tmpl/details.tmpl +152 -0
- package/tools/templates/docdash/tmpl/example.tmpl +2 -0
- package/tools/templates/docdash/tmpl/examples.tmpl +13 -0
- package/tools/templates/docdash/tmpl/exceptions.tmpl +32 -0
- package/tools/templates/docdash/tmpl/layout.tmpl +102 -0
- package/tools/templates/docdash/tmpl/mainpage.tmpl +15 -0
- package/tools/templates/docdash/tmpl/members.tmpl +38 -0
- package/tools/templates/docdash/tmpl/method.tmpl +132 -0
- package/tools/templates/docdash/tmpl/modifies.tmpl +14 -0
- package/tools/templates/docdash/tmpl/namespace.tmpl +133 -0
- package/tools/templates/docdash/tmpl/params.tmpl +132 -0
- package/tools/templates/docdash/tmpl/properties.tmpl +107 -0
- package/tools/templates/docdash/tmpl/returns.tmpl +19 -0
- package/tools/templates/docdash/tmpl/source.tmpl +8 -0
- package/tools/templates/docdash/tmpl/tutorial.tmpl +19 -0
- package/tools/templates/docdash/tmpl/type.tmpl +26 -0
- package/tools/templates/templates/docdash/publish.js +843 -0
- package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.eot +0 -0
- package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.eot +0 -0
- package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
- package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
- package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
- package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
- package/tools/templates/templates/docdash/static/scripts/collapse.js +67 -0
- package/tools/templates/templates/docdash/static/scripts/commonNav.js +28 -0
- package/tools/templates/templates/docdash/static/scripts/linenumber.js +25 -0
- package/tools/templates/templates/docdash/static/scripts/nav.js +12 -0
- package/tools/templates/templates/docdash/static/scripts/polyfill.js +4 -0
- package/tools/templates/templates/docdash/static/scripts/prettify/Apache-License-2.0.txt +202 -0
- package/tools/templates/templates/docdash/static/scripts/prettify/lang-css.js +2 -0
- package/tools/templates/templates/docdash/static/scripts/prettify/prettify.js +28 -0
- package/tools/templates/templates/docdash/static/scripts/search.js +99 -0
- package/tools/templates/templates/docdash/static/styles/jsdoc.css +803 -0
- package/tools/templates/templates/docdash/static/styles/prettify.css +80 -0
- package/tools/templates/templates/docdash/tmpl/augments.tmpl +10 -0
- package/tools/templates/templates/docdash/tmpl/container.tmpl +203 -0
- package/tools/templates/templates/docdash/tmpl/details.tmpl +152 -0
- package/tools/templates/templates/docdash/tmpl/example.tmpl +2 -0
- package/tools/templates/templates/docdash/tmpl/examples.tmpl +13 -0
- package/tools/templates/templates/docdash/tmpl/exceptions.tmpl +32 -0
- package/tools/templates/templates/docdash/tmpl/layout.tmpl +102 -0
- package/tools/templates/templates/docdash/tmpl/mainpage.tmpl +15 -0
- package/tools/templates/templates/docdash/tmpl/members.tmpl +38 -0
- package/tools/templates/templates/docdash/tmpl/method.tmpl +132 -0
- package/tools/templates/templates/docdash/tmpl/modifies.tmpl +14 -0
- package/tools/templates/templates/docdash/tmpl/namespace.tmpl +133 -0
- package/tools/templates/templates/docdash/tmpl/params.tmpl +132 -0
- package/tools/templates/templates/docdash/tmpl/properties.tmpl +107 -0
- package/tools/templates/templates/docdash/tmpl/returns.tmpl +19 -0
- package/tools/templates/templates/docdash/tmpl/source.tmpl +8 -0
- package/tools/templates/templates/docdash/tmpl/tutorial.tmpl +19 -0
- package/tools/templates/templates/docdash/tmpl/type.tmpl +26 -0
- package/tpl/partial/user.es5.js +1 -0
- package/tpl/partial/user.html +10 -0
- package/tpl/partial/user.js +1 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
|
|
3
|
+
export let active_identity;
|
|
4
|
+
export let message_edit_type;
|
|
5
|
+
|
|
6
|
+
import { createEventDispatcher } from 'svelte';
|
|
7
|
+
const dispatch = createEventDispatcher();
|
|
8
|
+
|
|
9
|
+
let c_index = 0
|
|
10
|
+
let categories = [
|
|
11
|
+
{
|
|
12
|
+
"name" : "don't move"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name" : "read"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name" : "events"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name" : "friends"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name" : "work"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name" : "accounts"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name" : "bills"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name" : "official"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
let selected_cat = "don't move"
|
|
39
|
+
$: selected_cat = categories[c_index].name
|
|
40
|
+
|
|
41
|
+
async function do_delete() {
|
|
42
|
+
dispatch('message', {
|
|
43
|
+
'cmd': 'move-messages',
|
|
44
|
+
'category' : 'deleted'
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async function do_move() {
|
|
49
|
+
if ( c_index <= 0 ) return;
|
|
50
|
+
let cat = categories[c_index].name
|
|
51
|
+
dispatch('message', {
|
|
52
|
+
'cmd': 'move-messages',
|
|
53
|
+
'category' : cat
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function view_deleted() {
|
|
58
|
+
dispatch('message', {
|
|
59
|
+
'cmd': 'view-processed-messages',
|
|
60
|
+
'category' : 'deleted'
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
async function view_moved() {
|
|
65
|
+
if ( c_index <= 0 ) return;
|
|
66
|
+
// else
|
|
67
|
+
let cat = categories[c_index].name
|
|
68
|
+
dispatch('message', {
|
|
69
|
+
'cmd': 'view-processed-messages',
|
|
70
|
+
'category' : cat
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
</script>
|
|
75
|
+
|
|
76
|
+
<div class="blg-el-wrapper-full">
|
|
77
|
+
<div style="padding:6px;" >
|
|
78
|
+
<button style="background-color:darkgreen" on:click={do_delete}>delete</button>
|
|
79
|
+
<button style="background-color: yellowgreen" on:click={do_move}>move to</button>
|
|
80
|
+
<select bind:value={c_index} style="text-align:center;" >
|
|
81
|
+
{#each categories as cat, c_index }
|
|
82
|
+
<option value={c_index}>{cat.name}</option>
|
|
83
|
+
{/each}
|
|
84
|
+
</select>
|
|
85
|
+
</div>
|
|
86
|
+
<div style="padding:6px;" >
|
|
87
|
+
<button style="background-color:darkgreen" on:click={view_deleted}>view</button>
|
|
88
|
+
<button style="background-color: yellowgreen" on:click={view_moved}>view</button>
|
|
89
|
+
<div style="display:inline-block">
|
|
90
|
+
{selected_cat}
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
<style>
|
|
96
|
+
|
|
97
|
+
.blg-el-wrapper-full {
|
|
98
|
+
overflow-y: hidden;
|
|
99
|
+
height:inherit;
|
|
100
|
+
}
|
|
101
|
+
button {
|
|
102
|
+
display: inline-block;
|
|
103
|
+
padding: 0.2em 0.5em;
|
|
104
|
+
margin: 0 0.2em 0.2em 0;
|
|
105
|
+
text-align: center;
|
|
106
|
+
border-radius: 0.2em;
|
|
107
|
+
color: white;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.blg-item-title {
|
|
111
|
+
color:black;
|
|
112
|
+
display: unset;
|
|
113
|
+
border-bottom: 1px darkslateblue solid;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.blg-item-subject {
|
|
117
|
+
color:black;
|
|
118
|
+
display: unset;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
h6 {
|
|
122
|
+
background-color: rgb(245, 245, 245);
|
|
123
|
+
border: 1px black solid;
|
|
124
|
+
border-radius: 0.2em;
|
|
125
|
+
padding: 0.2em 0.5em;
|
|
126
|
+
margin: 0 0.2em 0.2em 0;
|
|
127
|
+
color:black;
|
|
128
|
+
text-overflow: ellipsis;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
white-space: nowrap;
|
|
131
|
+
width: 200px;
|
|
132
|
+
}
|
|
133
|
+
</style>
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
// `current` is updated whenever the prop value changes...
|
|
3
|
+
export let color;
|
|
4
|
+
export let entry;
|
|
5
|
+
export let title;
|
|
6
|
+
export let dates;
|
|
7
|
+
export let subject;
|
|
8
|
+
export let keys;
|
|
9
|
+
export let t_type;
|
|
10
|
+
export let txt_full;
|
|
11
|
+
export let score;
|
|
12
|
+
export let components
|
|
13
|
+
export let id;
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
if ( t_type !== 'markdown' ) {
|
|
17
|
+
txt_full = decodeURIComponent(txt_full)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
let truncated
|
|
22
|
+
$: truncated = txt_full.substr(0,250) + "…"
|
|
23
|
+
|
|
24
|
+
$: key_str = keys.join(', ')
|
|
25
|
+
|
|
26
|
+
let score_rounded
|
|
27
|
+
|
|
28
|
+
$: score_rounded = score.toFixed(3);
|
|
29
|
+
|
|
30
|
+
let graphics
|
|
31
|
+
$: graphics = components.graphic.map(grph => { return decodeURIComponent(grph) })
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
function convert_date(secsdate) {
|
|
35
|
+
if ( secsdate === 'never' ) {
|
|
36
|
+
return 'never';
|
|
37
|
+
} else {
|
|
38
|
+
let idate = parseInt(secsdate)
|
|
39
|
+
let dformatted = (new Date(idate)).toLocaleDateString('en-US')
|
|
40
|
+
return (dformatted)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
let updated_when
|
|
45
|
+
let created_when
|
|
46
|
+
|
|
47
|
+
$: updated_when = convert_date(dates.updated)
|
|
48
|
+
$: created_when = convert_date(dates.created)
|
|
49
|
+
|
|
50
|
+
let short_title
|
|
51
|
+
$: short_title = title.substr(0,16) + '...'
|
|
52
|
+
|
|
53
|
+
let short_subject
|
|
54
|
+
$: short_subject = subject.substr(0,32) + '...'
|
|
55
|
+
|
|
56
|
+
/*
|
|
57
|
+
"dates" : {
|
|
58
|
+
"created" : "never",
|
|
59
|
+
"updated" : "never"
|
|
60
|
+
},
|
|
61
|
+
"subject" : "",
|
|
62
|
+
"keys" : [ ],
|
|
63
|
+
"t_type" : "",
|
|
64
|
+
"txt_full" : ""
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
{#if dates.created != 'never' }
|
|
70
|
+
<div class="blg-el-wrapper" >
|
|
71
|
+
|
|
72
|
+
<span style="background-color: {color}">{entry}</span>
|
|
73
|
+
<span style="background-color: yellowgreen">{created_when}</span>
|
|
74
|
+
<span style="background-color: lightblue">{updated_when}</span>
|
|
75
|
+
<h4 class="blg-item-title" style="background-color: inherit;">{short_title}</h4>
|
|
76
|
+
<span class="thng-score">{score_rounded}</span>
|
|
77
|
+
<div>
|
|
78
|
+
<span style="background-color:navy">subject</span> <h5 class="blg-item-subject" >{short_subject}</h5>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="teaser">
|
|
81
|
+
{#each graphics as grph}
|
|
82
|
+
<div class="little-component" style="height:60px;width:60px;">
|
|
83
|
+
{@html grph}
|
|
84
|
+
</div>
|
|
85
|
+
{/each}
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
{:else}
|
|
90
|
+
<div class="blg-el-wrapper">
|
|
91
|
+
<h4 class="blg-item-title" style="background-color: lightgrey;color:darkgrey">End of Content</h4>
|
|
92
|
+
</div>
|
|
93
|
+
{/if}
|
|
94
|
+
<style>
|
|
95
|
+
|
|
96
|
+
.blg-el-wrapper {
|
|
97
|
+
overflow-y: hidden;
|
|
98
|
+
height:inherit;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
span {
|
|
102
|
+
display: inline-block;
|
|
103
|
+
padding: 0.2em 0.5em;
|
|
104
|
+
margin: 0 0.2em 0.2em 0;
|
|
105
|
+
text-align: center;
|
|
106
|
+
border-radius: 0.2em;
|
|
107
|
+
color: white;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.little-component {
|
|
111
|
+
display: inline-block;
|
|
112
|
+
vertical-align: middle;
|
|
113
|
+
width: 60px;
|
|
114
|
+
height: 60px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.blg-item-title {
|
|
118
|
+
color:black;
|
|
119
|
+
display: unset;
|
|
120
|
+
border-bottom: 1px darkslateblue solid;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.blg-item-subject {
|
|
124
|
+
color:black;
|
|
125
|
+
display: unset;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.thng-score {
|
|
129
|
+
background-color: rgb(247, 247, 225);
|
|
130
|
+
color: rgb(4, 4, 104);
|
|
131
|
+
font-size: 0.60em;
|
|
132
|
+
font-weight: bold;
|
|
133
|
+
border: solid 1px rgb(233, 233, 164);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.teaser {
|
|
137
|
+
margin-top: 3px;
|
|
138
|
+
border-top: 1px solid black;
|
|
139
|
+
font-size: 70%;
|
|
140
|
+
color:rgba(129, 129, 129);
|
|
141
|
+
background-color:rgb(250, 248, 248);
|
|
142
|
+
max-height: 90px;
|
|
143
|
+
overflow-y: hidden;
|
|
144
|
+
text-overflow: ellipsis;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
h6 {
|
|
149
|
+
background-color: rgb(245, 245, 245);
|
|
150
|
+
border: 1px black solid;
|
|
151
|
+
border-radius: 0.2em;
|
|
152
|
+
padding: 0.2em 0.5em;
|
|
153
|
+
margin: 0 0.2em 0.2em 0;
|
|
154
|
+
color:black;
|
|
155
|
+
text-overflow: ellipsis;
|
|
156
|
+
overflow: hidden;
|
|
157
|
+
white-space: nowrap;
|
|
158
|
+
width: 200px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@media (max-width: 1200px) {
|
|
162
|
+
.teaser {
|
|
163
|
+
max-height: 60px;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media (max-width: 1000px) {
|
|
168
|
+
.teaser {
|
|
169
|
+
max-height: 80px;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@media (max-width: 900px) {
|
|
174
|
+
.teaser {
|
|
175
|
+
max-height: 64px;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@media (max-width: 700px) {
|
|
180
|
+
.teaser {
|
|
181
|
+
max-height: 60px;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@media (max-width: 600px) {
|
|
186
|
+
.teaser {
|
|
187
|
+
max-height: 80px;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
</style>
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
|
|
3
|
+
// ref ... https://gist.github.com/akirattii/9165836
|
|
4
|
+
|
|
5
|
+
// `current` is updated whenever the prop value changes...
|
|
6
|
+
export let color;
|
|
7
|
+
export let entry;
|
|
8
|
+
export let title;
|
|
9
|
+
export let dates;
|
|
10
|
+
export let subject;
|
|
11
|
+
export let keys;
|
|
12
|
+
export let t_type;
|
|
13
|
+
export let txt_full;
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
$: key_str = keys.join(', ')
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
"dates" : {
|
|
20
|
+
"created" : "never",
|
|
21
|
+
"updated" : "never"
|
|
22
|
+
},
|
|
23
|
+
"subject" : "",
|
|
24
|
+
"keys" : [ ],
|
|
25
|
+
"t_type" : "",
|
|
26
|
+
"txt_full" : ""
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
if ( t_type !== 'markdown' ) {
|
|
30
|
+
txt_full = decodeURIComponent(txt_full)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function convert_date(secsdate) {
|
|
34
|
+
if ( secsdate === 'never' ) {
|
|
35
|
+
return 'never';
|
|
36
|
+
} else {
|
|
37
|
+
let idate = parseInt(secsdate)
|
|
38
|
+
let dformatted = (new Date(idate)).toLocaleDateString('en-US')
|
|
39
|
+
return (dformatted)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
let updated_when
|
|
44
|
+
let created_when
|
|
45
|
+
|
|
46
|
+
$: updated_when = convert_date(dates.updated)
|
|
47
|
+
$: created_when = convert_date(dates.created)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<div class="blg-el-wrapper-full">
|
|
53
|
+
<div style="padding:6px;" >
|
|
54
|
+
<span style="background-color: {color}">{entry}</span>
|
|
55
|
+
<span style="background-color: yellowgreen">{created_when}</span>
|
|
56
|
+
<span style="background-color: lightblue">{updated_when}</span>
|
|
57
|
+
<h4 class="blg-item-title" style="background-color: inherit;">{title}</h4>
|
|
58
|
+
<h6>{key_str}</h6>
|
|
59
|
+
<div>
|
|
60
|
+
<span style="background-color:navy">subject</span> <h5 class="blg-item-subject" >{subject}</h5>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div id="blg-window-full-text" class="full-display" >
|
|
64
|
+
{@html txt_full}
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<style>
|
|
69
|
+
|
|
70
|
+
.blg-el-wrapper-full {
|
|
71
|
+
overflow-y: hidden;
|
|
72
|
+
height:inherit;
|
|
73
|
+
}
|
|
74
|
+
span {
|
|
75
|
+
display: inline-block;
|
|
76
|
+
padding: 0.2em 0.5em;
|
|
77
|
+
margin: 0 0.2em 0.2em 0;
|
|
78
|
+
text-align: center;
|
|
79
|
+
border-radius: 0.2em;
|
|
80
|
+
color: white;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.blg-item-title {
|
|
84
|
+
color:black;
|
|
85
|
+
display: unset;
|
|
86
|
+
border-bottom: 1px darkslateblue solid;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.blg-item-subject {
|
|
90
|
+
color:black;
|
|
91
|
+
display: unset;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
.full-display {
|
|
96
|
+
background-color: rgba(255, 255, 255, 0.9);
|
|
97
|
+
color: rgb(73, 1, 1);
|
|
98
|
+
border-top: solid 2px rgb(88, 4, 88);
|
|
99
|
+
padding: 6px 4px 6px 4px;
|
|
100
|
+
overflow-y: scroll;
|
|
101
|
+
height: 100px;
|
|
102
|
+
border-bottom: solid 1px rgb(88, 4, 88);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
h6 {
|
|
106
|
+
background-color: rgb(245, 245, 245);
|
|
107
|
+
border: 1px black solid;
|
|
108
|
+
border-radius: 0.2em;
|
|
109
|
+
padding: 0.2em 0.5em;
|
|
110
|
+
margin: 0 0.2em 0.2em 0;
|
|
111
|
+
color:black;
|
|
112
|
+
text-overflow: ellipsis;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
white-space: nowrap;
|
|
115
|
+
width: 200px;
|
|
116
|
+
}
|
|
117
|
+
</style>
|