diff --git a/statics/www/index.html b/statics/www/index.html index 41317ab..740b967 100644 --- a/statics/www/index.html +++ b/statics/www/index.html @@ -65,361 +65,559 @@ --activity-marker-color: #f87171; --activity-marker-glow: rgba(248, 113, 113, 0.35); } + + #activity-modal::backdrop { + background-color: rgba(15, 23, 42, 0.75); + } -
- - -
-
-

Welcome to InceptionDB

-

Select or create a collection in the sidebar to start querying, inserting, or deleting documents.

+
- -
-
-
-

Collection {{ selectedCollection.name }}

-

- Total: {{ selectedCollection.total }} - Last query: {{ queryStats.elapsed }} - Documents listed: {{ queryStats.returned }} + +

+
- -
-
-
-
- - -

{{ filterError }}

+
+ {{ collection.name }} + {{ prettyTotal(collection.total) }}
+

{{ collection.indexes }} indexes

+ +

No collections registered yet.

+ +
+ -
- - -
+
+
+

Welcome to InceptionDB

+

Select or create a collection in the sidebar to start querying, inserting, or deleting documents.

+
-
- - -
+
+
+
+

Collection {{ selectedCollection.name }}

+

+ Total: {{ selectedCollection.total }} + Last query: {{ queryStats.elapsed }} + Documents listed: {{ queryStats.returned }} +

+
+
+ + +
+
-
+
+
+
- From (inclusive) -
- -
+ + +

{{ filterError }}

+
- To (exclusive) -
- -
+ +
- -
-
+
+ + +
-
-
-
+
-

- Results - -  🛈 - -

-
-
-
- - + From (inclusive) +
+
-
- +
+
+ To (exclusive) +
+
-

{{ exportState.error }}

-

{{ exportState.progress }}

+
+
-
-
Running query…
-
{{ queryError }}
-
No documents found.
-
-
-
- -
- skip - + JSON cards + +
-
- limit - +
- +

{{ exportState.error }}

+

{{ exportState.progress }}

-

{{ pageInfo }}

-
-
-
-
-

Document #{{ offset + idx + 1 }}

-

ID: {{ documentId(row) }}

-
-
- +
+ skip + - Edit - -
+
+

{{ pageInfo }}

+
+
- +
+
+

Document #{{ offset + idx + 1 }}

+

ID: {{ documentId(row) }}

+
+
+ + +
+
+
+ + +

+ Set a field to null to remove it. +

+
+ + +
+

+ {{ editingDocuments[documentId(row)].error }} +

+

+ {{ editingDocuments[documentId(row)].success }} +

+
+
{{ formatDocument(row) }}
+

+ The document must include an "id" field to enable editing or deletion. +

+
+
+
+
+ + + + + + + + + + + + + + + +
# + {{ column }} + Actions
{{ offset + idx + 1 }} + {{ formatTableValue(row, column) }} + +
+ + + +
+
+
+
+
+

Edit document {{ editing.id }}

+

Document #{{ editing.position }}

+
@@ -430,717 +628,516 @@

