summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannick Hemelhof2019-07-24 14:15:14 +0200
committerJannick Hemelhof2019-07-24 14:15:14 +0200
commit95d967f9ee5909825570bfb46b677d1be4353f54 (patch)
treedf7fdec150ea7ba3d36308126bc425dd092262cd
parent056668bac4f3a4f7fc527eeda267e529b9f672b9 (diff)
downloadaur-95d967f9ee5909825570bfb46b677d1be4353f54.tar.gz
Updated to v0.12.0
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD6
-rw-r--r--remove-analytics.patch85
3 files changed, 48 insertions, 51 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 830140daa21..62134bf7d6f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = boostnote
pkgdesc = Open source note-taking app for programmers
- pkgver = 0.11.17
+ pkgver = 0.12.0
pkgrel = 1
url = https://boostnote.io/
arch = any
@@ -10,18 +10,18 @@ pkgbase = boostnote
makedepends = git
depends = electron
depends = nodejs
- source = boostnote-0.11.17.tar.gz::https://github.com/BoostIO/Boostnote/archive/v0.11.17.tar.gz
+ source = boostnote-0.12.0.tar.gz::https://github.com/BoostIO/Boostnote/archive/v0.12.0.tar.gz
source = boostnote.js
source = boostnote.desktop
source = warning-fix.patch
source = remove-analytics.patch
source = electron_4.patch
source = electron_5_fix.patch
- sha512sums = 2bd5b372d50498326677740366341c8f20ebb6ff129651c382c592c7f42499946ce9fd7eb30e424b5a31d8d81b6c31834076930ddba92715094c9d23ed4c4055
+ sha512sums = cbd2be8e43982ecd46f37f9b41b989bd6be2f3731841c1de9edf1986171fd42114c3ee4915123cc08f0c7a64fa2bd28ae3e35a2bdeb68bb89500f5c4424ecd13
sha512sums = 1f0ccd2a3632a12c4714d97b9f909ddc94b53d6f86a9e4bdcab31abd55a93071a2c35c6e1e9527b747de6dd74b8a5276414980c11e174085f28b8f2d2721230a
sha512sums = 18bcda13580da8ceeaa86793a77ec00a053b8fd51451dad7e2b1a19553fe1a467ac647b44b789212e783f3f6a80968cc9404e884ef7ff6b1f6588473b3229d40
sha512sums = a52e5631867e2c5f18465dee6a3201b9b5c546bda373205c4891c9f7b6114599e0854e2b49defb55ee7bea0778a7fde9c9d9f7271dceeeece743a2d72e2fd0c6
- sha512sums = 930f87e65ad30d07786076ec9455a3644ba6dec884104d567b104038d1a861ba10a0b93b46d7df6bf393b79b83b690e4ce9c02ebe09de5b043ad3a39e43a6f01
+ sha512sums = f5abaf533faf8d87da4773ecf8582ade8c3ee0829fcea7fd3463648c8319ddf22d1bb8f34d555bc64842c841370cb35e257a26faf3a83d59876ae45d1bf96d69
sha512sums = b6e704343c4bdf48273ea680761ccae38cd87a3ea8f87db3b5cf18c99921351b4519c6a4b2cf20417d58a02a4a20e59f354ff96b1cdbc6328e83bff527654647
sha512sums = ad745b9643e9a677a2a3840c02c8dad7af33e35007141dbc33ff8f7c084b66bd1a794ef44340925fc9d6d77065f41709be56cc8ac55a978e7dc7d520cf8777bf
diff --git a/PKGBUILD b/PKGBUILD
index 835b1c3801d..812ae8d3e6c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
# Contributor: Romain Bazile <gromain {dot} baz {at} gmail {dot} com>
pkgname=boostnote
_pkgname=Boostnote
-pkgver=0.11.17
+pkgver=0.12.0
pkgrel=1
pkgdesc="Open source note-taking app for programmers"
arch=('any')
@@ -24,11 +24,11 @@ source=(
"electron_5_fix.patch"
)
-sha512sums=('2bd5b372d50498326677740366341c8f20ebb6ff129651c382c592c7f42499946ce9fd7eb30e424b5a31d8d81b6c31834076930ddba92715094c9d23ed4c4055'
+sha512sums=('cbd2be8e43982ecd46f37f9b41b989bd6be2f3731841c1de9edf1986171fd42114c3ee4915123cc08f0c7a64fa2bd28ae3e35a2bdeb68bb89500f5c4424ecd13'
'1f0ccd2a3632a12c4714d97b9f909ddc94b53d6f86a9e4bdcab31abd55a93071a2c35c6e1e9527b747de6dd74b8a5276414980c11e174085f28b8f2d2721230a'
'18bcda13580da8ceeaa86793a77ec00a053b8fd51451dad7e2b1a19553fe1a467ac647b44b789212e783f3f6a80968cc9404e884ef7ff6b1f6588473b3229d40'
'a52e5631867e2c5f18465dee6a3201b9b5c546bda373205c4891c9f7b6114599e0854e2b49defb55ee7bea0778a7fde9c9d9f7271dceeeece743a2d72e2fd0c6'
- '930f87e65ad30d07786076ec9455a3644ba6dec884104d567b104038d1a861ba10a0b93b46d7df6bf393b79b83b690e4ce9c02ebe09de5b043ad3a39e43a6f01'
+ 'f5abaf533faf8d87da4773ecf8582ade8c3ee0829fcea7fd3463648c8319ddf22d1bb8f34d555bc64842c841370cb35e257a26faf3a83d59876ae45d1bf96d69'
'b6e704343c4bdf48273ea680761ccae38cd87a3ea8f87db3b5cf18c99921351b4519c6a4b2cf20417d58a02a4a20e59f354ff96b1cdbc6328e83bff527654647'
'ad745b9643e9a677a2a3840c02c8dad7af33e35007141dbc33ff8f7c084b66bd1a794ef44340925fc9d6d77065f41709be56cc8ac55a978e7dc7d520cf8777bf')
diff --git a/remove-analytics.patch b/remove-analytics.patch
index 60e62afd172..5da8ef5d0ba 100644
--- a/remove-analytics.patch
+++ b/remove-analytics.patch
@@ -1,31 +1,34 @@
diff -ura a/browser/lib/newNote.js b/browser/lib/newNote.js
---- a/browser/lib/newNote.js 2019-05-22 08:20:34.000000000 +0200
-+++ b/browser/lib/newNote.js 2019-05-22 20:50:49.695908549 +0200
-@@ -1,11 +1,8 @@
- import { hashHistory } from 'react-router'
+--- a/browser/lib/newNote.js 2019-07-24 09:57:04.000000000 +0200
++++ b/browser/lib/newNote.js 2019-07-24 13:57:08.414057570 +0200
+@@ -1,13 +1,9 @@
import dataApi from 'browser/main/lib/dataApi'
import ee from 'browser/main/lib/eventEmitter'
-import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig'
+ import queryString from 'query-string'
+ import { push } from 'connected-react-router'
export function createMarkdownNote (storage, folder, dispatch, location, params, config) {
- AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_MARKDOWN')
- AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_ALLNOTE')
-
+-
let tags = []
if (config.ui.tagNewNoteWithFilteringTags && location.pathname.match(/\/tags/)) {
-@@ -38,8 +35,6 @@
+ tags = params.tagname.split(' ')
+@@ -39,9 +35,6 @@
}
export function createSnippetNote (storage, folder, dispatch, location, params, config) {
- AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_SNIPPET')
- AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_ALLNOTE')
-
+-
let tags = []
if (config.ui.tagNewNoteWithFilteringTags && location.pathname.match(/\/tags/)) {
+ tags = params.tagname.split(' ')
diff -ura a/browser/main/Detail/MarkdownNoteDetail.js b/browser/main/Detail/MarkdownNoteDetail.js
---- a/browser/main/Detail/MarkdownNoteDetail.js 2019-05-22 08:20:34.000000000 +0200
-+++ b/browser/main/Detail/MarkdownNoteDetail.js 2019-05-22 20:51:06.666120452 +0200
-@@ -15,7 +15,6 @@
+--- a/browser/main/Detail/MarkdownNoteDetail.js 2019-07-24 09:57:04.000000000 +0200
++++ b/browser/main/Detail/MarkdownNoteDetail.js 2019-07-24 13:57:27.137375800 +0200
+@@ -14,7 +14,6 @@
import StatusBar from '../StatusBar'
import _ from 'lodash'
import { findNoteTitle } from 'browser/lib/findNoteTitle'
@@ -33,7 +36,7 @@ diff -ura a/browser/main/Detail/MarkdownNoteDetail.js b/browser/main/Detail/Mark
import ConfigManager from 'browser/main/lib/ConfigManager'
import TrashButton from './TrashButton'
import FullscreenButton from './FullscreenButton'
-@@ -135,7 +134,6 @@
+@@ -147,7 +146,6 @@
type: 'UPDATE_NOTE',
note: note
})
@@ -41,7 +44,7 @@ diff -ura a/browser/main/Detail/MarkdownNoteDetail.js b/browser/main/Detail/Mark
})
}
-@@ -174,7 +172,6 @@
+@@ -187,7 +185,6 @@
handleStarButtonClick (e) {
const { note } = this.state
@@ -50,12 +53,12 @@ diff -ura a/browser/main/Detail/MarkdownNoteDetail.js b/browser/main/Detail/Mark
note.isStarred = !note.isStarred
diff -ura a/browser/main/Detail/SnippetNoteDetail.js b/browser/main/Detail/SnippetNoteDetail.js
---- a/browser/main/Detail/SnippetNoteDetail.js 2019-05-22 08:20:34.000000000 +0200
-+++ b/browser/main/Detail/SnippetNoteDetail.js 2019-05-22 20:51:41.966452029 +0200
-@@ -19,7 +19,6 @@
+--- a/browser/main/Detail/SnippetNoteDetail.js 2019-07-24 09:57:04.000000000 +0200
++++ b/browser/main/Detail/SnippetNoteDetail.js 2019-07-24 13:58:25.634026721 +0200
+@@ -17,7 +17,6 @@
+ import ConfigManager from 'browser/main/lib/ConfigManager'
import _ from 'lodash'
import {findNoteTitle} from 'browser/lib/findNoteTitle'
- import convertModeName from 'browser/lib/convertModeName'
-import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig'
import FullscreenButton from './FullscreenButton'
import TrashButton from './TrashButton'
@@ -98,8 +101,8 @@ diff -ura a/browser/main/Detail/SnippetNoteDetail.js b/browser/main/Detail/Snipp
}
diff -ura a/browser/main/Detail/TagSelect.js b/browser/main/Detail/TagSelect.js
---- a/browser/main/Detail/TagSelect.js 2019-05-22 08:20:34.000000000 +0200
-+++ b/browser/main/Detail/TagSelect.js 2019-05-22 20:51:56.913227850 +0200
+--- a/browser/main/Detail/TagSelect.js 2019-07-24 09:57:04.000000000 +0200
++++ b/browser/main/Detail/TagSelect.js 2019-07-24 13:58:39.224029489 +0200
@@ -4,7 +4,6 @@
import CSSModules from 'browser/lib/CSSModules'
import styles from './TagSelect.styl'
@@ -118,16 +121,16 @@ diff -ura a/browser/main/Detail/TagSelect.js b/browser/main/Detail/TagSelect.js
if (newTag.charAt(0) === '#') {
newTag.substring(1)
diff -ura a/browser/main/Main.js b/browser/main/Main.js
---- a/browser/main/Main.js 2019-05-22 08:20:34.000000000 +0200
-+++ b/browser/main/Main.js 2019-05-22 20:52:09.193307620 +0200
+--- a/browser/main/Main.js 2019-07-24 09:57:04.000000000 +0200
++++ b/browser/main/Main.js 2019-07-24 13:58:52.030700863 +0200
@@ -10,7 +10,6 @@
import dataApi from 'browser/main/lib/dataApi'
import _ from 'lodash'
import ConfigManager from 'browser/main/lib/ConfigManager'
-import mobileAnalytics from 'browser/main/lib/AwsMobileAnalyticsConfig'
import eventEmitter from 'browser/main/lib/eventEmitter'
- import { hashHistory } from 'react-router'
- import store from 'browser/main/store'
+ import { store } from 'browser/main/store'
+ import i18n from 'browser/lib/i18n'
@@ -25,10 +24,6 @@
constructor (props) {
super(props)
@@ -140,10 +143,10 @@ diff -ura a/browser/main/Main.js b/browser/main/Main.js
this.state = {
diff -ura a/browser/main/modals/CreateFolderModal.js b/browser/main/modals/CreateFolderModal.js
---- a/browser/main/modals/CreateFolderModal.js 2019-05-22 08:20:34.000000000 +0200
-+++ b/browser/main/modals/CreateFolderModal.js 2019-05-22 20:52:18.416696022 +0200
+--- a/browser/main/modals/CreateFolderModal.js 2019-07-24 09:57:04.000000000 +0200
++++ b/browser/main/modals/CreateFolderModal.js 2019-07-24 13:59:13.474046496 +0200
@@ -6,7 +6,6 @@
- import store from 'browser/main/store'
+ import { store } from 'browser/main/store'
import consts from 'browser/lib/consts'
import ModalEscButton from 'browser/components/ModalEscButton'
-import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig'
@@ -159,26 +162,20 @@ diff -ura a/browser/main/modals/CreateFolderModal.js b/browser/main/modals/Creat
const { storage } = this.props
const input = {
diff -ura a/browser/main/modals/PreferencesModal/InfoTab.js b/browser/main/modals/PreferencesModal/InfoTab.js
---- a/browser/main/modals/PreferencesModal/InfoTab.js 2019-05-22 08:20:34.000000000 +0200
-+++ b/browser/main/modals/PreferencesModal/InfoTab.js 2019-05-22 20:52:49.206856823 +0200
+--- a/browser/main/modals/PreferencesModal/InfoTab.js 2019-07-24 09:57:04.000000000 +0200
++++ b/browser/main/modals/PreferencesModal/InfoTab.js 2019-07-24 14:00:04.644096990 +0200
@@ -3,7 +3,6 @@
import styles from './InfoTab.styl'
import ConfigManager from 'browser/main/lib/ConfigManager'
- import store from 'browser/main/store'
+ import { store } from 'browser/main/store'
-import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig'
import _ from 'lodash'
import i18n from 'browser/lib/i18n'
-@@ -25,47 +24,6 @@
- e.preventDefault()
+@@ -31,41 +30,6 @@
+ this.setState({ config: newConfig })
}
-- handleConfigChange (e) {
-- const newConfig = { amaEnabled: this.refs.amaEnabled.checked }
--
-- this.setState({ config: newConfig })
-- }
--
- handleSaveButtonClick (e) {
- const newConfig = {
- amaEnabled: this.state.config.amaEnabled
@@ -217,7 +214,7 @@ diff -ura a/browser/main/modals/PreferencesModal/InfoTab.js b/browser/main/modal
render () {
return (
<div styleName='root'>
-@@ -139,23 +97,6 @@
+@@ -139,23 +103,6 @@
{i18n.__('License: GPL v3')}
</li>
</ul>
@@ -242,17 +239,17 @@ diff -ura a/browser/main/modals/PreferencesModal/InfoTab.js b/browser/main/modal
)
}
diff -ura a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js
---- a/browser/main/NoteList/index.js 2019-05-22 08:20:34.000000000 +0200
-+++ b/browser/main/NoteList/index.js 2019-05-22 20:53:09.046946654 +0200
+--- a/browser/main/NoteList/index.js 2019-07-24 09:57:04.000000000 +0200
++++ b/browser/main/NoteList/index.js 2019-07-24 14:00:26.257460071 +0200
@@ -16,7 +16,6 @@
import path from 'path'
- import { hashHistory } from 'react-router'
+ import { push, replace } from 'connected-react-router'
import copy from 'copy-to-clipboard'
-import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig'
import Markdown from '../../lib/markdown'
import i18n from 'browser/lib/i18n'
import { confirmDeleteNote } from 'browser/lib/confirmDeleteNote'
-@@ -717,7 +716,6 @@
+@@ -716,7 +715,6 @@
note: newNote
})
})
@@ -260,7 +257,7 @@ diff -ura a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js
})
.then(() => ee.emit('list:next'))
.catch((err) => {
-@@ -736,8 +734,6 @@
+@@ -735,8 +733,6 @@
const firstNote = selectedNotes[0]
const eventName = firstNote.type === 'MARKDOWN_NOTE' ? 'ADD_MARKDOWN' : 'ADD_SNIPPET'
@@ -270,8 +267,8 @@ diff -ura a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js
.createNote(storage.key, {
type: firstNote.type,
diff -ura a/package.json b/package.json
---- a/package.json 2019-05-22 08:20:34.000000000 +0200
-+++ b/package.json 2019-05-22 20:53:22.097001558 +0200
+--- a/package.json 2019-07-24 09:57:04.000000000 +0200
++++ b/package.json 2019-07-24 14:01:00.480850050 +0200
@@ -54,8 +54,6 @@
"@rokt33r/markdown-it-math": "^4.0.1",
"@rokt33r/season": "^5.3.0",