nquery 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +52 -0
- data/Rakefile +9 -0
- data/app/assets/builds/nquery/application.css +339 -0
- data/app/assets/builds/nquery/application.js +989 -0
- data/app/assets/config/nquery_manifest.js +2 -0
- data/app/components/nquery/_card_component.html.erb +6 -0
- data/app/components/nquery/_card_table_component.html.erb +14 -0
- data/app/components/nquery/_flash_card_component.html.erb +32 -0
- data/app/components/nquery/_flash_cards_component.html.erb +3 -0
- data/app/components/nquery/_infinite_scroll_component.html.erb +11 -0
- data/app/components/nquery/card_component.rb +18 -0
- data/app/components/nquery/card_table_component.rb +19 -0
- data/app/components/nquery/component.rb +26 -0
- data/app/components/nquery/flash_card_component.rb +51 -0
- data/app/components/nquery/flash_cards_component.rb +20 -0
- data/app/components/nquery/infinite_scroll_component.rb +19 -0
- data/app/controllers/concerns/nquery/breadcrumbs.rb +238 -0
- data/app/controllers/concerns/nquery/browsable.rb +56 -0
- data/app/controllers/concerns/nquery/chart_actions.rb +104 -0
- data/app/controllers/concerns/nquery/chart_results.rb +30 -0
- data/app/controllers/nquery/admin/base_controller.rb +9 -0
- data/app/controllers/nquery/admin/data_sources_controller.rb +47 -0
- data/app/controllers/nquery/admin/groups_controller.rb +63 -0
- data/app/controllers/nquery/admin/logs_controller.rb +28 -0
- data/app/controllers/nquery/admin/permissions_controller.rb +53 -0
- data/app/controllers/nquery/admin/users_controller.rb +80 -0
- data/app/controllers/nquery/application_controller.rb +70 -0
- data/app/controllers/nquery/charts_controller.rb +51 -0
- data/app/controllers/nquery/collection/dashboards_controller.rb +38 -0
- data/app/controllers/nquery/collections_controller.rb +117 -0
- data/app/controllers/nquery/dashboard/charts_controller.rb +62 -0
- data/app/controllers/nquery/dashboards_controller.rb +90 -0
- data/app/controllers/nquery/embed/charts_controller.rb +24 -0
- data/app/controllers/nquery/embed/dashboards_controller.rb +17 -0
- data/app/controllers/nquery/home_controller.rb +16 -0
- data/app/controllers/nquery/imports_controller.rb +41 -0
- data/app/controllers/nquery/queries_controller.rb +105 -0
- data/app/controllers/nquery/registrations_controller.rb +31 -0
- data/app/controllers/nquery/sessions_controller.rb +28 -0
- data/app/helpers/nquery/charts_helper.rb +33 -0
- data/app/helpers/nquery/collections_helper.rb +13 -0
- data/app/helpers/nquery/components_helper.rb +29 -0
- data/app/helpers/nquery/home_helper.rb +23 -0
- data/app/helpers/nquery/icon_helper.rb +9 -0
- data/app/helpers/nquery/navigation_helper.rb +10 -0
- data/app/javascript/nquery/controllers/chart_preview_controller.js +125 -0
- data/app/javascript/nquery/controllers/csv_mapper_controller.js +23 -0
- data/app/javascript/nquery/controllers/dashboard_grid_controller.js +25 -0
- data/app/javascript/nquery/controllers/query_editor_controller.js +41 -0
- data/app/models/nquery/application_permission.rb +12 -0
- data/app/models/nquery/application_record.rb +7 -0
- data/app/models/nquery/audit.rb +38 -0
- data/app/models/nquery/chart.rb +37 -0
- data/app/models/nquery/collection.rb +35 -0
- data/app/models/nquery/collection_permission.rb +12 -0
- data/app/models/nquery/csv_upload.rb +11 -0
- data/app/models/nquery/dashboard.rb +27 -0
- data/app/models/nquery/dashboard_card.rb +8 -0
- data/app/models/nquery/data_permission.rb +13 -0
- data/app/models/nquery/data_source.rb +27 -0
- data/app/models/nquery/embed_token.rb +21 -0
- data/app/models/nquery/group.rb +27 -0
- data/app/models/nquery/group_membership.rb +10 -0
- data/app/models/nquery/query.rb +19 -0
- data/app/models/nquery/user.rb +58 -0
- data/app/views/layouts/nquery/application.html.erb +32 -0
- data/app/views/layouts/nquery/auth.html.erb +16 -0
- data/app/views/layouts/nquery/embed.html.erb +12 -0
- data/app/views/nquery/admin/data_sources/edit.html.erb +8 -0
- data/app/views/nquery/admin/data_sources/index.html.erb +21 -0
- data/app/views/nquery/admin/data_sources/new.html.erb +7 -0
- data/app/views/nquery/admin/groups/edit.html.erb +6 -0
- data/app/views/nquery/admin/groups/index.html.erb +21 -0
- data/app/views/nquery/admin/groups/new.html.erb +6 -0
- data/app/views/nquery/admin/groups/show.html.erb +24 -0
- data/app/views/nquery/admin/logs/index.html.erb +74 -0
- data/app/views/nquery/admin/permissions/_collection.html.erb +25 -0
- data/app/views/nquery/admin/permissions/_data_source.html.erb +27 -0
- data/app/views/nquery/admin/permissions/_group.html.erb +42 -0
- data/app/views/nquery/admin/permissions/by_collection.html.erb +10 -0
- data/app/views/nquery/admin/permissions/by_data_source.html.erb +7 -0
- data/app/views/nquery/admin/permissions/by_group.html.erb +12 -0
- data/app/views/nquery/admin/users/edit.html.erb +17 -0
- data/app/views/nquery/admin/users/index.html.erb +34 -0
- data/app/views/nquery/admin/users/new.html.erb +14 -0
- data/app/views/nquery/admin/users/show.html.erb +6 -0
- data/app/views/nquery/charts/_builder_form.html.erb +185 -0
- data/app/views/nquery/charts/_new_header.html.erb +31 -0
- data/app/views/nquery/charts/_schema_tree.html.erb +25 -0
- data/app/views/nquery/charts/edit.html.erb +6 -0
- data/app/views/nquery/charts/embed.html.erb +15 -0
- data/app/views/nquery/charts/new.html.erb +5 -0
- data/app/views/nquery/charts/show.html.erb +15 -0
- data/app/views/nquery/charts/update.turbo_stream.erb +1 -0
- data/app/views/nquery/collection/dashboards/new.html.erb +13 -0
- data/app/views/nquery/collections/_dashboard_card.html.erb +57 -0
- data/app/views/nquery/collections/edit.html.erb +15 -0
- data/app/views/nquery/collections/index.html.erb +41 -0
- data/app/views/nquery/collections/new.html.erb +15 -0
- data/app/views/nquery/collections/show.html.erb +100 -0
- data/app/views/nquery/dashboard/charts/new.html.erb +6 -0
- data/app/views/nquery/dashboards/_chart_card.html.erb +16 -0
- data/app/views/nquery/dashboards/edit.html.erb +34 -0
- data/app/views/nquery/dashboards/index.html.erb +35 -0
- data/app/views/nquery/dashboards/show.html.erb +46 -0
- data/app/views/nquery/embed/charts/show.html.erb +9 -0
- data/app/views/nquery/embed/dashboards/show.html.erb +7 -0
- data/app/views/nquery/home/index.html.erb +143 -0
- data/app/views/nquery/imports/new.html.erb +20 -0
- data/app/views/nquery/queries/edit.html.erb +40 -0
- data/app/views/nquery/queries/new.html.erb +37 -0
- data/app/views/nquery/registrations/new.html.erb +34 -0
- data/app/views/nquery/sessions/new.html.erb +29 -0
- data/app/views/nquery/shared/_auth_shell.html.erb +22 -0
- data/app/views/nquery/shared/_breadcrumbs.html.erb +15 -0
- data/app/views/nquery/shared/_chart_actions_menu.html.erb +27 -0
- data/app/views/nquery/shared/_chart_row_actions.html.erb +16 -0
- data/app/views/nquery/shared/_flash.html.erb +1 -0
- data/app/views/nquery/shared/_icon.html.erb +50 -0
- data/app/views/nquery/shared/_sidebar.html.erb +16 -0
- data/app/views/nquery/shared/_topbar.html.erb +12 -0
- data/config/importmap.rb +9 -0
- data/config/routes.rb +78 -0
- data/db/migrate/20260721000001_create_nquery_tables.rb +146 -0
- data/db/migrate/20260721180000_add_archived_at_to_nquery_dashboards.rb +8 -0
- data/db/migrate/20260721190000_add_archived_at_to_nquery_charts.rb +8 -0
- data/db/migrate/20260721200000_add_archived_at_to_nquery_collections.rb +8 -0
- data/lib/generators/nquery/install_generator.rb +38 -0
- data/lib/nquery/authorizes_collection.rb +50 -0
- data/lib/nquery/configuration.rb +44 -0
- data/lib/nquery/csv_importer.rb +68 -0
- data/lib/nquery/data_sources/adapter.rb +34 -0
- data/lib/nquery/data_sources/mysql_adapter.rb +24 -0
- data/lib/nquery/data_sources/postgresql_adapter.rb +46 -0
- data/lib/nquery/data_sources/rails_adapter.rb +54 -0
- data/lib/nquery/data_sources/sqlite_adapter.rb +8 -0
- data/lib/nquery/embed_token_service.rb +83 -0
- data/lib/nquery/engine.rb +55 -0
- data/lib/nquery/permissions/resolver.rb +83 -0
- data/lib/nquery/query_runner.rb +69 -0
- data/lib/nquery/sample_data/ecommerce.rb +157 -0
- data/lib/nquery/schema_explorer.rb +28 -0
- data/lib/nquery/seeder.rb +131 -0
- data/lib/nquery/version.rb +5 -0
- data/lib/nquery.rb +36 -0
- data/lib/tasks/nquery.rake +9 -0
- data/nquery.gemspec +40 -0
- metadata +395 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d4c0dfe128eef7e904add8f3f2509e4aff906effad952ebb9bbddf162011152b
|
|
4
|
+
data.tar.gz: a5b587385a1af1d99823b88b0c85fbe7fdef6c0a9810f7ad4d4deb17877de763
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: abe36e2af6121fa02337da23f3b3db2241766a2dd2ce020c9d79da663839473185bdd414a89b97aec678ca3107795753266d12e776c98cf2791278d5d0447caf
|
|
7
|
+
data.tar.gz: e630e96d93edc3e5187ce0a31fc76206b7c045111f6c5f91b4d5c23895a00866c0d10827eced9a3960f7bf29f2b83711b0677033a6af0993a47b7375b86af419
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nquery Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# nquery
|
|
2
|
+
|
|
3
|
+
SQL charts, dashboards, and data visualization for Rails — mountable engine gem.
|
|
4
|
+
|
|
5
|
+
## What this is
|
|
6
|
+
|
|
7
|
+
- **`lib/` + `app/`** — the gem (mount in any Rails app)
|
|
8
|
+
- **`server/`** — thin demo app to run the UI locally (SQLite, no external database)
|
|
9
|
+
- **Docker + Makefile** — local dev only (MVP)
|
|
10
|
+
|
|
11
|
+
## Quick start (no Ruby required)
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
cp .env.example .env
|
|
15
|
+
make up
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
`make up` builds the image, runs migrations, seeds demo data, and starts the server — no separate seed step needed.
|
|
19
|
+
|
|
20
|
+
Open http://localhost:3000 — login: `admin@nquery.dev` / `password123`
|
|
21
|
+
|
|
22
|
+
## Dev commands
|
|
23
|
+
|
|
24
|
+
| Command | Description |
|
|
25
|
+
|---------|-------------|
|
|
26
|
+
| `make up` | Build, migrate, seed, and start server |
|
|
27
|
+
| `make setup` | Migrate and seed only (without starting server) |
|
|
28
|
+
| `make test` | Run RSpec |
|
|
29
|
+
| `make console` | Rails console |
|
|
30
|
+
|
|
31
|
+
## Use as a gem (in a Rails app)
|
|
32
|
+
|
|
33
|
+
```ruby
|
|
34
|
+
# Gemfile
|
|
35
|
+
gem "nquery"
|
|
36
|
+
|
|
37
|
+
# config/routes.rb
|
|
38
|
+
mount Nquery::Engine, at: "/nquery"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
rails generate nquery:install
|
|
43
|
+
rails db:migrate
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Contributing
|
|
47
|
+
|
|
48
|
+
Bug reports and pull requests are welcome. Please read [CONTRIBUTING.md](CONTRIBUTING.md) for the workflow we follow (issue discussion, focused PRs, tests, and development setup).
|
|
49
|
+
|
|
50
|
+
## License
|
|
51
|
+
|
|
52
|
+
MIT
|
data/Rakefile
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "bundler/gem_tasks"
|
|
5
|
+
|
|
6
|
+
APP_RAKEFILE = File.expand_path("server/Rakefile", __dir__)
|
|
7
|
+
load "rails/tasks/engine.rake" if File.exist?(APP_RAKEFILE)
|
|
8
|
+
|
|
9
|
+
Dir.glob("lib/tasks/**/*.rake").each { |r| load r }
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
/* nquery pre-built styles (Tailwind-inspired) */
|
|
2
|
+
:root {
|
|
3
|
+
--nq-bg: #f7f9fc;
|
|
4
|
+
--nq-sidebar: #1e293b;
|
|
5
|
+
--nq-primary: #509ee3;
|
|
6
|
+
--nq-primary-dark: #3d7cb8;
|
|
7
|
+
--nq-border: #e2e8f0;
|
|
8
|
+
--nq-text: #1e293b;
|
|
9
|
+
--nq-muted: #64748b;
|
|
10
|
+
--nq-card: #ffffff;
|
|
11
|
+
--nq-danger: #ef4444;
|
|
12
|
+
}
|
|
13
|
+
* { box-sizing: border-box; }
|
|
14
|
+
body.nq-body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--nq-text); background: var(--nq-bg); }
|
|
15
|
+
.nq-layout { display: flex; min-height: 100vh; }
|
|
16
|
+
.nq-sidebar { width: 240px; background: var(--nq-sidebar); color: #fff; padding: 1rem; flex-shrink: 0; }
|
|
17
|
+
.nq-logo { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; color: var(--nq-primary); }
|
|
18
|
+
.nq-nav-link { display: block; padding: 0.5rem 0.75rem; color: #cbd5e1; text-decoration: none; border-radius: 6px; margin-bottom: 0.25rem; border-left: 3px solid transparent; }
|
|
19
|
+
.nq-nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
|
|
20
|
+
.nq-nav-link.active { background: rgba(80,158,227,0.15); color: #fff; border-left-color: var(--nq-primary); font-weight: 500; }
|
|
21
|
+
.nq-breadcrumbs { margin-bottom: 1rem; }
|
|
22
|
+
.nq-breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; color: var(--nq-muted); }
|
|
23
|
+
.nq-breadcrumb-item { display: flex; align-items: center; }
|
|
24
|
+
.nq-breadcrumb-item:not(:last-child)::after { content: "/"; margin: 0 0.5rem; color: #cbd5e1; }
|
|
25
|
+
.nq-breadcrumb-item a { color: var(--nq-muted); text-decoration: none; }
|
|
26
|
+
.nq-breadcrumb-item a:hover { color: var(--nq-primary); }
|
|
27
|
+
.nq-breadcrumb-item span,
|
|
28
|
+
.nq-breadcrumb-item a[aria-current="page"] { color: var(--nq-text); font-weight: 500; }
|
|
29
|
+
.nq-nav-section { font-size: 0.75rem; text-transform: uppercase; color: #94a3b8; margin: 1rem 0 0.5rem; }
|
|
30
|
+
.nq-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
|
|
31
|
+
.nq-topbar { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.5rem; background: var(--nq-card); border-bottom: 1px solid var(--nq-border); }
|
|
32
|
+
.nq-content { padding: 1.5rem; flex: 1; }
|
|
33
|
+
.nq-page-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title actions" "meta meta"; gap: 0.375rem 1rem; align-items: start; margin-bottom: 1.5rem; }
|
|
34
|
+
.nq-page-header h1 { grid-area: title; margin: 0; font-size: 1.5rem; }
|
|
35
|
+
.nq-page-header .nq-resource-meta { grid-area: meta; margin: 0; }
|
|
36
|
+
.nq-page-header > .nq-actions,
|
|
37
|
+
.nq-page-header > .nq-btn,
|
|
38
|
+
.nq-page-header > a.nq-btn { grid-area: actions; justify-self: end; align-self: start; }
|
|
39
|
+
.nq-page-header .nq-actions { flex-shrink: 0; flex-wrap: nowrap; }
|
|
40
|
+
.nq-muted { color: var(--nq-muted); }
|
|
41
|
+
.nq-resource-meta { margin: 0.25rem 0 0; font-size: 0.875rem; }
|
|
42
|
+
.nq-card { background: var(--nq-card); border: 1px solid var(--nq-border); border-radius: 8px; padding: 1.25rem; }
|
|
43
|
+
.nq-grid { display: grid; gap: 1rem; }
|
|
44
|
+
.nq-grid-2 { grid-template-columns: repeat(2, 1fr); }
|
|
45
|
+
.nq-grid-3 { grid-template-columns: repeat(3, 1fr); }
|
|
46
|
+
.nq-grid-sidebar { grid-template-columns: 260px 1fr; }
|
|
47
|
+
.nq-grid-editor { grid-template-columns: 220px 1fr; }
|
|
48
|
+
.nq-chart-builder-form { margin-top: 0; }
|
|
49
|
+
.nq-chart-builder-header { align-items: flex-start; margin-bottom: 1.5rem; }
|
|
50
|
+
.nq-chart-builder-header-main { min-width: 0; flex: 1; }
|
|
51
|
+
.nq-chart-builder-eyebrow { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--nq-muted); }
|
|
52
|
+
.nq-chart-builder-name { margin: 0; }
|
|
53
|
+
.nq-chart-builder-name .nq-input { width: 320px; max-width: 100%; }
|
|
54
|
+
.nq-chart-builder-header .nq-resource-meta { margin-top: 0.375rem; }
|
|
55
|
+
.nq-chart-builder { display: flex; flex-direction: column; gap: 1rem; }
|
|
56
|
+
.nq-chart-builder-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; align-items: stretch; }
|
|
57
|
+
.nq-chart-builder-workspace { display: flex; flex-direction: column; gap: 0.875rem; min-height: 28rem; }
|
|
58
|
+
.nq-chart-builder-panel { display: flex; flex-direction: column; gap: 0.875rem; min-height: 28rem; }
|
|
59
|
+
.nq-chart-builder-schema .nq-schema-tree { flex: 1; min-height: 0; overflow: auto; }
|
|
60
|
+
.nq-panel-title { margin: 0; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--nq-muted); }
|
|
61
|
+
.nq-panel-header { display: flex; justify-content: flex-end; align-items: center; gap: 0.75rem; }
|
|
62
|
+
.nq-input-sm { max-width: 12rem; font-size: 0.875rem; }
|
|
63
|
+
.nq-sql-editor-shell { flex: 1; min-height: 18rem; display: flex; flex-direction: column; }
|
|
64
|
+
.nq-sql-editor { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.875rem; line-height: 1.5; min-height: 18rem; resize: vertical; }
|
|
65
|
+
.nq-workspace-header { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding-bottom: 0.75rem; border-bottom: 1px solid var(--nq-border); }
|
|
66
|
+
.nq-workspace-tabs { display: inline-flex; gap: 0.25rem; padding: 0.25rem; background: #f1f5f9; border-radius: 8px; }
|
|
67
|
+
.nq-workspace-tab { padding: 0.4375rem 0.875rem; border: none; border-radius: 6px; background: transparent; color: var(--nq-muted); font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
|
|
68
|
+
.nq-workspace-tab:hover { color: var(--nq-text); }
|
|
69
|
+
.nq-workspace-tab.is-active { background: #fff; color: var(--nq-primary); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
|
|
70
|
+
.nq-workspace-header-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; min-width: 0; }
|
|
71
|
+
.nq-workspace-panel { display: none; flex-direction: column; gap: 0.875rem; flex: 1; min-height: 0; padding-top: 0.875rem; }
|
|
72
|
+
.nq-workspace-panel.is-active { display: flex; }
|
|
73
|
+
.nq-chart-builder-workspace .CodeMirror { flex: 1; height: auto !important; min-height: 18rem; border: 1px solid var(--nq-border); border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.875rem; background: #fff; }
|
|
74
|
+
.nq-chart-builder-workspace .CodeMirror-scroll { min-height: 18rem; }
|
|
75
|
+
.nq-chart-builder-workspace .CodeMirror-gutters { border-right: 1px solid var(--nq-border); background: #f8fafc; border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
|
|
76
|
+
.nq-chart-builder-workspace .CodeMirror-linenumber { color: #94a3b8; padding: 0 0.5rem 0 0.25rem; min-width: 2rem; }
|
|
77
|
+
.nq-chart-builder-workspace .CodeMirror-cursor { border-left: 2px solid var(--nq-primary); }
|
|
78
|
+
.nq-chart-builder-workspace .CodeMirror-activeline-background { background: rgba(80, 158, 227, 0.08); }
|
|
79
|
+
.nq-chart-builder-workspace .cm-s-eclipse .CodeMirror-selected { background: rgba(80, 158, 227, 0.2); }
|
|
80
|
+
.nq-sql-editor-hint { margin-left: auto; font-size: 0.75rem; }
|
|
81
|
+
.nq-sql-save-status { font-size: 0.75rem; min-width: 3.5rem; }
|
|
82
|
+
.nq-chart-builder-query-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
|
|
83
|
+
.nq-query-meta { font-size: 0.8125rem; }
|
|
84
|
+
.nq-output-tabs { display: inline-flex; gap: 0.25rem; padding: 0.25rem; background: #f1f5f9; border-radius: 8px; }
|
|
85
|
+
.nq-output-tab { padding: 0.4375rem 0.875rem; border: none; border-radius: 6px; background: transparent; color: var(--nq-muted); font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
|
|
86
|
+
.nq-output-tab:hover { color: var(--nq-text); }
|
|
87
|
+
.nq-output-tab.is-active { background: #fff; color: var(--nq-primary); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
|
|
88
|
+
.nq-output-body { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
|
|
89
|
+
.nq-output-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 18rem; margin: 0 auto; color: var(--nq-muted); padding: 2rem 1rem; }
|
|
90
|
+
.nq-output-empty p { margin: 0 0 0.5rem; }
|
|
91
|
+
.nq-output-error { padding: 0.75rem 1rem; border-radius: 8px; background: #fef2f2; color: var(--nq-danger); border: 1px solid #fecaca; }
|
|
92
|
+
.nq-output-panel { flex: 1; display: none; flex-direction: column; gap: 0.875rem; min-height: 0; padding-top: 0.875rem; }
|
|
93
|
+
.nq-output-panel.is-active { display: flex; }
|
|
94
|
+
.nq-chart-builder-workspace [hidden] { display: none !important; }
|
|
95
|
+
.nq-chart-settings { display: flex; flex-direction: column; gap: 0.75rem; }
|
|
96
|
+
.nq-chart-builder-workspace .nq-viz-chart-preview { flex: 0 0 auto; min-height: 0; }
|
|
97
|
+
.nq-chart-builder-workspace .nq-viz-chart-wrap { flex: none; height: 16rem; max-height: 16rem; min-height: 0; }
|
|
98
|
+
.nq-chart-builder-workspace .nq-viz-chart-wrap canvas { width: 100% !important; height: 100% !important; max-height: 100%; }
|
|
99
|
+
.nq-chart-builder-workspace .nq-viz-number { flex: none; min-height: 8rem; }
|
|
100
|
+
.nq-viz-chart-preview { flex: 1; min-height: 12rem; display: flex; flex-direction: column; }
|
|
101
|
+
.nq-viz-types { display: flex; flex-wrap: wrap; gap: 0.375rem; }
|
|
102
|
+
.nq-viz-type { padding: 0.375rem 0.75rem; border: 1px solid var(--nq-border); border-radius: 999px; background: #fff; color: var(--nq-text); font-size: 0.8125rem; font-weight: 500; cursor: pointer; transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
|
|
103
|
+
.nq-viz-type:hover { border-color: var(--nq-primary); color: var(--nq-primary); }
|
|
104
|
+
.nq-viz-type.is-active { background: var(--nq-primary); border-color: var(--nq-primary); color: #fff; }
|
|
105
|
+
.nq-viz-mapping { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
|
|
106
|
+
.nq-viz-mapping-field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8125rem; color: var(--nq-muted); }
|
|
107
|
+
.nq-viz-table-wrap { overflow: auto; flex: 1; min-height: 0; background: #fff; border: 1px solid var(--nq-border); border-radius: 8px; }
|
|
108
|
+
.nq-data-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
|
|
109
|
+
.nq-data-table th, .nq-data-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--nq-border); text-align: left; white-space: nowrap; }
|
|
110
|
+
.nq-data-table th { position: sticky; top: 0; background: #f8fafc; font-weight: 600; color: var(--nq-muted); }
|
|
111
|
+
.nq-data-table tbody tr:hover { background: #f8fafc; }
|
|
112
|
+
.nq-viz-chart-wrap { flex: 1; min-height: 14rem; background: #fff; border: 1px solid var(--nq-border); border-radius: 8px; padding: 0.75rem; }
|
|
113
|
+
.nq-viz-chart-wrap canvas { width: 100% !important; }
|
|
114
|
+
.nq-viz-number { flex: 1; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--nq-border); border-radius: 8px; }
|
|
115
|
+
.nq-number-display { font-size: 3rem; font-weight: 700; color: var(--nq-text); line-height: 1; }
|
|
116
|
+
.nq-mb { margin-bottom: 1rem; }
|
|
117
|
+
.nq-mt { margin-top: 1rem; }
|
|
118
|
+
.nq-btn { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 1rem; border: 1px solid var(--nq-border); border-radius: 6px; background: #fff; cursor: pointer; text-decoration: none; color: var(--nq-text); font-size: 0.875rem; font-family: inherit; line-height: 1.25; white-space: nowrap; }
|
|
119
|
+
.nq-btn:disabled,
|
|
120
|
+
.nq-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
|
|
121
|
+
.nq-icon { width: 1rem; height: 1rem; flex-shrink: 0; }
|
|
122
|
+
.nq-btn-primary { background: var(--nq-primary); color: #fff; border-color: var(--nq-primary); }
|
|
123
|
+
.nq-btn-primary:hover { background: var(--nq-primary-dark); }
|
|
124
|
+
.nq-btn-danger { color: var(--nq-danger); border-color: #fecaca; }
|
|
125
|
+
.nq-btn-danger:hover { background: #fef2f2; }
|
|
126
|
+
.nq-btn-ghost { background: transparent; border: none; color: var(--nq-muted); }
|
|
127
|
+
.nq-btn-block { width: 100%; text-align: center; }
|
|
128
|
+
.nq-btn.is-loading,
|
|
129
|
+
button.nq-menu-item-button.is-loading { pointer-events: none; opacity: 0.85; cursor: wait; }
|
|
130
|
+
.nq-btn.is-loading::before,
|
|
131
|
+
button.nq-menu-item-button.is-loading::before { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: nq-spin 0.6s linear infinite; flex-shrink: 0; }
|
|
132
|
+
@keyframes nq-spin { to { transform: rotate(360deg); } }
|
|
133
|
+
.nq-input, .nq-textarea { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--nq-border); border-radius: 6px; font-size: 0.875rem; }
|
|
134
|
+
.nq-textarea { font-family: ui-monospace, monospace; resize: vertical; }
|
|
135
|
+
.nq-form-row { margin-bottom: 1rem; }
|
|
136
|
+
.nq-form-row label { display: block; margin-bottom: 0.25rem; font-weight: 500; font-size: 0.875rem; }
|
|
137
|
+
.nq-table { width: 100%; border-collapse: collapse; }
|
|
138
|
+
.nq-table th, .nq-table td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--nq-border); }
|
|
139
|
+
.nq-card-table { padding: 0; overflow: hidden; }
|
|
140
|
+
.nq-card-table .nq-table th { background: #f8fafc; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--nq-muted); font-weight: 600; }
|
|
141
|
+
.nq-card-table .nq-table th,
|
|
142
|
+
.nq-card-table .nq-table td { padding: 0.875rem 1.25rem; }
|
|
143
|
+
.nq-card-table .nq-table tbody tr:last-child td { border-bottom: none; }
|
|
144
|
+
.nq-card-table .nq-table tbody tr:hover { background: #f8fafc; }
|
|
145
|
+
.nq-card-table .nq-table td a:not(.nq-btn) { color: var(--nq-primary); font-weight: 600; text-decoration: none; }
|
|
146
|
+
.nq-card-table .nq-table td a:not(.nq-btn):hover { text-decoration: underline; }
|
|
147
|
+
.nq-card-table .nq-table td:last-child { text-align: right; white-space: nowrap; vertical-align: middle; }
|
|
148
|
+
.nq-card-table .nq-table td .nq-actions { justify-content: flex-end; }
|
|
149
|
+
.nq-card-table .nq-table td .nq-actions form { display: inline-flex; margin: 0; }
|
|
150
|
+
.nq-card-table .nq-table th:last-child { text-align: right; }
|
|
151
|
+
.nq-list { list-style: none; padding: 0; margin: 0; }
|
|
152
|
+
.nq-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--nq-border); }
|
|
153
|
+
.nq-badge { display: inline-block; padding: 0.125rem 0.5rem; background: #e2e8f0; border-radius: 999px; font-size: 0.75rem; }
|
|
154
|
+
.nq-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
|
|
155
|
+
.nq-toast-stack { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; width: min(24rem, calc(100vw - 2rem)); pointer-events: none; }
|
|
156
|
+
.nq-flash-card { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.875rem 1rem; border-radius: 8px; border: 1px solid transparent; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(15, 23, 42, 0.06); }
|
|
157
|
+
.nq-flash-card-toast { pointer-events: auto; opacity: 0; transform: translateX(1.5rem); transition: opacity 0.3s ease, transform 0.3s ease; }
|
|
158
|
+
.nq-flash-card-toast.is-visible { opacity: 1; transform: translateX(0); }
|
|
159
|
+
.nq-flash-card-toast.is-leaving { opacity: 0; transform: translateX(1.5rem); }
|
|
160
|
+
.nq-flash-card-inline { margin-bottom: 1rem; animation: nq-flash-in 0.2s ease-out; }
|
|
161
|
+
@keyframes nq-flash-in { from { opacity: 0; transform: translateY(-0.25rem); } to { opacity: 1; transform: translateY(0); } }
|
|
162
|
+
.nq-flash-card-icon { flex-shrink: 0; margin-top: 0.0625rem; }
|
|
163
|
+
.nq-flash-card-body { flex: 1; min-width: 0; font-size: 0.875rem; line-height: 1.5; }
|
|
164
|
+
.nq-flash-card-body p { margin: 0; }
|
|
165
|
+
.nq-flash-card-body p + p { margin-top: 0.375rem; }
|
|
166
|
+
.nq-flash-card-dismiss { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; padding: 0; border: none; border-radius: 6px; background: transparent; color: inherit; opacity: 0.6; cursor: pointer; transition: opacity 0.15s, background-color 0.15s; }
|
|
167
|
+
.nq-flash-card-dismiss:hover { opacity: 1; background: rgba(15, 23, 42, 0.06); }
|
|
168
|
+
.nq-flash-card-notice { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
|
|
169
|
+
.nq-flash-card-notice .nq-flash-card-icon { color: #16a34a; }
|
|
170
|
+
.nq-flash-card-alert { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
|
|
171
|
+
.nq-flash-card-alert .nq-flash-card-icon { color: #dc2626; }
|
|
172
|
+
.nq-flash-card-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
|
|
173
|
+
.nq-flash-card-warning .nq-flash-card-icon { color: #d97706; }
|
|
174
|
+
.nq-flash-card-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
|
|
175
|
+
.nq-flash-card-info .nq-flash-card-icon { color: #2563eb; }
|
|
176
|
+
.nq-infinite-scroll { display: flex; flex-direction: column; gap: 0.75rem; }
|
|
177
|
+
.nq-infinite-scroll-sentinel { height: 1px; }
|
|
178
|
+
.nq-card-title { margin: 0 0 1rem; font-size: 1rem; font-weight: 600; }
|
|
179
|
+
.nq-tree { list-style: none; padding: 0; margin: 0; }
|
|
180
|
+
.nq-tree-item { padding: 0.375rem 0.5rem; cursor: pointer; border-radius: 4px; }
|
|
181
|
+
.nq-tree-item:hover { background: #f1f5f9; }
|
|
182
|
+
.nq-tree-child { padding-left: 1rem; }
|
|
183
|
+
.nq-schema-tree { display: flex; flex-direction: column; gap: 0.125rem; }
|
|
184
|
+
.nq-schema-table { list-style: none; }
|
|
185
|
+
.nq-schema-table-header { display: flex; align-items: center; gap: 0.125rem; min-width: 0; }
|
|
186
|
+
.nq-schema-toggle { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; padding: 0; border: none; background: transparent; color: var(--nq-muted); cursor: pointer; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
|
|
187
|
+
.nq-schema-toggle:hover { background: #f1f5f9; color: var(--nq-text); }
|
|
188
|
+
.nq-schema-toggle-icon { transition: transform 0.15s ease; }
|
|
189
|
+
.nq-schema-table.is-expanded .nq-schema-toggle-icon { transform: rotate(90deg); }
|
|
190
|
+
.nq-schema-table-name { flex: 1; min-width: 0; padding: 0.375rem 0.5rem; text-align: left; font: inherit; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
191
|
+
.nq-schema-columns { list-style: none; padding: 0 0 0.25rem 1.75rem; margin: 0; }
|
|
192
|
+
.nq-schema-column { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding: 0.25rem 0.5rem; font-size: 0.8125rem; }
|
|
193
|
+
.nq-schema-column-name { color: var(--nq-text); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
194
|
+
.nq-schema-column-type { flex: 0 0 auto; color: var(--nq-muted); font-size: 0.75rem; text-transform: lowercase; }
|
|
195
|
+
.nq-tile { padding: 1rem; border: 1px solid var(--nq-border); border-radius: 6px; }
|
|
196
|
+
.nq-tile a { font-weight: 600; text-decoration: none; color: var(--nq-primary); }
|
|
197
|
+
.nq-tile-link { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
|
|
198
|
+
.nq-tile-link:hover { border-color: var(--nq-primary); box-shadow: 0 0 0 1px var(--nq-primary); }
|
|
199
|
+
.nq-tile-title { display: block; font-weight: 600; color: var(--nq-primary); margin-bottom: 0.25rem; }
|
|
200
|
+
.nq-chart-preview { min-height: 120px; }
|
|
201
|
+
.nq-chart-preview.is-number { display: flex; align-items: center; justify-content: center; min-height: 0; }
|
|
202
|
+
.nq-chart-preview canvas { width: 100% !important; }
|
|
203
|
+
.nq-results { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: 6px; overflow: auto; max-height: 300px; font-size: 0.8rem; }
|
|
204
|
+
.nq-code { background: #f1f5f9; padding: 1rem; border-radius: 6px; overflow: auto; font-size: 0.8rem; }
|
|
205
|
+
.nq-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
|
|
206
|
+
.nq-tab { padding: 0.5rem 1rem; text-decoration: none; color: var(--nq-muted); border-bottom: 2px solid transparent; }
|
|
207
|
+
.nq-tab.active { color: var(--nq-primary); border-bottom-color: var(--nq-primary); }
|
|
208
|
+
.nq-dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
|
|
209
|
+
.nq-dashboard-card { background: var(--nq-card); border: 1px solid var(--nq-border); border-radius: 8px; padding: 1rem; min-height: 120px; display: flex; flex-direction: column; }
|
|
210
|
+
.nq-dashboard-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; }
|
|
211
|
+
.nq-dashboard-card-title { margin: 0; font-size: 0.9375rem; font-weight: 600; min-width: 0; flex: 1; }
|
|
212
|
+
.nq-dashboard-card-header .nq-menu { flex-shrink: 0; }
|
|
213
|
+
.nq-dashboard-card .nq-chart-preview { flex: 1; }
|
|
214
|
+
.nq-draggable { cursor: move; }
|
|
215
|
+
.nq-auth { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
|
|
216
|
+
.nq-auth-body { background: #eef4fb; }
|
|
217
|
+
.nq-auth-backdrop { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(80, 158, 227, 0.18), transparent 55%), radial-gradient(ellipse 70% 50% at 85% 90%, rgba(59, 124, 184, 0.12), transparent 50%), linear-gradient(160deg, #f8fbff 0%, #eef4fb 45%, #e8f0fa 100%); pointer-events: none; }
|
|
218
|
+
.nq-auth-panel { position: relative; width: 100%; max-width: 420px; background: var(--nq-card); padding: 2.5rem 2rem 2rem; border-radius: 12px; border: 1px solid rgba(219, 234, 254, 0.9); box-shadow: 0 20px 50px rgba(30, 41, 59, 0.08), 0 4px 12px rgba(80, 158, 227, 0.06); }
|
|
219
|
+
.nq-auth-header { text-align: center; margin-bottom: 1.75rem; }
|
|
220
|
+
.nq-auth-mark { display: inline-block; font-size: 1.375rem; font-weight: 700; color: var(--nq-primary); letter-spacing: -0.02em; margin-bottom: 1.25rem; }
|
|
221
|
+
.nq-auth-header h1 { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
|
|
222
|
+
.nq-auth-subtitle { margin: 0.5rem 0 0; font-size: 0.9375rem; color: var(--nq-muted); line-height: 1.5; }
|
|
223
|
+
.nq-auth-form .nq-form-row:last-of-type { margin-bottom: 1.5rem; }
|
|
224
|
+
.nq-auth-form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
|
|
225
|
+
.nq-auth-form .nq-input { padding: 0.625rem 0.875rem; transition: border-color 0.15s, box-shadow 0.15s; }
|
|
226
|
+
.nq-auth-form .nq-input::placeholder { color: #94a3b8; }
|
|
227
|
+
.nq-auth-form .nq-input:focus { outline: none; border-color: var(--nq-primary); box-shadow: 0 0 0 3px rgba(80, 158, 227, 0.15); }
|
|
228
|
+
.nq-auth-submit { justify-content: center; padding: 0.625rem 1rem; font-weight: 600; font-size: 0.9375rem; }
|
|
229
|
+
.nq-auth-footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.375rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--nq-border); font-size: 0.875rem; }
|
|
230
|
+
.nq-auth-link { color: var(--nq-primary); font-weight: 600; text-decoration: none; }
|
|
231
|
+
.nq-auth-link:hover { color: var(--nq-primary-dark); text-decoration: underline; }
|
|
232
|
+
.nq-search .nq-input { width: 320px; }
|
|
233
|
+
.nq-topbar-actions { display: flex; align-items: center; gap: 1rem; }
|
|
234
|
+
.nq-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: flex-end; }
|
|
235
|
+
.nq-actions form { display: inline-flex; margin: 0; }
|
|
236
|
+
.nq-actions form .nq-btn { margin: 0; }
|
|
237
|
+
.nq-chart-types { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
|
238
|
+
.nq-radio { display: inline-flex; align-items: center; gap: 0.25rem; margin-right: 1rem; }
|
|
239
|
+
.nq-checkbox { display: block; margin-bottom: 0.25rem; }
|
|
240
|
+
.nq-csv-preview { margin: 1rem 0; overflow: auto; }
|
|
241
|
+
.nq-embed-body { margin: 0; padding: 1rem; background: #fff; }
|
|
242
|
+
.nq-icon-lg { width: 2.5rem; height: 2.5rem; color: var(--nq-muted); }
|
|
243
|
+
.nq-type-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
|
|
244
|
+
.nq-type-badge-folder { background: #fef3c7; color: #92400e; }
|
|
245
|
+
.nq-type-badge-chart { background: #dbeafe; color: #1d4ed8; }
|
|
246
|
+
.nq-type-badge-dashboard { background: #dcfce7; color: #166534; }
|
|
247
|
+
.nq-table-collection th:first-child,
|
|
248
|
+
.nq-table-collection td:first-child { width: 9rem; }
|
|
249
|
+
.nq-empty-state { text-align: center; padding: 3rem 1.5rem; }
|
|
250
|
+
.nq-empty-state h2 { margin: 0.75rem 0 0.5rem; font-size: 1.125rem; }
|
|
251
|
+
.nq-empty-state p { margin: 0 0 1.25rem; }
|
|
252
|
+
.nq-empty-state-icon { display: flex; justify-content: center; }
|
|
253
|
+
.nq-section-title { margin: 0 0 1rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--nq-muted); }
|
|
254
|
+
.nq-folder-card { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border: 1px solid var(--nq-border); border-radius: 8px; background: var(--nq-card); text-decoration: none; color: var(--nq-text); font-weight: 600; transition: border-color 0.15s, box-shadow 0.15s; }
|
|
255
|
+
.nq-folder-card:hover { border-color: var(--nq-primary); box-shadow: 0 0 0 1px var(--nq-primary); color: var(--nq-primary); }
|
|
256
|
+
.nq-dashboard-summary-grid { align-items: start; }
|
|
257
|
+
.nq-dashboard-summary-card { background: var(--nq-card); border: 1px solid var(--nq-border); border-radius: 8px; padding: 1.25rem; }
|
|
258
|
+
.nq-dashboard-summary-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
|
|
259
|
+
.nq-dashboard-summary-heading { min-width: 0; }
|
|
260
|
+
.nq-dashboard-summary-title { display: block; font-size: 1.125rem; font-weight: 600; color: var(--nq-text); text-decoration: none; margin-bottom: 0.25rem; }
|
|
261
|
+
.nq-dashboard-summary-title:hover { color: var(--nq-primary); }
|
|
262
|
+
.nq-dashboard-summary-charts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--nq-border); }
|
|
263
|
+
.nq-dashboard-summary-chart-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; border-bottom: 1px solid var(--nq-border); padding: 0.25rem 0; }
|
|
264
|
+
.nq-dashboard-summary-chart-row:last-child { border-bottom: none; }
|
|
265
|
+
.nq-dashboard-summary-chart-row .nq-chart-row-actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
|
|
266
|
+
.nq-dashboard-summary-chart-row .nq-chart-row-actions form { display: inline-flex; margin: 0; }
|
|
267
|
+
.nq-btn-icon-danger { color: var(--nq-danger); border-color: #fecaca; }
|
|
268
|
+
.nq-btn-icon-danger:hover { background: #fef2f2; }
|
|
269
|
+
.nq-dashboard-summary-chart-link { display: flex; align-items: center; gap: 0.625rem; flex: 1; min-width: 0; padding: 0.5rem 0; text-decoration: none; color: inherit; border-radius: 6px; transition: background-color 0.15s; }
|
|
270
|
+
.nq-dashboard-summary-chart-link:hover { background: #f8fafc; }
|
|
271
|
+
.nq-dashboard-summary-chart-link:hover .nq-dashboard-summary-chart-name { color: var(--nq-primary); }
|
|
272
|
+
.nq-dashboard-summary-chart-copy { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
|
|
273
|
+
.nq-dashboard-summary-chart-name { font-weight: 500; line-height: 1.3; }
|
|
274
|
+
.nq-dashboard-summary-chart-type { font-size: 0.75rem; color: var(--nq-muted); }
|
|
275
|
+
.nq-dashboard-summary-empty { padding: 0.75rem 0; font-size: 0.875rem; }
|
|
276
|
+
.nq-btn-icon { padding: 0.5rem; }
|
|
277
|
+
.nq-menu { position: relative; }
|
|
278
|
+
.nq-menu summary { list-style: none; cursor: pointer; }
|
|
279
|
+
.nq-menu summary::-webkit-details-marker { display: none; }
|
|
280
|
+
.nq-menu-panel { position: absolute; top: calc(100% + 0.25rem); right: 0; min-width: 10rem; background: var(--nq-card); border: 1px solid var(--nq-border); border-radius: 8px; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12); padding: 0.375rem; z-index: 20; }
|
|
281
|
+
.nq-menu-panel form { display: block; margin: 0; }
|
|
282
|
+
.nq-menu-item { display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 0.5rem 0.75rem; border-radius: 6px; text-decoration: none; color: var(--nq-text); font-size: 0.875rem; background: transparent; border: none; text-align: left; cursor: pointer; }
|
|
283
|
+
.nq-menu-item:hover { background: #f8fafc; }
|
|
284
|
+
.nq-menu-item-button { font: inherit; }
|
|
285
|
+
.nq-menu-item-danger { color: var(--nq-danger); }
|
|
286
|
+
.nq-menu-item-danger:hover { background: #fef2f2; }
|
|
287
|
+
.nq-home { display: flex; flex-direction: column; gap: 1.5rem; }
|
|
288
|
+
.nq-home-hero { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.75rem 2rem; background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%); border-color: #dbeafe; }
|
|
289
|
+
.nq-home-hero-content { min-width: 0; }
|
|
290
|
+
.nq-home-eyebrow { margin: 0 0 0.375rem; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nq-primary); }
|
|
291
|
+
.nq-home-title { margin: 0; font-size: 1.75rem; line-height: 1.2; }
|
|
292
|
+
.nq-home-subtitle { margin: 0.5rem 0 0; font-size: 0.9375rem; }
|
|
293
|
+
.nq-home-hero-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
|
|
294
|
+
.nq-home-hero-cta { flex-shrink: 0; }
|
|
295
|
+
.nq-home-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
|
|
296
|
+
.nq-home-action-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; border: 1px solid var(--nq-border); border-radius: 8px; background: var(--nq-card); text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
|
|
297
|
+
.nq-home-action-card:hover { border-color: var(--nq-primary); box-shadow: 0 8px 24px rgba(80, 158, 227, 0.12); transform: translateY(-1px); }
|
|
298
|
+
.nq-home-action-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 10px; }
|
|
299
|
+
.nq-home-action-icon .nq-icon { width: 1.25rem; height: 1.25rem; }
|
|
300
|
+
.nq-home-action-icon-folder { background: #fef3c7; color: #b45309; }
|
|
301
|
+
.nq-home-action-icon-dashboard { background: #dcfce7; color: #15803d; }
|
|
302
|
+
.nq-home-action-icon-chart { background: #dbeafe; color: #1d4ed8; }
|
|
303
|
+
.nq-home-action-label { font-size: 1rem; font-weight: 600; color: var(--nq-text); }
|
|
304
|
+
.nq-home-action-desc { font-size: 0.8125rem; line-height: 1.4; }
|
|
305
|
+
.nq-home-recents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
|
|
306
|
+
.nq-home-panel { padding: 0; overflow: hidden; }
|
|
307
|
+
.nq-home-panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.25rem 0; }
|
|
308
|
+
.nq-home-panel-title { margin: 0; font-size: 1.0625rem; font-weight: 600; }
|
|
309
|
+
.nq-home-panel-desc { margin: 0.25rem 0 0; font-size: 0.8125rem; }
|
|
310
|
+
.nq-home-panel-link { display: inline-flex; align-items: center; gap: 0.25rem; flex-shrink: 0; padding-top: 0.125rem; font-size: 0.8125rem; font-weight: 600; color: var(--nq-primary); text-decoration: none; }
|
|
311
|
+
.nq-home-panel-link:hover { color: var(--nq-primary-dark); }
|
|
312
|
+
.nq-home-panel-link .nq-icon { width: 0.875rem; height: 0.875rem; }
|
|
313
|
+
.nq-home-list { list-style: none; margin: 1rem 0 0; padding: 0; }
|
|
314
|
+
.nq-home-list-item { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1.25rem; text-decoration: none; color: inherit; border-top: 1px solid var(--nq-border); transition: background 0.12s; }
|
|
315
|
+
.nq-home-list-item:hover { background: #f8fafc; }
|
|
316
|
+
.nq-home-list-item:hover .nq-home-list-title { color: var(--nq-primary); }
|
|
317
|
+
.nq-home-list-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 8px; flex-shrink: 0; }
|
|
318
|
+
.nq-home-list-icon .nq-icon { width: 1rem; height: 1rem; }
|
|
319
|
+
.nq-home-list-icon-dashboard { background: #ecfdf5; color: #059669; }
|
|
320
|
+
.nq-home-list-icon-chart { background: #eff6ff; color: #2563eb; }
|
|
321
|
+
.nq-home-list-body { min-width: 0; flex: 1; }
|
|
322
|
+
.nq-home-list-title { display: block; font-weight: 600; font-size: 0.9375rem; transition: color 0.12s; }
|
|
323
|
+
.nq-home-list-meta { display: block; margin-top: 0.125rem; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
324
|
+
.nq-home-list-time { flex-shrink: 0; font-size: 0.75rem; white-space: nowrap; }
|
|
325
|
+
.nq-home-empty { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 2.5rem 1.25rem 1.75rem; text-align: center; border-top: 1px solid var(--nq-border); margin-top: 1rem; }
|
|
326
|
+
.nq-home-empty p { margin: 0; }
|
|
327
|
+
@media (max-width: 768px) {
|
|
328
|
+
.nq-grid-2, .nq-grid-3, .nq-grid-sidebar, .nq-grid-editor, .nq-chart-builder-layout { grid-template-columns: 1fr; }
|
|
329
|
+
.nq-sidebar { display: none; }
|
|
330
|
+
.nq-page-header { grid-template-columns: 1fr; grid-template-areas: "title" "meta" "actions"; }
|
|
331
|
+
.nq-page-header > .nq-actions,
|
|
332
|
+
.nq-page-header > .nq-btn,
|
|
333
|
+
.nq-page-header > a.nq-btn { justify-self: start; }
|
|
334
|
+
.nq-page-header .nq-actions { flex-wrap: wrap; }
|
|
335
|
+
.nq-home-hero { flex-direction: column; align-items: stretch; }
|
|
336
|
+
.nq-home-actions, .nq-home-recents { grid-template-columns: 1fr; }
|
|
337
|
+
.nq-home-list-time { display: none; }
|
|
338
|
+
.nq-auth-form-row-split { grid-template-columns: 1fr; }
|
|
339
|
+
}
|