Skip to content

Commit

Permalink
1.fix about info
Browse files Browse the repository at this point in the history
2.modify settings UI
3.update readme v1.1.8
  • Loading branch information
zhuzhuyule committed Dec 29, 2017
1 parent 98e7c82 commit a7f2390
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ The `Raleway` font is licensed under the OFL open font license.
The domain `moeditor.org` is sponsored by [Showfom](https://ttt.tt/).

# Tips
1. modify codemirror file : (line: `3104`)
> ./node_modules/codemirror/lib/codemirror.js
1. modify codemirror file :
> ./node_modules/codemirror/lib/codemirror.js (line: `3104`)
> ./node_modules/codemirror/src/display/selection.js (line: `56`)
```js
var rightSide = Math.max(display.sizerWidth, displayWidth(cm) - display.sizer.offsetLeft) - padding.right;
```
Expand Down
4 changes: 1 addition & 3 deletions views/about/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
<img src="../icons/HexoEditor.svg">
<div id="logo-name">HexoEditor</div>
<div id="logo-author"><i class="fa fa-code" aria-hidden="true" style="zoom: 1.17; "></i> WITH <i
class="fa fa-heart" aria-hidden="true" style="zoom: 0.99; "></i> BY <a>
<script>document.write(require('../../package.json').author);</script>
</a> and <a href="https://github.com/Moeditor/Moeditor/graphs/contributors">other contributors</a></div>
class="fa fa-heart" aria-hidden="true" style="zoom: 0.99; "></i> BY <a href="https://github.com/Moeditor">Menci</a>,<a href="https://zhuzhuyule.com">zhuzhuxia</a> and <a href="https://github.com/Moeditor/Moeditor/graphs/contributors">other contributors</a></div>
</div>
<div id="description"><script>
document.write(require('../../package.json').description);
Expand Down
6 changes: 2 additions & 4 deletions views/settings/moe-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ document.addEventListener('DOMContentLoaded', () => {
});
ipcRenderer.send('setting-changed', { key: 'locale', val: selectLocale.value });
});
document.querySelector("#hexo-auto-setting").value = '<i class="fa fa-hand-pointer-o" aria-hidden="true"></i>';
require('electron').remote.getCurrentWindow().show();
});

Expand Down Expand Up @@ -383,9 +384,8 @@ document.addEventListener('DOMContentLoaded', () => {
}
}

let hexoAutoSettingButton = document.querySelector('input[data-key="hexo-auto-setting"]');
let hexoAutoSettingButton = document.querySelector('#hexo-auto-setting');
hexoAutoSettingButton.addEventListener('click',function (e) {
if (this.checked){
hexoConfigEnableButton.checked || hexoConfigEnableButton.click();
hexoConfigInput.value || hexoConfigLoadButton.click();
let mathCheck = document.querySelector('input[data-key="math"]');
Expand Down Expand Up @@ -433,7 +433,5 @@ document.addEventListener('DOMContentLoaded', () => {
renderThemeSelect.value = hexoTheme;
reloadHighlightSelect(hexoTheme);
}
}
})

});
4 changes: 2 additions & 2 deletions views/settings/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
<tr>
<td width="30%" class="l10n">Hexo Auto</td>
<td width="70%">
<input type="checkbox" class="settings-item" data-key="hexo-auto-setting">
<div id="hexo-auto-setting" style="width: 50px"><i class="fa fa-magic fa-flip-horizontal" aria-hidden="true"></i></div>
</td>
</tr>
<tr>
Expand All @@ -192,7 +192,7 @@
<script>
const t = moeApp.config.get('hexo-tag-paths');
for (var i=0,len=t.length;i<len;i++) {
s=t[i];
let s=t[i];
document.write(`<option value="${s}">${s}</option>`);
}
</script>
Expand Down

0 comments on commit a7f2390

Please sign in to comment.