File tree Expand file tree Collapse file tree 3 files changed +13
-16
lines changed Expand file tree Collapse file tree 3 files changed +13
-16
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " tutorcruncher-socket" ,
3- "version" : " 1.0.1 " ,
3+ "version" : " 1.0.2 " ,
44 "description" : " TutorCruncher socket" ,
55 "author" : " Samuel Colvin <samuel@tutorcruncher.com>" ,
66 "private" : false ,
Original file line number Diff line number Diff line change 11import React from 'react'
22
3+ const HELP_SITE = 'help.tutorcruncher.com/tc-socket/'
4+
35const Error = ( { children} ) => (
46 < div className = "tcs-errors" >
5- < p >
6- An error occurred with TutorCruncher socket:
7- </ p >
7+ < p > An error occurred while loading TutorCruncher socket:</ p >
88 < p className = "tcs-error-content" > { children } </ p >
99 < p >
10- It's likely that you've configured socket wrongly. You might get more information from the developer console, or
11- < a target = "_blank" rel = "noopener noreferrer" href = " https://help.tutorcruncher.com/tc-socket/" > help.tutorcruncher.com/tc-socket/ </ a > ,
12- if you can't work out what's wrong contact support@tutorcruncher.com.
10+ It's likely that you've configured socket wrongly. You might get more information from the developer console,
11+ or < a target = "_blank" rel = "noopener noreferrer" href = { ' https://' + HELP_SITE } > { HELP_SITE } </ a > ,
12+ if you still can't work out what's wrong contact support@tutorcruncher.com.
1313 </ p >
1414 </ div >
1515)
Original file line number Diff line number Diff line change 4141.tcs-errors {
4242 margin : 5px ;
4343 padding : 10px 10px ;
44- font-size : 13px ;
44+ font-size : 14px !important ;
45+ border : 1px solid #f44 ;
46+ border-radius : 4px ;
47+ color : #444 ;
4548 img {
4649 width : 100% ;
4750 }
4851 .tcs-error-content {
49- font-family : monospace ;
50- background-color : darken (white , 5% );
51- padding : 20px 10px ;
52+ color : black ;
53+ padding : 0 20px ;
5254 white-space : pre-wrap ;
5355 word-wrap : break-word ;
54- font-size : 12px ;
55- }
56- dt {
57- margin : 15px 0 5px ;
58- font-weight : 500 ;
5956 }
6057}
6158
You can’t perform that action at this time.
0 commit comments