Skip to content

Commit

Permalink
release v0.2
Browse files Browse the repository at this point in the history
Merge branch 'dev'

Conflicts:
	install.sh
  • Loading branch information
Zé Bateira committed Apr 11, 2014
2 parents 85247e5 + 31e54b1 commit 2b61df5
Show file tree
Hide file tree
Showing 13 changed files with 131 additions and 62 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ With no official release for the Spotify Desktop Client, there's nothing I can d
[Releases]
----

[v0.2] - UI redesign
- UI updated to darker theme
- settings are kept when playing artist changes

[v0.1.3] - Play tracks from artist node
- look and feel of the nodes updated
- on double click a node in the graph, top tracks of the artist are played
Expand Down Expand Up @@ -91,6 +95,7 @@ José Bateira
[@\_carsy\_]:http://twitter.com/_carsy_
[here]:https://github.com/carsy/rama-spotify/releases/latest
[Releases]:https://github.com/carsy/rama-spotify/releases/latest
[v0.2]:https://github.com/carsy/rama-spotify/releases/tag/v0.2
[v0.1.3]:https://github.com/carsy/rama-spotify/releases/tag/v0.1.3
[v0.1.2]:https://github.com/carsy/rama-spotify/releases/tag/v0.1.2
[v0.1.1]:https://github.com/carsy/rama-spotify/releases/tag/v0.1.1
Expand Down
12 changes: 6 additions & 6 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rama",
"version": "0.1.3",
"version": "0.2.0",
"homepage": "https://github.com/carsy/master-thesis",
"authors": [
"Zé Bateira <jlageb+git@gmail.com>"
Expand All @@ -21,12 +21,12 @@
"tests"
],
"dependencies": {
"jquery": "~2.1.0",
"vis": "~0.7.0",
"normalize-css": "~3.0.0",
"underscore": "~1.6.0"
"jquery": "^2.1.0",
"vis": "^0.7.0",
"normalize-css": "^3.0.0",
"underscore": "^1.6.0"
},
"devDependencies": {
"jasmine-jquery": "~2.0.3"
"jasmine-jquery": "^2.0.3"
}
}
71 changes: 43 additions & 28 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,30 +251,42 @@ body, html {
box-sizing: border-box;
}

/* line 15, ../sass/main.scss */
/* line 31, ../sass/main.scss */
a {
text-decoration: none;
}

/* line 19, ../sass/main.scss */
/* line 35, ../sass/main.scss */
html, body {
height: 100%;
color: #a1a3a6;
}

/* line 31, ../sass/main.scss */
/* line 43, ../sass/main.scss */
#view_container {
height: calc(100% - 60px - 34px);
height: calc(100% - 60px);
background-color: #222326;
}
/* line 34, ../sass/main.scss */
/* line 47, ../sass/main.scss */
#view_container .view {
height: 100%;
}

/* line 52, ../sass/main.scss */
.sp-throbber-background {
background-color: #ecebe8;
}

/* line 56, ../sass/main.scss */
.sp-tabbar {
display: none !important;
}

