Skip to content

Commit

Permalink
fix mutiple drag-in
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamfliper committed Mar 16, 2017
1 parent 6de890a commit 895ef98
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/src/renderer/components/LandingPageView/Tablevue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
template(scope='row')
p.pointercursor.is-fullwidth(
@click='showclicked(row.index)'
) {{ row.name }}
) {{ row.name }} {{row.index}}

column(label='address')
template(scope='row')
Expand Down
2 changes: 1 addition & 1 deletion app/src/renderer/dragNdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ document.body.ondrop = (ev) => {
for(let index in ev.dataTransfer.files){
if (index !== 'length' && index!=='item') {
store.commit('ADD_FILE',{
index:index,
index:Number(store.getters.mainCounter)+Number(index)+1,
name :ev.dataTransfer.files[index].name,
add :ev.dataTransfer.files[index].path,
content:'.'})
Expand Down
3 changes: 1 addition & 2 deletions app/src/renderer/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Vuex from 'vuex'
import VueBlu from 'vue-blu'
import OpenCC from 'opencc'
import Electron from 'vue-electron'
import App from './App'

let opencc = new OpenCC("s2tw.json")

Expand All @@ -15,8 +16,6 @@ Vue.use(VueBlu)
Vue.use(Vuex)
Vue.config.debug = true

import App from './App'

/* eslint-disable no-new */
new Vue({
...App
Expand Down
8 changes: 2 additions & 6 deletions webpack.renderer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const webpack = require('webpack')

const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
var AnyBarWebpackPlugin = require('anybar-webpack');

let rendererConfig = {
devtool: '#eval-source-map',
Expand Down Expand Up @@ -88,10 +87,7 @@ let rendererConfig = {
? path.resolve(__dirname, 'app/node_modules')
: false,
}),
new webpack.NoEmitOnErrorsPlugin(),
new AnyBarWebpackPlugin({
enableNotifications: true
})
new webpack.NoEmitOnErrorsPlugin()
],
output: {
filename: '[name].js',
Expand All @@ -101,7 +97,7 @@ let rendererConfig = {
resolve: {
alias: {
'components': path.join(__dirname, 'app/src/renderer/components'),
'renderer': path.join(__dirname, 'app/src/renderer'),
'renderer': path.join(__dirname, 'app/src/renderer')
},
extensions: ['.js', '.vue', '.json', '.css', '.node'],
modules: [
Expand Down

0 comments on commit 895ef98

Please sign in to comment.