rewrite draft using preact

This commit is contained in:
igoradamenko
2018-01-23 20:15:35 +02:00
parent 26e2445913
commit 1f4e1b160f
31 changed files with 374 additions and 266 deletions
+10
View File
@@ -0,0 +1,10 @@
import fetcher from './fetcher'
export const find = ({ url }) => fetcher.get(`/find?url=${url}&sort=time&format=tree`);
export const vote = ({ id, url, value }) => fetcher.get(`/vote/${id}?url=${url}&vote=${value}`);
export default {
find,
vote,
};
+7 -3
View File
@@ -1,11 +1,15 @@
const baseUrl = 'https://demo.remark42.com';
const apiBase = '/api/v1'
const siteId = 'remark';
const nodeId = 'remark42';
const id = 'remark42';
const url = 'https://radio-t.com/p/2017/12/16/podcast-576/';
const userId = 'dev'; // for develop only
export {
module.exports = {
baseUrl,
siteId,
apiBase,
nodeId,
id,
url,
userId,
};
+1
View File
@@ -0,0 +1 @@
$offset: 24px;