Skip to content

Commit bc868d5

Browse files
committed
style: missing semicolons
1 parent 2a523c9 commit bc868d5

7 files changed

Lines changed: 27 additions & 27 deletions

File tree

demo-angular/app/pages/login/login.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {fromResource} from 'tns-core-modules/image-source';
1010
templateUrl: "login.component.html",
1111
styleUrls: ["login.component.css"]
1212
})
13-
export class LoginComponent{
13+
export class LoginComponent {
1414
linkContent = null;
1515
photosContent = null;
1616
genericContent = null;
@@ -67,7 +67,7 @@ export class LoginComponent{
6767
'Create Native iOS and Android Apps With JavaScript',
6868
{
6969
hashtag: '#Nativescript'
70-
})
70+
});
7171
}
7272

7373
generatePhotosShareContent() {

demo/app/login-view-model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class LoginViewModel extends Observable {
6666
'Create Native iOS and Android Apps With JavaScript',
6767
{
6868
hashtag: '#Nativescript'
69-
})
69+
});
7070
}
7171

7272
public generatePhotosShareContent() {

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"ngc": "node --max-old-space-size=8192 ./node_modules/.bin/ngc",
1414
"build": "npm i && tsc && tns plugin build && npm run ngc",
1515
"build.iosOnly": "npm i && tsc && npm run ngc",
16-
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'",
16+
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**'",
1717
"prepublishOnly": "npm run build",
1818
"plugin.tscwatch": "tsc -skipLibCheck -w",
1919
"demo.ios": "npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles",

src/share-manager.common.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
export interface ShareAdditionContent {
2-
hashtag?: string
2+
hashtag?: string;
33
}
44

55
export interface MessageActionButton {
6-
title: string,
7-
url: string
6+
title: string;
7+
url: string;
88
}
99

1010
export interface MessageGenericTemplateElement {
11-
title: string,
12-
subtitle?: string,
13-
imageUrl: string,
14-
button?: MessageActionButton,
15-
defaultAction?: MessageActionButton,
11+
title: string;
12+
subtitle?: string;
13+
imageUrl: string;
14+
button?: MessageActionButton;
15+
defaultAction?: MessageActionButton;
1616
}
1717

1818
export interface MessageGenericTemplateElementContent {
19-
element: MessageGenericTemplateElement,
20-
imageAspectRatio?: MessageGenericTemplateImageAspectRatio,
21-
pageID?: string,
22-
isSharable?: boolean
19+
element: MessageGenericTemplateElement;
20+
imageAspectRatio?: MessageGenericTemplateImageAspectRatio;
21+
pageID?: string;
22+
isSharable?: boolean;
2323
}
2424

2525
export enum MessageGenericTemplateImageAspectRatio {
@@ -33,9 +33,9 @@ export enum MessageMediaTemplateMediaType {
3333
}
3434

3535
export interface MessageMediaTemplateContent {
36-
mediaUrl?: string,
37-
attachmentID?: string,
38-
mediaType: MessageMediaTemplateMediaType,
39-
pageID: string,
40-
button?: MessageActionButton
36+
mediaUrl?: string;
37+
attachmentID?: string;
38+
mediaType: MessageMediaTemplateMediaType;
39+
pageID: string;
40+
button?: MessageActionButton;
4141
}

src/share-manager.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,25 +54,25 @@ export declare function createShareMessageMediaTemplateContent(contentConfig: Me
5454
* If it isn't installed, the SDK switches people to their default browser and opens the Feed Dialog. If someone wants to share an Open Graph story, the SDK opens the Web Share Dialog.
5555
* @param {any} content: Links content or photos content
5656
*/
57-
export declare function showShareDialog(content: any): void
57+
export declare function showShareDialog(content: any): void;
5858

5959

6060
/**
6161
* The Message Dialog switches to the native Messenger for iOS app, then returns control to your app after a post is published.
6262
* @param {any} content: Links content or photos content, SUPPORTED SHARE TYPES - ShareLinkContent - ShareCameraEffectContent - ShareMessengerOpenGraphMusicTemplateContent - ShareMessengerMediaTemplateContent - ShareMessengerGenericTemplateContent UNSUPPORTED SHARE TYPES (DEPRECATED AUGUST 2018) - ShareOpenGraphContent - SharePhotoContent - ShareVideoContent - Any other types that are not one of the four supported types listed above
6363
*/
64-
export declare function showMessageDialog(content: any): void
64+
export declare function showMessageDialog(content: any): void;
6565

6666

6767
/**
6868
* Indicates whether it is possible to show the dialog for ShareContent
6969
* @param {any} content: Links content or photos content
7070
*/
71-
export declare function canShareDialogShow(content: any): boolean
71+
export declare function canShareDialogShow(content: any): boolean;
7272

7373

7474
/**
7575
* Indicates whether it is possible to show the dialog for ShareContent
7676
* @param {any} content: Links content or photos content, SUPPORTED SHARE TYPES - ShareLinkContent - ShareCameraEffectContent - ShareMessengerOpenGraphMusicTemplateContent - ShareMessengerMediaTemplateContent - ShareMessengerGenericTemplateContent UNSUPPORTED SHARE TYPES (DEPRECATED AUGUST 2018) - ShareOpenGraphContent - SharePhotoContent - ShareVideoContent - Any other types that are not one of the four supported types listed above
7777
*/
78-
export declare function canMessageDialogShow(content: any): boolean
78+
export declare function canMessageDialogShow(content: any): boolean;

src/share-manager.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function createShareMessageMediaTemplateContent(contentConfig: MessageMed
110110
}
111111

112112
if (contentConfig.pageID) {
113-
content.pageID = contentConfig.pageID
113+
content.pageID = contentConfig.pageID;
114114
}
115115
else {
116116
throw new Error('To use MediaTemplateContent, you have to provide a pageId, see https://developers.facebook.com/docs/sharing/messenger#app-page-id for more detail');

src/ui/share-button.common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Property, View} from 'tns-core-modules/ui/core/view';
33
export abstract class FacebookShareButtonBase extends View {
44
content: any;
55

6-
abstract onContentChanged(oldValue: any, newValue: any): void
6+
abstract onContentChanged(oldValue: any, newValue: any): void;
77
}
88

99
export const contentProperty = new Property<FacebookShareButtonBase, any>({

0 commit comments

Comments
 (0)