You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

162 lines
3.9 KiB

  1. # -*- ispell-local-dictionary: "english" -*-
  2. #+TITLE: Monujo charm
  3. * Usage
  4. =monujo= service needs to know how to reach it's administrative backend.
  5. So either you specify one by yourself:
  6. #+begin_src yaml
  7. monujo:
  8. options:
  9. lokapi-host: http://admin.mycur.org
  10. #lokapi-db: odoo ## Default: 'odoo'
  11. #+end_src
  12. Either you can provide in sibling services an =odoo-server= providing
  13. service. It'll then discover it and use it by default as administrative
  14. backend.
  15. #+begin_src yaml
  16. monujo:
  17. odoo:
  18. #+end_src
  19. Note that =monujo= charm is describing a subordinate service, meaning
  20. that it'll run in an existing service providing =publish-dir= relation
  21. (creating one if not available).
  22. By default, =lokapi-db= if not set will be infered from option =dbname=
  23. in the relation =odoo-server=, or default database from =odoo-server=.
  24. So all these are equivalent:
  25. #+begin_src yaml
  26. monujo:
  27. options:
  28. lokapi-db: foo
  29. odoo:
  30. #+end_src
  31. #+begin_src yaml
  32. monujo:
  33. relations:
  34. odoo-server:
  35. odoo:
  36. dbname: foo
  37. odoo:
  38. #+end_src
  39. #+begin_src yaml
  40. monujo:
  41. odoo:
  42. relations:
  43. postgres-database:
  44. postgres:
  45. dbname: foo
  46. #+end_src
  47. ** Map
  48. =monujo= optionaly can add a link to a map. If you want to do so, either
  49. add it explicitly, or add it automatically. This is the explicit way:
  50. #+begin_src yaml
  51. monujo:
  52. options:
  53. map-url: http://map.mycur.org
  54. #+end_src
  55. The map will be added automatically if a =map-server= provider is
  56. found (=gogocarto= charm creates services that provides =map-server=
  57. relations).
  58. #+begin_src yaml
  59. monujo:
  60. gogocarto:
  61. #+end_src
  62. ** Theming
  63. This charm allows to write all the =config.json= values supported by
  64. monujo, including the =theme= option, here's the default fully valued
  65. options of =theme= as of version =1.0.0-rc.3= of =monujo=:
  66. #+begin_src yaml
  67. monujo:
  68. options:
  69. lokapi-host: example.org
  70. lokapi-db: odoo
  71. map-url: https://carte.example.org
  72. help-url: https://help.com
  73. cgu-url: https://cgu.com
  74. local-password-retention-time: 900
  75. logo-url: https://example.com/img/logo.png
  76. login-logo-url: https://example.com/img/logo-2.png
  77. theme:
  78. color-1: "#e4f2f1"
  79. color-2: "#009688"
  80. top-menu-background-color: "#fefefe"
  81. top-menu-link-color: "#4a4a4a"
  82. top-menu-link-background-color: white
  83. top-menu-link-background-color-bg: white
  84. top-menu-link-hover-color: "#777777"
  85. top-menu-link-hover-color-bg: "#848484"
  86. top-menu-link-hover-background-color: whitesmoke
  87. top-menu-dropdown-divider-color: whitesmoke
  88. btn-payer-text-color: "#ffffff"
  89. btn-payer-border-color: $color-2
  90. btn-payer-background-color: $color-2
  91. btn-recevoir-text-color: "#ffffff"
  92. btn-recevoir-border-color: $color-2
  93. btn-recevoir-background-color: $color-2
  94. btn-recharger-text-color: $color-2
  95. btn-recharger-border-color: $color-2
  96. btn-recharger-background-color: "#ffffff"
  97. btn-login-text-color: "#ffffff"
  98. btn-login-border-color: $color-2
  99. btn-login-background-color: $color-2
  100. inner-card-background-color: "#f0faf9"
  101. inner-card-border-color: "#f0faf9"
  102. inner-card-text-color: "#4a4a4a"
  103. inner-card-text-color-backend: "#242424"
  104. inner-card-label-background-color: transparent
  105. inner-card-label-text-color: "#4a4a4a"
  106. inner-card-alt-text-color: "#009688"
  107. body-size: 14px
  108. tabs-border-bottom-color: white
  109. tabs-border-bottom-width: 4px
  110. tabs-link-hover-border-bottom-color: $color-2
  111. tabs-link-active-color: rgba(0 0 0 0.8)
  112. tabs-link-active-border-bottom-color: $color-2
  113. tabs-link-color: rgba(0 0 0 0.6)
  114. navbar-fixed-z: 50
  115. #+end_src
  116. ** Version
  117. The monujo app version deployed by this charm is set by default in
  118. =metadata.yml= in =default-options.version=.
  119. You can enforce a different version by using the =version= option:
  120. #+begin_src yaml
  121. monujo:
  122. options:
  123. version: 1.0.0-rc.1
  124. odoo:
  125. #+end_src