diff --git a/src/main.rs b/src/main.rs index 9b06bda99..4708b65c5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,7 +46,7 @@ use crate::session::{create_session, get_session_history, get_sessions, start_se use crate::shared::state::AppState; use crate::shared::utils::create_conn; use crate::shared::utils::create_s3_operator; -use crate::web_server::{bot_index, index}; +use crate::web_server::{bot_index}; #[derive(Debug, Clone)] pub enum BootstrapProgress { StartingBootstrap, diff --git a/src/web_server/mod.rs b/src/web_server/mod.rs index 896e28acd..bc3a09e06 100644 --- a/src/web_server/mod.rs +++ b/src/web_server/mod.rs @@ -28,7 +28,7 @@ async fn bot_index(req: HttpRequest) -> Result { } pub fn configure_app(cfg: &mut actix_web::web::ServiceConfig) { - let static_path = Path::new("/home/rodriguez/src/botserver/web/desktop"); + let static_path = Path::new("./web/desktop"); // Serve all static files from desktop directory cfg.service( diff --git a/web/app/dashboard/dashboard.page.html b/web/app/dashboard/dashboard.page.html deleted file mode 100644 index 7af293f6a..000000000 --- a/web/app/dashboard/dashboard.page.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - diff --git a/web/app/editor/editor.page.html b/web/app/editor/editor.page.html deleted file mode 100644 index 3736ecb87..000000000 --- a/web/app/editor/editor.page.html +++ /dev/null @@ -1,342 +0,0 @@ - - - - diff --git a/web/app/editor/style.css b/web/app/editor/style.css deleted file mode 100644 index 18ed1e603..000000000 --- a/web/app/editor/style.css +++ /dev/null @@ -1,423 +0,0 @@ -:root { - /* 3DBevel Theme */ - --background: 0 0% 80%; - --foreground: 0 0% 10%; - --card: 0 0% 75%; - --card-foreground: 0 0% 10%; - --popover: 0 0% 80%; - --popover-foreground: 0 0% 10%; - --primary: 210 80% 40%; - --primary-foreground: 0 0% 80%; - --secondary: 0 0% 70%; - --secondary-foreground: 0 0% 10%; - --muted: 0 0% 65%; - --muted-foreground: 0 0% 30%; - --accent: 30 80% 40%; - --accent-foreground: 0 0% 80%; - --destructive: 0 85% 60%; - --destructive-foreground: 0 0% 98%; - --border: 0 0% 70%; - --input: 0 0% 70%; - --ring: 210 80% 40%; - --radius: 0.5rem; -} - -* { - box-sizing: border-box; -} - -.word-clone { - min-height: 100vh; - background: hsl(var(--background)); - color: hsl(var(--foreground)); - font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; -} - -/* Title Bar */ -.title-bar { - background: hsl(var(--primary)); - color: hsl(var(--primary-foreground)); - padding: 8px 16px; - display: flex; - align-items: center; - justify-content: space-between; - border-bottom: 2px solid hsl(var(--border)); -} - -.title-bar h1 { - font-size: 14px; - font-weight: 600; - margin: 0; -} - -.title-controls { - display: flex; - gap: 8px; -} - -.title-input { - background: hsl(var(--input)); - border: 1px solid hsl(var(--border)); - border-radius: var(--radius); - padding: 4px 8px; - font-size: 12px; - color: hsl(var(--foreground)); -} - -/* Quick Access Toolbar */ -.quick-access { - background: hsl(var(--card)); - border-bottom: 1px solid hsl(var(--border)); - padding: 4px 8px; - display: flex; - align-items: center; - gap: 2px; -} - -.quick-access-btn { - background: transparent; - border: 1px solid transparent; - border-radius: 3px; - padding: 4px; - cursor: pointer; - color: hsl(var(--foreground)); - transition: all 0.2s; -} - -.quick-access-btn:hover { - background: hsl(var(--muted)); - border-color: hsl(var(--border)); -} - -/* Ribbon */ -.ribbon { - background: hsl(var(--card)); - border-bottom: 2px solid hsl(var(--border)); -} - -.ribbon-tabs { - display: flex; - background: hsl(var(--muted)); - border-bottom: 1px solid hsl(var(--border)); -} - -.ribbon-tab-button { - background: transparent; - border: none; - padding: 8px 16px; - cursor: pointer; - font-size: 12px; - color: hsl(var(--muted-foreground)); - border-bottom: 2px solid transparent; - transition: all 0.2s; -} - -.ribbon-tab-button:hover { - background: hsl(var(--secondary)); - color: hsl(var(--foreground)); -} - -.ribbon-tab-button.active { - background: hsl(var(--card)); - color: hsl(var(--foreground)); - border-bottom-color: hsl(var(--primary)); - font-weight: 600; -} - -.ribbon-content { - display: flex; - padding: 8px; - gap: 2px; - min-height: 80px; - align-items: stretch; -} - -.ribbon-group { - display: flex; - flex-direction: column; - border-right: 1px solid hsl(var(--border)); - padding-right: 8px; - margin-right: 8px; -} - -.ribbon-group:last-child { - border-right: none; -} - -.ribbon-group-content { - display: flex; - flex-wrap: wrap; - gap: 2px; - flex: 1; - align-items: flex-start; - padding: 4px 0; -} - -.ribbon-group-title { - font-size: 10px; - color: hsl(var(--muted-foreground)); - text-align: center; - margin-top: 4px; - border-top: 1px solid hsl(var(--border)); - padding-top: 2px; -} - -.ribbon-button { - background: transparent; - border: 1px solid transparent; - border-radius: 3px; - cursor: pointer; - color: hsl(var(--foreground)); - transition: all 0.2s; - position: relative; -} - -.ribbon-button:hover { - background: hsl(var(--muted)); - border-color: hsl(var(--border)); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); -} - -.ribbon-button.active { - background: hsl(var(--primary)); - color: hsl(var(--primary-foreground)); - border-color: hsl(var(--primary)); -} - -.ribbon-button.medium { - padding: 6px; - min-width: 32px; - min-height: 32px; -} - -.ribbon-button.large { - padding: 8px; - min-width: 48px; - min-height: 48px; - flex-direction: column; -} - -.ribbon-button-content { - display: flex; - flex-direction: column; - align-items: center; - gap: 2px; -} - -.ribbon-button-label { - font-size: 10px; - text-align: center; - line-height: 1.1; -} - -.dropdown-arrow { - position: absolute; - bottom: 2px; - right: 2px; -} - -/* Format Controls */ -.format-select { - background: hsl(var(--input)); - border: 1px solid hsl(var(--border)); - border-radius: 3px; - padding: 4px 6px; - font-size: 11px; - color: hsl(var(--foreground)); - margin: 2px; -} - -.color-picker-wrapper { - position: relative; - display: inline-block; -} - -.color-picker { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 0; - cursor: pointer; -} - -.color-indicator { - position: absolute; - bottom: 2px; - left: 50%; - transform: translateX(-50%); - width: 16px; - height: 3px; - border-radius: 1px; -} - -/* Editor Area */ -.editor-container { - display: flex; - flex: 1; - background: hsl(var(--muted)); -} - -.editor-sidebar { - width: 200px; - background: hsl(var(--card)); - border-right: 1px solid hsl(var(--border)); - padding: 16px; -} - -.editor-main { - flex: 1; - display: flex; - flex-direction: column; - align-items: center; - padding: 20px; - overflow-y: auto; - max-height: calc(100vh - 200px); -} - -.pages-container { - display: flex; - flex-direction: column; - gap: 20px; - - /* Example: Use a CSS variable for zoom, set --zoom: 1 for 100% */ - transform: scale(var(--zoom, 1)); - transform-origin: top center; -} - -.page { - width: 210mm; - min-height: 297mm; - background: white; - box-shadow: - 0 0 0 1px hsl(var(--border)), - 0 4px 8px rgba(0, 0, 0, 0.1), - 0 8px 16px rgba(0, 0, 0, 0.05); - position: relative; - margin: 0 auto; -} - -.page-number { - position: absolute; - top: -30px; - left: 50%; - transform: translateX(-50%); - font-size: 12px; - color: hsl(var(--muted-foreground)); - background: hsl(var(--background)); - padding: 2px 8px; - border-radius: 10px; -} - -.page-content { - padding: 25mm; - min-height: 247mm; -} - -.ProseMirror { - outline: none; - min-height: 100%; -} - -.ProseMirror img { - max-width: 100%; - height: auto; - border-radius: 4px; -} - -.ProseMirror a { - color: hsl(var(--primary)); - text-decoration: underline; -} - -/* Table styles */ -.editor-table { - border-collapse: collapse; - margin: 16px 0; - width: 100%; - border: 1px solid hsl(var(--border)); -} - -.editor-table td, -.editor-table th { - border: 1px solid hsl(var(--border)); - padding: 8px 12px; - min-width: 50px; - position: relative; -} - -.editor-table th { - background: hsl(var(--muted)); - font-weight: 600; -} - -/* Bubble Menu */ -.bubble-menu { - background: hsl(var(--card)); - border: 1px solid hsl(var(--border)); - border-radius: var(--radius); - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); - display: flex; - padding: 4px; - gap: 2px; -} - -.bubble-menu .ribbon-button { - min-width: 28px; - min-height: 28px; - padding: 4px; -} - -/* Status Bar */ -.status-bar { - background: hsl(var(--card)); - border-top: 1px solid hsl(var(--border)); - padding: 4px 12px; - display: flex; - justify-content: space-between; - align-items: center; - font-size: 11px; - color: hsl(var(--muted-foreground)); -} - -.zoom-controls { - display: flex; - align-items: center; - gap: 8px; -} - -.zoom-slider { - width: 100px; -} - -@media print { - - .title-bar, - .quick-access, - .ribbon, - .editor-sidebar, - .status-bar { - display: none !important; - } - - .editor-main { - padding: 0; - max-height: none; - } - - .pages-container { - transform: none; - gap: 0; - } - - .page { - box-shadow: none; - margin: 0; - break-after: page; - } - - .page-number { - display: none; - } -} \ No newline at end of file diff --git a/web/app/news/news.page.html b/web/app/news/news.page.html deleted file mode 100644 index 301a2d9b7..000000000 --- a/web/app/news/news.page.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - diff --git a/web/app/paper/paper.page.html b/web/app/paper/paper.page.html deleted file mode 100644 index 20ea393a4..000000000 --- a/web/app/paper/paper.page.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - diff --git a/web/app/paper/style.css b/web/app/paper/style.css deleted file mode 100644 index a209b911d..000000000 --- a/web/app/paper/style.css +++ /dev/null @@ -1,103 +0,0 @@ - .ProseMirror { - outline: none; - font-family: 'Inter', system-ui, -apple-system, sans-serif; - font-size: 16px; - line-height: 1.7; - color: hsl(var(--foreground)); - padding: 3rem; - - min-height: calc(100vh - 12rem); - } - - .ProseMirror h1 { - font-size: 2.5rem; - font-weight: 700; - margin: 2rem 0 1rem 0; - color: hsl(var(--primary)); - } - - .ProseMirror h2 { - font-size: 2rem; - font-weight: 600; - margin: 1.5rem 0 0.75rem 0; - color: hsl(var(--primary)); - } - - .ProseMirror h3 { - font-size: 1.5rem; - font-weight: 600; - margin: 1.25rem 0 0.5rem 0; - color: hsl(var(--primary)); - } - - .ProseMirror p { - margin: 0.75rem 0; - } - - .ProseMirror a { - color: hsl(var(--accent)); - text-decoration: underline; - text-underline-offset: 2px; - } - - .ProseMirror a:hover { - color: hsl(var(--primary)); - } - - .ProseMirror mark { - background-color: #ffff0040; - border-radius: 2px; - padding: 0 2px; - } - - .ProseMirror ul, .ProseMirror ol { - margin: 1rem 0; - padding-left: 1.5rem; - } - - .ProseMirror li { - margin: 0.25rem 0; - } - - .ProseMirror blockquote { - border-left: 4px solid hsl(var(--primary)); - padding-left: 1rem; - margin: 1rem 0; - font-style: italic; - color: hsl(var(--muted-foreground)); - } - - .ProseMirror code { - background-color: hsl(var(--muted)); - padding: 0.25rem 0.5rem; - border-radius: 4px; - font-family: 'JetBrains Mono', monospace; - font-size: 0.9em; - } - - .ProseMirror pre { - background-color: hsl(var(--muted)); - padding: 1rem; - border-radius: 8px; - overflow-x: auto; - margin: 1rem 0; - } - - .ProseMirror pre code { - background: none; - padding: 0; - } - - /* Selection highlighting */ - .ProseMirror ::selection { - background-color: hsl(var(--primary) / 0.2); - } - - /* Placeholder styling */ - .ProseMirror p.is-editor-empty:first-child::before { - content: attr(data-placeholder); - float: left; - color: hsl(var(--muted-foreground)); - pointer-events: none; - height: 0; - } diff --git a/web/app/player/player.page.html b/web/app/player/player.page.html deleted file mode 100644 index c902a3c73..000000000 --- a/web/app/player/player.page.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - diff --git a/web/app/player/style.css b/web/app/player/style.css deleted file mode 100644 index cc5ef6eab..000000000 --- a/web/app/player/style.css +++ /dev/null @@ -1,32 +0,0 @@ -.slider::-webkit-slider-thumb { - appearance: none; - height: 12px; - width: 12px; - border-radius: 50%; - background: hsl(var(--primary)); - cursor: pointer; - border: 2px solid hsl(var(--primary-foreground)); -} - -.slider::-moz-range-thumb { - height: 12px; - width: 12px; - border-radius: 50%; - background: hsl(var(--primary)); - cursor: pointer; - border: 2px solid hsl(var(--primary-foreground)); -} - -.slider::-webkit-slider-track { - height: 4px; - cursor: pointer; - background: hsl(var(--muted)); - border-radius: 2px; -} - -.slider::-moz-range-track { - height: 4px; - cursor: pointer; - background: hsl(var(--muted)); - border-radius: 2px; -} \ No newline at end of file diff --git a/web/app/settings/README.md b/web/app/settings/README.md deleted file mode 100644 index 43749eda4..000000000 --- a/web/app/settings/README.md +++ /dev/null @@ -1,14 +0,0 @@ - https://whoapi.com/domain-availability-api-pricing/ - - - - **Ports Used**: - Main website: (https://www.pragmatismo.com.br). - Webmail (Stalwart): (https://mail.pragmatismo.com.br). - Database (PostgreSQL): . - SSO (Zitadel): (https://sso.pragmatismo.com.br). - Storage (MinIO): (https://drive.pragmatismo.com.br). - ALM (Forgejo): (https://alm.pragmatismo.com.br). - BotServer : (https://gb.pragmatismo.com.br). - Meeting: (https://call.pragmatismo.com.br). - IMAP: 993. - SMTP: 465. diff --git a/web/app/settings/account/account-form.html b/web/app/settings/account/account-form.html deleted file mode 100644 index 72ca58e23..000000000 --- a/web/app/settings/account/account-form.html +++ /dev/null @@ -1,30 +0,0 @@ - -