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.
- whyis_fediverse/static/js/new_post.js +9 -3
- {whyis_fediverse-0.1.3.dist-info → whyis_fediverse-0.1.4.dist-info}/METADATA +1 -1
- {whyis_fediverse-0.1.3.dist-info → whyis_fediverse-0.1.4.dist-info}/RECORD +7 -7
- {whyis_fediverse-0.1.3.dist-info → whyis_fediverse-0.1.4.dist-info}/LICENSE +0 -0
- {whyis_fediverse-0.1.3.dist-info → whyis_fediverse-0.1.4.dist-info}/WHEEL +0 -0
- {whyis_fediverse-0.1.3.dist-info → whyis_fediverse-0.1.4.dist-info}/entry_points.txt +0 -0
- {whyis_fediverse-0.1.3.dist-info → whyis_fediverse-0.1.4.dist-info}/top_level.txt +0 -0
|
@@ -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 =
|
|
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 =
|
|
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 =
|
|
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;
|
|
@@ -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=
|
|
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.
|
|
23
|
-
whyis_fediverse-0.1.
|
|
24
|
-
whyis_fediverse-0.1.
|
|
25
|
-
whyis_fediverse-0.1.
|
|
26
|
-
whyis_fediverse-0.1.
|
|
27
|
-
whyis_fediverse-0.1.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|