/* imports */
/* Header Styles */
/* line 4, ../sass/_header.scss */
.sp-header {
background-color: #333;
background-color: #222326;
max-height: 60px;
position: relative;
min-height: 60px;
Expand All @@ -298,7 +310,7 @@ html, body {
top: 15px;
padding-left: 10px;
padding-right: 10px;
background-color: black;
background-color: #313336;
margin-left: 10px;
}
/* line 37, ../sass/_header.scss */
Expand Down Expand Up @@ -331,83 +343,86 @@ html, body {
#view_container {
overflow: hidden;
position: relative;
background-color: #1c1c1f;
}

/* line 11, ../sass/_now_playing.scss */
/* line 12, ../sass/_now_playing.scss */
.settings {
position: absolute;
z-index: 2;
top: 10px;
right: 20px;
right: 10px;
}
/* line 17, ../sass/_now_playing.scss */
/* line 18, ../sass/_now_playing.scss */
.settings .settings-btn {
float: right;
width: 20px;
height: 20px;
margin-bottom: 10px;
margin-right: 4px;
background: url(../img/settings-dark.png) no-repeat;
margin: 10px 4px 10px 0;
opacity: 0.8;
background: url(../img/settings.png) no-repeat;
background-size: cover;
}
/* line 28, ../sass/_now_playing.scss */
/* line 29, ../sass/_now_playing.scss */
.settings .settings-btn:hover {
cursor: pointer;
}
/* line 32, ../sass/_now_playing.scss */
/* line 33, ../sass/_now_playing.scss */
.settings .settings-btn.opened {
opacity: 0.8;
opacity: 1;
}
/* line 36, ../sass/_now_playing.scss */
/* line 37, ../sass/_now_playing.scss */
.settings .settings-btn:active {
-webkit-transform: scale(0.9, 0.9);
}
/* line 41, ../sass/_now_playing.scss */
/* line 42, ../sass/_now_playing.scss */
.settings .settings-form {
display: none;
position: relative;
float: right;
padding: 10px 6px;
background-color: #ecebe8;
background-color: #222326;
border-radius: 2px;
border-width: 1px;
border-color: #bbb;
border-color: #999;
border-style: solid;
}
/* line 54, ../sass/_now_playing.scss */
/* line 55, ../sass/_now_playing.scss */
.settings .settings-form .tri {
position: absolute;
top: -5px;
right: 8px;
width: 10px;
height: 10px;
background-color: #ecebe8;
background-color: #222326;
border-radius: 2px;
border-width: 1px;
border-color: #bbb transparent transparent #bbb;
border-color: #999 transparent transparent #999;
border-style: solid;
-webkit-transform: rotate(45deg);
}
/* line 71, ../sass/_now_playing.scss */
/* line 72, ../sass/_now_playing.scss */
.settings .settings-form .option {
overflow: auto;
}
/* line 74, ../sass/_now_playing.scss */
/* line 75, ../sass/_now_playing.scss */
.settings .settings-form .option:not(.first-child) {
margin-top: 5px;
}
/* line 78, ../sass/_now_playing.scss */
/* line 79, ../sass/_now_playing.scss */
.settings .settings-form .option label {
float: left;
margin-right: 5px;
}
/* line 82, ../sass/_now_playing.scss */
/* line 83, ../sass/_now_playing.scss */
.settings .settings-form .option input {
padding: 2px;
width: 30px;
float: right;
background-color: #222326;
border-width: 1px;
}
/* line 87, ../sass/_now_playing.scss */
/* line 90, ../sass/_now_playing.scss */
.settings .settings-form .option input[name=treemode] {
margin-top: 5px;
margin-left: 5px;
Expand Down
10 changes: 10 additions & 0 deletions deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#/bin/zsh

version=$1
buildfolder="rama-spotify"

git tag $version
git push --tags
grunt build
zip -r "$buildfolder_$version".zip "$buildfolder"/*
tar -cf "$buildfolder_$version".zip "$buildfolder"/*
Binary file modified img/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/sh

version="v0.2"

mkdir ~/Spotify ; cd ~/Spotify
rm -rf rama-spotify
wget https://github.com/carsy/rama-spotify/releases/download/v0.1.3/rama-spotify_v0.1.3.tar.gz
tar -xvf rama-spotify_v0.1.3.tar.gz
open spotify:app:rama-spotify
wget https://github.com/carsy/rama-spotify/releases/download/"$version"/rama-spotify_"$version".tar.gz
tar -xvf rama-spotify_"$version".tar.gz
open spotify:app:rama-spotify
14 changes: 13 additions & 1 deletion js/controllers/nowplaying.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ var NowPlaying = function(viewId, viewpath) {
shape: 'box',
radius: 1,
},
edges: {
color: {
color: '#8f9096',
highlight: '#8f9096'
}
},
stabilize: true
// clustering: true
};
Expand Down Expand Up @@ -54,8 +60,13 @@ NowPlaying.prototype = {
});
},
updateView: function() {
if (this.artistGraph)
if (this.artistGraph) {
this.artistGraph.redraw();
if (this.artistGraph.throbber)
this.artistGraph.throbber.setPosition('center', 'center');
}



return this;
},
Expand Down Expand Up @@ -140,6 +151,7 @@ NowPlaying.prototype = {
this.artistGraph.throbber =
Throbber.forElement(document.getElementById(this.viewId));
this.artistGraph.throbber.setPosition('center', 'center');
this.artistGraph.throbber._addBackground();
}
};

Expand Down
3 changes: 2 additions & 1 deletion js/models/artistgraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ArtistGraph.prototype = {
var extraEdge = {
from: rootArtist.nodeid,
to: duplicated.id,
color: '#ddd'
color: '#aaa'
};

this.extraEdges.push(extraEdge);
Expand Down Expand Up @@ -160,6 +160,7 @@ ArtistGraph.prototype = {
console.log('# nodes: ' + this.data.nodes.length);
console.log('# edges: ' + this.data.edges.length);
}

},
updateGraph: function(config) {
this.branching = config.branching || this.branching;
Expand Down
5 changes: 3 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"BundleType": "Application",
"BundleVersion": "0.2",
"Dependencies": {
"api": "1.35",
"views": "1.56.3"
"api": "1.0.0",
"views": "1.0.0",
"resources": "0.7.0"
},
"SupportedDeviceClasses": ["Desktop"],
"SupportedLanguages": [
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "RAMA",
"version": "0.1.3",
"version": "0.2.0",
"description": "Relational Artist MAps",
"repository": {
"type": "git",
Expand All @@ -14,11 +14,11 @@
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-watch": "^0.6.0",
"grunt-contrib-jshint": "~0.9.2",
"grunt-contrib-jshint": "*",
"grunt-contrib-jasmine": "^0.6.1",
"grunt-contrib-compass": "~0.7.2",
"grunt-usemin": "^2.0.2",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-concat": "^0.3.0",
"grunt-contrib-uglify": "^0.4.0",
"grunt-contrib-cssmin": "^0.9.0",
"grunt-contrib-copy": "^0.5.0",
Expand Down
4 changes: 2 additions & 2 deletions sass/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


.sp-header {
background-color: #333;
background-color: $new-bg;
max-height: $header-height;
position: relative;

Expand Down Expand Up @@ -31,7 +31,7 @@

padding-left: 10px;
padding-right: 10px;
background-color: black;
background-color: $new-bg-lighter2;
margin-left: 10px;

a {
Expand Down
Loading

0 comments on commit 2b61df5

Please sign in to comment.