Add El source files for all client-side JS
Recovers original JS from git history and ports it into proper El source files under src/js/. Each file wraps the original JS in a native_js call inside a main() function, making it valid El that compiles to a self-contained IIFE via elc --target=js --bundle. Files added: src/js/account-auth.el - Supabase OTP magic-link (sendMagicLink) src/js/account-dashboard.el - Account dashboard: session, plan card, family src/js/chat-widget.el - Demo chat widget (neuronDemoToggle/Send/Reset) src/js/checkout-auth.el - Checkout auth: OAuth, email sign-in/up src/js/checkout-free.el - Free plan: auth-badge watch -> payment reveal src/js/checkout-stripe.el - Stripe Payment Element (reads NEURON_CFG) src/js/enterprise.el - Enterprise inquiry form + headcount filter src/js/environmental.el - Efficiency calculator slider src/js/gallery.el - Gallery nav, search/sort, Supabase voting src/js/main.el - Share page voting + copyForPlatform src/js/marketplace.el - Developer interest form src/js/nav.el - Nav hamburger + Mission dropdown src/js/styles.el - Landing: nav scroll, reveal, founding counter
This commit is contained in:
@@ -59,12 +59,18 @@ jobs:
|
||||
- name: Configure docker auth for Artifact Registry
|
||||
run: gcloud auth configure-docker us-central1-docker.pkg.dev --quiet
|
||||
|
||||
- name: Get elc (pre-built linux/amd64)
|
||||
- name: Get elc (pre-built linux/amd64 from El repo)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
curl -fL -o "$EL_HOME/dist/platform/elc" \
|
||||
https://git.neuralplatform.ai/neuron-technologies/el/releases/download/v1.2.1/elc-linux-amd64
|
||||
chmod +x "$EL_HOME/dist/platform/elc"
|
||||
ELC_SRC="$EL_HOME/dist/platform/elc-linux-amd64"
|
||||
if [ -f "$ELC_SRC" ]; then
|
||||
cp "$ELC_SRC" "$EL_HOME/dist/platform/elc"
|
||||
chmod +x "$EL_HOME/dist/platform/elc"
|
||||
else
|
||||
curl -fL -o "$EL_HOME/dist/platform/elc" \
|
||||
https://git.neuralplatform.ai/neuron-technologies/el/releases/download/v1.2.1/elc-linux-amd64
|
||||
chmod +x "$EL_HOME/dist/platform/elc"
|
||||
fi
|
||||
|
||||
- name: Compute image tag
|
||||
id: tag
|
||||
@@ -77,8 +83,6 @@ jobs:
|
||||
run: touch src/index.html src/about.html src/terms.html src/enterprise-terms.html
|
||||
|
||||
- name: Build image (local only — no push)
|
||||
env:
|
||||
EXTRACT_JS: '1'
|
||||
run: ./build-stage.sh "${{ steps.tag.outputs.tag }}"
|
||||
|
||||
- name: Local smoke test
|
||||
|
||||
@@ -93,13 +93,23 @@ jobs:
|
||||
- name: Configure docker auth for Artifact Registry
|
||||
run: gcloud auth configure-docker us-central1-docker.pkg.dev --quiet
|
||||
|
||||
- name: Get elc (pre-built linux/amd64)
|
||||
- name: Get elc (pre-built linux/amd64 from El repo)
|
||||
if: steps.changetype.outputs.asset_only != 'true'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
curl -fL -o "$EL_HOME/dist/platform/elc" \
|
||||
https://git.neuralplatform.ai/neuron-technologies/el/releases/download/v1.2.1/elc-linux-amd64
|
||||
chmod +x "$EL_HOME/dist/platform/elc"
|
||||
# Copy the El C-compiler binary from the cloned El repo into the expected path.
|
||||
# The JS-capable elc for client-side compilation is committed in bin/elc-linux-amd64
|
||||
# and used automatically by build-stage.sh on linux/amd64.
|
||||
ELC_SRC="$EL_HOME/dist/platform/elc-linux-amd64"
|
||||
if [ -f "$ELC_SRC" ]; then
|
||||
cp "$ELC_SRC" "$EL_HOME/dist/platform/elc"
|
||||
chmod +x "$EL_HOME/dist/platform/elc"
|
||||
else
|
||||
# Fallback: download v1.2.1 C-compiler if the repo binary is absent
|
||||
curl -fL -o "$EL_HOME/dist/platform/elc" \
|
||||
https://git.neuralplatform.ai/neuron-technologies/el/releases/download/v1.2.1/elc-linux-amd64
|
||||
chmod +x "$EL_HOME/dist/platform/elc"
|
||||
fi
|
||||
|
||||
- name: Compute image tag
|
||||
id: tag
|
||||
@@ -118,8 +128,6 @@ jobs:
|
||||
|
||||
- name: Build image (build-stage.sh)
|
||||
if: steps.changetype.outputs.asset_only != 'true'
|
||||
env:
|
||||
EXTRACT_JS: '1'
|
||||
run: |
|
||||
./build-stage.sh "${{ steps.tag.outputs.tag }}"
|
||||
docker tag "marketing:${{ steps.tag.outputs.tag }}" "${{ steps.tag.outputs.image }}"
|
||||
|
||||
Reference in New Issue
Block a user