-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
13 lines (13 loc) · 879 Bytes
/
index.js
File metadata and controls
13 lines (13 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
panel.plugin("adspectus/feedreader", {
blocks: {
feedreader: {
template: `
<div v-if="content.url" @dblclick="open">
<div><span v-if="content.feedtype === 'auto'">Auto-Detect-</span><span v-if="content.feedtype === 'rss'">RSS-</span><span v-if="content.feedtype === 'atom'">Atom-</span><span v-if="content.feedtype === 'json'">JSON-</span>Feed from {{ content.url }}<span style="float: right">Cache: {{ content.usecache }}</span></div>
<div>Show <span v-if="content.showall">all</span><span v-else>{{ content.limit }}</span> item(s) in {{ content.order }} order <span v-if="content.showartdesc">with</span><span v-else>without</span> description | Date format: {{ content.dateformat }}<span style="float: right">Validity: {{ content.cachevalidity }} Hrs.</span></div>
</div>
<div v-else>No URL</div>
`
}
},
});