Remove duplicate paperclip-assets — source of truth is paperclip-config repo

Assets live in ezer-mishpati/paperclip-config (cloned at ~/.paperclip).
Deploy via: ~/.paperclip/hebrew/apply-hebrew.sh

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-14 15:57:18 +00:00
parent 11c73a7c60
commit ad3c2b7117
4 changed files with 0 additions and 2450 deletions

View File

@@ -1,21 +0,0 @@
#!/bin/bash
# Deploy Paperclip UI assets (RTL + Hebrew translation) to the live instance.
# Usage: bash scripts/paperclip-assets/deploy.sh
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
UI_DIR="/home/chaim/.npm/_npx/43414d9b790239bb/node_modules/@paperclipai/server/ui-dist"
if [ ! -d "$UI_DIR/assets" ]; then
echo "ERROR: Paperclip ui-dist not found at $UI_DIR"
echo "Run: find ~/.npm/_npx -name ui-dist -path '*paperclipai*' -type d"
exit 1
fi
cp "$SCRIPT_DIR/rtl-override.css" "$UI_DIR/assets/rtl-override.css"
cp "$SCRIPT_DIR/translate-he.js" "$UI_DIR/assets/translate-he.js"
echo "Assets deployed to $UI_DIR/assets/"
echo "Restarting Paperclip..."
pm2 restart paperclip
echo "Done."

View File

@@ -1,33 +0,0 @@
#!/bin/bash
# patch-html.sh - Inject Hebrew RTL + translation into Paperclip UI
set -e
# Find the ui-dist directory in the global npm install
UI_DIR=$(find /usr/local/lib/node_modules/paperclipai -name "ui-dist" -type d | head -1)
if [ -z "$UI_DIR" ]; then
echo "ERROR: Could not find Paperclip ui-dist directory"
exit 1
fi
echo "Found ui-dist at: $UI_DIR"
# Copy assets
cp /tmp/rtl-override.css "$UI_DIR/assets/rtl-override.css"
cp /tmp/translate-he.js "$UI_DIR/assets/translate-he.js"
# Patch index.html:
# 1. Set dir="rtl" and lang="he"
sed -i 's/<html lang="en"/<html lang="he" dir="rtl"/' "$UI_DIR/index.html"
# 2. Inject RTL CSS and translation script before </head>
sed -i 's|</head>|<link rel="stylesheet" href="/assets/rtl-override.css">\n<script defer src="/assets/translate-he.js"></script>\n</head>|' "$UI_DIR/index.html"
# 3. Update page title
sed -i 's|<title>Paperclip</title>|<title>Paperclip - פייפרקליפ</title>|' "$UI_DIR/index.html"
echo "Hebrew RTL patch applied successfully"
echo "Patched files:"
echo " - $UI_DIR/index.html"
echo " - $UI_DIR/assets/rtl-override.css"
echo " - $UI_DIR/assets/translate-he.js"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff