Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/datamodel/node/container/ProjectSectionNode.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion dist/datamodel/node/container/ProjectSectionNode.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/datamodel/node/container/ProjectSectionNode.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 79 additions & 0 deletions dist/datamodel/parser/ProjectPage.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import type { ParsedProject } from './ProjectParser.js';
import type { ParseWarning } from './ParseWarning.js';
/** One file MATLAB runs for a hook. Position in the list IS the run order. */
export interface ProjectPageRun {
name: string;
/** Project-root-relative path. */
file: string;
}
/** One entry in the Shortcuts gallery. */
export interface ProjectPageShortcut {
name: string;
/** Project-root-relative path. May name a FOLDER. */
file: string;
/** The group's display name, '' when ungrouped. */
group: string;
}
/** One label, with how much of the project carries it. */
export interface ProjectPageLabel {
id: string;
name: string;
/** Members carrying this label. 0 is meaningful — a defined but unused label. */
count: number;
/** Defined by this project rather than shipped by MATLAB. */
custom: boolean;
}
export interface ProjectPageCategory {
name: string;
labels: ProjectPageLabel[];
}
/** A folder — or file — the project designates for a purpose. */
export interface ProjectPageLocation {
/** The store's own key, e.g. 'SimulinkCacheFolder'. */
key: string;
/** English for `key`, falling back to `key` itself when unrecognized. */
label: string;
/** Project-root-relative path. */
ref: string;
}
export interface ProjectPageReference {
name: string;
/**
* Where the referenced project lives, relative to this project's root — so
* typically `../OtherProject/other.prj`. '' when the store recorded no path, which
* is a reference a host cannot open and should not offer a link for.
*/
path: string;
}
export interface ProjectPage {
name: string;
/** The raw `MetadataType`, for a host that wants to report it exactly. */
format: string;
/** English for `format` — what a MATLAB user sees in Project Settings. */
formatLabel: string;
/** Every member, folders included: what the project "contains". */
memberCount: number;
/** Members carrying at least one label — the numerator of label coverage. */
labelledCount: number;
/** In run order. */
startup: ProjectPageRun[];
/** In run order. */
shutdown: ProjectPageRun[];
shortcuts: ProjectPageShortcut[];
/** Project-root-relative; '' is the project root itself. */
pathFolders: string[];
locations: ProjectPageLocation[];
categories: ProjectPageCategory[];
references: ProjectPageReference[];
warnings: ParseWarning[];
}
/**
* Project a parsed project into its page.
*
* Pure and total: every field is derived from `parsed`, and a project that holds
* nothing yields a page of empty sections rather than a missing one — the sections
* are what tell a user "this project defines no shortcuts", which is a fact worth
* showing and not the same as a page that failed to render.
*/
export declare function buildProjectPage(parsed: ParsedProject): ProjectPage;
//# sourceMappingURL=ProjectPage.d.ts.map
1 change: 1 addition & 0 deletions dist/datamodel/parser/ProjectPage.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

170 changes: 170 additions & 0 deletions dist/datamodel/parser/ProjectPage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading