diff --git a/music/auth/auth.py b/music/auth/auth.py index 5e10df5..520afe3 100644 --- a/music/auth/auth.py +++ b/music/auth/auth.py @@ -114,7 +114,7 @@ def auth(): 'client_id': client_id, 'response_type': 'code', 'scope': 'playlist-modify-public playlist-modify-private playlist-read-private user-read-playback-state user-modify-playback-state user-library-read', - 'redirect_uri': 'https://spotify.sarsoo.xyz/auth/spotify/token' + 'redirect_uri': 'https://music.sarsoo.xyz/auth/spotify/token' } ) @@ -141,7 +141,7 @@ def token(): data = { 'grant_type': 'authorization_code', 'code': code, - 'redirect_uri': 'https://spotify.sarsoo.xyz/auth/spotify/token' + 'redirect_uri': 'https://music.sarsoo.xyz/auth/spotify/token' } req = requests.post('https://accounts.spotify.com/api/token', data=data, headers=headers) diff --git a/src/js/Index/Index.js b/src/js/Index/Index.js index dc7c701..1d14848 100644 --- a/src/js/Index/Index.js +++ b/src/js/Index/Index.js @@ -1,5 +1,7 @@ import React, { Component } from "react"; +import { Card, CardContent, Typography, Grid } from '@material-ui/core'; + class Index extends Component{ constructor(props){ @@ -9,30 +11,26 @@ class Index extends Component{ render(){ return ( -
- Construct spotify playlists from selections of other playlists - | -
- Group sub-genre playlists - | -
- Optionally append auto-generated recommendations - | -
- Playlists are run multiple times a day - |
-
{this.state.errorValue}
} + name="new2" + value={this.state.new2} + className="full-width" /> +Last.fm Username |
- |
---|---|
Username: | -- |
- |
Loading...
; diff --git a/src/js/Settings/SettingsRouter.js b/src/js/Settings/SettingsRouter.js index d3c3955..ae7fef7 100644 --- a/src/js/Settings/SettingsRouter.js +++ b/src/js/Settings/SettingsRouter.js @@ -1,5 +1,6 @@ import React, { Component } from "react"; -import { BrowserRouter as Route, Link } from "react-router-dom"; +import { Route, Link, Switch } from "react-router-dom"; +import { Paper, Tabs, Tab} from '@material-ui/core'; import ChangePassword from "./ChangePassword.js"; import SpotifyLink from "./SpotifyLink.js"; @@ -7,19 +8,41 @@ import LastFM from "./LastFM.js"; class Settings extends Component { + constructor(props){ + super(props); + this.state = { + tab: 0 + } + this.handleChange = this.handleChange.bind(this); + } + + handleChange(e, newValue){ + this.setState({ + tab: newValue + }); + } + render() { return (Spotify Link |
-
---|
- Status: { this.state.spotify_linked ? "Linked" : "Unlinked" } - | -
- { this.state.spotify_linked ? |
-
Loading...
; @@ -56,11 +50,11 @@ class SpotifyLink extends Component { } function AuthButton(props) { - return Auth; + return ; } function DeAuthButton(props) { - return De-Auth; + return ; } export default SpotifyLink; \ No newline at end of file