|
@@ -56,198 +56,6 @@ export default class Homepage extends Component {
|
|
|
else community.push(station);
|
|
|
});
|
|
|
|
|
|
- if (this.isOwner("fd")) official.push({
|
|
|
- "_id": "59b522222634af57e8e2fffdbcf",
|
|
|
- "name": "pr_o",
|
|
|
- "displayName": "PrivateOfficial",
|
|
|
- "description": "Test official station. Private.",
|
|
|
- "type": "official",
|
|
|
- "queue": [],
|
|
|
- "locked": false,
|
|
|
- "privacy": "private",
|
|
|
- "blacklistedGenres": [],
|
|
|
- "genres": [],
|
|
|
- "playlist": [],
|
|
|
- "startedAt": 0,
|
|
|
- "pausedAt": 0,
|
|
|
- "timePaused": 0,
|
|
|
- "currentSongIndex": 0,
|
|
|
- userCount: 0,
|
|
|
- "currentSong": {
|
|
|
- "songId": "60ItHLz5WEA",
|
|
|
- "title": "Faded - Alan Walker",
|
|
|
- "duration": 212,
|
|
|
- "skipDuration": 0,
|
|
|
- "skipVotes": [],
|
|
|
- "dislikes": -1,
|
|
|
- "likes": -1,
|
|
|
- "artists": [],
|
|
|
- thumbnail: "/assets/images/notes-transparent.png"
|
|
|
- },
|
|
|
- "paused": false,
|
|
|
- "__v": 0
|
|
|
- });
|
|
|
-
|
|
|
- if (this.isOwner("fd")) official.push({
|
|
|
- "_id": "59b52sss2222634af57e8e2dbcf",
|
|
|
- "name": "un_o",
|
|
|
- "displayName": "UnlistedOfficial",
|
|
|
- "description": "Test official station. Unlisted.",
|
|
|
- "type": "official",
|
|
|
- "queue": [],
|
|
|
- "locked": false,
|
|
|
- "privacy": "unlisted",
|
|
|
- "blacklistedGenres": [],
|
|
|
- "genres": [],
|
|
|
- "playlist": [],
|
|
|
- "startedAt": 0,
|
|
|
- "pausedAt": 0,
|
|
|
- "timePaused": 0,
|
|
|
- "currentSongIndex": 0,
|
|
|
- userCount: 0,
|
|
|
- "currentSong": {
|
|
|
- "songId": "60ItHLz5WEA",
|
|
|
- "title": "Faded - Alan Walker",
|
|
|
- "duration": 212,
|
|
|
- "skipDuration": 0,
|
|
|
- "skipVotes": [],
|
|
|
- "dislikes": -1,
|
|
|
- "likes": -1,
|
|
|
- "artists": [],
|
|
|
- thumbnail: "/assets/images/notes-transparent.png"
|
|
|
- },
|
|
|
- "paused": false,
|
|
|
- "__v": 0
|
|
|
- });
|
|
|
-
|
|
|
- official.push({
|
|
|
- "_id": "59b5222ggfg22634afe7e8e2dbcf",
|
|
|
- "name": "pu_o",
|
|
|
- "displayName": "PublicOfficial",
|
|
|
- "description": "Test official station. Public.",
|
|
|
- "type": "official",
|
|
|
- "queue": [],
|
|
|
- "locked": false,
|
|
|
- "privacy": "public",
|
|
|
- "blacklistedGenres": [],
|
|
|
- "genres": [],
|
|
|
- "playlist": [],
|
|
|
- "startedAt": 0,
|
|
|
- "pausedAt": 0,
|
|
|
- "timePaused": 0,
|
|
|
- "currentSongIndex": 0,
|
|
|
- userCount: 0,
|
|
|
- "currentSong": {
|
|
|
- "songId": "60ItHLz5WEA",
|
|
|
- "title": "Faded - Alan Walker",
|
|
|
- "duration": 212,
|
|
|
- "skipDuration": 0,
|
|
|
- "skipVotes": [],
|
|
|
- "dislikes": -1,
|
|
|
- "likes": -1,
|
|
|
- "artists": [],
|
|
|
- thumbnail: "/assets/images/notes-transparent.png"
|
|
|
- },
|
|
|
- "paused": false,
|
|
|
- "__v": 0
|
|
|
- });
|
|
|
-
|
|
|
- community.push({
|
|
|
- "_id": "59b5221222634afe7e8e2dbcf",
|
|
|
- "name": "pu_c",
|
|
|
- "displayName": "PublicCommunity",
|
|
|
- "description": "Test community station. Public.",
|
|
|
- "type": "community",
|
|
|
- "queue": [],
|
|
|
- "locked": false,
|
|
|
- "privacy": "public",
|
|
|
- "blacklistedGenres": [],
|
|
|
- "genres": [],
|
|
|
- "playlist": [],
|
|
|
- "startedAt": 0,
|
|
|
- "pausedAt": 0,
|
|
|
- "timePaused": 0,
|
|
|
- "currentSongIndex": 0,
|
|
|
- userCount: 0,
|
|
|
- "currentSong": {
|
|
|
- "songId": "60ItHLz5WEA",
|
|
|
- "title": "Faded - Alan Walker",
|
|
|
- "duration": 212,
|
|
|
- "skipDuration": 0,
|
|
|
- "skipVotes": [],
|
|
|
- "dislikes": -1,
|
|
|
- "likes": -1,
|
|
|
- "artists": [],
|
|
|
- thumbnail: "/assets/images/notes-transparent.png"
|
|
|
- },
|
|
|
- "paused": false,
|
|
|
- "__v": 0
|
|
|
- });
|
|
|
-
|
|
|
- if (this.isOwner("fd")) community.push({
|
|
|
- "_id": "59b522222634af3e7e8e2dbcf",
|
|
|
- "name": "un_c",
|
|
|
- "displayName": "UnlistedCommunity",
|
|
|
- "description": "Test community station. Unlisted.",
|
|
|
- "type": "community",
|
|
|
- "queue": [],
|
|
|
- "locked": false,
|
|
|
- "privacy": "unlisted",
|
|
|
- "blacklistedGenres": [],
|
|
|
- "genres": [],
|
|
|
- "playlist": [],
|
|
|
- "startedAt": 0,
|
|
|
- "pausedAt": 0,
|
|
|
- "timePaused": 0,
|
|
|
- "currentSongIndex": 0,
|
|
|
- userCount: 0,
|
|
|
- "currentSong": {
|
|
|
- "songId": "60ItHLz5WEA",
|
|
|
- "title": "Faded - Alan Walker",
|
|
|
- "duration": 212,
|
|
|
- "skipDuration": 0,
|
|
|
- "skipVotes": [],
|
|
|
- "dislikes": -1,
|
|
|
- "likes": -1,
|
|
|
- "artists": [],
|
|
|
- thumbnail: "/assets/images/notes-transparent.png"
|
|
|
- },
|
|
|
- "paused": false,
|
|
|
- "__v": 0
|
|
|
- });
|
|
|
-
|
|
|
- if (this.isOwner("fd")) community.push({
|
|
|
- "_id": "59b522222634afe7e8e2dbcf",
|
|
|
- "name": "pr_c",
|
|
|
- "displayName": "PrivateCommunity",
|
|
|
- "description": "Test community station. Private.",
|
|
|
- "type": "community",
|
|
|
- "queue": [],
|
|
|
- "locked": false,
|
|
|
- "privacy": "private",
|
|
|
- "blacklistedGenres": [],
|
|
|
- "genres": [],
|
|
|
- "playlist": [],
|
|
|
- "startedAt": 0,
|
|
|
- "pausedAt": 0,
|
|
|
- "timePaused": 0,
|
|
|
- "currentSongIndex": 0,
|
|
|
- userCount: 0,
|
|
|
- "currentSong": {
|
|
|
- "songId": "60ItHLz5WEA",
|
|
|
- "title": "Faded - Alan Walker",
|
|
|
- "duration": 212,
|
|
|
- "skipDuration": 0,
|
|
|
- "skipVotes": [],
|
|
|
- "dislikes": -1,
|
|
|
- "likes": -1,
|
|
|
- "artists": [],
|
|
|
- thumbnail: "/assets/images/notes-transparent.png"
|
|
|
- },
|
|
|
- "paused": false,
|
|
|
- "__v": 0
|
|
|
- });
|
|
|
-
|
|
|
this.setState({
|
|
|
stations: {
|
|
|
official,
|