whyis-fediverse 0.2.1__py3-none-any.whl → 0.3.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.
@@ -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: {
@@ -201,8 +201,6 @@ export default Vue.component('fedi-new-post', {
201
201
  this.id = randomID();
202
202
  this.uri = `${LOD_PREFIX}/note/${this.id}`;
203
203
  this.post = newPost(this.uri);
204
- this.attachments = null;
205
-
206
204
  if (attachments.length >0) {
207
205
  const collectionURI = `${LOD_PREFIX}/media/${old_id}`;
208
206
  console.log(collectionURI);
@@ -218,10 +216,12 @@ export default Vue.component('fedi-new-post', {
218
216
  'Content-Type': 'application/ld+json'
219
217
  }
220
218
  });
221
- //this.selection.length = 0;
219
+ this.selection.length = 0;
222
220
  if (this.inReplyTo == null) {
223
221
  window.location.href = `${window.location.origin}/about?uri=${post.id}`;
224
222
  }
223
+ console.log(this.$refs.attachments);
224
+ this.$refs.attachments.value = null;
225
225
  }
226
226
  },
227
227
  async mounted (){
@@ -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 -%}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: whyis-fediverse
3
- Version: 0.2.1
3
+ Version: 0.3.0
4
4
  License-File: LICENSE
5
5
  Requires-Dist: whyis
6
6
 
@@ -4,9 +4,9 @@ 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=L8e_dHwCbyDCqNspxyFTIjDpmjHZHVP4wfdQZtpN8lo,3064
7
+ whyis_fediverse/static/js/comment.js,sha256=tShhdxD3ZxNYms44E36xtJxREbKuXCpEl1vdJ_Kmoz8,3538
8
8
  whyis_fediverse/static/js/discussion.js,sha256=KrW8h9pUaheJjqhgkmK9PZargoTJoGJun5n91rEk2Jc,2418
9
- whyis_fediverse/static/js/new_post.js,sha256=0Ap-bl5qxixtuhmZwppjFWP-MaaLvdb0MHfoiSA7_gw,6751
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
11
  whyis_fediverse/static/js/post_view.js,sha256=0Wpjht9BU3MGS1VtkRhHHqPLFkMlUOOn6-Y-boNdDVs,2686
12
12
  whyis_fediverse/static/js/selectable.js,sha256=QH4ZYAj-Y6-YAA1l0ylNXXUhU2r5yqBmZ07Sn-3CKME,1129
@@ -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=6CXzBs87LMpjvtBjV24BWFC5iqvtkjCugr8jExLEh-o,2967
32
+ whyis_fediverse/templates/object_data.json,sha256=4KpglgRQvV2AUBmeMOrA3_GzzmhU83p1jODJMIFphBE,3204
33
33
  whyis_fediverse/templates/object_replies.json,sha256=W2Ch-s6Lh-yjw3tBY9KtzCMGSlezTHSuJxCLxZcx1Q0,392
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.2.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
40
- whyis_fediverse-0.2.1.dist-info/METADATA,sha256=4b34aPWKMZ09uJqYmvSy7NxHE5qjqEpqvpVe8XzHx6A,103
41
- whyis_fediverse-0.2.1.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
42
- whyis_fediverse-0.2.1.dist-info/entry_points.txt,sha256=e4XLi7wxdcBNLXdbeukTWuVWuprOpYUpFUkOJe4vPdY,58
43
- whyis_fediverse-0.2.1.dist-info/top_level.txt,sha256=s0dGyAZlCNhS-O-Zoqlui3FKCkMAc8VqfK3o6DLsC10,16
44
- whyis_fediverse-0.2.1.dist-info/RECORD,,
39
+ whyis_fediverse-0.3.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
40
+ whyis_fediverse-0.3.0.dist-info/METADATA,sha256=x4tklRB5qeLQVFTfmrgTEWF6d1fTQBMZJIdFwmGbdtg,103
41
+ whyis_fediverse-0.3.0.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
42
+ whyis_fediverse-0.3.0.dist-info/entry_points.txt,sha256=e4XLi7wxdcBNLXdbeukTWuVWuprOpYUpFUkOJe4vPdY,58
43
+ whyis_fediverse-0.3.0.dist-info/top_level.txt,sha256=s0dGyAZlCNhS-O-Zoqlui3FKCkMAc8VqfK3o6DLsC10,16
44
+ whyis_fediverse-0.3.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.2.0)
2
+ Generator: setuptools (75.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5