Skip to content

Commit

Permalink
[Skit-303]: Add desktop & mobile screenshots in registry schema (#167)
Browse files Browse the repository at this point in the history
* added mobile screenshots field

* updated package version
  • Loading branch information
rishikesh-y authored Oct 18, 2023
1 parent df20299 commit 2a20ab4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@merokudao/dapp-store-registry",
"version": "0.1.99",
"version": "0.1.100",
"description": "The dApp Store registry for MerokuDAO dAapp Store",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/dAppSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export interface Images {
logo?: string;
banner?: string;
screenshots?: string[];
mobileScreenshots?: string[];
}

/**
Expand Down
4 changes: 4 additions & 0 deletions src/interfaces/dAppStoreSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ export interface StoreSchema {
logo?: string;
banner?: string;
screenshots?: string[];
mobileScreenshots?: string[];
};
cdn?: {
images?: {
logo?: string;
banner?: string;
screenshots?: string[];
mobileScreenshots?: string[];
};
};
isForMatureAudience: boolean;
Expand Down Expand Up @@ -70,12 +72,14 @@ export interface EnrichFieldSchema {
logo?: string;
banner?: string;
screenshots?: ScreenShotSchema[];
mobileScreenshots?: ScreenShotSchema[];
};
cdn?: {
images?: {
logo?: string;
banner?: string;
screenshots?: ScreenShotSchema[];
mobileScreenshots?: ScreenShotSchema[];
};
};
description?: string;
Expand Down
23 changes: 23 additions & 0 deletions src/schemas/merokuDappStore.dAppImagesSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,30 @@
},
"minItems": 1,
"description": "A list of URLs to the screenshots of the dApp. Should be 1284 x 2778 and in PNG format"
},
"mobileScreenshots": {
"type": "array",
"items": {
"type": "string",
"format": "uri",
"pattern": "^(https?|http?|ipfs?)://",
"minLength": 1
},
"minItems": 1,
"description": "A list of URLs to the mobile screenshots of the dApp"
}
},
"anyOf": [
{
"required": [
"screenshots"
]
},
{
"required": [
"mobileScreenshots"
]
}
],
"additionalProperties": false
}

0 comments on commit 2a20ab4

Please sign in to comment.