Giter Site home page Giter Site logo

originalexe / contentmodel.io-web Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 1.0 2.8 MB

contentmodel.io is a community-sourced, visual directory of Contentful content models

Home Page: https://contentmodel.io

JavaScript 1.70% CSS 1.46% TypeScript 96.84%
contentful

contentmodel.io-web's Introduction

contentmodel.io-web's People

Contributors

davidsanwald avatar originalexe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

davidsanwald

contentmodel.io-web's Issues

JSON export was failing on

Hi,

I've come across an issue when importing from a Contentful space when linkContentType was a straight key value pair insted of an object with a key value pairs.

For example

"validations": [ { "linkContentType": "someValue" } ],

would return an error when importing the data from all three import types.

Application error: a client-side exception has occurred (developer guidance).

The console would show:

framework-3af989d3dbeb77832f99.js:1 TypeError: r.linkContentType.filter is not a function at 970.2a6080e7e8af1e58dd89.js:1 at 970.2a6080e7e8af1e58dd89.js:1 at Array.forEach (<anonymous>) at 970.2a6080e7e8af1e58dd89.js:1 at Array.forEach (<anonymous>) at r (970.2a6080e7e8af1e58dd89.js:1) at o (970.2a6080e7e8af1e58dd89.js:1) at 397.174af88c9883836b7998.js:1 at Ii (framework-3af989d3dbeb77832f99.js:1) at t.unstable_runWithPriority (framework-3af989d3dbeb77832f99.js:1) uu @ framework-3af989d3dbeb77832f99.js:1 main-5947f05c764f928168cd.js:1 TypeError: r.linkContentType.filter is not a function at 970.2a6080e7e8af1e58dd89.js:1 at 970.2a6080e7e8af1e58dd89.js:1 at Array.forEach (<anonymous>) at 970.2a6080e7e8af1e58dd89.js:1 at Array.forEach (<anonymous>) at r (970.2a6080e7e8af1e58dd89.js:1) at o (970.2a6080e7e8af1e58dd89.js:1) at 397.174af88c9883836b7998.js:1 at Ii (framework-3af989d3dbeb77832f99.js:1) at t.unstable_runWithPriority (framework-3af989d3dbeb77832f99.js:1)

Changing to the following

"validations": [ { [ "linkContentType": "someValue" ] } ],

Allowed the import to complete.

Hope this is enough information.

Thank you for the wonderful software!

Add OpenGraph Metadata to site, entries

When the site URL is shared, or a content model is shared, some opengraph metadata and image preview would make that a better experience.

  • Add basic OG meta to site, entries
  • Add OG image card to main landing page (can be static) Happy to help with this one
  • Figure out a way to render an image of the model and bake it into a cool card. Cloudinary, or PhantomJS, or something.

Proposed card design (figma artwork):
image

Look into links handling with markdown

Right now the links are supported in the content model details section, but they are not rendered obviously. Also need to look into the security implications of this.

Accessible colors in Dark Mode

I run dark mode, and it's great to see ContentModel dot io support it!

Consider ensuring that text and especially links appear with sufficient contrast in Dark Mode scenarios.

Current state:

image

Proposed, accessible styling:

image

I selected a warm-hued pale yellow to go with the overall brand, and contrast the dark blue background.

    text-decoration-line: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    color: hsl(48deg 100% 80%);

Not able to use Visualize content model

Hello,

I have tried multiple time to Visualize content model either from Pull from contentfull or Copy/Paste but was not able to go up to the end.

  • Pull from content : connection is working. I can select my space en environment but then run into Could not fetch the content model from the API. Check that you have provided the correct details.

  • Copy/Paste : I have exported my content models from contentful CLI but when I tried to Validate and Continue I run into We could not parse the JSON provided, copy-paste the full JSON as exported via either Contentful CLI or the Delivery API

Please let me know, what information you need to debug it ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.