From 7621cf7777b58e4d65c45e821068c792595e96b1 Mon Sep 17 00:00:00 2001 From: Jordan Jensen Date: Wed, 29 Nov 2023 09:35:52 -0800 Subject: [PATCH] Update AppType to ContentType and content --- web/src/api/types/configurations.ts | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/web/src/api/types/configurations.ts b/web/src/api/types/configurations.ts index aa111745c..d1c86eac7 100644 --- a/web/src/api/types/configurations.ts +++ b/web/src/api/types/configurations.ts @@ -22,28 +22,27 @@ export function isConfigurationError( return (c as ConfigurationError).error !== undefined; } -enum AppMode { - UNKNOWN = '', - SHINY = 'shiny', - RMD_SHINY = 'rmd-shiny', - RMD_STATIC = 'rmd-static', - STATIC = 'static', - PLUMBER_API = 'api', - JUPYTER_STATIC = 'jupyter-static', +enum ContentType { + HTML = 'html', + JUPYTER_NOTEBOOK = 'jupyter-notebook', JUPYTER_VOILA = 'jupyter-voila', - PYTHON_API = 'python-api', - PYTHON_DASH = 'python-dash', - PYTHON_STREAMLIT = 'python-streamlit', PYTHON_BOKEH = 'python-bokeh', + PYTHON_DASH = 'python-dash', PYTHON_FASTAPI = 'python-fastapi', + PYTHON_FLASK = 'python-flask', PYTHON_SHINY = 'python-shiny', + PYTHON_STREAMLIT = 'python-streamlit', QUARTO_SHINY = 'quarto-shiny', - QUARTO_STATIC = 'quarto-static', + QUARTO = 'quarto', + R_PLUMBER = 'r-plumber', + R_SHINY = 'r-shiny', + RMD_SHINY = 'rmd-shiny', + RMD = 'rmd' } export type ConfigurationDetails = { $schema: SchemaURL, - type: AppMode, + type: ContentType, entrypoint?: string, title?: string, description?: string,