Skip to content

Commit 1685899

Browse files
committed
draft
1 parent c60c41e commit 1685899

23 files changed

Lines changed: 36 additions & 94 deletions

‎adev/shared-docs/components/copy-link-anchor/copy-link-anchor.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {Component, inject, input, signal} from '@angular/core';
1111
import {MatTooltip} from '@angular/material/tooltip';
1212
import {IconComponent} from '../icon/icon.component';
1313

14-
export const CONFIRMATION_DISPLAY_TIME_MS = 1000;
14+
const CONFIRMATION_DISPLAY_TIME_MS = 1000;
1515

1616
@Component({
1717
selector: 'docs-copy-link-button',

‎adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
} from '@angular/core';
1818
import {IconComponent} from '../icon/icon.component';
1919

20-
export const REMOVED_LINE_CLASS_NAME = '.line.remove';
20+
const REMOVED_LINE_CLASS_NAME = '.line.remove';
2121
export const CONFIRMATION_DISPLAY_TIME_MS = 2000;
2222

2323
@Component({

‎adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ import {TabGroup} from '../../tab-group/tab-group.component';
4343
import {ExampleViewer} from '../example-viewer/example-viewer.component';
4444

4545
const TOC_HOST_ELEMENT_NAME = 'docs-table-of-contents';
46-
export const ASSETS_EXAMPLES_PATH = 'assets/content/examples';
4746
export const DOCS_VIEWER_SELECTOR = 'docs-viewer, main[docsViewer]';
48-
export const DOCS_CODE_SELECTOR = '.docs-code';
49-
export const DOCS_CODE_MUTLIFILE_SELECTOR = '.docs-code-multifile';
50-
export const DOCS_CODE_TAB_GROUP_SELECTOR = '.docs-tab-group';
51-
export const DOCS_CODE_TAB_SELECTOR = '.docs-tab';
47+
const DOCS_CODE_SELECTOR = '.docs-code';
48+
const DOCS_CODE_MUTLIFILE_SELECTOR = '.docs-code-multifile';
49+
const DOCS_CODE_TAB_GROUP_SELECTOR = '.docs-tab-group';
50+
const DOCS_CODE_TAB_SELECTOR = '.docs-tab';
5251
const GITHUB_CONTENT_URL = 'https://github.com/angular/angular/blob/{{BUILD_SCM_ABBREV_HASH}}';
5352

5453
@Component({

‎adev/shared-docs/components/viewers/example-viewer/example-viewer.component.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ import {EXAMPLE_VIEWER_CONTENT_LOADER} from '../../../providers/index';
2626
import {CopySourceCodeButton} from '../../copy-source-code-button/copy-source-code-button.component';
2727
import {IconComponent} from '../../icon/icon.component';
2828

29-
export const CODE_LINE_NUMBER_CLASS_NAME = 'shiki-ln-number';
30-
export const CODE_LINE_CLASS_NAME = 'line';
31-
export const GAP_CODE_LINE_CLASS_NAME = 'gap';
32-
export const HIDDEN_CLASS_NAME = 'hidden';
29+
const CODE_LINE_NUMBER_CLASS_NAME = 'shiki-ln-number';
30+
const CODE_LINE_CLASS_NAME = 'line';
31+
const GAP_CODE_LINE_CLASS_NAME = 'gap';
32+
const HIDDEN_CLASS_NAME = 'hidden';
3333

3434
@Component({
3535
selector: 'docs-example-viewer',

‎adev/shared-docs/interfaces/search-results.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface SearchResult {
4242
}
4343

4444
/* The hierarchy of the item */
45-
export interface Hierarchy {
45+
interface Hierarchy {
4646
/* It's kind of the page i.e `Docs`, `Tutorials`, `Reference` etc. */
4747
lvl0: string | null;
4848
/* Typicaly it's the content of H1 of the page */

‎adev/shared-docs/interfaces/tutorial.ts‎

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import type {FileSystemTree} from '@webcontainer/api';
109
import {NavigationItem} from './navigation-item';
1110

1211
/** the step is used only in this function to sort the nav items */
@@ -16,23 +15,6 @@ export type TutorialNavigationItemWithStep = TutorialNavigationItem & {
1615
};
1716
};
1817

19-
/**
20-
* Represents the contents of the tutorial files to be generated by the build script
21-
*/
22-
export type TutorialFiles = {
23-
sourceCode?: FileSystemTree;
24-
metadata?: TutorialMetadata;
25-
sourceCodeZip?: Uint8Array;
26-
route?: Omit<TutorialNavigationItemWithStep, 'path'>;
27-
};
28-
29-
export type PlaygroundFiles = {
30-
sourceCode?: FileSystemTree;
31-
metadata?: TutorialMetadata;
32-
sourceCodeZip?: undefined;
33-
route?: PlaygroundRouteData;
34-
};
35-
3618
/** Represents the contents of the tutorial config file */
3719
export type TutorialMetadata = {
3820
type: TutorialConfig['type'];
@@ -58,7 +40,7 @@ export type TutorialMetadata = {
5840
dependencies?: Record<string, string>;
5941
};
6042

61-
export type TutorialStep = {
43+
type TutorialStep = {
6244
step: number;
6345
name: string;
6446
path: string;
@@ -74,7 +56,7 @@ export type TutorialConfig =
7456
| CliTutorialConfig
7557
| EditorOnlyTutorialConfig;
7658

77-
export interface TutorialConfigBase {
59+
interface TutorialConfigBase {
7860
type: TutorialType;
7961

8062
/** The tutorial title */
@@ -111,11 +93,11 @@ export interface LocalTutorialConfig extends TutorialConfigBase {
11193
}
11294

11395
/** Represents a tutorial config that supports only the interactive terminal for the Angular CLI */
114-
export type CliTutorialConfig = Omit<LocalTutorialConfig, 'type'> & {
96+
type CliTutorialConfig = Omit<LocalTutorialConfig, 'type'> & {
11597
type: TutorialType.CLI;
11698
};
11799

118-
export type EditorOnlyTutorialConfig = Omit<EditorTutorialConfig, 'type'> & {
100+
type EditorOnlyTutorialConfig = Omit<EditorTutorialConfig, 'type'> & {
119101
type: TutorialType.EDITOR_ONLY;
120102
};
121103

‎adev/shared-docs/services/search.service.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import {
2525
import type {Environment, SearchResult, SearchResultItem, SnippetResult} from '../interfaces/index';
2626
import {ENVIRONMENT} from '../providers/index';
2727

28-
export const SEARCH_DELAY = 200;
28+
const SEARCH_DELAY = 200;
2929
// Maximum number of facet values to return for each facet during a regular search.
30-
export const MAX_VALUE_PER_FACET = 5;
30+
const MAX_VALUE_PER_FACET = 5;
3131

3232
export const ALGOLIA_CLIENT: InjectionToken<LiteClient> = new InjectionToken<LiteClient>(
3333
'Search service',

‎adev/shared-docs/utils/device.utils.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const isApple =
1313
typeof window !== 'undefined' &&
1414
(/iPad|iPhone/.test(window.navigator.userAgent) || window.navigator.userAgent.includes('Mac'));
1515

16-
export const isIpad =
16+
const isIpad =
1717
typeof window !== 'undefined' &&
1818
isApple &&
1919
!!window.navigator.maxTouchPoints &&

‎adev/shared-docs/utils/url.utils.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function getRelativeUrl(
2323
return `${removeTrailingSlash(normalizePath(url.pathname))}${url.hash ?? ''}`;
2424
}
2525

26-
export const removeTrailingSlash = (url: string): string => {
26+
const removeTrailingSlash = (url: string): string => {
2727
if (url.endsWith('/')) {
2828
return url.slice(0, -1);
2929
}

‎adev/src/app/core/layout/secondary-navigation/secondary-navigation.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {SUB_NAVIGATION_DATA} from '../../../routing/sub-navigation-data';
2626
import {PRIMARY_NAV_ID, SEARCH_DIALOG_ID, SECONDARY_NAV_ID} from '../../constants/element-ids';
2727
import {PAGE_PREFIX} from '../../constants/pages';
2828

29-
export const ANIMATION_DURATION = 500;
29+
const ANIMATION_DURATION = 500;
3030

3131
@Component({
3232
selector: 'adev-secondary-navigation',

0 commit comments

Comments
 (0)