capnproto.go 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. package front
  2. import (
  3. "notabug.org/apiote/amuse/tmdb"
  4. "notabug.org/apiote/amuse/accounts"
  5. "notabug.org/apiote/amuse/wikidata"
  6. "notabug.org/apiote/amuse/datastructure"
  7. "golang.org/x/text/language"
  8. "github.com/pquerna/otp"
  9. )
  10. func TODO(message string) interface{} {
  11. panic(message)
  12. }
  13. type CapnprotoRenderer struct{}
  14. func (CapnprotoRenderer) RenderFilm(film *tmdb.Film, languages []language.Tag) string {
  15. return TODO("implement CapnprotoRenderer.RenderFilm").(string)
  16. }
  17. func (CapnprotoRenderer) RenderSearch(results *tmdb.SearchResults, inventaireResults *wikidata.SearchResults, languages []language.Tag) string {
  18. return TODO("implement CapnprotoRenderer.RenderSearch").(string)
  19. }
  20. func (CapnprotoRenderer) RenderIndex(randomComedy string, languages []language.Tag) string {
  21. return TODO("implement CapnprotoRenderer.RenderIndex").(string)
  22. }
  23. func (CapnprotoRenderer) RenderTvSerie(serie *tmdb.TvSerie, languages []language.Tag) string {
  24. return TODO("implement CapnprotoRenderer.RenderSerie").(string)
  25. }
  26. func (CapnprotoRenderer) RenderPerson(person *tmdb.Person, languages []language.Tag) string {
  27. return TODO("implement CapnprotoRenderer.RenderPerson").(string)
  28. }
  29. func (CapnprotoRenderer) RenderBook(book datastructure.Book, languages []language.Tag) string {
  30. return TODO("implement CapnprotoRenderer.RenderBook").(string)
  31. }
  32. func (CapnprotoRenderer) RenderBookSerie(bookSerie wikidata.BookSerie, languages []language.Tag) string {
  33. return TODO("implement CapnprotoRenderer.RenderBookSerie").(string)
  34. }
  35. func (CapnprotoRenderer) RenderAbout(languages []language.Tag) string {
  36. return TODO("implement CapnprotoRenderer.RenderAbout").(string)
  37. }
  38. func (CapnprotoRenderer) RenderErrorPage(code int, err error, languages []language.Tag) string {
  39. return TODO("implement CapnprotoRenderer.RenderErrorPage").(string)
  40. }
  41. func (CapnprotoRenderer) RenderLogin(languages []language.Tag, err error, target string) string {
  42. // todo throw Wrong Accept
  43. return TODO("implement CapnprotoRenderer.RenderLogin").(string)
  44. }
  45. func (CapnprotoRenderer) RenderLoggedOut(languages []language.Tag) string {
  46. // todo throw Wrong Accept
  47. return TODO("implement CapnprotoRenderer.RenderLogin").(string)
  48. }
  49. func (CapnprotoRenderer) RenderSignup(languages []language.Tag, err error, otp *otp.Key, sfaEnabled bool, username, qr string) string {
  50. // todo throw Wrong Accept
  51. return TODO("implement CapnprotoRenderer.RenderSignup").(string)
  52. }
  53. func (CapnprotoRenderer) RenderSignedup(languages []language.Tag, recoveryCodes []string) string {
  54. // todo throw Wrong Accept
  55. return TODO("implement CapnprotoRenderer.RenderSignedup").(string)
  56. }
  57. func (CapnprotoRenderer) RenderWatchlist(watchlist datastructure.Watchlist, languages []language.Tag) string {
  58. return TODO("implement CapnprotoRenderer.RenderWatchlist").(string)
  59. }
  60. func (CapnprotoRenderer) RenderTvQueue(watchlist datastructure.TvQueue, languages []language.Tag) string {
  61. return TODO("implement CapnprotoRenderer.RenderTvQueue").(string)
  62. }
  63. func (CapnprotoRenderer) RenderReadlist(readlist datastructure.Readlist, languages []language.Tag) string {
  64. return TODO("implement CapnprotoRenderer.RenderWatchlist").(string)
  65. }
  66. func (CapnprotoRenderer) RenderExperiences(experiences datastructure.Experiences, languages []language.Tag) string {
  67. return TODO("implement CapnprotoRenderer.RenderExperiences").(string)
  68. }
  69. func (CapnprotoRenderer) RenderAccount(user accounts.User, languages []language.Tag) string {
  70. return TODO("implement CapnprotoRenderer.RenderExperiences").(string)
  71. }