1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Fix typos Dynamit to Dynamic

This commit is contained in:
asmsuechan
2017-07-22 15:33:56 +09:00
parent 2592c943f7
commit 72d2df465b
8 changed files with 14 additions and 14 deletions

View File

@@ -95,7 +95,7 @@ class FinderMain extends React.Component {
if (e.keyCode === 13) { if (e.keyCode === 13) {
this.refs.detail.saveToClipboard() this.refs.detail.saveToClipboard()
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('COPY_FINDER') AwsMobileAnalyticsConfig.recordDynamicCustomEvent('COPY_FINDER')
hideFinder() hideFinder()
e.preventDefault() e.preventDefault()
} }

View File

@@ -121,7 +121,7 @@ class MarkdownNoteDetail extends React.Component {
type: 'UPDATE_NOTE', type: 'UPDATE_NOTE',
note: note note: note
}) })
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('EDIT_NOTE') AwsMobileAnalyticsConfig.recordDynamicCustomEvent('EDIT_NOTE')
}) })
} }
@@ -160,7 +160,7 @@ class MarkdownNoteDetail extends React.Component {
handleStarButtonClick (e) { handleStarButtonClick (e) {
let { note } = this.state let { note } = this.state
if (!note.isStarred) AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_STAR') if (!note.isStarred) AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_STAR')
note.isStarred = !note.isStarred note.isStarred = !note.isStarred

View File

@@ -115,7 +115,7 @@ class SnippetNoteDetail extends React.Component {
type: 'UPDATE_NOTE', type: 'UPDATE_NOTE',
note: note note: note
}) })
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('EDIT_NOTE') AwsMobileAnalyticsConfig.recordDynamicCustomEvent('EDIT_NOTE')
}) })
} }
@@ -154,7 +154,7 @@ class SnippetNoteDetail extends React.Component {
handleStarButtonClick (e) { handleStarButtonClick (e) {
let { note } = this.state let { note } = this.state
if (!note.isStarred) AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_STAR') if (!note.isStarred) AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_STAR')
note.isStarred = !note.isStarred note.isStarred = !note.isStarred

View File

@@ -57,7 +57,7 @@ class TagSelect extends React.Component {
} }
submitTag () { submitTag () {
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_TAG') AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_TAG')
let { value } = this.props let { value } = this.props
let newTag = this.refs.newTag.value.trim().replace(/ +/g, '_') let newTag = this.refs.newTag.value.trim().replace(/ +/g, '_')

View File

@@ -23,7 +23,7 @@ function initAwsMobileAnalytics () {
recordStaticCustomEvent() recordStaticCustomEvent()
} }
function recordDynamitCustomEvent (type) { function recordDynamicCustomEvent (type) {
if (process.env.NODE_ENV !== 'production' || !ConfigManager.default.get().amaEnabled) return if (process.env.NODE_ENV !== 'production' || !ConfigManager.default.get().amaEnabled) return
mobileAnalyticsClient.recordEvent(type) mobileAnalyticsClient.recordEvent(type)
} }
@@ -37,5 +37,5 @@ function recordStaticCustomEvent () {
module.exports = { module.exports = {
initAwsMobileAnalytics, initAwsMobileAnalytics,
recordDynamitCustomEvent recordDynamicCustomEvent
} }

View File

@@ -49,7 +49,7 @@ class CreateFolderModal extends React.Component {
} }
confirm () { confirm () {
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_FOLDER') AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_FOLDER')
if (this.state.name.trim().length > 0) { if (this.state.name.trim().length > 0) {
let { storage } = this.props let { storage } = this.props
let input = { let input = {

View File

@@ -24,8 +24,8 @@ class NewNoteModal extends React.Component {
} }
handleMarkdownNoteButtonClick (e) { handleMarkdownNoteButtonClick (e) {
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_MARKDOWN') AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_MARKDOWN')
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_ALLNOTE') AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_ALLNOTE')
let { storage, folder, dispatch, location } = this.props let { storage, folder, dispatch, location } = this.props
dataApi dataApi
.createNote(storage, { .createNote(storage, {
@@ -56,8 +56,8 @@ class NewNoteModal extends React.Component {
} }
handleSnippetNoteButtonClick (e) { handleSnippetNoteButtonClick (e) {
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_SNIPPET') AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_SNIPPET')
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('ADD_ALLNOTE') AwsMobileAnalyticsConfig.recordDynamicCustomEvent('ADD_ALLNOTE')
let { storage, folder, dispatch, location } = this.props let { storage, folder, dispatch, location } = this.props
dataApi dataApi

View File

@@ -41,7 +41,7 @@ class InfoTab extends React.Component {
config: newConfig config: newConfig
}) })
if (!newConfig.amaEnabled) { if (!newConfig.amaEnabled) {
AwsMobileAnalyticsConfig.recordDynamitCustomEvent('DISABLE_AMA') AwsMobileAnalyticsConfig.recordDynamicCustomEvent('DISABLE_AMA')
} }
} }