_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.ts_0_5522
/*! * @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 { AfterViewInit, ChangeDetectionStrategy, Component, DestroyRef, Injector, OnInit, ViewChild, ...
{ "end_byte": 5522, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.ts" }
angular/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.spec.ts_0_3831
/*! * @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 {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/te...
{ "end_byte": 3831, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.spec.ts" }
angular/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.html_0_878
<div class="adev-header-and-tabs docs-scroll-track-transparent"> <docs-viewer [docContent]="headerInnerHtml()" class="docs-reference-header"></docs-viewer> <mat-tab-group class="docs-reference-tabs" animationDuration="0ms" mat-stretch-tabs="false" [selectedIndex]="selectedTabIndex()"> @for (tab of tabs(); trac...
{ "end_byte": 878, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.html" }
angular/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.scss_0_434
@use '@angular/docs/styles/media-queries' as mq; :host { display: flex; gap: 1rem; width: 100%; box-sizing: border-box; @include mq.for-desktop-down { flex-direction: column; } h1 { font-size: 1.5rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1rem; } h4 { font-size: 0....
{ "end_byte": 434, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.scss" }
angular/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.scss_435_7432
::ng-deep { .adev-header-and-tabs { padding: var(--layout-padding) 0 1rem var(--layout-padding); box-sizing: border-box; @include mq.for-desktop-up { // this section should only be independently scrollable if // the API tab is active & the screen is wide enough &:has(.docs-reference-api...
{ "end_byte": 7432, "start_byte": 435, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.scss" }
angular/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.scss_7435_8694
.docs-param-group:not(:has(~ .docs-param-group)) { margin-block: 1rem; } .docs-return-type { padding-block: 1rem; // & does not follow a function definition &:not(.docs-function-definition + .docs-return-type) { border-block-start: 1px solid var(--senary-contrast); } } .docs-param-k...
{ "end_byte": 8694, "start_byte": 7435, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.scss" }
angular/adev/src/app/features/references/constants/api-reference-prerender.constants.ts_0_1100
/*! * @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 */ export const API_REFERENCE_DETAILS_PAGE_CONTENT_CLASS_NAME = '.adev-reference-content'; export const API_REFERENCE_D...
{ "end_byte": 1100, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/constants/api-reference-prerender.constants.ts" }
angular/adev/src/app/features/references/api-items-section/api-items-section.component.scss_0_2164
@use '@angular/docs/styles/anchor' as anchor; .adev-api-items-section-header { display: flex; svg { fill: var(--primary-contrast); } h3 { flex: 1; display: flex; gap: 0.75em; align-items: flex-start; margin-top: 1.43rem; font-size: 1.25rem; } .adev-link-icon { color: va...
{ "end_byte": 2164, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-items-section/api-items-section.component.scss" }
angular/adev/src/app/features/references/api-items-section/api-items-section.component.html_0_1473
<header class="adev-api-items-section-header"> <h3 [attr.id]="group.id"> @if (group.isFeatured) { <docs-icon aria-hidden>star</docs-icon> } <!-- we use innerHtml because the title can be an html string--> <a routerLink="/api" [fragment]="group.id" queryParamsHandling="preserve"...
{ "end_byte": 1473, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-items-section/api-items-section.component.html" }
angular/adev/src/app/features/references/api-items-section/api-items-section.component.ts_0_875
/*! * @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 {ChangeDetectionStrategy, Component, Input} from '@angular/core'; import {RouterLink} from '@angular/router';...
{ "end_byte": 875, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-items-section/api-items-section.component.ts" }
angular/adev/src/app/features/references/api-items-section/api-items-section.component.spec.ts_0_3941
/*! * @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 {ComponentFixture, TestBed} from '@angular/core/testing'; import ApiItemsSection from './api-items-section.c...
{ "end_byte": 3941, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-items-section/api-items-section.component.spec.ts" }
angular/adev/src/app/features/references/api-reference-list/api-reference-manager.service.spec.ts_0_814
/*! * @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 {TestBed} from '@angular/core/testing'; import {ApiReferenceManager} from './api-reference-manager.service';...
{ "end_byte": 814, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-reference-list/api-reference-manager.service.spec.ts" }
angular/adev/src/app/features/references/api-reference-list/api-reference-list.component.ts_0_3781
/*! * @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 { ChangeDetectionStrategy, Component, ElementRef, Injector, afterNextRender, computed, effect, ...
{ "end_byte": 3781, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-reference-list/api-reference-list.component.ts" }
angular/adev/src/app/features/references/api-reference-list/api-reference-list.component.html_0_1360
<div class="adev-reference-list-page"> <header> <h6>Getting Started</h6> <h1>API Reference</h1> </header> @if (featuredGroup().items.length) { <adev-api-items-section [group]="featuredGroup()" class="adev-featured-list" /> } <form class="adev-reference-list-form"> <ul class="adev-reference-li...
{ "end_byte": 1360, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-reference-list/api-reference-list.component.html" }
angular/adev/src/app/features/references/api-reference-list/api-reference-list.component.scss_0_2285
.adev-reference-list-page { padding: var(--layout-padding); max-width: var(--page-width); container: api-ref-page / inline-size; header { margin-block-end: 2.75rem; // small page label: "Getting Started" h6 { color: var(--quaternary-contrast); font-weight: 500; font-size: 0.875r...
{ "end_byte": 2285, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-reference-list/api-reference-list.component.scss" }
angular/adev/src/app/features/references/api-reference-list/api-reference-list.component.spec.ts_0_4994
/*! * @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 {ComponentFixture, TestBed} from '@angular/core/testing'; import ApiReferenceList, {ALL_STATUSES_KEY} from '...
{ "end_byte": 4994, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-reference-list/api-reference-list.component.spec.ts" }
angular/adev/src/app/features/references/api-reference-list/api-reference-manager.service.ts_0_2505
/*! * @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 {Injectable, signal} from '@angular/core'; // This file is generated at build-time, error is expected here. i...
{ "end_byte": 2505, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-reference-list/api-reference-manager.service.ts" }
angular/adev/src/app/features/references/api-item-label/api-item-label.component.html_0_75
@if (apiItemType()) { {{ apiItemType()! | adevApiLabel: labelMode() }} }
{ "end_byte": 75, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-item-label/api-item-label.component.html" }
angular/adev/src/app/features/references/api-item-label/api-item-label.component.ts_0_1044
/*! * @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 {ChangeDetectionStrategy, Component, Input, signal} from '@angular/core'; import {ApiItemType} from '../inter...
{ "end_byte": 1044, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-item-label/api-item-label.component.ts" }
angular/adev/src/app/features/references/api-item-label/api-item-label.component.spec.ts_0_1488
/*! * @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 {ComponentFixture, TestBed} from '@angular/core/testing'; import ApiItemLabel from './api-item-label.compone...
{ "end_byte": 1488, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/api-item-label/api-item-label.component.spec.ts" }
angular/adev/src/app/features/references/pipes/api-label.pipe.spec.ts_0_758
/*! * @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 {ApiItemType} from '../interfaces/api-item-type'; import {ApiLabel} from './api-label.pipe'; describe('ApiLa...
{ "end_byte": 758, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/pipes/api-label.pipe.spec.ts" }
angular/adev/src/app/features/references/pipes/api-label.pipe.ts_0_1681
/*! * @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 {Pipe, PipeTransform} from '@angular/core'; import {ApiItemType} from '../interfaces/api-item-type'; @Pipe(...
{ "end_byte": 1681, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/pipes/api-label.pipe.ts" }
angular/adev/src/app/features/references/helpers/manifest.helper.spec.ts_0_1528
/*! * @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 {ApiManifestPackage} from '../interfaces/api-manifest'; import {getApiUrl} from './manifest.helper'; describ...
{ "end_byte": 1528, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/helpers/manifest.helper.spec.ts" }
angular/adev/src/app/features/references/helpers/manifest.helper.ts_0_2340
/*! * @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 {Route} from '@angular/router'; import API_MANIFEST_JSON from '../../../../../src/assets/api/manifest.json'; ...
{ "end_byte": 2340, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/helpers/manifest.helper.ts" }
angular/adev/src/app/features/references/services/reference-scroll-handler.service.ts_0_7856
/*! * @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 {DOCUMENT, isPlatformBrowser} from '@angular/common'; import { DestroyRef, EnvironmentInjector, Injecta...
{ "end_byte": 7856, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/services/reference-scroll-handler.service.ts" }
angular/adev/src/app/features/references/interfaces/api-item-type.ts_0_580
/*! * @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 */ export enum ApiItemType { BLOCK = 'block', CLASS = 'undecorated_class', CONST = 'constant', DECORATOR = 'dec...
{ "end_byte": 580, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/interfaces/api-item-type.ts" }
angular/adev/src/app/features/references/interfaces/api-items-group.ts_0_351
/*! * @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 {ApiItem} from './api-item'; export interface ApiItemsGroup { title: string; id: string; items: ApiIte...
{ "end_byte": 351, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/interfaces/api-items-group.ts" }
angular/adev/src/app/features/references/interfaces/api-manifest.ts_0_549
/*! * @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 {ApiItemType} from './api-item-type'; export interface ApiManifestEntry { name: string; type: ApiItemTyp...
{ "end_byte": 549, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/interfaces/api-manifest.ts" }
angular/adev/src/app/features/references/interfaces/api-item.ts_0_408
/*! * @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 {ApiItemType} from './api-item-type'; export interface ApiItem { title: string; itemType: ApiItemType; ...
{ "end_byte": 408, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/references/interfaces/api-item.ts" }
angular/adev/src/app/features/docs/docs.component.ts_0_1157
/*! * @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 {DocContent, DocViewer} from '@angular/docs'; import {ChangeDetectionStrategy, Component, inject} from '@angu...
{ "end_byte": 1157, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/docs/docs.component.ts" }
angular/adev/src/app/features/docs/docs.component.html_0_139
@if (documentContent()) { <docs-viewer class="docs-viewer" [docContent]="documentContent()!.contents" [hasToc]="true" /> }
{ "end_byte": 139, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/docs/docs.component.html" }
angular/adev/src/app/features/docs/docs.component.scss_0_179
:host { .docs-viewer { &.docs-animate-content { animation: fade-in 500ms; } } } @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
{ "end_byte": 179, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/docs/docs.component.scss" }
angular/adev/src/app/features/docs/docs.component.spec.ts_0_1261
/*! * @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 {ComponentFixture, TestBed} from '@angular/core/testing'; import DocsComponent from './docs.component'; impo...
{ "end_byte": 1261, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/features/docs/docs.component.spec.ts" }
angular/adev/src/app/editor/typings-loader.service.ts_0_4838
/*! * @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 {Injectable, signal} from '@angular/core'; import {toObservable} from '@angular/core/rxjs-interop'; import {W...
{ "end_byte": 4838, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/typings-loader.service.ts" }
angular/adev/src/app/editor/editor-ui-state.service.ts_0_1855
/*! * @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 {DestroyRef, inject, Injectable, signal} from '@angular/core'; import {takeUntilDestroyed} from '@angular/cor...
{ "end_byte": 1855, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/editor-ui-state.service.ts" }
angular/adev/src/app/editor/idx-launcher.service.ts_0_1612
/*! * @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, Injectable, inject} from '@angular/core'; import {injectAsync} from '../core/services/i...
{ "end_byte": 1612, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/idx-launcher.service.ts" }
angular/adev/src/app/editor/download-manager.service.ts_0_1587
/*! * @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 {DOCUMENT, isPlatformBrowser} from '@angular/common'; import {EnvironmentInjector, Injectable, PLATFORM_ID, i...
{ "end_byte": 1587, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/download-manager.service.ts" }
angular/adev/src/app/editor/embedded-editor.component.html_0_2871
<div class="adev-editor-container" #editorContainer> <as-split class="docs-editor" [direction]="splitDirection" restrictMove="true" gutterSize="5"> <as-split-area class="adev-left-side" [size]="50"> <!-- Code Editor --> @if (!displayOnlyTerminal()) { <docs-tutorial-code-editor class="adev-tutori...
{ "end_byte": 2871, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/embedded-editor.component.html" }
angular/adev/src/app/editor/stackblitz-opener.service.spec.ts_0_580
/*! * @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 {TestBed} from '@angular/core/testing'; import {StackBlitzOpener} from './stackblitz-opener.service'; descr...
{ "end_byte": 580, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/stackblitz-opener.service.spec.ts" }
angular/adev/src/app/editor/embedded-editor.component.scss_0_4396
@use '@angular/docs/styles/_split.scss'; $pane-border: 1px solid var(--senary-contrast); $width-breakpoint: 950px; .adev-editor-container { container-type: size; container-name: embedded-editor; height: 100%; position: relative; border: 1px solid var(--senary-contrast); } // The entire thing - editor, term...
{ "end_byte": 4396, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/embedded-editor.component.scss" }
angular/adev/src/app/editor/node-runtime-sandbox.service.ts_0_1773
/*! * @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 {DestroyRef, inject, Injectable, signal} from '@angular/core'; import {checkFilesInDirectory} from '@angular/...
{ "end_byte": 1773, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/node-runtime-sandbox.service.ts" }
angular/adev/src/app/editor/node-runtime-sandbox.service.ts_1774_9764
@Injectable({providedIn: 'root'}) export class NodeRuntimeSandbox { private readonly _createdFile$ = new Subject<string>(); readonly createdFile$ = this._createdFile$.asObservable(); private readonly _createdFiles = signal<Set<string>>(new Set()); private interactiveShellProcess: WebContainerProcess | undefin...
{ "end_byte": 9764, "start_byte": 1774, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/node-runtime-sandbox.service.ts" }
angular/adev/src/app/editor/node-runtime-sandbox.service.ts_9767_17417
private async startInteractiveTerminal(webContainer: WebContainer): Promise<WebContainerProcess> { // return existing shell process if it's already running if (this.interactiveShellProcess) return this.interactiveShellProcess; const terminal = this.terminalHandler.interactiveTerminalInstance; // use W...
{ "end_byte": 17417, "start_byte": 9767, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/node-runtime-sandbox.service.ts" }
angular/adev/src/app/editor/embedded-tutorial-manager.service.ts_0_6507
/*! * @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 {Injectable, signal} from '@angular/core'; import {FileSystemTree} from '@webcontainer/api'; import {Behavior...
{ "end_byte": 6507, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/embedded-tutorial-manager.service.ts" }
angular/adev/src/app/editor/editor-ui-state.service.spec.ts_0_605
/*! * @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 {TestBed} from '@angular/core/testing'; import {EditorUiState} from './editor-ui-state.service'; describe('...
{ "end_byte": 605, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/editor-ui-state.service.spec.ts" }
angular/adev/src/app/editor/typings-loader.service.spec.ts_0_3259
/*! * @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 {TestBed} from '@angular/core/testing'; import type {WebContainer} from '@webcontainer/api'; import {Typings...
{ "end_byte": 3259, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/typings-loader.service.spec.ts" }
angular/adev/src/app/editor/README.md_0_6668
# EmbeddedEditor components, services and functionality - [Scenarios](#scenarios) - [Loading a project](#loading-a-project) - [Updating the code](#updating-the-code) - [Creating a new file](#creating-a-new-file) - [Deleting a file](#deleting-a-file) - [Switching a project](#switching-a-project) - [Components...
{ "end_byte": 6668, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/README.md" }
angular/adev/src/app/editor/README.md_6668_10769
## Components and services ### [`EmbeddedEditor`](./embedded-editor.component.ts) The embedded editor is the parent component that holds all the components and services that compose the embedded editor. #### [`CodeEditor`](./code-editor/code-editor.component.ts) The component that holds the code editor view and the...
{ "end_byte": 10769, "start_byte": 6668, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/README.md" }
angular/adev/src/app/editor/embedded-tutorial-manager.service.spec.ts_0_6405
/*! * @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 {TestBed} from '@angular/core/testing'; import type {FileSystemTree} from '@webcontainer/api'; import type {T...
{ "end_byte": 6405, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/embedded-tutorial-manager.service.spec.ts" }
angular/adev/src/app/editor/embedded-tutorial-manager.service.spec.ts_6409_15058
describe('fetchAndSetTutorialFiles', () => { const tutorial: string = 'tutorial-id'; it('should fetch tutorial source code and config and set signals', async () => { const tutorialSourceCode: FileSystemTree = { 'tutorial.ts': { file: { contents: 'code', }, ...
{ "end_byte": 15058, "start_byte": 6409, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/embedded-tutorial-manager.service.spec.ts" }
angular/adev/src/app/editor/stackblitz-opener.service.ts_0_1496
/*! * @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, Injectable, inject} from '@angular/core'; import sdk, {Project, ProjectFiles} from '@st...
{ "end_byte": 1496, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/stackblitz-opener.service.ts" }
angular/adev/src/app/editor/constants.ts_0_686
/*! * @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 */ export const TUTORIALS_ASSETS_WEB_PATH = '/assets/tutorials'; export const TUTORIALS_ASSETS_SOURCE_CODE_DIRECTORY = ...
{ "end_byte": 686, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/constants.ts" }
angular/adev/src/app/editor/alert-manager.service.ts_0_3544
/*! * @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 {Injectable, inject} from '@angular/core'; import {LOCAL_STORAGE, WINDOW, isMobile} from '@angular/docs'; imp...
{ "end_byte": 3544, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/alert-manager.service.ts" }
angular/adev/src/app/editor/node-runtime-state.service.spec.ts_0_1538
/*! * @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 {TestBed} from '@angular/core/testing'; import {ErrorType, NodeRuntimeState} from './node-runtime-state.serv...
{ "end_byte": 1538, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/node-runtime-state.service.spec.ts" }
angular/adev/src/app/editor/embedded-editor.component.ts_0_5158
/*! * @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 {isPlatformBrowser} from '@angular/common'; import { AfterViewInit, ChangeDetectionStrategy, ChangeDete...
{ "end_byte": 5158, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/embedded-editor.component.ts" }
angular/adev/src/app/editor/index.ts_0_346
export {EmbeddedTutorialManager} from './embedded-tutorial-manager.service'; export {LoadingStep} from './enums/loading-steps'; export {NodeRuntimeState} from './node-runtime-state.service'; export {NodeRuntimeSandbox} from './node-runtime-sandbox.service'; export {EmbeddedEditor, EMBEDDED_EDITOR_SELECTOR} from './em...
{ "end_byte": 346, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/index.ts" }
angular/adev/src/app/editor/node-runtime-sandbox.service.spec.ts_0_1018
/*! * @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 {TestBed} from '@angular/core/testing'; import {BehaviorSubject, of as observableOf} from 'rxjs'; import {si...
{ "end_byte": 1018, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/node-runtime-sandbox.service.spec.ts" }
angular/adev/src/app/editor/node-runtime-sandbox.service.spec.ts_1020_9510
describe('NodeRuntimeSandbox', () => { let testBed: TestBed; let service: NodeRuntimeSandbox; const fakeTerminalHandler = { interactiveTerminalInstance: { write: (data: string) => {}, onData: (data: string) => {}, breakProcess$: observableOf(), }, readonlyTerminalInstance: { w...
{ "end_byte": 9510, "start_byte": 1020, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/node-runtime-sandbox.service.spec.ts" }
angular/adev/src/app/editor/download-manager.service.spec.ts_0_575
/*! * @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 {TestBed} from '@angular/core/testing'; import {DownloadManager} from './download-manager.service'; describ...
{ "end_byte": 575, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/download-manager.service.spec.ts" }
angular/adev/src/app/editor/node-runtime-state.service.ts_0_2490
/*! * @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 {Injectable, signal} from '@angular/core'; import {isFirefox, isIos} from '@angular/docs'; import {LoadingSt...
{ "end_byte": 2490, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/node-runtime-state.service.ts" }
angular/adev/src/app/editor/code-editor/code-editor.component.html_0_3627
<!-- Code Editor Tabs --> <div class="docs-code-editor-tabs"> <div class="adev-tabs-and-plus"> <mat-tab-group animationDuration="0ms" mat-stretch-tabs="false"> <!-- Hint: we would like to keep only one instance of #codeEditorWrapper, that's why we're not placing this element as content of ma...
{ "end_byte": 3627, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/code-editor.component.html" }
angular/adev/src/app/editor/code-editor/code-mirror-editor.service.spec.ts_0_5694
/*! * @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 {signal} from '@angular/core'; import {TestBed} from '@angular/core/testing'; import {BehaviorSubject, Subjec...
{ "end_byte": 5694, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/code-mirror-editor.service.spec.ts" }
angular/adev/src/app/editor/code-editor/code-editor.component.spec.ts_0_8223
/*! * @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 {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/te...
{ "end_byte": 8223, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/code-editor.component.spec.ts" }
angular/adev/src/app/editor/code-editor/code-editor.component.scss_0_5336
:host { // backgrounds --code-editor-selection-background: color-mix( in srgb, var(--selection-background) 5%, var(--octonary-contrast) ); --code-editor-focused-selection-background: color-mix( in srgb, var(--selection-background) 12%, var(--octonary-contrast) ); // text base colors...
{ "end_byte": 5336, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/code-editor.component.scss" }
angular/adev/src/app/editor/code-editor/code-mirror-editor.service.ts_0_2355
/*! * @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 {DestroyRef, Injectable, inject, signal} from '@angular/core'; import {takeUntilDestroyed} from '@angular/cor...
{ "end_byte": 2355, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/code-mirror-editor.service.ts" }
angular/adev/src/app/editor/code-editor/code-mirror-editor.service.ts_2357_11289
@Injectable({providedIn: 'root'}) export class CodeMirrorEditor { // TODO: handle files created by the user, e.g. after running `ng generate component` files = signal<EditorFile[]>(INITIAL_STATES.files); openFiles = signal<EditorFile[]>(INITIAL_STATES.files); currentFile = signal<EditorFile>(INITIAL_STATES.curr...
{ "end_byte": 11289, "start_byte": 2357, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/code-mirror-editor.service.ts" }
angular/adev/src/app/editor/code-editor/code-mirror-editor.service.ts_11293_15490
async renameFile(oldPath: string, newPath: string) { const content = await this.nodeRuntimeSandbox.readFile(oldPath).catch((error) => { // empty content if file does not exist if (error.message.includes('ENOENT')) return ''; else throw error; }); await this.nodeRuntimeSandbox.renameFile(o...
{ "end_byte": 15490, "start_byte": 11293, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/code-mirror-editor.service.ts" }
angular/adev/src/app/editor/code-editor/code-editor.component.ts_0_7745
/*! * @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 {Location} from '@angular/common'; import { AfterViewInit, ChangeDetectionStrategy, Component, Destro...
{ "end_byte": 7745, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/code-editor.component.ts" }
angular/adev/src/app/editor/code-editor/constants/syntax-styles.ts_0_336
/*! * @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 type {TagStyle} from '@codemirror/language'; import {tags} from '@lezer/highlight'; export const SYNTAX_STYL...
{ "end_byte": 336, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/constants/syntax-styles.ts" }
angular/adev/src/app/editor/code-editor/constants/syntax-styles.ts_337_7377
[ /** A comment. */ {tag: tags.comment, color: 'var(--code-comment)'}, /** A language keyword. */ {tag: tags.keyword, color: 'var(--code-keyword)'}, /** A string literal */ {tag: tags.string, color: 'var(--code-string)'}, /** A number literal. */ {tag: tags.number, color: 'var(--code-number)'}, /*...
{ "end_byte": 7377, "start_byte": 337, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/constants/syntax-styles.ts" }
angular/adev/src/app/editor/code-editor/constants/syntax-styles.ts_7377_7986
, /** An invalid or unsyntactic element. */ {tag: tags.invalid, color: 'var(--code-invalid)'}, /** Metadata or meta-instruction. */ {tag: tags.meta, color: 'var(--code-meta)'}, /** Metadata that applies to the entire document. */ {tag: tags.documentMeta, color: 'var(--code-document-meta)'}, /** Metada...
{ "end_byte": 7986, "start_byte": 7377, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/constants/syntax-styles.ts" }
angular/adev/src/app/editor/code-editor/constants/code-editor-languages.ts_0_871
/*! * @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 {html} from '@codemirror/lang-html'; import {angular} from '@codemirror/lang-angular'; import {css} from '@co...
{ "end_byte": 871, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/constants/code-editor-languages.ts" }
angular/adev/src/app/editor/code-editor/constants/code-editor-extensions.ts_0_2219
/*! * @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 {EditorState, Extension} from '@codemirror/state'; import { lineNumbers, highlightActiveLineGutter, hi...
{ "end_byte": 2219, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/constants/code-editor-extensions.ts" }
angular/adev/src/app/editor/code-editor/constants/theme-styles.ts_0_2375
/*! * @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 */ export const CODE_EDITOR_THEME_STYLES = { '&': { position: 'relative', width: '100%', height: '100%', ...
{ "end_byte": 2375, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/constants/theme-styles.ts" }
angular/adev/src/app/editor/code-editor/utils/component-ts-syntax.ts_0_3716
/*! * @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 {parser as jsParser} from '@lezer/javascript'; import {parseMixed, SyntaxNode, SyntaxNodeRef, Input, NestedPa...
{ "end_byte": 3716, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/utils/component-ts-syntax.ts" }
angular/adev/src/app/editor/code-editor/extensions/autocomplete.ts_0_3715
/*! * @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 {Signal} from '@angular/core'; import { Completion, CompletionContext, CompletionResult, autocompleti...
{ "end_byte": 3715, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/extensions/autocomplete.ts" }
angular/adev/src/app/editor/code-editor/extensions/tooltip.ts_0_4329
/*! * @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 {Signal} from '@angular/core'; import {Tooltip, hoverTooltip} from '@codemirror/view'; import {marked} from '...
{ "end_byte": 4329, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/extensions/tooltip.ts" }
angular/adev/src/app/editor/code-editor/extensions/diagnostics.ts_0_1746
/*! * @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 {Diagnostic, linter} from '@codemirror/lint'; import {TsVfsWorkerActions} from '../workers/enums/actions'; im...
{ "end_byte": 1746, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/extensions/diagnostics.ts" }
angular/adev/src/app/editor/code-editor/workers/typescript-vfs.worker.ts_0_8875
/*! * @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 */ /// <reference lib="webworker" /> import * as ts from 'typescript'; import { VirtualTypeScriptEnvironment, crea...
{ "end_byte": 8875, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/workers/typescript-vfs.worker.ts" }
angular/adev/src/app/editor/code-editor/workers/enums/actions.ts_0_849
/*! * @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 */ export const enum TsVfsWorkerActions { INIT_DEFAULT_FILE_SYSTEM_MAP = 'default-fs-ready', CREATE_VFS_ENV_REQUEST...
{ "end_byte": 849, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/workers/enums/actions.ts" }
angular/adev/src/app/editor/code-editor/workers/utils/environment.ts_0_1385
/*! * @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 {VirtualTypeScriptEnvironment} from '@typescript/vfs'; // Note: use a comment in empty files to avoid error ...
{ "end_byte": 1385, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/workers/utils/environment.ts" }
angular/adev/src/app/editor/code-editor/workers/utils/compiler-opts.ts_0_461
/*! * @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 */ export const getCompilerOpts = (ts: {ScriptTarget: {ES2021: number; ES2020: number}}) => ({ target: ts.ScriptTarge...
{ "end_byte": 461, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/workers/utils/compiler-opts.ts" }
angular/adev/src/app/editor/code-editor/workers/utils/ts-constants.ts_0_2181
/*! * @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 type {FormatCodeSettings, UserPreferences} from 'typescript'; // redeclare TypeScript's SemicolonPreference ...
{ "end_byte": 2181, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/workers/utils/ts-constants.ts" }
angular/adev/src/app/editor/code-editor/workers/interfaces/autocomplete-request.ts_0_416
/*! * @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 */ /** * Gets autocompletion proposal entries at a particular position in a file. */ export interface AutocompleteReq...
{ "end_byte": 416, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/workers/interfaces/autocomplete-request.ts" }
angular/adev/src/app/editor/code-editor/workers/interfaces/autocomplete-response.ts_0_496
/*! * @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 type {CodeAction} from 'typescript'; export interface AutocompleteItem { kind: string; name: string; s...
{ "end_byte": 496, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/workers/interfaces/autocomplete-response.ts" }
angular/adev/src/app/editor/code-editor/workers/interfaces/message.ts_0_344
/*! * @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 {TsVfsWorkerActions} from '../enums/actions'; export interface ActionMessage<T = any> { action: TsVfsWorke...
{ "end_byte": 344, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/workers/interfaces/message.ts" }
angular/adev/src/app/editor/code-editor/workers/interfaces/define-types-request.ts_0_311
/*! * @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 */ export interface Typing { path: string; content: string; } export type DefineTypesRequest = Typing[];
{ "end_byte": 311, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/workers/interfaces/define-types-request.ts" }
angular/adev/src/app/editor/code-editor/workers/interfaces/display-tooltip-request.ts_0_367
/*! * @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 */ /** * Gets autocompletion proposal entries at a particular position in a file. */ export interface DisplayTooltipR...
{ "end_byte": 367, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/workers/interfaces/display-tooltip-request.ts" }
angular/adev/src/app/editor/code-editor/workers/interfaces/display-tooltip-response.ts_0_429
/*! * @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 {JSDocTagInfo, SymbolDisplayPart} from 'typescript'; export interface DisplayTooltipResponse { displayPart...
{ "end_byte": 429, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/workers/interfaces/display-tooltip-response.ts" }
angular/adev/src/app/editor/code-editor/workers/interfaces/code-change-request.ts_0_344
/*! * @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 */ /** * Request contains current state ('code') of provided file. */ export interface CodeChangeRequest { code: st...
{ "end_byte": 344, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/workers/interfaces/code-change-request.ts" }
angular/adev/src/app/editor/code-editor/workers/interfaces/diagnostics-request.ts_0_592
/*! * @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 */ /** * Request will be used to examine diagnostics for the given `file`. */ export interface DiagnosticsRequest { ...
{ "end_byte": 592, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/workers/interfaces/diagnostics-request.ts" }
angular/adev/src/app/editor/code-editor/services/diagnostics-state.service.spec.ts_0_580
/*! * @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 {TestBed} from '@angular/core/testing'; import {DiagnosticsState} from './diagnostics-state.service'; descr...
{ "end_byte": 580, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/services/diagnostics-state.service.spec.ts" }
angular/adev/src/app/editor/code-editor/services/diagnostics-state.service.ts_0_875
/*! * @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 {Injectable} from '@angular/core'; import {Diagnostic} from '@codemirror/lint'; import {BehaviorSubject, dist...
{ "end_byte": 875, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/code-editor/services/diagnostics-state.service.ts" }
angular/adev/src/app/editor/enums/loading-steps.ts_0_318
/*! * @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 */ export enum LoadingStep { NOT_STARTED, BOOT, LOAD_FILES, INSTALL, START_DEV_SERVER, READY, ERROR, }
{ "end_byte": 318, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/enums/loading-steps.ts" }
angular/adev/src/app/editor/terminal/terminal.component.ts_0_1957
/*! * @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 { AfterViewInit, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, Input, ViewChild, ...
{ "end_byte": 1957, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/terminal/terminal.component.ts" }
angular/adev/src/app/editor/terminal/command-validator.service.ts_0_800
/*! * @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 {Injectable} from '@angular/core'; export const ALLOWED_COMMAND_PREFIXES = [ 'ng serve', 'ng s', 'ng g...
{ "end_byte": 800, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/terminal/command-validator.service.ts" }
angular/adev/src/app/editor/terminal/interactive-terminal.ts_0_3386
/*! * @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 {inject} from '@angular/core'; import {Subject} from 'rxjs'; import {Terminal} from '@xterm/xterm'; import {...
{ "end_byte": 3386, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/terminal/interactive-terminal.ts" }
angular/adev/src/app/editor/terminal/command-validator.service.spec.ts_0_1026
/*! * @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 {TestBed} from '@angular/core/testing'; import {ALLOWED_COMMAND_PREFIXES, CommandValidator} from './command-...
{ "end_byte": 1026, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/terminal/command-validator.service.spec.ts" }
angular/adev/src/app/editor/terminal/terminal-handler.service.ts_0_2059
/*! * @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 {Injectable} from '@angular/core'; import {Terminal} from '@xterm/xterm'; import {FitAddon} from '@xterm/addo...
{ "end_byte": 2059, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/terminal/terminal-handler.service.ts" }
angular/adev/src/app/editor/terminal/terminal-handler.service.spec.ts_0_954
/*! * @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 {TestBed} from '@angular/core/testing'; import {TerminalHandler} from './terminal-handler.service'; import {W...
{ "end_byte": 954, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/src/app/editor/terminal/terminal-handler.service.spec.ts" }