-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
206 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
title: Crunchyroll | ||
iconUri: https://raw.githubusercontent.com/mateussouzaweb/crunchyroll-webos/master/src/img/130px.png | ||
manifestUrl: https://github.com/mateussouzaweb/crunchyroll-webos/releases/latest/download/webosbrew.manifest.json | ||
category: multimedia | ||
description: | | ||
Unofficial WebOS TV App for Crunchyroll. | ||
The last Crunchyroll app you will ever need! | ||
## Support | ||
Support [author](https://github.com/mateussouzaweb) for future versions for Samsung, Android TV, ChromeCast and Others. | ||
## Known Bugs | ||
- Select dropdown does not trigger with LG TV Controller in arrow navigation mode. | ||
title: Crunchyroll | ||
iconUri: https://raw.githubusercontent.com/mateussouzaweb/crunchyroll-webos/master/src/img/130px.png | ||
manifestUrl: https://github.com/mateussouzaweb/crunchyroll-webos/releases/latest/download/webosbrew.manifest.json | ||
category: multimedia | ||
description: | | ||
Unofficial WebOS TV App for Crunchyroll. | ||
The last Crunchyroll app you will ever need! | ||
## Support | ||
Support [author](https://github.com/mateussouzaweb) for future versions for Samsung, Android TV, ChromeCast and Others. | ||
## Known Bugs | ||
- Select dropdown does not trigger with LG TV Controller in arrow navigation mode. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
__title__ = 'repogen' | ||
__version__ = '1.0.0' | ||
|
||
from .plugin import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import logging | ||
import os | ||
|
||
from markdown import Markdown | ||
from pelican import signals, Readers | ||
from pelican.readers import BaseReader | ||
|
||
from repogen.common import parse_package_info | ||
|
||
log = logging.getLogger(__name__) | ||
|
||
|
||
class PackageInfoReader(BaseReader): | ||
enabled = True | ||
|
||
file_extensions = ['yml', 'py'] | ||
|
||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
self._md = Markdown(**self.settings['MARKDOWN']) | ||
|
||
def read(self, filename): | ||
info = parse_package_info(filename, offline='CI' not in os.environ) | ||
metadata = { | ||
'title': info['title'], | ||
'override_save_as': f'apps/{info["id"]}.html', | ||
'template': 'app', | ||
'status': 'hidden', | ||
'modified': info['lastmodified'], | ||
'manifest': info['manifest'], | ||
} | ||
return self._md.convert(info['description']), metadata | ||
|
||
|
||
def readers_init(readers: Readers): | ||
readers.reader_classes['yml'] = PackageInfoReader | ||
readers.reader_classes['py'] = PackageInfoReader | ||
|
||
|
||
def register(): | ||
signals.readers_init.connect(readers_init) | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,66 @@ | ||
@import "../../../website/theme/static/styles/variables"; | ||
|
||
$icon-size: 160px; | ||
|
||
#content .main { | ||
img { | ||
max-width: 100%; | ||
} | ||
|
||
img.app-icon { | ||
max-width: 80px; | ||
margin-top: -20px; | ||
float: right; | ||
.app-icon { | ||
width: $icon-size; | ||
height: $icon-size; | ||
float: left; | ||
} | ||
|
||
.app-info { | ||
display: flex; | ||
flex-flow: column; | ||
min-height: $icon-size; | ||
|
||
.app-title { | ||
margin-top: 10px; | ||
} | ||
|
||
.app-actions { | ||
margin: auto 10px 10px auto; | ||
padding-top: 10px; | ||
|
||
.app-action { | ||
height: 48px; | ||
padding: 5px 10px; | ||
box-sizing: border-box; | ||
|
||
overflow: hidden; | ||
|
||
background-color: $color-accent; | ||
border-radius: 5px; | ||
color: white; | ||
} | ||
|
||
.download-ipk { | ||
.title { | ||
font-size: 15px; | ||
} | ||
|
||
.version { | ||
display: inline-block; | ||
font-size: 12px; | ||
float: left; | ||
} | ||
|
||
.size { | ||
display: inline-block; | ||
font-size: 12px; | ||
float: right; | ||
} | ||
|
||
hr { | ||
margin: 2px 0; | ||
border-color: rgba(255, 255, 255, 0.5); | ||
border-width: 1px; | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.