Commit 24693cfc authored by Jérome Perrin's avatar Jérome Perrin

theia: WIP fonts + css

parent c020f044
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
[instance] [instance]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = a5c23358b8435b516e9e78bd71b5b819 md5sum = 310dd1d78df8ab74ac7b8e8ee139c5b8
[yarn.lock] [yarn.lock]
filename = yarn.lock filename = yarn.lock
...@@ -27,4 +27,8 @@ md5sum = d2ce161244ce9ebce5295302a1b2a7df ...@@ -27,4 +27,8 @@ md5sum = d2ce161244ce9ebce5295302a1b2a7df
[preloadTemplate.html] [preloadTemplate.html]
filename = preloadTemplate.html filename = preloadTemplate.html
md5sum = 8f5758f2e0ff7c4600c73ce54c9a70aa md5sum = b6e5ebd004c6336ae8d9d4ee24412b8a
[slapos.css.in]
filename = slapos.css.in
md5sum = 3ed13872f1c540e170075c7535e69fb3
...@@ -54,7 +54,7 @@ template = inline: ...@@ -54,7 +54,7 @@ template = inline:
root $${directory:frontend-static} root $${directory:frontend-static}
browse browse
proxy / $${theia-instance:base-url} { proxy / $${theia-instance:base-url} {
except $${frontend-instance-fonts:folder-name} public $${favicon.ico:filename} except $${frontend-instance-fonts:folder-name} $${frontend-instance-slapos.css:folder-name} public $${favicon.ico:filename}
} }
proxy /services $${theia-instance:base-url} { proxy /services $${theia-instance:base-url} {
websocket websocket
...@@ -84,6 +84,7 @@ pidfile = $${directory:pidfiles}/$${:_buildout_section_name_}.pid ...@@ -84,6 +84,7 @@ pidfile = $${directory:pidfiles}/$${:_buildout_section_name_}.pid
url = https://$${:hostname}:$${:port}/ url = https://$${:hostname}:$${:port}/
[frontend-instance-fonts] [frontend-instance-fonts]
; TODO: this is ugly
recipe = plone.recipe.command recipe = plone.recipe.command
location = $${directory:frontend-static}/$${:folder-name} location = $${directory:frontend-static}/$${:folder-name}
folder-name = fonts folder-name = fonts
...@@ -93,6 +94,13 @@ command = ...@@ -93,6 +94,13 @@ command =
ln -s ${jetbrains-mono-fonts:location} $${:location}/jetbrains-mono ln -s ${jetbrains-mono-fonts:location} $${:location}/jetbrains-mono
stop-on-error = true stop-on-error = true
[frontend-instance-slapos.css]
; TODO: do we need a template recipe ? we don't subsitute anything here
recipe = slapos.recipe.template:jinja2
template = ${slapos.css.in:output}
rendered = $${directory:frontend-static}/$${:folder-name}/slapos.css
folder-name = css
[frontend-reload] [frontend-reload]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
wrapper-path = $${directory:services}/$${:_buildout_section_name_} wrapper-path = $${directory:services}/$${:_buildout_section_name_}
...@@ -333,3 +341,4 @@ project = $${:srv}/project ...@@ -333,3 +341,4 @@ project = $${:srv}/project
slapos = $${:srv}/slapos slapos = $${:srv}/slapos
frontend-static = $${:srv}/frontend-static frontend-static = $${:srv}/frontend-static
frontend-static-public = $${:frontend-static}/public frontend-static-public = $${:frontend-static}/public
frontend-static-css = $${:frontend-static}/css
This diff is collapsed.
This diff is collapsed.
...@@ -117,6 +117,12 @@ eggs = ...@@ -117,6 +117,12 @@ eggs =
supervisor supervisor
setuptools setuptools
[template-base]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:parts-directory}/${:_buildout_section_name_}
mode = 0644
[python-language-server] [python-language-server]
version = 0.19.0 version = 0.19.0
recipe = plone.recipe.command recipe = plone.recipe.command
...@@ -128,10 +134,7 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_} ...@@ -128,10 +134,7 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true stop-on-error = true
[python-language-server-requirements.txt] [python-language-server-requirements.txt]
recipe = slapos.recipe.template <= template-base
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:parts-directory}/${:_buildout_section_name_}
mode = 0644
# TODO: file # TODO: file
[theia] [theia]
...@@ -153,16 +156,13 @@ uses = ${yarn.lock:recipe} ...@@ -153,16 +156,13 @@ uses = ${yarn.lock:recipe}
THEIA_DEFAULT_PLUGINS = ${:location}/plugins/ THEIA_DEFAULT_PLUGINS = ${:location}/plugins/
[yarn.lock] [yarn.lock]
recipe = slapos.recipe.template <= template-base
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:parts-directory}/${:_buildout_section_name_}
mode = 0644
[preloadTemplate.html] [preloadTemplate.html]
recipe = slapos.recipe.template <= template-base
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:parts-directory}/${:_buildout_section_name_} [slapos.css.in]
mode = 0644 <= template-base
[package.json] [package.json]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
...@@ -357,9 +357,7 @@ template = ...@@ -357,9 +357,7 @@ template =
[instance] [instance]
recipe = slapos.recipe.template <= template-base
url = ${:_profile_base_location_}/${:filename}
mode = 0644
output = ${buildout:directory}/instance.cfg output = ${buildout:directory}/instance.cfg
[versions] [versions]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment