Skip to content

Commit cf745ae

Browse files
committed
refactor: update resolveUsername function to use new mutation
refactor: update sendJam to use DashDappConnect broadcastDocumentBatch refactor: update jams, tags and mentions contract to use an ObjectID for linking refacotr: change mentionedUserIds to mentionedOwnerIds
1 parent f235cbb commit cf745ae

5 files changed

Lines changed: 203 additions & 102 deletions

File tree

components/login/LoginButton.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
>
2323
Login with Dash
2424
</v-btn>
25-
<span v-if="isLoading">
26-
{{ this.$store.getters.getLoadingStep }}
27-
</span>
25+
<span v-if="isLoading"> Connecting to Dash .. </span>
2826
</div>
2927
</template>
3028

package-lock.json

Lines changed: 54 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@nuxtjs/axios": "^5.11.0",
2727
"@nuxtjs/dotenv": "^1.4.1",
2828
"@nuxtjs/pwa": "^3.0.0-beta.20",
29+
"bson": "^4.4.0",
2930
"dash": "^3.18.2",
3031
"dash-dapp-connect": "file:../../dash-dapp-connect/dash-dapp-connect",
3132
"dash-secure-message": "^1.1.0",

schema/JEMBE_CONTRACT.json

Lines changed: 32 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
}
1616
]
1717
},
18+
{
19+
"properties": [
20+
{
21+
"metaId": "asc"
22+
}
23+
],
24+
"unique": true
25+
},
1826
{
1927
"properties": [
2028
{
@@ -41,17 +49,24 @@
4149
"text",
4250
"replyToJamId",
4351
"reJamId",
52+
"metaId",
4453
"$createdAt",
4554
"$updatedAt"
4655
],
4756
"properties": {
4857
"text": {
4958
"type": "string"
5059
},
60+
"metaId": {
61+
"type": "string",
62+
"pattern": "^$|^[0-9a-fA-F]{24}$",
63+
"maxLength": 24,
64+
"minLength": 0
65+
},
5166
"reJamId": {
5267
"type": "string",
5368
"pattern": "^$|^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{42,44}$",
54-
"maxLength": 44,
69+
"maxLength": 42,
5570
"minLength": 0
5671
},
5772
"replyToJamId": {
@@ -116,11 +131,7 @@
116131
]
117132
}
118133
],
119-
"required": [
120-
"jamId",
121-
"isLiked",
122-
"$updatedAt"
123-
],
134+
"required": ["jamId", "isLiked", "$updatedAt"],
124135
"properties": {
125136
"jamId": {
126137
"type": "string",
@@ -211,7 +222,12 @@
211222
]
212223
}
213224
],
214-
"required": ["userNormalizedLabel", "$updatedAt", "$createdAt", "displayName"],
225+
"required": [
226+
"userNormalizedLabel",
227+
"$updatedAt",
228+
"$createdAt",
229+
"displayName"
230+
],
215231
"properties": {
216232
"theme": {
217233
"type": "string"
@@ -323,9 +339,9 @@
323339
},
324340
"jamId": {
325341
"type": "string",
326-
"pattern": "^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+$",
327-
"maxLength": 44,
328-
"minLength": 42
342+
"pattern": "^[0-9a-fA-F]{24}$",
343+
"maxLength": 24,
344+
"minLength": 24
329345
},
330346
"opOwnerId": {
331347
"type": "string",
@@ -386,9 +402,9 @@
386402
},
387403
"jamId": {
388404
"type": "string",
389-
"pattern": "^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+$",
390-
"maxLength": 44,
391-
"minLength": 42
405+
"pattern": "^[0-9a-fA-F]{24}$",
406+
"maxLength": 24,
407+
"minLength": 24
392408
},
393409
"opOwnerId": {
394410
"type": "string",
@@ -436,12 +452,7 @@
436452
]
437453
}
438454
],
439-
"required": [
440-
"jamId",
441-
"opOwnerId",
442-
"isBookmarked",
443-
"$createdAt"
444-
],
455+
"required": ["jamId", "opOwnerId", "isBookmarked", "$createdAt"],
445456
"properties": {
446457
"jamId": {
447458
"type": "string",
@@ -461,7 +472,7 @@
461472
},
462473
"additionalProperties": false
463474
},
464-
"state": {
475+
"state": {
465476
"indices": [
466477
{
467478
"properties": [
@@ -485,11 +496,7 @@
485496
]
486497
}
487498
],
488-
"required": [
489-
"state",
490-
"$createdAt",
491-
"$updatedAt"
492-
],
499+
"required": ["state", "$createdAt", "$updatedAt"],
493500
"properties": {
494501
"state": {
495502
"type": "string"

0 commit comments

Comments
 (0)