diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..95f9808 --- /dev/null +++ b/.flake8 @@ -0,0 +1,3 @@ +[flake8] +exclude = .git, .venv, output, static/icons +max-line-length = 160 diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..5cf26be --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,151 @@ +name: CI + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + ci: + name: Lint, test, and build + # This label must match your Forgejo runner's label + runs-on: docker + # Use a clean Debian container so tools are predictable + container: debian:stable-slim + env: + PYTHONDONTWRITEBYTECODE: "1" + PIP_DISABLE_PIP_VERSION_CHECK: "1" + UV_SYSTEM_PYTHON: "1" + steps: + - name: Install build tooling + run: | + set -euo pipefail + apt-get update + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + git ca-certificates python3 python3-venv python3-pip python3-setuptools \ + python3-wheel sqlite3 + update-ca-certificates || true + + - name: Checkout repository (manual) + run: | + set -euo pipefail + if [ -f Makefile ] || [ -d .git ]; then + echo "Repository present in workspace; skipping clone" + exit 0 + fi + REMOTE_URL="${CI_REPOSITORY_URL:-}" + if [ -z "$REMOTE_URL" ]; then + if [ -n "${GITHUB_SERVER_URL:-}" ] && [ -n "${GITHUB_REPOSITORY:-}" ]; then + REMOTE_URL="${GITHUB_SERVER_URL%/}/${GITHUB_REPOSITORY}.git" + elif [ -n "${GITHUB_REPOSITORY:-}" ]; then + REMOTE_URL="https://git.jordanwages.com/${GITHUB_REPOSITORY}.git" + else + echo "Unable to determine repository URL from CI environment" >&2 + exit 1 + fi + fi + AUTH_URL="$REMOTE_URL" + if [ -n "${GITHUB_TOKEN:-}" ]; then + ACTOR="${GITHUB_ACTOR:-oauth2}" + AUTH_URL=$(printf '%s' "$REMOTE_URL" | sed -E "s#^https://#https://${ACTOR}:${GITHUB_TOKEN}@#") + fi + echo "Cloning from: $REMOTE_URL" + if ! git clone --depth 1 "$AUTH_URL" .; then + echo "Auth clone failed; trying anonymous clone..." >&2 + git clone --depth 1 "$REMOTE_URL" . + fi + if [ -n "${GITHUB_SHA:-}" ]; then + git fetch --depth 1 origin "$GITHUB_SHA" || true + git checkout -q "$GITHUB_SHA" || true + elif [ -n "${GITHUB_REF_NAME:-}" ]; then + git fetch --depth 1 origin "$GITHUB_REF_NAME" || true + git checkout -q "$GITHUB_REF_NAME" || true + fi + + - name: Set up venv and install deps + run: | + set -euo pipefail + # Prefer persistent cache if runner provides /cache + USE_CACHE=0 + if [ -d /cache ] && [ -w /cache ]; then + export PIP_CACHE_DIR=/cache/pip + mkdir -p "$PIP_CACHE_DIR" + REQ_HASH=$(sha256sum requirements.txt | awk '{print $1}') + PYVER=$(python3 -c 'import sys;print(".".join(map(str, sys.version_info[:2])))') + CACHE_VENV="/cache/venv-${REQ_HASH}-py${PYVER}" + if [ ! -f "$CACHE_VENV/bin/activate" ]; then + echo "Preparing cached virtualenv: $CACHE_VENV" + rm -rf "$CACHE_VENV" || true + python3 -m venv "$CACHE_VENV" + fi + ln -sfn "$CACHE_VENV" .venv + USE_CACHE=1 + else + # Fallback to local venv + python3 -m venv .venv + fi + + # If the link didn't produce an activate file, fallback to local venv + if [ ! -f .venv/bin/activate ]; then + echo "Cached venv missing; creating local .venv" + rm -f .venv + python3 -m venv .venv + USE_CACHE=0 + fi + + . .venv/bin/activate + python -m pip install --upgrade pip + if [ "$USE_CACHE" = "1" ]; then + # Ensure required packages are present; pip will use cache + pip install -r requirements.txt pytest || pip install -r requirements.txt pytest + else + pip install -r requirements.txt pytest + fi + + - name: Format check (black) + run: | + . .venv/bin/activate + black --check . + + - name: Lint (flake8) + run: | + . .venv/bin/activate + flake8 . + + - name: Run tests (pytest) + run: | + . .venv/bin/activate + export PYTHONPATH="$(pwd)${PYTHONPATH:+:$PYTHONPATH}" + pytest -q --maxfail=1 + + - name: Build sample reports (no artifact upload) + run: | + set -euo pipefail + . .venv/bin/activate + python - <<'PY' + import sqlite3, pathlib + db = pathlib.Path('database/ngxstat.db') + db.parent.mkdir(parents=True, exist_ok=True) + conn = sqlite3.connect(db) + cur = conn.cursor() + cur.execute('''CREATE TABLE IF NOT EXISTS logs ( + id INTEGER PRIMARY KEY, + ip TEXT, + host TEXT, + time TEXT, + request TEXT, + status INTEGER, + bytes_sent INTEGER, + referer TEXT, + user_agent TEXT, + cache_status TEXT + )''') + cur.execute("INSERT INTO logs (ip, host, time, request, status, bytes_sent, referer, user_agent, cache_status) VALUES ('127.0.0.1','example.com','2024-01-01 10:00:00','GET / HTTP/1.1',200,100,'-','curl','MISS')") + cur.execute("INSERT INTO logs (ip, host, time, request, status, bytes_sent, referer, user_agent, cache_status) VALUES ('127.0.0.1','example.com','2024-01-01 10:05:00','GET /about HTTP/1.1',200,100,'-','curl','MISS')") + conn.commit(); conn.close() + PY + python scripts/generate_reports.py global + python scripts/generate_reports.py hourly + python scripts/generate_reports.py index + tar -czf ngxstat-reports.tar.gz -C output . + echo "Built sample reports archive: ngxstat-reports.tar.gz" diff --git a/AGENTS.md b/AGENTS.md index 4cdfa62..7e7d3c5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -24,6 +24,9 @@ This document outlines general practices and expectations for AI agents assistin The `run-import.sh` script can initialize this environment automatically. Always activate the virtual environment before running scripts or tests. +* Before committing code run `black` for consistent formatting and execute + the test suite with `pytest`. All tests should pass. + * Dependency management: Use `requirements.txt` or `pip-tools` * Use standard libraries where feasible (e.g., `sqlite3`, `argparse`, `datetime`) * Adopt `typer` for CLI command interface (if CLI ergonomics matter) @@ -89,6 +92,14 @@ ngxstat/ If uncertain, the agent should prompt the human for clarification before making architectural assumptions. +## Testing + +Use `pytest` for automated tests. Run the suite from an activated virtual environment and ensure all tests pass before committing: + +```bash +pytest -q +``` + --- ## Future Capabilities @@ -106,3 +117,4 @@ As the project matures, agents may also: * **2025-07-17**: Initial version by Jordan + ChatGPT * **2025-07-17**: Expanded virtual environment usage guidance + diff --git a/README.md b/README.md index 70f21d9..ac601fc 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,16 @@ # ngxstat -Per-domain Nginx log analytics with hybrid static reports and live insights. -## Generating Reports +`ngxstat` is a lightweight log analytics toolkit for Nginx. It imports access +logs into an SQLite database and renders static dashboards so you can explore +per-domain metrics without running a heavy backend service. -Use the `generate_reports.py` script to build aggregated JSON and HTML snippet files from `database/ngxstat.db`. +## Requirements -Create a virtual environment and install dependencies: +* Python 3.10+ +* Access to the Nginx log files (default: `/var/log/nginx`) + +The helper scripts create a virtual environment on first run, but you can also +set one up manually: ```bash python3 -m venv .venv @@ -13,116 +18,95 @@ source .venv/bin/activate pip install -r requirements.txt ``` -Then run one or more of the interval commands: - -```bash -python scripts/generate_reports.py hourly -python scripts/generate_reports.py daily -python scripts/generate_reports.py weekly -python scripts/generate_reports.py monthly -``` - -Each command accepts optional flags to generate per-domain reports. Use -`--domain ` to limit output to a specific domain or `--all-domains` -to generate a subdirectory for every domain found in the database: - -```bash -# Hourly reports for example.com only -python scripts/generate_reports.py hourly --domain example.com - -# Weekly reports for all domains individually -python scripts/generate_reports.py weekly --all-domains -``` - -Reports are written under the `output/` directory. Each command updates the corresponding `.json` file and writes one HTML snippet per report. These snippets are loaded dynamically by the main dashboard using Chart.js and DataTables. - -### Configuring Reports - -Report queries are defined in `reports.yml`. Each entry specifies the `name`, -optional `label` and `chart` type, and a SQL `query` that must return `bucket` -and `value` columns. The special token `{bucket}` is replaced with the -appropriate SQLite `strftime` expression for each interval (hourly, daily, -weekly or monthly) so that a single definition works across all durations. -When `generate_reports.py` runs, every definition is executed for the requested -interval and creates `output//.json` plus a small HTML snippet -`output//.html` used by the dashboard. - -Example snippet: - -```yaml -- name: hits - chart: bar - query: | - SELECT {bucket} AS bucket, - COUNT(*) AS value - FROM logs - GROUP BY bucket - ORDER BY bucket -``` - -Add or modify entries in `reports.yml` to tailor the generated metrics. - ## Importing Logs -Use the `run-import.sh` script to set up the Python environment if needed and import the latest Nginx log entries into `database/ngxstat.db`. +Run the importer to ingest new log entries into `database/ngxstat.db`: ```bash ./run-import.sh ``` -This script is suitable for cron jobs as it creates the virtual environment on first run, installs dependencies and reuses the environment on subsequent runs. +Rotated logs are processed in order and only entries newer than the last +imported timestamp are added. -The importer handles rotated logs in order from oldest to newest so entries are -processed exactly once. If you rerun the script, it only ingests records with a -timestamp newer than the latest one already stored in the database, preventing -duplicates. +## Generating Reports -## Cron Report Generation - -Use the `run-reports.sh` script to run all report intervals in one step. The script sets up the Python environment the same way as `run-import.sh`, making it convenient for automation via cron. +To build the HTML dashboard and JSON data files use `run-reports.sh` which runs +all intervals in one go: ```bash ./run-reports.sh ``` -Running this script will create or update the hourly, daily, weekly and monthly reports under `output/`. It also detects all unique domains found in the database and writes per-domain reports to `output/domains//` alongside the aggregate data. After generation, open `output/index.html` in your browser to browse the reports. +The script calls `scripts/generate_reports.py` internally to create hourly, +daily, weekly and monthly reports, then writes analysis JSON files used by the +"Analysis" tab. Per-domain reports are written under `output/domains/` +alongside the aggregate data. Open `output/index.html` in a browser to view the +dashboard. +If you prefer to run individual commands you can invoke the generator directly: -## Log Analysis +```bash +python scripts/generate_reports.py hourly +python scripts/generate_reports.py daily --all-domains +``` -The `run-analysis.sh` script runs helper routines that inspect the database. It -creates or reuses the virtual environment and then executes a set of analysis -commands to spot missing domains, suggest cache rules and detect potential -threats. +## Analysis Helpers + +`run-analysis.sh` executes additional utilities that examine the database for +missing domains, caching opportunities and potential threats. The JSON output is +saved under `output/analysis` and appears in the "Analysis" tab. The +`run-reports.sh` script also generates these JSON files as part of the build. + +## UX Controls + +The dashboard defaults to a 7‑day window for time series. Your view preferences +persist locally in the browser under the `ngxstat-state-v2` key. Use the +"Reset view" button to clear saved state and restore defaults. ```bash ./run-analysis.sh ``` -## Serving Reports with Nginx -To expose the generated HTML dashboards and JSON files over HTTP you can use a -simple Nginx server block. Point the `root` directive to the repository's -`output/` directory and optionally restrict access to your local network. +## Serving the Reports + +The generated files are static. You can serve them with a simple Nginx block: ```nginx server { listen 80; server_name example.com; - - # Path to the generated reports root /path/to/ngxstat/output; location / { try_files $uri $uri/ =404; } - - # Allow access only from private networks - allow 192.0.0.0/8; - allow 10.0.0.0/8; - deny all; } ``` -With this configuration the generated static files are served directly by -Nginx while connections outside of `192.*` and `10.*` are denied. +Restrict access if the reports should not be public. +## Running Tests + +Install the development dependencies and execute the suite with `pytest`: + +```bash +pip install -r requirements.txt +pytest -q +``` + +All tests must pass before submitting changes. + +## Acknowledgements + +ngxstat uses the following third‑party resources: + +* [Chart.js](https://www.chartjs.org/) for charts +* [DataTables](https://datatables.net/) and [jQuery](https://jquery.com/) for table views +* [Bulma CSS](https://bulma.io/) for styling +* Icons from [Free CC0 Icons](https://cc0-icons.jonh.eu/) by Jon Hicks (CC0 / MIT) +* [Typer](https://typer.tiangolo.com/) for the command-line interface +* [Jinja2](https://palletsprojects.com/p/jinja/) for templating + +The project is licensed under the GPLv3. Icon assets remain in the public domain +via the CC0 license. diff --git a/reports.yml b/reports.yml index 1a6f5ef..709d686 100644 --- a/reports.yml +++ b/reports.yml @@ -1,28 +1,37 @@ - name: hits label: Hits + icon: pulse chart: line + bucket: time_bucket + bucket_label: Time query: | - SELECT {bucket} AS bucket, + SELECT {bucket} AS time_bucket, COUNT(*) AS value FROM logs - GROUP BY bucket - ORDER BY bucket + GROUP BY time_bucket + ORDER BY time_bucket - name: error_rate label: Error Rate (%) + icon: file-alert chart: line + bucket: time_bucket + bucket_label: Time query: | - SELECT {bucket} AS bucket, + SELECT {bucket} AS time_bucket, SUM(CASE WHEN status BETWEEN 400 AND 599 THEN 1 ELSE 0 END) * 100.0 / COUNT(*) AS value FROM logs - GROUP BY bucket - ORDER BY bucket + GROUP BY time_bucket + ORDER BY time_bucket - name: cache_status_breakdown label: Cache Status + icon: archive chart: polarArea + bucket: cache_status + bucket_label: Cache Status query: | - SELECT cache_status AS bucket, + SELECT cache_status AS cache_status, COUNT(*) AS value FROM logs GROUP BY cache_status @@ -37,78 +46,168 @@ - name: domain_traffic label: Top Domains + icon: globe chart: table + top_n: 50 per_domain: false + bucket: domain + bucket_label: Domain query: | - SELECT host AS bucket, + SELECT host AS domain, COUNT(*) AS value FROM logs - GROUP BY host + GROUP BY domain ORDER BY value DESC - name: bytes_sent label: Bytes Sent + icon: upload chart: line + bucket: time_bucket + bucket_label: Time query: | - SELECT {bucket} AS bucket, + SELECT {bucket} AS time_bucket, SUM(bytes_sent) AS value FROM logs - GROUP BY bucket - ORDER BY bucket + GROUP BY time_bucket + ORDER BY time_bucket - name: top_paths label: Top Paths + icon: map chart: table + top_n: 50 + buckets: + - domain + - path + bucket_label: + - Domain + - Path query: | - SELECT path AS bucket, - COUNT(*) AS value - FROM ( - SELECT substr(substr(request, instr(request, ' ') + 1), 1, + WITH paths AS ( + SELECT host AS domain, + substr(substr(request, instr(request, ' ') + 1), 1, instr(substr(request, instr(request, ' ') + 1), ' ') - 1) AS path FROM logs + ), ranked AS ( + SELECT domain, path, COUNT(*) AS value, + ROW_NUMBER() OVER (PARTITION BY domain ORDER BY COUNT(*) DESC) AS rn + FROM paths + GROUP BY domain, path ) - GROUP BY path - ORDER BY value DESC - LIMIT 20 + SELECT domain, path, value + FROM ranked + WHERE rn <= 20 + ORDER BY domain, value DESC - name: user_agents label: User Agents + icon: user chart: table + top_n: 50 + buckets: + - domain + - user_agent + bucket_label: + - Domain + - User Agent query: | - SELECT user_agent AS bucket, - COUNT(*) AS value - FROM logs - GROUP BY user_agent - ORDER BY value DESC - LIMIT 20 + WITH ua AS ( + SELECT host AS domain, user_agent + FROM logs + ), ranked AS ( + SELECT domain, user_agent, COUNT(*) AS value, + ROW_NUMBER() OVER (PARTITION BY domain ORDER BY COUNT(*) DESC) AS rn + FROM ua + GROUP BY domain, user_agent + ) + SELECT domain, user_agent, value + FROM ranked + WHERE rn <= 20 + ORDER BY domain, value DESC - name: referrers label: Referrers + icon: link chart: table + top_n: 50 + buckets: + - domain + - referrer + bucket_label: + - Domain + - Referrer query: | - SELECT referer AS bucket, - COUNT(*) AS value - FROM logs - GROUP BY referer - ORDER BY value DESC - LIMIT 20 + WITH ref AS ( + SELECT host AS domain, referer AS referrer + FROM logs + ), ranked AS ( + SELECT domain, referrer, COUNT(*) AS value, + ROW_NUMBER() OVER (PARTITION BY domain ORDER BY COUNT(*) DESC) AS rn + FROM ref + GROUP BY domain, referrer + ) + SELECT domain, referrer, value + FROM ranked + WHERE rn <= 20 + ORDER BY domain, value DESC - name: status_distribution label: HTTP Statuses + icon: server chart: pie + bucket: status_group + bucket_label: Status query: | SELECT CASE WHEN status BETWEEN 200 AND 299 THEN '2xx' WHEN status BETWEEN 300 AND 399 THEN '3xx' WHEN status BETWEEN 400 AND 499 THEN '4xx' ELSE '5xx' - END AS bucket, + END AS status_group, COUNT(*) AS value FROM logs - GROUP BY bucket - ORDER BY bucket + GROUP BY status_group + ORDER BY status_group colors: - "#48c78e" - "#209cee" - "#ffdd57" - "#f14668" + +# New time-series: status classes over time (stacked) +- name: status_classes_timeseries + label: Status Classes Over Time + icon: server + chart: stackedBar + bucket: time_bucket + bucket_label: Time + stacked: true + query: | + SELECT {bucket} AS time_bucket, + SUM(CASE WHEN status BETWEEN 200 AND 299 THEN 1 ELSE 0 END) AS "2xx", + SUM(CASE WHEN status BETWEEN 300 AND 399 THEN 1 ELSE 0 END) AS "3xx", + SUM(CASE WHEN status BETWEEN 400 AND 499 THEN 1 ELSE 0 END) AS "4xx", + SUM(CASE WHEN status BETWEEN 500 AND 599 THEN 1 ELSE 0 END) AS "5xx", + COUNT(*) AS total + FROM logs + GROUP BY time_bucket + ORDER BY time_bucket + +# New time-series: cache status over time (compact Hit/Miss; exclude '-' by default) +- name: cache_status_timeseries + label: Cache Status Over Time + icon: archive + chart: stackedBar + bucket: time_bucket + bucket_label: Time + stacked: true + exclude_values: ["-"] + query: | + SELECT {bucket} AS time_bucket, + SUM(CASE WHEN cache_status = 'HIT' THEN 1 ELSE 0 END) AS hit, + SUM(CASE WHEN cache_status = 'MISS' THEN 1 ELSE 0 END) AS miss, + COUNT(*) AS total + FROM logs + GROUP BY time_bucket + ORDER BY time_bucket diff --git a/run-analysis.sh b/run-analysis.sh index 1f5c213..4149b9a 100755 --- a/run-analysis.sh +++ b/run-analysis.sh @@ -1,6 +1,15 @@ #!/usr/bin/env bash set -e +# Prevent concurrent executions of this script. +LOCK_FILE="/tmp/$(basename "$0").lock" +if [ -e "$LOCK_FILE" ]; then + echo "[WARN] $(basename "$0") is already running (lock file present)." >&2 + exit 0 +fi +touch "$LOCK_FILE" +trap 'rm -f "$LOCK_FILE"' EXIT + # Ensure virtual environment exists if [ ! -d ".venv" ]; then echo "[INFO] Creating virtual environment..." @@ -20,13 +29,13 @@ fi # Run analysis helpers echo "[INFO] Checking for missing domains..." -python scripts/analyze.py check-missing-domains +python -m scripts.analyze check-missing-domains echo "[INFO] Suggesting cache improvements..." -python scripts/analyze.py suggest-cache +python -m scripts.analyze suggest-cache echo "[INFO] Detecting threats..." -python scripts/analyze.py detect-threats +python -m scripts.analyze detect-threats # Deactivate to keep cron environment clean if type deactivate >/dev/null 2>&1; then diff --git a/run-import.sh b/run-import.sh index 22b4b31..3c79d35 100755 --- a/run-import.sh +++ b/run-import.sh @@ -1,6 +1,17 @@ #!/usr/bin/env bash set -e +# Prevent multiple simultaneous runs by using a lock file specific to this +# script. If the lock already exists, assume another instance is running and +# exit gracefully. +LOCK_FILE="/tmp/$(basename "$0").lock" +if [ -e "$LOCK_FILE" ]; then + echo "[WARN] $(basename "$0") is already running (lock file present)." >&2 + exit 0 +fi +touch "$LOCK_FILE" +trap 'rm -f "$LOCK_FILE"' EXIT + # Ensure virtual environment exists if [ ! -d ".venv" ]; then echo "[INFO] Creating virtual environment..." diff --git a/run-reports.sh b/run-reports.sh index a0d718f..f7cffba 100755 --- a/run-reports.sh +++ b/run-reports.sh @@ -1,6 +1,15 @@ #!/usr/bin/env bash set -e +# Prevent concurrent executions of this script. +LOCK_FILE="/tmp/$(basename "$0").lock" +if [ -e "$LOCK_FILE" ]; then + echo "[WARN] $(basename "$0") is already running (lock file present)." >&2 + exit 0 +fi +touch "$LOCK_FILE" +trap 'rm -f "$LOCK_FILE"' EXIT + # Ensure virtual environment exists if [ ! -d ".venv" ]; then echo "[INFO] Creating virtual environment..." @@ -20,21 +29,25 @@ fi # Generate reports for all domains combined echo "[INFO] Generating aggregate reports..." -python scripts/generate_reports.py hourly -python scripts/generate_reports.py daily -python scripts/generate_reports.py weekly -python scripts/generate_reports.py monthly -python scripts/generate_reports.py global +python -m scripts.generate_reports hourly +python -m scripts.generate_reports daily +python -m scripts.generate_reports weekly +python -m scripts.generate_reports monthly +python -m scripts.generate_reports global # Generate reports for each individual domain echo "[INFO] Generating per-domain reports..." -python scripts/generate_reports.py hourly --all-domains -python scripts/generate_reports.py daily --all-domains -python scripts/generate_reports.py weekly --all-domains -python scripts/generate_reports.py monthly --all-domains +python -m scripts.generate_reports hourly --all-domains +python -m scripts.generate_reports daily --all-domains +python -m scripts.generate_reports weekly --all-domains +python -m scripts.generate_reports monthly --all-domains + +# Generate analysis JSON +echo "[INFO] Generating analysis files..." +python -m scripts.generate_reports analysis # Generate root index -python scripts/generate_reports.py index +python -m scripts.generate_reports index # Deactivate to keep cron environment clean if type deactivate >/dev/null 2>&1; then diff --git a/scripts/__init__.py b/scripts/__init__.py new file mode 100644 index 0000000..f4c57a1 --- /dev/null +++ b/scripts/__init__.py @@ -0,0 +1 @@ +"Utility package for ngxstat scripts" diff --git a/scripts/analyze.py b/scripts/analyze.py index 219ceeb..9f49978 100644 --- a/scripts/analyze.py +++ b/scripts/analyze.py @@ -18,7 +18,7 @@ from __future__ import annotations import sqlite3 from pathlib import Path -from typing import Dict, List, Optional, Set +from typing import List, Optional, Set from datetime import datetime, timedelta import json @@ -105,7 +105,9 @@ def hits(domain: Optional[str] = typer.Option(None, help="Filter by domain")) -> @app.command("cache-ratio") -def cache_ratio_cmd(domain: Optional[str] = typer.Option(None, help="Filter by domain")) -> None: +def cache_ratio_cmd( + domain: Optional[str] = typer.Option(None, help="Filter by domain") +) -> None: """Display cache hit ratio as a percentage.""" ratio = get_cache_ratio(domain) * 100 if domain: @@ -115,7 +117,11 @@ def cache_ratio_cmd(domain: Optional[str] = typer.Option(None, help="Filter by d @app.command("check-missing-domains") -def check_missing_domains(json_output: bool = typer.Option(False, "--json", help="Output missing domains as JSON")) -> None: +def check_missing_domains( + json_output: bool = typer.Option( + False, "--json", help="Output missing domains as JSON" + ) +) -> None: """Show domains present in the database but absent from Nginx config.""" try: from scripts.generate_reports import _get_domains as _db_domains @@ -138,6 +144,10 @@ def check_missing_domains(json_output: bool = typer.Option(False, "--json", help missing = sorted(db_domains - config_domains) + ANALYSIS_DIR.mkdir(parents=True, exist_ok=True) + out_path = ANALYSIS_DIR / "missing_domains.json" + out_path.write_text(json.dumps(missing, indent=2)) + if json_output: typer.echo(json.dumps(missing)) else: @@ -145,12 +155,9 @@ def check_missing_domains(json_output: bool = typer.Option(False, "--json", help typer.echo(d) -@app.command("suggest-cache") def suggest_cache( - threshold: int = typer.Option( - 10, help="Minimum number of MISS entries to report" - ), - json_output: bool = typer.Option(False, "--json", help="Output results as JSON"), + threshold: int = 10, + json_output: bool = False, ) -> None: """Suggest domain/path pairs that could benefit from caching. @@ -183,28 +190,38 @@ def suggest_cache( HAVING miss_count >= ? ORDER BY miss_count DESC """, - (threshold,), + (int(threshold),), ) rows = [r for r in cur.fetchall() if r[0] in no_cache] conn.close() + result = [ + {"host": host, "path": path, "misses": count} for host, path, count in rows + ] + + ANALYSIS_DIR.mkdir(parents=True, exist_ok=True) + out_path = ANALYSIS_DIR / "cache_suggestions.json" + out_path.write_text(json.dumps(result, indent=2)) + if json_output: - result = [ - {"host": host, "path": path, "misses": count} for host, path, count in rows - ] typer.echo(json.dumps(result)) else: - for host, path, count in rows: - typer.echo(f"{host} {path} {count}") + for item in result: + typer.echo(f"{item['host']} {item['path']} {item['misses']}") + +@app.command("suggest-cache") +def suggest_cache_cli( + threshold: int = typer.Option(10, help="Minimum number of MISS entries to report"), + json_output: bool = typer.Option(False, "--json", help="Output results as JSON"), +) -> None: + """CLI wrapper for suggest_cache.""" + suggest_cache(threshold=threshold, json_output=json_output) -@app.command("detect-threats") def detect_threats( - hours: int = typer.Option(1, help="Number of recent hours to analyze"), - ip_threshold: int = typer.Option( - 100, help="Requests from a single IP to flag" - ), + hours: int = 1, + ip_threshold: int = 100, ) -> None: """Detect potential security threats from recent logs.""" @@ -220,8 +237,8 @@ def detect_threats( max_dt = datetime.strptime(row[0], "%Y-%m-%d %H:%M:%S") recent_end = max_dt - recent_start = recent_end - timedelta(hours=hours) - prev_start = recent_start - timedelta(hours=hours) + recent_start = recent_end - timedelta(hours=int(hours)) + prev_start = recent_start - timedelta(hours=int(hours)) prev_end = recent_start fmt = "%Y-%m-%d %H:%M:%S" @@ -307,9 +324,7 @@ def detect_threats( """, (recent_start_s, recent_end_s, ip_threshold), ) - high_ip_requests = [ - {"ip": ip, "requests": cnt} for ip, cnt in cur.fetchall() - ] + high_ip_requests = [{"ip": ip, "requests": cnt} for ip, cnt in cur.fetchall()] conn.close() @@ -330,6 +345,14 @@ def detect_threats( out_path.write_text(json.dumps(report, indent=2)) typer.echo(json.dumps(report)) +@app.command("detect-threats") +def detect_threats_cli( + hours: int = typer.Option(1, help="Number of recent hours to analyze"), + ip_threshold: int = typer.Option(100, help="Requests from a single IP to flag"), +) -> None: + """CLI wrapper for detect_threats.""" + detect_threats(hours=hours, ip_threshold=ip_threshold) + if __name__ == "__main__": app() diff --git a/scripts/download_icons.py b/scripts/download_icons.py new file mode 100644 index 0000000..6f4675a --- /dev/null +++ b/scripts/download_icons.py @@ -0,0 +1,28 @@ +import json +from urllib.request import urlopen, Request +from pathlib import Path + +ICON_LIST_URL = "https://cc0-icons.jonh.eu/icons.json" +BASE_URL = "https://cc0-icons.jonh.eu/" + +OUTPUT_DIR = Path(__file__).resolve().parent.parent / "static" / "icons" + + +def main() -> None: + OUTPUT_DIR.mkdir(parents=True, exist_ok=True) + req = Request(ICON_LIST_URL, headers={"User-Agent": "Mozilla/5.0"}) + with urlopen(req) as resp: + data = json.load(resp) + icons = data.get("icons", []) + for icon in icons: + slug = icon.get("slug") + url = BASE_URL + icon.get("url") + path = OUTPUT_DIR / f"{slug}.svg" + req = Request(url, headers={"User-Agent": "Mozilla/5.0"}) + with urlopen(req) as resp: + path.write_bytes(resp.read()) + print(f"Downloaded {len(icons)} icons to {OUTPUT_DIR}") + + +if __name__ == "__main__": + main() diff --git a/scripts/generate_reports.py b/scripts/generate_reports.py index ae7a3a7..d3c2f8a 100644 --- a/scripts/generate_reports.py +++ b/scripts/generate_reports.py @@ -1,17 +1,27 @@ import json +import sys import sqlite3 from pathlib import Path +import shutil from typing import List, Dict, Optional +from datetime import datetime, timezone +import time import yaml import typer from jinja2 import Environment, FileSystemLoader +# Ensure project root is importable when running as a script (python scripts/generate_reports.py) +PROJECT_ROOT = Path(__file__).resolve().parent.parent +if str(PROJECT_ROOT) not in sys.path: + sys.path.insert(0, str(PROJECT_ROOT)) + DB_PATH = Path("database/ngxstat.db") OUTPUT_DIR = Path("output") TEMPLATE_DIR = Path("templates") REPORT_CONFIG = Path("reports.yml") +GENERATED_MARKER = OUTPUT_DIR / "generated.txt" # Mapping of interval names to SQLite strftime formats. These strings are # substituted into report queries whenever the special ``{bucket}`` token is @@ -27,6 +37,19 @@ INTERVAL_FORMATS = { app = typer.Typer(help="Generate aggregated log reports") +@app.callback() +def _cli_callback(ctx: typer.Context) -> None: + """Register post-command hook to note generation time.""" + + def _write_marker() -> None: + OUTPUT_DIR.mkdir(parents=True, exist_ok=True) + # Use timezone-aware UTC to avoid deprecation warnings and ambiguity + timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S") + GENERATED_MARKER.write_text(f"{timestamp}\n") + + ctx.call_on_close(_write_marker) + + def _get_domains() -> List[str]: """Return a sorted list of unique domains from the logs table.""" conn = sqlite3.connect(DB_PATH) @@ -54,6 +77,20 @@ def _save_json(path: Path, data: List[Dict]) -> None: path.write_text(json.dumps(data, indent=2)) +def _copy_icons() -> None: + """Copy vendored icons and scripts to the output directory.""" + src_dir = Path("static/icons") + dst_dir = OUTPUT_DIR / "icons" + if src_dir.is_dir(): + dst_dir.mkdir(parents=True, exist_ok=True) + for icon in src_dir.glob("*.svg"): + shutil.copy(icon, dst_dir / icon.name) + + js_src = Path("static/chartManager.js") + if js_src.is_file(): + shutil.copy(js_src, OUTPUT_DIR / js_src.name) + + def _render_snippet(report: Dict, out_dir: Path) -> None: """Render a single report snippet to ``.html`` inside ``out_dir``.""" env = Environment(loader=FileSystemLoader(TEMPLATE_DIR)) @@ -62,7 +99,9 @@ def _render_snippet(report: Dict, out_dir: Path) -> None: snippet_path.write_text(template.render(report=report)) -def _write_stats() -> None: +def _write_stats( + generated_at: Optional[str] = None, generation_seconds: Optional[float] = None +) -> None: """Query basic dataset stats and write them to ``output/global/stats.json``.""" conn = sqlite3.connect(DB_PATH) cur = conn.cursor() @@ -86,6 +125,10 @@ def _write_stats() -> None: "end_date": end_date, "unique_domains": unique_domains, } + if generated_at: + stats["generated_at"] = generated_at + if generation_seconds is not None: + stats["generation_seconds"] = generation_seconds out_path = OUTPUT_DIR / "global" / "stats.json" _save_json(out_path, stats) @@ -106,6 +149,8 @@ def _generate_interval(interval: str, domain: Optional[str] = None) -> None: typer.echo("No report definitions found") return + _copy_icons() + bucket = _bucket_expr(interval) conn = sqlite3.connect(DB_PATH) @@ -140,6 +185,16 @@ def _generate_interval(interval: str, domain: Optional[str] = None) -> None: name = definition["name"] query = definition["query"].replace("{bucket}", bucket) query = query.replace("FROM logs", "FROM logs_view") + # Apply top_n limit for tables (performance-friendly), if configured + top_n = definition.get("top_n") + chart_type = definition.get("chart", "line") + if top_n and chart_type == "table": + try: + n = int(top_n) + if "LIMIT" not in query.upper(): + query = f"{query}\nLIMIT {n}" + except Exception: + pass cur.execute(query) rows = cur.fetchall() headers = [c[0] for c in cur.description] @@ -153,15 +208,38 @@ def _generate_interval(interval: str, domain: Optional[str] = None) -> None: "json": f"{name}.json", "html": f"{name}.html", } + if "icon" in definition: + entry["icon"] = definition["icon"] + if "bucket" in definition: + entry["bucket"] = definition["bucket"] + if "buckets" in definition: + entry["buckets"] = definition["buckets"] + if "bucket_label" in definition: + entry["bucket_label"] = definition["bucket_label"] if "color" in definition: entry["color"] = definition["color"] if "colors" in definition: entry["colors"] = definition["colors"] + # Optional UX metadata passthrough for frontend-only transforms + for key in ( + "windows_supported", + "window_default", + "group_others_threshold", + "exclude_values", + "top_n", + "stacked", + "palette", + ): + if key in definition: + entry[key] = definition[key] _render_snippet(entry, out_dir) report_list.append(entry) _save_json(out_dir / "reports.json", report_list) - typer.echo(f"Generated {interval} reports") + if domain: + typer.echo(f"Generated {interval} reports for {domain}") + else: + typer.echo(f"Generated {interval} reports") def _generate_all_domains(interval: str) -> None: @@ -172,12 +250,10 @@ def _generate_all_domains(interval: str) -> None: def _generate_root_index() -> None: """Render the top-level index listing all intervals and domains.""" - intervals = [ - p.name - for p in OUTPUT_DIR.iterdir() - if p.is_dir() and p.name.lower() not in {"domains", "global"} - ] - intervals.sort() + _copy_icons() + intervals = sorted( + [name for name in INTERVAL_FORMATS if (OUTPUT_DIR / name).is_dir()] + ) domains_dir = OUTPUT_DIR / "domains" domains: List[str] = [] @@ -201,6 +277,12 @@ def _generate_global() -> None: typer.echo("No report definitions found") return + start_time = time.time() + # Use timezone-aware UTC for generated_at (string remains unchanged format) + generated_at = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S") + + _copy_icons() + conn = sqlite3.connect(DB_PATH) cur = conn.cursor() @@ -214,6 +296,16 @@ def _generate_global() -> None: name = definition["name"] query = definition["query"] + # Apply top_n limit for tables (performance-friendly), if configured + top_n = definition.get("top_n") + chart_type = definition.get("chart", "line") + if top_n and chart_type == "table": + try: + n = int(top_n) + if "LIMIT" not in query.upper(): + query = f"{query}\nLIMIT {n}" + except Exception: + pass cur.execute(query) rows = cur.fetchall() headers = [c[0] for c in cur.description] @@ -227,18 +319,67 @@ def _generate_global() -> None: "json": f"{name}.json", "html": f"{name}.html", } + if "icon" in definition: + entry["icon"] = definition["icon"] + if "bucket" in definition: + entry["bucket"] = definition["bucket"] + if "buckets" in definition: + entry["buckets"] = definition["buckets"] + if "bucket_label" in definition: + entry["bucket_label"] = definition["bucket_label"] if "color" in definition: entry["color"] = definition["color"] if "colors" in definition: entry["colors"] = definition["colors"] + # Optional UX metadata passthrough for frontend-only transforms + for key in ( + "windows_supported", + "window_default", + "group_others_threshold", + "exclude_values", + "top_n", + "stacked", + "palette", + ): + if key in definition: + entry[key] = definition[key] _render_snippet(entry, out_dir) report_list.append(entry) _save_json(out_dir / "reports.json", report_list) - _write_stats() + elapsed = round(time.time() - start_time, 2) + _write_stats(generated_at, elapsed) typer.echo("Generated global reports") +def _generate_analysis() -> None: + """Generate analysis JSON files consumed by the Analysis tab.""" + try: + # Import lazily to avoid circulars and keep dependencies optional + from scripts import analyze + except Exception as exc: # pragma: no cover - defensive + typer.echo(f"Failed to import analysis module: {exc}") + return + + # Ensure output root and icons present for parity + _copy_icons() + + # These commands write JSON files under output/analysis/ + try: + analyze.check_missing_domains(json_output=True) + except Exception as exc: # pragma: no cover - continue best-effort + typer.echo(f"check_missing_domains failed: {exc}") + try: + analyze.suggest_cache(json_output=True) + except Exception as exc: # pragma: no cover + typer.echo(f"suggest_cache failed: {exc}") + try: + analyze.detect_threats() + except Exception as exc: # pragma: no cover + typer.echo(f"detect_threats failed: {exc}") + typer.echo("Generated analysis JSON files") + + @app.command() def hourly( domain: Optional[str] = typer.Option( @@ -309,6 +450,12 @@ def global_reports() -> None: _generate_global() +@app.command() +def analysis() -> None: + """Generate analysis JSON files for the Analysis tab.""" + _generate_analysis() + + @app.command() def index() -> None: """Generate the root index page linking all reports.""" diff --git a/scripts/init_db.py b/scripts/init_db.py index f378b5c..b9ea07d 100644 --- a/scripts/init_db.py +++ b/scripts/init_db.py @@ -61,7 +61,9 @@ try: suffix = match.group(1) number = int(suffix.lstrip(".")) if suffix else 0 log_files.append((number, os.path.join(LOG_DIR, f))) - log_files = [path for _, path in sorted(log_files, key=lambda x: x[0], reverse=True)] + log_files = [ + path for _, path in sorted(log_files, key=lambda x: x[0], reverse=True) + ] except FileNotFoundError: print(f"[ERROR] Log directory not found: {LOG_DIR}") exit(1) diff --git a/scripts/nginx_config.py b/scripts/nginx_config.py index e2dc447..bc585a7 100644 --- a/scripts/nginx_config.py +++ b/scripts/nginx_config.py @@ -49,7 +49,15 @@ def discover_configs() -> Set[Path]: found.add(path) for pattern in INCLUDE_RE.findall(text): pattern = os.path.expanduser(pattern.strip()) - for included in path.parent.glob(pattern): + if os.path.isabs(pattern): + # ``Path.glob`` does not allow absolute patterns, so we + # anchor at the filesystem root and remove the leading + # separator. + base = Path(os.sep) + glob_iter = base.glob(pattern.lstrip(os.sep)) + else: + glob_iter = path.parent.glob(pattern) + for included in glob_iter: if included.is_file() and included not in found: queue.append(included) return found @@ -85,4 +93,3 @@ def parse_servers(paths: Set[Path]) -> List[Dict[str, str]]: entry["root"] = " ".join(directives["root"]) servers.append(entry) return servers - diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..be5087c --- /dev/null +++ b/setup.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env bash +set -e + +# Default schedules +import_sched="*/5 * * * *" +report_sched="0 * * * *" +analysis_sched="0 0 * * *" +remove=false + +usage() { + echo "Usage: $0 [--import CRON] [--reports CRON] [--analysis CRON] [--remove]" +} + +while [ $# -gt 0 ]; do + case "$1" in + --import) + import_sched="$2"; shift 2;; + --reports) + report_sched="$2"; shift 2;; + --analysis) + analysis_sched="$2"; shift 2;; + --remove) + remove=true; shift;; + -h|--help) + usage; exit 0;; + *) + usage; exit 1;; + esac +done + +repo_dir="$(cd "$(dirname "$0")" && pwd)" + +if [ "$remove" = true ]; then + tmp=$(mktemp) + sudo crontab -l 2>/dev/null | grep -v "# ngxstat import" | grep -v "# ngxstat reports" | grep -v "# ngxstat analysis" > "$tmp" || true + sudo crontab "$tmp" + rm -f "$tmp" + echo "[INFO] Removed ngxstat cron entries" + exit 0 +fi + +cron_entries="${import_sched} cd ${repo_dir} && ./run-import.sh # ngxstat import\n${report_sched} cd ${repo_dir} && ./run-reports.sh # ngxstat reports\n${analysis_sched} cd ${repo_dir} && ./run-analysis.sh # ngxstat analysis" + +( sudo crontab -l 2>/dev/null; echo -e "$cron_entries" ) | sudo crontab - + +echo "[INFO] Installed ngxstat cron entries" diff --git a/static/chartManager.js b/static/chartManager.js new file mode 100644 index 0000000..2f14f4f --- /dev/null +++ b/static/chartManager.js @@ -0,0 +1,109 @@ +export let currentLoad = null; +const loadInfo = new Map(); + +export function newLoad(container) { + if (currentLoad) { + abortLoad(currentLoad); + } + reset(container); + const controller = new AbortController(); + const token = { controller, charts: new Map() }; + loadInfo.set(token, token); + currentLoad = token; + return token; +} + +export function abortLoad(token) { + const info = loadInfo.get(token); + if (!info) return; + info.controller.abort(); + info.charts.forEach(chart => { + try { + chart.destroy(); + } catch (e) {} + }); + loadInfo.delete(token); + if (currentLoad === token) { + currentLoad = null; + } +} + +export function registerChart(token, id, chart) { + const info = loadInfo.get(token); + if (info) { + info.charts.set(id, chart); + } else { + chart.destroy(); + } +} + +export function reset(container) { + if (!container) return; + container.querySelectorAll('canvas').forEach(c => { + const chart = Chart.getChart(c); + if (chart) { + chart.destroy(); + } + }); + container.innerHTML = ''; +} + +// ---- Lightweight client-side data helpers ---- + +// Slice last N rows from a time-ordered array +export function sliceWindow(data, n) { + if (!Array.isArray(data) || n === undefined || n === null) return data; + if (n === 'all') return data; + const count = Number(n); + if (!Number.isFinite(count) || count <= 0) return data; + return data.slice(-count); +} + +// Exclude rows whose value in key is in excluded list +export function excludeValues(data, key, excluded = []) { + if (!excluded || excluded.length === 0) return data; + const set = new Set(excluded); + return data.filter(row => !set.has(row[key])); +} + +// Compute percentages for categorical distributions (valueKey default 'value') +export function toPercent(data, valueKey = 'value') { + const total = data.reduce((s, r) => s + (Number(r[valueKey]) || 0), 0); + if (total <= 0) return data.map(r => ({ ...r })); + return data.map(r => ({ ...r, [valueKey]: (Number(r[valueKey]) || 0) * 100 / total })); +} + +// Group categories with share < threshold into an 'Other' bucket. +export function groupOthers(data, bucketKey, valueKey = 'value', threshold = 0.03, otherLabel = 'Other') { + if (!Array.isArray(data) || data.length === 0) return data; + const total = data.reduce((s, r) => s + (Number(r[valueKey]) || 0), 0); + if (total <= 0) return data; + const major = []; + let other = 0; + for (const r of data) { + const v = Number(r[valueKey]) || 0; + if (total && v / total < threshold) { + other += v; + } else { + major.push({ ...r }); + } + } + if (other > 0) major.push({ [bucketKey]: otherLabel, [valueKey]: other }); + return major; +} + +// Simple moving average over numeric array +export function movingAverage(series, span = 3) { + const n = Math.max(1, Number(span) || 1); + const out = []; + for (let i = 0; i < series.length; i++) { + const start = Math.max(0, i - n + 1); + let sum = 0, cnt = 0; + for (let j = start; j <= i; j++) { + const v = Number(series[j]); + if (Number.isFinite(v)) { sum += v; cnt++; } + } + out.push(cnt ? sum / cnt : null); + } + return out; +} diff --git a/static/icons/achievement.svg b/static/icons/achievement.svg new file mode 100644 index 0000000..a45ed68 --- /dev/null +++ b/static/icons/achievement.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/align-center.svg b/static/icons/align-center.svg new file mode 100644 index 0000000..63f0ce2 --- /dev/null +++ b/static/icons/align-center.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/align-left.svg b/static/icons/align-left.svg new file mode 100644 index 0000000..1e9144d --- /dev/null +++ b/static/icons/align-left.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/align-right.svg b/static/icons/align-right.svg new file mode 100644 index 0000000..d854828 --- /dev/null +++ b/static/icons/align-right.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/app-marketplace.svg b/static/icons/app-marketplace.svg new file mode 100644 index 0000000..e833972 --- /dev/null +++ b/static/icons/app-marketplace.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/archive.svg b/static/icons/archive.svg new file mode 100644 index 0000000..e8df12a --- /dev/null +++ b/static/icons/archive.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-double-diagonal-2.svg b/static/icons/arrow-double-diagonal-2.svg new file mode 100644 index 0000000..7a32329 --- /dev/null +++ b/static/icons/arrow-double-diagonal-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-double-diagonal-3.svg b/static/icons/arrow-double-diagonal-3.svg new file mode 100644 index 0000000..3c86255 --- /dev/null +++ b/static/icons/arrow-double-diagonal-3.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-double-diagonal-4.svg b/static/icons/arrow-double-diagonal-4.svg new file mode 100644 index 0000000..9c8beaa --- /dev/null +++ b/static/icons/arrow-double-diagonal-4.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-double-diagonal.svg b/static/icons/arrow-double-diagonal.svg new file mode 100644 index 0000000..f3c93f4 --- /dev/null +++ b/static/icons/arrow-double-diagonal.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-double-horizontal-2.svg b/static/icons/arrow-double-horizontal-2.svg new file mode 100644 index 0000000..f8be44b --- /dev/null +++ b/static/icons/arrow-double-horizontal-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-double-horizontal.svg b/static/icons/arrow-double-horizontal.svg new file mode 100644 index 0000000..d06fc55 --- /dev/null +++ b/static/icons/arrow-double-horizontal.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-double-vertical-2.svg b/static/icons/arrow-double-vertical-2.svg new file mode 100644 index 0000000..5f81dba --- /dev/null +++ b/static/icons/arrow-double-vertical-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-double-vertical.svg b/static/icons/arrow-double-vertical.svg new file mode 100644 index 0000000..ffd66ce --- /dev/null +++ b/static/icons/arrow-double-vertical.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-down-2.svg b/static/icons/arrow-down-2.svg new file mode 100644 index 0000000..9bb9519 --- /dev/null +++ b/static/icons/arrow-down-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-down-left-2.svg b/static/icons/arrow-down-left-2.svg new file mode 100644 index 0000000..c7e116f --- /dev/null +++ b/static/icons/arrow-down-left-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-down-left.svg b/static/icons/arrow-down-left.svg new file mode 100644 index 0000000..edbc82c --- /dev/null +++ b/static/icons/arrow-down-left.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-down-right-2.svg b/static/icons/arrow-down-right-2.svg new file mode 100644 index 0000000..5f59d55 --- /dev/null +++ b/static/icons/arrow-down-right-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-down-right.svg b/static/icons/arrow-down-right.svg new file mode 100644 index 0000000..e0ca232 --- /dev/null +++ b/static/icons/arrow-down-right.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-down-up.svg b/static/icons/arrow-down-up.svg new file mode 100644 index 0000000..6bab77f --- /dev/null +++ b/static/icons/arrow-down-up.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-down.svg b/static/icons/arrow-down.svg new file mode 100644 index 0000000..317b68a --- /dev/null +++ b/static/icons/arrow-down.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-left-2.svg b/static/icons/arrow-left-2.svg new file mode 100644 index 0000000..09ecec9 --- /dev/null +++ b/static/icons/arrow-left-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-left-right.svg b/static/icons/arrow-left-right.svg new file mode 100644 index 0000000..3915efb --- /dev/null +++ b/static/icons/arrow-left-right.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-left.svg b/static/icons/arrow-left.svg new file mode 100644 index 0000000..eb1b95f --- /dev/null +++ b/static/icons/arrow-left.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-right-2.svg b/static/icons/arrow-right-2.svg new file mode 100644 index 0000000..5647c5b --- /dev/null +++ b/static/icons/arrow-right-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-right-left.svg b/static/icons/arrow-right-left.svg new file mode 100644 index 0000000..b3dbbc2 --- /dev/null +++ b/static/icons/arrow-right-left.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-right.svg b/static/icons/arrow-right.svg new file mode 100644 index 0000000..98fd9e8 --- /dev/null +++ b/static/icons/arrow-right.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-up-2.svg b/static/icons/arrow-up-2.svg new file mode 100644 index 0000000..ef31915 --- /dev/null +++ b/static/icons/arrow-up-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-up-down.svg b/static/icons/arrow-up-down.svg new file mode 100644 index 0000000..e83a86f --- /dev/null +++ b/static/icons/arrow-up-down.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-up-left-2.svg b/static/icons/arrow-up-left-2.svg new file mode 100644 index 0000000..e869fba --- /dev/null +++ b/static/icons/arrow-up-left-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-up-left.svg b/static/icons/arrow-up-left.svg new file mode 100644 index 0000000..820469c --- /dev/null +++ b/static/icons/arrow-up-left.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-up-right-2.svg b/static/icons/arrow-up-right-2.svg new file mode 100644 index 0000000..5e4bff7 --- /dev/null +++ b/static/icons/arrow-up-right-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-up-right.svg b/static/icons/arrow-up-right.svg new file mode 100644 index 0000000..6c3ee2e --- /dev/null +++ b/static/icons/arrow-up-right.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrow-up.svg b/static/icons/arrow-up.svg new file mode 100644 index 0000000..c6e18b7 --- /dev/null +++ b/static/icons/arrow-up.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/arrows-diagonal-out.svg b/static/icons/arrows-diagonal-out.svg new file mode 100644 index 0000000..4840df3 --- /dev/null +++ b/static/icons/arrows-diagonal-out.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/average.svg b/static/icons/average.svg new file mode 100644 index 0000000..b427612 --- /dev/null +++ b/static/icons/average.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/bag-2.svg b/static/icons/bag-2.svg new file mode 100644 index 0000000..18e8261 --- /dev/null +++ b/static/icons/bag-2.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/bag-4.svg b/static/icons/bag-4.svg new file mode 100644 index 0000000..2614b52 --- /dev/null +++ b/static/icons/bag-4.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/bag-lock.svg b/static/icons/bag-lock.svg new file mode 100644 index 0000000..f7e9ece --- /dev/null +++ b/static/icons/bag-lock.svg @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/static/icons/bag-plus.svg b/static/icons/bag-plus.svg new file mode 100644 index 0000000..6bb5934 --- /dev/null +++ b/static/icons/bag-plus.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/bag-work.svg b/static/icons/bag-work.svg new file mode 100644 index 0000000..51247c2 --- /dev/null +++ b/static/icons/bag-work.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/bag.svg b/static/icons/bag.svg new file mode 100644 index 0000000..92d74b7 --- /dev/null +++ b/static/icons/bag.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/bolt.svg b/static/icons/bolt.svg new file mode 100644 index 0000000..fc64532 --- /dev/null +++ b/static/icons/bolt.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/bookmark.svg b/static/icons/bookmark.svg new file mode 100644 index 0000000..813568e --- /dev/null +++ b/static/icons/bookmark.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/burger-menu.svg b/static/icons/burger-menu.svg new file mode 100644 index 0000000..3b6b197 --- /dev/null +++ b/static/icons/burger-menu.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/calendar-2.svg b/static/icons/calendar-2.svg new file mode 100644 index 0000000..83fdf9f --- /dev/null +++ b/static/icons/calendar-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/calendar.svg b/static/icons/calendar.svg new file mode 100644 index 0000000..ec49336 --- /dev/null +++ b/static/icons/calendar.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/check-circle.svg b/static/icons/check-circle.svg new file mode 100644 index 0000000..12c6187 --- /dev/null +++ b/static/icons/check-circle.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/check-square.svg b/static/icons/check-square.svg new file mode 100644 index 0000000..6208802 --- /dev/null +++ b/static/icons/check-square.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/check.svg b/static/icons/check.svg new file mode 100644 index 0000000..71b981c --- /dev/null +++ b/static/icons/check.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/chevron-down-circle.svg b/static/icons/chevron-down-circle.svg new file mode 100644 index 0000000..6eb3fe5 --- /dev/null +++ b/static/icons/chevron-down-circle.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/chevron-down.svg b/static/icons/chevron-down.svg new file mode 100644 index 0000000..72235ec --- /dev/null +++ b/static/icons/chevron-down.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/chevron-left-circle.svg b/static/icons/chevron-left-circle.svg new file mode 100644 index 0000000..87719e4 --- /dev/null +++ b/static/icons/chevron-left-circle.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/chevron-left.svg b/static/icons/chevron-left.svg new file mode 100644 index 0000000..774ee4b --- /dev/null +++ b/static/icons/chevron-left.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/chevron-right-circle.svg b/static/icons/chevron-right-circle.svg new file mode 100644 index 0000000..98d5421 --- /dev/null +++ b/static/icons/chevron-right-circle.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/chevron-right.svg b/static/icons/chevron-right.svg new file mode 100644 index 0000000..19d783a --- /dev/null +++ b/static/icons/chevron-right.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/chevron-up-circle.svg b/static/icons/chevron-up-circle.svg new file mode 100644 index 0000000..750f239 --- /dev/null +++ b/static/icons/chevron-up-circle.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/chevron-up.svg b/static/icons/chevron-up.svg new file mode 100644 index 0000000..6257f70 --- /dev/null +++ b/static/icons/chevron-up.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/chevrons-down.svg b/static/icons/chevrons-down.svg new file mode 100644 index 0000000..8c7a4ae --- /dev/null +++ b/static/icons/chevrons-down.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/chevrons-left.svg b/static/icons/chevrons-left.svg new file mode 100644 index 0000000..45ebf78 --- /dev/null +++ b/static/icons/chevrons-left.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/chevrons-right.svg b/static/icons/chevrons-right.svg new file mode 100644 index 0000000..2b3aea1 --- /dev/null +++ b/static/icons/chevrons-right.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/chevrons-triple-down.svg b/static/icons/chevrons-triple-down.svg new file mode 100644 index 0000000..ed4dc03 --- /dev/null +++ b/static/icons/chevrons-triple-down.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/chevrons-triple-left.svg b/static/icons/chevrons-triple-left.svg new file mode 100644 index 0000000..3df85fe --- /dev/null +++ b/static/icons/chevrons-triple-left.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/chevrons-triple-right.svg b/static/icons/chevrons-triple-right.svg new file mode 100644 index 0000000..aac50bf --- /dev/null +++ b/static/icons/chevrons-triple-right.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/chevrons-triple-up.svg b/static/icons/chevrons-triple-up.svg new file mode 100644 index 0000000..0ef890b --- /dev/null +++ b/static/icons/chevrons-triple-up.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/chevrons-up.svg b/static/icons/chevrons-up.svg new file mode 100644 index 0000000..867f61b --- /dev/null +++ b/static/icons/chevrons-up.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/circle-dot.svg b/static/icons/circle-dot.svg new file mode 100644 index 0000000..e380e09 --- /dev/null +++ b/static/icons/circle-dot.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/circle-dots.svg b/static/icons/circle-dots.svg new file mode 100644 index 0000000..6275a98 --- /dev/null +++ b/static/icons/circle-dots.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/circle-slash.svg b/static/icons/circle-slash.svg new file mode 100644 index 0000000..861352d --- /dev/null +++ b/static/icons/circle-slash.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/circle.svg b/static/icons/circle.svg new file mode 100644 index 0000000..84f078d --- /dev/null +++ b/static/icons/circle.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/clipboard-alert.svg b/static/icons/clipboard-alert.svg new file mode 100644 index 0000000..3cfae40 --- /dev/null +++ b/static/icons/clipboard-alert.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/clipboard-chart.svg b/static/icons/clipboard-chart.svg new file mode 100644 index 0000000..9805ca0 --- /dev/null +++ b/static/icons/clipboard-chart.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/clipboard-check.svg b/static/icons/clipboard-check.svg new file mode 100644 index 0000000..4515c5e --- /dev/null +++ b/static/icons/clipboard-check.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/clipboard-copy.svg b/static/icons/clipboard-copy.svg new file mode 100644 index 0000000..d59fc74 --- /dev/null +++ b/static/icons/clipboard-copy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/clipboard-data.svg b/static/icons/clipboard-data.svg new file mode 100644 index 0000000..aebd8f5 --- /dev/null +++ b/static/icons/clipboard-data.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/clipboard-download.svg b/static/icons/clipboard-download.svg new file mode 100644 index 0000000..bcb349e --- /dev/null +++ b/static/icons/clipboard-download.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/clipboard-line-chart.svg b/static/icons/clipboard-line-chart.svg new file mode 100644 index 0000000..a9d28a7 --- /dev/null +++ b/static/icons/clipboard-line-chart.svg @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/static/icons/clipboard-upload.svg b/static/icons/clipboard-upload.svg new file mode 100644 index 0000000..434b4b8 --- /dev/null +++ b/static/icons/clipboard-upload.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/clock-2.svg b/static/icons/clock-2.svg new file mode 100644 index 0000000..2b15f8b --- /dev/null +++ b/static/icons/clock-2.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/clock.svg b/static/icons/clock.svg new file mode 100644 index 0000000..88df7eb --- /dev/null +++ b/static/icons/clock.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/cloud-download.svg b/static/icons/cloud-download.svg new file mode 100644 index 0000000..f284c8f --- /dev/null +++ b/static/icons/cloud-download.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/cloud-upload.svg b/static/icons/cloud-upload.svg new file mode 100644 index 0000000..2a22e27 --- /dev/null +++ b/static/icons/cloud-upload.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/cloud.svg b/static/icons/cloud.svg new file mode 100644 index 0000000..a84e416 --- /dev/null +++ b/static/icons/cloud.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/code-2.svg b/static/icons/code-2.svg new file mode 100644 index 0000000..dbb6f8e --- /dev/null +++ b/static/icons/code-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/code.svg b/static/icons/code.svg new file mode 100644 index 0000000..47d6c90 --- /dev/null +++ b/static/icons/code.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/command-line.svg b/static/icons/command-line.svg new file mode 100644 index 0000000..d7c4a03 --- /dev/null +++ b/static/icons/command-line.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/content.svg b/static/icons/content.svg new file mode 100644 index 0000000..21105d0 --- /dev/null +++ b/static/icons/content.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/copy.svg b/static/icons/copy.svg new file mode 100644 index 0000000..867f6cc --- /dev/null +++ b/static/icons/copy.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/credit-card.svg b/static/icons/credit-card.svg new file mode 100644 index 0000000..758948d --- /dev/null +++ b/static/icons/credit-card.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/database.svg b/static/icons/database.svg new file mode 100644 index 0000000..dd2463d --- /dev/null +++ b/static/icons/database.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/dialog.svg b/static/icons/dialog.svg new file mode 100644 index 0000000..9d761b8 --- /dev/null +++ b/static/icons/dialog.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/document-edit-2.svg b/static/icons/document-edit-2.svg new file mode 100644 index 0000000..a4e567b --- /dev/null +++ b/static/icons/document-edit-2.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/document-edit.svg b/static/icons/document-edit.svg new file mode 100644 index 0000000..8f685c8 --- /dev/null +++ b/static/icons/document-edit.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/document-minus.svg b/static/icons/document-minus.svg new file mode 100644 index 0000000..94dd4d8 --- /dev/null +++ b/static/icons/document-minus.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/document-shield.svg b/static/icons/document-shield.svg new file mode 100644 index 0000000..c5732d4 --- /dev/null +++ b/static/icons/document-shield.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/dots-horizontal.svg b/static/icons/dots-horizontal.svg new file mode 100644 index 0000000..f8b9c23 --- /dev/null +++ b/static/icons/dots-horizontal.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/download-2.svg b/static/icons/download-2.svg new file mode 100644 index 0000000..2884115 --- /dev/null +++ b/static/icons/download-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/download-3.svg b/static/icons/download-3.svg new file mode 100644 index 0000000..f496817 --- /dev/null +++ b/static/icons/download-3.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/download.svg b/static/icons/download.svg new file mode 100644 index 0000000..595f3a5 --- /dev/null +++ b/static/icons/download.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/drop.svg b/static/icons/drop.svg new file mode 100644 index 0000000..eb0a474 --- /dev/null +++ b/static/icons/drop.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/east.svg b/static/icons/east.svg new file mode 100644 index 0000000..6082fd9 --- /dev/null +++ b/static/icons/east.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/equals.svg b/static/icons/equals.svg new file mode 100644 index 0000000..08896d9 --- /dev/null +++ b/static/icons/equals.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/eye.svg b/static/icons/eye.svg new file mode 100644 index 0000000..2f1f62f --- /dev/null +++ b/static/icons/eye.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-alert.svg b/static/icons/file-alert.svg new file mode 100644 index 0000000..bf5105b --- /dev/null +++ b/static/icons/file-alert.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-archive.svg b/static/icons/file-archive.svg new file mode 100644 index 0000000..1f76ed0 --- /dev/null +++ b/static/icons/file-archive.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-broken.svg b/static/icons/file-broken.svg new file mode 100644 index 0000000..2f9804f --- /dev/null +++ b/static/icons/file-broken.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-certificate-2.svg b/static/icons/file-certificate-2.svg new file mode 100644 index 0000000..bfc06f5 --- /dev/null +++ b/static/icons/file-certificate-2.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-certificate.svg b/static/icons/file-certificate.svg new file mode 100644 index 0000000..429da44 --- /dev/null +++ b/static/icons/file-certificate.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-chart.svg b/static/icons/file-chart.svg new file mode 100644 index 0000000..20a4a70 --- /dev/null +++ b/static/icons/file-chart.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-copy.svg b/static/icons/file-copy.svg new file mode 100644 index 0000000..d7d469e --- /dev/null +++ b/static/icons/file-copy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-download.svg b/static/icons/file-download.svg new file mode 100644 index 0000000..36e1e61 --- /dev/null +++ b/static/icons/file-download.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-key.svg b/static/icons/file-key.svg new file mode 100644 index 0000000..c3e679a --- /dev/null +++ b/static/icons/file-key.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-lock.svg b/static/icons/file-lock.svg new file mode 100644 index 0000000..c4e5965 --- /dev/null +++ b/static/icons/file-lock.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-program.svg b/static/icons/file-program.svg new file mode 100644 index 0000000..a9ed60f --- /dev/null +++ b/static/icons/file-program.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-search.svg b/static/icons/file-search.svg new file mode 100644 index 0000000..357706c --- /dev/null +++ b/static/icons/file-search.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-signed.svg b/static/icons/file-signed.svg new file mode 100644 index 0000000..f3502c6 --- /dev/null +++ b/static/icons/file-signed.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-text.svg b/static/icons/file-text.svg new file mode 100644 index 0000000..ce116ff --- /dev/null +++ b/static/icons/file-text.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file-x.svg b/static/icons/file-x.svg new file mode 100644 index 0000000..6335c6f --- /dev/null +++ b/static/icons/file-x.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/file.svg b/static/icons/file.svg new file mode 100644 index 0000000..0b7d0d5 --- /dev/null +++ b/static/icons/file.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/filter-asc-2.svg b/static/icons/filter-asc-2.svg new file mode 100644 index 0000000..8ba8e96 --- /dev/null +++ b/static/icons/filter-asc-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/filter-asc-3.svg b/static/icons/filter-asc-3.svg new file mode 100644 index 0000000..58add88 --- /dev/null +++ b/static/icons/filter-asc-3.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/filter-asc.svg b/static/icons/filter-asc.svg new file mode 100644 index 0000000..1561654 --- /dev/null +++ b/static/icons/filter-asc.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/filter-desc-2.svg b/static/icons/filter-desc-2.svg new file mode 100644 index 0000000..de1f326 --- /dev/null +++ b/static/icons/filter-desc-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/filter-desc-3.svg b/static/icons/filter-desc-3.svg new file mode 100644 index 0000000..01c08ac --- /dev/null +++ b/static/icons/filter-desc-3.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/filter-desc.svg b/static/icons/filter-desc.svg new file mode 100644 index 0000000..77ddd9e --- /dev/null +++ b/static/icons/filter-desc.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/flag-2.svg b/static/icons/flag-2.svg new file mode 100644 index 0000000..34aca99 --- /dev/null +++ b/static/icons/flag-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/flag-3.svg b/static/icons/flag-3.svg new file mode 100644 index 0000000..ef18dc3 --- /dev/null +++ b/static/icons/flag-3.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/flag.svg b/static/icons/flag.svg new file mode 100644 index 0000000..d8a4bf9 --- /dev/null +++ b/static/icons/flag.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/folder.svg b/static/icons/folder.svg new file mode 100644 index 0000000..3a69c2e --- /dev/null +++ b/static/icons/folder.svg @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/static/icons/forbidden.svg b/static/icons/forbidden.svg new file mode 100644 index 0000000..1e0da82 --- /dev/null +++ b/static/icons/forbidden.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/forward.svg b/static/icons/forward.svg new file mode 100644 index 0000000..ac0969b --- /dev/null +++ b/static/icons/forward.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/globe-2.svg b/static/icons/globe-2.svg new file mode 100644 index 0000000..08d9809 --- /dev/null +++ b/static/icons/globe-2.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/icons/globe.svg b/static/icons/globe.svg new file mode 100644 index 0000000..eb59d66 --- /dev/null +++ b/static/icons/globe.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/icons/heart-2.svg b/static/icons/heart-2.svg new file mode 100644 index 0000000..4ea1f6e --- /dev/null +++ b/static/icons/heart-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/heart.svg b/static/icons/heart.svg new file mode 100644 index 0000000..240d3fc --- /dev/null +++ b/static/icons/heart.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/home.svg b/static/icons/home.svg new file mode 100644 index 0000000..082fe2d --- /dev/null +++ b/static/icons/home.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/inbox.svg b/static/icons/inbox.svg new file mode 100644 index 0000000..bb70339 --- /dev/null +++ b/static/icons/inbox.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/key.svg b/static/icons/key.svg new file mode 100644 index 0000000..1e13032 --- /dev/null +++ b/static/icons/key.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/link.svg b/static/icons/link.svg new file mode 100644 index 0000000..42d6be5 --- /dev/null +++ b/static/icons/link.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/location-pin.svg b/static/icons/location-pin.svg new file mode 100644 index 0000000..4462ab6 --- /dev/null +++ b/static/icons/location-pin.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/lock-open.svg b/static/icons/lock-open.svg new file mode 100644 index 0000000..b2a448e --- /dev/null +++ b/static/icons/lock-open.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/lock.svg b/static/icons/lock.svg new file mode 100644 index 0000000..dcd3d94 --- /dev/null +++ b/static/icons/lock.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/login.svg b/static/icons/login.svg new file mode 100644 index 0000000..fc30ad6 --- /dev/null +++ b/static/icons/login.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/logout.svg b/static/icons/logout.svg new file mode 100644 index 0000000..8b9e27d --- /dev/null +++ b/static/icons/logout.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/magnifier-2.svg b/static/icons/magnifier-2.svg new file mode 100644 index 0000000..e2c4593 --- /dev/null +++ b/static/icons/magnifier-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/magnifier-zoom-minus.svg b/static/icons/magnifier-zoom-minus.svg new file mode 100644 index 0000000..66e415b --- /dev/null +++ b/static/icons/magnifier-zoom-minus.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/magnifier-zoom-plus.svg b/static/icons/magnifier-zoom-plus.svg new file mode 100644 index 0000000..3be8d7d --- /dev/null +++ b/static/icons/magnifier-zoom-plus.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/magnifier.svg b/static/icons/magnifier.svg new file mode 100644 index 0000000..0b9507b --- /dev/null +++ b/static/icons/magnifier.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/mail.svg b/static/icons/mail.svg new file mode 100644 index 0000000..5508bb5 --- /dev/null +++ b/static/icons/mail.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/map.svg b/static/icons/map.svg new file mode 100644 index 0000000..31c5fd8 --- /dev/null +++ b/static/icons/map.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/message-check.svg b/static/icons/message-check.svg new file mode 100644 index 0000000..68bec13 --- /dev/null +++ b/static/icons/message-check.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/message-info.svg b/static/icons/message-info.svg new file mode 100644 index 0000000..66db685 --- /dev/null +++ b/static/icons/message-info.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/message.svg b/static/icons/message.svg new file mode 100644 index 0000000..d53bd41 --- /dev/null +++ b/static/icons/message.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/minus.svg b/static/icons/minus.svg new file mode 100644 index 0000000..43054e2 --- /dev/null +++ b/static/icons/minus.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/monitor.svg b/static/icons/monitor.svg new file mode 100644 index 0000000..6745a74 --- /dev/null +++ b/static/icons/monitor.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/moon-star.svg b/static/icons/moon-star.svg new file mode 100644 index 0000000..e5accb4 --- /dev/null +++ b/static/icons/moon-star.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/moon.svg b/static/icons/moon.svg new file mode 100644 index 0000000..7b3ad0b --- /dev/null +++ b/static/icons/moon.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/mouse-pointer.svg b/static/icons/mouse-pointer.svg new file mode 100644 index 0000000..5bd051f --- /dev/null +++ b/static/icons/mouse-pointer.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/new-tab-2.svg b/static/icons/new-tab-2.svg new file mode 100644 index 0000000..1529217 --- /dev/null +++ b/static/icons/new-tab-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/new-tab.svg b/static/icons/new-tab.svg new file mode 100644 index 0000000..64d63cb --- /dev/null +++ b/static/icons/new-tab.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/north.svg b/static/icons/north.svg new file mode 100644 index 0000000..dd9ac10 --- /dev/null +++ b/static/icons/north.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/notification.svg b/static/icons/notification.svg new file mode 100644 index 0000000..219835c --- /dev/null +++ b/static/icons/notification.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/pen-writing-3.svg b/static/icons/pen-writing-3.svg new file mode 100644 index 0000000..8fcba73 --- /dev/null +++ b/static/icons/pen-writing-3.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/pen-writing.svg b/static/icons/pen-writing.svg new file mode 100644 index 0000000..7bc2eac --- /dev/null +++ b/static/icons/pen-writing.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/pen.svg b/static/icons/pen.svg new file mode 100644 index 0000000..991bfd7 --- /dev/null +++ b/static/icons/pen.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/pin-flag.svg b/static/icons/pin-flag.svg new file mode 100644 index 0000000..52586e4 --- /dev/null +++ b/static/icons/pin-flag.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/pin-goal.svg b/static/icons/pin-goal.svg new file mode 100644 index 0000000..24222c3 --- /dev/null +++ b/static/icons/pin-goal.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/play.svg b/static/icons/play.svg new file mode 100644 index 0000000..9cb22e3 --- /dev/null +++ b/static/icons/play.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/plus.svg b/static/icons/plus.svg new file mode 100644 index 0000000..e665b91 --- /dev/null +++ b/static/icons/plus.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/pulse.svg b/static/icons/pulse.svg new file mode 100644 index 0000000..087e57a --- /dev/null +++ b/static/icons/pulse.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/reply.svg b/static/icons/reply.svg new file mode 100644 index 0000000..fdf9414 --- /dev/null +++ b/static/icons/reply.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/send-2.svg b/static/icons/send-2.svg new file mode 100644 index 0000000..bd05f41 --- /dev/null +++ b/static/icons/send-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/send.svg b/static/icons/send.svg new file mode 100644 index 0000000..1bb2f3a --- /dev/null +++ b/static/icons/send.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/server.svg b/static/icons/server.svg new file mode 100644 index 0000000..0a1c0a7 --- /dev/null +++ b/static/icons/server.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/settings-2.svg b/static/icons/settings-2.svg new file mode 100644 index 0000000..ffc0c11 --- /dev/null +++ b/static/icons/settings-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/settings-3.svg b/static/icons/settings-3.svg new file mode 100644 index 0000000..ce5be79 --- /dev/null +++ b/static/icons/settings-3.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/settings-4.svg b/static/icons/settings-4.svg new file mode 100644 index 0000000..3827d6a --- /dev/null +++ b/static/icons/settings-4.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/static/icons/settings.svg b/static/icons/settings.svg new file mode 100644 index 0000000..2015b2d --- /dev/null +++ b/static/icons/settings.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/share-2.svg b/static/icons/share-2.svg new file mode 100644 index 0000000..eabd15c --- /dev/null +++ b/static/icons/share-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/share.svg b/static/icons/share.svg new file mode 100644 index 0000000..6820704 --- /dev/null +++ b/static/icons/share.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/shield-disabled.svg b/static/icons/shield-disabled.svg new file mode 100644 index 0000000..5b25f59 --- /dev/null +++ b/static/icons/shield-disabled.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/static/icons/shield-key.svg b/static/icons/shield-key.svg new file mode 100644 index 0000000..8d27536 --- /dev/null +++ b/static/icons/shield-key.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/shield-lock.svg b/static/icons/shield-lock.svg new file mode 100644 index 0000000..bc4a33a --- /dev/null +++ b/static/icons/shield-lock.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/shield-user.svg b/static/icons/shield-user.svg new file mode 100644 index 0000000..ca73611 --- /dev/null +++ b/static/icons/shield-user.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/shield-x.svg b/static/icons/shield-x.svg new file mode 100644 index 0000000..d040044 --- /dev/null +++ b/static/icons/shield-x.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/shield.svg b/static/icons/shield.svg new file mode 100644 index 0000000..5d5621f --- /dev/null +++ b/static/icons/shield.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/south.svg b/static/icons/south.svg new file mode 100644 index 0000000..4238228 --- /dev/null +++ b/static/icons/south.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/square.svg b/static/icons/square.svg new file mode 100644 index 0000000..cc5e940 --- /dev/null +++ b/static/icons/square.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/sun.svg b/static/icons/sun.svg new file mode 100644 index 0000000..d292182 --- /dev/null +++ b/static/icons/sun.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/tag.svg b/static/icons/tag.svg new file mode 100644 index 0000000..1bd6bee --- /dev/null +++ b/static/icons/tag.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/terminal.svg b/static/icons/terminal.svg new file mode 100644 index 0000000..67d48be --- /dev/null +++ b/static/icons/terminal.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/test-tube.svg b/static/icons/test-tube.svg new file mode 100644 index 0000000..3b8ce6b --- /dev/null +++ b/static/icons/test-tube.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/translate.svg b/static/icons/translate.svg new file mode 100644 index 0000000..76eebf5 --- /dev/null +++ b/static/icons/translate.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/trash-2.svg b/static/icons/trash-2.svg new file mode 100644 index 0000000..58e9b72 --- /dev/null +++ b/static/icons/trash-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/trash-alert.svg b/static/icons/trash-alert.svg new file mode 100644 index 0000000..e56eca9 --- /dev/null +++ b/static/icons/trash-alert.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/trash.svg b/static/icons/trash.svg new file mode 100644 index 0000000..c236be7 --- /dev/null +++ b/static/icons/trash.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/trend-down.svg b/static/icons/trend-down.svg new file mode 100644 index 0000000..eeb26c6 --- /dev/null +++ b/static/icons/trend-down.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/trend-flatish.svg b/static/icons/trend-flatish.svg new file mode 100644 index 0000000..39c6c30 --- /dev/null +++ b/static/icons/trend-flatish.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/trend-up.svg b/static/icons/trend-up.svg new file mode 100644 index 0000000..9b90cac --- /dev/null +++ b/static/icons/trend-up.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/upload-2.svg b/static/icons/upload-2.svg new file mode 100644 index 0000000..eed5c4a --- /dev/null +++ b/static/icons/upload-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/upload.svg b/static/icons/upload.svg new file mode 100644 index 0000000..09e7ce4 --- /dev/null +++ b/static/icons/upload.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/user-circle.svg b/static/icons/user-circle.svg new file mode 100644 index 0000000..9f4bb63 --- /dev/null +++ b/static/icons/user-circle.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/user.svg b/static/icons/user.svg new file mode 100644 index 0000000..5cdf24e --- /dev/null +++ b/static/icons/user.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/video-camera.svg b/static/icons/video-camera.svg new file mode 100644 index 0000000..0d2bd30 --- /dev/null +++ b/static/icons/video-camera.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/west.svg b/static/icons/west.svg new file mode 100644 index 0000000..8b5ea0b --- /dev/null +++ b/static/icons/west.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/x.svg b/static/icons/x.svg new file mode 100644 index 0000000..b209221 --- /dev/null +++ b/static/icons/x.svg @@ -0,0 +1,3 @@ + + + diff --git a/templates/index.html b/templates/index.html index 91482f7..a5de3db 100644 --- a/templates/index.html +++ b/templates/index.html @@ -12,13 +12,15 @@ -
+
+ + + + + + + +
+
-
+
-

Overview

+

Recent

Total logs: -

Date range: - to -

Unique domains: -

+

Last generated: -

+

Generation time: - seconds

+ +
-