Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
fix app name and some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
YuheiNakasaka committed Apr 1, 2017
1 parent c7cd3de commit 09fe908
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/index.ejs
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>vue-twitter-client-app</title>
<title>vue-twitter-client</title>
<% if (htmlWebpackPlugin.options.appModules) { %>
<!-- Add `app/node_modules` to global paths so `require` works properly in development -->
<script>
Expand Down
6 changes: 1 addition & 5 deletions app/src/renderer/components/SidebarView/NotificationBtn.vue
Expand Up @@ -5,7 +5,7 @@
<span class="btn" @click="toggleNotifications">
<i class="fa fa-bell" aria-hidden="true"></i>
</span>
<span class="count" v-show="notifications.visibleNotificationCount > 0">{{ notifications.items.length }}</span>
<span class="count" v-show="notifications.visibleNotificationCount > 0">{{ notifications.visibleNotificationCount }}</span>
</div>
</div>
<div class="notification-container" v-show="sidebar.isNotificationbarOpen">
Expand Down Expand Up @@ -40,10 +40,6 @@ export default {
toggleNotifications () {
if (this.sidebar.isNotificationbarOpen === false) this.$store.dispatch('closeAllBar')
this.$store.dispatch('toggleNotificationBar')
},
displayHomeTweets (item) {
this.$store.dispatch('closeAllBar')
this.$store.dispatch('getNotifications')
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions app/src/renderer/vuex/actions.js
Expand Up @@ -343,7 +343,6 @@ export const getNotifications = (context) => {
let sinceId
setInterval(() => {
client.get('statuses/retweets_of_me', {count: 2, since_id: sinceId}, (error, data, response) => {
console.log('statuses/retweets_of_me')
if (error) return false
data.map((dt) => {
sinceId = data[0].id_str
Expand All @@ -355,7 +354,6 @@ export const getNotifications = (context) => {
// get users of retweets
eventEmitter.on('finishGetRetweetOfMe', ({ retweets }) => {
retweets.forEach((retweet, i) => {
console.log('statuses/retweets_of_me')
client.get('statuses/retweets/' + retweet.id_str, {count: 100}, (error, data, response) => {
if (error) return false
if (data.length === 0) return false
Expand All @@ -366,7 +364,6 @@ export const getNotifications = (context) => {

// publish retweets notification
eventEmitter.on('finishGetRetweeters', ({ retweet, retweeters }) => {
console.log(retweet)
context.commit(types.SET_RT_FOR_NOTIFICATION, {retweet: retweet, retweeters: retweeters})
})
}
Expand Down
2 changes: 1 addition & 1 deletion config.js
Expand Up @@ -5,7 +5,7 @@ const path = require('path')
let config = {
// Name of electron app
// Will be used in production builds
name: 'vue-twitter-client-app',
name: 'vue-twitter-client',

// Use ESLint (extends `standard`)
// Further changes can be made in `.eslintrc.js`
Expand Down

0 comments on commit 09fe908

Please sign in to comment.