From 213f8b5017e88931964fbed8cbfb5569236c40e3 Mon Sep 17 00:00:00 2001 From: JeremyParish69 <95667791+JeremyParish69@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:15:10 -0600 Subject: [PATCH 1/6] Create landing-page.schema.json --- schemas/landing-page.schema.json | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 schemas/landing-page.schema.json diff --git a/schemas/landing-page.schema.json b/schemas/landing-page.schema.json new file mode 100644 index 0000000..5d49dc7 --- /dev/null +++ b/schemas/landing-page.schema.json @@ -0,0 +1,49 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "assets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "assetName": { + "type": "string", + "description": "The name of the asset.", + "example": "Osmosis" + }, + "symbol": { + "type": "string", + "description": "The symbol of the asset.", + "example": "OSMO" + }, + "chainName": { + "type": "string", + "description": "The name of the blockchain or network where the asset originates.", + "example": "Osmosis" + }, + "logoURL": { + "type": "string", + "format": "uri", + "description": "The URL to the logo image of the asset.", + "example": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png" + "pattern": "^https://raw.githubusercontent.com/cosmos/chain-registry/master/.+\\.png$" + }, + "estimatedLaunchDateUtc": { + "type": "string", + "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?$", + "example": "2049-01-01T01:01:01Z", + "description": "The estimated launch date and time (UTC) of the asset." + }, + "osmosisAirdrop": { + "type": "boolean", + "description": "Indicates whether Osmosis Stakers or LPs are eligible for an airdrop of the asset.", + "example": false + } + }, + "required": ["assetName", "symbol", "chainName", "logoURL", "estimatedLaunchDateUtc", "osmosisAirdrop"] + } + } + }, + "required": ["assets"] +} From 949f84dde915e8417f87b9e679ff513b72cd3368 Mon Sep 17 00:00:00 2001 From: JeremyParish69 <95667791+JeremyParish69@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:25:40 -0600 Subject: [PATCH 2/6] Create README.md --- cms/landing-page/README.md | 57 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 cms/landing-page/README.md diff --git a/cms/landing-page/README.md b/cms/landing-page/README.md new file mode 100644 index 0000000..e2f0e45 --- /dev/null +++ b/cms/landing-page/README.md @@ -0,0 +1,57 @@ +# Landing Page + +Welcome to the Landing Page CMS! This repository contains a JSON schema for structuring landing page content. We welcome contributions from the community to help improve the CMS and keep the content up to date. + +## Overview + +The Landing Page CMS is designed to organize content for the Osmosis Zone landing page. It utilizes a JSON schema to define the structure of the content, ensuring consistency and ease of use. + +### Upcoming Assets + +Currently, the only data maintained in this CMS is the Upcoming Assets. Assets shown here should be valuable and strategic for visitors to see. +Upcoming assets should only include assets launching within the next month, and have a plan for asset integration, as well as substanital market making. + +## Schema + +### Properties + +The Landing Page schema includes the following properties: + +- `upcomingAssets`: An array of assets containing information about each asset. + - `assetName`: The name of the asset. + - `symbol`: The symbol of the asset. + - `chainName`: The name of the blockchain or network where the asset originates. + - `logoURL`: The URL to the logo image of the asset. It must be hosted on the Cosmos chain registry master and have a `.png` or `.svg` extension. + - `estimatedLaunchDateUtc`: The estimated launch date and time (UTC) of the asset. + - `osmosisAirdrop`: Indicates whether Osmosis Stakers or LPs are eligible for an airdrop of the asset. + +### Example + +Here's an example of how content can be structured using the Landing Page schema: + +```json +{ + "upcoming_assets": [ + { + "assetName": "Osmosis", + "symbol": "OSMO", + "chainName": "Osmosis", + "logoURL": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", + "estimatedLaunchDateUtc": "2049-01-01T01:01:01Z", + "osmosisAirdrop": false + }, + { + "assetName": "Celestia", + "symbol": "TIA", + "chainName": "Celstia", + "logoURL": "https://raw.githubusercontent.com/cosmos/chain-registry/master/celestia/images/tia.png", + "estimatedLaunchDateUtc": "2049-01-01T01:01:01Z", + "osmosisAirdrop": true + } + ] +} +``` + +## Contributing + +Contributions to the schema are welcome. If you identify any issues, have suggestions for improvements, or wish to contribute enhancements, feel free to open an issue or submit a pull request. From b24edaeff26f94d2bbc010311659e12f7a8770fd Mon Sep 17 00:00:00 2001 From: JeremyParish69 <95667791+JeremyParish69@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:26:04 -0600 Subject: [PATCH 3/6] Update landing-page.schema.json --- schemas/landing-page.schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schemas/landing-page.schema.json b/schemas/landing-page.schema.json index 5d49dc7..e6fb7f2 100644 --- a/schemas/landing-page.schema.json +++ b/schemas/landing-page.schema.json @@ -2,7 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { - "assets": { + "upcomingAssets": { "type": "array", "items": { "type": "object", @@ -45,5 +45,5 @@ } } }, - "required": ["assets"] + "required": ["upcomingAssets"] } From 498a7b581406a59c62259a31e42155c6ec836447 Mon Sep 17 00:00:00 2001 From: JeremyParish69 <95667791+JeremyParish69@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:26:53 -0600 Subject: [PATCH 4/6] Create landing-page.json --- cms/landing-page/landing-page.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cms/landing-page/landing-page.json diff --git a/cms/landing-page/landing-page.json b/cms/landing-page/landing-page.json new file mode 100644 index 0000000..d94f070 --- /dev/null +++ b/cms/landing-page/landing-page.json @@ -0,0 +1,12 @@ +{ + "upcomingAssets": [ + { + "assetName": "Osmosis", + "symbol": "OSMO", + "chainName": "Osmosis", + "logoURL": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", + "estimatedLaunchDateUtc": "2049-01-01T01:01:01Z", + "osmosisAirdrop": false + } + ] +} From 87ef0d0139c90fca40d14995693c8bc3f36d42db Mon Sep 17 00:00:00 2001 From: JeremyParish69 <95667791+JeremyParish69@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:15:02 -0600 Subject: [PATCH 5/6] Create validate-landing-page.yml --- .github/workflows/validate-landing-page.yml | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/validate-landing-page.yml diff --git a/.github/workflows/validate-landing-page.yml b/.github/workflows/validate-landing-page.yml new file mode 100644 index 0000000..4e56835 --- /dev/null +++ b/.github/workflows/validate-landing-page.yml @@ -0,0 +1,22 @@ +on: + pull_request: + branches: + - main +name: Pull request workflow +jobs: + validate_earn_strategies: + name: Validate Landing Page Content + runs-on: ubuntu-latest + steps: + + - name: Checkout repository + uses: actions/checkout@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + submodules: true + + - name: Install JSON-Schema-Validator + run: npm install -g jsonschema + + - name: Validate Landing Page Schema + run: jsonschema -i ./cms/landing-page/landing-page.json ./schemas/landing-page.schema.json From 2234d7449dd0c708c13b876a76ade29e41791675 Mon Sep 17 00:00:00 2001 From: JeremyParish69 <95667791+JeremyParish69@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:17:13 -0600 Subject: [PATCH 6/6] Update landing-page.schema.json --- schemas/landing-page.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/landing-page.schema.json b/schemas/landing-page.schema.json index e6fb7f2..8d444bc 100644 --- a/schemas/landing-page.schema.json +++ b/schemas/landing-page.schema.json @@ -26,8 +26,8 @@ "type": "string", "format": "uri", "description": "The URL to the logo image of the asset.", + "pattern": "^https://raw.githubusercontent.com/cosmos/chain-registry/master/.+\\.png$", "example": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png" - "pattern": "^https://raw.githubusercontent.com/cosmos/chain-registry/master/.+\\.png$" }, "estimatedLaunchDateUtc": { "type": "string",