Merge pull request #1 from Maathias/refactor

Refactor
This commit was merged in pull request #1.
This commit is contained in:
Mateusz Pstrucha authored and GitHub committed 2021-09-08 08:08:40 +02:00
commit ea39430748
43 files changed
+351 -4742

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
node_modules/
*cred.json
.vscode/
.env
.env
old/
+6
View File
@@ -0,0 +1,6 @@
{
"tabWidth": 2,
"useTabs": true,
"singleQuote": true,
"semi": false
}
+80
View File
@@ -0,0 +1,80 @@
# radio-rolnik API
Backend server for radio-rolnik
## Routes
### `/track`
Get track metadata
`GET` `/track/:id` get track by track id
```javascript
{
id: String,
title: String,
artists: [String...],
album: {
name: String,
art: String,
year: Number,
},
duration: Number, // milliseconds
explicit: Boolean,
banned: Boolean,
votes: {
up: Number,
down: Number,
rank: Number,
},
}
```
### `/status`
Get currently playing track
`GET` `/status` get track, with additional metadata
```javascript
{
track: TrackID,
progress: Number
}
```
### `/history`
Get previous and next tracks
`GET` `/history/next` next track
```javascript
{
track: TrackID,
timestamp: Date
}
```
`GET` `/history/previous` next track
```javascript
{
tracks: [TrackID...],
timestamps: [Date...]
}
```
### `/search`
Search for tracks
`GET` `/search` general search
```javascript
{
tracks: [TrackID...],
total: Number
}
```
+27
View File
@@ -0,0 +1,27 @@
class Track {
constructor(data) {
console.log(data)
this.id = data.id
this.title = data.name
this.artists = data.artists.map((a) => a.name)
this.album = {
name: data.album.name,
art: data.album.images[0].url,
year: data.album.release_date.slice(0, 4),
}
this.duration = data.duration_ms
this.explicit = data.explicit
this.banned = false
this.votes = {
up: 100,
down: 50,
rank: 1,
}
}
}
export default Track
+2 -306
View File
@@ -1,307 +1,3 @@
const mongoose = require('mongoose'),
credentials = require('./mongo-cred.json'),
pretty = require('pretty-log'),
crypto = require('crypto')
var db = {}
mongoose.connect("mongodb://odin.home.mathew.pl:27017/radio-rolnik", {
auth: credentials.auth,
user: credentials.user,
pass: credentials.pass,
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: false
});
var database = mongoose.connection
database.on('error', err => {
throw err
});
database.once('open', () => {
pretty.log(`DB connected`)
});
var Track = mongoose.model('Track', new mongoose.Schema({
id: String,
title: String,
album: {
name: String,
image: {
width: Number,
height: Number,
url: String
}
},
artists: Array,
duration: Number,
source: String,
explicit: Boolean,
banned: Boolean
}, { collection: 'tracks', timestamps: { createdAt: 'createdAt', updatedAt: 'updatedAt' } })),
Vote = mongoose.model('Vote', new mongoose.Schema({
uid: String,
tid: String,
flag: String,
comment: String,
}, { collection: 'votes', timestamps: { createdAt: 'createdAt', updatedAt: 'updatedAt' } })),
User = mongoose.model('User', new mongoose.Schema({
id: String,
name: String,
mail: String,
token: String,
admin: Number,
}, { collection: 'users', timestamps: { createdAt: 'createdAt', updatedAt: 'updatedAt' } })),
Previous = mongoose.model('Previous', new mongoose.Schema({
tid: String
}, { collection: 'history', timestamps: { createdAt: 'createdAt', updatedAt: false } }))
module.exports = {
users: {
get(id) {
return new Promise((resolve, reject) => {
User.findOne({ id: id }).exec(function (err, user) {
if (err) throw new Error(err)
if (user === null) {
reject(null)
} else resolve(user)
})
})
},
login(token) {
return new Promise((resolve, reject) => {
User.findOne({ token: token }).exec(function (err, user) {
if (err) throw new Error(err)
if (user === null) {
reject(null)
} else resolve(user)
})
})
},
add(creds) {
return new Promise((resolve, reject) => {
User.create({
id: creds.id,
name: creds.name,
mail: creds.email,
token: crypto.randomBytes(20).toString('hex')
}, function (err, user) {
resolve(user)
})
})
},
search(query) {
return new Promise((resolve, reject) => {
User.find({
$text: { $search: query }
}).then(users => {
resolve(users)
})
})
}
},
votes: {
timeValid: () => {
switch (process.env.valid_type) {
default:
case 'monday':
var monday = new Date();
monday.setHours(0, 0, 0)
monday.setDate(monday.getDate() - (monday.getDay() + 6) % 7);
return monday
case 'date':
let date = new Date(...JSON.parse(process.env.valid_date))
return date
}
},
add(user, tid, flag) {
return new Promise((resolve, reject) => {
if (typeof user == 'undefined') return reject(new Error("Not authorized"))
if (flag == 'report') {
this.report(user, tid)
} else this.validUser(user, tid).then(vote => {
if (vote) {
Vote.updateOne({
_id: vote._id
},
{
flag: flag
}).then(status => {
if (status.ok != 1) pretty.log({
data: "Vote: vote change error",
action: 'error'
})
resolve(vote)
pretty.log(`'${user.name}' changed vote to '${flag == 'up' ? ' up ' : flag}' on '${tid}'`, 2)
})
} else {
Vote.create({
uid: user.id,
tid: tid,
flag: flag
}).then(vote => {
resolve(vote)
pretty.log(`'${user.name}' voted '${flag}' on '${tid}'`, 2)
})
}
})
})
},
get(uid, tid) {
return new Promise((resolve, reject) => {
Vote.find({
$or: [
{ uid: uid },
{ tid: tid }
]
}).then(votes => {
resolve(votes)
})
})
},
report(user, tid) {
return new Promise((resolve, reject) => {
if (typeof user == 'undefined') return reject(new Error("Not authorized"))
Vote.create({
uid: user.id,
tid: tid,
flag: 'report',
}).then(vote => {
resolve(vote)
pretty.log(`'${user.name}' reported '${tid}'`, 2)
})
})
},
validUser(user, tid) {
return new Promise((resolve, reject) => {
if (typeof user == 'undefined') reject(new Error(`User not authenticated`))
Vote.findOne({
uid: user.id,
tid: tid,
$or: [
{ flag: 'up' },
{ flag: 'down' },
{ flag: null }
],
createdAt: {
$gt: this.timeValid()
}
}, function (err, vote) {
resolve(vote)
// resolve({
// up: !!votes.find(vote => vote.flag == 'up'),
// down: !!votes.find(vote => vote.flag == 'down'),
// report: !!votes.find(vote => vote.flag == 'report')
// })
})
})
},
validAll() {
return new Promise((resolve, reject) => {
Vote.find({
createdAt: {
// $gt: new Date(new Date().getTime() - this.timeValid)
// $gt: new Date(new Date().setHours(0, 0, 0))
$gt: this.timeValid()
},
$or: [
{ flag: 'up' },
{ flag: 'down' }
]
}).then(function (votes) {
let results = {}
for (let vote of votes) {
if (typeof results[vote.tid] == 'undefined') results[vote.tid] = {
total: 0,
up: 0,
down: 0
}
results[vote.tid][vote.flag]++
results[vote.tid].total += { 'up': 1, 'down': -1 }[vote.flag]
}
resolve(results)
})
})
},
},
tracks: {
get(id) {
return new Promise((resolve, reject) => {
Track.findOne({
id: id
}).then(track => {
if (track === null) return reject(new Error(`Tracks: ${id} not found`))
resolve(track)
}).catch(err => {
reject(err)
})
})
},
add(track) {
return new Promise((resolve, reject) => {
Track.findOneAndUpdate(
{ id: track.id }, // find
{
id: track.id,
title: track.title,
album: track.album,
artists: track.artists,
duration: track.duration,
source: track.source,
explicit: track.explicit,
banned: track.banned || false,
}, // update
{ upsert: true }) // create if doesn't exist
.then(track => {
resolve(track)
})
return
Track.create({
id: track.id,
title: track.title,
album: track.album,
artists: track.artists,
duration: track.duration,
source: track.source
}).then(track => {
resolve(track)
})
})
},
search(query) {
return new Promise((resolve, reject) => {
Track.find({
$text: { $search: query }
}).then(tracks => {
resolve(tracks)
})
})
}
},
history: {
get() {
return new Promise((resolve, reject) => {
Previous.find({}).sort({ createdAt: -1 }).limit(20).then(previous => {
resolve(previous)
})
})
},
add(tid) {
return new Promise((resolve, reject) => {
Previous.create({
tid: tid
}).then(previous => {
resolve(previous)
})
})
}
}
}
export default db
+30 -723
View File
@@ -1,736 +1,43 @@
const dotenv = require('dotenv').config(),
express = require('express'),
path = require('path'),
cookieParser = require('cookie-parser'),
http = require('http'),
https = require('https'),
fs = require('fs'),
pretty = require('pretty-log'),
io = require('socket.io'),
SpotifyWebApi = require('spotify-web-api-node'),
db = require('./db');
import dotenv from 'dotenv'
import express, { json, urlencoded } from 'express'
import { join } from 'path'
import cookieParser from 'cookie-parser'
import { createServer } from 'http'
import fs from 'fs'
class Track {
constructor(data, source) {
this.source = source
switch (source) {
case 'spotify': this._spotify(data); break;
case 'db': this._db(data); break;
}
import db from './db.js'
import { byId } from './spotify.js'
this._listen()
import track from './routes/track.js'
import status from './routes/status.js'
import history from './routes/history.js'
import search from './routes/search.js'
this.votes = null
this.placement = null
this.flag = null
}
_db(data) {
this.source = data.source
this.album = data.album
this.artists = data.artists
this.id = data.id
this.duration = data.duration
this.title = data.title
this.banned = data.banned
this.explicit = data.explicit
}
_spotify(data) {
this.album = {
name: data.album.name,
image: data.album.images[0]
}
this.artists = []
for (let artist of data.artists) {
this.artists.push(artist.name)
}
this.id = data.id
this.duration = data.duration_ms
this.title = data.name
this.explicit = data.explicit
this.banned = false
}
_listen() {
switch (this.source) {
case 'spotify':
this.listen = `https://open.spotify.com/track/${this.id}`
break;
}
}
}
class User {
constructor(user) {
this.id = user.id
this.name = user.name
this.mail = user.mail
this.token = user.token
this.admin = user.admin
}
info() {
return {
id: this.id,
name: this.name,
email: this.email,
token: this.token,
admin: this.admin
}
}
}
function apiSearch(id) {
return new Promise((resolve, reject) => {
if (typeof id != 'string') return reject(new Error('Incorrect id, must by type String'))
spotifySearch.getTrack(id).then(data => {
resolve(data.body)
}).catch(err => {
reject(err)
})
})
}
function tokenWrite(content, path) {
fs.writeFile(path, JSON.stringify(content, null, 4), function (err) {
if (err) throw err
})
}
function getAccess() {
spotifySearch.clientCredentialsGrant().then(function (data) {
pretty.log({ data: `Spotify: (search) new Access`, action: 'info' })
credentials.spotify.Access = {
value: data.body['access_token'],
expires: new Date().getTime() + (data.body['expires_in'] * 1e3)
}
tokenWrite(credentials.spotify, './spotify-cred.json')
spotifySearch.setAccessToken(credentials.spotify.Access.value)
setTimeout(function () {
getAccess()
}, data.body['expires_in'] * 1e3)
}
).catch(err => {
console.error(err)
})
}
function refreshAccess() {
spotifyPlayer.refreshAccessToken().then(function (data) {
pretty.log({ data: `Spotify: (player) new Access`, action: 'info' })
spotifyPlayer.setAccessToken(data.body['access_token']);
credentials.player.Access = {
value: data.body['access_token'],
expires: new Date().getTime() + (data.body['expires_in'] * 1e3)
}
tokenWrite(credentials.player, './player-cred.json')
}
).catch(err => {
console.error(err)
})
}
const credentials = {
spotify: require('./spotify-cred.json'),
player: require('./player-cred.json'),
api: require('./api-cred.json')
}
const Previous = {
tracks: [],
new(tid, played) {
if (this.tracks[this.tracks.length - 1]) if (this.tracks[this.tracks.length - 1].tid == tid) {
return
}
db.history.add(tid)
var previous = this._create(tid, played)
this.tracks.push(previous)
this._send(previous)
},
_create(tid, played = new Date) {
return { tid: tid, played: played.getTime() }
},
_send(previous) {
server.emit('previous', {
new: previous,
})
},
async update() {
this.tracks = []
for (previous of await db.history.get()) {
var previous = this._create(previous.tid, previous.createdAt)
this.tracks.unshift(previous)
this._send(previous)
}
return this.tracks
},
get() {
return {
all: this.tracks.slice(0, 20)
}
}
},
Player = {
current: {},
status: 'paused',
set(track, status = this.status) {
this.current = track
this.status = status
Previous.new(this.current.id)
pretty.log(`Player: new track - ${this.current.title}`, 2)
server.emit('player', {
tid: this.current.id,
status: this.status
})
},
update(status) {
if (this.status === status) return
this.status = status
pretty.log(`Player: status update: ${status}`, 2)
server.emit('player', {
status: this.status
})
},
},
Tracks = {
_list: {},
get(id) {
return new Promise((resolve, reject) => {
if (!this._list[id]) { // check for track in cache
db.tracks.get(id).then(tdata => { // track not in cache, query db
this.set(tdata, 'db')
resolve(this._list[id])
}).catch(err => { // track not in db, query api
apiSearch(id).then(tdata => {
this.set(tdata, 'spotify')
db.tracks.add(this._list[id]) // add to db
resolve(this._list[id])
}).catch(err => { // not in api, reject
reject(err)
pretty.log({ data: err.message, action: 'error' })
})
})
} else {
resolve(this._list[id])
}
})
},
set(tdata, source) {
this._list[tdata.id] = new Track(tdata, source)
return tdata.id
}
},
Chart = {
tids: [],
values: {},
_serial: 0,
_sentAt: null,
get serial() { return this._serial },
set serial(value) {
this._serial = value
this._changed = true
if (this._serial - this._sentAt > this.threshold) { // force update after 'thershold' of votes
this.update()
}
},
_changed: true,
delay: process.env.chart_delay,
threshold: process.env.chart_threshold,
interval() {
if (this._changed) {
this.update()
}
setTimeout(function () { Chart.interval() }, this.delay)
},
async update() {
this.values = await db.votes.validAll()
this.tids = []
for (let tid in this.values) {
this.tids.push(tid)
}
this.tids.sort((a, b) => {
return this.values[b].total - this.values[a].total
})
for (let tid in this.values) {
let track = await Tracks.get(tid)
track.votes = this.values[tid]
track.placement = this.tids.indexOf(tid) + 1
if (track.banned) this.tids.splice(this.tids.indexOf(tid), 1)
}
this._changed = false
this._sentAt = this._serial
server.emit('chart', this.get())
},
get() {
return {
tids: this.tids,
values: this.values,
serial: this.serial
}
},
},
Stats = {
_online: 0,
_auth: 0,
_authed: {},
get(id) {
return {
'online': this._online,
'auth': this._auth
}[id]
},
online() {
return this._online
},
connect() {
this._online++
},
disconnect() {
this._online--
},
auth(socket) {
if (!this._authed[socket.user.id]) this._authed[socket.user.id] = {}
this._authed[socket.user.id][socket.id] = {
user: socket.user,
socket: socket
}
this._auth++
},
deauth(socket) {
if (!socket.user) return
delete this._authed[socket.user.id][socket.id]
this._auth--
}
},
Playback = {
current: {},
_poll: process.env.playback_poll,
_timings: (function (timings) {
let out = []
for (let p of timings) {
out.push([(p[0][0] * 60) + p[0][1], (p[1][0] * 60) + p[1][1]])
}
return out
})(require('./timings.json')),
interval() {
if(this._poll) this.update()
clearTimeout(this._timeout)
this._timeout = setTimeout(function () { Playback.interval() }, this.getDelay() * 1e3)
},
update() {
spotifyPlayer.getMyCurrentPlaybackState().then(data => {
Playback.current = data.body
Playback.checkTrack()
}).catch(err => {
console.error(err)
})
},
checkTrack() {
if (this.current.is_playing === undefined) return Player.update('stopped')
if (this.current.item.id != Player.current.id) {
if (this.current.is_playing) Tracks.get(this.current.item.id).then(track => {
Player.set(track, 'playing')
})
else this.checkPlaying()
} else this.checkPlaying()
},
checkPlaying() {
if (this.current.is_playing ^ Player.status == 'playing') {
Player.update(this.current.is_playing ? 'playing' : 'paused')
}
},
getDelay() {
let date = new Date(),
minutes = date.getMinutes() + (date.getHours() * 60),
delay, last
for (let i in this._timings) {
let [start, end] = this._timings[i]
if (start - minutes <= 0 && end - minutes >= 0) {
delay = 0
break
} else {
if (last < 0 && start - minutes > 0) {
delay = start - minutes
break
}
delay = start - minutes
last = end - minutes
}
}
if (delay < 0) {
delay = 1440 - minutes
}
if (last <= 1 && last >= 0) return 5
if (delay <= 1) return 5
else return (delay - 1) * 60
}
}
var spotifySearch = new SpotifyWebApi({
clientId: credentials.spotify.clientId,
clientSecret: credentials.spotify.clientSecret
}),
spotifyPlayer = new SpotifyWebApi({
clientId: credentials.spotify.clientId,
clientSecret: credentials.spotify.clientSecret,
refreshToken: credentials.player.Refresh.value,
redirectUri: 'https://radio-rolnik.mtps.pl/spotify/done'
})
// search token
if (new Date().getTime() >= credentials.spotify.Access.expires) {
pretty.log({ data: `Spotify: (search) last Access is expired`, action: 'info' })
getAccess(spotifySearch)
} else {
spotifySearch.setAccessToken(credentials.spotify.Access.value)
setTimeout(function () {
pretty.log({ data: `Spotify: (search) current token expired`, action: 'info' })
getAccess(spotifySearch)
}, (credentials.spotify.Access.expires - new Date().getTime()))
}
// player token
if (new Date().getTime() >= credentials.player.Access.expires) {
pretty.log({ data: `Spotify: (player) last Access is expired`, action: 'info' })
refreshAccess()
} else {
spotifyPlayer.setAccessToken(credentials.player.Access.value)
setTimeout(function () {
pretty.log({ data: `Spotify: (player) current token expired`, action: 'info' })
refreshAccess()
}, (credentials.player.Access.expires - new Date().getTime()))
}
dotenv.config()
var app = express(),
www = http.createServer(app),
server = io(www);
www = createServer(app)
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
app.set('port', process.env.port);
app.use(json())
app.use(urlencoded({ extended: false }))
app.use(cookieParser())
app.set('port', process.env.port)
www.listen(process.env.port);
app.use('/track', track)
app.use('/status', status)
app.use('/history', history)
app.use('/search', search)
www.listen(process.env.port)
www.on('error', function (error) {
if (error.syscall !== 'listen') {
throw error;
}
if (error.syscall !== 'listen') {
throw error
}
pretty.log({
data: `Error: port ${process.env.port}: ${error.code}`,
action: 'error'
})
});
console.log(`Error: port ${process.env.port}: ${error.code}`)
})
www.on('listening', function () {
pretty.log(`www: listening on ${process.env.port}`)
});
app.use('/api/*', (req, res, next) => {
// parse login and password from headers
const b64auth = (req.headers.authorization || '').split(' ')[1] || ''
const [login, password] = Buffer.from(b64auth, 'base64').toString().split(':')
if (login && password && login === credentials.api.user && password === credentials.api.password) {
return next()
}
res.set('WWW-Authenticate', 'Basic realm="401"') // change this
res.status(401).send('Authentication required.') // custom message
console.log(`www: listening on ${process.env.port}`)
})
app.get('/api/player/set', function (req, res) {
if (req.query.tid) {
Tracks.get(req.query.tid).then(track => {
Player.set(track)
res.send('ok')
res.status(200)
}).catch(err => {
res.send(err.message)
res.status(400)
})
}
})
app.get('/api/player/status', function (req, res) {
let states = ['playing', 'paused', 'stopped']
if (states.includes(req.query.set)) {
Player.update(req.query.set)
res.send('ok')
res.status(200)
} else {
res.send('Incorrect status')
res.status(400)
}
})
app.get('/api/spotify/login', function (req, res) {
var scopes = ['user-read-private', 'user-read-email', 'user-read-playback-state', 'user-read-currently-playing'],
redirect = spotifyPlayer.createAuthorizeURL(scopes, 'what')
res.end(redirect)
})
app.get('/spotify/done', function (req, res) {
res.end('<script>window.onload=function(){window.exit(location)}</script>')
})
Previous.update().then(tracks => {
Playback.interval()
})
Chart.interval()
server.on('connection', socket => {
Stats.connect()
pretty.log(`Socket: '${socket.id}' '${socket.handshake.headers["x-real-ip"]}' connected`, 3);
socket.on('disconnect', function () {
Stats.disconnect()
if (socket.user) Stats.deauth(socket)
pretty.log(`Socket: '${socket.id}' disconnected`, 3)
})
socket.on('player', function () {
socket.emit('player', {
tid: Player.current.id,
status: Player.status
})
})
socket.on('previous', function () {
socket.emit('previous', Previous.get())
})
socket.on('clear', function (data) {
Stats.deauth(socket)
socket.user = undefined
})
socket.on('auth', function (tokens) {
if (typeof tokens != 'object') return // validate input
if (tokens.local) {
if (typeof tokens.local != 'string') return // validate token
db.users.login(tokens.local).then(udata => { // get user from db
socket.user = new User(udata)
socket.emit('auth', socket.user.info())
pretty.log(`Socket: '${socket.id}' auth by token.local as '${socket.user.name}'`, 3)
Stats.auth(socket)
}).catch(err => { // invalid token.local
socket.user = undefined
socket.emit('auth', { // demand token clear
clear: true
})
pretty.log(`Socket: '${socket.id}' auth by token.local failed`, 3)
})
} else if (tokens.fb) {
if (typeof tokens.fb != 'string') return // validate token
https.get(`https://graph.facebook.com/v8.0/me?fields=id,name,email&access_token=${tokens.fb}`, (resp) => {
let data = ''
resp.on('data', (chunk) => data += chunk)
resp.on('end', () => {
let creds = JSON.parse(data)
if (creds.error) {
socket.emit('meta', {
type: 'error',
action: 'auth',
message: `Auth: there was and error with your facebook token: ${creds.error}`
})
return pretty.log({ data: creds.error.message, action: 'error' })
}
db.users.get(creds.id).then(user => { // user found in db
return user
}).catch(async err => { // not in db, add user
pretty.log(`Auth: adding new user '${creds.name}'`, 3)
return await db.users.add(creds)
}).then(user => { // finalize auth
socket.user = new User(user)
socket.emit('auth', socket.user.info())
pretty.log(`Socket: '${socket.id}' auth by token.fb as '${socket.user.name}'`, 3)
Stats.auth(socket)
})
});
}).on("error", (err) => {
socket.emit('meta', {
type: 'error',
action: 'auth',
message: `Auth: there was and error while fetching facebook data: ${err.message}`
})
throw err
})
}
})
socket.on('search', function (data) {
if (typeof data != 'object') return // validate input
if (typeof data.query != 'string') return
if (typeof data.source != 'string') return
if (data.source == 'spotify') {
spotifySearch.searchTracks(data.query)
.then(response => {
socket.emit('results', {
tids: response.body.tracks.items.map(tdata => tdata.id),
total: response.body.tracks.total
})
}).catch(err => {
socket.emit('meta', {
type: 'error',
action: 'search',
message: `'${data.query}' not found: ${err.message}`
})
pretty.log({ data: err.message, action: 'error' });
})
}
});
socket.on('track', function (data) {
Tracks.get(data.tid).then(track => {
socket.emit('track', track)
}).catch(err => {
socket.emit('meta', {
type: 'error',
action: 'track',
message: `tid '${data.tid}' not found: ${err.message}`
})
})
})
socket.on('flags', function (tid) {
if (!socket.user) return
db.votes.validUser(socket.user, tid).then(vote => {
socket.emit('flags', {
tid: tid,
flags: vote !== null ? vote.flag : null
})
}).catch(err => {
socket.emit('meta', {
type: 'error',
action: 'flags',
message: `Flags: api error '${err.message}'`
})
})
})
socket.on('vote', function (data) {
db.votes.add(socket.user, data.tid, data.flag).then(vote => {
Chart.serial++
}).catch(err => {
socket.emit('meta', {
type: 'error',
action: 'vote',
message: `Vote: ignored: ${err.message}`
})
})
})
socket.on('chart', function (data) {
socket.emit('chart', Chart.get())
})
socket.on('admin', function (data) {
if ((socket.user.admin <= 0)) return
switch (data.action) {
case 'search':
if (data.search.tags.includes('track')) {
db.tracks.search(data.search.query).then(tracks => {
socket.emit('admin', {
search: {
tracks: tracks
}
})
})
}
if (data.search.tags.includes('user')) {
db.users.search(data.search.query).then(users => {
socket.emit('admin', {
search: {
users: users
}
})
})
}
break;
case 'track':
db.tracks.get(data.track.id).then(tdata => {
socket.emit('admin', {
track: {
tdata: tdata
}
})
})
break;
case 'user':
db.users.get(data.user.id).then(udata => {
socket.emit('admin', {
user: {
udata: udata
}
})
})
break;
case 'vote':
db.votes.get(data.vote.uid, data.vote.tid).then(votes => {
socket.emit('admin', {
vote: {
votes: votes
}
})
})
break;
case 'spotify':
if (data.spotify.code) {
spotifyPlayer.authorizationCodeGrant(data.spotify.code).then(
function (data) {
pretty.log({ data: `Spotify: (player) log in`, action: 'info' })
credentials.player.Access.value = data.body['access_token']
credentials.player.Access.expires = new Date().getTime() + (data.body['expires_in'] * 1e3)
credentials.player.Refresh.value = data.body['refresh_token']
tokenWrite(credentials.player, './player-cred.json')
spotifyPlayer.setAccessToken(data.body['access_token']);
spotifyPlayer.setRefreshToken(data.body['refresh_token']);
},
function (err) {
console.log('Something went wrong!', err);
}
);
}
if (data.spotify.playing) {
spotifyPlayer.getMyCurrentPlaybackState().then(data => {
console.log(data)
}).catch(err => {
console.error(err)
})
}
break;
}
})
});
+81 -304
View File
@@ -1,5 +1,5 @@
{
"name": "radio-rolnik",
"name": "radio-rolnik-api",
"version": "1.3.0",
"lockfileVersion": 1,
"requires": true,
@@ -18,14 +18,6 @@
"resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz",
"integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8="
},
"ansi-styles": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
"requires": {
"color-convert": "^1.9.0"
}
},
"array-flatten": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
@@ -36,39 +28,21 @@
"resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz",
"integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog=="
},
"async-limiter": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz",
"integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ=="
},
"asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
},
"backo2": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz",
"integrity": "sha1-MasayLEpNjRj41s+u2n038+6eUc="
},
"base64-arraybuffer": {
"version": "0.1.5",
"resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz",
"integrity": "sha1-c5JncZI7Whl0etZmqlzUv5xunOg="
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz",
"integrity": "sha1-mBjHngWbE1X5fgQooBfIOOkLqBI="
},
"base64id": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz",
"integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog=="
},
"better-assert": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz",
"integrity": "sha1-QIZrnhueC1W0gYlDEeaPr/rrxSI=",
"requires": {
"callsite": "1.0.0"
}
},
"bl": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/bl/-/bl-2.2.1.tgz",
@@ -135,42 +109,6 @@
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
"integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg=="
},
"callsite": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz",
"integrity": "sha1-KAOY5dZkvXQDi28JBRU+borxvCA="
},
"chalk": {
"version": "2.4.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
"requires": {
"ansi-styles": "^3.2.1",
"escape-string-regexp": "^1.0.5",
"supports-color": "^5.3.0"
}
},
"color-convert": {
"version": "1.9.3",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
"integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
"requires": {
"color-name": "1.1.3"
}
},
"color-name": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
"integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
},
"combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
"requires": {
"delayed-stream": "~1.0.0"
}
},
"component-bind": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz",
@@ -218,33 +156,19 @@
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
"integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
},
"cookiejar": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz",
"integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA=="
},
"core-util-is": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
},
"custom-date": {
"version": "github:Maathias/custom-date#0c296c934d204b0d881670e818892ed12d1b3e93",
"from": "github:Maathias/custom-date"
},
"debug": {
"version": "3.2.6",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
"integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"requires": {
"ms": "^2.1.1"
}
},
"delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
},
"denque": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/denque/-/denque-1.4.1.tgz",
@@ -276,77 +200,66 @@
"integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k="
},
"engine.io": {
"version": "3.4.2",
"resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.4.2.tgz",
"integrity": "sha512-b4Q85dFkGw+TqgytGPrGgACRUhsdKc9S9ErRAXpPGy/CXKs4tYoHDkvIRdsseAF7NjfVwjRFIn6KTnbw7LwJZg==",
"version": "3.5.0",
"resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.5.0.tgz",
"integrity": "sha512-21HlvPUKaitDGE4GXNtQ7PLP0Sz4aWLddMPw2VTyFz1FVZqu/kZsJUO8WNpKuE/OCL7nkfRaOui2ZCJloGznGA==",
"requires": {
"accepts": "~1.3.4",
"base64id": "2.0.0",
"cookie": "0.3.1",
"cookie": "~0.4.1",
"debug": "~4.1.0",
"engine.io-parser": "~2.2.0",
"ws": "^7.1.2"
"ws": "~7.4.2"
},
"dependencies": {
"cookie": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz",
"integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s="
},
"debug": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"requires": {
"ms": "^2.1.1"
}
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz",
"integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA=="
}
}
},
"engine.io-client": {
"version": "3.4.3",
"resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.4.3.tgz",
"integrity": "sha512-0NGY+9hioejTEJCaSJZfWZLk4FPI9dN+1H1C4+wj2iuFba47UgZbJzfWs4aNFajnX/qAaYKbe2lLTfEEWzCmcw==",
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.5.2.tgz",
"integrity": "sha512-QEqIp+gJ/kMHeUun7f5Vv3bteRHppHH/FMBQX/esFj/fuYfjyUKWGMo3VCvIP/V8bE9KcjHmRZrhIz2Z9oNsDA==",
"requires": {
"component-emitter": "~1.3.0",
"component-inherit": "0.0.3",
"debug": "~4.1.0",
"debug": "~3.1.0",
"engine.io-parser": "~2.2.0",
"has-cors": "1.1.0",
"indexof": "0.0.1",
"parseqs": "0.0.5",
"parseuri": "0.0.5",
"ws": "~6.1.0",
"xmlhttprequest-ssl": "~1.5.4",
"parseqs": "0.0.6",
"parseuri": "0.0.6",
"ws": "~7.4.2",
"xmlhttprequest-ssl": "~1.6.2",
"yeast": "0.1.2"
},
"dependencies": {
"debug": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
"integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"requires": {
"ms": "^2.1.1"
"ms": "2.0.0"
}
},
"ws": {
"version": "6.1.4",
"resolved": "https://registry.npmjs.org/ws/-/ws-6.1.4.tgz",
"integrity": "sha512-eqZfL+NE/YQc1/ZynhojeV8q+H050oR8AZ2uIev7RU10svA9ZnJUddHcOUZTJLinZ9yEfdA2kSATS2qZK5fhJA==",
"requires": {
"async-limiter": "~1.0.0"
}
"ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
}
}
},
"engine.io-parser": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.2.0.tgz",
"integrity": "sha512-6I3qD9iUxotsC5HEMuuGsKA0cXerGz+4uGcXQEkfBidgKf0amsjrrtwcbwK/nzpZBxclXlV7gGl9dgWvu4LF6w==",
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.2.1.tgz",
"integrity": "sha512-x+dN/fBH8Ro8TFwJ+rkB2AmuVw9Yu2mockR/p3W8f8YtExwFgDvBDi0GWyb4ZLkpahtDGZgtr3zLovanJghPqg==",
"requires": {
"after": "0.8.2",
"arraybuffer.slice": "~0.0.7",
"base64-arraybuffer": "0.1.5",
"base64-arraybuffer": "0.1.4",
"blob": "0.0.5",
"has-binary2": "~1.0.2"
}
@@ -356,11 +269,6 @@
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
"integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
},
"escape-string-regexp": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
"integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
},
"etag": {
"version": "1.8.1",
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
@@ -423,19 +331,6 @@
}
}
},
"express-metatag": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/express-metatag/-/express-metatag-0.1.0.tgz",
"integrity": "sha1-R1WSdzLuDEOQEVwMqd5bRz7b9FU=",
"requires": {
"underscore": "~1.4.2"
}
},
"extend": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
},
"finalhandler": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz",
@@ -465,21 +360,6 @@
}
}
},
"form-data": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",
"integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==",
"requires": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.6",
"mime-types": "^2.1.12"
}
},
"formidable": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.2.tgz",
"integrity": "sha512-V8gLm+41I/8kguQ4/o1D3RIHRmhYFG4pnNyonvua+40rqcEmT4+V71yaZ3B457xbbgCsCfjSPi65u/W6vK1U5Q=="
},
"forwarded": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
@@ -510,11 +390,6 @@
"resolved": "https://registry.npmjs.org/has-cors/-/has-cors-1.1.0.tgz",
"integrity": "sha1-XkdHk/fqmEPRu5nCPu9J/xJv/zk="
},
"has-flag": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
"integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0="
},
"http-errors": {
"version": "1.7.2",
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz",
@@ -607,11 +482,11 @@
}
},
"mongodb": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.6.0.tgz",
"integrity": "sha512-/XWWub1mHZVoqEsUppE0GV7u9kanLvHxho6EvBxQbShXTKYF9trhZC2NzbulRGeG7xMJHD8IOWRcdKx5LPjAjQ==",
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.6.2.tgz",
"integrity": "sha512-sSZOb04w3HcnrrXC82NEh/YGCmBuRgR+C1hZgmmv4L6dBz4BkRse6Y8/q/neXer9i95fKUBbFi4KgeceXmbsOA==",
"requires": {
"bl": "^2.2.0",
"bl": "^2.2.1",
"bson": "^1.1.4",
"denque": "^1.4.1",
"require_optional": "^1.0.1",
@@ -620,13 +495,13 @@
}
},
"mongoose": {
"version": "5.10.0",
"resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.10.0.tgz",
"integrity": "sha512-5itAvBMVDG4+zTDtuLg/IyoTxEMgvpOSHnigQ9Cyh8LR4BEgMAChJj7JSaGkg+tr1AjCSY9DgSdU8bHqCOoxXg==",
"version": "5.10.7",
"resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.10.7.tgz",
"integrity": "sha512-oiofFrD4I5p3PhJXn49QyrU1nX5CY01qhPkfMMrXYPhkfGLEJVwFVO+0PsCxD91A2kQP+d/iFyk5U8e86KI8eQ==",
"requires": {
"bson": "^1.1.4",
"kareem": "2.3.1",
"mongodb": "3.6.0",
"mongodb": "3.6.2",
"mongoose-legacy-pluralize": "1.0.2",
"mpath": "0.7.0",
"mquery": "3.2.2",
@@ -691,11 +566,6 @@
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz",
"integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw=="
},
"object-component": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz",
"integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE="
},
"on-finished": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
@@ -705,20 +575,14 @@
}
},
"parseqs": {
"version": "0.0.5",
"resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz",
"integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=",
"requires": {
"better-assert": "~1.0.0"
}
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.6.tgz",
"integrity": "sha512-jeAGzMDbfSHHA091hr0r31eYfTig+29g3GKKE/PPbEQ65X0lmMwlEoqmhzu0iztID5uJpZsFlUPDP8ThPL7M8w=="
},
"parseuri": {
"version": "0.0.5",
"resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.5.tgz",
"integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=",
"requires": {
"better-assert": "~1.0.0"
}
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.6.tgz",
"integrity": "sha512-AUjen8sAkGgao7UyCX6Ahv0gIK2fABKmYjvP4xmy5JaKvcbTRueIqIPHLAfq30xJddqSE033IOMUSOMCcK3Sow=="
},
"parseurl": {
"version": "1.3.3",
@@ -730,14 +594,6 @@
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
"integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
},
"pretty-log": {
"version": "github:maathias/pretty-log#4ce11c45fc9a05eb89f2f006e9b24d48be5f6722",
"from": "github:maathias/pretty-log",
"requires": {
"chalk": "^2.4.2",
"custom-date": "github:Maathias/custom-date"
}
},
"process-nextick-args": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
@@ -752,11 +608,6 @@
"ipaddr.js": "1.9.1"
}
},
"qs": {
"version": "6.9.4",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.9.4.tgz",
"integrity": "sha512-A1kFqHekCTM7cz0udomYUoYNWjBebHm/5wzU/XqrBRBNWectVH0QIiN+NEcZ0Dte5hvzHwbr8+XQmguPhJ6WdQ=="
},
"range-parser": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
@@ -899,26 +750,16 @@
"integrity": "sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E="
},
"socket.io": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.3.0.tgz",
"integrity": "sha512-2A892lrj0GcgR/9Qk81EaY2gYhCBxurV0PfmmESO6p27QPrUK1J3zdns+5QPqvUYK2q657nSj0guoIil9+7eFg==",
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.4.1.tgz",
"integrity": "sha512-Si18v0mMXGAqLqCVpTxBa8MGqriHGQh8ccEOhmsmNS3thNCGBwO8WGrwMibANsWtQQ5NStdZwHqZR3naJVFc3w==",
"requires": {
"debug": "~4.1.0",
"engine.io": "~3.4.0",
"engine.io": "~3.5.0",
"has-binary2": "~1.0.2",
"socket.io-adapter": "~1.1.0",
"socket.io-client": "2.3.0",
"socket.io-client": "2.4.0",
"socket.io-parser": "~3.4.0"
},
"dependencies": {
"debug": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"requires": {
"ms": "^2.1.1"
}
}
}
},
"socket.io-adapter": {
@@ -927,37 +768,29 @@
"integrity": "sha512-WzZRUj1kUjrTIrUKpZLEzFZ1OLj5FwLlAFQs9kuZJzJi5DKdU7FsWc36SNmA8iDOtwBQyT8FkrriRM8vXLYz8g=="
},
"socket.io-client": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.3.0.tgz",
"integrity": "sha512-cEQQf24gET3rfhxZ2jJ5xzAOo/xhZwK+mOqtGRg5IowZsMgwvHwnf/mCRapAAkadhM26y+iydgwsXGObBB5ZdA==",
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.4.0.tgz",
"integrity": "sha512-M6xhnKQHuuZd4Ba9vltCLT9oa+YvTsP8j9NcEiLElfIg8KeYPyhWOes6x4t+LTAC8enQbE/995AdTem2uNyKKQ==",
"requires": {
"backo2": "1.0.2",
"base64-arraybuffer": "0.1.5",
"component-bind": "1.0.0",
"component-emitter": "1.2.1",
"debug": "~4.1.0",
"engine.io-client": "~3.4.0",
"component-emitter": "~1.3.0",
"debug": "~3.1.0",
"engine.io-client": "~3.5.0",
"has-binary2": "~1.0.2",
"has-cors": "1.1.0",
"indexof": "0.0.1",
"object-component": "0.0.3",
"parseqs": "0.0.5",
"parseuri": "0.0.5",
"parseqs": "0.0.6",
"parseuri": "0.0.6",
"socket.io-parser": "~3.3.0",
"to-array": "0.1.4"
},
"dependencies": {
"component-emitter": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz",
"integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY="
},
"debug": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
"integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"requires": {
"ms": "^2.1.1"
"ms": "2.0.0"
}
},
"isarray": {
@@ -965,29 +798,19 @@
"resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz",
"integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4="
},
"ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
},
"socket.io-parser": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.3.0.tgz",
"integrity": "sha512-hczmV6bDgdaEbVqhAeVMM/jfUfzuEZHsQg6eOmLgJht6G3mPKMxYm75w2+qhAQZ+4X+1+ATZ+QFKeOZD5riHng==",
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.3.2.tgz",
"integrity": "sha512-FJvDBuOALxdCI9qwRrO/Rfp9yfndRtc1jSgVgV8FDraihmSP/MLGD5PEuJrNfjALvcQ+vMDM/33AWOYP/JSjDg==",
"requires": {
"component-emitter": "1.2.1",
"component-emitter": "~1.3.0",
"debug": "~3.1.0",
"isarray": "2.0.1"
},
"dependencies": {
"debug": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
"integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"requires": {
"ms": "2.0.0"
}
},
"ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
}
}
}
}
@@ -1007,14 +830,6 @@
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz",
"integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY="
},
"debug": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"requires": {
"ms": "^2.1.1"
}
},
"isarray": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz",
@@ -1031,14 +846,6 @@
"memory-pager": "^1.0.2"
}
},
"spotify-web-api-node": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/spotify-web-api-node/-/spotify-web-api-node-4.0.0.tgz",
"integrity": "sha512-FQAX4qiP9xfjmJpkSfF5PEVr7RVorUZiLvcdVTlhVFLYAmQ8VSsZlyb0yTK0GExKhAcgJy9GfWxqjSB2r9SrjA==",
"requires": {
"superagent": "^3.7.0"
}
},
"statuses": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
@@ -1052,31 +859,6 @@
"safe-buffer": "~5.1.0"
}
},
"superagent": {
"version": "3.8.3",
"resolved": "https://registry.npmjs.org/superagent/-/superagent-3.8.3.tgz",
"integrity": "sha512-GLQtLMCoEIK4eDv6OGtkOoSMt3D+oq0y3dsxMuYuDvaNUvuT8eFBuLmfR0iYYzHC1e8hpzC6ZsxbuP6DIalMFA==",
"requires": {
"component-emitter": "^1.2.0",
"cookiejar": "^2.1.0",
"debug": "^3.1.0",
"extend": "^3.0.0",
"form-data": "^2.3.1",
"formidable": "^1.2.0",
"methods": "^1.1.1",
"mime": "^1.4.1",
"qs": "^6.5.1",
"readable-stream": "^2.3.5"
}
},
"supports-color": {
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
"requires": {
"has-flag": "^3.0.0"
}
},
"to-array": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.4.tgz",
@@ -1096,11 +878,6 @@
"mime-types": "~2.1.24"
}
},
"underscore": {
"version": "1.4.4",
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz",
"integrity": "sha1-YaajIBBiKvoHljvzJSA88SI51gQ="
},
"unpipe": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
@@ -1122,14 +899,14 @@
"integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
},
"ws": {
"version": "7.3.1",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz",
"integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA=="
"version": "7.4.6",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz",
"integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A=="
},
"xmlhttprequest-ssl": {
"version": "1.5.5",
"resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz",
"integrity": "sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4="
"version": "1.6.3",
"resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.6.3.tgz",
"integrity": "sha512-3XfeQE/wNkvrIktn2Kf0869fC0BN6UpydVasGIeSm2B1Llihf7/0UfZM+eCkOw3P7bP4+qPgqhm7ZoxuJtFU0Q=="
},
"yeast": {
"version": "0.1.2",
+7 -9
View File
@@ -1,8 +1,9 @@
{
"name": "radio-rolnik",
"name": "radio-rolnik-api",
"version": "1.3.0",
"description": "rolniknysa radio",
"main": "index.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "nodemon index"
@@ -15,22 +16,19 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/Maathias/radio-rolnik.git"
"url": "git+https://github.com/Maathias/radio-rolnik-api.git"
},
"author": "Mateusz Pstrucha",
"license": "ISC",
"bugs": {
"url": "https://github.com/Maathias/radio-rolnik/issues"
"url": "https://github.com/Maathias/radio-rolnik-api/issues"
},
"homepage": "https://github.com/Maathias/radio-rolnik#readme",
"homepage": "https://github.com/Maathias/radio-rolnik-api#readme",
"dependencies": {
"cookie-parser": "^1.4.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-metatag": "^0.1.0",
"mongoose": "^5.10.0",
"pretty-log": "github:maathias/pretty-log",
"socket.io": "^2.3.0",
"spotify-web-api-node": "^4.0.0"
"mongoose": "^5.10.7",
"spotify-web-api-node": "^5.0.2"
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

-2
View File
@@ -1,2 +0,0 @@
@import url("fontello/css/animation.css");
@import url("fontello/css/fontello.css");
-21
View File
@@ -1,21 +0,0 @@
Font license info
## Font Awesome
Copyright (C) 2016 by Dave Gandy
Author: Dave Gandy
License: SIL ()
Homepage: http://fortawesome.github.com/Font-Awesome/
## Fontelico
Copyright (C) 2012 by Fontello project
Author: Crowdsourced, for Fontello project
License: SIL (http://scripts.sil.org/OFL)
Homepage: http://fontello.com
-75
View File
@@ -1,75 +0,0 @@
This webfont is generated by http://fontello.com open source project.
================================================================================
Please, note, that you should obey original font licenses, used to make this
webfont pack. Details available in LICENSE.txt file.
- Usually, it's enough to publish content of LICENSE.txt file somewhere on your
site in "About" section.
- If your project is open-source, usually, it will be ok to make LICENSE.txt
file publicly available in your repository.
- Fonts, used in Fontello, don't require a clickable link on your site.
But any kind of additional authors crediting is welcome.
================================================================================
Comments on archive content
---------------------------
- /font/* - fonts in different formats
- /css/* - different kinds of css, for all situations. Should be ok with
twitter bootstrap. Also, you can skip <i> style and assign icon classes
directly to text elements, if you don't mind about IE7.
- demo.html - demo file, to show your webfont content
- LICENSE.txt - license info about source fonts, used to build your one.
- config.json - keeps your settings. You can import it back into fontello
anytime, to continue your work
Why so many CSS files ?
-----------------------
Because we like to fit all your needs :)
- basic file, <your_font_name>.css - is usually enough, it contains @font-face
and character code definitions
- *-ie7.css - if you need IE7 support, but still don't wish to put char codes
directly into html
- *-codes.css and *-ie7-codes.css - if you like to use your own @font-face
rules, but still wish to benefit from css generation. That can be very
convenient for automated asset build systems. When you need to update font -
no need to manually edit files, just override old version with archive
content. See fontello source code for examples.
- *-embedded.css - basic css file, but with embedded WOFF font, to avoid
CORS issues in Firefox and IE9+, when fonts are hosted on the separate domain.
We strongly recommend to resolve this issue by `Access-Control-Allow-Origin`
server headers. But if you ok with dirty hack - this file is for you. Note,
that data url moved to separate @font-face to avoid problems with <IE9, when
string is too long.
- animate.css - use it to get ideas about spinner rotation animation.
Attention for server setup
--------------------------
You MUST setup server to reply with proper `mime-types` for font files -
otherwise some browsers will fail to show fonts.
Usually, `apache` already has necessary settings, but `nginx` and other
webservers should be tuned. Here is list of mime types for our file extensions:
- `application/vnd.ms-fontobject` - eot
- `application/x-font-woff` - woff
- `application/x-font-ttf` - ttf
- `image/svg+xml` - svg
-364
View File
@@ -1,364 +0,0 @@
{
"name": "",
"css_prefix_text": "icon-",
"css_use_suffix": false,
"hinting": true,
"units_per_em": 1000,
"ascent": 850,
"glyphs": [
{
"uid": "9bd60140934a1eb9236fd7a8ab1ff6ba",
"css": "spin4",
"code": 59444,
"src": "fontelico"
},
{
"uid": "5d2d07f112b8de19f2c0dbfec3e42c05",
"css": "spin5",
"code": 59448,
"src": "fontelico"
},
{
"uid": "9bc2902722abb366a213a052ade360bc",
"css": "spin6",
"code": 59449,
"src": "fontelico"
},
{
"uid": "2a6740fc2f9d0edea54205963f662594",
"css": "spin3",
"code": 59442,
"src": "fontelico"
},
{
"uid": "bf882b30900da12fca090d9796bc3030",
"css": "mail",
"code": 59392,
"src": "fontawesome"
},
{
"uid": "d73eceadda1f594cec0536087539afbf",
"css": "heart",
"code": 59393,
"src": "fontawesome"
},
{
"uid": "f3dc2d6d8fe9cf9ebff84dc260888cdf",
"css": "heart-empty",
"code": 59394,
"src": "fontawesome"
},
{
"uid": "474656633f79ea2f1dad59ff63f6bf07",
"css": "star",
"code": 59395,
"src": "fontawesome"
},
{
"uid": "d17030afaecc1e1c22349b99f3c4992a",
"css": "star-empty",
"code": 59396,
"src": "fontawesome"
},
{
"uid": "1400d5103edd2fa6d2d61688fee79a5a",
"css": "ok-squared",
"code": 61770,
"src": "fontawesome"
},
{
"uid": "1a5cfa186647e8c929c2b17b9fc4dac1",
"css": "plus-squared",
"code": 61694,
"src": "fontawesome"
},
{
"uid": "f755a58fb985eeb70bd47d9b31892a34",
"css": "minus-squared",
"code": 61766,
"src": "fontawesome"
},
{
"uid": "d7271d490b71df4311e32cdacae8b331",
"css": "home",
"code": 59397,
"src": "fontawesome"
},
{
"uid": "0ddd3e8201ccc7d41f7b7c9d27eca6c1",
"css": "link",
"code": 59398,
"src": "fontawesome"
},
{
"uid": "1dcd2b2148b7f086a4eb47f6a746bdee",
"css": "unlink",
"code": 61735,
"src": "fontawesome"
},
{
"uid": "c1f1975c885aa9f3dad7810c53b82074",
"css": "lock",
"code": 59399,
"src": "fontawesome"
},
{
"uid": "657ab647f6248a6b57a5b893beaf35a9",
"css": "lock-open",
"code": 59400,
"src": "fontawesome"
},
{
"uid": "c5fd349cbd3d23e4ade333789c29c729",
"css": "eye",
"code": 59401,
"src": "fontawesome"
},
{
"uid": "7fd683b2c518ceb9e5fa6757f2276faa",
"css": "eye-off",
"code": 59402,
"src": "fontawesome"
},
{
"uid": "3db5347bd219f3bce6025780f5d9ef45",
"css": "tag",
"code": 59403,
"src": "fontawesome"
},
{
"uid": "2f5ef6f6b7aaebc56458ab4e865beff5",
"css": "bookmark-empty",
"code": 61591,
"src": "fontawesome"
},
{
"uid": "f04a5d24e9e659145b966739c4fde82a",
"css": "bookmark",
"code": 59404,
"src": "fontawesome"
},
{
"uid": "57a0ac800df728aad61a7cf9e12f5fef",
"css": "flag",
"code": 59405,
"src": "fontawesome"
},
{
"uid": "acf41aa4018e58d49525665469e35665",
"css": "thumbs-up",
"code": 59406,
"src": "fontawesome"
},
{
"uid": "7533e68038fc6d520ede7a7ffa0a2f64",
"css": "thumbs-down",
"code": 59407,
"src": "fontawesome"
},
{
"uid": "76857a03fbaa6857fe063b6c25aa98ed",
"css": "volume-up",
"code": 59408,
"src": "fontawesome"
},
{
"uid": "e44601720c64e6bb6a2d5cba6b0c588c",
"css": "volume-off",
"code": 59409,
"src": "fontawesome"
},
{
"uid": "f27bba41a700af51a4dd23cf4edea61d",
"css": "headphones",
"code": 59410,
"src": "fontawesome"
},
{
"uid": "d407a4707f719b042ed2ad28d2619d7e",
"css": "signal",
"code": 59411,
"src": "fontawesome"
},
{
"uid": "38575a803c4da31ce20d77e1e1236bcb",
"css": "paper-plane",
"code": 61912,
"src": "fontawesome"
},
{
"uid": "a2a74f5e7b7d9ba054897d8c795a326a",
"css": "list-bullet",
"code": 61642,
"src": "fontawesome"
},
{
"uid": "f4f0e849b805be1f6d76b65581cb3b8b",
"css": "align-left",
"code": 59412,
"src": "fontawesome"
},
{
"uid": "a9862b9d5197886c1ad693ecd7120b31",
"css": "youtube",
"code": 61799,
"src": "fontawesome"
},
{
"uid": "dff942d95eb1b3f1be140e622d0a7c74",
"css": "soundcloud-1",
"code": 61886,
"src": "fontawesome"
},
{
"uid": "fb4794d89b77ab712ad56c0dc4c76c6b",
"css": "spotify-1",
"code": 61884,
"src": "fontawesome"
},
{
"uid": "6cc7af3e5b55720bcb6ef68372ce24be",
"css": "facebook-official",
"code": 62000,
"src": "fontawesome"
},
{
"uid": "dcedf50ab1ede3283d7a6c70e2fe32f3",
"css": "chat",
"code": 59413,
"src": "fontawesome"
},
{
"uid": "bbfb51903f40597f0b70fd75bc7b5cac",
"css": "trash",
"code": 61944,
"src": "fontawesome"
},
{
"uid": "98687378abd1faf8f6af97c254eb6cd6",
"css": "cog-alt",
"code": 59414,
"src": "fontawesome"
},
{
"uid": "2a4e6c99b732a57da40e32fa2a7800a4",
"css": "toggle-off",
"code": 61956,
"src": "fontawesome"
},
{
"uid": "3256ef03b16e7ab51235bc7378b53bb5",
"css": "toggle-on",
"code": 61957,
"src": "fontawesome"
},
{
"uid": "9dd9e835aebe1060ba7190ad2b2ed951",
"css": "search",
"code": 59415,
"src": "fontawesome"
},
{
"uid": "dd6c6b221a1088ff8a9b9cd32d0b3dd5",
"css": "check",
"code": 59416,
"src": "fontawesome"
},
{
"uid": "4b900d04e8ab8c82f080c1cfbac5772c",
"css": "check-empty",
"code": 61590,
"src": "fontawesome"
},
{
"uid": "84bb9695b8662fa4783242f84c9e4682",
"css": "expand",
"code": 61776,
"src": "fontawesome"
},
{
"uid": "7960517a504e42aea0641f15bc55fbed",
"css": "collapse",
"code": 61777,
"src": "fontawesome"
},
{
"uid": "ea2ec99fbce03864e593bbf4f302a79d",
"css": "collapse-left",
"code": 61841,
"src": "fontawesome"
},
{
"uid": "ed5a38704f0329e610ee1c92bec3ad3d",
"css": "expand-right",
"code": 61778,
"src": "fontawesome"
},
{
"uid": "0f4cae16f34ae243a6144c18a003f2d8",
"css": "cancel-circled",
"code": 59417,
"src": "fontawesome"
},
{
"uid": "43ab845088317bd348dee1d975700c48",
"css": "ok-circled",
"code": 59418,
"src": "fontawesome"
},
{
"uid": "eeadb020bb75d089b25d8424aabe19e0",
"css": "minus-circled",
"code": 59419,
"src": "fontawesome"
},
{
"uid": "19c50c52858a81de58f9db488aba77bc",
"css": "mic",
"code": 61744,
"src": "fontawesome"
},
{
"uid": "f6766a8b042c2453a4e153af03294383",
"css": "list-numbered",
"code": 61643,
"src": "fontawesome"
},
{
"uid": "3d4ea8a78dc34efe891f3a0f3d961274",
"css": "info",
"code": 61737,
"src": "fontawesome"
},
{
"uid": "9ea0a737ccc45d6c510dcbae56058849",
"css": "music",
"code": 59420,
"src": "fontawesome"
},
{
"uid": "9c0fabd22e5b65b3ef7ed847eb864bcb",
"css": "pause-circle",
"code": 62091,
"src": "fontawesome"
},
{
"uid": "5717236f6134afe2d2a278a5c9b3927a",
"css": "play-circled",
"code": 61764,
"src": "fontawesome"
},
{
"uid": "3363990fa5a224d75ed1740e1ec50bb6",
"css": "stop-circle",
"code": 62093,
"src": "fontawesome"
},
{
"uid": "895405dfac8a3b7b2f23b183c6608ee6",
"css": "export",
"code": 59421,
"src": "fontawesome"
}
]
}
-85
View File
@@ -1,85 +0,0 @@
/*
Animation example, for spinners
*/
.animate-spin {
-moz-animation: spin 2s infinite linear;
-o-animation: spin 2s infinite linear;
-webkit-animation: spin 2s infinite linear;
animation: spin 2s infinite linear;
display: inline-block;
}
@-moz-keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@-webkit-keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@-o-keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@-ms-keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
-60
View File
@@ -1,60 +0,0 @@
.icon-mail:before { content: '\e800'; } /* '' */
.icon-heart:before { content: '\e801'; } /* '' */
.icon-heart-empty:before { content: '\e802'; } /* '' */
.icon-star:before { content: '\e803'; } /* '' */
.icon-star-empty:before { content: '\e804'; } /* '' */
.icon-home:before { content: '\e805'; } /* '' */
.icon-link:before { content: '\e806'; } /* '' */
.icon-lock:before { content: '\e807'; } /* '' */
.icon-lock-open:before { content: '\e808'; } /* '' */
.icon-eye:before { content: '\e809'; } /* '' */
.icon-eye-off:before { content: '\e80a'; } /* '' */
.icon-tag:before { content: '\e80b'; } /* '' */
.icon-bookmark:before { content: '\e80c'; } /* '' */
.icon-flag:before { content: '\e80d'; } /* '' */
.icon-thumbs-up:before { content: '\e80e'; } /* '' */
.icon-thumbs-down:before { content: '\e80f'; } /* '' */
.icon-volume-up:before { content: '\e810'; } /* '' */
.icon-volume-off:before { content: '\e811'; } /* '' */
.icon-headphones:before { content: '\e812'; } /* '' */
.icon-signal:before { content: '\e813'; } /* '' */
.icon-align-left:before { content: '\e814'; } /* '' */
.icon-chat:before { content: '\e815'; } /* '' */
.icon-cog-alt:before { content: '\e816'; } /* '' */
.icon-search:before { content: '\e817'; } /* '' */
.icon-check:before { content: '\e818'; } /* '' */
.icon-cancel-circled:before { content: '\e819'; } /* '' */
.icon-ok-circled:before { content: '\e81a'; } /* '' */
.icon-minus-circled:before { content: '\e81b'; } /* '' */
.icon-music:before { content: '\e81c'; } /* '' */
.icon-export:before { content: '\e81d'; } /* '' */
.icon-spin3:before { content: '\e832'; } /* '' */
.icon-spin4:before { content: '\e834'; } /* '' */
.icon-spin5:before { content: '\e838'; } /* '' */
.icon-spin6:before { content: '\e839'; } /* '' */
.icon-check-empty:before { content: '\f096'; } /* '' */
.icon-bookmark-empty:before { content: '\f097'; } /* '' */
.icon-list-bullet:before { content: '\f0ca'; } /* '' */
.icon-list-numbered:before { content: '\f0cb'; } /* '' */
.icon-plus-squared:before { content: '\f0fe'; } /* '' */
.icon-unlink:before { content: '\f127'; } /* '' */
.icon-info:before { content: '\f129'; } /* '' */
.icon-mic:before { content: '\f130'; } /* '' */
.icon-play-circled:before { content: '\f144'; } /* '' */
.icon-minus-squared:before { content: '\f146'; } /* '' */
.icon-ok-squared:before { content: '\f14a'; } /* '' */
.icon-expand:before { content: '\f150'; } /* '' */
.icon-collapse:before { content: '\f151'; } /* '' */
.icon-expand-right:before { content: '\f152'; } /* '' */
.icon-youtube:before { content: '\f167'; } /* '' */
.icon-collapse-left:before { content: '\f191'; } /* '' */
.icon-spotify-1:before { content: '\f1bc'; } /* '' */
.icon-soundcloud-1:before { content: '\f1be'; } /* '' */
.icon-paper-plane:before { content: '\f1d8'; } /* '' */
.icon-trash:before { content: '\f1f8'; } /* '' */
.icon-toggle-off:before { content: '\f204'; } /* '' */
.icon-toggle-on:before { content: '\f205'; } /* '' */
.icon-facebook-official:before { content: '\f230'; } /* '' */
.icon-pause-circle:before { content: '\f28b'; } /* '' */
.icon-stop-circle:before { content: '\f28d'; } /* '' */
-113
View File
@@ -1,113 +0,0 @@
@font-face {
font-family: 'fontello';
src: url('../font/fontello.eot?13604195');
src: url('../font/fontello.eot?13604195#iefix') format('embedded-opentype'),
url('../font/fontello.svg?13604195#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'fontello';
src: url('data:application/octet-stream;base64,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 truncated
url('data:application/octet-stream;base64,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 truncated
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'fontello';
src: url('../font/fontello.svg?13604195#fontello') format('svg');
}
}
*/
[class^="icon-"]:before, [class*=" icon-"]:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: never;
display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* opacity: .8; */
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: .2em;
/* you can be more comfortable with increased icons size */
/* font-size: 120%; */
/* Uncomment for 3D effect */
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
.icon-mail:before { content: '\e800'; } /* '' */
.icon-heart:before { content: '\e801'; } /* '' */
.icon-heart-empty:before { content: '\e802'; } /* '' */
.icon-star:before { content: '\e803'; } /* '' */
.icon-star-empty:before { content: '\e804'; } /* '' */
.icon-home:before { content: '\e805'; } /* '' */
.icon-link:before { content: '\e806'; } /* '' */
.icon-lock:before { content: '\e807'; } /* '' */
.icon-lock-open:before { content: '\e808'; } /* '' */
.icon-eye:before { content: '\e809'; } /* '' */
.icon-eye-off:before { content: '\e80a'; } /* '' */
.icon-tag:before { content: '\e80b'; } /* '' */
.icon-bookmark:before { content: '\e80c'; } /* '' */
.icon-flag:before { content: '\e80d'; } /* '' */
.icon-thumbs-up:before { content: '\e80e'; } /* '' */
.icon-thumbs-down:before { content: '\e80f'; } /* '' */
.icon-volume-up:before { content: '\e810'; } /* '' */
.icon-volume-off:before { content: '\e811'; } /* '' */
.icon-headphones:before { content: '\e812'; } /* '' */
.icon-signal:before { content: '\e813'; } /* '' */
.icon-align-left:before { content: '\e814'; } /* '' */
.icon-chat:before { content: '\e815'; } /* '' */
.icon-cog-alt:before { content: '\e816'; } /* '' */
.icon-search:before { content: '\e817'; } /* '' */
.icon-check:before { content: '\e818'; } /* '' */
.icon-cancel-circled:before { content: '\e819'; } /* '' */
.icon-ok-circled:before { content: '\e81a'; } /* '' */
.icon-minus-circled:before { content: '\e81b'; } /* '' */
.icon-music:before { content: '\e81c'; } /* '' */
.icon-export:before { content: '\e81d'; } /* '' */
.icon-spin3:before { content: '\e832'; } /* '' */
.icon-spin4:before { content: '\e834'; } /* '' */
.icon-spin5:before { content: '\e838'; } /* '' */
.icon-spin6:before { content: '\e839'; } /* '' */
.icon-check-empty:before { content: '\f096'; } /* '' */
.icon-bookmark-empty:before { content: '\f097'; } /* '' */
.icon-list-bullet:before { content: '\f0ca'; } /* '' */
.icon-list-numbered:before { content: '\f0cb'; } /* '' */
.icon-plus-squared:before { content: '\f0fe'; } /* '' */
.icon-unlink:before { content: '\f127'; } /* '' */
.icon-info:before { content: '\f129'; } /* '' */
.icon-mic:before { content: '\f130'; } /* '' */
.icon-play-circled:before { content: '\f144'; } /* '' */
.icon-minus-squared:before { content: '\f146'; } /* '' */
.icon-ok-squared:before { content: '\f14a'; } /* '' */
.icon-expand:before { content: '\f150'; } /* '' */
.icon-collapse:before { content: '\f151'; } /* '' */
.icon-expand-right:before { content: '\f152'; } /* '' */
.icon-youtube:before { content: '\f167'; } /* '' */
.icon-collapse-left:before { content: '\f191'; } /* '' */
.icon-spotify-1:before { content: '\f1bc'; } /* '' */
.icon-soundcloud-1:before { content: '\f1be'; } /* '' */
.icon-paper-plane:before { content: '\f1d8'; } /* '' */
.icon-trash:before { content: '\f1f8'; } /* '' */
.icon-toggle-off:before { content: '\f204'; } /* '' */
.icon-toggle-on:before { content: '\f205'; } /* '' */
.icon-facebook-official:before { content: '\f230'; } /* '' */
.icon-pause-circle:before { content: '\f28b'; } /* '' */
.icon-stop-circle:before { content: '\f28d'; } /* '' */
-60
View File
@@ -1,60 +0,0 @@
.icon-mail { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe800;&nbsp;'); }
.icon-heart { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe801;&nbsp;'); }
.icon-heart-empty { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe802;&nbsp;'); }
.icon-star { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe803;&nbsp;'); }
.icon-star-empty { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe804;&nbsp;'); }
.icon-home { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe805;&nbsp;'); }
.icon-link { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe806;&nbsp;'); }
.icon-lock { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe807;&nbsp;'); }
.icon-lock-open { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe808;&nbsp;'); }
.icon-eye { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe809;&nbsp;'); }
.icon-eye-off { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80a;&nbsp;'); }
.icon-tag { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80b;&nbsp;'); }
.icon-bookmark { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80c;&nbsp;'); }
.icon-flag { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80d;&nbsp;'); }
.icon-thumbs-up { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80e;&nbsp;'); }
.icon-thumbs-down { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80f;&nbsp;'); }
.icon-volume-up { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe810;&nbsp;'); }
.icon-volume-off { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe811;&nbsp;'); }
.icon-headphones { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe812;&nbsp;'); }
.icon-signal { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe813;&nbsp;'); }
.icon-align-left { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe814;&nbsp;'); }
.icon-chat { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe815;&nbsp;'); }
.icon-cog-alt { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe816;&nbsp;'); }
.icon-search { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe817;&nbsp;'); }
.icon-check { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe818;&nbsp;'); }
.icon-cancel-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe819;&nbsp;'); }
.icon-ok-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe81a;&nbsp;'); }
.icon-minus-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe81b;&nbsp;'); }
.icon-music { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe81c;&nbsp;'); }
.icon-export { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe81d;&nbsp;'); }
.icon-spin3 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe832;&nbsp;'); }
.icon-spin4 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe834;&nbsp;'); }
.icon-spin5 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe838;&nbsp;'); }
.icon-spin6 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe839;&nbsp;'); }
.icon-check-empty { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf096;&nbsp;'); }
.icon-bookmark-empty { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf097;&nbsp;'); }
.icon-list-bullet { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0ca;&nbsp;'); }
.icon-list-numbered { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0cb;&nbsp;'); }
.icon-plus-squared { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0fe;&nbsp;'); }
.icon-unlink { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf127;&nbsp;'); }
.icon-info { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf129;&nbsp;'); }
.icon-mic { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf130;&nbsp;'); }
.icon-play-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf144;&nbsp;'); }
.icon-minus-squared { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf146;&nbsp;'); }
.icon-ok-squared { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf14a;&nbsp;'); }
.icon-expand { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf150;&nbsp;'); }
.icon-collapse { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf151;&nbsp;'); }
.icon-expand-right { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf152;&nbsp;'); }
.icon-youtube { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf167;&nbsp;'); }
.icon-collapse-left { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf191;&nbsp;'); }
.icon-spotify-1 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf1bc;&nbsp;'); }
.icon-soundcloud-1 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf1be;&nbsp;'); }
.icon-paper-plane { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf1d8;&nbsp;'); }
.icon-trash { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf1f8;&nbsp;'); }
.icon-toggle-off { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf204;&nbsp;'); }
.icon-toggle-on { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf205;&nbsp;'); }
.icon-facebook-official { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf230;&nbsp;'); }
.icon-pause-circle { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf28b;&nbsp;'); }
.icon-stop-circle { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf28d;&nbsp;'); }
-71
View File
@@ -1,71 +0,0 @@
[class^="icon-"], [class*=" icon-"] {
font-family: 'fontello';
font-style: normal;
font-weight: normal;
/* fix buttons height */
line-height: 1em;
/* you can be more comfortable with increased icons size */
/* font-size: 120%; */
}
.icon-mail { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe800;&nbsp;'); }
.icon-heart { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe801;&nbsp;'); }
.icon-heart-empty { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe802;&nbsp;'); }
.icon-star { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe803;&nbsp;'); }
.icon-star-empty { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe804;&nbsp;'); }
.icon-home { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe805;&nbsp;'); }
.icon-link { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe806;&nbsp;'); }
.icon-lock { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe807;&nbsp;'); }
.icon-lock-open { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe808;&nbsp;'); }
.icon-eye { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe809;&nbsp;'); }
.icon-eye-off { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80a;&nbsp;'); }
.icon-tag { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80b;&nbsp;'); }
.icon-bookmark { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80c;&nbsp;'); }
.icon-flag { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80d;&nbsp;'); }
.icon-thumbs-up { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80e;&nbsp;'); }
.icon-thumbs-down { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80f;&nbsp;'); }
.icon-volume-up { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe810;&nbsp;'); }
.icon-volume-off { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe811;&nbsp;'); }
.icon-headphones { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe812;&nbsp;'); }
.icon-signal { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe813;&nbsp;'); }
.icon-align-left { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe814;&nbsp;'); }
.icon-chat { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe815;&nbsp;'); }
.icon-cog-alt { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe816;&nbsp;'); }
.icon-search { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe817;&nbsp;'); }
.icon-check { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe818;&nbsp;'); }
.icon-cancel-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe819;&nbsp;'); }
.icon-ok-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe81a;&nbsp;'); }
.icon-minus-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe81b;&nbsp;'); }
.icon-music { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe81c;&nbsp;'); }
.icon-export { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe81d;&nbsp;'); }
.icon-spin3 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe832;&nbsp;'); }
.icon-spin4 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe834;&nbsp;'); }
.icon-spin5 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe838;&nbsp;'); }
.icon-spin6 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe839;&nbsp;'); }
.icon-check-empty { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf096;&nbsp;'); }
.icon-bookmark-empty { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf097;&nbsp;'); }
.icon-list-bullet { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0ca;&nbsp;'); }
.icon-list-numbered { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0cb;&nbsp;'); }
.icon-plus-squared { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0fe;&nbsp;'); }
.icon-unlink { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf127;&nbsp;'); }
.icon-info { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf129;&nbsp;'); }
.icon-mic { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf130;&nbsp;'); }
.icon-play-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf144;&nbsp;'); }
.icon-minus-squared { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf146;&nbsp;'); }
.icon-ok-squared { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf14a;&nbsp;'); }
.icon-expand { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf150;&nbsp;'); }
.icon-collapse { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf151;&nbsp;'); }
.icon-expand-right { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf152;&nbsp;'); }
.icon-youtube { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf167;&nbsp;'); }
.icon-collapse-left { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf191;&nbsp;'); }
.icon-spotify-1 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf1bc;&nbsp;'); }
.icon-soundcloud-1 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf1be;&nbsp;'); }
.icon-paper-plane { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf1d8;&nbsp;'); }
.icon-trash { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf1f8;&nbsp;'); }
.icon-toggle-off { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf204;&nbsp;'); }
.icon-toggle-on { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf205;&nbsp;'); }
.icon-facebook-official { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf230;&nbsp;'); }
.icon-pause-circle { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf28b;&nbsp;'); }
.icon-stop-circle { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf28d;&nbsp;'); }
-116
View File
@@ -1,116 +0,0 @@
@font-face {
font-family: 'fontello';
src: url('../font/fontello.eot?44722251');
src: url('../font/fontello.eot?44722251#iefix') format('embedded-opentype'),
url('../font/fontello.woff2?44722251') format('woff2'),
url('../font/fontello.woff?44722251') format('woff'),
url('../font/fontello.ttf?44722251') format('truetype'),
url('../font/fontello.svg?44722251#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'fontello';
src: url('../font/fontello.svg?44722251#fontello') format('svg');
}
}
*/
[class^="icon-"]:before, [class*=" icon-"]:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: never;
display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* opacity: .8; */
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: .2em;
/* you can be more comfortable with increased icons size */
/* font-size: 120%; */
/* Font smoothing. That was taken from TWBS */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* Uncomment for 3D effect */
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
.icon-mail:before { content: '\e800'; } /* '' */
.icon-heart:before { content: '\e801'; } /* '' */
.icon-heart-empty:before { content: '\e802'; } /* '' */
.icon-star:before { content: '\e803'; } /* '' */
.icon-star-empty:before { content: '\e804'; } /* '' */
.icon-home:before { content: '\e805'; } /* '' */
.icon-link:before { content: '\e806'; } /* '' */
.icon-lock:before { content: '\e807'; } /* '' */
.icon-lock-open:before { content: '\e808'; } /* '' */
.icon-eye:before { content: '\e809'; } /* '' */
.icon-eye-off:before { content: '\e80a'; } /* '' */
.icon-tag:before { content: '\e80b'; } /* '' */
.icon-bookmark:before { content: '\e80c'; } /* '' */
.icon-flag:before { content: '\e80d'; } /* '' */
.icon-thumbs-up:before { content: '\e80e'; } /* '' */
.icon-thumbs-down:before { content: '\e80f'; } /* '' */
.icon-volume-up:before { content: '\e810'; } /* '' */
.icon-volume-off:before { content: '\e811'; } /* '' */
.icon-headphones:before { content: '\e812'; } /* '' */
.icon-signal:before { content: '\e813'; } /* '' */
.icon-align-left:before { content: '\e814'; } /* '' */
.icon-chat:before { content: '\e815'; } /* '' */
.icon-cog-alt:before { content: '\e816'; } /* '' */
.icon-search:before { content: '\e817'; } /* '' */
.icon-check:before { content: '\e818'; } /* '' */
.icon-cancel-circled:before { content: '\e819'; } /* '' */
.icon-ok-circled:before { content: '\e81a'; } /* '' */
.icon-minus-circled:before { content: '\e81b'; } /* '' */
.icon-music:before { content: '\e81c'; } /* '' */
.icon-export:before { content: '\e81d'; } /* '' */
.icon-spin3:before { content: '\e832'; } /* '' */
.icon-spin4:before { content: '\e834'; } /* '' */
.icon-spin5:before { content: '\e838'; } /* '' */
.icon-spin6:before { content: '\e839'; } /* '' */
.icon-check-empty:before { content: '\f096'; } /* '' */
.icon-bookmark-empty:before { content: '\f097'; } /* '' */
.icon-list-bullet:before { content: '\f0ca'; } /* '' */
.icon-list-numbered:before { content: '\f0cb'; } /* '' */
.icon-plus-squared:before { content: '\f0fe'; } /* '' */
.icon-unlink:before { content: '\f127'; } /* '' */
.icon-info:before { content: '\f129'; } /* '' */
.icon-mic:before { content: '\f130'; } /* '' */
.icon-play-circled:before { content: '\f144'; } /* '' */
.icon-minus-squared:before { content: '\f146'; } /* '' */
.icon-ok-squared:before { content: '\f14a'; } /* '' */
.icon-expand:before { content: '\f150'; } /* '' */
.icon-collapse:before { content: '\f151'; } /* '' */
.icon-expand-right:before { content: '\f152'; } /* '' */
.icon-youtube:before { content: '\f167'; } /* '' */
.icon-collapse-left:before { content: '\f191'; } /* '' */
.icon-spotify-1:before { content: '\f1bc'; } /* '' */
.icon-soundcloud-1:before { content: '\f1be'; } /* '' */
.icon-paper-plane:before { content: '\f1d8'; } /* '' */
.icon-trash:before { content: '\f1f8'; } /* '' */
.icon-toggle-off:before { content: '\f204'; } /* '' */
.icon-toggle-on:before { content: '\f205'; } /* '' */
.icon-facebook-official:before { content: '\f230'; } /* '' */
.icon-pause-circle:before { content: '\f28b'; } /* '' */
.icon-stop-circle:before { content: '\f28d'; } /* '' */
-392
View File
@@ -1,392 +0,0 @@
<!DOCTYPE html>
<html>
<head><!--[if lt IE 9]><script language="javascript" type="text/javascript" src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<meta charset="UTF-8"><style>/*
* Bootstrap v2.2.1
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
.clearfix {
*zoom: 1;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
line-height: 0;
}
.clearfix:after {
clear: both;
}
html {
font-size: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
a:focus {
outline: thin dotted #333;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
a:hover,
a:active {
outline: 0;
}
button,
input,
select,
textarea {
margin: 0;
font-size: 100%;
vertical-align: middle;
}
button,
input {
*overflow: visible;
line-height: normal;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
padding: 0;
border: 0;
}
body {
margin: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 20px;
color: #333;
background-color: #fff;
}
a {
color: #08c;
text-decoration: none;
}
a:hover {
color: #005580;
text-decoration: underline;
}
.row {
margin-left: -20px;
*zoom: 1;
}
.row:before,
.row:after {
display: table;
content: "";
line-height: 0;
}
.row:after {
clear: both;
}
[class*="span"] {
float: left;
min-height: 1px;
margin-left: 20px;
}
.container,
.navbar-static-top .container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
width: 940px;
}
.span12 {
width: 940px;
}
.span11 {
width: 860px;
}
.span10 {
width: 780px;
}
.span9 {
width: 700px;
}
.span8 {
width: 620px;
}
.span7 {
width: 540px;
}
.span6 {
width: 460px;
}
.span5 {
width: 380px;
}
.span4 {
width: 300px;
}
.span3 {
width: 220px;
}
.span2 {
width: 140px;
}
.span1 {
width: 60px;
}
[class*="span"].pull-right,
.row-fluid [class*="span"].pull-right {
float: right;
}
.container {
margin-right: auto;
margin-left: auto;
*zoom: 1;
}
.container:before,
.container:after {
display: table;
content: "";
line-height: 0;
}
.container:after {
clear: both;
}
p {
margin: 0 0 10px;
}
.lead {
margin-bottom: 20px;
font-size: 21px;
font-weight: 200;
line-height: 30px;
}
small {
font-size: 85%;
}
h1 {
margin: 10px 0;
font-family: inherit;
font-weight: bold;
line-height: 20px;
color: inherit;
text-rendering: optimizelegibility;
}
h1 small {
font-weight: normal;
line-height: 1;
color: #999;
}
h1 {
line-height: 40px;
}
h1 {
font-size: 38.5px;
}
h1 small {
font-size: 24.5px;
}
body {
margin-top: 90px;
}
.header {
position: fixed;
top: 0;
left: 50%;
margin-left: -480px;
background-color: #fff;
border-bottom: 1px solid #ddd;
padding-top: 10px;
z-index: 10;
}
.footer {
color: #ddd;
font-size: 12px;
text-align: center;
margin-top: 20px;
}
.footer a {
color: #ccc;
text-decoration: underline;
}
.the-icons {
font-size: 14px;
line-height: 24px;
}
.switch {
position: absolute;
right: 0;
bottom: 10px;
color: #666;
}
.switch input {
margin-right: 0.3em;
}
.codesOn .i-name {
display: none;
}
.codesOn .i-code {
display: inline;
}
.i-code {
display: none;
}
@font-face {
font-family: 'fontello';
src: url('./font/fontello.eot?66910414');
src: url('./font/fontello.eot?66910414#iefix') format('embedded-opentype'),
url('./font/fontello.woff?66910414') format('woff'),
url('./font/fontello.ttf?66910414') format('truetype'),
url('./font/fontello.svg?66910414#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
.demo-icon
{
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: never;
display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* opacity: .8; */
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: .2em;
/* You can be more comfortable with increased icons size */
/* font-size: 120%; */
/* Font smoothing. That was taken from TWBS */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* Uncomment for 3D effect */
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
</style>
<link rel="stylesheet" href="css/animation.css"><!--[if IE 7]><link rel="stylesheet" href="css/" + font.fontname + "-ie7.css"><![endif]-->
<script>
function toggleCodes(on) {
var obj = document.getElementById('icons');
if (on) {
obj.className += ' codesOn';
} else {
obj.className = obj.className.replace(' codesOn', '');
}
}
</script>
</head>
<body>
<div class="container header">
<h1>fontello <small>font demo</small></h1>
<label class="switch">
<input type="checkbox" onclick="toggleCodes(this.checked)">show codes
</label>
</div>
<div class="container" id="icons">
<div class="row">
<div class="the-icons span3" title="Code: 0xe800"><i class="demo-icon icon-mail">&#xe800;</i> <span class="i-name">icon-mail</span><span class="i-code">0xe800</span></div>
<div class="the-icons span3" title="Code: 0xe801"><i class="demo-icon icon-heart">&#xe801;</i> <span class="i-name">icon-heart</span><span class="i-code">0xe801</span></div>
<div class="the-icons span3" title="Code: 0xe802"><i class="demo-icon icon-heart-empty">&#xe802;</i> <span class="i-name">icon-heart-empty</span><span class="i-code">0xe802</span></div>
<div class="the-icons span3" title="Code: 0xe803"><i class="demo-icon icon-star">&#xe803;</i> <span class="i-name">icon-star</span><span class="i-code">0xe803</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xe804"><i class="demo-icon icon-star-empty">&#xe804;</i> <span class="i-name">icon-star-empty</span><span class="i-code">0xe804</span></div>
<div class="the-icons span3" title="Code: 0xe805"><i class="demo-icon icon-home">&#xe805;</i> <span class="i-name">icon-home</span><span class="i-code">0xe805</span></div>
<div class="the-icons span3" title="Code: 0xe806"><i class="demo-icon icon-link">&#xe806;</i> <span class="i-name">icon-link</span><span class="i-code">0xe806</span></div>
<div class="the-icons span3" title="Code: 0xe807"><i class="demo-icon icon-lock">&#xe807;</i> <span class="i-name">icon-lock</span><span class="i-code">0xe807</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xe808"><i class="demo-icon icon-lock-open">&#xe808;</i> <span class="i-name">icon-lock-open</span><span class="i-code">0xe808</span></div>
<div class="the-icons span3" title="Code: 0xe809"><i class="demo-icon icon-eye">&#xe809;</i> <span class="i-name">icon-eye</span><span class="i-code">0xe809</span></div>
<div class="the-icons span3" title="Code: 0xe80a"><i class="demo-icon icon-eye-off">&#xe80a;</i> <span class="i-name">icon-eye-off</span><span class="i-code">0xe80a</span></div>
<div class="the-icons span3" title="Code: 0xe80b"><i class="demo-icon icon-tag">&#xe80b;</i> <span class="i-name">icon-tag</span><span class="i-code">0xe80b</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xe80c"><i class="demo-icon icon-bookmark">&#xe80c;</i> <span class="i-name">icon-bookmark</span><span class="i-code">0xe80c</span></div>
<div class="the-icons span3" title="Code: 0xe80d"><i class="demo-icon icon-flag">&#xe80d;</i> <span class="i-name">icon-flag</span><span class="i-code">0xe80d</span></div>
<div class="the-icons span3" title="Code: 0xe80e"><i class="demo-icon icon-thumbs-up">&#xe80e;</i> <span class="i-name">icon-thumbs-up</span><span class="i-code">0xe80e</span></div>
<div class="the-icons span3" title="Code: 0xe80f"><i class="demo-icon icon-thumbs-down">&#xe80f;</i> <span class="i-name">icon-thumbs-down</span><span class="i-code">0xe80f</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xe810"><i class="demo-icon icon-volume-up">&#xe810;</i> <span class="i-name">icon-volume-up</span><span class="i-code">0xe810</span></div>
<div class="the-icons span3" title="Code: 0xe811"><i class="demo-icon icon-volume-off">&#xe811;</i> <span class="i-name">icon-volume-off</span><span class="i-code">0xe811</span></div>
<div class="the-icons span3" title="Code: 0xe812"><i class="demo-icon icon-headphones">&#xe812;</i> <span class="i-name">icon-headphones</span><span class="i-code">0xe812</span></div>
<div class="the-icons span3" title="Code: 0xe813"><i class="demo-icon icon-signal">&#xe813;</i> <span class="i-name">icon-signal</span><span class="i-code">0xe813</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xe814"><i class="demo-icon icon-align-left">&#xe814;</i> <span class="i-name">icon-align-left</span><span class="i-code">0xe814</span></div>
<div class="the-icons span3" title="Code: 0xe815"><i class="demo-icon icon-chat">&#xe815;</i> <span class="i-name">icon-chat</span><span class="i-code">0xe815</span></div>
<div class="the-icons span3" title="Code: 0xe816"><i class="demo-icon icon-cog-alt">&#xe816;</i> <span class="i-name">icon-cog-alt</span><span class="i-code">0xe816</span></div>
<div class="the-icons span3" title="Code: 0xe817"><i class="demo-icon icon-search">&#xe817;</i> <span class="i-name">icon-search</span><span class="i-code">0xe817</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xe818"><i class="demo-icon icon-check">&#xe818;</i> <span class="i-name">icon-check</span><span class="i-code">0xe818</span></div>
<div class="the-icons span3" title="Code: 0xe819"><i class="demo-icon icon-cancel-circled">&#xe819;</i> <span class="i-name">icon-cancel-circled</span><span class="i-code">0xe819</span></div>
<div class="the-icons span3" title="Code: 0xe81a"><i class="demo-icon icon-ok-circled">&#xe81a;</i> <span class="i-name">icon-ok-circled</span><span class="i-code">0xe81a</span></div>
<div class="the-icons span3" title="Code: 0xe81b"><i class="demo-icon icon-minus-circled">&#xe81b;</i> <span class="i-name">icon-minus-circled</span><span class="i-code">0xe81b</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xe81c"><i class="demo-icon icon-music">&#xe81c;</i> <span class="i-name">icon-music</span><span class="i-code">0xe81c</span></div>
<div class="the-icons span3" title="Code: 0xe81d"><i class="demo-icon icon-export">&#xe81d;</i> <span class="i-name">icon-export</span><span class="i-code">0xe81d</span></div>
<div class="the-icons span3" title="Code: 0xe832"><i class="demo-icon icon-spin3 animate-spin">&#xe832;</i> <span class="i-name">icon-spin3</span><span class="i-code">0xe832</span></div>
<div class="the-icons span3" title="Code: 0xe834"><i class="demo-icon icon-spin4 animate-spin">&#xe834;</i> <span class="i-name">icon-spin4</span><span class="i-code">0xe834</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xe838"><i class="demo-icon icon-spin5 animate-spin">&#xe838;</i> <span class="i-name">icon-spin5</span><span class="i-code">0xe838</span></div>
<div class="the-icons span3" title="Code: 0xe839"><i class="demo-icon icon-spin6 animate-spin">&#xe839;</i> <span class="i-name">icon-spin6</span><span class="i-code">0xe839</span></div>
<div class="the-icons span3" title="Code: 0xf096"><i class="demo-icon icon-check-empty">&#xf096;</i> <span class="i-name">icon-check-empty</span><span class="i-code">0xf096</span></div>
<div class="the-icons span3" title="Code: 0xf097"><i class="demo-icon icon-bookmark-empty">&#xf097;</i> <span class="i-name">icon-bookmark-empty</span><span class="i-code">0xf097</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xf0ca"><i class="demo-icon icon-list-bullet">&#xf0ca;</i> <span class="i-name">icon-list-bullet</span><span class="i-code">0xf0ca</span></div>
<div class="the-icons span3" title="Code: 0xf0cb"><i class="demo-icon icon-list-numbered">&#xf0cb;</i> <span class="i-name">icon-list-numbered</span><span class="i-code">0xf0cb</span></div>
<div class="the-icons span3" title="Code: 0xf0fe"><i class="demo-icon icon-plus-squared">&#xf0fe;</i> <span class="i-name">icon-plus-squared</span><span class="i-code">0xf0fe</span></div>
<div class="the-icons span3" title="Code: 0xf127"><i class="demo-icon icon-unlink">&#xf127;</i> <span class="i-name">icon-unlink</span><span class="i-code">0xf127</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xf129"><i class="demo-icon icon-info">&#xf129;</i> <span class="i-name">icon-info</span><span class="i-code">0xf129</span></div>
<div class="the-icons span3" title="Code: 0xf130"><i class="demo-icon icon-mic">&#xf130;</i> <span class="i-name">icon-mic</span><span class="i-code">0xf130</span></div>
<div class="the-icons span3" title="Code: 0xf144"><i class="demo-icon icon-play-circled">&#xf144;</i> <span class="i-name">icon-play-circled</span><span class="i-code">0xf144</span></div>
<div class="the-icons span3" title="Code: 0xf146"><i class="demo-icon icon-minus-squared">&#xf146;</i> <span class="i-name">icon-minus-squared</span><span class="i-code">0xf146</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xf14a"><i class="demo-icon icon-ok-squared">&#xf14a;</i> <span class="i-name">icon-ok-squared</span><span class="i-code">0xf14a</span></div>
<div class="the-icons span3" title="Code: 0xf150"><i class="demo-icon icon-expand">&#xf150;</i> <span class="i-name">icon-expand</span><span class="i-code">0xf150</span></div>
<div class="the-icons span3" title="Code: 0xf151"><i class="demo-icon icon-collapse">&#xf151;</i> <span class="i-name">icon-collapse</span><span class="i-code">0xf151</span></div>
<div class="the-icons span3" title="Code: 0xf152"><i class="demo-icon icon-expand-right">&#xf152;</i> <span class="i-name">icon-expand-right</span><span class="i-code">0xf152</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xf167"><i class="demo-icon icon-youtube">&#xf167;</i> <span class="i-name">icon-youtube</span><span class="i-code">0xf167</span></div>
<div class="the-icons span3" title="Code: 0xf191"><i class="demo-icon icon-collapse-left">&#xf191;</i> <span class="i-name">icon-collapse-left</span><span class="i-code">0xf191</span></div>
<div class="the-icons span3" title="Code: 0xf1bc"><i class="demo-icon icon-spotify-1">&#xf1bc;</i> <span class="i-name">icon-spotify-1</span><span class="i-code">0xf1bc</span></div>
<div class="the-icons span3" title="Code: 0xf1be"><i class="demo-icon icon-soundcloud-1">&#xf1be;</i> <span class="i-name">icon-soundcloud-1</span><span class="i-code">0xf1be</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xf1d8"><i class="demo-icon icon-paper-plane">&#xf1d8;</i> <span class="i-name">icon-paper-plane</span><span class="i-code">0xf1d8</span></div>
<div class="the-icons span3" title="Code: 0xf1f8"><i class="demo-icon icon-trash">&#xf1f8;</i> <span class="i-name">icon-trash</span><span class="i-code">0xf1f8</span></div>
<div class="the-icons span3" title="Code: 0xf204"><i class="demo-icon icon-toggle-off">&#xf204;</i> <span class="i-name">icon-toggle-off</span><span class="i-code">0xf204</span></div>
<div class="the-icons span3" title="Code: 0xf205"><i class="demo-icon icon-toggle-on">&#xf205;</i> <span class="i-name">icon-toggle-on</span><span class="i-code">0xf205</span></div>
</div>
<div class="row">
<div class="the-icons span3" title="Code: 0xf230"><i class="demo-icon icon-facebook-official">&#xf230;</i> <span class="i-name">icon-facebook-official</span><span class="i-code">0xf230</span></div>
<div class="the-icons span3" title="Code: 0xf28b"><i class="demo-icon icon-pause-circle">&#xf28b;</i> <span class="i-name">icon-pause-circle</span><span class="i-code">0xf28b</span></div>
<div class="the-icons span3" title="Code: 0xf28d"><i class="demo-icon icon-stop-circle">&#xf28d;</i> <span class="i-name">icon-stop-circle</span><span class="i-code">0xf28d</span></div>
</div>
</div>
<div class="container footer">Generated by <a href="http://fontello.com">fontello.com</a></div>
</body>
</html>
Binary file not shown.
-128
View File
@@ -1,128 +0,0 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Copyright (C) 2020 by original authors @ fontello.com</metadata>
<defs>
<font id="fontello" horiz-adv-x="1000" >
<font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
<missing-glyph horiz-adv-x="1000" />
<glyph glyph-name="mail" unicode="&#xe800;" d="M929 11v428q-18-20-39-36-149-115-238-189-28-24-46-37t-48-28-57-13h-2q-26 0-57 13t-48 28-46 37q-88 74-238 189-21 16-39 36v-428q0-7 6-13t12-5h822q7 0 12 5t6 13z m0 586v14t-1 7-1 7-3 5-5 4-8 2h-822q-7 0-12-6t-6-12q0-94 83-159 107-84 223-176 4-3 20-17t25-21 25-17 28-16 24-5h2q11 0 24 5t28 16 25 17 25 21 20 17q116 92 224 176 30 24 56 65t26 73z m71 21v-607q0-37-26-63t-63-27h-822q-36 0-63 27t-26 63v607q0 37 26 63t63 26h822q37 0 63-26t26-63z" horiz-adv-x="1000" />
<glyph glyph-name="heart" unicode="&#xe801;" d="M500-79q-14 0-25 10l-348 336q-5 5-15 15t-31 37-38 54-30 67-13 77q0 123 71 192t196 70q34 0 70-12t67-33 54-38 42-38q20 20 42 38t54 38 67 33 70 12q125 0 196-70t71-192q0-123-128-251l-347-335q-10-10-25-10z" horiz-adv-x="1000" />
<glyph glyph-name="heart-empty" unicode="&#xe802;" d="M929 517q0 46-12 80t-31 55-46 33-52 18-55 4-62-14-62-36-48-40-34-34q-10-13-27-13t-27 13q-14 15-34 34t-48 40-62 36-62 14-55-4-52-18-46-33-31-55-12-80q0-93 105-198l324-312 324 312q105 105 105 198z m71 0q0-123-128-251l-347-335q-10-10-25-10t-25 10l-348 336q-5 5-15 15t-31 37-38 54-30 67-13 77q0 123 71 192t196 70q34 0 70-12t67-33 54-38 42-38q20 20 42 38t54 38 67 33 70 12q125 0 196-70t71-192z" horiz-adv-x="1000" />
<glyph glyph-name="star" unicode="&#xe803;" d="M929 489q0-12-15-27l-202-197 48-279q0-4 0-12 0-11-6-19t-17-9q-10 0-22 7l-251 132-250-132q-12-7-23-7-11 0-17 9t-6 19q0 4 1 12l48 279-203 197q-14 15-14 27 0 21 31 26l280 40 126 254q11 23 27 23t28-23l125-254 280-40q32-5 32-26z" horiz-adv-x="928.6" />
<glyph glyph-name="star-empty" unicode="&#xe804;" d="M635 290l170 166-235 34-106 213-105-213-236-34 171-166-41-235 211 111 211-111z m294 199q0-12-15-27l-202-197 48-279q0-4 0-12 0-28-23-28-10 0-22 7l-251 132-250-132q-12-7-23-7-11 0-17 9t-6 19q0 4 1 12l48 279-203 197q-14 15-14 27 0 21 31 26l280 40 126 254q11 23 27 23t28-23l125-254 280-40q32-5 32-26z" horiz-adv-x="928.6" />
<glyph glyph-name="home" unicode="&#xe805;" d="M786 296v-267q0-15-11-25t-25-11h-214v214h-143v-214h-214q-15 0-25 11t-11 25v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-3-7 1-12 6l-35 41q-4 6-3 13t6 12l401 334q18 15 42 15t43-15l136-113v108q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q6-4 6-12t-4-13z" horiz-adv-x="928.6" />
<glyph glyph-name="link" unicode="&#xe806;" d="M813 171q0 23-16 38l-116 116q-16 16-38 16-24 0-40-18 1-1 10-10t12-12 9-11 7-14 2-15q0-23-16-38t-38-16q-8 0-15 2t-14 7-11 9-12 12-10 10q-19-17-19-40 0-23 16-38l115-116q15-15 38-15 22 0 38 15l82 81q16 16 16 37z m-393 394q0 22-15 38l-115 115q-16 16-38 16-22 0-38-15l-82-82q-16-15-16-37 0-22 16-38l116-116q15-15 38-15 23 0 40 17-2 2-11 11t-12 12-8 10-7 14-2 16q0 22 15 38t38 15q9 0 16-2t14-7 11-8 12-12 10-11q18 17 18 41z m500-394q0-66-48-113l-82-81q-46-47-113-47-68 0-114 48l-115 115q-46 47-46 114 0 68 49 116l-49 49q-48-49-116-49-67 0-114 47l-116 116q-47 47-47 114t47 113l82 82q47 46 114 46 67 0 114-47l115-116q46-46 46-113 0-69-49-117l49-49q48 49 116 49 67 0 114-47l116-116q47-47 47-114z" horiz-adv-x="928.6" />
<glyph glyph-name="lock" unicode="&#xe807;" d="M179 421h285v108q0 59-42 101t-101 41-101-41-41-101v-108z m464-53v-322q0-22-16-37t-38-16h-535q-23 0-38 16t-16 37v322q0 22 16 38t38 15h17v108q0 102 74 176t176 74 177-74 73-176v-108h18q23 0 38-15t16-38z" horiz-adv-x="642.9" />
<glyph glyph-name="lock-open" unicode="&#xe808;" d="M929 529v-143q0-15-11-25t-25-11h-36q-14 0-25 11t-11 25v143q0 59-41 101t-101 41-101-41-42-101v-108h53q23 0 38-15t16-38v-322q0-22-16-37t-38-16h-535q-23 0-38 16t-16 37v322q0 22 16 38t38 15h375v108q0 103 73 176t177 74 176-74 74-176z" horiz-adv-x="928.6" />
<glyph glyph-name="eye" unicode="&#xe809;" d="M929 314q-85 132-213 197 34-58 34-125 0-103-73-177t-177-73-177 73-73 177q0 67 34 125-128-65-213-197 75-114 187-182t242-68 243 68 186 182z m-402 215q0 11-8 19t-19 7q-70 0-120-50t-50-119q0-11 8-19t19-8 19 8 8 19q0 48 34 82t82 34q11 0 19 8t8 19z m473-215q0-19-11-38-78-129-210-206t-279-77-279 77-210 206q-11 19-11 38t11 39q78 128 210 205t279 78 279-78 210-205q11-20 11-39z" horiz-adv-x="1000" />
<glyph glyph-name="eye-off" unicode="&#xe80a;" d="M310 105l43 79q-48 35-76 88t-27 114q0 67 34 125-128-65-213-197 94-144 239-209z m217 424q0 11-8 19t-19 7q-70 0-120-50t-50-119q0-11 8-19t19-8 19 8 8 19q0 48 34 82t82 34q11 0 19 8t8 19z m202 106q0-4 0-5-59-105-176-316t-176-316l-28-50q-5-9-15-9-7 0-75 39-9 6-9 16 0 7 25 49-80 36-147 96t-117 137q-11 17-11 38t11 39q86 131 212 207t277 76q50 0 100-10l31 54q5 9 15 9 3 0 10-3t18-9 18-10 18-10 10-7q9-5 9-15z m21-249q0-78-44-142t-117-91l157 280q4-25 4-47z m250-72q0-19-11-38-22-36-61-81-84-96-194-149t-234-53l41 74q119 10 219 76t169 171q-65 100-158 164l35 63q53-36 102-85t81-103q11-19 11-39z" horiz-adv-x="1000" />
<glyph glyph-name="tag" unicode="&#xe80b;" d="M250 600q0 30-21 51t-50 20-51-20-21-51 21-50 51-21 50 21 21 50z m595-321q0-30-20-51l-274-274q-22-21-51-21-30 0-50 21l-399 399q-21 21-36 57t-15 65v232q0 29 21 50t50 22h233q29 0 65-15t57-36l399-399q20-21 20-50z" horiz-adv-x="857.1" />
<glyph glyph-name="bookmark" unicode="&#xe80c;" d="M650 779q12 0 24-5 19-8 29-23t11-35v-719q0-19-11-35t-29-23q-10-4-24-4-27 0-47 18l-246 236-246-236q-20-19-46-19-13 0-25 5-18 7-29 23t-11 35v719q0 19 11 35t29 23q12 5 25 5h585z" horiz-adv-x="714.3" />
<glyph glyph-name="flag" unicode="&#xe80d;" d="M179 707q0-40-36-61v-707q0-7-5-12t-13-6h-36q-7 0-12 6t-6 12v707q-35 21-35 61 0 30 21 51t50 21 51-21 21-51z m821-36v-425q0-14-7-22t-22-15q-120-65-206-65-34 0-69 12t-60 27-65 27-79 12q-107 0-259-81-10-5-19-5-14 0-25 10t-10 25v415q0 17 17 30 12 8 44 24 132 67 235 67 60 0 112-16t122-49q21-11 49-11 30 0 65 12t62 26 49 26 30 12q15 0 25-10t11-26z" horiz-adv-x="1000" />
<glyph glyph-name="thumbs-up" unicode="&#xe80e;" d="M143 100q0 15-11 25t-25 11-25-11-11-25 11-25 25-11 25 11 11 25z m643 321q0 29-22 50t-50 22h-196q0 32 27 89t26 89q0 55-17 81t-72 27q-14-15-21-48t-17-70-33-61q-13-13-43-51-2-3-13-16t-18-23-19-24-22-25-22-19-22-15-20-6h-18v-357h18q7 0 18-1t18-4 21-6 20-7 20-6 16-6q118-41 191-41h67q107 0 107 93 0 15-2 31 16 9 26 30t10 41-10 38q29 28 29 67 0 14-5 31t-14 26q18 1 30 26t12 45z m71 1q0-50-27-91 5-18 5-38 0-43-21-81 1-12 1-24 0-56-33-99 0-78-48-123t-126-45h-72q-54 0-106 13t-121 36q-65 23-77 23h-161q-29 0-50 21t-21 50v357q0 30 21 51t50 21h153q20 13 77 86 32 42 60 72 13 14 19 48t17 70 35 60q22 21 50 21 47 0 84-18t57-57 20-104q0-51-27-107h98q58 0 101-42t42-100z" horiz-adv-x="857.1" />
<glyph glyph-name="thumbs-down" unicode="&#xe80f;" d="M143 600q0 15-11 25t-25 11-25-11-11-25 11-25 25-11 25 11 11 25z m643-321q0 19-12 45t-30 26q8 10 14 27t5 31q0 38-29 66 10 17 10 38 0 21-10 41t-26 30q2 16 2 31 0 47-27 70t-76 23h-71q-73 0-191-41-3-1-16-5t-20-7-20-7-21-6-18-4-18-1h-18v-357h18q9 0 20-5t22-15 22-20 22-25 19-24 18-22 13-17q30-38 43-51 23-24 33-61t17-70 21-48q54 0 72 27t17 81q0 33-26 89t-27 89h196q28 0 50 22t22 50z m71-1q0-57-42-100t-101-42h-98q27-55 27-107 0-66-20-104-19-39-57-57t-84-18q-28 0-50 21-19 18-30 45t-14 51-10 47-17 36q-27 28-60 71-57 73-77 86h-153q-29 0-50 21t-21 51v357q0 29 21 50t50 21h161q12 0 77 23 72 24 125 36t111 13h63q78 0 126-44t48-121v-3q33-43 33-99 0-12-1-24 21-38 21-80 0-21-5-39 27-41 27-91z" horiz-adv-x="857.1" />
<glyph glyph-name="volume-up" unicode="&#xe810;" d="M429 654v-608q0-14-11-25t-25-10-25 10l-186 186h-146q-15 0-25 11t-11 25v214q0 15 11 25t25 11h146l186 186q10 10 25 10t25-10 11-25z m214-304q0-42-24-79t-63-52q-5-3-14-3-14 0-25 10t-10 26q0 12 6 20t17 14 19 12 16 21 6 31-6 32-16 20-19 13-17 13-6 20q0 15 10 26t25 10q9 0 14-3 39-15 63-52t24-79z m143 0q0-85-48-158t-125-105q-7-3-14-3-15 0-26 11t-10 25q0 22 21 33 32 16 43 25 41 30 64 75t23 97-23 97-64 75q-11 9-43 25-21 11-21 33 0 14 10 25t25 11q8 0 15-3 78-33 125-105t48-158z m143 0q0-128-71-236t-189-158q-7-3-14-3-15 0-25 11t-11 25q0 20 22 33 4 2 12 6t13 6q25 14 46 28 68 51 107 127t38 161-38 161-107 127q-21 15-46 28-4 3-13 6t-12 6q-22 13-22 33 0 15 11 25t25 11q7 0 14-3 118-51 189-158t71-236z" horiz-adv-x="928.6" />
<glyph glyph-name="volume-off" unicode="&#xe811;" d="M429 654v-608q0-14-11-25t-25-10-25 10l-186 186h-146q-15 0-25 11t-11 25v214q0 15 11 25t25 11h146l186 186q10 10 25 10t25-10 11-25z" horiz-adv-x="428.6" />
<glyph glyph-name="headphones" unicode="&#xe812;" d="M929 356q0-93-34-176l-11-27-103-18q-13-47-51-77t-87-29v-18q0-8-5-13t-13-5h-36q-7 0-12 5t-6 13v321q0 8 6 13t12 5h36q8 0 13-5t5-13v-18q40 0 72-19t52-54l38 7q16 53 16 108 0 82-49 155t-132 117-176 43-176-43-132-117-49-155q0-55 16-108l38-7q19 34 52 54t73 19v18q0 8 5 13t13 5h35q8 0 13-5t5-13v-321q0-8-5-13t-13-5h-35q-8 0-13 5t-5 13v18q-49 0-88 29t-50 77l-103 18-11 27q-34 83-34 176 0 84 37 162t100 135 149 92 178 34 179-34 148-92 100-135 38-162z" horiz-adv-x="928.6" />
<glyph glyph-name="signal" unicode="&#xe813;" d="M143 46v-107q0-8-5-13t-13-5h-107q-8 0-13 5t-5 13v107q0 8 5 13t13 5h107q8 0 13-5t5-13z m214 72v-179q0-8-5-13t-13-5h-107q-8 0-13 5t-5 13v179q0 8 5 13t13 5h107q8 0 13-5t5-13z m214 143v-322q0-8-5-13t-12-5h-108q-7 0-12 5t-5 13v322q0 8 5 13t12 5h108q7 0 12-5t5-13z m215 214v-536q0-8-5-13t-13-5h-107q-8 0-13 5t-5 13v536q0 8 5 13t13 5h107q8 0 13-5t5-13z m214 286v-822q0-8-5-13t-13-5h-107q-8 0-13 5t-5 13v822q0 8 5 13t13 5h107q8 0 13-5t5-13z" horiz-adv-x="1000" />
<glyph glyph-name="align-left" unicode="&#xe814;" d="M1000 100v-71q0-15-11-25t-25-11h-928q-15 0-25 11t-11 25v71q0 15 11 25t25 11h928q15 0 25-11t11-25z m-214 214v-71q0-15-11-25t-25-11h-714q-15 0-25 11t-11 25v71q0 15 11 25t25 11h714q15 0 25-11t11-25z m143 215v-72q0-14-11-25t-25-11h-857q-15 0-25 11t-11 25v72q0 14 11 25t25 10h857q14 0 25-10t11-25z m-215 214v-72q0-14-10-25t-25-10h-643q-15 0-25 10t-11 25v72q0 14 11 25t25 11h643q14 0 25-11t10-25z" horiz-adv-x="1000" />
<glyph glyph-name="chat" unicode="&#xe815;" d="M786 421q0-77-53-143t-143-104-197-38q-48 0-98 9-70-49-155-72-21-5-48-9h-2q-6 0-12 5t-6 12q-1 1-1 3t1 4 1 3l1 3t2 3 2 3 3 3 2 2q3 3 13 14t15 16 12 17 14 21 11 25q-69 40-108 98t-40 125q0 78 53 144t143 104 197 38 197-38 143-104 53-144z m214-142q0-67-40-126t-108-98q5-14 11-25t14-21 13-16 14-17 13-14q0 0 2-2t3-3 2-3 2-3l1-3t1-3 1-4-1-3q-2-8-7-13t-12-4q-28 4-48 9-86 23-156 72-50-9-98-9-151 0-263 74 32-3 49-3 90 0 172 25t148 72q69 52 107 119t37 141q0 43-13 85 72-39 114-99t42-128z" horiz-adv-x="1000" />
<glyph glyph-name="cog-alt" unicode="&#xe816;" d="M500 350q0 59-42 101t-101 42-101-42-42-101 42-101 101-42 101 42 42 101z m429-286q0 29-22 51t-50 21-50-21-21-51q0-29 21-50t50-21 51 21 21 50z m0 572q0 29-22 50t-50 21-50-21-21-50q0-30 21-51t50-21 51 21 21 51z m-215-235v-103q0-6-4-11t-8-6l-87-14q-6-19-18-42 19-27 50-64 4-6 4-11 0-7-4-11-12-17-46-50t-43-33q-7 0-12 4l-64 50q-21-11-43-17-6-60-13-87-4-13-17-13h-104q-6 0-11 4t-5 10l-13 85q-19 6-42 18l-66-50q-4-4-11-4-6 0-12 4-80 75-80 90 0 5 4 10 5 8 23 30t26 34q-13 24-20 46l-85 13q-5 1-9 5t-4 11v104q0 5 4 10t9 6l86 14q7 19 18 42-19 27-50 64-4 6-4 11 0 7 4 12 12 16 46 49t44 33q6 0 12-4l64-50q19 10 43 18 6 60 13 86 3 13 16 13h104q6 0 11-4t6-10l13-85q19-6 42-17l65 49q5 4 12 4 6 0 11-4 81-75 81-90 0-4-4-10-7-9-24-30t-25-34q13-27 19-46l85-12q6-2 9-6t4-11z m357-298v-78q0-9-83-17-6-15-16-29 28-63 28-77 0-2-2-4-68-40-69-40-5 0-26 27t-29 37q-11-1-17-1t-17 1q-7-11-29-37t-25-27q-1 0-69 40-3 2-3 4 0 14 29 77-10 14-17 29-83 8-83 17v78q0 9 83 18 7 16 17 29-29 63-29 77 0 2 3 4 2 1 19 11t33 19 17 9q4 0 25-26t29-38q12 1 17 1t17-1q28 40 51 63l4 1q2 0 69-39 2-2 2-4 0-14-28-77 9-13 16-29 83-9 83-18z m0 572v-78q0-9-83-18-6-15-16-29 28-63 28-77 0-2-2-4-68-39-69-39-5 0-26 26t-29 38q-11-1-17-1t-17 1q-7-12-29-38t-25-26q-1 0-69 39-3 2-3 4 0 14 29 77-10 14-17 29-83 9-83 18v78q0 9 83 17 7 16 17 29-29 63-29 77 0 2 3 4 2 1 19 11t33 19 17 9q4 0 25-26t29-37q12 1 17 1t17-1q28 39 51 62l4 1q2 0 69-39 2-2 2-4 0-14-28-77 9-13 16-29 83-8 83-17z" horiz-adv-x="1071.4" />
<glyph glyph-name="search" unicode="&#xe817;" d="M643 386q0 103-73 176t-177 74-177-74-73-176 73-177 177-73 177 73 73 177z m286-465q0-29-22-50t-50-21q-30 0-50 21l-191 191q-100-69-223-69-80 0-153 31t-125 84-84 125-31 153 31 152 84 126 125 84 153 31 153-31 125-84 84-126 31-152q0-123-69-223l191-191q21-21 21-51z" horiz-adv-x="928.6" />
<glyph glyph-name="check" unicode="&#xe818;" d="M786 331v-177q0-67-47-114t-114-47h-464q-67 0-114 47t-47 114v464q0 66 47 113t114 48h464q35 0 65-14 9-4 10-13 2-10-5-16l-27-28q-6-5-13-5-1 0-5 1-13 3-25 3h-464q-37 0-63-26t-27-63v-464q0-37 27-63t63-27h464q37 0 63 27t26 63v141q0 8 5 13l36 35q6 6 13 6 3 0 7-2 11-4 11-16z m129 273l-455-454q-13-14-31-14t-32 14l-240 240q-14 13-14 31t14 32l61 62q14 13 32 13t32-13l147-147 361 361q13 13 31 13t32-13l62-61q13-14 13-32t-13-32z" horiz-adv-x="928.6" />
<glyph glyph-name="cancel-circled" unicode="&#xe819;" d="M641 224q0 14-10 25l-101 101 101 101q10 11 10 25 0 15-10 26l-51 50q-10 11-25 11-15 0-25-11l-101-101-101 101q-11 11-25 11-16 0-26-11l-50-50q-11-11-11-26 0-14 11-25l101-101-101-101q-11-11-11-25 0-15 11-26l50-50q10-11 26-11 14 0 25 11l101 101 101-101q10-11 25-11 15 0 25 11l51 50q10 11 10 26z m216 126q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z" horiz-adv-x="857.1" />
<glyph glyph-name="ok-circled" unicode="&#xe81a;" d="M717 440q0 16-10 26l-51 50q-11 11-25 11t-25-11l-228-227-126 126q-11 11-25 11t-25-11l-51-50q-10-10-10-26 0-15 10-25l202-202q10-10 25-10 15 0 26 10l303 303q10 10 10 25z m140-90q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z" horiz-adv-x="857.1" />
<glyph glyph-name="minus-circled" unicode="&#xe81b;" d="M679 314v72q0 14-11 25t-25 10h-429q-14 0-25-10t-10-25v-72q0-14 10-25t25-10h429q14 0 25 10t11 25z m178 36q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z" horiz-adv-x="857.1" />
<glyph glyph-name="music" unicode="&#xe81c;" d="M857 725v-625q0-28-19-50t-48-33-58-18-53-6-54 6-58 18-48 33-19 50 19 50 48 33 58 18 54 6q58 0 107-22v300l-429-132v-396q0-28-19-50t-48-33-58-18-53-6-54 6-58 18-48 33-19 50 19 50 48 34 58 17 54 6q58 0 107-21v539q0 17 10 32t28 20l464 142q7 3 16 3 22 0 38-16t15-38z" horiz-adv-x="857.1" />
<glyph glyph-name="export" unicode="&#xe81d;" d="M786 298v-144q0-67-47-114t-114-47h-464q-67 0-114 47t-47 114v464q0 66 47 113t114 48h142q7 0 13-6t5-12q0-15-15-18-43-15-74-34-5-2-9-2h-62q-37 0-63-26t-27-63v-464q0-37 27-63t63-27h464q37 0 63 27t26 63v119q0 11 10 16 16 7 31 21 8 9 19 4 12-5 12-16z m132 277l-214-214q-10-11-25-11-7 0-14 3-22 9-22 33v107h-89q-181 0-245-73-66-77-41-264 2-13-11-19-5-1-7-1-9 0-14 7-6 8-12 17t-22 39-28 55-21 64-10 68q0 27 2 51t8 50 15 49 27 45 38 42 52 34 70 27 89 17 110 6h89v107q0 24 22 33 7 3 14 3 14 0 25-11l214-214q11-10 11-25t-11-25z" horiz-adv-x="928.6" />
<glyph glyph-name="spin3" unicode="&#xe832;" d="M494 850c-266 0-483-210-494-472-1-19 13-20 13-20l84 0c16 0 19 10 19 18 10 199 176 358 378 358 107 0 205-45 273-118l-58-57c-11-12-11-27 5-31l247-50c21-5 46 11 37 44l-58 227c-2 9-16 22-29 13l-65-60c-89 91-214 148-352 148z m409-508c-16 0-19-10-19-18-10-199-176-358-377-358-108 0-205 45-274 118l59 57c10 12 10 27-5 31l-248 50c-21 5-46-11-37-44l58-227c2-9 16-22 30-13l64 60c89-91 214-148 353-148 265 0 482 210 493 473 1 18-13 19-13 19l-84 0z" horiz-adv-x="1000" />
<glyph glyph-name="spin4" unicode="&#xe834;" d="M498 850c-114 0-228-39-320-116l0 0c173 140 428 130 588-31 134-134 164-332 89-495-10-29-5-50 12-68 21-20 61-23 84 0 3 3 12 15 15 24 71 180 33 393-112 539-99 98-228 147-356 147z m-409-274c-14 0-29-5-39-16-3-3-13-15-15-24-71-180-34-393 112-539 185-185 479-195 676-31l0 0c-173-140-428-130-589 31-134 134-163 333-89 495 11 29 6 50-12 68-11 11-27 17-44 16z" horiz-adv-x="1001" />
<glyph glyph-name="spin5" unicode="&#xe838;" d="M462 850c-6 0-11-5-11-11l0-183 0 0c0-6 5-11 11-11l69 0c1 0 1 0 1 0 7 0 12 5 12 11l0 183 0 0c0 6-5 11-12 11l-69 0c0 0 0 0-1 0z m250-47c-4 1-8-2-10-5l-91-158 0 0c-4-6-2-13 4-16l60-34c0-1 0-1 0-1 6-3 13-1 16 4l91 158c3 6 2 13-4 16l-61 35c-1 1-3 1-5 1z m-428-2c-2 0-4-1-6-2l-61-35c-5-3-7-10-4-16l91-157c0 0 0 0 0 0 3-6 10-8 16-5l61 35c5 4 7 11 4 16l-91 157c0 1 0 1 0 1-2 4-6 6-10 6z m620-163c-2 0-4 0-6-1l-157-91c0 0 0 0 0 0-6-3-8-10-5-16l35-61c4-5 11-7 16-4l157 91c1 0 1 0 1 0 6 3 7 11 4 16l-35 61c-2 4-6 6-10 5z m-810-4c-5 0-9-2-11-6l-35-61c-3-5-1-12 4-15l158-91 0 0c6-4 13-2 16 4l35 60c0 0 0 0 0 0 3 6 1 13-4 16l-158 91c-2 1-4 2-5 2z m712-235l0 0c-6 0-11-5-11-11l0-69c0-1 0-1 0-1 0-7 5-12 11-12l183 0 0 0c6 0 11 5 11 12l0 69c0 0 0 0 0 1 0 6-5 11-11 11l-183 0z m-794-5l0 0c-7 0-12-5-12-12l0-69c0 0 0 0 0-1 0-6 5-11 12-11l182 0 0 0c6 0 11 5 11 11l0 69c0 1 0 1 0 1 0 7-5 12-11 12l-182 0z m772-153c-4 0-8-2-10-6l-34-60c-1 0-1 0-1 0-3-6-1-13 4-16l158-91c6-3 13-1 16 4l35 61c3 5 1 12-4 15l-158 92 0 0c-2 1-4 1-6 1z m-566-5c-1 0-3 0-5-1l-157-91c0 0-1 0-1 0-5-3-7-10-4-16l35-61c3-5 10-7 16-4l157 91c0 0 0 0 0 0 6 3 8 10 5 16l-35 61c-3 3-7 6-11 5z m468-121c-2 0-4 0-6-1l-61-35c-5-4-7-11-4-16l91-157c0-1 0-1 0-1 3-6 11-7 16-4l61 35c5 3 7 10 4 16l-91 157c0 0 0 0 0 0-2 4-6 6-10 6z m-367-2c-4 0-8-2-10-6l-91-158c-3-6-1-13 4-16l61-35c5-3 12-1 15 4l92 158 0 0c3 6 1 13-5 16l-60 35c0 0 0 0 0 0-2 1-4 1-6 2z m149-58c-7 0-12-5-12-11l0-183 0 0c0-6 5-11 12-11l69 0c0 0 0 0 1 0 6 0 11 5 11 11l0 183 0 0c0 6-5 11-11 11l-69 0c-1 0-1 0-1 0z" horiz-adv-x="1000" />
<glyph glyph-name="spin6" unicode="&#xe839;" d="M855 9c-189-190-520-172-705 13-190 190-200 494-28 695 11 13 21 26 35 34 36 23 85 18 117-13 30-31 35-76 16-112-5-9-9-15-16-22-140-151-145-379-8-516 153-153 407-121 542 34 106 122 142 297 77 451-83 198-305 291-510 222l0 1c236 82 492-24 588-252 71-167 37-355-72-493-11-15-23-29-36-42z" horiz-adv-x="1000" />
<glyph glyph-name="check-empty" unicode="&#xf096;" d="M625 707h-464q-37 0-63-26t-27-63v-464q0-37 27-63t63-27h464q37 0 63 27t26 63v464q0 37-26 63t-63 26z m161-89v-464q0-67-47-114t-114-47h-464q-67 0-114 47t-47 114v464q0 66 47 113t114 48h464q66 0 114-48t47-113z" horiz-adv-x="785.7" />
<glyph glyph-name="bookmark-empty" unicode="&#xf097;" d="M643 707h-572v-693l237 227 49 47 50-47 236-227v693z m7 72q12 0 24-5 19-8 29-23t11-35v-719q0-19-11-35t-29-23q-10-4-24-4-27 0-47 18l-246 236-246-236q-20-19-46-19-13 0-25 5-18 7-29 23t-11 35v719q0 19 11 35t29 23q12 5 25 5h585z" horiz-adv-x="714.3" />
<glyph glyph-name="list-bullet" unicode="&#xf0ca;" d="M214 64q0-44-31-76t-76-31-76 31-31 76 31 76 76 31 76-31 31-76z m0 286q0-45-31-76t-76-31-76 31-31 76 31 76 76 31 76-31 31-76z m786-232v-107q0-7-5-13t-13-5h-678q-8 0-13 5t-5 13v107q0 7 5 12t13 6h678q7 0 13-6t5-12z m-786 518q0-45-31-76t-76-31-76 31-31 76 31 76 76 31 76-31 31-76z m786-232v-108q0-7-5-12t-13-5h-678q-8 0-13 5t-5 12v108q0 7 5 12t13 5h678q7 0 13-5t5-12z m0 285v-107q0-7-5-12t-13-6h-678q-8 0-13 6t-5 12v107q0 8 5 13t13 5h678q7 0 13-5t5-13z" horiz-adv-x="1000" />
<glyph glyph-name="list-numbered" unicode="&#xf0cb;" d="M213-54q0-45-31-70t-75-26q-60 0-96 37l31 49q28-25 60-25 16 0 28 8t12 24q0 35-59 31l-14 31q4 6 18 24t24 31 20 21v1q-9 0-27-1t-27 0v-30h-59v85h186v-49l-53-65q28-6 45-27t17-49z m1 350v-89h-202q-4 20-4 30 0 29 14 52t31 38 37 27 31 24 14 25q0 14-9 22t-22 7q-25 0-45-32l-47 33q13 28 40 44t59 16q40 0 68-23t28-63q0-28-19-51t-42-36-42-28-20-30h71v34h59z m786-178v-107q0-7-5-13t-13-5h-678q-8 0-13 5t-5 13v107q0 8 5 13t13 5h678q7 0 13-6t5-12z m-786 502v-56h-187v56h60q0 22 0 67t1 68v7h-1q-5-10-28-30l-40 42 76 71h59v-225h60z m786-216v-108q0-7-5-12t-13-5h-678q-8 0-13 5t-5 12v108q0 7 5 12t13 5h678q7 0 13-5t5-12z m0 285v-107q0-7-5-12t-13-6h-678q-8 0-13 6t-5 12v107q0 8 5 13t13 5h678q7 0 13-5t5-13z" horiz-adv-x="1000" />
<glyph glyph-name="plus-squared" unicode="&#xf0fe;" d="M714 314v72q0 14-10 25t-25 10h-179v179q0 15-11 25t-25 11h-71q-15 0-25-11t-11-25v-179h-178q-15 0-25-10t-11-25v-72q0-14 11-25t25-10h178v-179q0-14 11-25t25-11h71q15 0 25 11t11 25v179h179q14 0 25 10t10 25z m143 304v-536q0-66-47-113t-114-48h-535q-67 0-114 48t-47 113v536q0 66 47 113t114 48h535q67 0 114-48t47-113z" horiz-adv-x="857.1" />
<glyph glyph-name="unlink" unicode="&#xf127;" d="M245 141l-143-143q-6-5-13-5t-12 5q-6 6-6 13t6 13l142 142q6 5 13 5t13-5q5-5 5-12t-5-13z m94-23v-179q0-8-5-13t-13-5-12 5-5 13v179q0 8 5 13t12 5 13-5 5-13z m-125 125q0-8-5-13t-13-5h-178q-8 0-13 5t-5 13 5 13 13 5h178q8 0 13-5t5-13z m706-72q0-66-48-113l-82-81q-46-47-113-47-68 0-114 48l-186 187q-12 12-24 31l134 10 152-153q15-15 38-15t38 15l82 81q16 16 16 37 0 23-16 38l-153 154 10 133q20-11 31-23l188-188q47-48 47-114z m-345 404l-133-10-152 153q-16 16-38 16-22 0-38-15l-82-82q-16-15-16-37 0-22 16-38l153-153-10-134q-20 12-32 24l-187 187q-47 48-47 114 0 67 47 113l82 82q47 46 114 46 67 0 114-47l186-187q12-12 23-32z m354-46q0-8-5-13t-13-5h-179q-8 0-13 5t-5 13 5 12 13 5h179q8 0 13-5t5-12z m-304 303v-178q0-8-5-13t-13-5-13 5-5 13v178q0 8 5 13t13 5 13-5 5-13z m227-84l-143-143q-6-5-13-5t-12 5q-5 6-5 13t5 13l143 143q5 5 12 5t13-5q5-6 5-13t-5-13z" horiz-adv-x="928.6" />
<glyph glyph-name="info" unicode="&#xf129;" d="M357 100v-71q0-15-10-25t-26-11h-285q-15 0-25 11t-11 25v71q0 15 11 25t25 11h35v214h-35q-15 0-25 11t-11 25v71q0 15 11 25t25 11h214q15 0 25-11t11-25v-321h35q15 0 26-11t10-25z m-71 643v-107q0-15-11-25t-25-11h-143q-14 0-25 11t-11 25v107q0 14 11 25t25 11h143q15 0 25-11t11-25z" horiz-adv-x="357.1" />
<glyph glyph-name="mic" unicode="&#xf130;" d="M643 457v-71q0-124-82-215t-204-104v-74h143q15 0 25-11t11-25-11-25-25-11h-357q-15 0-25 11t-11 25 11 25 25 11h143v74q-121 13-204 104t-82 215v71q0 15 11 25t25 11 25-11 10-25v-71q0-103 74-177t176-73 177 73 73 177v71q0 15 11 25t25 11 25-11 11-25z m-143 214v-285q0-74-52-126t-127-53-126 53-52 126v285q0 74 52 127t126 52 127-52 52-127z" horiz-adv-x="642.9" />
<glyph glyph-name="play-circled" unicode="&#xf144;" d="M429 779q116 0 215-58t156-156 57-215-57-215-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58z m214-460q18 10 18 31t-18 31l-304 178q-17 11-35 1-18-11-18-31v-358q0-20 18-31 9-4 17-4 10 0 18 5z" horiz-adv-x="857.1" />
<glyph glyph-name="minus-squared" unicode="&#xf146;" d="M714 314v72q0 14-10 25t-25 10h-500q-15 0-25-10t-11-25v-72q0-14 11-25t25-10h500q14 0 25 10t10 25z m143 304v-536q0-66-47-113t-114-48h-535q-67 0-114 48t-47 113v536q0 66 47 113t114 48h535q67 0 114-48t47-113z" horiz-adv-x="857.1" />
<glyph glyph-name="ok-squared" unicode="&#xf14a;" d="M382 125l343 343q11 10 11 25t-11 25l-57 57q-11 11-25 11t-25-11l-261-261-118 118q-10 11-25 11t-25-11l-57-57q-10-10-10-25t10-25l200-200q11-10 25-10t25 10z m475 493v-536q0-66-47-113t-114-48h-535q-67 0-114 48t-47 113v536q0 66 47 113t114 48h535q67 0 114-48t47-113z" horiz-adv-x="857.1" />
<glyph glyph-name="expand" unicode="&#xf150;" d="M639 473q10-19-3-36l-178-250q-11-16-29-16t-29 16l-179 250q-13 17-3 36 10 20 32 20h357q23 0 32-20z m75-391v536q0 7-5 12t-13 6h-535q-7 0-13-6t-5-12v-536q0-7 5-12t13-6h535q8 0 13 6t5 12z m143 536v-536q0-66-47-113t-114-48h-535q-67 0-114 48t-47 113v536q0 66 47 113t114 48h535q67 0 114-48t47-113z" horiz-adv-x="857.1" />
<glyph glyph-name="collapse" unicode="&#xf151;" d="M639 227q-9-20-32-20h-357q-22 0-32 20-10 19 3 37l179 250q10 15 29 15t29-15l178-250q13-18 3-37z m75-145v536q0 7-5 12t-13 6h-535q-7 0-13-6t-5-12v-536q0-7 5-12t13-6h535q8 0 13 6t5 12z m143 536v-536q0-66-47-113t-114-48h-535q-67 0-114 48t-47 113v536q0 66 47 113t114 48h535q67 0 114-48t47-113z" horiz-adv-x="857.1" />
<glyph glyph-name="expand-right" unicode="&#xf152;" d="M607 350q0-18-15-29l-250-179q-17-12-37-2-19 9-19 31v358q0 22 19 31 20 10 37-2l250-179q15-11 15-29z m107-268v536q0 8-5 13t-13 5h-535q-8 0-13-5t-5-13v-536q0-8 5-13t13-5h535q8 0 13 5t5 13z m143 536v-536q0-66-47-113t-114-48h-535q-67 0-114 48t-47 113v536q0 66 47 113t114 48h535q67 0 114-48t47-113z" horiz-adv-x="857.1" />
<glyph glyph-name="youtube" unicode="&#xf167;" d="M542 156v-118q0-37-22-37-13 0-25 12v168q12 12 25 12 22 0 22-37z m189-1v-25h-51v25q0 38 25 38t26-38z m-540 122h60v52h-174v-52h59v-318h55v318z m161-318h50v276h-50v-211q-17-23-32-23-10 0-11 11-1 2-1 20v203h-50v-218q0-28 5-41 7-21 32-21 27 0 57 34v-30z m240 83v110q0 41-5 55-10 31-40 31-28 0-52-30v121h-50v-370h50v27q25-31 52-31 30 0 40 31 5 15 5 56z m188 6v7h-51q0-29-1-34-4-20-22-20-26 0-26 38v49h100v57q0 44-15 65-22 28-59 28-38 0-60-28-15-21-15-65v-96q0-44 16-65 22-29 60-29 40 0 60 30 10 15 12 30 1 5 1 33z m-339 509v117q0 39-24 39t-24-39v-117q0-39 24-39t24 39z m401-419q0-131-14-195-8-33-33-56t-57-25q-102-12-309-12t-310 12q-32 3-57 25t-32 56q-15 62-15 195 0 131 15 195 7 33 32 56t57 26q103 11 310 11t309-11q33-4 58-26t32-56q14-62 14-195z m-557 712h57l-67-223v-151h-56v151q-8 42-34 119-21 57-37 104h60l39-147z m207-186v-97q0-46-16-66-21-29-59-29-37 0-59 29-15 21-15 66v97q0 45 15 66 22 28 59 28 38 0 59-28 16-21 16-66z m187 91v-279h-51v31q-30-35-58-35-25 0-33 21-4 13-4 42v220h51v-205q0-19 0-20 2-12 12-12 15 0 32 24v213h51z" horiz-adv-x="857.1" />
<glyph glyph-name="collapse-left" unicode="&#xf191;" d="M571 529v-358q0-14-10-25t-25-10q-11 0-21 6l-250 179q-15 11-15 29t15 29l250 179q10 6 21 6 14 0 25-10t10-25z m143-447v536q0 7-5 12t-13 6h-535q-7 0-13-6t-5-12v-536q0-7 5-12t13-6h535q8 0 13 6t5 12z m143 536v-536q0-66-47-113t-114-48h-535q-67 0-114 48t-47 113v536q0 66 47 113t114 48h535q67 0 114-48t47-113z" horiz-adv-x="857.1" />
<glyph glyph-name="spotify-1" unicode="&#xf1bc;" d="M629 175q0 18-17 28-107 64-249 64-74 0-160-19-24-5-24-29 0-11 8-19t20-8q2 0 20 5 74 15 136 15 126 0 221-58 11-6 19-6 10 0 18 8t8 19z m54 120q0 22-20 34-132 79-306 79-85 0-169-24-27-7-27-36 0-14 10-23t24-10q4 0 20 4 69 19 141 19 155 0 272-69 13-8 21-8 14 0 24 10t10 24z m60 138q0 26-23 39-70 41-163 62t-191 21q-114 0-204-26-12-4-21-15t-9-27q0-17 12-29t28-11q7 0 23 4 74 21 171 21 89 0 173-19t141-53q12-7 23-7 16 0 28 11t12 29z m114-83q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z" horiz-adv-x="857.1" />
<glyph glyph-name="soundcloud-1" unicode="&#xf1be;" d="M438 84l8 135-8 292q-1 5-5 9t-9 4q-5 0-9-4t-4-9l-7-292 7-135q1-5 5-9t8-3q12 0 14 12z m165 17l6 117-7 327q0 9-7 14-5 3-9 3t-9-3q-7-5-7-14l-1-3-5-323q0-1 6-132v0q0-6 3-10 5-6 13-6 6 0 11 5 5 4 5 11z m-583 189l11-71-11-70q-2-5-5-5t-5 5l-10 70 10 71q1 5 5 5t5-5z m48 44l14-115-14-113q-2-5-6-5-5 0-5 5l-13 113 13 115q0 5 5 5 4 0 6-5z m156-252z m-105 274l14-137-14-132q0-6-6-6-6 0-7 6l-12 132 12 137q1 6 7 6 6 0 6-6z m52 4l13-141-13-136q-1-8-7-8-8 0-8 8l-11 136 11 141q0 7 8 7 6 0 7-7z m53-11l12-130-12-137q-1-9-9-9-3 0-6 2t-2 7l-12 137 12 130q0 4 2 6t6 3q8 0 9-9z m214-265z m-162 347l12-212-12-137q0-4-3-7t-6-3q-9 0-10 10l-10 137 10 212q1 10 10 10 4 0 6-3t3-7z m53 48l10-261-10-136q0-5-3-8t-8-3q-10 0-11 11l-9 136 9 261q1 11 11 11 5 0 8-4t3-7z m54 22l10-282-10-135q-1-12-12-12-10 0-12 12l-9 135 9 282q0 5 4 9t8 4q5 0 9-4t3-9z m219-414z m-110 417l8-285-8-133q0-6-5-10t-9-4-10 3-4 11l-8 133 8 285q0 6 4 10t10 3 9-3 5-10z m55-11l8-275-8-131q0-6-5-11t-10-4-11 4-5 11l-6 131 6 275q1 7 5 11t11 5 10-5 5-11z m118-275l-8-129q0-7-5-12t-12-5-12 5-6 12l-3 64-3 65 6 355v2q1 8 7 13 5 4 11 4 5 0 8-3 8-4 9-14z m621 11q0-65-47-111t-111-46h-439q-7 1-12 6t-5 12v502q0 13 16 18 47 19 101 19 108 0 188-73t89-181q30 12 62 12 65 0 111-46t47-112z" horiz-adv-x="1285.7" />
<glyph glyph-name="paper-plane" unicode="&#xf1d8;" d="M984 844q19-13 15-36l-142-857q-3-16-18-25-8-5-18-5-6 0-13 3l-253 104-135-165q-10-13-27-13-7 0-12 2-11 4-17 13t-7 21v195l482 590-596-516-221 91q-20 8-22 30-1 23 18 33l928 536q9 5 18 5 11 0 20-6z" horiz-adv-x="1000" />
<glyph glyph-name="trash" unicode="&#xf1f8;" d="M286 82v393q0 8-5 13t-13 5h-36q-8 0-13-5t-5-13v-393q0-8 5-13t13-5h36q8 0 13 5t5 13z m143 0v393q0 8-5 13t-13 5h-36q-8 0-13-5t-5-13v-393q0-8 5-13t13-5h36q8 0 13 5t5 13z m142 0v393q0 8-5 13t-12 5h-36q-8 0-13-5t-5-13v-393q0-8 5-13t13-5h36q7 0 12 5t5 13z m-303 554h250l-27 65q-4 5-9 6h-177q-6-1-10-6z m518-18v-36q0-8-5-13t-13-5h-54v-529q0-46-26-80t-63-34h-464q-37 0-63 33t-27 79v531h-53q-8 0-13 5t-5 13v36q0 8 5 13t13 5h172l39 93q9 21 31 35t44 15h178q23 0 44-15t30-35l39-93h173q8 0 13-5t5-13z" horiz-adv-x="785.7" />
<glyph glyph-name="toggle-off" unicode="&#xf204;" d="M643 350q0 58-23 111t-61 91-91 61-111 23-111-23-91-61-61-91-23-111 23-111 61-91 91-61 111-23 111 23 91 61 61 91 23 111z m428 0q0 58-22 111t-61 91-91 61-111 23h-216q67-50 106-125t38-161-38-161-106-125h216q58 0 111 23t91 61 61 91 22 111z m72 0q0-72-29-139t-76-113-114-77-138-28h-429q-72 0-138 28t-114 77-76 113-29 139 29 139 76 114 114 76 138 28h429q72 0 138-28t114-76 76-114 29-139z" horiz-adv-x="1142.9" />
<glyph glyph-name="toggle-on" unicode="&#xf205;" d="M0 350q0 73 29 139t76 114 114 76 138 28h429q72 0 138-28t114-76 76-114 29-139-29-139-76-113-114-77-138-28h-429q-72 0-138 28t-114 77-76 113-29 139z m786-286q58 0 111 23t91 61 61 91 22 111-22 111-61 91-91 61-111 23-111-23-91-61-61-91-23-111 23-111 61-91 91-61 111-23z" horiz-adv-x="1142.9" />
<glyph glyph-name="facebook-official" unicode="&#xf230;" d="M810 779q19 0 33-14t14-34v-762q0-20-14-34t-33-14h-218v333h111l16 129h-127v83q0 31 13 46t51 16l68 1v115q-35 5-100 5-75 0-121-44t-45-127v-95h-112v-129h112v-333h-411q-19 0-33 14t-14 34v762q0 20 14 34t33 14h763z" horiz-adv-x="857.1" />
<glyph glyph-name="pause-circle" unicode="&#xf28b;" d="M393 189v322q0 8-5 13t-13 5h-143q-8 0-13-5t-5-13v-322q0-7 5-12t13-6h143q8 0 13 6t5 12z m250 0v322q0 8-5 13t-13 5h-143q-8 0-13-5t-5-13v-322q0-7 5-12t13-6h143q8 0 13 6t5 12z m214 161q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z" horiz-adv-x="857.1" />
<glyph glyph-name="stop-circle" unicode="&#xf28d;" d="M607 189v322q0 8-5 13t-13 5h-321q-8 0-13-5t-5-13v-322q0-7 5-12t13-6h321q8 0 13 6t5 12z m250 161q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z" horiz-adv-x="857.1" />
</font>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
-534
View File
@@ -1,534 +0,0 @@
:root {
--color-primary: #ca3e47;
--color-secondary: #f1d450;
--color-dark: #15242d;
--color-light: #f6f6f6;
--color-1grey: #313131;
--color-2grey: #414141;
--color-3grey: #525252;
}
@import url('https://fonts.googleapis.com/css2?family=Lato&family=Roboto:wght@400;500&display=swap');
body {
background-color: var(--color-1grey);
color: var(--color-light);
margin: 0rem;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-family: 'Lato', sans-serif;
line-height: 1.3rem;
}
.hidden {
display: none !important;
}
::-webkit-scrollbar {
width: 0px;
background: transparent;
}
#offline {
position: fixed;
top: 0;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
z-index: 5;
background: var(--color-secondary);
color: var(--color-dark);
font-weight: bold;
padding: 4px 8px;
transition: top .2s ease-in-out;
}
#offline.online {
top: -2rem;
}
#wrapper {
height: 100vh;
max-width: 900px;
background: var(--color-2grey);
box-sizing: border-box;
position: relative;
left: 0;
right: 0;
margin: auto;
user-select: none;
overflow: hidden;
}
#player {
position: relative;
overflow: hidden;
}
#player>.current {
width: 100%;
height: 3.7rem;
background: var(--color-primary);
transition: background .3s ease-in-out;
box-sizing: border-box;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
border-bottom: solid white 2px;
transition-duration: .5s;
transition-property: height,background;
transition-timing-function: ease-in-out;
}
#player.off>.current {
background: var(--color-3grey);
height: 0;
}
#player>.status {
position: absolute;
top: 48%;
padding: .5rem;
right: 0;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
font-size: 1.5rem;
margin-right: 0.3rem;
}
#nav {
display: flex;
position: fixed;
bottom: 0;
left: 0;
right: 0;
max-width: 900px;
width: 100%;
margin: auto;
border-top: 1px solid white;
}
#nav>.button {
background: var(--color-3grey);
width: 100%;
color: var(--color-light);
padding: 1rem .5rem;
text-align: center;
font-weight: bold;
cursor: pointer;
}
#nav>.button.active {
background-color: var(--color-primary);
cursor: default;
}
#nav>.button:not(.active):hover {
background-color: #93474C;
}
@media only screen and (max-width: 630px) {
#nav>.button>.label {
display: none;
}
}
.albumart {
background-size: cover;
background-color: white;
}
a, a:visited {
color: var(--color-light)
}
a:hover {
color: var(--color-primary)
}
/* Track list */
.list {
list-style: none;
margin: 0px;
padding: 0px;
overflow: auto;
overflow-x: hidden;
background: inherit;
}
.list>.track, .current>.track {
background: inherit;
padding: .5rem;
white-space: nowrap;
text-overflow: ellipsis;
position: relative;
cursor: pointer;
overflow: hidden;
transition: border .1s ease-in-out;
}
.list>.track:hover {
border-left: 4px solid white;
}
.list>.track:nth-child(odd) {
background: var(--color-3grey);
padding: .5rem;
}
.track>.icons {
position: absolute;
right: 0;
padding: 1.3rem 1rem;
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
font-size: 1.2rem;
text-shadow: 0px 0px 8px black;
}
.track>.icons>div {
display: none;
font-size: 1rem;
}
.track>.albumart {
width: 2.6rem;
height: 2.6rem;
float: left;
margin-right: .5rem;
}
.track>.artist {
color: #bfbfbf;
}
/* Panes */
#panes {
/* height: calc(100% - (3.6rem + 3.4rem)); */
height: 100%;
overflow-x: hidden;
background: inherit;
padding-bottom: 7rem;
box-sizing: border-box;
}
.pane {
display: none;
background: inherit;
}
.pane.active {
display: inherit;
}
/* History */
.pane.history>#previous>.track>.icons>.played {
display: inherit;
}
/* Search */
.pane.search>.query {
position: relative;
padding: .5rem;
border-bottom: 1px solid var(--color-light);
}
.pane.search>.query>.input {
border: none;
border-radius: 0px;
width: 100%;
font-size: 1.5rem;
background: var(--color-1grey);
color: var(--color-light);
padding: 5px 12px;
height: 2.5rem;
}
.pane.search>.query>.input:focus {
outline: none;
}
.pane.search>.query>.icons {
background: var(--color-1grey);
padding: .5rem;
padding-right: 18px;
text-align: right;
margin-top: 8px;
overflow: hidden;
}
.pane.search>.query>.icons>i {
background: var(--color-light)08;
padding: 12px 5px;
margin: 1px 2px;
cursor: pointer;
}
.pane.search>.query>.icons>i:hover {
background: #93474C;
}
.pane.search>.query>.icons>i.active {
background: var(--color-primary);
}
.icons>i.icon-search {
background: var(--color-primary) !important;
margin-left: .5rem !important;
padding-left: 18px !important;
padding-right: 18px !important;
}
.pane.search>.query>.icons>.info {
float: left;
color: #bfbfbf;
}
/* Preview */
.pane.preview {
padding: 1rem;
}
.pane.preview>.albumart {
float: left;
margin: 0.5rem;
margin-right: 1rem;
height: 6rem;
width: 6rem;
}
.pane.preview>.title {
font-size: 1.3rem;
margin: 8px 0px;
}
.pane.preview>.buttons {
clear: both;
font-size: 2rem;
padding: .5rem 0;
display: flex;
}
.pane.preview>.buttons>i {
width: 100%;
text-align: center;
padding: .5rem 0;
margin: 2px;
cursor: pointer;
}
.pane.preview>.buttons.disabled>i.icon-flag, .pane.preview>.buttons.disabled>i.icon-thumbs-up, .pane.preview>.buttons.disabled>i.icon-thumbs-down {
background: var(--color-3grey);
color: var(--color-2grey);
cursor: default;
}
.pane.preview>.buttons>i:hover {
background: var(--color-1grey);
}
.pane.preview>.buttons>i.clicked {
background: var(--color-primary);
}
.pane.preview>.params {
user-select: text;
width: 100%;
border-top: solid white 1px;
}
.pane.preview>.params>thead {
text-align: left;
}
.pane.preview>.params>tbody>tr.highlight {
font-weight: bold;
height: 2rem;
vertical-align: bottom;
text-decoration: underline;
}
.pane.preview>.params>tbody>tr.highlight::before {
background: white;
width: 100%;
}
/* Settings */
.pane.settings {
padding: 1rem;
}
#profile {
width: 100%;
padding: 1rem;
box-sizing: border-box;
text-align: center;
border-bottom: 1px solid white;
}
#profilePic {
height: 6rem;
width: 6rem;
background-size: cover;
display: inline-block;
border-radius: 6rem;
background-color: var(--color-light);
}
#username {
clear: both;
display: block;
font-size: 1.5rem;
}
.pane.settings>.params {
width: 100%;
border-bottom: 1px solid white;
}
.pane.settings>.params>thead {
text-align: left;
}
.pane.settings>.actions {
width: 100%;
text-align: center;
padding: 1rem 0;
border-bottom: 1px solid white;
}
.pane.settings>.actions>div {
background: var(--color-primary);
color: var(--color-light);
font-weight: bold;
padding: .5rem;
margin: 3px 0;
cursor: pointer;
}
.pane.settings>.actions>div:hover {
background: #93474C;
}
.pane.settings>.about {
width: 100%;
padding: 1rem 0;
}
.pane.settings>.about>.section {
background: var(--color-3grey);
padding: .3rem;
margin: 3px 0;
}
.pane.settings>.about>.section>.value {
float: right;
}
/* Chart */
.chart>.list {
counter-reset: number;
}
.chart>.list>.track {
counter-increment: number;
}
.chart>.list>.track>.icons>.votes {
display: inherit;
}
.chart>.list>.track>.albumart {
margin-left: 1.9rem;
}
.chart>.list>.track::before {
content: counter(number)" ";
position: absolute;
left: .9rem;
top: 1.25rem;
font-size: 1rem;
}
.chart>.list>.track:nth-child(n+10)::before {
left: .6rem;
}
.chart>.list>.track:nth-child(n+100)::before {
left: .4rem;
}
/* Modals */
#modals {
position: fixed;
z-index: 10;
top: 0;
left: 0;
right: 0;
}
#modals>.modal {
position: relative;
background: var(--color-secondary);
max-width: 800px;
box-sizing: border-box;
margin: auto;
margin-top: 1rem;
padding: 1rem;
color: var(--color-1grey);
-webkit-box-shadow: 0px 0px 60px -8px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0px 0px 60px -8px rgba(0, 0, 0, 0.75);
box-shadow: 0px 0px 60px -8px rgba(0, 0, 0, 0.75);
animation: .2s fade;
}
@keyframes fade {
0% {
opacity: 0;
}
100% {
transform: 1;
}
}
#modals>.modal>i.icon-trash {
position: absolute;
top: 0;
right: 0;
padding: 0.5rem;
font-size: 1.4rem;
color: #ffffff99;
cursor: pointer;
}
#modals>.modal>h1 {
margin-top: 0px;
}
#modals>.modal>.buttons {
text-align: right;
margin-top: .5rem;
display: flex;
}
#modals>.modal>.buttons>i {
background: #ffffff99;
width: 100%;
margin: 0 .5rem;
text-align: center;
padding: .5rem;
cursor: pointer;
}
/* Admin */
.pane.admin {
padding: .5rem;
}
-216
View File
@@ -1,216 +0,0 @@
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#ca3e47">
<meta name="description" content="Radio Rolnik Nysa">
<title>radio-rolnik</title>
<link rel="stylesheet" href="/index.css">
<link rel="stylesheet" href="/tree.min.css">
<link rel="stylesheet" href="/fontello.css">
<script src="/index.js"></script>
<script src="/socket.io/socket.io.js"></script>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="/media/icon_192.png">
<link rel="manifest" href="/manifest.json">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-150749288-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-150749288-3', { 'page_path': location.pathname + location.hash });
</script>
<script>
window.fbAsyncInit = function () {
FB.init({
appId: '299948451430584',
cookie: true,
xfbml: true,
version: 'v8.0'
});
FB.AppEvents.logPageView();
};
(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) { return; }
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</head>
<body>
<div id="offline" class=''>Offline <i class="icon-unlink"></i></div>
<div id="modals">
</div>
<div id="wrapper">
<div id="player" class="off">
<div class="current">
<div class="track">
<div class="albumart"></div>
<span class="title">-</span>
<br>
<span class="artist">-</span>
</div>
</div>
<div class="status">
<i class="volume icon-stop-circle"></i>
</div>
</div>
<div id="panes">
<div class="pane history active">
<div id="previous" class="list">
</div>
</div>
<div class="pane search">
<div class="query">
<input type="search" class="input" placeholder="Wyszukaj" autofocus>
<div class="icons">
<span class="info"></span>
<i class="icon-youtube"></i>
<i class="icon-soundcloud-1"></i>
<i class="icon-spotify-1 active"></i>
<i class="icon-search"></i>
</div>
</div>
<div id="results" class="list">
</div>
</div>
<div class="pane chart">
<div class="list"></div>
</div>
<div class="pane preview">
<div class="albumart"></div>
<div class="title">-</div>
<div class="artists">-</div>
<div class="buttons disabled">
<i class="icon-thumbs-up"></i>
<i class="icon-thumbs-down"></i>
<i class="icon-export"></i>
<i class="icon-music"></i>
<i class="icon-flag"></i>
</div>
<table class="params">
</table>
</div>
<div class="pane settings">
<div id="profile">
<div id="profilePic"></div>
<span id="username">~</span>
</div>
<table class="params"></table>
<div class="actions">
<div data-target='fb'>
Zaloguj się przez Facebook
<!-- <fb:login-button class="fb_button" length="long" size="large" scope="public_profile,email"
onlogin="auth.fbReq();" class="hidden">
<span style="margin-right: 10px;">Zaloguj się przez Facebook</span>
</fb:login-button> -->
<!-- <div class="fb-login-button" data-size="medium" data-button-type="login_with" data-layout="default" data-auto-logout-link="false" data-use-continue-as="true" data-width="" onlogin="auth.fbReq();"></div> -->
</div>
<div data-target='autologin'> Automatyczne logowanie </div>
<div data-target='forget'> Zapomnij mnie </div>
</div>
<div class="about">
<div class="section">Regulamin:
<div class="value"><a target="_blank" href="/regulamin.html">Regulamin</a></div>
</div>
<div class="section">Facebook
<div class="value"><a target="_blank"
href="https://www.facebook.com/Radio-Rolnik-Nysa-116248583541852">Radio Rolnik Nysa</a></div>
</div>
<div class="section">E-Mail
<div class="value"><a target="_blank" href="mailto:radio-rolnik@mtps.pl">radio-rolnik@mtps.pl</a></div>
</div>
<div class="section">Wersja
<div class="value">v1.3.0</div>
</div>
</div>
</div>
<div class="pane admin">
<div class="search">
<div class="controls">
<input type="text" id="text">
<input type="date" id="datein">
<input type="date" id="dateout">
<input type="submit" value="search" onclick="Admin.send();">
<br>
<label for="search">search</label>
<input type="radio" name='action' id="search" checked>
<label for="get">get</label>
<input type="radio" name='action' id="get">
<br>
<label for="user">user</label>
<input type="checkbox" id="user">
<label for="track">track</label>
<input type="checkbox" id="track">
<label for="vote">vote</label>
<input type="checkbox" id="vote">
</div>
<div class="list">
<div class="element">
<div class="image"></div>
<div class="title"></div>
</div>
</div>
</div>
<div class="preview"></div>
<div class="autoplayer">
<input type="button" value="Spotify Login" onclick="Admin.spotify.login()">
</div>
</div>
</div>
<div id="nav">
<div class="button active" data-target='history'>
<i class="icon-align-left"></i>
<span class="label">Historia</span>
</div>
<div class="button" data-target='search'>
<i class="icon-search"></i>
<span class="label">Wyszukaj</span>
</div>
<div class="button" data-target='chart'>
<i class="icon-list-numbered"></i>
<span class="label">Top</span></div>
<div class="button" data-target='preview'>
<i class="icon-info"></i>
<span class="label">Utwór</span></div>
<div class="button" data-target='settings'>
<i class="icon-cog-alt"></i>
<span class="label">Ustawienia</span></div>
<div class="button hidden" data-target='admin'>
<i class="icon-flag"></i>
<span class="label">Admin</span></div>
</div>
</div>
</body>
</html>
-988
View File
@@ -1,988 +0,0 @@
class Storage {
static get Local() {
return {
get(key) {
return JSON.parse(localStorage.getItem(key))
},
set(key, value) {
value = JSON.stringify(value)
localStorage.setItem(key, value)
return value
}
}
}
static get Session() {
return {
get(key) {
return JSON.parse(sessionStorage.getItem(key))
},
set(key, value) {
value = JSON.stringify(value)
sessionStorage.setItem(key, value)
return value
}
}
}
static get Cookie() {
return {
get(key) {
var name = key + "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return undefined;
},
set(key, value, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
var expires = "expires=" + d.toUTCString();
document.cookie = key + "=" + value + ";" + expires + ";path=/";
}
}
}
}
class Track {
constructor(tdata) {
this.title = tdata.title
this.artists = tdata.artists
this.album = tdata.album.name
this.albumart = tdata.album.image.url
this.id = tdata.id
this.duration = tdata.duration
this.votes = tdata.votes
this.placement = tdata.placement
this.flag = null
this.explicit = tdata.explicit
this.banned = tdata.banned
this.listen = tdata.listen
this.played = tdata.played ? new Date(tdata.played) : null
}
el(options = {}) {
var el = document.createElement('div'),
track = document.createElement('span'),
artist = document.createElement('span'),
albumart = document.createElement('div'),
icons = document.createElement('div')
track.textContent = this.title
track.classList.add('title')
artist.textContent = this.artists.join(', ')
artist.classList.add('artist')
albumart.classList.add('albumart')
albumart.style.backgroundImage = `url(${this.albumart})`
// icons
var iVotes = document.createElement('div'),
iPlayed = document.createElement('div')
if (this.votes) {
iVotes.classList.add('votes')
iVotes.append(this.votes.total, new Icon('thumbs-up'))
}
if (options.played) {
var played = new Date(options.played)
iPlayed.classList.add('played')
iPlayed.append(`${['Nd', 'Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'Sb'][played.getDay()]}, ${played.getHours()}:${played.getMinutes() < 10 ? '0' : ''}${played.getMinutes()}`)
}
// icons.append(this.votes)
icons.append(iVotes, iPlayed)
icons.classList.add('icons')
el.append(albumart)
el.append(track)
el.append(document.createElement('br'))
el.append(artist)
el.append(icons)
el.addEventListener('click', function () {
Preview.goto(this.track)
})
el.track = this
el.classList.add('track')
el.classList.add(`${this.id}`)
return el
// let clone = this._el.cloneNode(true)
// clone.track = this
// return clone
}
tbody() {
let minutes = parseInt(this.duration / 1e3 / 60),
seconds = (this.duration / 1e3 - (minutes * 60)).toFixed()
return new Table([
['Informacje', true],
['Tytuł', this.title],
['Album', this.album],
['Autorzy', this.artists.join(', ')],
['Czas', `${minutes}:${seconds < 10 ? '0' : ''}${seconds}`],
['Top', true],
['Miejsce', this.placement ? `#${this.placement}` : '~'],
['Punkty', this.votes ? this.votes.total : '~'],
this.votes ? ['Głosy', [new Icon('thumbs-up'), this.votes.up, ' : ', this.votes.down, new Icon('thumbs-down'), `\t${(this.votes.up / (this.votes.up + this.votes.down) * 100).toFixed(1)}%`]] : [],
['Metadane', true],
['ban', this.banned ? new Icon('check') : new Icon('check-empty')],
['explicit', this.explicit ? new Icon('check') : new Icon('check-empty')],
['id', this.id],
])
// function row() {
// var tr = document.createElement('tr')
// for (let value of arguments) {
// let td = document.createElement('td')
// td.textContent = value
// tr.append(td)
// }
// return tr
// }
// var tbody = document.createElement('tbody')
// tbody.append(row('Tytuł', this.title))
// tbody.append(row('Autorzy', this.artists.join(', ')))
// tbody.append(row('Album', this.album))
// let minutes = parseInt(this.duration / 1e3 / 60),
// seconds = (this.duration / 1e3 - (minutes * 60)).toFixed()
// tbody.append(row('Czas', `${minutes}:${seconds < 10 ? '0' : ''}${seconds}`))
// if (this.placement !== null) tbody.append(row('Miejsce', `#${this.placement}`))
// if (this.votes !== null) tbody.append(row('Głosy', this.votes))
// tbody.append(row('id', this.id))
// tbody.append(row('explicit', this.explicit))
// tbody.append(row('banned', this.banned))
// return tbody
}
}
class Modal {
constructor(title, content, actions) {
this.el = document.createElement('div')
this.el.classList.add('modal')
var h1 = document.createElement('h1'),
span = document.createElement('span'),
close = document.createElement('i'),
buttons = document.createElement('div')
h1.textContent = title
span.textContent = content
close.classList.add('icon-trash')
close.modal = this
close.addEventListener('click', function () {
this.modal.destruct()
})
buttons.classList.add('buttons')
for (let id in actions) {
let i = document.createElement('i'),
button = actions[id]
i.classList.add(`icon-${button.icon}`)
i.addEventListener('click', button.click)
i.id = id
i.modal = this
buttons.append(i)
}
this.el.append(h1, span, buttons, close)
this.el.classList.add('show')
this.el.self = this
document.querySelector('#modals').append(this.el)
}
destruct() {
this.el.remove()
}
}
class Table {
constructor(content, headers = []) {
let table = document.createElement('table'),
thead = document.createElement('thead'),
tbody = document.createElement('tbody')
for (let header of headers) {
let th = document.createElement('th')
th.append(header)
thead.append(th)
}
table.append(thead)
for (let row of content) {
let tr = document.createElement('tr')
if (row[row.length - 1] === true) tr.classList.add('highlight')
for (let column of row) {
if (column === true) continue
let td = document.createElement('td')
tr.append(td)
if (column instanceof Array) for (let element of column) td.append(element)
else td.append(column)
}
tbody.append(tr)
}
table.append(tbody)
return table
}
}
class Icon {
constructor(i) {
if (typeof i == 'string') {
this.i = document.createElement('i')
this.i.icon = this
this.i.classList.add(`icon-${i}`)
return this.i
} else {
this.i = i
this.i.icon = this
return this
}
}
change(name) {
this.i.classList.value = ''
this.i.classList.add(`icon-${name}`)
}
}
pretty = {
info(where, text) {
console.log(`%c# ${where}${'\t'.repeat(4 - (((where.length + 2) - (where.length + 2) % 4) / 4))}${text}`, 'color: azure')
}
}
const Tracks = {
_list: {},
_promises: {},
get(tid) {
return new Promise((resolve, reject) => {
if (typeof tid != 'string') reject(new Error(`Incorrect track id`))
if (!this._list[tid]) {
if (!this._promises[tid]) {
this._promises[tid] = []
}
this._promises[tid].push({ resolve: resolve, reject: reject })
Socket.emit('track', { tid: tid })
} else {
resolve(this._list[tid])
}
})
},
set(track) {
this._list[track.id] = track
this.getFlag(track.id)
if (this._promises[track.id]) {
for (let promise of this._promises[track.id]) {
promise.resolve(track)
}
delete this._promises[track.id]
}
},
expireFlags() {
for (let track in this._list) {
track.flag = false
}
},
getFlag(tid) {
if (Auth.successful) Socket.emit('flags', tid)
},
setFlag(tid, flag) {
this._list[tid].flag = flag
if (Preview.track.id == tid) Preview.flags.set(flag)
},
},
Hash = {
current: location.hash.slice(1),
set(target) {
location.hash = target
},
change() {
this.current = location.hash.slice(1)
if (this.current.indexOf(':')) this.current = this.current.split(':')[0]
switch (this.current) {
case 'history':
case 'search':
case 'chart':
case 'settings':
case 'admin':
document.title = `radio-rolnik - ${{
history: 'Historia',
search: 'Wyszukaj',
chart: 'Top',
settings: 'Ustawienia',
admin: 'Administracja'
}[this.current]}`
Panes.switch(this.current)
gtag('event', 'pageview', {
'page_path': location.pathname + location.hash
});
break;
case 'track':
let tid = this.getTrack()
if (tid == 'undefined') break;
Tracks.get(tid).then(track => {
document.title = `radio-rolnik - "${track.title}"`
if (Preview.track.id != track.id) Preview.goto(track)
gtag('event', 'pageview', {
'page_path': location.pathname + location.hash
});
})
break;
}
},
setTrack(tid) {
return `track:${tid}`
},
getTrack() {
let hash = location.hash.slice(1)
if (!hash.startsWith('track:')) return
return hash.slice(6)
}
},
Vote = {
send(track, flag) {
this._emit(track, flag)
},
_emit(track, flag) {
pretty.info('Vote', `'${flag}' on ${track.title}`)
Socket.emit('vote', {
tid: track.id,
flag: flag
})
}
},
Player = {
current: null,
status: 'stopped',
set(tid, status) {
if (!tid && status) {
this._status(status)
return
}
Tracks.get(tid).then(track => {
this.current = track
Elements.player.current.innerHTML = ''
Elements.player.current.append(track.el())
if (!Object.keys(Preview.track).length) Preview.change(track)
this._status(status)
}).catch(err => {
console.error(err)
})
},
_status(status) {
this.status = status
switch (status) {
case 'playing': this._on(); break;
case 'paused': this._pause(); break;
case 'stopped': this._off(); break;
}
},
_off() {
Elements.player.container.classList.add('off')
Elements.player.volume.change('stop-circle')
},
_pause() {
Elements.player.container.classList.add('off')
Elements.player.volume.change('pause-circle')
},
_on() {
Elements.player.container.classList.remove('off')
Elements.player.volume.change('play-circled')
}
},
Panes = {
current: 'history',
switch(id) {
document.querySelector(`.pane.${this.current}`).classList.remove('active')
document.querySelector(`#nav>.button[data-target=${this.current}]`).classList.remove('active')
document.querySelector(`.pane.${id}`).classList.add('active')
document.querySelector(`#nav>.button[data-target=${id}]`).classList.add('active')
this.current = id
}
},
Previous = {
_list: [],
add(previous) {
pretty.info('Previous', `new: ${previous.tid}`)
Tracks.get(previous.tid).then(track => {
Elements.previous.prepend(track.el({ played: previous.played }))
})
},
async refresh(previous) {
pretty.info('Previous', `refresh`)
Elements.previous.innerHTML = ''
this._list = previous
for (let tdata of previous) {
let track = await Tracks.get(tdata.tid)
Elements.previous.prepend(track.el({ played: tdata.played }))
}
}
},
Search = {
list: [],
update(tids, total) {
pretty.info('Search', `${total} results`)
Elements.search.container.innerHTML = ''
Elements.search.info.textContent = `${total} utworów`
for (let tid of tids) {
Tracks.get(tid).then(track => {
this._append(track)
})
}
},
submit() {
var value = Elements.search.input.value
if (value === '') return
Elements.search.info.textContent = ''
Socket.emit('search', {
query: value,
source: 'spotify'
})
},
_append(result) {
this.list.push(result)
Elements.search.container.append(result.el())
}
},
Preview = {
track: {},
flags: {
status: null,
_clicked(flag, status = false) {
if (status) Elements.flags[flag].classList.add('clicked')
else Elements.flags[flag].classList.remove('clicked')
return status
},
click(flag) {
if (flag !== 'report') {
if (flag === this.status) this.status = null
else this.status = flag
}
this.set(this.status)
Vote.send(Preview.track, this.status)
},
set(flag) {
this._clicked('up', flag == 'up')
this._clicked('down', flag == 'down')
this._clicked('report', flag == 'report')
if (flag != 'report') this.status = flag
}
},
change(track) {
pretty.info('Preview', `change: ${track.title}`)
if (track.id == this.track.id) return
this.track = track
if (track.flag === false) Tracks.getFlag(track.id)
Elements.preview.albumart.style.backgroundImage = `url('${track.albumart}')`
Elements.preview.title.textContent = track.title
Elements.preview.artists.textContent = track.artists.join(', ')
Elements.preview.table.innerHTML = ''
Elements.preview.table.append(...track.tbody().children)
this.flags.set(track.flag)
},
goto(track) {
this.change(track)
Panes.switch('preview')
Hash.set(`track:${this.track.id}`)
},
update() {
pretty.info('Preview', `update`)
Elements.preview.table.innerHTML = ''
Elements.preview.table.append(...this.track.tbody().children)
}
},
Offline = {
_status: true,
change(status) {
if (status != this._status) {
pretty.info('Offline', `${status}`)
this._status = status
status ? this._true() : this._false()
}
},
_true() {
Elements.offline.classList.remove('online')
},
_false() {
Elements.offline.classList.add('online')
},
},
Auth = {
successful: false,
autologin: Storage.Local.get('autologin') === false ? false : true,
info: {},
facebook: {},
tokens: {
check(id) {
return (this[id].expires - new Date().getTime()) > 0
},
fb: Storage.Local.get('fb') || { value: '', expires: 1 },
local: Storage.Local.get('local') || ''
},
fbReq() {
pretty.info('Auth', `Requesting response from fb`)
FB.getLoginStatus(function (data) {
Auth.fbRes(data)
})
},
fbRes(data) {
pretty.info('Auth', `Recieved response from fb: ${data.status}`)
this.facebook = data
if (data.status == 'connected') {
Storage.Local.set('fb', this.tokens.fb = {
value: data.authResponse.accessToken,
expires: new Date().getTime() + (data.authResponse.expiresIn * 1e3)
})
this.req()
} else {
Elements.auth.fbLogin.classList.remove('hidden')
this.finally(false)
}
},
req() {
pretty.info('Auth', `Requesting auth with ${this.tokens.check('fb') ? 'token.fb' : ''} ${this.tokens.local ? 'token.local' : ''}`)
Socket.emit('auth', {
fb: this.tokens.check('fb') ? this.tokens.fb.value : null,
local: this.tokens.local,
})
},
res(info) {
pretty.info('Auth', `Recieved response`)
if (!info) return this.finally(false)
if (info.clear) {
return this.clear()
}
Storage.Local.set('local', this.tokens.local = info.token)
this.info = info
this.finally(true)
},
finally(ok = false) {
pretty.info('Auth', `finished - ${ok ? 'success' : 'failed'}`)
if (ok) {
this.successful = true
Tracks.expireFlags()
if (Preview.track.id) Tracks.getFlag(Preview.track.id)
Elements.auth.buttons.classList.remove('disabled')
Elements.auth.prof.style.backgroundImage = `url('https://graph.facebook.com/${this.info.id}/picture?type=large')`
Elements.auth.username.textContent = this.info.name
Elements.auth.fbLogin.classList.add('hidden')
if (this.info.admin > 0) {
document.querySelector(`#nav>.button[data-target=admin]`).classList.remove('hidden')
}
} else {
this.successful = false
Elements.auth.buttons.classList.add('disabled')
Elements.auth.prof.style.backgroundImage = ''
Elements.auth.username.textContent = '~'
Elements.auth.fbLogin.classList.remove('hidden')
}
Elements.auth.params.innerHTML = ''
Elements.auth.params.append(...new Table([
['Zalogowano', ok ? new Icon('check') : new Icon('check-empty')],
['Loguj automatycznie', this.autologin ? new Icon('check') : new Icon('check-empty')],
['Token', this.tokens.local ? new Icon('check') : new Icon('check-empty')],
['Facebook', this.facebook.status ? this.facebook.status : '~']
]).children)
},
auto() {
pretty.info('Auth', `Attempting automatic auth`)
if (!this.autologin) {
pretty.info('Auth', `'dont' flag set, aborting auth`)
this.finally(false)
return
}
if ((this.tokens.local != '') || (this.tokens.check('fb'))) {
this.req()
} else {
this.fbReq()
}
},
lost() {
this.info = {}
},
clear() {
Storage.Local.set('local', this.tokens.local = '')
Storage.Local.set('autologin', this.autologin = false)
this.finally(false)
Socket.emit('clear', true)
}
},
Chart = {
tids: [],
values: {},
serial: null,
async update(tids, values, serial) {
if (serial === this.serial) return
pretty.info('Chart', `update, serial '${serial}' vs '${this.serial}'`)
this.tids = tids
this.values = values
this.serial = serial
Elements.chart.innerHTML = ''
for (let tid of tids) {
let track = await Tracks.get(tid)
track.votes = values[tid]
track.placement = tids.indexOf(tid) + 1
Elements.chart.append(track.el())
if (Preview.track.id == tid) Preview.update()
}
}
},
Admin = {
get: {
track() { },
user() { },
vote() { },
},
spotify: {
login() {
fetch('/api/spotify/login', {
headers: new Headers().set('Authorization', 'Basic ' + btoa(`${'radio-rolnik'}:${'u9023tnjiowrg'}`).toString('base64'))
}).then(response => response.text())
.then(url => {
var loginpage = window.open(url)
loginpage.exit = function(data){
loginpage.close()
data = data.search.slice(1).split('&').map(param => param.split('='))
params = {}
for(let param of data){
params[param[0]] = param[1]
}
Admin.spotify.code(params.code)
}
})
},
code(code){
Socket.emit('admin', {
action: 'spotify',
spotify: {
code: code
}
})
}
},
search(query, tags) {
Socket.emit('admin', {
action: 'search',
search: {
query: query,
tags: tags
}
})
},
receive(data) {
console.log(data)
},
send() {
console.log(Elements.admin.search.query.value)
}
}
var Elements, Socket;
window.onload = function () {
Elements = {
player: {
container: document.querySelector('#player'),
current: document.querySelector('#player>.current'),
volume: new Icon(document.querySelector('#player>.status>.volume'))
},
panes: {
history: {
pane: document.querySelector('.pane.history'),
button: document.querySelector('#nav>.button.history')
},
search: {
pane: document.querySelector('.pane.search'),
button: document.querySelector('#nav>.button.search')
},
chart: {
pane: document.querySelector('.pane.chart'),
button: document.querySelector('#nav>.button.chart')
},
preview: {
pane: document.querySelector('.pane.preview'),
button: document.querySelector('#nav>.button.preview')
},
settings: {
pane: document.querySelector('.pane.settings'),
button: document.querySelector('#nav>.button.settings')
}
},
previous: document.querySelector('#previous'),
search: {
container: document.querySelector('#results'),
info: document.querySelector('.pane.search>.query>.icons>.info'),
input: document.querySelector('.pane.search>.query>.input'),
},
preview: {
albumart: document.querySelector('.pane.preview>.albumart'),
title: document.querySelector('.pane.preview>.title'),
artists: document.querySelector('.pane.preview>.artists'),
table: document.querySelector('.pane.preview>.params')
},
flags: {
up: document.querySelector('.pane.preview>.buttons>.icon-thumbs-up'),
down: document.querySelector('.pane.preview>.buttons>.icon-thumbs-down'),
report: document.querySelector('.pane.preview>.buttons>.icon-flag')
},
offline: document.querySelector('#offline'),
auth: {
prof: document.querySelector('#profilePic'),
username: document.querySelector('#username'),
buttons: document.querySelector('.pane.preview>.buttons'),
params: document.querySelector('.pane.settings>.params'),
fbLogin: document.querySelector('.pane.settings>.actions>[data-target=fb]')
},
chart: document.querySelector('.chart>.list'),
admin: {
search: {
query: document.querySelector('#text')
}
}
}
Socket = io(`/`, {
autoConnect: true
})
// ############ Click events
// main navigation buttons
document.querySelectorAll('#nav>.button').forEach(button => {
button.addEventListener('click', function (e) {
Panes.switch(this.getAttribute('data-target'))
Hash.set(this.getAttribute('data-target'))
})
})
// search input autosearch
var keyupTimeout
document.querySelector('.pane.search>.query>.input').addEventListener("keyup", function (e) {
clearTimeout(keyupTimeout)
keyupTimeout = setTimeout(function () { Search.submit() }, 1e3)
if (e.keyCode == 13) {
Search.submit()
clearTimeout(keyupTimeout)
}
})
// search buttons
document.querySelector('.pane.search>.query>.icons').addEventListener('click', function (e) {
if (e.target.classList.value.startsWith('icon-')) {
switch (e.target.classList.value.slice(5)) {
case 'search': Search.submit(); break;
case 'youtube':
case 'soundcloud-1':
case 'spotify-1':
new Modal('Funkcja jeszcze nie dostępna', "Wyszukiwanie piosenek z platform youtube i soundcloud jest jeszcze niedostępne")
break;
}
}
})
// track preview buttons
document.querySelector('.pane.preview>.buttons').addEventListener('click', function (e) {
if (e.target.classList.value.startsWith('icon-')) {
let target = e.target.classList.value.split(' ')[0].slice(5)
switch (target) {
case 'export':
if (navigator.share) {
navigator.share({ // returns a promise
title: 'radio-rolnik',
text: `Sprawdź "${Preview.track.title}" na radio-rolnik`,
url: location.href,
})
} else if (navigator.clipboard) {
navigator.clipboard.writeText(location.href).then(function () {
new Modal('Skopiowano do schowka', `Link do "${Preview.track.title}" został skopiowany do schowka`)
}, function (err) {
new Modal('Nie można skopiować do schowka', `Wystąpił błąd podczas kopiowania linku do schowka`)
});
}
break;
case 'music':
window.open(Preview.track.listen)
break
case 'thumbs-up':
case 'thumbs-down':
if (this.classList.contains('disabled')) {
new Modal('Zaloguj się', 'Ta akcja wymaga bycia zalogowanym przez facebooka', {
done: {
icon: 'check',
click: function () {
this.modal.destruct()
Panes.switch('settings')
}
}
})
return
}
Preview.flags.click({
'thumbs-up': 'up',
'thumbs-down': 'down'
}[target])
break
case 'flag':
if (this.classList.contains('disabled')) {
new Modal('Zaloguj się', 'Ta akcja wymaga bycia zalogowanym przez facebooka', {
done: {
icon: 'check',
click: function () {
this.modal.destruct()
Panes.switch('settings')
}
}
})
return
}
new Modal('Zgłoś utwór', `Czy na pewno chcesz zgłosić "${Preview.track.title}"?`, {
confirm: {
icon: 'paper-plane',
click: function () {
Preview.flags.click('report')
this.modal.destruct()
}
},
cancel: {
icon: 'cancel-circled',
click: function () {
this.modal.destruct()
}
}
})
break
}
}
})
// settings buttons
document.querySelector('.pane.settings>.actions').addEventListener('click', function (e) {
if (e.target.getAttribute('data-target')) {
switch (e.target.getAttribute('data-target')) {
case 'fb':
FB.login(function (data) { Auth.fbRes(data) })
break;
case 'autologin':
Auth.autologin = !Auth.autologin
Storage.Local.set('autologin', Auth.autologin)
if (!Auth.successful) Auth.auto()
Auth.finally(Auth.successful)
break;
case 'forget':
Auth.clear()
break;
}
}
})
// ############ Miscellaneous
// go to hash location
if (location.hash == '') Hash.set('history')
else Hash.change()
document.body.onhashchange = function () { Hash.change() }
// disconnect if idle
var blurTimeout
document.body.onfocus = function () {
clearTimeout(blurTimeout)
Socket.connect()
}
document.body.onblur = function () {
blurTimeout = setTimeout(function () {
Socket.disconnect()
}, 30e3)
}
// ############ Socket events
Socket.on('connect', function () {
pretty.info('Socket', 'connected')
Offline.change(false)
Auth.auto()
Socket.emit('previous')
Socket.emit('player')
Socket.emit('chart')
})
Socket.on('disconnect', function () {
pretty.info('Socket', 'disconnected')
Offline.change(true)
Auth.lost()
})
Socket.on('auth', function (info) {
Auth.res(info)
})
Socket.on('previous', function (data) {
if (data.all) Previous.refresh(data.all)
else if (data.new) Previous.add(data.new)
});
Socket.on('player', function (data) {
Player.set(data.tid, data.status)
});
Socket.on('results', function (data) {
Search.update(data.tids, data.total)
});
Socket.on('track', function (tdata) {
Tracks.set(new Track(tdata))
});
Socket.on('flags', function (data) {
Tracks.setFlag(data.tid, data.flags)
});
Socket.on('chart', function (data) {
Chart.update(data.tids, data.values, data.serial)
});
Socket.on('meta', function (data) {
new Modal('Wystąpił problem', data.message)
console.log('meta', data)
});
Socket.on('admin', function (data) {
Admin.receive(data)
})
}
View File
Whitespace-only changes.
-25
View File
@@ -1,25 +0,0 @@
{
"version": "1.3.0",
"short_name": "radio-rolnik",
"name": "Radio Rolnik Nysa",
"description": "",
"icons": [{
"src": "/media/icon_512.png",
"type": "image/png",
"sizes": "512x512",
"purpose": "any maskable"
},
{
"src": "/media/icon_256.png",
"type": "image/png",
"sizes": "256x256"
}
],
"start_url": "/#history",
"scope": "/",
"display": "standalone",
"orientation": "portrait",
"background_color": "#313131",
"theme_color": "#ca3e47",
"lang": "pl"
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

-73
View File
@@ -1,73 +0,0 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>radio-rolnik</title>
<link rel="stylesheet" href="fontello.css">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/index.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-150749288-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-150749288-3', { 'page_path': location.pathname + location.hash });
</script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
body {
background-color: var(--color-1grey);
color: var(--color-light);
padding: 1rem;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}
h1,
h2,
h3 {
color: (var(--color-primary))
}
</style>
</head>
<body>
<h1>Regulamin radio-rolnik</h1>
<h2>Playlisty</h2>
<h3>Okres głosowania</h3>
<p>
Głosy zbierane są w okresie tygodnia lub jednego dnia (może się to zmieniać zależnie od naszych możliwości). Na pojedynczy utwór jeden użytkownik może zagłosować tylko raz w okresie 24h (od północy). Utwory z największą ilością głosów będą puszczane w następnym okresie.
</p>
<h3>Administracja</h3>
<p>
Zalogowany użytkownik może zgłosić utwór, jeżeli uważa że wymaga on uwagi od Administracji
</p>
<p>
Utwory zawierające przekleństwa będą usuwane z listy. Administracja zastrzega sobie możliwość usunięcia utworu bez żadnego powodu.
</p>
<h2>Prywatność</h2>
<h3>Integracja z Facebook</h3>
<p>
Strona radio-rolnik wymaga połączenia z kontem Facebook jedynie do weryfikacji, w celu liczenia głosów. Dane pobierane przy logowaniu to: adres e-mail, nazwa konta (imię i nazwisko), facebook id oraz zdjęcie profilowe. Każde z tych informacji jest zawsze publiczne na każdym koncie Facebook.
</p>
<h3>Automatyczne logowanie</h3>
<p>
Podczas weryfikacji możliwe są dwie metody: token otrzymany przy logowaniu przez Facebook, oraz token lokalny. Oba tokeny sa zapisywane w przeglądarce do użycia w przyszłości. Cały proces weryfikacji domyślnie odbywa się automatycznie. Jest możliwe wyłączenie weryfikacji podczas otwarcia strony, w zakładce ustawienia. W tym przypadku, aby korzystać z głosowania, wymagane jest ręczne zalogowanie sie, także w zakładce ustawienia
</p>
</body>
</html>
-64
View File
@@ -1,64 +0,0 @@
const CACHE_NAME = 'radio-v1.0.2',
ALLOWED_CACHE = [CACHE_NAME]
self.addEventListener('install', function (event) {
event.waitUntil(
caches.open(CACHE_NAME)
.then(function (cache) {
return cache.addAll([
'/',
'/fontello.css',
'/fontello/css/animation.css',
'/fontello/css/fontello.css',
'/fontello/font/fontello.woff',
'/fontello/font/fontello.woff2',
'/fontello/font/fontello.ttf',
'/media/icon.png',
'/media/icon_192.png',
'/media/icon_256.png',
'/favicon.ico',
'/regulamin.html',
'/index.js',
'/index.css',
]);
})
);
});
self.addEventListener('fetch', function (event) {
event.respondWith(caches.match(event.request).then(function (response) {
// Cache hit - return response
if (response) return response;
return fetch(event.request).then(function (response) {
// Check if we received a valid response
if (!response || response.status !== 200 || response.type !== 'basic') return response
if(response.url.includes('/socket.io/')) if(!response.url.includes('socket.io.js')) return
// IMPORTANT: Clone the response. A response is a stream
// and because we want the browser to consume the response
// as well as the cache consuming the response, we need
// to clone it so we have two streams.
var responseToCache = response.clone();
caches.open(CACHE_NAME).then(function (cache) {
cache.put(event.request, responseToCache);
});
}
);
})
);
});
self.addEventListener('activate', function (event) {
event.waitUntil(caches.keys().then(function (cacheNames) {
return Promise.all(
cacheNames.map(function (cacheName) {
if (ALLOWED_CACHE.indexOf(cacheName) === -1) {
return caches.delete(cacheName);
}
})
);
})
);
});
-1
View File
@@ -1 +0,0 @@
ul.ascii{margin:0;padding:0}ul.ascii,ul.ascii ul{margin-left:0;padding-left:0;list-style:none}ul.ascii li{margin:0;padding:0;white-space:nowrap;overflow:hidden}.ascii,.ascii ol{padding-left:0;list-style:none}.ascii li::before{content:""}.ascii li li::before{content:'├──\a0'}.ascii li li li::before{content:'│\a0\a0\a0├──\a0'}.ascii li li li li::before{content:'│\a0\a0\a0│\a0\a0\a0├──\a0'}.ascii li li li li li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0├──\a0'}.ascii li li li li li li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0├──\a0'}.ascii li li li li li li li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0├──\a0'}.ascii li li li li li li li li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0├──\a0'}.ascii li li li li li li li li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0└──\a0'}.ascii li li li li li li li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0└──\a0'}.ascii li li li li li li li:last-child li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0├──\a0'}.ascii li li li li li li li:last-child li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0└──\a0'}.ascii li li li li li li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0└──\a0'}.ascii li li li li li li:last-child li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0├──\a0'}.ascii li li li li li li:last-child li li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0│\a0\a0\a0├──\a0'}.ascii li li li li li li:last-child li li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0│\a0\a0\a0└──\a0'}.ascii li li li li li li:last-child li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0└──\a0'}.ascii li li li li li li:last-child li:last-child li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0├──\a0'}.ascii li li li li li li:last-child li:last-child li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0└──\a0'}.ascii li li li li li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0└──\a0'}.ascii li li li li li:last-child li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0├──\a0'}.ascii li li li li li:last-child li li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0│\a0\a0\a0├──\a0'}.ascii li li li li li:last-child li li li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0│\a0\a0\a0│\a0\a0\a0├──\a0'}.ascii li li li li li:last-child li li li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0│\a0\a0\a0│\a0\a0\a0└──\a0'}.ascii li li li li li:last-child li li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0│\a0\a0\a0└──\a0'}.ascii li li li li li:last-child li li:last-child li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0├──\a0'}.ascii li li li li li:last-child li li:last-child li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0└──\a0'}.ascii li li li li li:last-child li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0└──\a0'}.ascii li li li li li:last-child li:last-child li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0├──\a0'}.ascii li li li li li:last-child li:last-child li li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0│\a0\a0\a0├──\a0'}.ascii li li li li li:last-child li:last-child li li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0│\a0\a0\a0└──\a0'}.ascii li li li li li:last-child li:last-child li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0└──\a0'}.ascii li li li li li:last-child li:last-child li:last-child li::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0├──\a0'}.ascii li li li li li:last-child li:last-child li:last-child li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0\a0└──\a0'}.ascii li li li li:last-child::before{content:'│\a0\a0\a0│\a0\a0\a0└──\a0'}.ascii li li li li:last-child li::before{content:'│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0├──\a0'}.ascii li li li li:last-child li li::before{content:'│\a0\a0\a0│\a0\a0\a0\a0\a0\a0\a0│\a0\a0\a0├──\a0'}.ascii li li li li:last-child li li li::before{content:'Line truncated
+17
View File
@@ -0,0 +1,17 @@
import express from 'express'
const router = express.Router()
router.get('/', (req, res) => {
res.send('Get tracks history information (IDs only)')
})
router.get('/next', (req, res) => {
res.send('next in queue')
})
router.get('/previous', (req, res) => {
res.send('x previous tracks')
})
export default router
+20
View File
@@ -0,0 +1,20 @@
import express from 'express'
import { byQuery } from '../spotify.js'
const router = express.Router()
router.get('/', (req, res) => {
res.send('Query search')
})
router.get('/track/:query', (req, res) => {
byQuery(req.params.query).then(({ tracks, total }) => {
res.send({
tracks,
total,
})
})
})
export default router
+9
View File
@@ -0,0 +1,9 @@
import express from 'express'
const router = express.Router()
router.get('/', (req, res) => {
res.send('Get currently playing track metadata.')
})
export default router
+15
View File
@@ -0,0 +1,15 @@
import express from 'express'
import { byId } from '../spotify.js'
const router = express.Router()
router.get('/', (req, res) => {
res.send('Get track metadata.')
})
router.get('/:id', (req, res) => {
byId(req.params.id).then((track) => res.send(track))
})
export default router
+55
View File
@@ -0,0 +1,55 @@
import SpotifyWebApi from 'spotify-web-api-node'
import Track from './Track.js'
const spotify = new SpotifyWebApi({
clientId: 'c9cd1ede71914999a75fbea35313c1a4',
clientSecret: '13858e98eb264cf78251072f2ea5e96d',
})
spotify.clientCredentialsGrant().then(
function (data) {
console.log('Spotify: access token granted')
// Save the access token so that it's used in future calls
spotify.setAccessToken(data.body['access_token'])
},
function (err) {
throw err
}
)
function byId(id) {
return new Promise((resolve, reject) => {
if (typeof id != 'string')
return reject(new Error('Incorrect id, must by type String'))
spotify
.getTrack(id)
.then((data) => {
resolve(new Track(data.body))
})
.catch((err) => {
reject(err)
})
})
}
function byQuery(query) {
return new Promise((resolve, reject) => {
spotify
.searchTracks(query)
.then((response) => {
resolve({
tracks: response.body.tracks.items.map((tdata) => tdata.id),
total: response.body.tracks.total,
})
})
.catch((err) => {
reject(err)
})
})
}
export default spotify
export { byId, byQuery }
-11
View File
@@ -1,11 +0,0 @@
[
[[7, 45], [8, 0]],
[[8, 45], [8, 55]],
[[9, 40], [9, 50]],
[[10, 35], [10, 50]],
[[11, 35], [11, 45]],
[[12, 30], [12, 40]],
[[13, 25], [13, 30]],
[[14, 15], [14, 20]],
[[18, 0], [22, 0]]
]