Coder Social home page Coder Social logo

cannercms / canner-firestore-cms Goto Github PK

View Code? Open in Web Editor NEW
23.0 5.0 17.0 1.29 MB

The example of building the CMS with Canner and Firestore

Home Page: https://fir-cms-15f83.firebaseapp.com

License: Apache License 2.0

JavaScript 99.02% HTML 0.98%
firestore firebase firebase-cms cms canner canner-cms canner-firestore-cms demo

canner-firestore-cms's People

Contributors

abz53378 avatar chilijung avatar esbenvb 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  avatar  avatar  avatar

canner-firestore-cms's Issues

Google map for geoPoint shows as a Grey Box

Based on another issue reported, I was able to show the geoPoint field by including the places api script. The places text box works fine but the Google Map below it shows with a grey background, although the rest of the map UI is there.

I'll be thankful if there is a solution to this. Alternatively, is there a way to include a custom field for the map that we can use from another module in react?

Where is data stored?

I've followed all tutorial instructions, got the app running locally with the default schema, built, deployed, etc.

I can see it being served via a .firebaseapp.com address, however, When look at "Databases" for the created project - I can't see any firestore db set up.
Where is this stored?

any known alternatives to this project?

Could anyone suggest a maintained alternative to this project? Looking to add blog to my firebase-based project which must live under a subdirectory and I can't switch my dns records (otherwise wordpress could be a good option)

Internationalization

Hi there!

Thank you for this great work! I am trying to create a CMS that has English and Norwegian as base languages. I followed the guide here:
https://www.cannercms.com/docs/guides-internationalization

In this project, there was no canner.server.js, so I created one and included the following as test code:

//canner.server.js
exports.cms.i18nMessages = {
  en: {
    'hours_label': 'Opening Hours'
  },
  no: {
    'hours_label': 'Opening Hours Norwegian'
  }
}

Then in one of my schema, I added:
<string keyName="hours" title="${hours_label}"/>

When I run, it doesn't render the text; instead, it just shows as hours_label.

I also tried react-intl. But react-intl somehow does not work for components. It works on higher level such as in dashboard.js. For components, the function {this.props.intl.formatMessage(messageObj)} works but does not appear localized based on selected language. It doesn't seem to get the IntlProvider data.

I'll be thankful if you can set me in the right direction for internationalization.

render key in uiParams giving error when using a local function

If I do

import { renderUrl } from "./utils/columns";

and use it as

render: renderUrl

It works

but If I copy and paste the renderUrl function to the same file:

function renderUrl(text) {
  if (text) {
    return <a href={`https://${text}`}>https://{text}</a>;
  } else {
    return "-";
  }
}

It gives me an error:

Error: unsupported type 'a'

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.