whyis-fediverse 0.2.2__py3-none-any.whl → 0.4.0__py3-none-any.whl
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.
- whyis_fediverse/static/js/comment.js +13 -0
- whyis_fediverse/static/js/post_view.js +25 -5
- whyis_fediverse/templates/object_data.json +5 -0
- whyis_fediverse/templates/object_replies.json +1 -1
- {whyis_fediverse-0.2.2.dist-info → whyis_fediverse-0.4.0.dist-info}/METADATA +1 -1
- {whyis_fediverse-0.2.2.dist-info → whyis_fediverse-0.4.0.dist-info}/RECORD +10 -10
- {whyis_fediverse-0.2.2.dist-info → whyis_fediverse-0.4.0.dist-info}/WHEEL +1 -1
- {whyis_fediverse-0.2.2.dist-info → whyis_fediverse-0.4.0.dist-info}/LICENSE +0 -0
- {whyis_fediverse-0.2.2.dist-info → whyis_fediverse-0.4.0.dist-info}/entry_points.txt +0 -0
- {whyis_fediverse-0.2.2.dist-info → whyis_fediverse-0.4.0.dist-info}/top_level.txt +0 -0
|
@@ -27,6 +27,8 @@ export default Vue.component('fedi-comment', {
|
|
|
27
27
|
pageSize: 20,
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
+
typing_template: `
|
|
31
|
+
`,
|
|
30
32
|
template: `
|
|
31
33
|
<md-content style="margin-top:1.5em">
|
|
32
34
|
<div v-if="value.attachment != null && value.attachment.length != 0">
|
|
@@ -47,6 +49,17 @@ export default Vue.component('fedi-comment', {
|
|
|
47
49
|
</small>
|
|
48
50
|
<div v-html="value.content"></div>
|
|
49
51
|
</div>
|
|
52
|
+
<div v-for="agent in value.typing"
|
|
53
|
+
v-bind:key="agent.id"
|
|
54
|
+
style="width:fit-content; margin-top:0.5em; border-radius:1em; padding-left:0.75em; padding-right:0.75em; background-color:lightgray">
|
|
55
|
+
<small>
|
|
56
|
+
<a :href="agent.view">
|
|
57
|
+
<strong>{{agent.name}}</strong>
|
|
58
|
+
(@{{agent.id.split('/').pop()}})
|
|
59
|
+
<spinner :loading="true" text=''/>
|
|
60
|
+
</a>
|
|
61
|
+
</small>
|
|
62
|
+
</div>
|
|
50
63
|
</md-content>
|
|
51
64
|
`,
|
|
52
65
|
watch: {
|
|
@@ -16,6 +16,7 @@ export default Vue.component('fedi-post-view', {
|
|
|
16
16
|
return {
|
|
17
17
|
post: null,
|
|
18
18
|
replies: null,
|
|
19
|
+
replyData: {},
|
|
19
20
|
loading: false,
|
|
20
21
|
loadError: false,
|
|
21
22
|
otherArgs: null,
|
|
@@ -38,11 +39,13 @@ export default Vue.component('fedi-post-view', {
|
|
|
38
39
|
md-label="Reply to this thread"
|
|
39
40
|
md-description="Reply below to continue this conversation.">
|
|
40
41
|
</md-empty-state>
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
<div v-else>
|
|
43
|
+
<fedi-comment v-if="replyData[reply]"
|
|
44
|
+
v-for="reply in replies"
|
|
45
|
+
:key="reply"
|
|
46
|
+
v-bind:value="replyData[reply]">
|
|
47
|
+
</fedi-comment>
|
|
48
|
+
</div>
|
|
46
49
|
</div>
|
|
47
50
|
<fedi-new-post v-if="post != null"
|
|
48
51
|
:inReplyTo="post.id">
|
|
@@ -71,6 +74,19 @@ export default Vue.component('fedi-post-view', {
|
|
|
71
74
|
console.log(response.data);
|
|
72
75
|
this.post = response.data;
|
|
73
76
|
},
|
|
77
|
+
async loadReplyData(uri) {
|
|
78
|
+
if (this.replyData[uri] == null) {
|
|
79
|
+
let response = await axios.get(`${ROOT_URL}about`,
|
|
80
|
+
{
|
|
81
|
+
params: {
|
|
82
|
+
view: "data",
|
|
83
|
+
uri: uri
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
this.replyData[uri] = response.data;
|
|
87
|
+
}
|
|
88
|
+
return this.replyData[uri];
|
|
89
|
+
},
|
|
74
90
|
async loadReplies() {
|
|
75
91
|
let response = await axios.get(`${ROOT_URL}about`,
|
|
76
92
|
{
|
|
@@ -79,6 +95,10 @@ export default Vue.component('fedi-post-view', {
|
|
|
79
95
|
uri: this.object
|
|
80
96
|
}
|
|
81
97
|
});
|
|
98
|
+
let that = this;
|
|
99
|
+
await response.data.forEach(function (reply) {
|
|
100
|
+
that.loadReplyData(reply);
|
|
101
|
+
});
|
|
82
102
|
this.replies = response.data;
|
|
83
103
|
}
|
|
84
104
|
},
|
|
@@ -71,6 +71,11 @@
|
|
|
71
71
|
{%- if element.value(app.NS.astr.name) %}
|
|
72
72
|
"name" : "{{element.value(app.NS.astr.name).value }}",
|
|
73
73
|
{%- endif %}
|
|
74
|
+
"typing" : [
|
|
75
|
+
{% for o in app.celery.backend.client.hkeys(element.identifier.toPython()) -%}
|
|
76
|
+
{{object(app.db.resource(rdflib.URIRef(o.decode('utf8'))))}}{% if not loop.last %}, {% endif %}
|
|
77
|
+
{%- endfor %}
|
|
78
|
+
],
|
|
74
79
|
"id" : "{{element.identifier}}"
|
|
75
80
|
}
|
|
76
81
|
{%- endmacro -%}
|
|
@@ -6,6 +6,6 @@ select distinct ?reply where {
|
|
|
6
6
|
} order by (?published) ' -%}
|
|
7
7
|
[
|
|
8
8
|
{% for row in context_query | query(values={"post":this.identifier}) %}
|
|
9
|
-
{{row['reply'] |
|
|
9
|
+
{{row['reply'] | tojson }}{% if not loop.last %}, {% endif %}
|
|
10
10
|
{%- endfor %}
|
|
11
11
|
]
|
|
@@ -4,11 +4,11 @@ whyis_fediverse/test_example.trig,sha256=kcTQ0hmnt8bjsTBrRN58yvzTEtNT5ryrDBWoeRe
|
|
|
4
4
|
whyis_fediverse/test_example.ttl,sha256=sD79vPJcFacKMyt9rvLSBZxSRGe5Q06qeoXdHzn3XOQ,3496
|
|
5
5
|
whyis_fediverse/vocab.ttl,sha256=ZcN5pWzoxBNxeOTfVjs0vVgBnWDvVNCMics_JC8WRWs,2778
|
|
6
6
|
whyis_fediverse/static/js/#new_post.js#,sha256=7SJRF5yYO9YvWffs77uWKawJPUjXPaxiRwPyWT0-2ww,6749
|
|
7
|
-
whyis_fediverse/static/js/comment.js,sha256=
|
|
7
|
+
whyis_fediverse/static/js/comment.js,sha256=tShhdxD3ZxNYms44E36xtJxREbKuXCpEl1vdJ_Kmoz8,3538
|
|
8
8
|
whyis_fediverse/static/js/discussion.js,sha256=KrW8h9pUaheJjqhgkmK9PZargoTJoGJun5n91rEk2Jc,2418
|
|
9
9
|
whyis_fediverse/static/js/new_post.js,sha256=wCR8-jLzLe4C43-KFRkQ2MQ2fCB7eCLkSX2sG-jFfCY,6811
|
|
10
10
|
whyis_fediverse/static/js/post.js,sha256=xmLicaDBnejcbr4vH1cLmVoy-Cplz7PuCKE_mNHjBzk,3266
|
|
11
|
-
whyis_fediverse/static/js/post_view.js,sha256=
|
|
11
|
+
whyis_fediverse/static/js/post_view.js,sha256=WBISiYypooRLdc7L23sLUfiUUQRr5QTygneLrO7xRHk,3313
|
|
12
12
|
whyis_fediverse/static/js/selectable.js,sha256=QH4ZYAj-Y6-YAA1l0ylNXXUhU2r5yqBmZ07Sn-3CKME,1129
|
|
13
13
|
whyis_fediverse/static/js/selectable.js~,sha256=p17cbCcv26I68zyIl71KOA-Y0zT0AYP1LjOOaof-2JY,459
|
|
14
14
|
whyis_fediverse/static/js/selections.js,sha256=RKzDvV5qvCIk1QTAgXoLD4GwKbVRxCfTvEhgAT77QRE,737
|
|
@@ -29,16 +29,16 @@ whyis_fediverse/templates/embed_video.html,sha256=HBATiS9qYaefzAIAZjRp0fbJaOUYs6
|
|
|
29
29
|
whyis_fediverse/templates/embed_video.html~,sha256=Y3T_8SHco3Yiau9E68AeiyXHHtfZPV4hzVqgJP0cwCA,259
|
|
30
30
|
whyis_fediverse/templates/image_embed.html,sha256=ovmUMO-ZSTCIMEmtvXX9sC-mr6wTJrKzA_jsBYvJIF0,116
|
|
31
31
|
whyis_fediverse/templates/image_embed.svg,sha256=ovmUMO-ZSTCIMEmtvXX9sC-mr6wTJrKzA_jsBYvJIF0,116
|
|
32
|
-
whyis_fediverse/templates/object_data.json,sha256=
|
|
33
|
-
whyis_fediverse/templates/object_replies.json,sha256=
|
|
32
|
+
whyis_fediverse/templates/object_data.json,sha256=4KpglgRQvV2AUBmeMOrA3_GzzmhU83p1jODJMIFphBE,3204
|
|
33
|
+
whyis_fediverse/templates/object_replies.json,sha256=SudBbaV-g0hA4PIcKlNUw2HtHexRg3v78uH-m5OGBug,376
|
|
34
34
|
whyis_fediverse/templates/object_view.html,sha256=ZhEAD3kvLoBrDT7CtmJd27n70vMZ4pcqsaTxjUq3raA,796
|
|
35
35
|
whyis_fediverse/templates/resource_get.json,sha256=qgKrV5c2IQGWfnv6EIXL_B3xte4UC7PQ1uv1VOO5v38,131
|
|
36
36
|
whyis_fediverse/templates/resource_search.json,sha256=BXOsOdM7rJ2MV1_7tMthXLuc_aye6Ig9_3jYXXSxiP0,230
|
|
37
37
|
whyis_fediverse/templates/space_get.json,sha256=QYxOUQjW7Asyvla-C0-Dv9mj0Tww1MdecxqUMuOH1mg,132
|
|
38
38
|
whyis_fediverse/templates/space_search.json,sha256=PMzIraMldZrb7jrCsBhJRbQ_vB76nxz24cS9Bcgx-gk,193
|
|
39
|
-
whyis_fediverse-0.
|
|
40
|
-
whyis_fediverse-0.
|
|
41
|
-
whyis_fediverse-0.
|
|
42
|
-
whyis_fediverse-0.
|
|
43
|
-
whyis_fediverse-0.
|
|
44
|
-
whyis_fediverse-0.
|
|
39
|
+
whyis_fediverse-0.4.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
40
|
+
whyis_fediverse-0.4.0.dist-info/METADATA,sha256=Fiz-J9fVR2JTInm-uFgZn4ple7U5h11hUTjB5o564RE,103
|
|
41
|
+
whyis_fediverse-0.4.0.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
|
42
|
+
whyis_fediverse-0.4.0.dist-info/entry_points.txt,sha256=e4XLi7wxdcBNLXdbeukTWuVWuprOpYUpFUkOJe4vPdY,58
|
|
43
|
+
whyis_fediverse-0.4.0.dist-info/top_level.txt,sha256=s0dGyAZlCNhS-O-Zoqlui3FKCkMAc8VqfK3o6DLsC10,16
|
|
44
|
+
whyis_fediverse-0.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|