microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.6.5

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/extension/appcenter/appCenterStrings.ts

86lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4import { DefaultApp } from "./command/commandParams";
5
6export class ACStrings {
7 public static OkBtnLabel: string = "Ok";
8 public static UserMustSignIn: string = "You are signed out. Please login to App Center";
9 public static SelectLoginTypeMsg: string = "Select the way you would like to authenticate with App Center";
10 public static PleaseProvideToken: string = "Please provide token to authenticate";
11 public static PleaseLoginViaBrowser: string = "We are about to launch a browser window so you can automatically create an App Center API token";
12 public static UserLoggedOutMsg: string = "Successfully logged out of App Center";
13 public static UserIsNotLoggedInMsg: string = "You are not logged into App Center";
14 public static LogoutPrompt: string = "Please execute logout to signoff from App Center";
15 public static NoCodePushDetectedMsg: string = "Please install React Native Code Push package to run this command!";
16 public static NoCurrentAppSetMsg: string = "No current app specified";
17 public static NoCurrentDeploymentSetMsg: string = "No current deployment";
18 public static PleaseProvideCurrentAppMsg: string = "Please click here to specify current app";
19 public static PleaseProvideCurrentDeploymentMsg: string = "Please click here to specify current deployment";
20 public static ProvideCurrentAppPromptMsg: string = "Please specify an App Center app";
21 public static InvalidCurrentAppNameMsg: string = "Sorry, provided app name is invalid";
22 public static InvalidAppVersionParamMsg: string = "Sorry, provided app version is invalid";
23 public static FailedToExecuteLoginMsg: string = "Failed to execute login to App Center";
24 public static SelectCurrentDeploymentMsg: string = "Please select current deployment";
25 public static FetchAppsStatusBarMessage: string = "Fetching current apps for you...";
26 public static FetchDeploymentsStatusBarMessage: string = "Fetching app deployments for you...";
27 public static GettingAppInfoMessage: string = "Getting app info...";
28 public static DetectingAppVersionMessage: string = "Detecting app version...";
29 public static RunningBundleCommandMessage: string = "Running bundle command...";
30 public static ArchivingUpdateContentsMessage: string = "Archiving update contents...";
31 public static ReleasingUpdateContentsMessage: string = "Releasing update contents to CodePush...";
32 public static LoginToAppCenterButton: string = "Login to App Center";
33 public static PleaseProvideTargetBinaryVersion: string = "Please provide semver compliant version";
34 public static LogoutMenuLabel: string = "Logout";
35 public static MenuTitlePlaceholder: string = "Please select action";
36
37 public static YouAreLoggedInMsg: (name: string) => string = (name: string) => {
38 return `You are logged into App Center as '${name}'`;
39 }
40
41 public static YourCurrentAppMsg: (appName: string) => string = (appName: string) => {
42 return `Your current app is '${appName}'`;
43 }
44
45 public static YourCurrentAppAndDeployemntMsg: (appName: string, deploymentName: string) => string = (appName: string, deploymentName: string) => {
46 if (deploymentName) {
47 return `Your current app is '${appName}', current deployment is '${deploymentName}'`;
48 } else {
49 return `Your current app is '${appName}', you have no deployments specified`;
50 }
51 }
52
53 public static YourCurrentDeploymentMsg: (deploymentName: string) => string = (deploymentName: string) => {
54 return `Your current deployment is '${deploymentName}'`;
55 }
56
57 public static ReleaseReactMenuText: (app: DefaultApp | null) => string = (app: DefaultApp | null) => {
58 if (app) {
59 return `Release '${app.appName}' to '${app.currentAppDeployments.currentDeploymentName}' deployment`;
60 } else {
61 return `Release react (please specify current app first)`;
62 }
63 }
64
65 public static SetCurrentAppMenuText: (app: DefaultApp | null) => string = (app: DefaultApp | null) => {
66 if (app) {
67 return `Change '${app.appName}' to a different app`;
68 } else {
69 return `Set current app`;
70 }
71 }
72
73 public static SetCurrentAppDeploymentText: (app: DefaultApp) => string = (app: DefaultApp) => {
74 return `Change '${app.currentAppDeployments.currentDeploymentName}' to a different deployment`;
75 }
76
77 public static SetCurrentAppTargetBinaryVersionText: (app: DefaultApp) => string = (app: DefaultApp) => {
78 const targetBinaryVersionProvided = app.targetBinaryVersion !== undefined && app.targetBinaryVersion;
79 return `Change ${targetBinaryVersionProvided ? `'${app.targetBinaryVersion}'` : "automatically fetched"} target binary version`;
80 }
81
82 public static SetCurrentAppIsMandatoryText: (app: DefaultApp) => string = (app: DefaultApp) => {
83 const isMandatory = app.isMandatory !== undefined && app.isMandatory;
84 return `Change release to ${isMandatory ? "be not Mandatory" : "be Mandatory"}`;
85 }
86}