Customize home screen (#250)
* Customize home screen * remove logs * Lint fix * move func * Fix for checklist * Fix save state * open api * Fix spec * Changelog * Add TODO * Button size --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
1 parent
e7324495fe
commit
fd7bdde733
21 files changed
+638
-16
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import "pkg:/components/Screens/HomeScreen/HomeScreenUtils.bs"
|
||||
|
||||
namespace Http
|
||||
|
||||
class HomeLayoutRouter extends HttpRouter
|
||||
|
||||
function new()
|
||||
super()
|
||||
|
||||
m.Get("/api/home-layout", function(context as object) as boolean
|
||||
response = context.response
|
||||
task = context.server.task
|
||||
preferences = task.preferences
|
||||
|
||||
feed = HomeScreenUtils.GetFeed("libpkg:/config/default_home_layout.yaml", preferences)
|
||||
response.Json(feed)
|
||||
|
||||
return true
|
||||
end function)
|
||||
|
||||
end function
|
||||
|
||||
end class
|
||||
|
||||
end namespace
|
||||
Reference in new issue
Block a user