diff --git a/components/dashboard/src/components/CodeText.tsx b/components/dashboard/src/components/CodeText.tsx deleted file mode 100644 index 77fb1b7cd899b1..00000000000000 --- a/components/dashboard/src/components/CodeText.tsx +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Copyright (c) 2021 Gitpod GmbH. All rights reserved. - * Licensed under the GNU Affero General Public License (AGPL). - * See License-AGPL.txt in the project root for license information. - */ - -export default function CodeText(p: { children?: React.ReactNode }) { - return ( - - {p.children} - - ); -} diff --git a/components/dashboard/src/index.css b/components/dashboard/src/index.css index cc0b5ed553ca24..beb78ac0caac9c 100644 --- a/components/dashboard/src/index.css +++ b/components/dashboard/src/index.css @@ -77,6 +77,10 @@ @apply text-blue-500 hover:text-blue-600 dark:text-blue-400 dark:hover:text-blue-500; } + code { + @apply bg-gray-100 dark:bg-gray-700 px-1.5 py-0.5 rounded-md text-sm font-mono font-medium; + } + textarea, input[type="text"], input[type="tel"], diff --git a/components/dashboard/src/settings/EnvironmentVariables.tsx b/components/dashboard/src/settings/EnvironmentVariables.tsx index eb9b7ef7389435..b52e33e3feba1a 100644 --- a/components/dashboard/src/settings/EnvironmentVariables.tsx +++ b/components/dashboard/src/settings/EnvironmentVariables.tsx @@ -10,7 +10,6 @@ import ConfirmationModal from "../components/ConfirmationModal"; import { Item, ItemField, ItemFieldContextMenu, ItemsList } from "../components/ItemsList"; import Modal from "../components/Modal"; import { getGitpodService } from "../service/service"; -import CodeText from "../components/CodeText"; import { PageWithSettingsSubMenu } from "./PageWithSettingsSubMenu"; interface EnvVarModalProps { @@ -95,8 +94,8 @@ function AddEnvVarModal(p: EnvVarModalProps) {

- You can pass a variable for a specific project or use wildcard character ( - */*) to make it available in more projects. + You can pass a variable for a specific project or use wildcard character (*/*) to + make it available in more projects.

diff --git a/components/dashboard/src/settings/ProfileInformation.tsx b/components/dashboard/src/settings/ProfileInformation.tsx index bfa010c3641cbd..b84996655c4a1c 100644 --- a/components/dashboard/src/settings/ProfileInformation.tsx +++ b/components/dashboard/src/settings/ProfileInformation.tsx @@ -8,7 +8,6 @@ import { User } from "@gitpod/gitpod-protocol"; import { hoursBefore, isDateSmaller } from "@gitpod/gitpod-protocol/lib/util/timeutil"; import React, { useContext, useState } from "react"; import Alert from "../components/Alert"; -import CodeText from "../components/CodeText"; import Modal from "../components/Modal"; import { getGitpodService } from "../service/service"; import { UserContext } from "../user-context"; @@ -118,9 +117,8 @@ export default function ProfileInformation(props: {

The following information will be used to set up Git configuration. You can override Git author name and - email per project by using the default environment variables GIT_AUTHOR_NAME,{" "} - GIT_COMMITTER_NAME, GIT_AUTHOR_EMAIL and{" "} - GIT_COMMITTER_EMAIL. + email per project by using the default environment variables GIT_AUTHOR_NAME,{" "} + GIT_COMMITTER_NAME, GIT_AUTHOR_EMAIL and GIT_COMMITTER_EMAIL.

{props.errorMessage.length > 0 && ( diff --git a/components/dashboard/src/start/CreateWorkspace.tsx b/components/dashboard/src/start/CreateWorkspace.tsx index 87d01077cb2127..d57ef0551e18a3 100644 --- a/components/dashboard/src/start/CreateWorkspace.tsx +++ b/components/dashboard/src/start/CreateWorkspace.tsx @@ -23,7 +23,6 @@ import { openAuthorizeWindow } from "../provider-utils"; import { SelectAccountPayload } from "@gitpod/gitpod-protocol/lib/auth"; import { SelectAccountModal } from "../settings/SelectAccountModal"; import PrebuildLogs from "../components/PrebuildLogs"; -import CodeText from "../components/CodeText"; import FeedbackComponent from "../feedback-form/FeedbackComponent"; import { isGitpodIo } from "../utils"; import { BillingAccountSelector } from "../components/BillingAccountSelector"; @@ -480,7 +479,7 @@ function RepositoryNotFoundView(p: { error: StartWorkspaceError }) {

Permission to access private repositories has been granted. If you are a member of{" "} - {owner}, please try to request access for Gitpod. + {owner}, please try to request access for Gitpod.

@@ -494,7 +493,7 @@ function RepositoryNotFoundView(p: { error: StartWorkspaceError }) {

Your access token was updated recently. Please try again if the repository exists and Gitpod was - approved for {owner}. + approved for {owner}.

@@ -507,7 +506,7 @@ function RepositoryNotFoundView(p: { error: StartWorkspaceError }) { return (

- {repoFullName} + {repoFullName}

{statusMessage} {p.error && isGitpodIo() && ( diff --git a/components/dashboard/src/teams/TeamSettings.tsx b/components/dashboard/src/teams/TeamSettings.tsx index 187ff77b8700e2..b82fe66c170dd4 100644 --- a/components/dashboard/src/teams/TeamSettings.tsx +++ b/components/dashboard/src/teams/TeamSettings.tsx @@ -8,7 +8,6 @@ import { Team } from "@gitpod/gitpod-protocol"; import { BillingMode } from "@gitpod/gitpod-protocol/lib/billing-mode"; import { useContext, useEffect, useState } from "react"; import { Redirect, useLocation } from "react-router"; -import CodeText from "../components/CodeText"; import ConfirmationModal from "../components/ConfirmationModal"; import { PageWithSubMenu } from "../components/PageWithSubMenu"; import { getGitpodService, gitpodHostUrl } from "../service/service"; @@ -110,7 +109,7 @@ export default function TeamSettings() {

- Type {team?.slug} to confirm + Type {team?.slug} to confirm

setTeamSlug(e.target.value)}> diff --git a/components/dashboard/src/whatsnew/WhatsNew-2021-06.tsx b/components/dashboard/src/whatsnew/WhatsNew-2021-06.tsx index f2e73275e33b1f..9bcd97d171c093 100644 --- a/components/dashboard/src/whatsnew/WhatsNew-2021-06.tsx +++ b/components/dashboard/src/whatsnew/WhatsNew-2021-06.tsx @@ -7,7 +7,6 @@ import { User } from "@gitpod/gitpod-protocol"; import { WhatsNewEntry } from "./WhatsNew"; import { switchToVSCodeAction } from "./WhatsNew-2021-04"; -import CodeText from "../components/CodeText"; import PillLabel from "../components/PillLabel"; export const WhatsNewEntry202106: WhatsNewEntry = { @@ -24,8 +23,8 @@ export const WhatsNewEntry202106: WhatsNewEntry = {

Exposing ports are now private by default. You can still change port visibility through the - editor or even configure this with the visibility property in{" "} - .gitpod.yml. + editor or even configure this with the visibility property in{" "} + .gitpod.yml.

{user.additionalData?.ideSettings?.defaultIde !== "code" && (