Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dan docs#671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
chillenberger merged 29 commits intomasterfromdan-docs
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
29 commits
Select commitHold shift + click to select a range
036e6ee
move content into dashboard app
montanalowMay 13, 2023
3ce5d44
module-shims are not executed by turbo
montanalowMay 15, 2023
358d081
remove debugging logs
montanalowMay 15, 2023
0af49fb
start moving to /dashboard
montanalowMay 15, 2023
91797d7
path
montanalowMay 15, 2023
8a4d326
path
montanalowMay 15, 2023
0d95349
path
montanalowMay 15, 2023
d8114d2
fix dashboard static urls
montanalowMay 15, 2023
8b7fcad
global nav bar, make dashboard tabs, pass visible clusters to pgml_da…
chillenbergerMay 23, 2023
59da396
add uploader, reroute links
chillenbergerMay 24, 2023
dbed112
format
chillenbergerMay 24, 2023
e2c4566
format
chillenbergerMay 24, 2023
a63ca02
direct blog image urls to dashboard
chillenbergerMay 24, 2023
7bd03d2
scss refactor, separate scss into 7-1 pattern files
chillenbergerMay 25, 2023
2ad1b11
prevent header concatenation
chillenbergerMay 31, 2023
4bff7de
format
chillenbergerMay 31, 2023
a619a0c
add notebook scss
chillenbergerJun 1, 2023
80738a9
Merge branch 'master' into dan-docs
chillenbergerJun 1, 2023
cb42483
rebase to master
chillenbergerJun 1, 2023
a47f23f
Make work after rebase to main, fix notbook styles, bring code highli…
chillenbergerJun 2, 2023
3188717
add scss from hypercloud to posgresml for code line highlighting
chillenbergerJun 2, 2023
646976f
remove dead code, refactor response
chillenbergerJun 2, 2023
86f84fb
format
chillenbergerJun 2, 2023
aac253b
fix env variables for prod
chillenbergerJun 2, 2023
cfe6cdd
Fix not loading any stimulus controllers (#674)
levkkJun 3, 2023
203bf72
removed escaping from model
chillenbergerJun 5, 2023
a1b13a1
remove encrypt and decrypt and format
chillenbergerJun 5, 2023
8590dd6
move random string to util mod and remvoe secure file
chillenbergerJun 5, 2023
c96b984
remove dep (#687)
levkkJun 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
format
  • Loading branch information
@chillenberger
chillenberger committedMay 24, 2023
commitdbed11259e445c74cc31f14334d0eeb67c0480cc
24 changes: 11 additions & 13 deletionspgml-dashboard/src/lib.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,7 +21,7 @@ pub mod templates;
pub mod utils;

use crate::templates::{
DeploymentsTab, Layout, ModelsTab, NotebooksTab, ProjectsTab, SnapshotsTab, UploaderTab
DeploymentsTab, Layout, ModelsTab, NotebooksTab, ProjectsTab, SnapshotsTab, UploaderTab,
};
use crate::utils::tabs;
use guards::Cluster;
Expand DownExpand Up@@ -527,8 +527,8 @@ pub async fn uploaded_index(cluster: Cluster, table_name: &str) -> ResponseOk {

#[get("/?<tab>&<notebook_id>&<model_id>&<project_id>&<snapshot_id>&<deployment_id>&<table_name>")]
pub async fn dashboard(
cluster: Cluster,
tab: Option<&str>,
cluster: Cluster,
tab: Option<&str>,
notebook_id: Option<i64>,
model_id: Option<i64>,
project_id: Option<i64>,
Expand All@@ -542,8 +542,6 @@ pub async fn dashboard(
Some(cluster.context.user.clone())
};

println!("table name: {:?}", table_name);

let mut layout = crate::templates::Layout::new("Dashboard");

if user.is_some() {
Expand All@@ -553,28 +551,28 @@ pub async fn dashboard(
let all_tabs = vec![
tabs::Tab {
name: "Notebooks",
content: NotebooksTab {notebook_id}.render_once().unwrap(),
content: NotebooksTab {notebook_id}.render_once().unwrap(),
},
tabs::Tab {
name: "Projects",
content: ProjectsTab {project_id}.render_once().unwrap(),
content: ProjectsTab {project_id}.render_once().unwrap(),
},
tabs::Tab {
name: "Models",
content: ModelsTab {model_id}.render_once().unwrap(),
content: ModelsTab {model_id}.render_once().unwrap(),
},
tabs::Tab {
name: "Deployments",
content: DeploymentsTab {deployment_id}.render_once().unwrap(),
content: DeploymentsTab {deployment_id}.render_once().unwrap(),
},
tabs::Tab {
name: "Snapshots",
content: SnapshotsTab {snapshot_id}.render_once().unwrap(),
content: SnapshotsTab {snapshot_id}.render_once().unwrap(),
},
tabs::Tab {
name: "Upload_Data",
content: UploaderTab{table_name}.render_once().unwrap(),
}
name: "Upload_Data",
content: UploaderTab {table_name}.render_once().unwrap(),
},
];

let nav_tabs = tabs::Tabs::new(all_tabs, Some("Notebooks"), tab)?;
Expand Down
2 changes: 1 addition & 1 deletionpgml-dashboard/src/templates/mod.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -404,5 +404,5 @@ pub struct SnapshotsTab {
#[derive(TemplateOnce)]
#[template(path = "content/dashboard/tabs/uploader_tab.html")]
pub struct UploaderTab {
pub table_name: Option<String>,
pub table_name: Option<String>,
}

[8]ページ先頭

©2009-2025 Movatter.jp