whyis-fediverse 0.1.3__py3-none-any.whl → 0.1.4__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.
@@ -1,5 +1,11 @@
1
1
  import {Vue, axios, createApp} from '../../../dist/whyis.js';
2
2
 
3
+ function randomID() {
4
+ var result = Math.random().toString().replace('0.','');
5
+ console.log(result);
6
+ return result;
7
+ }
8
+
3
9
  function newPost(uri) {
4
10
  return {
5
11
  "@context" : [
@@ -35,7 +41,7 @@ async function uploadFiles(fileList, uri){
35
41
  Array
36
42
  .from(Array(fileList.length).keys())
37
43
  .map(x => {
38
- let new_file_name = crypto.randomUUID();
44
+ let new_file_name = randomID();
39
45
  let upload_name = fileList[x].name;
40
46
  distrData.append(new_file_name, fileList[x], new_file_name);
41
47
  distrLDs[x] = {
@@ -84,7 +90,7 @@ export default Vue.component('fedi-new-post', {
84
90
  }
85
91
  },
86
92
  data() {
87
- let id = crypto.randomUUID();
93
+ let id = randomID();
88
94
  let uri = `${LOD_PREFIX}/note/${id}`;
89
95
  console.log(uri, id);
90
96
  return {
@@ -144,7 +150,7 @@ export default Vue.component('fedi-new-post', {
144
150
  let old_id = this.id;
145
151
  let post = this.post;
146
152
 
147
- this.id = crypto.randomUUID();
153
+ this.id = randomID();
148
154
  this.uri = `${LOD_PREFIX}/note/${this.id}`;
149
155
  this.post = newPost(this.uri);
150
156
  this.attachments = null;
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: whyis-fediverse
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  License-File: LICENSE
5
5
  Requires-Dist: whyis
6
6
 
@@ -5,7 +5,7 @@ whyis_fediverse/test_example.ttl,sha256=sD79vPJcFacKMyt9rvLSBZxSRGe5Q06qeoXdHzn3
5
5
  whyis_fediverse/vocab.ttl,sha256=_QVPdPfth7cpiog2ruQRcEsWKyftvi4jyUdGTGq2lDU,2427
6
6
  whyis_fediverse/static/js/comment.js,sha256=-Eh0cl0_eVefMX3bSSWFB39flMlRm12V4GW1i_hzTcQ,2694
7
7
  whyis_fediverse/static/js/discussion.js,sha256=xwRPsOlTBVSjbvNOQ_3D0Xh3axY61VLZgIC2czo4KMs,2332
8
- whyis_fediverse/static/js/new_post.js,sha256=epEQZE5x3Ul4pLY4waUjZ8oyqoBhz6LQA2Ps_zO5hKE,4607
8
+ whyis_fediverse/static/js/new_post.js,sha256=yu6I5BCLxu9wI_jnhkFx0WHYooUBq3fGlhxohc998IA,4710
9
9
  whyis_fediverse/static/js/post.js,sha256=vRy4iNhR0wwzx69zEcrZuP17W5F_fm75pE2YPhk7w94,2973
10
10
  whyis_fediverse/static/js/post_view.js,sha256=J8j9mmuZnvBEc4VcL2W6Lzf18B43QAdkLsKycJmJ5L4,2674
11
11
  whyis_fediverse/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -19,9 +19,9 @@ whyis_fediverse/templates/resource_get.json,sha256=qgKrV5c2IQGWfnv6EIXL_B3xte4UC
19
19
  whyis_fediverse/templates/resource_search.json,sha256=BXOsOdM7rJ2MV1_7tMthXLuc_aye6Ig9_3jYXXSxiP0,230
20
20
  whyis_fediverse/templates/space_get.json,sha256=QYxOUQjW7Asyvla-C0-Dv9mj0Tww1MdecxqUMuOH1mg,132
21
21
  whyis_fediverse/templates/space_search.json,sha256=PMzIraMldZrb7jrCsBhJRbQ_vB76nxz24cS9Bcgx-gk,193
22
- whyis_fediverse-0.1.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
23
- whyis_fediverse-0.1.3.dist-info/METADATA,sha256=DlnueSpEMez-Z6AUkXuB_1OBhX-ZCIvZgQpvHH7Axug,103
24
- whyis_fediverse-0.1.3.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
25
- whyis_fediverse-0.1.3.dist-info/entry_points.txt,sha256=e4XLi7wxdcBNLXdbeukTWuVWuprOpYUpFUkOJe4vPdY,58
26
- whyis_fediverse-0.1.3.dist-info/top_level.txt,sha256=s0dGyAZlCNhS-O-Zoqlui3FKCkMAc8VqfK3o6DLsC10,16
27
- whyis_fediverse-0.1.3.dist-info/RECORD,,
22
+ whyis_fediverse-0.1.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
23
+ whyis_fediverse-0.1.4.dist-info/METADATA,sha256=KraxUGJcE40exxmThaqFAn8xwidtADQ3ecEaZVaNcxM,103
24
+ whyis_fediverse-0.1.4.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
25
+ whyis_fediverse-0.1.4.dist-info/entry_points.txt,sha256=e4XLi7wxdcBNLXdbeukTWuVWuprOpYUpFUkOJe4vPdY,58
26
+ whyis_fediverse-0.1.4.dist-info/top_level.txt,sha256=s0dGyAZlCNhS-O-Zoqlui3FKCkMAc8VqfK3o6DLsC10,16
27
+ whyis_fediverse-0.1.4.dist-info/RECORD,,