Skip to content

Commit cc0f2c7

Browse files
committed
webpack bugfix, tooltip modified, preview button string changed(toggle Preview -> Preview / Edit)
1 parent 72f6468 commit cc0f2c7

7 files changed

Lines changed: 19 additions & 18 deletions

File tree

browser/main/HomePage/ArticleDetail.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export default class ArticleDetail extends React.Component {
2929
super(props)
3030

3131
this.state = {
32-
article: makeInstantArticle(props.activeArticle)
32+
article: makeInstantArticle(props.activeArticle),
33+
previewMode: false
3334
}
3435
}
3536

@@ -139,10 +140,10 @@ export default class ArticleDetail extends React.Component {
139140
</div>
140141
<div className='right'>
141142
<button onClick={e => this.handleEditButtonClick(e)} className='editBtn'>
142-
<i className='fa fa-fw fa-edit'/><span className='tooltip'>Edit 編集 (e)</span>
143+
<i className='fa fa-fw fa-edit'/><span className='tooltip'>Edit (e)</span>
143144
</button>
144145
<button onClick={e => this.handleDeleteButtonClick(e)} className='deleteBtn'>
145-
<i className='fa fa-fw fa-trash'/><span className='tooltip'>Delete 削除 (d)</span>
146+
<i className='fa fa-fw fa-trash'/><span className='tooltip'>Delete (d)</span>
146147
</button>
147148
</div>
148149
</div>
@@ -252,7 +253,7 @@ export default class ArticleDetail extends React.Component {
252253
<div className='right'>
253254
{
254255
this.state.article.mode === 'markdown'
255-
? (<button className='preview' onClick={e => this.handleTogglePreviewButtonClick(e)}>Toggle Preview</button>)
256+
? (<button className='preview' onClick={e => this.handleTogglePreviewButtonClick(e)}>{!this.state.previewMode ? 'Preview' : 'Edit'}</button>)
256257
: null
257258
}
258259
<button onClick={e => this.handleCancelButtonClick(e)}>Cancel</button>

browser/main/HomePage/ArticleNavigator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ export default class ArticleNavigator extends React.Component {
5959
<div className='userName'>local</div>
6060
<button onClick={e => this.handlePreferencesButtonClick(e)} className='settingBtn'>
6161
<i className='fa fa-fw fa-chevron-down'/>
62-
<span className='tooltip'>Preferences 環境設定</span>
62+
<span className='tooltip'>Preferences</span>
6363
</button>
6464
</div>
6565

6666
<div className='controlSection'>
6767
<button onClick={e => this.handleNewPostButtonClick(e)} className='newPostBtn'>
6868
New Post
69-
<span className='tooltip'>新しいポスト (⌘ + Enter or a)</span>
69+
<span className='tooltip'>Create a new Post (⌘ + Enter or a)</span>
7070
</button>
7171
</div>
7272

@@ -75,7 +75,7 @@ export default class ArticleNavigator extends React.Component {
7575
<div className='title'>Folders</div>
7676
<button onClick={e => this.handleNewFolderButton(e)} className='addBtn'>
7777
<i className='fa fa-fw fa-plus'/>
78-
<span className='tooltip'>New folder 新しいフォルダー</span>
78+
<span className='tooltip'>Create a new folder</span>
7979
</button>
8080
</div>
8181
<div className='folderList'>

browser/main/HomePage/ArticleTopBar.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,16 @@ export default class ArticleTopBar extends React.Component {
9292
: null
9393
}
9494
<div className={'tooltip' + (this.state.isTooltipHidden ? ' hide' : '')}>
95-
- Search by tag タグで検索 : #{'{string}'}<br/>
96-
- Search by folder フォルダーで検索 : in:{'{folder_name}'}
95+
- Search by tag : #{'{string}'}<br/>
96+
- Search by folder : in:{'{folder_name}'}
9797
</div>
9898
</div>
9999
</div>
100100
<div className='right'>
101-
<button onClick={e => this.handleTutorialButtonClick(e)}>?<span className='tooltip'>How to use 使い方</span></button>
101+
<button onClick={e => this.handleTutorialButtonClick(e)}>?<span className='tooltip'>How to use</span></button>
102102
<ExternalLink className='logo' href='http://b00st.io'>
103103
<img src='../../resources/favicon-230x230.png' width='44' height='44'/>
104-
<span className='tooltip'>Boost official page 公式サイト</span>
104+
<span className='tooltip'>Boost official page</span>
105105
</ExternalLink>
106106
</div>
107107
</div>

browser/styles/main/HomeContainer/components/ArticleDetail.styl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,10 @@ iptFocusBorderColor = #369DCD
205205
tooltip()
206206
&.editBtn .tooltip
207207
margin-top 25px
208-
margin-left -65px
208+
margin-left -45px
209209
&.deleteBtn .tooltip
210210
margin-top 25px
211-
margin-left -98px
211+
margin-left -73px
212212
&:hover
213213
color inherit
214214
.tooltip

browser/styles/main/HomeContainer/components/ArticleTopBar.styl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ infoBtnActiveBgColor = #3A3A3A
106106
transition 0.1s
107107
.tooltip
108108
tooltip()
109-
margin-left -70px
109+
margin-left -50px
110110
margin-top 29px
111111
&:hover
112112
background-color infoBtnActiveBgColor
@@ -122,7 +122,7 @@ infoBtnActiveBgColor = #3A3A3A
122122
.tooltip
123123
tooltip()
124124
margin-top 44px
125-
margin-left -180px
125+
margin-left -120px
126126
&:hover
127127
opacity 1
128128
.tooltip

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "boost",
3-
"version": "0.4.0-alpha.6",
3+
"version": "0.4.0-alpha.7",
44
"description": "Boost App",
55
"main": "main.js",
66
"scripts": {
@@ -11,7 +11,7 @@
1111
"codesign": "codesign --verbose --deep --force --sign \"MAISIN solutions Inc.\" Boost-darwin-x64/Boost.app"
1212
},
1313
"config": {
14-
"version": "--version=0.33.0 --app-bundle-id=com.maisin.boost",
14+
"version": "--version=0.34.0 --app-bundle-id=com.maisin.boost",
1515
"platform": "--platform=darwin --arch=x64 --prune --icon=resources/app.icns",
1616
"ignore": "--ignore=Boost-darwin-x64 --ignore=node_modules/devicon/icons --ignore=submodules/ace/(?!src-min)|submodules/ace/(?=src-min-noconflict)"
1717
},

webpack.config.production.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
devtool: 'source-map',
44
entry: {
55
main: './browser/main/index.js',
6-
finder: './browser/main/index.js'
6+
finder: './browser/finder/index.js'
77
},
88
output: {
99
path: 'compiled',

0 commit comments

Comments
 (0)