From 75d9bf8e38f3cfe5f6962c161e8a9260af40b116 Mon Sep 17 00:00:00 2001 From: Kazu Yokomizo Date: Thu, 6 Jul 2017 02:31:41 +0900 Subject: [PATCH 1/3] Edit initial files --- browser/main/modals/InitModal.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/browser/main/modals/InitModal.js b/browser/main/modals/InitModal.js index 01177d899..4d683d357 100644 --- a/browser/main/modals/InitModal.js +++ b/browser/main/modals/InitModal.js @@ -103,7 +103,7 @@ class InitModal extends React.Component { } else { return dataApi .createFolder(data.storage.key, { - color: '#6AA5E9', + color: '#1278BD', name: 'Default' }) .then((_data) => { @@ -122,19 +122,6 @@ class InitModal extends React.Component { notes: data.notes }) - let defaultMarkdownNote = dataApi - .createNote(data.storage.key, { - type: 'MARKDOWN_NOTE', - folder: data.storage.folders[0].key, - title: 'Welcome to Boostnote :)', - content: '# Welcome to Boostnote :)\nThis is a markdown note.\n\nClick to edit this note.' - }) - .then((note) => { - store.dispatch({ - type: 'UPDATE_NOTE', - note: note - }) - }) let defaultSnippetNote = dataApi .createNote(data.storage.key, { type: 'SNIPPET_NOTE', @@ -145,12 +132,12 @@ class InitModal extends React.Component { { name: 'example.html', mode: 'html', - content: '\n\n

Hello World

\n\n' + content: '\n\n

Enjoy Boostnote!

\n\n' }, { name: 'example.js', mode: 'javascript', - content: 'var html = document.getElementById(\'hello\').innerHTML\n\nconsole.log(html)' + content: 'var boostnote = document.getElementById(\'enjoy\').innerHTML\n\nconsole.log(boostnote)' } ] }) @@ -160,6 +147,19 @@ class InitModal extends React.Component { note: note }) }) + let defaultMarkdownNote = dataApi + .createNote(data.storage.key, { + type: 'MARKDOWN_NOTE', + folder: data.storage.folders[0].key, + title: 'Welcome to Boostnote!', + content: '# Welcome to Boostnote! \n### _Click to edit this note._\n\n---\n\nBoostnote is an *open source* note-taking app. \nRepository is published on [GitHub](https://github.com/BoostIO/Boostnote), and tweeting everyday on [@Boostnoteapp](https://twitter.com/boostnoteapp)!\n\n## Features \n- [x] No Internet and Registration Required. \n- [ ] Quick search and copy the content of note. `macOS: Cmd + Alt + S / windows: Super + Alt + S` \n- [ ] Markdown & Snippet note. \n- [ ] Available for `vim` and `emacs` mode. \n- [ ] Choose your favorite theme on UI, Editor and Code Block! \n--- \n\n- Copy Codeblock on Makrdown Preview.\n```javascript\nvar boostnote = document.getElementById(\'enjoy\').innerHTML\n\nconsole.log(boostnote)\n```' + }) + .then((note) => { + store.dispatch({ + type: 'UPDATE_NOTE', + note: note + }) + }) return Promise.resolve(defaultSnippetNote) .then(defaultMarkdownNote) From 4d9e0e3bd74aad503219ad259a6f08392b46e810 Mon Sep 17 00:00:00 2001 From: Kazu Yokomizo Date: Thu, 6 Jul 2017 02:32:14 +0900 Subject: [PATCH 2/3] Change default theme at editor and code-block --- browser/main/lib/ConfigManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/main/lib/ConfigManager.js b/browser/main/lib/ConfigManager.js index 1f7ab33d7..2a0b14c03 100644 --- a/browser/main/lib/ConfigManager.js +++ b/browser/main/lib/ConfigManager.js @@ -24,7 +24,7 @@ export const DEFAULT_CONFIG = { defaultNote: 'ALWAYS_ASK' // 'ALWAYS_ASK', 'SNIPPET_NOTE', 'MARKDOWN_NOTE' }, editor: { - theme: 'default', + theme: 'base16-light', keyMap: 'sublime', fontSize: '14', fontFamily: 'Monaco, Consolas', @@ -35,7 +35,7 @@ export const DEFAULT_CONFIG = { preview: { fontSize: '14', fontFamily: 'Lato', - codeBlockTheme: 'elegant', + codeBlockTheme: 'dracula', lineNumber: true } } From 59329cc5dace3e869748410e6fdb14542a6d248b Mon Sep 17 00:00:00 2001 From: Kazu Yokomizo Date: Thu, 6 Jul 2017 13:50:39 +0900 Subject: [PATCH 3/3] Fix typo --- browser/main/modals/InitModal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/main/modals/InitModal.js b/browser/main/modals/InitModal.js index 4d683d357..e5f4ac2c3 100644 --- a/browser/main/modals/InitModal.js +++ b/browser/main/modals/InitModal.js @@ -152,7 +152,7 @@ class InitModal extends React.Component { type: 'MARKDOWN_NOTE', folder: data.storage.folders[0].key, title: 'Welcome to Boostnote!', - content: '# Welcome to Boostnote! \n### _Click to edit this note._\n\n---\n\nBoostnote is an *open source* note-taking app. \nRepository is published on [GitHub](https://github.com/BoostIO/Boostnote), and tweeting everyday on [@Boostnoteapp](https://twitter.com/boostnoteapp)!\n\n## Features \n- [x] No Internet and Registration Required. \n- [ ] Quick search and copy the content of note. `macOS: Cmd + Alt + S / windows: Super + Alt + S` \n- [ ] Markdown & Snippet note. \n- [ ] Available for `vim` and `emacs` mode. \n- [ ] Choose your favorite theme on UI, Editor and Code Block! \n--- \n\n- Copy Codeblock on Makrdown Preview.\n```javascript\nvar boostnote = document.getElementById(\'enjoy\').innerHTML\n\nconsole.log(boostnote)\n```' + content: '# Welcome to Boostnote! \n### _Click to edit this note._\n\n---\n\nBoostnote is an *open source* note-taking app. \nRepository is published on [GitHub](https://github.com/BoostIO/Boostnote), and tweeting everyday on [@Boostnoteapp](https://twitter.com/boostnoteapp)!\n\n## Features \n- [x] No Internet and Registration Required. \n- [ ] Quick search and copy the content of note. `macOS: Cmd + Alt + S / windows: Ctrl + Alt + S` \n- [ ] Markdown & Snippet note. \n- [ ] Available for `vim` and `emacs` mode. \n- [ ] Choose your favorite theme on UI, Editor and Code Block! \n--- \n\n- Copy Codeblock on Makrdown Preview.\n```javascript\nvar boostnote = document.getElementById(\'enjoy\').innerHTML\n\nconsole.log(boostnote)\n```' }) .then((note) => { store.dispatch({