Skip to content

build: bump husky from 5.0.1 to 5.0.9 #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"gulp-cli": "^2.3.0",
"gulp-sass": "^4.0.2",
"highlight.js": "^10.4.0",
"husky": "5.0.1",
"husky": "5.0.9",
"inquirer": "^7.1.0",
"jasmine": "^3.5.0",
"jasmine-core": "^3.5.0",
Expand Down
4 changes: 2 additions & 2 deletions src/cdk/a11y/focus-trap/focus-trap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class FocusTrap {
* @returns Whether the focus trap managed to attach successfuly. This may not be the case
* if the target element isn't currently in the DOM.
*
* 焦点陷阱是否成功附着。如果目标元素当前不在 DOM 中,则可能不是这种情况。
* 焦点陷阱是否成功附加。如果目标元素当前不在 DOM 中,则可能不是这种情况。
*
*/
attachAnchors(): boolean {
Expand Down Expand Up @@ -331,7 +331,7 @@ export class FocusTrap {
/**
* Checks whether the focus trap has successfully been attached.
*
* 检查焦点陷阱是否已附着成功
* 检查焦点陷阱是否已附加成功
*
*/
hasAttached(): boolean {
Expand Down
2 changes: 1 addition & 1 deletion src/cdk/drag-drop/drop-list-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class DropListRef<T = any> {
/**
* Element that the drop list is attached to.
*
* 投放表附着到的元素
* 投放表附加到的元素
*
*/
element: HTMLElement | ElementRef<HTMLElement>;
Expand Down
8 changes: 4 additions & 4 deletions src/cdk/overlay/dispatchers/base-overlay-dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {OverlayReference} from '../overlay-reference';
* if any. It maintains a list of attached overlays to determine best suited overlay based
* on event target and order of overlay opens.
*
* 本服务用于将落在主体上的事件派发到适当的浮层引用(如果有)。它维护一个已附着的浮层列表,以便根据事件目标和浮层打开的顺序确定最适合的浮层。
* 本服务用于将落在主体上的事件派发到适当的浮层引用(如果有)。它维护一个已附加的浮层列表,以便根据事件目标和浮层打开的顺序确定最适合的浮层。
*
*/
@Injectable({providedIn: 'root'})
Expand All @@ -24,7 +24,7 @@ export abstract class BaseOverlayDispatcher implements OnDestroy {
/**
* Currently attached overlays in the order they were attached.
*
* 当前已附着的浮层,按其附着顺序排列
* 当前已附加的浮层,按其附加顺序排列
*
*/
_attachedOverlays: OverlayReference[] = [];
Expand All @@ -43,7 +43,7 @@ export abstract class BaseOverlayDispatcher implements OnDestroy {
/**
* Add a new overlay to the list of attached overlay refs.
*
* 将新的浮层添加到已附着的浮层引用列表中
* 将新的浮层添加到已附加的浮层引用列表中
*
*/
add(overlayRef: OverlayReference): void {
Expand All @@ -55,7 +55,7 @@ export abstract class BaseOverlayDispatcher implements OnDestroy {
/**
* Remove an overlay from the list of attached overlay refs.
*
* 从已附着的浮层引用列表中删除浮层
* 从已附加的浮层引用列表中删除浮层
*
*/
remove(overlayRef: OverlayReference): void {
Expand Down
6 changes: 3 additions & 3 deletions src/cdk/overlay/dispatchers/overlay-keyboard-dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {BaseOverlayDispatcher} from './base-overlay-dispatcher';
* if any. It maintains a list of attached overlays to determine best suited overlay based
* on event target and order of overlay opens.
*
* 本服务用于将落在 body 上的键盘事件派发到适当的浮层引用(如果有)。它维护一个已附着的浮层列表,以便根据事件目标和浮层打开顺序确定最适合的浮层。
* 本服务用于将落在 body 上的键盘事件派发到适当的浮层引用(如果有)。它维护一个已附加的浮层列表,以便根据事件目标和浮层打开顺序确定最适合的浮层。
*
*/
@Injectable({providedIn: 'root'})
Expand All @@ -29,7 +29,7 @@ export class OverlayKeyboardDispatcher extends BaseOverlayDispatcher {
/**
* Add a new overlay to the list of attached overlay refs.
*
* 将新的浮层添加到已附着的浮层引用列表中
* 将新的浮层添加到已附加的浮层引用列表中
*
*/
add(overlayRef: OverlayReference): void {
Expand Down Expand Up @@ -58,7 +58,7 @@ export class OverlayKeyboardDispatcher extends BaseOverlayDispatcher {
/**
* Keyboard event listener that will be attached to the body.
*
* 键盘事件监听器,将被附着到 body 上。
* 键盘事件监听器,将被附加到 body 上。
*
*/
private _keydownListener = (event: KeyboardEvent) => {
Expand Down
2 changes: 1 addition & 1 deletion src/cdk/overlay/overlay-directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ export class CdkConnectedOverlay implements OnDestroy, OnChanges {
/**
* Attaches the overlay and subscribes to backdrop clicks if backdrop exists
*
* 如果存在背景板,请把浮层附着上去并订阅背景板点击事件
* 如果存在背景板,请把浮层附加上去并订阅背景板点击事件
*
*/
private _attachOverlay() {
Expand Down
14 changes: 7 additions & 7 deletions src/cdk/overlay/overlay-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class OverlayRef implements PortalOutlet, OverlayReference {
* Reference to the parent of the `_host` at the time it was detached. Used to restore
* the `_host` to its original position in the DOM when it gets re-attached.
*
* 在拆除浮层时,引用其 `_host` 的父元素。当重新附着时,用于把 `_host` 恢复其在 DOM 中的原始位置。
* 在拆除浮层时,引用其 `_host` 的父元素。当重新附加时,用于把 `_host` 恢复其在 DOM 中的原始位置。
*
*/
private _previousHostParent: HTMLElement;
Expand Down Expand Up @@ -131,15 +131,15 @@ export class OverlayRef implements PortalOutlet, OverlayReference {
* Attaches content, given via a Portal, to the overlay.
* If the overlay is configured to have a backdrop, it will be created.
*
* 把通过传送点给出的内容附着到浮层上。如果浮层配置为具有背景板,也会创建它。
* 把通过传送点给出的内容附加到浮层上。如果浮层配置为具有背景板,也会创建它。
*
* @param portal Portal instance to which to attach the overlay.
*
* 要附着的传送点实例
* 要附加的传送点实例
*
* @returns The portal attachment result.
*
* 传送点附着的结果
* 传送点附加的结果
*
*/
attach(portal: Portal<any>): any {
Expand Down Expand Up @@ -286,7 +286,7 @@ export class OverlayRef implements PortalOutlet, OverlayReference {
/**
* Whether the overlay has attached content.
*
* 浮层是否附着着内容
* 浮层是否附加着内容
*
*/
hasAttached(): boolean {
Expand All @@ -306,7 +306,7 @@ export class OverlayRef implements PortalOutlet, OverlayReference {
/**
* Gets an observable that emits when the overlay has been attached.
*
* 获取一个在附着浮层时会发出通知的可观察对象
* 获取一个在附加浮层时会发出通知的可观察对象
*
*/
attachments(): Observable<void> {
Expand Down Expand Up @@ -514,7 +514,7 @@ export class OverlayRef implements PortalOutlet, OverlayReference {
/**
* Attaches a backdrop for this overlay.
*
* 为这个浮层附着一个背景板
* 为这个浮层附加一个背景板
*
*/
private _attachBackdrop() {
Expand Down
4 changes: 2 additions & 2 deletions src/cdk/overlay/scroll/block-scroll-strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class BlockScrollStrategy implements ScrollStrategy {
/**
* Blocks page-level scroll while the attached overlay is open.
*
* 打开已附着的浮层时阻止页面级滚动
* 打开已附加的浮层时阻止页面级滚动
*
*/
enable() {
Expand All @@ -65,7 +65,7 @@ export class BlockScrollStrategy implements ScrollStrategy {
/**
* Unblocks page-level scroll while the attached overlay is open.
*
* 打开已附着的浮层时,取消阻止页面级滚动。
* 打开已附加的浮层时,取消阻止页面级滚动。
*
*/
disable() {
Expand Down
4 changes: 2 additions & 2 deletions src/cdk/overlay/scroll/close-scroll-strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class CloseScrollStrategy implements ScrollStrategy {
/**
* Enables the closing of the attached overlay on scroll.
*
* 启用“滚动时关闭已附着浮层”。
* 启用“滚动时关闭已附加浮层”。
*
*/
enable() {
Expand Down Expand Up @@ -91,7 +91,7 @@ export class CloseScrollStrategy implements ScrollStrategy {
/**
* Disables the closing the attached overlay on scroll.
*
* 禁用“滚动时关闭已附着浮层”。
* 禁用“滚动时关闭已附加浮层”。
*
*/
disable() {
Expand Down
8 changes: 4 additions & 4 deletions src/cdk/overlay/scroll/scroll-strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ export interface ScrollStrategy {
/**
* Enable this scroll strategy (called when the attached overlay is attached to a portal).
*
* 启用此滚动策略(将已附着的浮层附着到传送点 Portal 时调用)。
* 启用此滚动策略(将已附加的浮层附加到传送点 Portal 时调用)。
*
*/
enable: () => void;

/**
* Disable this scroll strategy (called when the attached overlay is detached from a portal).
*
* 禁用此滚动策略(当已附着的浮层从传送点 Portal 拆除时调用)。
* 禁用此滚动策略(当已附加的浮层从传送点 Portal 拆除时调用)。
*
*/
disable: () => void;

/**
* Attaches this `ScrollStrategy` to an overlay.
*
* 将此 `ScrollStrategy` 附着到浮层
* 将此 `ScrollStrategy` 附加到浮层
*
*/
attach: (overlayRef: OverlayReference) => void;
Expand All @@ -51,7 +51,7 @@ export interface ScrollStrategy {
/**
* Returns an error to be thrown when attempting to attach an already-attached scroll strategy.
*
* 返回一个错误,它将在尝试附着到已附着的滚动策略时引发
* 返回一个错误,它将在尝试附加到已附加的滚动策略时引发
*
*/
export function getMatScrollStrategyAlreadyAttachedError(): Error {
Expand Down
12 changes: 6 additions & 6 deletions src/cdk/portal/dom-portal-outlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {BasePortalOutlet, ComponentPortal, TemplatePortal, DomPortal} from './po
* A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular
* application context.
*
* PortalOutlet,用于把传送点附着到 Angular 应用上下文之外的任意一个 DOM 元素上。
* PortalOutlet,用于把传送点附加到 Angular 应用上下文之外的任意一个 DOM 元素上。
*
*/
export class DomPortalOutlet extends BasePortalOutlet {
Expand Down Expand Up @@ -48,7 +48,7 @@ export class DomPortalOutlet extends BasePortalOutlet {
*
* @param portal Portal to be attached
*
* 要附着到的传送点
* 要附加到的传送点
*
* @returns Reference to the created component.
*
Expand Down Expand Up @@ -89,11 +89,11 @@ export class DomPortalOutlet extends BasePortalOutlet {
/**
* Attaches a template portal to the DOM as an embedded view.
*
* 把一个模板传送点作为嵌入式视图附着到 DOM 上。
* 把一个模板传送点作为嵌入式视图附加到 DOM 上。
*
* @param portal Portal to be attached.
*
* 要附着到的传送点
* 要附加到的传送点
*
* @returns Reference to the created embedded view.
*
Expand Down Expand Up @@ -129,11 +129,11 @@ export class DomPortalOutlet extends BasePortalOutlet {
/**
* Attaches a DOM portal by transferring its content into the outlet.
*
* 通过把其内容传入指定的地标来附着到 DOM 传送点。
* 通过把其内容传入指定的地标来附加到 DOM 传送点。
*
* @param portal Portal to be attached.
*
* 要附着到的传送点
* 要附加到的传送点
*
* @deprecated To be turned into a method.
*
Expand Down
20 changes: 10 additions & 10 deletions src/cdk/portal/portal-directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {BasePortalOutlet, ComponentPortal, Portal, TemplatePortal, DomPortal} fr
* Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
* the directive instance itself can be attached to a host, enabling declarative use of portals.
*
* `TemplatePortal` 的指令版本。由于该指令*是*一个 TemplatePortal,所以该指令实例本身也可以附着到一个宿主上,从而能够声明式地使用这些传送点。
* `TemplatePortal` 的指令版本。由于该指令*是*一个 TemplatePortal,所以该指令实例本身也可以附加到一个宿主上,从而能够声明式地使用这些传送点。
*
*/
@Directive({
Expand Down Expand Up @@ -62,7 +62,7 @@ export class TemplatePortalDirective extends CdkPortal {}
/**
* Possible attached references to the CdkPortalOutlet.
*
* 可能附着于此 CdkPortalOutlet 上的引用。
* 可能附加于此 CdkPortalOutlet 上的引用。
*
*/
export type CdkPortalOutletAttachedRef = ComponentRef<any> | EmbeddedViewRef<any> | null;
Expand All @@ -71,7 +71,7 @@ export type CdkPortalOutletAttachedRef = ComponentRef<any> | EmbeddedViewRef<any
* Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
* directly attached to it, enabling declarative use.
*
* PortalOutlet 的指令版本。由于该指令*是*一个 PortalOutlet,因此可以直接把传送点附着到这里,从而实现声明式使用。
* PortalOutlet 的指令版本。由于该指令*是*一个 PortalOutlet,因此可以直接把传送点附加到这里,从而实现声明式使用。
*
* Usage:
* `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
Expand All @@ -98,7 +98,7 @@ export class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestr
/**
* Reference to the currently-attached component/view ref.
*
* 对当前附着上来的组件/视图引用的引用。
* 对当前附加上来的组件/视图引用的引用。
*
*/
private _attachedRef: CdkPortalOutletAttachedRef;
Expand Down Expand Up @@ -158,7 +158,7 @@ export class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestr
/**
* Component or view reference that is attached to the portal.
*
* 附着了传送点的组件或视图的引用
* 附加了传送点的组件或视图的引用
*
*/
get attachedRef(): CdkPortalOutletAttachedRef {
Expand All @@ -182,7 +182,7 @@ export class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestr
*
* @param portal Portal to be attached to the portal outlet.
*
* 要附着到传送点出口地标的传送点
* 要附加到传送点出口地标的传送点
*
* @returns Reference to the created component.
*
Expand Down Expand Up @@ -222,11 +222,11 @@ export class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestr
/**
* Attach the given TemplatePortal to this PortalHost as an embedded View.
*
* 把这个指定的 TemplatePortal 作为嵌入式视图附着到这个 PortalHost 中。
* 把这个指定的 TemplatePortal 作为嵌入式视图附加到这个 PortalHost 中。
*
* @param portal Portal to be attached.
*
* 要附着的传送点
* 要附加的传送点
*
* @returns Reference to the created embedded view.
*
Expand All @@ -248,11 +248,11 @@ export class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestr
/**
* Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
*
* 把所有的传送点内容都移入到指定的 DomPortal 中,以把它附着到这个 PortalHost 上。
* 把所有的传送点内容都移入到指定的 DomPortal 中,以把它附加到这个 PortalHost 上。
*
* @param portal Portal to be attached.
*
* 要附着的传送点
* 要附加的传送点
*
* @deprecated To be turned into a method.
*
Expand Down
6 changes: 3 additions & 3 deletions src/cdk/portal/portal-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Throws an exception when attempting to attach a null portal to a host.
*
* 当试图把空的传送点附着到宿主上时抛出异常
* 当试图把空的传送点附加到宿主上时抛出异常
*
* @docs-private
*/
Expand All @@ -20,7 +20,7 @@ export function throwNullPortalError() {
/**
* Throws an exception when attempting to attach a portal to a host that is already attached.
*
* 当试图把传送点附着到已经附着过的宿主上时,会抛出异常。
* 当试图把传送点附加到已经附加过的宿主上时,会抛出异常。
*
* @docs-private
*/
Expand Down Expand Up @@ -65,7 +65,7 @@ export function throwNullPortalOutletError() {
/**
* Throws an exception when attempting to detach a portal that is not attached.
*
* 当试图拆除未附着过的传送点时抛出异常
* 当试图拆除未附加过的传送点时抛出异常
*
* @docs-private
*/
Expand Down
Loading