Collection {{ selectedCollecti

-

- {{ editingDocuments[documentId(row)].error }} +

+ {{ editing.state.error }}

-

- {{ editingDocuments[documentId(row)].success }} +

+ {{ editing.state.success }}

-
{{ formatDocument(row) }}
-

- The document must include an "id" field to enable editing or deletion. -

-
-
-
- - - - - - - - - - - - - - - -
# - {{ column }} - Actions
{{ offset + idx + 1 }} - {{ formatTableValue(row, column) }} - -
- - - -
-
-
-
-
-

Edit document {{ editing.id }}

-

Document #{{ editing.position }}

-
- -

- Set a field to null to remove it. -

-
+
+
+
+ skip + +
+
+ limit + +
-

- {{ editing.state.error }} -

-

- {{ editing.state.success }} -

+

{{ pageInfo }}

-
-
- -
- skip - -
-
- limit - -
- -
-

{{ pageInfo }}

-
-
-
-
- -
-
-

Estimated storage usage returned by the size endpoint.

- -
-

- Select a collection to inspect its metrics. -

-

Loading metrics…

-

{{ sizeMetrics.error }}

-
-

- Updated at {{ sizeMetricsUpdatedLabel }} -

-
-
+
+
+

Estimated storage usage returned by the size endpoint.

+
-
+ {{ sizeMetrics.loading ? 'Refreshing…' : 'Refresh' }} + +
+

+ Select a collection to inspect its metrics. +

+

Loading metrics…

+

{{ sizeMetrics.error }}

+
+

+ Updated at {{ sizeMetricsUpdatedLabel }} +

+
+
+
{{ entry.label }}
+
{{ entry.value }}
+
+
+
+

No metrics reported for this collection.

+

Metrics will appear after refreshing.

-

No metrics reported for this collection.

-

Metrics will appear after refreshing.

-
-
- -
-
-

- Documents missing fields will receive these values when inserted. -

- -
+
-

Special values

-
    -
  • - uuid() - Generate a unique identifier. -
  • -
  • - unixnano() - Insert the current timestamp in nanoseconds. -
  • -
  • - auto() - Assign an auto-incrementing number within the collection. -
  • -
-
- -
- - +
+
- {{ defaultsForm.saving ? 'Saving…' : 'Save defaults' }} - +

Special values

+
    +
  • + uuid() + Generate a unique identifier. +
  • +
  • + unixnano() + Insert the current timestamp in nanoseconds. +
  • +
  • + auto() + Assign an auto-incrementing number within the collection. +
  • +
+
+ +
+ + +
+

{{ defaultsForm.error }}

+

{{ defaultsForm.success }}

-

{{ defaultsForm.error }}

-

{{ defaultsForm.success }}

-
-
- -
+ +
-
- +
+ +
+

{{ insertForm.error }}

+

{{ insertForm.success }}

-

{{ insertForm.error }}

-

{{ insertForm.success }}

-
-
- -
-

- Upload a CSV file to insert multiple documents at once. The first row should contain the field names. -

-
-
- - + +
+

+ Upload a CSV file to insert multiple documents at once. The first row should contain the field names. +

+
+
+ + +
+
+ + +
+
+ + +
-
- - -
-
- - + {{ csvImportForm.importing ? 'Importing…' : 'Import CSV' }} +
+

{{ csvImportForm.error }}

+

{{ csvImportForm.success }}

+

{{ csvImportForm.progress }}

-

Selected file: {{ csvImportForm.fileName }}

-
- - -
-

{{ csvImportForm.error }}

-

{{ csvImportForm.success }}

-

{{ csvImportForm.progress }}

-
-
- -
-
- -
-

{{ indexMessages.error }}

-

{{ indexMessages.success }}

-
+
-
- - -
-
- - + {{ indexForm.open ? 'Cancel' : 'New index' }} +
-
+

{{ indexMessages.error }}

+

{{ indexMessages.success }}

+
- +
- -
-
- - Type +
- - -
-
- - -
- -
Loading indexes…
-
This collection has no indexes yet.
-
    -
  • -
    -
    -
    - {{ index.name }} - - {{ index.type === 'btree' ? 'B-Tree' : 'Map' }} - -
    -

    Field: {{ index.field }}

    -

    Fields: {{ Array.isArray(index.fields) ? index.fields.join(', ') : '' }}

    -
    - Unique - Sparse -
    +
    +
    + + +
    + +
    +
    +
    + + +

    + Separate fields with commas. Prefix with "-" for descending order. +

    + + +
    +
    +
    -
  • -
+ +
Loading indexes…
+
This collection has no indexes yet.
+
    +
  • +
    +
    +
    + {{ index.name }} + + {{ index.type === 'btree' ? 'B-Tree' : 'Map' }} + +
    +

    Field: {{ index.field }}

    +

    Fields: {{ Array.isArray(index.fields) ? index.fields.join(', ') : '' }}

    +
    + Unique + Sparse +
    +
    + +
    +
  • +
+
-
-
-
-
-
- +
+
+
- -
- -
- -
-
+