Skip to content

Commit

Permalink
Code refactoring after #1099
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed May 13, 2024
1 parent 1b1bdb3 commit 9776e09
Show file tree
Hide file tree
Showing 23 changed files with 41 additions and 130 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ name: Deploy static content to Pages
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
push:
paths:
- 'website/icons/**'

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
Expand Down
Binary file modified website/icons/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed website/icons/android-chrome-256x256.png
Binary file not shown.
Binary file added website/icons/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/icons/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed website/icons/apple-touch-icon.png
Binary file not shown.
9 changes: 0 additions & 9 deletions website/icons/browserconfig.xml

This file was deleted.

Binary file removed website/icons/favicon-16x16.png
Binary file not shown.
Binary file removed website/icons/favicon-32x32.png
Binary file not shown.
Binary file removed website/icons/mstile-150x150.png
Binary file not shown.
27 changes: 0 additions & 27 deletions website/icons/safari-pinned-tab.svg

This file was deleted.

19 changes: 0 additions & 19 deletions website/icons/site.webmanifest

This file was deleted.

18 changes: 18 additions & 0 deletions website/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "go2rtc",
"icons": [
{
"src": "https://alexxdev.duckdns.org/local/icons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "https://alexxdev.duckdns.org/local/icons/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"display": "standalone",
"theme_color": "#000000",
"background_color": "#000000"
}
16 changes: 16 additions & 0 deletions www/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,22 @@ User-Agent: `Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gec

https://webrtc.org/getting-started/unified-plan-transition-guide?hl=en

## Web Icons

[Favicon checker](https://realfavicongenerator.net/), skip:

- Windows 8 and 10 (`browserconfig.xml`)
- Mac OS X El Capitan Safari

```html
<!-- iOS Safari -->
<link rel="apple-touch-icon" href="https://alexxit.github.io/go2rtc/icons/apple-touch-icon-180x180.png" sizes="180x180">
<!-- Classic, desktop browsers -->
<link rel="icon" href="https://alexxit.github.io/go2rtc/icons/favicon.ico">
<!-- Android Chrome -->
<link rel="manifest" href="https://alexxit.github.io/go2rtc/manifest.json">
```

## Useful links

- https://www.webrtc-experiment.com/DetectRTC/
Expand Down
8 changes: 0 additions & 8 deletions www/add.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
<title>go2rtc - Add Stream</title>
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="apple-touch-icon" sizes="180x180" href="https://alexxit.github.io/go2rtc/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://alexxit.github.io/go2rtc/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://alexxit.github.io/go2rtc/icons/favicon-16x16.png">
<link rel="manifest" href="https://alexxit.github.io/go2rtc/icons/site.webmanifest">
<link rel="mask-icon" href="https://alexxit.github.io/go2rtc/icons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="https://alexxit.github.io/go2rtc/icons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="https://alexxit.github.io/go2rtc/icons/browserconfig.xml">
<style>
body {
margin: 0;
Expand Down
8 changes: 0 additions & 8 deletions www/codecs.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="https://alexxit.github.io/go2rtc/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://alexxit.github.io/go2rtc/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://alexxit.github.io/go2rtc/icons/favicon-16x16.png">
<link rel="manifest" href="https://alexxit.github.io/go2rtc/icons/site.webmanifest">
<link rel="mask-icon" href="https://alexxit.github.io/go2rtc/icons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="https://alexxit.github.io/go2rtc/icons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="https://alexxit.github.io/go2rtc/icons/browserconfig.xml">
<title>go2rtc - WebRTC</title>
<style>
body {
Expand Down
8 changes: 0 additions & 8 deletions www/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
<title>go2rtc - File Editor</title>
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="apple-touch-icon" sizes="180x180" href="https://alexxit.github.io/go2rtc/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://alexxit.github.io/go2rtc/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://alexxit.github.io/go2rtc/icons/favicon-16x16.png">
<link rel="manifest" href="https://alexxit.github.io/go2rtc/icons/site.webmanifest">
<link rel="mask-icon" href="https://alexxit.github.io/go2rtc/icons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="https://alexxit.github.io/go2rtc/icons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="https://alexxit.github.io/go2rtc/icons/browserconfig.xml">
<script src="https://unpkg.com/[email protected]/src-min/ace.js"></script>
<style>
body {
Expand Down
11 changes: 3 additions & 8 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="apple-touch-icon" sizes="180x180" href="https://alexxit.github.io/go2rtc/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://alexxit.github.io/go2rtc/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://alexxit.github.io/go2rtc/icons/favicon-16x16.png">
<link rel="manifest" href="https://alexxit.github.io/go2rtc/icons/site.webmanifest">
<link rel="mask-icon" href="https://alexxit.github.io/go2rtc/icons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="https://alexxit.github.io/go2rtc/icons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="https://alexxit.github.io/go2rtc/icons/browserconfig.xml">
<link rel="apple-touch-icon" href="https://alexxit.github.io/go2rtc/icons/apple-touch-icon-180x180.png" sizes="180x180">
<link rel="icon" href="https://alexxit.github.io/go2rtc/icons/favicon.ico">
<link rel="manifest" href="https://alexxit.github.io/go2rtc/manifest.json">
<title>go2rtc</title>
<style>
body {
Expand Down
8 changes: 0 additions & 8 deletions www/links.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
<title>go2rtc - links</title>
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="apple-touch-icon" sizes="180x180" href="https://alexxit.github.io/go2rtc/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://alexxit.github.io/go2rtc/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://alexxit.github.io/go2rtc/icons/favicon-16x16.png">
<link rel="manifest" href="https://alexxit.github.io/go2rtc/icons/site.webmanifest">
<link rel="mask-icon" href="https://alexxit.github.io/go2rtc/icons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="https://alexxit.github.io/go2rtc/icons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="https://alexxit.github.io/go2rtc/icons/browserconfig.xml">
<style>

body {
Expand Down
8 changes: 0 additions & 8 deletions www/log.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
<title>go2rtc - Logs</title>
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="apple-touch-icon" sizes="180x180" href="https://alexxit.github.io/go2rtc/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://alexxit.github.io/go2rtc/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://alexxit.github.io/go2rtc/icons/favicon-16x16.png">
<link rel="manifest" href="https://alexxit.github.io/go2rtc/icons/site.webmanifest">
<link rel="mask-icon" href="https://alexxit.github.io/go2rtc/icons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="https://alexxit.github.io/go2rtc/icons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="https://alexxit.github.io/go2rtc/icons/browserconfig.xml">
<style>
body {
font-family: Arial, Helvetica, sans-serif;
Expand Down
11 changes: 3 additions & 8 deletions www/stream.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="https://alexxit.github.io/go2rtc/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://alexxit.github.io/go2rtc/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://alexxit.github.io/go2rtc/icons/favicon-16x16.png">
<link rel="manifest" href="https://alexxit.github.io/go2rtc/icons/site.webmanifest">
<link rel="mask-icon" href="https://alexxit.github.io/go2rtc/icons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="https://alexxit.github.io/go2rtc/icons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="https://alexxit.github.io/go2rtc/icons/browserconfig.xml">
<link rel="apple-touch-icon" href="https://alexxit.github.io/go2rtc/icons/apple-touch-icon-180x180.png" sizes="180x180">
<link rel="icon" href="https://alexxit.github.io/go2rtc/icons/favicon.ico">
<link rel="manifest" href="https://alexxit.github.io/go2rtc/manifest.json">
<title>go2rtc - Stream</title>
<style>
body {
Expand Down
8 changes: 0 additions & 8 deletions www/webrtc-sync.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="https://alexxit.github.io/go2rtc/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://alexxit.github.io/go2rtc/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://alexxit.github.io/go2rtc/icons/favicon-16x16.png">
<link rel="manifest" href="https://alexxit.github.io/go2rtc/icons/site.webmanifest">
<link rel="mask-icon" href="https://alexxit.github.io/go2rtc/icons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="https://alexxit.github.io/go2rtc/icons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="https://alexxit.github.io/go2rtc/icons/browserconfig.xml">
<title>go2rtc - WebRTC</title>
<style>
body {
Expand Down
8 changes: 0 additions & 8 deletions www/webrtc.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="https://alexxit.github.io/go2rtc/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://alexxit.github.io/go2rtc/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://alexxit.github.io/go2rtc/icons/favicon-16x16.png">
<link rel="manifest" href="https://alexxit.github.io/go2rtc/icons/site.webmanifest">
<link rel="mask-icon" href="https://alexxit.github.io/go2rtc/icons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="https://alexxit.github.io/go2rtc/icons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="https://alexxit.github.io/go2rtc/icons/browserconfig.xml">
<title>go2rtc - WebRTC</title>
<style>
body {
Expand Down

0 comments on commit 9776e09

Please sign in to comment.