add-frames (#1)
Adds a iframe view for apps in the dashboard. Makes it usable for our setup. Co-authored-by: Philipp Rothmann <philipprothmann@posteo.de> Co-authored-by: viehlieb <pf@pragma-shift.net> Reviewed-on: #1
This commit is contained in:
parent
696ffba9fe
commit
dea8773ff6
63 changed files with 1408 additions and 896 deletions
32
backend/areas/apps/models_lit.py
Normal file
32
backend/areas/apps/models_lit.py
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
"""Everything to do with Apps"""
|
||||
|
||||
from database import db
|
||||
from .models import App
|
||||
|
||||
class LITApp(App):
|
||||
"""
|
||||
"""
|
||||
|
||||
def get_url(self):
|
||||
return self.url
|
||||
|
||||
def to_dict(self):
|
||||
"""
|
||||
represent this object as a dict, compatible for JSON output
|
||||
"""
|
||||
return {"id": self.id,
|
||||
"name": self.name,
|
||||
"slug": self.slug,
|
||||
"external": self.external,
|
||||
"status": self.get_status(),
|
||||
"url": self.get_url()}
|
||||
|
||||
|
||||
|
||||
def get_status(self):
|
||||
"""Returns an AppStatus object that describes the current cluster state"""
|
||||
return {
|
||||
"installed": "",
|
||||
"ready": "",
|
||||
"message": "",
|
||||
}
|
||||
Reference in a new issue