repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/widgets/highlight.rs
crates/netpurr/src/widgets/highlight.rs
use std::collections::BTreeMap; use eframe::epaint::text::{LayoutJob, TextFormat}; use egui::{Color32, Ui}; use regex::Regex; use netpurr_core::data::environment::EnvironmentItemValue; pub fn highlight_template( mut text: &str, size: f32, ui: &Ui, envs: BTreeMap<String, EnvironmentItemValue>, ) -> La...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/widgets/syntax.rs
crates/netpurr/src/widgets/syntax.rs
use std::collections::BTreeSet; use egui_code_editor::Syntax; pub fn js_syntax() -> Syntax { Syntax { language: "JavaScript", case_sensitive: true, comment: "//", comment_multiline: ["/*", "*/"], hyperlinks: Default::default(), keywords: BTreeSet::from([ ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/widgets/empty_container.rs
crates/netpurr/src/widgets/empty_container.rs
use eframe::emath::{Align2, pos2, Rect, vec2, Vec2}; use eframe::epaint::Stroke; use egui::{Id, Response, Shape, Ui}; /// A region that can be resized by dragging the bottom right corner. #[derive(Clone, Copy, Debug)] #[must_use = "You should call .show()"] pub struct EmptyContainer { id: Option<Id>, id_source...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/widgets/mod.rs
crates/netpurr/src/widgets/mod.rs
mod empty_container; pub mod highlight; pub mod highlight_template; pub mod matrix_label; pub mod syntax;
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/widgets/highlight_template.rs
crates/netpurr/src/widgets/highlight_template.rs
use std::collections::BTreeMap; use eframe::emath::pos2; use egui::{ Context, EventFilter, Id, Key, Pos2, Response, RichText, TextBuffer, TextEdit, Ui, Widget, }; use egui::ahash::HashSet; use egui::text::{CCursor, CCursorRange, CursorRange}; use egui::text_edit::TextEditState; use serde::{Deserialize, Seriali...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/windows/import_windows.rs
crates/netpurr/src/windows/import_windows.rs
use std::fs::File; use std::io::Read; use std::path::PathBuf; use egui::{Direction, Layout, Ui}; use strum::IntoEnumIterator; use strum_macros::{Display, EnumIter, EnumString}; use netpurr_core::data::workspace_data::WorkspaceData; use crate::data::config_data::ConfigData; use crate::data::export::{Export, ExportTyp...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/windows/test_script_windows.rs
crates/netpurr/src/windows/test_script_windows.rs
use egui::Ui; use poll_promise::Promise; use netpurr_core::data::workspace_data::WorkspaceData; use netpurr_core::script::{Context, ScriptScope}; use crate::data::config_data::ConfigData; use crate::operation::operation::Operation; use crate::operation::windows::{Window, WindowSetting}; use crate::utils; #[derive(De...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/windows/request_close_windows.rs
crates/netpurr/src/windows/request_close_windows.rs
use egui::Ui; use netpurr_core::data::workspace_data::WorkspaceData; use crate::data::config_data::ConfigData; use crate::operation::operation::Operation; use crate::operation::windows::{Window, WindowSetting}; use crate::panels::VERTICAL_GAP; use crate::windows::save_windows::SaveWindows; #[derive(Default)] pub str...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/windows/save_windows.rs
crates/netpurr/src/windows/save_windows.rs
use std::cell::RefCell; use std::collections::BTreeMap; use std::rc::Rc; use egui::{Align, Button, Layout, ScrollArea, Ui}; use netpurr_core::data::collections::{Collection, CollectionFolder}; use netpurr_core::data::record::Record; use netpurr_core::data::workspace_data::WorkspaceData; use crate::data::config_data:...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/windows/new_collection_windows.rs
crates/netpurr/src/windows/new_collection_windows.rs
use std::cell::RefCell; use std::default::Default; use std::rc::Rc; use egui::{Align, Button, Checkbox, Layout, TextEdit, Ui, Widget}; use egui_extras::{Column, TableBuilder}; use strum::IntoEnumIterator; use strum_macros::{Display, EnumIter, EnumString}; use netpurr_core::data::auth::{Auth, AuthType}; use netpurr_co...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/windows/mod.rs
crates/netpurr/src/windows/mod.rs
pub mod cookies_windows; pub mod environment_windows; pub mod import_windows; pub mod manager_testcase_window; pub mod new_collection_windows; pub mod request_close_windows; pub mod save_crt_windows; pub mod save_windows; pub mod test_script_windows; pub mod view_json_windows; pub mod workspace_windows;
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/windows/cookies_windows.rs
crates/netpurr/src/windows/cookies_windows.rs
use std::collections::BTreeSet; use eframe::emath::Align; use egui::{Button, Layout, ScrollArea, Ui}; use netpurr_core::data::cookies_manager::Cookie; use netpurr_core::data::workspace_data::WorkspaceData; use crate::data::config_data::ConfigData; use crate::operation::operation::Operation; use crate::operation::win...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/windows/manager_testcase_window.rs
crates/netpurr/src/windows/manager_testcase_window.rs
use std::collections::{BTreeMap, HashMap}; use egui::{Color32, RichText, Ui}; use serde_json::Value; use egui_code_editor::{CodeEditor, ColorTheme}; use netpurr_core::data::collections::Testcase; use netpurr_core::data::workspace_data::WorkspaceData; use crate::data::config_data::ConfigData; use crate::operation::op...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/windows/workspace_windows.rs
crates/netpurr/src/windows/workspace_windows.rs
use std::path::PathBuf; use egui::{Spinner, Ui, Widget}; use poll_promise::Promise; use rustygit::Repository; use netpurr_core::data::workspace_data::WorkspaceData; use crate::data::config_data::ConfigData; use crate::data::workspace::Workspace; use crate::operation::operation::Operation; use crate::operation::windo...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/windows/environment_windows.rs
crates/netpurr/src/windows/environment_windows.rs
use egui::{Align, Button, Checkbox, Layout, ScrollArea, TextEdit, Ui, Widget}; use egui_extras::{Column, TableBuilder}; use netpurr_core::data::environment::{ENVIRONMENT_GLOBALS, EnvironmentConfig, EnvironmentItem}; use netpurr_core::data::workspace_data::WorkspaceData; use crate::data::config_data::ConfigData; use c...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/windows/view_json_windows.rs
crates/netpurr/src/windows/view_json_windows.rs
use egui::{Align, Button, Layout, Ui}; use serde_json::Value; use egui_json_tree::{DefaultExpand, JsonTree}; use netpurr_core::data::workspace_data::WorkspaceData; use crate::data::config_data::ConfigData; use crate::operation::operation::Operation; use crate::operation::windows::{Window, WindowSetting}; #[derive(De...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/windows/save_crt_windows.rs
crates/netpurr/src/windows/save_crt_windows.rs
use std::cell::RefCell; use std::collections::BTreeMap; use std::rc::Rc; use chrono::format::format; use egui::{Align, Button, Layout, ScrollArea, Ui}; use netpurr_core::data::collections::{Collection, CollectionFolder}; use netpurr_core::data::workspace_data::WorkspaceData; use crate::data::config_data::ConfigData;...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/websocket_event_panel.rs
crates/netpurr/src/panels/websocket_event_panel.rs
use std::collections::BTreeMap; use chrono::format::StrftimeItems; use eframe::emath::Align; use egui::{Layout, RichText, Ui}; use egui_extras::{Column, TableBuilder}; use strum::IntoEnumIterator; use strum_macros::{Display, EnumIter, EnumString}; use netpurr_core::data::central_request_data::CentralRequestItem; use ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/request_body_panel.rs
crates/netpurr/src/panels/request_body_panel.rs
use egui::{Ui, Widget}; use serde_json::Value; use strum::IntoEnumIterator; use uuid::Uuid; use netpurr_core::data::http::{BodyRawType, BodyType}; use netpurr_core::data::workspace_data::WorkspaceData; use crate::operation::operation::Operation; use crate::panels::{HORIZONTAL_GAP, VERTICAL_GAP}; use crate::panels::re...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/response_panel.rs
crates/netpurr/src/panels/response_panel.rs
use std::collections::BTreeMap; use egui::{Color32, RichText, Ui}; use strum::IntoEnumIterator; use strum_macros::{Display, EnumIter, EnumString}; use netpurr_core::data::cookies_manager::Cookie; use netpurr_core::data::http::{Response, ResponseStatus}; use netpurr_core::data::test::{TestResult, TestStatus}; use netp...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/request_params_panel.rs
crates/netpurr/src/panels/request_params_panel.rs
use std::collections::BTreeMap; use eframe::emath::Align; use egui::{Button, Checkbox, Layout, TextEdit, Ui, Widget}; use egui_extras::{Column, TableBody, TableBuilder}; use netpurr_core::data::central_request_data::CentralRequestItem; use netpurr_core::data::environment::EnvironmentItemValue; use netpurr_core::data:...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/bottom_panel.rs
crates/netpurr/src/panels/bottom_panel.rs
use egui::{Response, Ui, WidgetText}; use poll_promise::Promise; use netpurr_core::data::workspace_data::WorkspaceData; use crate::data::config_data::ConfigData; use crate::operation::operation::Operation; use crate::panels::VERTICAL_GAP; use crate::utils; #[derive(Default)] pub struct BottomPanel { sync_promise...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/response_cookies_panel.rs
crates/netpurr/src/panels/response_cookies_panel.rs
use std::collections::BTreeMap; use netpurr_core::data::cookies_manager::Cookie; #[derive(Default)] pub struct ResponseCookiesPanel {} impl ResponseCookiesPanel { pub fn set_and_render(&mut self, ui: &mut egui::Ui, cookies: &BTreeMap<String, Cookie>) { ui.label("Cookies"); egui::Grid::new("respon...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/openapi_editor_panel.rs
crates/netpurr/src/panels/openapi_editor_panel.rs
use egui::{TextEdit, Ui, Widget}; use netpurr_core::data::workspace_data::WorkspaceData; use crate::data::config_data::ConfigData; #[derive(Default)] pub struct OpenApiEditorPanel { source: String, collection_name: String, } impl OpenApiEditorPanel { pub fn render( &mut self, workspace_d...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/response_body_panel.rs
crates/netpurr/src/panels/response_body_panel.rs
use egui::{Image, TextBuffer}; use uuid::Uuid; use netpurr_core::data::http::{Header, Response}; use crate::operation::operation::Operation; use crate::windows::view_json_windows::ViewJsonWindows; #[derive(Default)] pub struct ResponseBodyPanel {} impl ResponseBodyPanel { pub fn set_and_render( &mut sel...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/manager_testcase_panel.rs
crates/netpurr/src/panels/manager_testcase_panel.rs
use std::collections::{BTreeMap, HashMap}; use eframe::epaint::Color32; use egui::{RichText, Ui}; use serde_json::Value; use egui_code_editor::{CodeEditor, ColorTheme}; use netpurr_core::data::collections::Testcase; use netpurr_core::data::workspace_data::{TestItem, WorkspaceData}; use crate::utils; use crate::widge...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/auth_panel.rs
crates/netpurr/src/panels/auth_panel.rs
use std::cell::RefCell; use std::collections::BTreeMap; use std::rc::Rc; use egui::{Ui, Widget}; use strum::IntoEnumIterator; use netpurr_core::data::auth::{Auth, AuthType}; use netpurr_core::data::collections::{Collection, CollectionFolder}; use netpurr_core::data::environment::EnvironmentItemValue; use crate::pane...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/websocket_content_panel.rs
crates/netpurr/src/panels/websocket_content_panel.rs
use egui::{Ui, Widget}; use strum::IntoEnumIterator; use netpurr_core::data::websocket::MessageType; use netpurr_core::data::workspace_data::WorkspaceData; use crate::operation::operation::Operation; use crate::panels::{HORIZONTAL_GAP, VERTICAL_GAP}; use crate::widgets::highlight_template::HighlightTemplateSingleline...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/response_headers_panel.rs
crates/netpurr/src/panels/response_headers_panel.rs
use netpurr_core::data::http::Response; #[derive(Default)] pub struct ResponseHeadersPanel {} impl ResponseHeadersPanel { pub fn set_and_render(&mut self, ui: &mut egui::Ui, response: &Response) { ui.label("Headers"); egui::Grid::new("response_headers_grid") .striped(true) ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/websocket_panel.rs
crates/netpurr/src/panels/websocket_panel.rs
use eframe::epaint::ahash::HashSet; use egui::{Ui, Widget}; use strum::IntoEnumIterator; use strum_macros::{Display, EnumIter, EnumString}; use url::Url; use netpurr_core::data::auth::{Auth, AuthType}; use netpurr_core::data::http::HttpRecord; use netpurr_core::data::websocket::WebSocketStatus; use netpurr_core::data:...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/selected_workspace_panel.rs
crates/netpurr/src/panels/selected_workspace_panel.rs
use eframe::emath::Align; use egui::{Layout, Ui}; use netpurr_core::data::workspace_data::WorkspaceData; use crate::data::config_data::ConfigData; use crate::operation::operation::Operation; use crate::panels::HORIZONTAL_GAP; use crate::utils; use crate::widgets::matrix_label::{MatrixLabel, MatrixLabelType}; use crat...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/rest_panel.rs
crates/netpurr/src/panels/rest_panel.rs
use egui::{Button, Ui, Widget}; use egui::ahash::HashSet; use poll_promise::Promise; use strum::IntoEnumIterator; use strum_macros::{Display, EnumIter, EnumString}; use netpurr_core::data::auth::{Auth, AuthType}; use netpurr_core::data::http::{BodyType, HttpRecord, LockWith, Method}; use netpurr_core::data::test::Test...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/test_group_panel.rs
crates/netpurr/src/panels/test_group_panel.rs
use std::cell::RefCell; use std::fmt::format; use std::rc::Rc; use egui::{ScrollArea, Ui}; use netpurr_core::data::collections::CollectionFolder; use netpurr_core::data::workspace_data::{TestItem, WorkspaceData}; use crate::data::config_data::ConfigData; use crate::operation::operation::Operation; use crate::utils; ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/mod.rs
crates/netpurr/src/panels/mod.rs
pub mod auth_panel; pub mod bottom_panel; pub mod collection_panel; pub mod history_panel; pub mod left_panel; pub mod manager_testcase_panel; pub mod openapi_editor_panel; pub mod openapi_show_request_panel; pub mod request_body_form_data_panel; pub mod request_body_panel; pub mod request_body_xxx_form_panel; pub mod ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/test_script_panel.rs
crates/netpurr/src/panels/test_script_panel.rs
use std::cell::RefCell; use std::ops::Add; use std::rc::Rc; use egui::Ui; use prettify_js::prettyprint; use egui_code_editor::{CodeEditor, ColorTheme, Prompt}; use netpurr_core::data::collections::CollectionFolder; use netpurr_core::data::workspace_data::{TestItem, WorkspaceData}; use crate::widgets::syntax::js_synt...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/request_pre_script_panel.rs
crates/netpurr/src/panels/request_pre_script_panel.rs
use std::ops::Add; use egui::Ui; use prettify_js::prettyprint; use egui_code_editor::{CodeEditor, ColorTheme, Prompt}; use netpurr_core::data::workspace_data::{TestItem, WorkspaceData}; use crate::widgets::syntax::js_syntax; #[derive(Default)] pub struct RequestPreScriptPanel {} impl RequestPreScriptPanel { pu...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/request_body_xxx_form_panel.rs
crates/netpurr/src/panels/request_body_xxx_form_panel.rs
use std::collections::BTreeMap; use eframe::emath::Align; use egui::{Button, Checkbox, Layout, TextBuffer, TextEdit, Widget}; use egui_extras::{Column, TableBody, TableBuilder}; use netpurr_core::data::central_request_data::CentralRequestItem; use netpurr_core::data::environment::EnvironmentItemValue; use netpurr_cor...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/openapi_show_request_panel.rs
crates/netpurr/src/panels/openapi_show_request_panel.rs
use std::cell::RefCell; use std::collections::BTreeMap; use std::rc::Rc; use egui::{CollapsingHeader, Response, Ui}; use uuid::Uuid; use netpurr_core::data::central_request_data::CentralRequestItem; use netpurr_core::data::collections::{Collection, CollectionFolder}; use netpurr_core::data::record::Record; use netpur...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/request_headers_panel.rs
crates/netpurr/src/panels/request_headers_panel.rs
use std::collections::BTreeMap; use eframe::emath::Align; use egui::{Button, Checkbox, Layout, TextEdit, Widget}; use egui_extras::{Column, TableBody, TableBuilder}; use netpurr_core::data::central_request_data::CentralRequestItem; use netpurr_core::data::environment::EnvironmentItemValue; use netpurr_core::data::htt...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/request_body_form_data_panel.rs
crates/netpurr/src/panels/request_body_form_data_panel.rs
use std::collections::BTreeMap; use eframe::emath::Align; use egui::{Button, Checkbox, Layout, TextBuffer, TextEdit, Widget}; use egui_extras::{Column, TableBody, TableBuilder, TableRow}; use strum::IntoEnumIterator; use netpurr_core::data::central_request_data::CentralRequestItem; use netpurr_core::data::environment...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/response_log_panel.rs
crates/netpurr/src/panels/response_log_panel.rs
use netpurr_core::data::http::Response; #[derive(Default)] pub struct ResponseLogPanel {} impl ResponseLogPanel { pub fn set_and_render(&mut self, ui: &mut egui::Ui, response: &Response) { let theme = egui_extras::syntax_highlighting::CodeTheme::from_memory(ui.ctx()); let mut layouter = |ui: &egui...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/test_editor_panel.rs
crates/netpurr/src/panels/test_editor_panel.rs
use std::cell::RefCell; use std::ops::Deref; use std::path::PathBuf; use std::rc::Rc; use std::sync::{Arc, RwLock}; use eframe::epaint::{Color32, FontFamily, FontId}; use egui::{Align, FontSelection, RichText, Style, Ui}; use egui::text::LayoutJob; use log::info; use poll_promise::Promise; use strum::IntoEnumIterator;...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/test_result_panel.rs
crates/netpurr/src/panels/test_result_panel.rs
use eframe::epaint::FontFamily; use egui::{Color32, FontId, TextFormat}; use egui::text::LayoutJob; use netpurr_core::data::test::{TestResult, TestStatus}; use crate::panels::HORIZONTAL_GAP; #[derive(Default)] pub struct TestResultPanel {} impl TestResultPanel { pub fn set_and_render(&mut self, ui: &mut egui::U...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/top_panel.rs
crates/netpurr/src/panels/top_panel.rs
use egui::Ui; use poll_promise::Promise; use strum::IntoEnumIterator; use netpurr_core::data::workspace_data::{EditorModel, WorkspaceData}; use crate::data::config_data::ConfigData; use crate::operation::operation::Operation; use crate::panels::{HORIZONTAL_GAP, VERTICAL_GAP}; use crate::utils; use crate::windows::imp...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/left_panel.rs
crates/netpurr/src/panels/left_panel.rs
use eframe::emath::Align; use egui::{Label, Layout, Link, RichText, ScrollArea, Sense, Ui, Widget}; use netpurr_core::data::environment::ENVIRONMENT_GLOBALS; use netpurr_core::data::workspace_data::{EditorModel, WorkspaceData}; use crate::data::config_data::ConfigData; use crate::operation::operation::Operation; use ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/collection_panel.rs
crates/netpurr/src/panels/collection_panel.rs
use std::cell::RefCell; use std::collections::BTreeMap; use std::rc::Rc; use egui::{CollapsingHeader, Response, Ui}; use uuid::Uuid; use netpurr_core::data::central_request_data::CentralRequestItem; use netpurr_core::data::collections::{Collection, CollectionFolder}; use netpurr_core::data::http::{HttpRecord, Request...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/selected_collection_panel.rs
crates/netpurr/src/panels/selected_collection_panel.rs
use eframe::emath::Align; use egui::{Color32, FontSelection, Label, RichText, Style, Ui, Widget}; use netpurr_core::data::record::Record; use netpurr_core::data::workspace_data::{EditorModel, WorkspaceData}; use crate::data::config_data::ConfigData; use crate::operation::operation::Operation; use crate::panels::left_...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/panels/history_panel.rs
crates/netpurr/src/panels/history_panel.rs
use egui::CollapsingHeader; use netpurr_core::data::central_request_data::CentralRequestItem; use netpurr_core::data::workspace_data::WorkspaceData; use crate::utils; #[derive(Default)] pub struct HistoryPanel {} impl HistoryPanel { pub fn set_and_render(&mut self, ui: &mut egui::Ui, workspace_data: &mut Worksp...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/data/workspace.rs
crates/netpurr/src/data/workspace.rs
use std::path::PathBuf; use rustygit::Repository; #[derive(Clone, PartialEq, Eq, Debug)] pub struct Workspace { pub name: String, pub path: PathBuf, pub enable_git: Option<bool>, pub remote_url: Option<String>, } impl Workspace { pub fn if_enable_git(&mut self) -> bool { if let Some(git) ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/data/mod.rs
crates/netpurr/src/data/mod.rs
use std::fmt::Display; use std::io::{Read, Write}; use std::str::FromStr; use base64::Engine; use egui::TextBuffer; use serde::{Deserialize, Serialize}; use strum::IntoEnumIterator; pub mod config_data; pub mod export; pub mod workspace;
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/data/export.rs
crates/netpurr/src/data/export.rs
use serde::{Deserialize, Serialize}; use netpurr_core::data::collections::Collection; #[derive(Default, Clone, Debug, Serialize, Deserialize)] #[serde(default)] pub struct Export { pub openapi: Option<String>, pub info: Option<PostmanInfo>, pub export_type: ExportType, pub collection: Option<Collectio...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/data/config_data.rs
crates/netpurr/src/data/config_data.rs
use std::collections::BTreeMap; use std::fs; use std::fs::File; use std::io::{Error, Read, Write}; use std::path::Path; use serde::{Deserialize, Serialize}; use crate::APP_NAME; use crate::data::workspace::Workspace; #[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)] #[serde(default)] pub struct ConfigDa...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/import/postman.rs
crates/netpurr/src/import/postman.rs
use std::cell::RefCell; use std::collections::BTreeMap; use std::rc::Rc; use std::str::FromStr; use anyhow::anyhow; use serde::{Deserialize, Serialize}; use netpurr_core::data::auth::{Auth, AuthType}; use netpurr_core::data::collections::{Collection, CollectionFolder}; use netpurr_core::data::environment::{Environmen...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/import/mod.rs
crates/netpurr/src/import/mod.rs
pub mod openapi; pub mod postman;
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr/src/import/openapi.rs
crates/netpurr/src/import/openapi.rs
use std::cell::RefCell; use std::collections::{BTreeMap, HashMap}; use std::rc::Rc; use std::string::ToString; use anyhow::anyhow; use base64::Engine; use base64::engine::general_purpose; use openapiv3::{ MediaType, OpenAPI, Operation, Parameter, ReferenceOr, RequestBody, SchemaKind, Server, StringFormat, Tag,...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/lib.rs
crates/netpurr_core/src/lib.rs
extern crate core; pub mod data; pub mod persistence; pub mod runner; pub mod script; pub mod utils; pub const APP_NAME: &str = "Netpurr";
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/persistence.rs
crates/netpurr_core/src/persistence.rs
use std::fmt::Display; use std::fs; use std::fs::File; use std::io::{Read, Write}; use std::path::PathBuf; use std::string::ToString; use log::error; use serde::de::DeserializeOwned; use serde::Serialize; use crate::APP_NAME; pub const PERSISTENCE_EXTENSION_RAW: &str = "yaml"; pub const PERSISTENCE_EXTENSION: &str =...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/utils.rs
crates/netpurr_core/src/utils.rs
use std::collections::{BTreeMap, HashSet}; use std::str::FromStr; use regex::Regex; use crate::data::environment::{EnvironmentItemValue, EnvironmentValueType}; use crate::data::environment_function::{EnvFunction, get_env_result}; pub fn replace_variable(content: String, envs: BTreeMap<String, EnvironmentItemValue>) ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/runner/test.rs
crates/netpurr_core/src/runner/test.rs
use std::cell::RefCell; use std::collections::BTreeMap; use std::rc::Rc; use serde::{Deserialize, Serialize}; use crate::data::collections::{CollectionFolder, Testcase}; use crate::data::test::TestStatus; use crate::runner::{TestGroupRunResults, TestRunError, TestRunResult}; #[derive(Default, Clone, Serialize, Deser...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/runner/rest.rs
crates/netpurr_core/src/runner/rest.rs
use std::collections::{BTreeMap, HashMap}; use std::path::Path; use std::str::FromStr; use std::sync::Arc; use std::time::Instant; use anyhow::anyhow; use log::info; use reqwest::{Body, Client, multipart}; use reqwest::header::CONTENT_TYPE; use reqwest::Method; use reqwest::multipart::Part; use tokio::fs::File; use to...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/runner/websocket.rs
crates/netpurr_core/src/runner/websocket.rs
use std::sync::{Arc, mpsc, Mutex}; use std::sync::mpsc::{Receiver, Sender}; use base64::Engine; use base64::engine::general_purpose; use chrono::Local; use deno_core::futures::{SinkExt, StreamExt}; use tokio_tungstenite::connect_async; use tokio_tungstenite::tungstenite::client::IntoClientRequest; use tokio_tungstenit...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/runner/html_report.rs
crates/netpurr_core/src/runner/html_report.rs
use serde::{Serialize, Deserialize}; #[derive(Serialize, Deserialize)] pub struct HtmlReport { #[serde(rename = "testPass")] pub test_pass: usize, #[serde(rename = "testSkip")] pub test_skip: usize, #[serde(rename = "totalTime")] pub total_time: String, #[serde(rename = "testAll")] p...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/runner/mod.rs
crates/netpurr_core/src/runner/mod.rs
use std::cell::RefCell; use std::collections::{BTreeMap, HashMap}; use std::fmt::Debug; use std::fs::File; use std::io::Write; use std::path::PathBuf; use std::rc::Rc; use std::str::FromStr; use std::sync::{Arc, RwLock}; use std::thread; use std::time::Duration; use anyhow::Error; use async_recursion::async_recursion;...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/script/mod.rs
crates/netpurr_core/src/script/mod.rs
use std::cell::RefCell; use std::cmp::max; use std::collections::{BTreeMap, HashMap}; use std::error; use std::fmt::{Display, Formatter}; use std::ops::Deref; use std::path::Path; use std::rc::Rc; use std::str::FromStr; use std::sync::{Arc, RwLock}; use std::time::Duration; use anyhow::Error; use deno_core::{Extension...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/test.rs
crates/netpurr_core/src/data/test.rs
use serde::{Deserialize, Serialize}; use strum_macros::Display; #[derive(Default, Clone, PartialEq, Eq, Debug, Serialize, Deserialize)] pub struct TestResult { pub status: TestStatus, open_test: Option<String>, append: Vec<TestAssertResult>, pub test_info_list: Vec<TestInfo>, } #[derive(Default, Clone...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/environment.rs
crates/netpurr_core/src/data/environment.rs
use std::collections::BTreeMap; use std::io::Error; use std::path::Path; use serde::{Deserialize, Serialize}; use strum::IntoEnumIterator; use strum_macros::Display; use crate::data::collections::Collection; use crate::data::environment_function::EnvFunction; use crate::persistence::{ get_persistence_path, Persis...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/http.rs
crates/netpurr_core/src/data/http.rs
use std::collections::BTreeMap; use std::path::Path; use std::str::FromStr; use std::sync::Arc; use base64::Engine; use base64::engine::general_purpose; use reqwest::header::HeaderMap; use serde::{Deserialize, Serialize}; use strum_macros::{Display, EnumIter, EnumString}; use tokio_tungstenite::tungstenite::client::In...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/central_request_data.rs
crates/netpurr_core/src/data/central_request_data.rs
use std::collections::{BTreeMap, HashMap}; use std::path::Path; use serde::{Deserialize, Serialize}; use uuid::Uuid; use crate::data::record::Record; use crate::data::record::Record::{Rest, WebSocket}; use crate::data::test::TestResult; use crate::data::websocket::WebSocketRecord; use crate::persistence::{get_persist...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/logger.rs
crates/netpurr_core/src/data/logger.rs
use chrono::{DateTime, Local}; use serde::{Deserialize, Serialize}; #[derive(Default, Clone, PartialEq, Eq, Debug, Serialize, Deserialize)] pub struct Logger { pub logs: Vec<Log>, } impl Logger { pub fn add_info(&mut self, scope: String, msg: String) { self.logs.push(Log { level: LogLevel:...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/websocket.rs
crates/netpurr_core/src/data/websocket.rs
use std::ops::{Deref, DerefMut}; use std::sync::{Arc, Mutex}; use std::sync::mpsc::Sender; use base64::Engine; use base64::engine::general_purpose; use chrono::{DateTime, Local}; use serde::{Deserialize, Serialize}; use strum_macros::{Display, EnumIter, EnumString}; use tokio_tungstenite::tungstenite::Message; use cr...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/environment_function.rs
crates/netpurr_core/src/data/environment_function.rs
use std::time::{SystemTime, UNIX_EPOCH}; use rand::Rng; use strum_macros::{Display, EnumIter, EnumString}; use uuid::Uuid; #[derive(EnumIter, EnumString, Display)] pub enum EnvFunction { RandomInt, UUID, Timestamp, } pub fn get_env_result(name: EnvFunction) -> String { match name { EnvFunctio...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/collections.rs
crates/netpurr_core/src/data/collections.rs
use std::cell::RefCell; use std::collections::{BTreeMap, HashMap}; use std::path::{Path, PathBuf}; use std::rc::Rc; use openapiv3::OpenAPI; use serde::{Deserialize, Serialize}; use serde_json::Value; use crate::data::auth::{Auth, AuthType}; use crate::data::environment::{EnvironmentConfig, EnvironmentItemValue}; use ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/history.rs
crates/netpurr_core/src/data/history.rs
use std::collections::BTreeMap; use std::io::Error; use std::path::Path; use std::str::FromStr; use chrono::{DateTime, Local, NaiveDate, Utc}; use serde::{Deserialize, Serialize}; use uuid::Uuid; use crate::data::record::Record; use crate::persistence::{Persistence, PersistenceItem}; #[derive(Default, Clone, Debug)]...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/auth.rs
crates/netpurr_core/src/data/auth.rs
use std::collections::BTreeMap; use base64::Engine; use base64::engine::general_purpose; use serde::{Deserialize, Serialize}; use strum_macros::{Display, EnumIter, EnumString}; use crate::data::environment::EnvironmentItemValue; use crate::data::http::{Header, LockWith}; use crate::utils; #[derive(Clone, PartialEq, ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/record.rs
crates/netpurr_core/src/data/record.rs
use std::collections::BTreeMap; use serde::{Deserialize, Serialize}; use crate::data::collections::Testcase; use crate::data::http::HttpRecord; use crate::data::websocket::WebSocketRecord; #[derive(Clone, Debug, Deserialize, Serialize)] pub enum Record { Rest(HttpRecord), WebSocket(WebSocketRecord), } impl ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/mod.rs
crates/netpurr_core/src/data/mod.rs
pub mod auth; pub mod central_request_data; pub mod collections; pub mod cookies_manager; pub mod environment; pub mod environment_function; pub mod history; pub mod http; pub mod logger; pub mod record; pub mod test; pub mod websocket; pub mod workspace_data;
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/workspace_data.rs
crates/netpurr_core/src/data/workspace_data.rs
use std::cell::RefCell; use std::collections::{BTreeMap, HashSet}; use std::rc::Rc; use chrono::NaiveDate; use log::error; use strum_macros::{Display, EnumIter}; use uuid::Uuid; use crate::data::auth::{Auth, AuthType}; use crate::data::central_request_data::{CentralRequestDataList, CentralRequestItem}; use crate::dat...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_core/src/data/cookies_manager.rs
crates/netpurr_core/src/data/cookies_manager.rs
use std::collections::{BTreeMap, BTreeSet}; use std::fs::File; use std::sync::Arc; use log::error; use serde::{Deserialize, Serialize}; use url::Url; use cookie_store::CookieDomain; use reqwest_cookie_store::{CookieStoreMutex, RawCookie}; use crate::persistence::{Persistence, PersistenceItem}; #[derive(Default, Clo...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/reqwest_cookie_store/src/lib.rs
crates/reqwest_cookie_store/src/lib.rs
#![allow(unused_imports)] #![deny(warnings, missing_debug_implementations, rust_2018_idioms)] #![cfg_attr(docsrs, feature(doc_cfg))] //! # Example //! The following example demonstrates loading a [`cookie_store::CookieStore`] (re-exported in this crate) from disk, and using it within a //! [`CookieStoreMutex`]. It then...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/highlighting.rs
crates/egui_code_editor/src/highlighting.rs
use super::syntax::{Syntax, TokenType, QUOTES, SEPARATORS}; use std::mem; #[derive(Default, Debug, PartialEq, PartialOrd, Eq, Ord)] /// Lexer and Token pub struct Token { ty: TokenType, buffer: String, } impl Token { pub fn new<S: Into<String>>(ty: TokenType, buffer: S) -> Self { Token { ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/lib.rs
crates/egui_code_editor/src/lib.rs
use std::collections::BTreeMap; use std::hash::{Hash, Hasher}; use egui::{Align, Area, Context, Event, EventFilter, Frame, Id, Key, Layout, Order, Pos2, pos2, Response, RichText, TextBuffer, Ui}; use egui::text::{CCursor, CCursorRange, CursorRange}; use egui::text_edit::TextEditState; #[cfg(feature = "egui")] use egui...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/tests.rs
crates/egui_code_editor/src/tests.rs
use super::*; #[test] fn numeric_float() { assert_eq!( Token::default().tokens(&Syntax::default(), "3.14"), [Token::new(TokenType::Numeric(true), "3.14")] ); } #[test] fn numeric_float_desription() { assert_eq!( Token::default().tokens(&Syntax::default(), "3.14_f32"), [ ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/themes/sonokai.rs
crates/egui_code_editor/src/themes/sonokai.rs
use super::ColorTheme; impl ColorTheme { /// Original Author: sainnhe <https://github.com/sainnhe/sonokai> /// Modified by p4ymak <https://github.com/p4ymak> pub const SONOKAI: ColorTheme = ColorTheme { name: "Sonokai", dark: true, bg: "#2c2e34", // bg0 cursor: "#...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/themes/gruvbox.rs
crates/egui_code_editor/src/themes/gruvbox.rs
use super::ColorTheme; impl ColorTheme { /// Author : Jakub Bartodziej <kubabartodziej@gmail.com> /// Theme uses the gruvbox dark palette with standard contrast <https://github.com/morhetz/gruvbox> pub const GRUVBOX: ColorTheme = ColorTheme { name: "Gruvbox", dark: true, bg: "#28282...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/themes/mod.rs
crates/egui_code_editor/src/themes/mod.rs
#![allow(dead_code)] pub mod ayu; pub mod github; pub mod gruvbox; pub mod sonokai; use super::syntax::TokenType; #[cfg(feature = "egui")] use egui::Color32; #[cfg(feature = "egui")] pub const ERROR_COLOR: Color32 = Color32::from_rgb(255, 0, 255); /// Array of default themes. pub const DEFAULT_THEMES: [ColorTheme; 8...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/themes/ayu.rs
crates/egui_code_editor/src/themes/ayu.rs
use super::ColorTheme; impl ColorTheme { /// Author: André Sá <enkodr@outlook.com> /// /// Based on the AYU theme colors from <https://github.com/dempfi/ayu> pub const AYU: ColorTheme = ColorTheme { name: "Ayu", dark: false, bg: "#fafafa", cursor: "#5c6166", // fore...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/themes/github.rs
crates/egui_code_editor/src/themes/github.rs
use super::ColorTheme; impl ColorTheme { /// Author : OwOSwordsman <owoswordsman@gmail.com> /// An unofficial GitHub theme, generated using colors from: <https://primer.style/primitives/colors> pub const GITHUB_DARK: ColorTheme = ColorTheme { name: "Github Dark", dark: true, bg: "#0...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/syntax/rust.rs
crates/egui_code_editor/src/syntax/rust.rs
use super::Syntax; use std::collections::BTreeSet; impl Syntax { pub fn rust() -> Self { Syntax { language: "Rust", case_sensitive: true, comment: "//", comment_multiline: ["/*", "*/"], hyperlinks: BTreeSet::from(["http"]), keywords: B...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/syntax/asm.rs
crates/egui_code_editor/src/syntax/asm.rs
use super::Syntax; use std::collections::BTreeSet; impl Syntax { pub fn asm() -> Self { Syntax { language: "Assembly", case_sensitive: false, comment: ";", comment_multiline: ["/*", "*/"], hyperlinks: BTreeSet::from(["http"]), keywords...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/syntax/shell.rs
crates/egui_code_editor/src/syntax/shell.rs
use super::Syntax; use std::collections::BTreeSet; impl Syntax { pub fn shell() -> Self { Syntax { language: "Shell", case_sensitive: true, comment: "#", hyperlinks: BTreeSet::from(["http"]), keywords: BTreeSet::from([ "echo", "rea...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/syntax/python.rs
crates/egui_code_editor/src/syntax/python.rs
use super::Syntax; use std::collections::BTreeSet; impl Syntax { pub fn python() -> Syntax { Syntax { language: "Python", case_sensitive: true, comment: "#", comment_multiline: [r#"'''"#, r#"'''"#], hyperlinks: BTreeSet::from(["http"]), ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/syntax/sql.rs
crates/egui_code_editor/src/syntax/sql.rs
use super::Syntax; use std::collections::BTreeSet; impl Syntax { pub fn sql() -> Self { Syntax { language: "SQL", case_sensitive: false, comment: "--", comment_multiline: ["/*", "*/"], hyperlinks: BTreeSet::from(["http"]), keywords: BT...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/syntax/mod.rs
crates/egui_code_editor/src/syntax/mod.rs
#![allow(dead_code)] pub mod asm; pub mod lua; pub mod python; pub mod rust; pub mod shell; pub mod sql; use std::collections::BTreeSet; use std::hash::{Hash, Hasher}; pub const SEPARATORS: [char; 1] = ['_']; pub const QUOTES: [char; 3] = ['\'', '"', '`']; type MultiLine = bool; type Float = bool; #[derive(Default,...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_code_editor/src/syntax/lua.rs
crates/egui_code_editor/src/syntax/lua.rs
use super::Syntax; use std::collections::BTreeSet; impl Syntax { pub fn lua() -> Syntax { Syntax { language: "Lua", case_sensitive: true, comment: "--", comment_multiline: ["--[[", "]]"], hyperlinks: BTreeSet::from(["http"]), keywords:...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/cookie_store/src/cookie_domain.rs
crates/cookie_store/src/cookie_domain.rs
use std; use std::convert::TryFrom; use cookie::Cookie as RawCookie; use idna; #[cfg(feature = "public_suffix")] use publicsuffix::{List, Psl, Suffix}; use serde_derive::{Deserialize, Serialize}; use url::{Host, Url}; use crate::utils::is_host_name; use crate::CookieError; pub fn is_match(domain: &str, request_url: ...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/cookie_store/src/lib.rs
crates/cookie_store/src/lib.rs
#![cfg_attr(docsrs, feature(doc_cfg))] //! # cookie_store //! Provides an implementation for storing and retrieving [`Cookie`]s per the path and domain matching //! rules specified in [RFC6265](https://datatracker.ietf.org/doc/html/rfc6265). //! //! ## Feature `preserve_order` //! If enabled, [`CookieStore`] will use [...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/cookie_store/src/cookie_store.rs
crates/cookie_store/src/cookie_store.rs
#[cfg(not(feature = "preserve_order"))] use std::collections::HashMap; use std::fmt::{self, Formatter}; use std::io::{BufRead, Write}; use std::iter; use std::ops::Deref; use cookie::Cookie as RawCookie; #[cfg(feature = "preserve_order")] use indexmap::IndexMap; use log::debug; use serde::de::{SeqAccess, Visitor}; use...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
true
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/cookie_store/src/utils.rs
crates/cookie_store/src/utils.rs
use std::net::{Ipv4Addr, Ipv6Addr}; use url::Url; use url::{Host, ParseError as UrlError}; pub trait IntoUrl { fn into_url(self) -> Result<Url, UrlError>; } impl IntoUrl for Url { fn into_url(self) -> Result<Url, UrlError> { Ok(self) } } impl<'a> IntoUrl for &'a str { fn into_url(self) -> Re...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/cookie_store/src/cookie.rs
crates/cookie_store/src/cookie.rs
use std::borrow::Cow; use std::convert::TryFrom; use std::fmt; use std::ops::Deref; use cookie::{Cookie as RawCookie, CookieBuilder as RawCookieBuilder, ParseError}; use serde_derive::{Deserialize, Serialize}; use time; use url::Url; use crate::cookie_domain::CookieDomain; use crate::cookie_expiration::CookieExpirati...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false
tmtbe/netpurr
https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/cookie_store/src/cookie_expiration.rs
crates/cookie_store/src/cookie_expiration.rs
use std; use serde_derive::{Deserialize, Serialize}; use time::{self, OffsetDateTime}; /// When a given `Cookie` expires #[derive(Eq, Clone, Debug, Serialize, Deserialize)] pub enum CookieExpiration { /// `Cookie` expires at the given UTC time, as set from either the Max-Age /// or Expires attribute of a Set-...
rust
Apache-2.0
922e0e29e2a4685249fafe7eba87bb4fffe7d72e
2026-01-04T20:20:05.778379Z
false