mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 18:26:26 +00:00
Compare commits
32 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16061a7eba | ||
|
|
8beb661af4 | ||
|
|
f7fb531902 | ||
|
|
b32b38bb0d | ||
|
|
6e5f6cc739 | ||
|
|
6624178864 | ||
|
|
4a66c6717c | ||
|
|
dd76bc027b | ||
|
|
1ae3f295f3 | ||
|
|
3cb2ce41fe | ||
|
|
5534319e93 | ||
|
|
c7373c15a5 | ||
|
|
dbf1d6403b | ||
|
|
95d74c6f5b | ||
|
|
f04b7db9fc | ||
|
|
900fa023fb | ||
|
|
ad9da44afb | ||
|
|
c827717202 | ||
|
|
7d3caa3c2e | ||
|
|
fde7fbccac | ||
|
|
56f06fa7d5 | ||
|
|
c0fba82e73 | ||
|
|
5438cd14a0 | ||
|
|
0d642b308d | ||
|
|
0b96472f72 | ||
|
|
675d0ed08c | ||
|
|
9c0f5c31c2 | ||
|
|
09ce59fd04 | ||
|
|
98cd83c4e0 | ||
|
|
1aec386656 | ||
|
|
b03cd9cd99 | ||
|
|
a641a7b3e4 |
@@ -168,13 +168,13 @@ export default class CodeEditor extends React.Component {
|
||||
e.preventDefault()
|
||||
let imagePath = e.dataTransfer.files[0].path
|
||||
let filename = path.basename(imagePath)
|
||||
let imageMd = ``
|
||||
let imageMd = `})`
|
||||
this.insertImage(imageMd)
|
||||
}
|
||||
|
||||
insertImage (imageMd) {
|
||||
const textarea = this.editor.getInputField()
|
||||
textarea.value = textarea.value.substr(0, textarea.selectionStart) + imageMd + textarea.value.substr(textarea.selectionEnd)
|
||||
const cm = this.editor
|
||||
cm.setValue(cm.getValue() + imageMd)
|
||||
}
|
||||
|
||||
render () {
|
||||
|
||||
@@ -8,7 +8,7 @@ class MarkdownEditor extends React.Component {
|
||||
constructor (props) {
|
||||
super(props)
|
||||
|
||||
this.hotkey = props.config.hotkey
|
||||
this.escapeFromEditor = ['Control', 'w']
|
||||
|
||||
this.state = {
|
||||
status: 'PREVIEW',
|
||||
@@ -77,6 +77,7 @@ class MarkdownEditor extends React.Component {
|
||||
}
|
||||
|
||||
handleBlur (e) {
|
||||
this.setState({ keyPressed: [] })
|
||||
let { config } = this.props
|
||||
if (config.editor.switchPreview === 'BLUR') {
|
||||
let cursorPosition = this.refs.code.editor.getCursor()
|
||||
@@ -151,7 +152,7 @@ class MarkdownEditor extends React.Component {
|
||||
})
|
||||
this.setState({ keyPressed })
|
||||
let isNoteHandlerKey = (el) => { return this.state.keyPressed[el] }
|
||||
if (this.state.status === 'CODE' && this.hotkey.noteHandlerKey.escapeFromEditor.every(isNoteHandlerKey)) {
|
||||
if (this.state.status === 'CODE' && this.escapeFromEditor.every(isNoteHandlerKey)) {
|
||||
document.activeElement.blur()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -255,7 +255,7 @@ export default class MarkdownPreview extends React.Component {
|
||||
let syntax = CodeMirror.findModeByName(el.className)
|
||||
if (syntax == null) syntax = CodeMirror.findModeByName('Plain Text')
|
||||
CodeMirror.requireMode(syntax.mode, () => {
|
||||
let content = el.innerHTML
|
||||
let content = decodeHTMLEntities(el.innerHTML)
|
||||
el.innerHTML = ''
|
||||
el.parentNode.className += ` cm-s-${codeBlockTheme} CodeMirror`
|
||||
CodeMirror.runMode(content, syntax.mime, el, {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
.top-menu
|
||||
navButtonColor()
|
||||
height $topBar-height - 1
|
||||
height $topBar-height
|
||||
padding 0 15px
|
||||
font-size 14px
|
||||
width 100%
|
||||
|
||||
@@ -17,9 +17,6 @@ export const DEFAULT_CONFIG = {
|
||||
hotkey: {
|
||||
toggleFinder: OSX ? 'Cmd + Alt + S' : 'Super + Alt + S',
|
||||
toggleMain: OSX ? 'Cmd + Alt + L' : 'Super + Alt + E',
|
||||
noteHandlerKey: {
|
||||
escapeFromEditor: ['Control', 'e']
|
||||
}
|
||||
},
|
||||
ui: {
|
||||
theme: 'default',
|
||||
|
||||
@@ -75,3 +75,4 @@ body[data-theme="dark"]
|
||||
|
||||
.control-input
|
||||
border-color $ui-dark-borderColor
|
||||
color $ui-dark-text-color
|
||||
|
||||
@@ -1,23 +1,21 @@
|
||||
# Contributing to Boostnote
|
||||
|
||||
> English below.
|
||||
|
||||
## Pull requestの著作権について
|
||||
|
||||
Pull requestをすることはその変化分のコードの著作権をMAISIN&CO.に譲渡することに同意することになります。
|
||||
|
||||
アプリケーションのLicenseのをいつでも変える選択肢を残したいからです。
|
||||
しかし、これはいずれかBoostnoteが有料の商用アプリになる可能性がある話ではありません。
|
||||
もし、このアプリケーションで金を稼ごうとするならBoostnote専用のCloud storageの提供やMobile appとの連動、何か特殊なプレミアム機能の提供など形になると思います。
|
||||
現在考えられているのは、GPL v3の場合、他のライセンスとの互換が不可能であるため、もしより自由なLicense(BSD, MIT)に変える時に改めて著作権者としてライセンスし直す選択肢を残したいぐらいのイメージです。
|
||||
|
||||
---
|
||||
|
||||
# Contributing to Boostnote(ENG)
|
||||
|
||||
## About copyright of Pull Request
|
||||
|
||||
If you make a pull request, It means you agree to transfer the copyright of the code changes to MAISIN&CO.
|
||||
|
||||
It doesn't mean Boostnote will become a paid app. If we want to earn some money, We will try other way, which is some kind of cloud storage, Mobile app integration or some SPECIAL features.
|
||||
Because GPL v3 is too strict to be compatible with any other License, We thought this is needed to replace the license with much freer one(like BSD, MIT) somewhen.
|
||||
|
||||
---
|
||||
|
||||
# Contributing to Boostnote(Japanese)
|
||||
|
||||
## Pull requestの著作権について
|
||||
|
||||
Pull requestをすることはその変化分のコードの著作権をMAISIN&CO.に譲渡することに同意することになります。
|
||||
|
||||
アプリケーションのLicenseをいつでも変える選択肢を残したいと思うからです。
|
||||
これはいずれかBoostnoteが有料の商用アプリになる可能性がある話ではありません。
|
||||
もし、このアプリケーションに料金が発生する時は、Boostnote専用のCloud storageの提供やMobile appとの連動、何か特殊なプレミアム機能の提供など形になります。
|
||||
現在考えられているのは、GPL v3の場合、他のライセンスとの互換が不可能であるため、もしより自由なLicense(BSD, MIT)に変える時に改めて著作権者としてライセンスし直す選択肢を残すイメージです。
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
const electron = require('electron')
|
||||
const { app } = electron
|
||||
const { systemPreferences } = electron
|
||||
const BrowserWindow = electron.BrowserWindow
|
||||
const Menu = electron.Menu
|
||||
const MenuItem = electron.MenuItem
|
||||
@@ -45,13 +44,9 @@ finderWindow.on('close', function (e) {
|
||||
finderWindow.hide()
|
||||
})
|
||||
|
||||
var trayIcon = process.platform === 'darwin'
|
||||
? !systemPreferences.isDarkMode()
|
||||
? path.join(__dirname, '../resources/tray-icon-default.png')
|
||||
: path.join(__dirname, '../resources/tray-icon-dark.png')
|
||||
: process.platform === 'win32'
|
||||
? path.join(__dirname, '../resources/tray-icon-dark.png')
|
||||
: path.join(__dirname, '../resources/tray-icon.png')
|
||||
var trayIcon = process.platform === 'darwin' || process.platform === 'win32'
|
||||
? path.join(__dirname, '../resources/tray-icon-default.png')
|
||||
: path.join(__dirname, '../resources/tray-icon.png')
|
||||
var appIcon = new Tray(trayIcon)
|
||||
appIcon.setToolTip('Boostnote')
|
||||
if (process.platform === 'darwin') {
|
||||
|
||||
@@ -102,6 +102,9 @@ app.on('ready', function () {
|
||||
Menu.setApplicationMenu(menu)
|
||||
break
|
||||
case 'win32':
|
||||
/* eslint-disable */
|
||||
finderWindow = require('./finder-window')
|
||||
/* eslint-disable */
|
||||
mainWindow.setMenu(menu)
|
||||
break
|
||||
case 'linux':
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "boost",
|
||||
"version": "0.8.3",
|
||||
"version": "0.8.6",
|
||||
"description": "Boostnote",
|
||||
"main": "index.js",
|
||||
"license": "GPL-3.0",
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
- [Rokt33r](https://github.com/rokt33r)
|
||||
- [sota1235](https://github.com/sota1235)
|
||||
- [Kohei TAKATA](https://github.com/kohei-takata)
|
||||
- [asmsuechan](https://github.com/asmsuechan)
|
||||
- [Kazu Yokomizo](https://github.com/kazup01)
|
||||
|
||||
## Contributors
|
||||
|
||||
85
readme-ko.md
85
readme-ko.md
@@ -1,85 +0,0 @@
|
||||
# Boostnote
|
||||
|
||||
> [Boostnote store](https://boostnote.paintory.com/)가 생겼습니다!! :tada: 그리고,[Pateron](https://www.patreon.com/boostnote)에서도 저희를 지원 하실 수 있습니다.!
|
||||
|
||||

|
||||
|
||||
오픈소스 노트 앱
|
||||
|
||||
다음과 같은 용무가 있는 경우 이슈트래커를 이용해 주세요.
|
||||
- Boostnote에 대해 질문을 하고 싶을 때
|
||||
- Boostnote나 계획사항에 대해 피드백을 주고 싶을 때
|
||||
- Boostnote에 버그를 보고하고 싶을 때
|
||||
- Boostnote에 기여하고 싶을 때
|
||||
|
||||
저흰 Slack을 운영하고 있습니다. 혹시 좀 더 저희들과 깊게 관여하고 싶으시다면 @rokt33r에 초대를 부탁하세요.
|
||||
|
||||
## Goal
|
||||
|
||||
그냥 글쓰는게 즐거워지셨으면 좋겠어요. :grinning:
|
||||
|
||||
- 타겟 OS : OSX, Windows, Linux(나중엔 모바일까지도!)
|
||||
- Cloud : Google drive, Dropbox, One drive, iCloud...
|
||||
- 오픈소스로 남을 것!
|
||||
|
||||
## 영감받은 앱/서비스
|
||||
|
||||
- Atom
|
||||
- Quiver
|
||||
- Evernote
|
||||
- GitKraken
|
||||
- GitBook
|
||||
- Gist
|
||||
- Gistbox
|
||||
- Snippets Lab
|
||||
|
||||
## Using stack
|
||||
|
||||
- Electron
|
||||
- React
|
||||
- Webpack
|
||||
- Redux
|
||||
- CSSModules
|
||||
|
||||
## Codestyle
|
||||
|
||||
[](https://github.com/feross/standard)
|
||||
|
||||
## Development
|
||||
|
||||
- [Build](docs/build.md)
|
||||
|
||||
## Goods
|
||||
|
||||
<img src="https://boostnote.io/images/t3.png" width="250"/>
|
||||
<img src="https://boostnote.io/images/t1.png" width="250"/>
|
||||
|
||||
[Boostnote store](https://boostnote.paintory.com/)에서 몇가지 상품들을 팔고있습니다.
|
||||
|
||||
전세계 어디든 배송 가능합니다. 이 스토어는 [Paintory](https://paintory.com/)에서 제공됩니다.
|
||||
|
||||
## Donation
|
||||
|
||||
[Pateron page](https://www.patreon.com/boostnote)에서 기부 하실 수 있습니다.
|
||||
|
||||
## Author & Maintainer
|
||||
|
||||
[Rokt33r(Dick Choi of MAISIN&CO.)](https://github.com/rokt33r)
|
||||
|
||||
## Contributors
|
||||
|
||||
- [Kazu Yokomizo](https://github.com/kazup01)
|
||||
- [dojineko](https://github.com/dojineko)
|
||||
- [Romain Bazile](https://github.com/gromain)
|
||||
- [Bruno Paz](https://github.com/brpaz)
|
||||
- [Fabian Mueller](https://github.com/dotcs)
|
||||
- [Yoshihisa Mochihara](https://github.com/yosmoc)
|
||||
- [Mike Resoli](https://github.com/mikeres0)
|
||||
- [tjado](https://github.com/tejado)
|
||||
- [sota1235](https://github.com/sota1235)
|
||||
|
||||
## Copyright & License
|
||||
|
||||
Copyright (C) 2016 MAISIN&CO.
|
||||
|
||||
[GPL v3](./LICENSE).
|
||||
Reference in New Issue
Block a user