File tree 3 files changed +29
-12
lines changed 3 files changed +29
-12
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- printWidth : 140 ,
3
- trailingComma : "none" ,
4
- tabWidth : 2 ,
5
- semi : false ,
6
2
singleQuote : true ,
7
- proseWrap : 'never'
8
- } ;
3
+ printWidth : 120 ,
4
+ proseWrap : 'never' ,
5
+ semi : false ,
6
+ trailingComma : 'none' ,
7
+ arrowParens : 'avoid'
8
+ }
Original file line number Diff line number Diff line change 1
1
$ ( '.font-weight-normal' ) . on ( 'click' , ( ) => {
2
2
alert ( '哎呦, 点到我头了~~' )
3
3
} )
4
+
5
+ const demoNav = [
6
+ {
7
+ pagePath : WS_PLATFORM === 'github' ? '/webpack-seed/index.html' : '/index.html' ,
8
+ display : '首页'
9
+ } ,
10
+ {
11
+ pagePath : WS_PLATFORM === 'github' ? '/webpack-seed/html/test-page.html' : '/html/test-page.html' ,
12
+ display : '测试页'
13
+ } ,
14
+ {
15
+ pagePath : WS_PLATFORM === 'github' ? '/webpack-seed/html/fonts-page.html' : '/html/fonts-page.html' ,
16
+ display : '图标页'
17
+ }
18
+ ]
19
+
20
+ $ ( '.nav-list' ) . html ( demoNav . map ( info => `<a class="p-2 text-dark" href="${ info . pagePath } ">${ info . display } </a>` ) )
21
+ $ ( '.nav-wrapper' ) . append ( `
22
+ <a class="btn btn-outline-primary" href="${
23
+ WS_PLATFORM === 'github' ? '/webpack-seed/html/login-page.html' : '/html/login-page.html'
24
+ } ">登录</a>`)
Original file line number Diff line number Diff line change 1
- <div class =" d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom shadow-sm" >
1
+ <div class =" nav-wrapper d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom shadow-sm" >
2
2
<h5 class =" my-0 mr-md-auto font-weight-normal" >Webpack Seed</h5 >
3
- <nav class =" my-2 my-md-0 mr-md-3" >
4
- <a class =" p-2 text-dark" href =" /index.html" >首页</a >
5
- <a class =" p-2 text-dark" href =" /html/test-page.html" >测试页</a >
6
- <a class =" p-2 text-dark" href =" /html/fonts-page.html" >图标页面</a >
3
+ <nav class =" my-2 my-md-0 mr-md-3 nav-list" >
7
4
</nav >
8
- <a class =" btn btn-outline-primary" href =" /html/login-page.html" >登录</a >
9
5
</div >
You can’t perform that action at this time.
0 commit comments