Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pondorasti committed Jan 28, 2023
1 parent 82b0048 commit 5201377
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
# Chirp

## TODO
### widget

- [x] intents (retweet, like, comment)
- [x] tweet url unfurl
- [x] layout pixel peeping
- [x] image cards
- [ ] annotated text
- [ ] twitter logo
- [x] gif/video cards
- [x] icon -> https://icon.ray.so/
- [x] twitter logo
- [ ] new intent group
- [ ] annotated text
- [ ] property menu
- [ ] description
- [ ] banner
- [ ] alt text

### www
- [x] custom font
- [x] domain
- [x] analytics
- [ ] twitter card
- [ ] footer
- [ ] turborepo setup?

## Notes

Expand Down
2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Alexandru Ţurcanu
Copyright (c) 2023 Alexandru Ţurcanu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 16 additions & 2 deletions widget/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
{
"name": "chirp",
"description": "Your Figma widget",
"version": "1.0.0",
"name": "Chirp - Embed Tweets in your Figma or FigJam files",
"description": "Your Figma widget",
"keywords": [
"twitter",
"tweet",
"retweet",
"embed",
"thread",
"twtr",
"social",
"media",
"network",
"blog",
"blue",
"bird"
],
"author": "Alexandru Ţurcanu",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion widget/ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
window.onmessage = async (event) => {
if (event.data.pluginMessage.type === 'fetch-tweet' && !!event.data.pluginMessage.id) {
var request = new XMLHttpRequest()
request.open('GET', `http://localhost:3000/api/tweet/${event.data.pluginMessage.id}`) // https://alexandru.so
request.open('GET', `https://chirp.alexandru.so/api/tweet/${event.data.pluginMessage.id}`) // https://alexandru.so
request.responseType = 'json'
request.onload = () => {
window.parent.postMessage({ pluginMessage: request.response }, '*')
Expand Down

1 comment on commit 5201377

@vercel
Copy link

@vercel vercel bot commented on 5201377 Jan 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.