From a6120addd8adbdcd253be592676ef45fcae47386 Mon Sep 17 00:00:00 2001 From: CianLR Date: Mon, 18 Feb 2019 10:31:36 +0000 Subject: [PATCH 1/2] Add ability for user to stick custom CSS into their post titles and bodies --- chump/src/components/account_edit.tsx | 42 ++++++++++++++++++ chump/src/components/create_article_form.tsx | 2 +- chump/src/components/feed.tsx | 2 +- chump/src/components/post.tsx | 11 ++++- chump/src/components/search_results.tsx | 2 +- chump/src/components/single_post.tsx | 2 +- chump/src/components/user_feed.tsx | 2 +- chump/src/models/edit_user.ts | 3 ++ chump/src/models/posts.ts | 45 ++++++++++++++++---- services/database/rabble_schema.sql | 2 + services/database/users_servicer.py | 7 ++- services/feed/main.go | 5 ++- services/proto/database.proto | 3 ++ services/proto/feed.proto | 4 ++ services/proto/users.proto | 2 + services/users/update.py | 2 + skinny/handlers.go | 6 +-- 17 files changed, 121 insertions(+), 21 deletions(-) diff --git a/chump/src/components/account_edit.tsx b/chump/src/components/account_edit.tsx index d1d82692..1b41000c 100644 --- a/chump/src/components/account_edit.tsx +++ b/chump/src/components/account_edit.tsx @@ -9,6 +9,8 @@ interface IAccountEditState { displayName: string; currentPassword: string; newPassword: string; + postBodyCss: string; + postTitleCss: string; privateAccount: boolean; cancel: boolean; } @@ -27,6 +29,8 @@ export class AccountEdit extends React.Component { if (!response.success) { alert("Error editing: " + response.error); @@ -113,6 +121,26 @@ export class AccountEdit extends React.Component +
+ +