Coder Social home page Coder Social logo

automattic / jetpack-publicize-components Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 0.0 1.69 MB

[READ ONLY] A library of JS components required by the Publicize editor plugin This repository is a mirror, for issue tracking and development head to: https://github.com/automattic/jetpack

Home Page: https://github.com/Automattic/jetpack/

License: Other

JavaScript 85.83% SCSS 6.88% TypeScript 7.30%

jetpack-publicize-components's Introduction

Publicize Components

A library of JS components required by the Publicize editor plugin

Data approach

The Store

The Publicize module stores the connection data in the post meta. That way the data is specific to a post, which allows us to check if the post can be shared. There's also a jetpack/publicize sub-store that adds additional connection data from other data sources, such as WPCOM. We save that additional data to the post meta, and access it from the post meta as the single source of truth. For instance, to get all connections for the given post you'd like to use the getConnections() selector, but in the end, the selector will pick the data from the post meta.

Probably this implementation could be changed with a different approach, for instance, extending straightforward the core store in order to deal with the publicize data from there, getting rid of this new jetpack/publicize store.

Hooks

Although it's completely possible to pick data and dispatch actions from the store, we encourage using the hooks when it's doable.

How to install Publicize Components

Installation From Git Repo

Contribute

Get Help

Security

Need to report a security vulnerability? Go to https://automattic.com/security/ or directly to our security bug bounty site https://hackerone.com/automattic.

License

publicize is licensed under GNU General Public License v2 (or later)

jetpack-publicize-components's People

Contributors

adimoldovan avatar anomiex avatar bindlegirl avatar cgastrell avatar coder-karen avatar codeyguydylan avatar danielpost avatar dhasilva avatar gmjuhasz avatar gogdzl avatar haqadn avatar ianramosc avatar ice9js avatar jeherve avatar jsnmoon avatar kraftbj avatar manzoorwanijk avatar monsieur-z avatar nateweller avatar nunyvega avatar oskosk avatar ouikhuan avatar pablinos avatar samiff avatar sdixon194 avatar sergeymitr avatar siobhyb avatar spsiddarthan avatar thingalon avatar zinigor avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.