https://github.com/circuit/polymer
Use the new Circuit web components instead - https://github.com/circuit/circuit-web-components
https://github.com/circuit/polymer
Last synced: about 1 year ago
JSON representation
Use the new Circuit web components instead - https://github.com/circuit/circuit-web-components
- Host: GitHub
- URL: https://github.com/circuit/polymer
- Owner: circuit
- Created: 2015-04-14T13:23:39.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-02-26T16:21:35.000Z (over 7 years ago)
- Last Synced: 2025-02-09T20:33:35.923Z (over 1 year ago)
- Language: CSS
- Homepage:
- Size: 702 KB
- Stars: 0
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Obsolete. Use https://github.com/circuit/circuit-web-components instead
# Circuit Polymer Components compatible with Polymer 0.5
Example polymer components for the Circuit Collaboration Software by Unify.
> For Polymer 1.0 compatible components view the individual repos.
> E.g. https://github.com/yourcircuit/circuit-api
> To see a list of all Circuit Polymer 1.0 components filter by 'circuit-'
> https://github.com/yourcircuit/?utf8=%E2%9C%93&query=circuit-
## Prerequisites
To use the SDK you need to get free developer account. Get your developer account today at [https://developers.circuit.com](https://developers.circuit.com).
## Compatibility
Polymer components are supported on any modern browser. Some functionality such as WebRTC is currently limited to Chrome, but IE and FF support is near.
## List of example components
**circuit-api**
[API Documentation](https://rawgit.com/yourcircuit/polymer/master/components/circuit-api/index.html) | [Source code](https://github.com/yourcircuit/polymer/tree/master/components/circuit-api)
The circuit-api component is a non-UI component that acts as interface to the new leight weight [JS SDK] (JSDoc link to follow). We are trying our best to keep the circuit-api APIs up to date with the JS SDK, but if something is missing you can always add it.
**circuit-chat**
[API Documentation](https://rawgit.com/yourcircuit/polymer/master/components/circuit-chat/index.html) | [Source code](https://github.com/yourcircuit/polymer/tree/master/components/circuit-chat)
Simple chat module wher you can post messages in a Circuit direct/group conversation and get notified on new messages arriving. Uses session cookie to login if available, otherwise asks for credentials.
[Try it out live](https://rawgit.com/yourcircuit/polymer/master/chat.html)
All that's needed is to import the component and use it with a single line of HTML code.
```html
```
... you can also listen to the on-message event in JavaScript
```javascript
document.getElementById('chat').addEventListener('message', function (m) {
console.log('Message from ' + m.detail.sender + ': ' + m.detail.text);
});
```
## Run these examples locally
1. Clone this repo
2. Install node-static via `npm install node-static`
3. Run the example by navigating to `http://localhost:8080/chat-example.html`
## Develop your own component
1. Fork this repo
2. Create your own amazing components
3. Include circuit-api to take advantage of the Circuit API
4. Share them with the rest of us :)