Skip to content

Commit

Permalink
prepares new release
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Nov 24, 2022
1 parent 305bb99 commit e0371f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies = [
# https://pypi.org/project/habanero/
'habanero~=1.2.2',
# https://pypi.org/project/pyJustpyWidgets/
'pyJustpyWidgets~=0.1.3',
'pyJustpyWidgets~=0.1.5',
# https://pypi.org/project/search-engine-parser/
'search-engine-parser~=0.6.8',
# https://github.com/fake-useragent/fake-useragent
Expand Down
12 changes: 2 additions & 10 deletions skg/skgbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# shut up justpy
JpConfig.set("VERBOSE","False")
JpConfig.setup()
from jpwidgets.bt5widgets import App,Link
from jpwidgets.bt5widgets import App,Link,About
from urllib import parse
from skg.search import SearchOptions
from skg.orcid import ORCID
Expand Down Expand Up @@ -204,16 +204,8 @@ async def about(self)->"jp.WebPage":
jp.WebPage: a justpy webpage renderer
'''
self.setupRowsAndCols()
self.aboutDiv=self.colB1
self.aboutDiv=About(a=self.colB1,version=self.version)
# @TODO Refactor to pyJustpyWidgets
self.jp.Div(text=f"{self.version.description}",a=self.aboutDiv)
self.jp.Div(text=f"version: {self.version.version}",a=self.aboutDiv)
self.jp.Div(text=f"updated: {self.version.updated}",a=self.aboutDiv)
self.jp.Div(text=f"authors: {self.version.authors}",a=self.aboutDiv)
# url,text,tooltip=None,target=None,style:str=None
self.jp.Div(inner_html=Link.create(url=self.version.doc_url,text="documentation",target="_blank"),a=self.aboutDiv)
self.jp.Div(inner_html=Link.create(url=self.version.chat_url,text="discussion",target="_blank"),a=self.aboutDiv)
self.jp.Div(inner_html=Link.create(url=self.version.cm_url,text="source",target="_blank"),a=self.aboutDiv)
return self.wp

async def content(self)->"jp.WebPage":
Expand Down

0 comments on commit e0371f3

Please sign in to comment.