mirror of
https://github.com/wassname/talk.git
synced 2026-08-09 12:30:42 +08:00
add plugins
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "Coral Plugin Love",
|
||||
"slot": "Comment.InfoBar"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import React from 'react';
|
||||
import styles from './style.css';
|
||||
|
||||
export default (props) => (
|
||||
<div className={styles.Love}>
|
||||
<button>Love</button>
|
||||
</div>
|
||||
);
|
||||
@@ -0,0 +1,9 @@
|
||||
.Love {
|
||||
display: inline-block;
|
||||
button {
|
||||
padding: 10px 2px;
|
||||
border-radius: 3px;
|
||||
background: deepskyblue;
|
||||
color: #161616;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "Coral Plugin Tab Monitor",
|
||||
"slot": "Stream"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
import {TabBar, Tab} from 'coral-ui';
|
||||
|
||||
console.log('exported');
|
||||
|
||||
export default (props) => (
|
||||
<TabBar>
|
||||
<Tab>
|
||||
Monitor
|
||||
</Tab>
|
||||
</TabBar>
|
||||
);
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "Coral Plugin Respect",
|
||||
"slot": "Comment.Detail"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
import styles from './style.css';
|
||||
|
||||
export default (props) => (
|
||||
<div className={styles.Respect}>
|
||||
<button>Respect</button>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
.Respect {
|
||||
display: inline-block;
|
||||
button {
|
||||
padding: 10px 2px;
|
||||
border-radius: 3px;
|
||||
background: #ffa16e;
|
||||
color: #161616;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export const SomeAction = () => ({type: 'SomeAction'});
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"name": "Coral Plugin"
|
||||
}
|
||||
Reference in New Issue
Block a user