Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Desktop Client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SpinShare
Desktop Client
Commits
0af7b6ca
Commit
0af7b6ca
authored
May 11, 2020
by
thatanimeweirdo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'vue-rewrite-dragndrop' into 'vue-rewrite'
re-added drag and drop install See merge request
!28
parents
e947eb47
1cc47a4c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
22 deletions
+30
-22
src/views/Library.vue
src/views/Library.vue
+30
-22
No files found.
src/views/Library.vue
View file @
0af7b6ca
<
template
>
<
template
>
<section
class=
"section-library"
>
<section
class=
"section-library"
@
dragover
.
prevent
@
drop.stop.prevent=
"drop()"
>
<SongRow
:title=
"$t('library.installed.header')"
>
<SongRow
:title=
"$t('library.installed.header')"
>
<template
v-slot:controls
>
<template
v-slot:controls
>
<div
class=
"item"
></div>
<div
class=
"item"
></div>
...
@@ -160,6 +160,17 @@
...
@@ -160,6 +160,17 @@
dialog
.
showOpenDialog
({
title
:
"
Open Backup
"
,
properties
:
[
'
openFile
'
,
'
multiSelections
'
],
filters
:
[{
"
name
"
:
"
Backup Archive
"
,
"
extensions
"
:
[
"
zip
"
]}]
}).
then
(
result
=>
{
dialog
.
showOpenDialog
({
title
:
"
Open Backup
"
,
properties
:
[
'
openFile
'
,
'
multiSelections
'
],
filters
:
[{
"
name
"
:
"
Backup Archive
"
,
"
extensions
"
:
[
"
zip
"
]}]
}).
then
(
result
=>
{
if
(
!
result
.
canceled
)
{
if
(
!
result
.
canceled
)
{
result
.
filePaths
.
forEach
((
rawFilePath
)
=>
{
result
.
filePaths
.
forEach
((
rawFilePath
)
=>
{
this
.
extract
(
rawFilePath
)
});
}
});
},
drop
:
function
(
e
)
{
event
.
dataTransfer
.
files
.
forEach
((
file
)
=>
{
this
.
extract
(
file
.
path
);
});
},
extract
:
function
(
rawFilePath
)
{
let
filePath
=
glob
.
sync
(
rawFilePath
);
let
filePath
=
glob
.
sync
(
rawFilePath
);
if
(
filePath
.
length
>
0
)
{
if
(
filePath
.
length
>
0
)
{
let
srxdControl
=
new
SRXD
();
let
srxdControl
=
new
SRXD
();
...
@@ -181,9 +192,6 @@
...
@@ -181,9 +192,6 @@
console
.
error
(
error
);
console
.
error
(
error
);
});
});
}
}
});
}
});
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment