- Implemented Citations component to display citation data. - Created WatchlistDrawer and ChatSidebar components for managing watchlists and AI chat functionality. - Integrated API calls for watchlist management and chat interactions. - Updated index.tsx to include new components in the main application layout. - Added API client in lib/api.ts for structured API interactions. - Developed Alerts, Dashboard, Portfolio, Routines, Screener, and Report pages with relevant data fetching and UI components. - Introduced styles in tokens.css for consistent theming across the application. - Configured TypeScript and Vite for project setup and development.
16 lines
619 B
Bash
Executable File
16 lines
619 B
Bash
Executable File
#!/bin/sh
|
|
# Run any command with Bitwarden Secrets Manager values injected as env.
|
|
# Usage: BWS_PROJECT_ID=<id> sh scripts/bws-run.sh go run ./cmd/server
|
|
# Requires: bws CLI + BWS_ACCESS_TOKEN exported (or `bws config` profile).
|
|
# Secret names in the project must equal env names (SECTORS_API_KEY, ...).
|
|
# Without BWS_PROJECT_ID this just execs the command (plain .env fallback).
|
|
set -e
|
|
if [ -z "$BWS_PROJECT_ID" ]; then
|
|
exec "$@"
|
|
fi
|
|
if ! command -v bws >/dev/null 2>&1; then
|
|
echo "bws-run: bws CLI not found; running without injected secrets" >&2
|
|
exec "$@"
|
|
fi
|
|
exec bws run --project-id "$BWS_PROJECT_ID" -- "$@"
|