Skip to content

Commit

Permalink
Added Skyview #834
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Nov 24, 2023
1 parent 1a0e640 commit 4ed67a3
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 1 deletion.
63 changes: 63 additions & 0 deletions src/assets/images/bluesky-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/javascripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ function redirect(url, type, initiator, forceRedirection) {
case "freetube": {
return 'freetube://' + url.href
}
case "freetubePwa": {
return 'freetube://' + url.href
}

case "poketube": {
if (url.pathname.startsWith('/channel')) {
const reg = /\/channel\/(.*)\/?$/.exec(url.pathname)
Expand Down Expand Up @@ -561,6 +565,10 @@ function redirect(url, type, initiator, forceRedirection) {
case "tekstoLibre": {
return `${randomInstance}/?${url.pathname.slice(1)}`;
}
case "skyview": {
if (url.pathname == '/') return randomInstance
return `${randomInstance}?url=${encodeURIComponent(url.href)}`
}
default: {
return `${randomInstance}${url.pathname}${url.search}`
}
Expand Down Expand Up @@ -731,6 +739,7 @@ const defaultInstances = {
'tuboYoutube': ['https://tubo.migalmoreno.com'],
'tuboSoundcloud': ['https://tubo.migalmoreno.com'],
'tekstoLibre': ['https://davilarek.github.io/TekstoLibre'],
'skyview': ['https://skyview.social'],
}

function initDefaults() {
Expand Down
30 changes: 30 additions & 0 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@
"desktopApp": true,
"instanceList": false,
"url": "https://github.com/yattee/yattee"
},
"freetubePwa": {
"excludeTargets": [
2,
3
],
"name": "FreeTube PWA",
"embeddable": false,
"instanceList": false,
"url": "https://github.com/MarmadileManteater/FreeTubeCordova"
}
},
"targets": [
Expand Down Expand Up @@ -963,6 +973,26 @@
},
"imageType": "svg",
"url": "https://www.tekstowo.pl"
},
"bluesky": {
"frontends": {
"skyview": {
"name": "Skyview",
"instanceList": true,
"url": "https://github.com/badlogic/skyview"
}
},
"targets": [
"^https?:\\/{2}bsky\\.app\\/"
],
"name": "Bluesky",
"options": {
"enabled": false,
"unsupportedUrls": "bypass",
"frontend": "skyview"
},
"imageType": "svg",
"url": "https://bsky.app/"
}
}
}
2 changes: 1 addition & 1 deletion src/pages/stylesheets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ section.links {
flex-wrap: wrap;
flex-direction: column;
width: 350px;
max-height: 890px;
max-height: 930px;
}

section.links div {
Expand Down

0 comments on commit 4ed67a3

Please sign in to comment.