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
SeeBeyond
Desktop Client
Commits
729a967c
Commit
729a967c
authored
Jul 30, 2020
by
SpinShare
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added cooler title bar, added performance fixes
parent
39cd6c42
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
279 additions
and
58 deletions
+279
-58
src/App.vue
src/App.vue
+8
-34
src/background.js
src/background.js
+4
-6
src/components/Navigation/Navigation.vue
src/components/Navigation/Navigation.vue
+260
-11
src/components/Overlays/DownloadOverlay.vue
src/components/Overlays/DownloadOverlay.vue
+3
-3
src/components/Song/SongItem.vue
src/components/Song/SongItem.vue
+2
-2
src/components/Song/SongLocalItem.vue
src/components/Song/SongLocalItem.vue
+2
-2
No files found.
src/App.vue
View file @
729a967c
<
template
>
<
template
>
<div
id=
"app"
:class=
"platform != 'darwin' ? 'app' : 'app-darwin'"
tabindex=
"-1"
v-on:keydown.esc=
"closeOverlays()"
>
<div
id=
"app"
:class=
"platform != 'darwin' ? 'app' : 'app-darwin'"
tabindex=
"-1"
v-on:keydown.esc=
"closeOverlays()"
>
<
WindowTitleBar
/
>
<
!--
<WindowTitleBar
/>
--
>
<main>
<main>
<Navigation
v-bind:downloadQueueCount=
"downloadQueue.length"
v-bind:downloadOverlayShown=
"showDownloadOverlay"
/>
<Navigation
v-bind:downloadQueueCount=
"downloadQueue.length"
v-bind:downloadOverlayShown=
"showDownloadOverlay"
/>
...
@@ -81,6 +81,7 @@
...
@@ -81,6 +81,7 @@
});
});
this
.
$root
.
$on
(
'
download
'
,
(
url
)
=>
{
this
.
$root
.
$on
(
'
download
'
,
(
url
)
=>
{
this
.
$data
.
showDownloadOverlay
=
true
;
this
.
addToQueue
(
url
);
this
.
addToQueue
(
url
);
});
});
this
.
$root
.
$on
(
'
showDownloadOverlay
'
,
()
=>
{
this
.
$root
.
$on
(
'
showDownloadOverlay
'
,
()
=>
{
...
@@ -222,7 +223,7 @@
...
@@ -222,7 +223,7 @@
}
}
::-webkit-scrollbar {
::-webkit-scrollbar {
background: #212529;
background: #212529;
width:
5
px;
width:
8
px;
}
}
::-webkit-scrollbar-thumb {
::-webkit-scrollbar-thumb {
background: #fff;
background: #fff;
...
@@ -233,9 +234,8 @@
...
@@ -233,9 +234,8 @@
}
}
main {
main {
display: grid;
display: grid;
margin-left: 60px;
position: absolute;
position: absolute;
top:
3
0px;
top:
6
0px;
bottom: 0px;
bottom: 0px;
left: 0px;
left: 0px;
right: 0px;
right: 0px;
...
@@ -325,7 +325,7 @@
...
@@ -325,7 +325,7 @@
transition: transform .5s;
transition: transform .5s;
}
}
.slideDownloadOverlay-enter, .slideDownloadOverlay-leave-to {
.slideDownloadOverlay-enter, .slideDownloadOverlay-leave-to {
transform: translateX(
-
400px);
transform: translateX(400px);
}
}
.tooltip {
.tooltip {
background: #000000;
background: #000000;
...
@@ -335,40 +335,14 @@
...
@@ -335,40 +335,14 @@
&[x-placement='top'] {
&[x-placement='top'] {
margin-bottom: 5px;
margin-bottom: 5px;
&:after {
top: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-color: rgba(0, 0, 0, 0);
border-top-color: #000000;
border-width: 8px;
margin-left: -8px;
}
}
}
&[x-placement='right'] {
&[x-placement='right'] {
margin-left: 5px;
margin-left: 5px;
}
&:after {
&[x-placement='down'] {
right: 100%;
margin-bottom: 5px;
top: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-color: rgba(0, 0, 0, 0);
border-right-color: #000000;
border-width: 8px;
margin-top: -8px;
}
}
}
}
}
</
style
>
</
style
>
src/background.js
View file @
729a967c
...
@@ -62,13 +62,11 @@ app.setAsDefaultProtocolClient("spinshare-user");
...
@@ -62,13 +62,11 @@ app.setAsDefaultProtocolClient("spinshare-user");
function
createWindow
()
{
function
createWindow
()
{
win
=
new
BrowserWindow
({
win
=
new
BrowserWindow
({
title
:
"
SpinSha.re
"
,
title
:
"
SpinSha.re
"
,
width
:
1350
,
width
:
1300
,
height
:
740
,
height
:
800
,
minHeight
:
740
,
minHeight
:
800
,
minWidth
:
1350
,
minWidth
:
1300
,
frame
:
false
,
backgroundColor
:
'
#212629
'
,
backgroundColor
:
'
#212629
'
,
titleBarStyle
:
'
hiddenInset
'
,
webPreferences
:
{
webPreferences
:
{
nodeIntegration
:
true
nodeIntegration
:
true
}
}
...
...
src/components/Navigation/Navigation.vue
View file @
729a967c
This diff is collapsed.
Click to expand it.
src/components/Overlays/DownloadOverlay.vue
View file @
729a967c
...
@@ -62,9 +62,9 @@
...
@@ -62,9 +62,9 @@
.download-overlay {
.download-overlay {
position: fixed;
position: fixed;
z-index: 10;
z-index: 10;
top:
3
0px;
top:
6
0px;
bottom: 0px;
bottom: 0px;
left: 6
0px;
right:
0px;
width: 400px;
width: 400px;
background: #383C3F;
background: #383C3F;
display: grid;
display: grid;
...
@@ -151,6 +151,6 @@
...
@@ -151,6 +151,6 @@
}
}
}
}
.app-darwin .download-overlay {
.app-darwin .download-overlay {
top:
4
0px;
top:
10
0px;
}
}
</
style
>
</
style
>
src/components/Song/SongItem.vue
View file @
729a967c
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
.song-item {
.song-item {
background: rgba(255,255,255,0.1);
background: rgba(255,255,255,0.1);
transition: 0.2s ease-in-out transform, 0.2s ease-in-out box-shadow;
transition: 0.2s ease-in-out transform, 0.2s ease-in-out b
ackground, 0.2s ease-in-out b
ox-shadow;
overflow: hidden;
overflow: hidden;
border-radius: 6px;
border-radius: 6px;
...
@@ -168,8 +168,8 @@
...
@@ -168,8 +168,8 @@
}
}
&:hover {
&:hover {
transform: scale(1.1);
cursor: pointer;
cursor: pointer;
background: rgba(255,255,255,0.2);
box-shadow: 0px 4px 20px 5px rgba(0, 0, 0, 0.4);
box-shadow: 0px 4px 20px 5px rgba(0, 0, 0, 0.4);
& .song-cover {
& .song-cover {
...
...
src/components/Song/SongLocalItem.vue
View file @
729a967c
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
.song-item-local {
.song-item-local {
background: rgba(255,255,255,0.1);
background: rgba(255,255,255,0.1);
transition: 0.2s ease-in-out transform, 0.2s ease-in-out box-shadow;
transition: 0.2s ease-in-out transform, 0.2s ease-in-out b
ackground, 0.2s ease-in-out b
ox-shadow;
overflow: hidden;
overflow: hidden;
border-radius: 6px;
border-radius: 6px;
...
@@ -145,8 +145,8 @@
...
@@ -145,8 +145,8 @@
}
}
&:not(.song-item-onlylocal):hover {
&:not(.song-item-onlylocal):hover {
transform: scale(1.1);
cursor: pointer;
cursor: pointer;
background: rgba(255,255,255,0.2);
box-shadow: 0px 4px 20px 5px rgba(0, 0, 0, 0.4);
box-shadow: 0px 4px 20px 5px rgba(0, 0, 0, 0.4);
& .song-cover {
& .song-cover {
...
...
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