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.

161 lines
3.8 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=, here's the default
  64. fully valued options as of version =1.0.0-rc.3= of monujo:
  65. #+begin_src yaml
  66. monujo:
  67. options:
  68. lokapi-host: example.org
  69. lokapi-db: odoo
  70. map-url: https://carte.example.org
  71. help-url: https://help.com
  72. cgu-url: https://cgu.com
  73. local-password-retention-time: 900
  74. logo-url: https://example.com/img/logo.png
  75. login-logo-url: https://example.com/img/logo-2.png
  76. theme:
  77. color-1: "#e4f2f1"
  78. color-2: "#009688"
  79. top-menu-background-color: "#fefefe"
  80. top-menu-link-color: "#4a4a4a"
  81. top-menu-link-background-color: white
  82. top-menu-link-background-color-bg: white
  83. top-menu-link-hover-color: "#777777"
  84. top-menu-link-hover-color-bg: "#848484"
  85. top-menu-link-hover-background-color: whitesmoke
  86. top-menu-dropdown-divider-color: whitesmoke
  87. btn-payer-text-color: "#ffffff"
  88. btn-payer-border-color: $color-2
  89. btn-payer-background-color: $color-2
  90. btn-recevoir-text-color: "#ffffff"
  91. btn-recevoir-border-color: $color-2
  92. btn-recevoir-background-color: $color-2
  93. btn-recharger-text-color: $color-2
  94. btn-recharger-border-color: $color-2
  95. btn-recharger-background-color: "#ffffff"
  96. btn-login-text-color: "#ffffff"
  97. btn-login-border-color: $color-2
  98. btn-login-background-color: $color-2
  99. inner-card-background-color: "#f0faf9"
  100. inner-card-border-color: "#f0faf9"
  101. inner-card-text-color: "#4a4a4a"
  102. inner-card-text-color-backend: "#242424"
  103. inner-card-label-background-color: transparent
  104. inner-card-label-text-color: "#4a4a4a"
  105. inner-card-alt-text-color: "#009688"
  106. body-size: 14px
  107. tabs-border-bottom-color: white
  108. tabs-border-bottom-width: 4px
  109. tabs-link-hover-border-bottom-color: $color-2
  110. tabs-link-active-color: rgba(0 0 0 0.8)
  111. tabs-link-active-border-bottom-color: $color-2
  112. tabs-link-color: rgba(0 0 0 0.6)
  113. navbar-fixed-z: 50
  114. #+end_src
  115. ** Version
  116. The monujo app version deployed by this charm is set by default in
  117. =metadata.yml= in =default-options.version=.
  118. You can enforce a different version by using the =version= option:
  119. #+begin_src yaml
  120. monujo:
  121. options:
  122. version: 1.0.0-rc.1
  123. odoo:
  124. #+end_src