File tree Expand file tree Collapse file tree 7 files changed +146
-18
lines changed Expand file tree Collapse file tree 7 files changed +146
-18
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,20 @@ import {
8
8
} from '../constants/es-footer' ;
9
9
10
10
export default class EsPageHeader extends Component {
11
- currentYear = null
12
-
13
- constructor ( ) {
14
- super ( ) ;
15
- this . currentYear = new Date ( ) . getUTCFullYear ( ) ;
16
- }
17
-
18
11
socialLinks = socialLinks
19
12
20
13
tagline = tagline
21
14
contributorLinks = contributorLinks
22
- infoLinks = infoLinks
15
+
16
+ get currentYear ( ) {
17
+ return new Date ( ) . getUTCFullYear ( )
18
+ }
19
+
20
+ get infoLinks ( ) {
21
+ if ( this . args && this . args . infoLinks ) {
22
+ return this . args . infoLinks ;
23
+ }
24
+
25
+ return infoLinks ;
26
+ }
23
27
}
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ export default class EsHeader extends Component {
15
15
}
16
16
17
17
get navLinks ( ) {
18
- if ( this . links ) {
19
- return this . links ;
18
+ if ( this . args . links ) {
19
+ return this . args . links ;
20
20
}
21
21
22
22
return defaultLinks ;
Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ const infoLinks = [{
51
51
href : 'https://emberjs.com/security'
52
52
} , {
53
53
name : 'Legal' ,
54
- href : 'https://emberjs.com/legal'
54
+ href : 'https://emberjs.com/about/ legal'
55
55
} , {
56
56
name : 'Branding' ,
57
- href : 'https://emberjs.com/brand ' ,
57
+ href : 'https://emberjs.com/logos ' ,
58
58
lineBreak : true
59
59
} , {
60
60
name : 'Community Guidelines' ,
Original file line number Diff line number Diff line change 1
1
<footer class =" es-footer" ...attributes>
2
2
{{!--
3
3
Pass footer properties to support
4
- {{es-footer tagline="My custom tagline" contributorLinks=myLinks}}
4
+ <EsFooter @infoLinks ={{someOtherLinks}} />
5
5
--}}
6
- {{ es-footer/es-info infoLinks =infoLinks }}
6
+ < EsFooter::EsInfo @ infoLinks ={{ this. infoLinks}} />
7
7
8
8
<hr class =" footer-hr" >
9
9
10
- {{ es-footer/es-statement tagline =tagline socialLinks =socialLinks }}
10
+ < EsFooter::EsStatement @ tagline ={{ tagline }} @ socialLinks ={{ socialLinks }} />
11
11
12
12
<hr class =" footer-hr" >
13
13
14
- {{ es-footer/es-contributions contributorLinks =contributorLinks }}
15
- </footer >
14
+ < EsFooter::EsContributions @ contributorLinks ={{ contributorLinks }} />
15
+ </footer >
Original file line number Diff line number Diff line change 15
15
</button >
16
16
17
17
<ul class =" navbar-list" >
18
- {{ #each navLinks as |link index |}}
18
+ {{ #each this. navLinks as |link index |}}
19
19
{{ es-header/navbar-link link =link index =index }}
20
20
{{ /each }}
21
21
</ul >
Original file line number Diff line number Diff line change 29
29
"@ember/render-modifiers" : " ^1.0.0" ,
30
30
"broccoli-funnel" : " ^2.0.1" ,
31
31
"broccoli-merge-trees" : " ^3.0.1" ,
32
+ "ember-angle-bracket-invocation-polyfill" : " ^2.0.2" ,
32
33
"ember-cli-babel" : " ^7.7.3" ,
33
34
"ember-cli-htmlbars" : " ^3.0.1" ,
34
35
"ember-cli-postcss" : " ^4.2.0" ,
You can’t perform that action at this time.
0 commit comments