File tree Expand file tree Collapse file tree
src/admin/client/modules/apps/account/appDetails Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+
3+ import messages from 'lib/text' ;
4+ import style from './style.css' ;
5+
6+ import Paper from 'material-ui/Paper' ;
7+ import RaisedButton from 'material-ui/RaisedButton' ;
8+ import Divider from 'material-ui/Divider' ;
9+ import FontIcon from 'material-ui/FontIcon' ;
10+
11+ const AppDescription = ( {
12+ name,
13+ description,
14+ coverUrl,
15+ developer,
16+ enabled
17+ } ) => (
18+ < div style = { { maxWidth : 720 , width : '100%' } } >
19+ < Paper className = "paper-box" zDepth = { 1 } >
20+ < div className = { style . innerBox } >
21+ < div className = "row" >
22+ < div className = "col-xs-4" >
23+ < img src = { coverUrl } alt = { name } className = { style . cover } />
24+ </ div >
25+ < div className = "col-xs-8" >
26+ < h1 className = { style . title } > { name } </ h1 >
27+ < div className = { style . developer } > { developer } </ div >
28+ { /* {!enabled &&
29+ <RaisedButton label={messages.enable} primary={true} disabled={loadingEnableDisable} onClick={enableService} />
30+ }
31+ {enabled &&
32+ <RaisedButton label={messages.disable} disabled={loadingEnableDisable} onClick={disableService} />
33+ } */ }
34+ </ div >
35+ </ div >
36+ < div
37+ className = { style . description }
38+ dangerouslySetInnerHTML = { { __html : description } }
39+ />
40+ </ div >
41+ </ Paper >
42+ </ div >
43+ ) ;
44+
45+ export default AppDescription ;
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import AppDescription from './description' ;
3+ import style from './style.css' ;
4+ import Paper from 'material-ui/Paper' ;
5+ import apps from 'src/apps' ;
6+
7+ const AppDetails = ( { match } ) => {
8+ const { appKey } = match . params ;
9+ const app = apps . find ( a => a . Description . key === appKey ) ;
10+ const AppModule = app . App ;
11+ const appDescription = app . Description ;
12+
13+ return (
14+ < div className = { style . detailsContainer + ' scroll col-full-height' } >
15+ < AppDescription { ...appDescription } />
16+ < div style = { { maxWidth : 720 , width : '100%' } } >
17+ < Paper className = "paper-box" zDepth = { 1 } >
18+ < div className = { style . innerBox } >
19+ < AppModule />
20+ </ div >
21+ </ Paper >
22+ </ div >
23+ </ div >
24+ ) ;
25+ } ;
26+
27+ export default AppDetails ;
Original file line number Diff line number Diff line change 1+ .innerBox {
2+ padding : 30px ;
3+ }
4+
5+ .title {
6+ font-size : 30px ;
7+ font-weight : 400 ;
8+ line-height : 35px ;
9+ margin : 0 0 10px 0 ;
10+ overflow : hidden;
11+ white-space : nowrap;
12+ text-overflow : ellipsis;
13+ }
14+
15+ .developer {
16+ color : # 616161 ;
17+ font-size : 14px ;
18+ margin : 0 0 10px 0 ;
19+ }
20+
21+ .cover {
22+ width : 100% ;
23+ }
24+
25+ .description {
26+ margin-top : 30px ;
27+ font-size : 14px ;
28+ line-height : 24px ;
29+ overflow : hidden;
30+ word-break : break-word;
31+ }
32+
33+ .description a {
34+ color : # 008eb4 ;
35+ }
36+
37+ .description img {
38+ width : 90% ;
39+ box-shadow : 0px 0px 10px # AAA ;
40+ border-radius : 5px ;
41+ display : block;
42+ margin : 30px auto;
43+ }
44+
45+ .description ul ,
46+ .description ol {
47+ margin : 0 ;
48+ }
49+
50+ .detailsContainer {
51+ display : flex;
52+ flex-direction : column;
53+ align-items : center;
54+ }
55+
56+ .logsBox {
57+ max-height : 300px ;
58+ overflow : auto;
59+ }
60+
61+ .logsItem {
62+ padding : 12px 30px ;
63+ font-size : 14px ;
64+ }
65+
66+ .logsItem : nth-child (odd) {
67+ background : rgba (0 , 0 , 0 , 0.03 );
68+ }
69+
70+ .logsItem : hover {
71+ background : rgba (0 , 0 , 0 , 0.2 );
72+ }
73+
74+ .logDate {
75+ color : # 777 ;
76+ font-size : 11px ;
77+ }
78+
79+ .logMessage {
80+
81+ }
82+
83+ .action {
84+ padding : 30px ;
85+ border-bottom : 1px solid rgb (224 , 224 , 224 );
86+ }
87+
88+ .action : last-child {
89+ border-bottom : none
90+ }
You can’t perform that action at this time.
0 commit comments