docs(docs-infra): remove firebase studio launcher

(cherry picked from commit 7977a4b9bc)
This commit is contained in:
Kam
2026-07-01 18:37:43 +03:00
committed by Leon Senft
parent 24ab76ea56
commit dd6a661652
6 changed files with 0 additions and 72 deletions
-1
View File
@@ -71,7 +71,6 @@ APPLICATION_DEPS = [
":node_modules/fflate",
":node_modules/marked",
":node_modules/ngx-progressbar",
":node_modules/open-in-idx",
":node_modules/tailwindcss",
":node_modules/typescript",
":node_modules/@types/dom-navigation",
-1
View File
@@ -79,7 +79,6 @@
"marked": "18.0.2",
"mermaid": "11.14.0",
"ngx-progressbar": "14.0.0",
"open-in-idx": "0.1.1",
"playwright-core": "1.59.1",
"preact": "10.29.1",
"preact-render-to-string": "6.6.7",
@@ -96,14 +96,6 @@
<!-- launcher dropdown window -->
<ng-template #launcherMenu>
<div class="adev-editor-dropdown" cdkMenu>
<button cdkMenuItem (click)="openCurrentSolutionInFirebaseStudio()">
<span>Open in Firebase Studio </span>
<img
class="icon"
src="assets/images/tutorials/common/firebase-studio_logo.svg"
height="32"
/>
</button>
<button cdkMenuItem (click)="openCurrentCodeInStackBlitz()">Open in StackBlitz</button>
</div>
</ng-template>
@@ -32,7 +32,6 @@ import {IconComponent} from '@angular/docs';
import {MatTooltip} from '@angular/material/tooltip';
import {DownloadManager} from '../download-manager.service';
import {LoadingStep} from '../enums/loading-steps';
import {FirebaseStudioLauncher} from '../firebase-studio-launcher.service';
import {injectEmbeddedTutorialManager} from '../inject-embedded-tutorial-manager';
import {NodeRuntimeState} from '../node-runtime-state.service';
import {StackBlitzOpener} from '../stackblitz-opener.service';
@@ -79,7 +78,6 @@ export class CodeEditor {
private readonly diagnosticsState = inject(DiagnosticsState);
private readonly downloadManager = inject(DownloadManager);
private readonly stackblitzOpener = inject(StackBlitzOpener);
private readonly firebaseStudioLauncher = inject(FirebaseStudioLauncher);
private readonly title = inject(Title);
private readonly location = inject(Location);
private readonly environmentInjector = inject(EnvironmentInjector);
@@ -189,10 +187,6 @@ export class CodeEditor {
});
}
protected openCurrentSolutionInFirebaseStudio(): void {
this.firebaseStudioLauncher.openCurrentSolutionInFirebaseStudio();
}
protected async openCurrentCodeInStackBlitz(): Promise<void> {
const title = this.title.getTitle();
@@ -1,48 +0,0 @@
/*!
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {EnvironmentInjector, Service, inject} from '@angular/core';
import * as IDX from 'open-in-idx';
import {injectNodeRuntimeSandbox} from './inject-node-runtime-sandbox';
@Service()
export class FirebaseStudioLauncher {
private readonly environmentInjector = inject(EnvironmentInjector);
async openCurrentSolutionInFirebaseStudio(): Promise<void> {
const nodeRuntimeSandbox = await injectNodeRuntimeSandbox(this.environmentInjector);
const runtimeFiles = await nodeRuntimeSandbox.getSolutionFiles();
const workspaceFiles: Record<string, string> = {};
for (let i = 0; i < runtimeFiles.length; i++) {
const file = runtimeFiles[i];
//don't include config.json, BUILD.bazel, package-lock.json, package.json.template
const doNotAllowList = [
'config.json',
'BUILD.bazel',
'package-lock.json',
'package.json.template',
];
const path = file.path.replace(/^\//, '');
//don't include binary formats
if (!doNotAllowList.includes(path) && typeof file.content === 'string') {
if (path === 'idx/dev.nix') {
workspaceFiles['.idx/dev.nix'] = file.content as string;
} else {
workspaceFiles[path] = file.content as string;
}
}
}
IDX.newAdhocWorkspace({files: workspaceFiles});
}
}
-8
View File
@@ -580,9 +580,6 @@ importers:
ngx-progressbar:
specifier: 14.0.0
version: 14.0.0(@angular/cdk@22.0.1(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/common@packages+common)(@angular/core@packages+core)(rxjs@7.8.2)
open-in-idx:
specifier: 0.1.1
version: 0.1.1
playwright-core:
specifier: 1.59.1
version: 1.59.1
@@ -10048,9 +10045,6 @@ packages:
oniguruma-to-es@4.3.6:
resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==}
open-in-idx@0.1.1:
resolution: {integrity: sha512-4Cks2eY4bnWpBP/fEj1deRrVYbHME36g0w4/IFDG4iwnkD7CwmK9HrF3A3LR/RKHs5AXUMj49YxnwdIxEizDpA==}
open@10.2.0:
resolution: {integrity: sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==}
engines: {node: '>=18'}
@@ -23517,8 +23511,6 @@ snapshots:
regex: 6.1.0
regex-recursion: 6.0.2
open-in-idx@0.1.1: {}
open@10.2.0:
dependencies:
default-browser: 5.5.0