From ca8bd5be990b8a173df20e1deda3e31acfcb5077 Mon Sep 17 00:00:00 2001
From: marktechson <2554588+MarkTechson@users.noreply.github.com>
Date: Tue, 23 Jul 2024 11:34:36 -0500
Subject: [PATCH] docs: add open in IDX support (#57099)
This change adds a menu to the in-browser code editor on adev and adds the option for open in IDX.
PR Close #57099
---
adev/BUILD.bazel | 1 +
.../code-editor/code-editor.component.html | 16 +++++-
.../code-editor/code-editor.component.scss | 31 +++++++++++
.../code-editor/code-editor.component.ts | 17 ++++++-
adev/src/app/editor/idx-launcher.service.ts | 51 +++++++++++++++++++
.../images/tutorials/common/idx_logo.svg | 14 +++++
.../tutorials/first-app/common/idx/dev.nix | 35 +++++++++++++
.../content/tutorials/homepage/idx/dev.nix | 35 +++++++++++++
.../learn-angular/common/idx/dev.nix | 35 +++++++++++++
.../tutorials/playground/common/idx/dev.nix | 35 +++++++++++++
package.json | 1 +
yarn.lock | 5 ++
12 files changed, 273 insertions(+), 3 deletions(-)
create mode 100644 adev/src/app/editor/idx-launcher.service.ts
create mode 100644 adev/src/assets/images/tutorials/common/idx_logo.svg
create mode 100644 adev/src/content/tutorials/first-app/common/idx/dev.nix
create mode 100644 adev/src/content/tutorials/homepage/idx/dev.nix
create mode 100644 adev/src/content/tutorials/learn-angular/common/idx/dev.nix
create mode 100644 adev/src/content/tutorials/playground/common/idx/dev.nix
diff --git a/adev/BUILD.bazel b/adev/BUILD.bazel
index f89d6dd33cd..0448e093d04 100644
--- a/adev/BUILD.bazel
+++ b/adev/BUILD.bazel
@@ -80,6 +80,7 @@ APPLICATION_DEPS = [
"@npm//@lezer/javascript",
"@npm//@lezer/common",
"@npm//@stackblitz/sdk",
+ "@npm//open-in-idx",
"@npm//@xterm/xterm",
"@npm//@xterm/addon-fit",
"@npm//algoliasearch",
diff --git a/adev/src/app/editor/code-editor/code-editor.component.html b/adev/src/app/editor/code-editor/code-editor.component.html
index 2f3adf1e5f8..06b87384d0b 100644
--- a/adev/src/app/editor/code-editor/code-editor.component.html
+++ b/adev/src/app/editor/code-editor/code-editor.component.html
@@ -68,11 +68,23 @@
+
+
+
+
+
+
+