updated examples

This commit is contained in:
Jacob Overgaard
2023-04-12 14:19:41 +02:00
parent f9f5074662
commit 501958e2df
7 changed files with 50 additions and 20 deletions

View File

@@ -13,14 +13,17 @@ export interface MetaCollectionView {
/**
* An icon to represent the collection view
* @example 'umb:box'
* @example 'umb:grid'
*
* @examples [
* "umb:box",
* "umb:grid"
* ]
*/
icon: string;
/**
* The URL pathname for this collection view that can be deep linked to by sharing the url
*/
* The URL pathname for this collection view that can be deep linked to by sharing the url
*/
pathName: string;
}

View File

@@ -10,7 +10,10 @@ export interface MetaDashboard {
* This is the URL path for the dashboard which is used for navigating or deep linking directly to the dashboard
* https://yoursite.com/section/settings/dashboard/my-dashboard-path
*
* @examples 'my-dashboard-path'
* @example my-dashboard-path
* @examples [
* "my-dashboard-path"
* ]
*/
pathname: string;

View File

@@ -13,25 +13,35 @@ export interface ManifestEntityAction extends ManifestElement {
export interface MetaEntityAction {
/**
* An icon to represent the action to be performed
* @example 'umb:box'
* @example 'umb:grid'
*
* @examples [
* "umb:box",
* "umb:grid"
* ]
*/
icon?: string;
/**
* The friendly name of the action to perform
* @example 'Create'
* @example 'Create Content Template'
*
* @examples [
* "Create",
* "Create Content Template"
* ]
*/
label: string;
/**
* @TJS-ignore
*/
api: any; // create interface
/**
* The alias for the repsoitory of the entity type this action is for
* such as 'Umb.Repository.Documents'
* @example 'Umb.Repository.Documents'
* @examples [
* "Umb.Repository.Documents"
* ]
*/
repositoryAlias: string;
}

View File

@@ -11,15 +11,22 @@ export interface ManifestEntityBulkAction extends ManifestElement, ManifestWithC
export interface MetaEntityBulkAction {
/**
*
* A friendly label for the action
*/
label: string;
/**
* @TJS-ignore
*/
api: any; // create interface
/**
* The alias for the repsoitory of the entity type this action is for
* such as 'Umb.Repository.Documents'
* @example 'Umb.Repository.Documents'
*
* @examples [
* "Umb.Repository.Documents"
* ]
*/
repositoryAlias: string;
}

View File

@@ -113,9 +113,10 @@ export interface ManifestBase {
/**
* The kind of the extension, used to group extensions together
* @example "button"
*
* @examples ["button"]
*/
kind?: any; // I had to add the optional kind property set to undefined. To make the ManifestTypes recognize the Manifest Kind types. Notice that Kinds has to Omit the kind property when extending.
kind?: unknown; // I had to add the optional kind property set to undefined. To make the ManifestTypes recognize the Manifest Kind types. Notice that Kinds has to Omit the kind property when extending.
/**
* The friendly name of the extension
@@ -137,6 +138,9 @@ export interface ManifestKind {
}
export interface ManifestWithConditions<ConditionsType> {
/**
* Set the conditions for when the extension should be loaded
*/
conditions: ConditionsType;
}
@@ -155,7 +159,7 @@ export interface ManifestClass<T = unknown> extends ManifestWithLoader<object> {
/**
* The file location of the javascript file to load
* @required
* @TJS-required
*/
js?: string;
@@ -180,7 +184,8 @@ export interface ManifestElement extends ManifestWithLoader<object | HTMLElement
/**
* The file location of the javascript file to load
* @required
*
* @TJS-require
*/
js?: string;
@@ -189,12 +194,13 @@ export interface ManifestElement extends ManifestWithLoader<object | HTMLElement
* Note it is NOT <my-dashboard></my-dashboard> but just the name
*/
elementName?: string;
//loader?: () => Promise<object | HTMLElement>;
/**
* This contains properties specific to the type of extension
*/
meta?: any;
meta?: unknown;
}
export interface ManifestWithView extends ManifestElement {

View File

@@ -10,7 +10,8 @@ export interface ManifestTheme extends ManifestWithLoader<string> {
/**
* File location of the CSS file of the theme
* @example 'themes/dark.theme.css'
*
* @examples ["themes/dark.theme.css"]
*/
css?: string;
}

View File

@@ -11,7 +11,7 @@ export class UmbracoPackage {
/**
* @title The version of the Umbraco package in the style of semver
* @example 0.1.0
* @examples ["0.1.0"]
*/
version?: string;