GithubHelp home page GithubHelp logo

b12io / kinase Goto Github PK

View Code? Open in Web Editor NEW
78.0 78.0 8.0 4.38 MB

Kinase is a pluggable browser extension allowing you to label content on the web.

License: Apache License 2.0

JavaScript 89.81% CSS 10.19%

kinase's People

Contributors

ashleyhlai avatar jrbotros 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kinase's Issues

Consider renaming `annotations`

Proposal:

  • AnnotationMapping -> AnnotatedItem
  • AnnotatedItemField
  • (eventually) AnnotatedItemCollection
  • redux state should correspond to whatever names

Improve proxy action alias handling

Right now it's pretty confusing, largely because the proxy actions and their aliases are in separate files. We should package actions and their proxies together, or ideally automatically create proxy actions from their aliases.

Provide human-readable annotation names via API

The user should be able to provide an optional displayName parameter in the schema for each annotation, which should be read into redux and displayed instead of the annotation string if present.

TypeError: Cannot read property 'undefined' of undefined (context[annotationName])

Unsure why, but after compiling a test with the kinase-example repo, I see the above error.

Trace

Uncaught (in promise) TypeError: Cannot read property 'undefined' of undefined
    at selectors.js:49
    at index.js:76
    at index.js:36
    at index.js:90
    at index.js:36
    at index.js:86
    at index.js:36
    at Function.mapToProps (index.jsx:211)
    at mapToPropsProxy (wrapMapToProps.js:43)
    at Function.detectFactoryAndVerify (wrapMapToProps.js:52)

api.js

export function load(contextKey) {
  const schema = {
    "schemas": {
      "products": {
        "fields": {
          "name": "text",
          "description": "rich-text",
          "photo": "image"
        }
      }
    },
    "mappings": {
      "products": [],
    }
  }
  return JSON.stringify(schema);
}

export function save(updatedMappings, contextKey) {
  console.log(updateMappings, contextKey);
}

Any ideas?

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.