Content-Length: 140496 | pFad | http://github.com/postgresml/postgresml/pull/1461.patch
thub.com From f0b15aada6fa3f9898524f87f324bc8e6b30d67b Mon Sep 17 00:00:00 2001 From: Dan <39170265+chillenberger@users.noreply.github.com> Date: Mon, 13 May 2024 15:16:44 -0600 Subject: [PATCH] Revert "Dan product left nav update (#1445)" This reverts commit 5ce41e7c6b5534eb0dac6687d655aa22d60457fc. --- pgml-dashboard/src/api/cms.rs | 2 +- .../src/api/deployment/deployment_models.rs | 115 ---- pgml-dashboard/src/api/deployment/mod.rs | 63 -- .../src/api/deployment/notebooks.rs | 300 --------- pgml-dashboard/src/api/deployment/projects.rs | 78 --- .../src/api/deployment/snapshots.rs | 89 --- pgml-dashboard/src/api/deployment/uploader.rs | 85 --- pgml-dashboard/src/api/mod.rs | 1 - .../src/components/breadcrumbs/template.html | 28 +- .../src/components/dropdown/dropdown.scss | 6 +- .../src/components/dropdown/template.html | 2 +- .../components/left_nav_menu/left-nav-menu.js | 58 -- .../left_nav_menu/left_nav_menu.scss | 5 - .../components/left_nav_menu/template.html | 10 +- .../navigation/left_nav/web_app/mod.rs | 16 +- .../navigation/left_nav/web_app/template.html | 24 +- .../navigation/left_nav/web_app/web_app.scss | 13 +- .../left_nav/web_app/web_app_controller.js | 28 - .../navigation/navbar/web_app/mod.rs | 17 +- .../navigation/navbar/web_app/template.html | 153 ++--- .../navigation/navbar/web_app/web_app.scss | 31 +- .../src/components/postgres_logo/mod.rs | 7 - .../components/postgres_logo/template.html | 2 +- .../src/components/static_nav/mod.rs | 14 - pgml-dashboard/src/guards.rs | 45 +- pgml-dashboard/src/lib.rs | 587 +++++++++++++++++- pgml-dashboard/src/main.rs | 23 +- pgml-dashboard/src/models.rs | 5 - pgml-dashboard/src/templates/mod.rs | 16 +- pgml-dashboard/src/utils/mod.rs | 1 - pgml-dashboard/src/utils/urls.rs | 69 -- .../static/css/scss/base/_font.scss | 11 - .../static/css/scss/components/_icon.scss | 50 +- .../static/css/scss/components/_navs.scss | 7 +- .../static/css/scss/layout/_containers.scss | 10 +- pgml-dashboard/static/fonts/icomoon.eot | Bin 1584 -> 0 bytes pgml-dashboard/static/fonts/icomoon.ttf | Bin 1420 -> 0 bytes pgml-dashboard/static/fonts/icomoon.woff | Bin 1496 -> 0 bytes .../static/js/extend-bs-collapse.js | 15 +- pgml-dashboard/static/js/notebook.js | 6 +- .../content/dashboard/panels/cell.html | 11 +- .../content/dashboard/panels/deployment.html | 5 +- .../content/dashboard/panels/model.html | 5 +- .../content/dashboard/panels/models.html | 3 +- .../content/dashboard/panels/notebook.html | 7 +- .../content/dashboard/panels/notebooks.html | 9 +- .../content/dashboard/panels/project.html | 3 +- .../content/dashboard/panels/projects.html | 3 +- .../content/dashboard/panels/snapshot.html | 5 +- .../content/dashboard/panels/snapshots.html | 3 +- .../content/dashboard/panels/uploaded.html | 5 +- .../content/dashboard/panels/uploader.html | 3 +- .../content/dashboard/tabs/model_tab.html | 3 +- .../content/dashboard/tabs/models_tab.html | 3 +- .../content/dashboard/tabs/notebook_tab.html | 3 +- .../content/dashboard/tabs/notebooks_tab.html | 4 +- .../content/dashboard/tabs/project_tab.html | 4 +- .../content/dashboard/tabs/projects_tab.html | 4 +- .../content/dashboard/tabs/snapshot_tab.html | 3 +- .../content/dashboard/tabs/snapshots_tab.html | 3 +- .../content/dashboard/tabs/uploader_tab.html | 6 +- pgml-dashboard/templates/content/undo.html | 5 +- .../templates/layout/web_app_base.html | 23 +- 63 files changed, 806 insertions(+), 1309 deletions(-) delete mode 100644 pgml-dashboard/src/api/deployment/deployment_models.rs delete mode 100644 pgml-dashboard/src/api/deployment/mod.rs delete mode 100644 pgml-dashboard/src/api/deployment/notebooks.rs delete mode 100644 pgml-dashboard/src/api/deployment/projects.rs delete mode 100644 pgml-dashboard/src/api/deployment/snapshots.rs delete mode 100644 pgml-dashboard/src/api/deployment/uploader.rs delete mode 100644 pgml-dashboard/src/components/left_nav_menu/left-nav-menu.js delete mode 100644 pgml-dashboard/src/components/navigation/left_nav/web_app/web_app_controller.js delete mode 100644 pgml-dashboard/src/utils/urls.rs delete mode 100644 pgml-dashboard/static/fonts/icomoon.eot delete mode 100644 pgml-dashboard/static/fonts/icomoon.ttf delete mode 100644 pgml-dashboard/static/fonts/icomoon.woff diff --git a/pgml-dashboard/src/api/cms.rs b/pgml-dashboard/src/api/cms.rs index c42329e4d..608273ef0 100644 --- a/pgml-dashboard/src/api/cms.rs +++ b/pgml-dashboard/src/api/cms.rs @@ -1123,7 +1123,7 @@ This is the end of the markdown } } - // Ensure Docs render and there are no unparsed gitbook compnents. + // Ensure Docs render and ther are no unparsed gitbook compnents. #[sqlx::test] async fn render_guides_test() { let client = Client::tracked(rocket().await).await.unwrap(); diff --git a/pgml-dashboard/src/api/deployment/deployment_models.rs b/pgml-dashboard/src/api/deployment/deployment_models.rs deleted file mode 100644 index 35e832b26..000000000 --- a/pgml-dashboard/src/api/deployment/deployment_models.rs +++ /dev/null @@ -1,115 +0,0 @@ -use rocket::route::Route; -use sailfish::TemplateOnce; - -use crate::{ - guards::ConnectedCluster, - responses::{Error, ResponseOk}, -}; - -use crate::templates::{components::NavLink, *}; - -use crate::models; -use crate::templates; -use crate::utils::tabs; -use crate::utils::urls; - -use std::collections::HashMap; - -// Returns models page -#[get("/models")] -pub async fn deployment_models(cluster: ConnectedCluster<'_>) -> Result