Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #390 from watermelontools/chore/remove-unused-pieces
Browse files Browse the repository at this point in the history
Chore/remove unused pieces
  • Loading branch information
baristaGeek committed Nov 21, 2023
2 parents f5ce673 + 34d9ba5 commit 1e29ed0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 104 deletions.
77 changes: 1 addition & 76 deletions app/(loggedIn)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,85 +17,10 @@ async function HomePage({}) {
console.error(e);
return null;
});
const comingSoon = [
"IntelliJ",
"Android Studio",
"AppCode",
"Aqua",
"CLion",
"DataGrip",
"DataSpell",
"GoLand",
"MPS",
"PhpStorm",
"PyCharm",
"Rider",
"RubyMine",
"RustRover",
"WebStorm",
];

return (
<div>
{data && <LoginGrid userEmail={userEmail} data={data} />}
{userEmail && (
<div className="Box" style={{ height: "100%" }}>
<div className="Subhead px-3 pt-2">
<h2 className="Subhead-heading d-flex flex-items-center flex-justify-start">
<img className="avatar avatar-4" src="/logos/vscode.svg" />
<span>IDEs</span>
</h2>
</div>

<div
style={{
display: "grid",
gridTemplateColumns: "repeat(auto-fit, minmax(350px, 1fr))",
}}
>
<div className="pl-3 pr-3 pt-1 pb-3" style={{ flex: 1 }}>
<DownloadExtension
name="VSCode"
email={userEmail}
urlStart="vscode"
accessToken={userName}
/>
</div>

<div className="pl-3 pr-3 pt-1 pb-3" style={{ flex: 1 }}>
<DownloadExtension
name="VSCode Insiders"
urlStart="vscode-insiders"
email={userEmail}
accessToken={userName}
/>
</div>
<div className="pl-3 pr-3 pt-1 pb-3" style={{ flex: 1 }}>
<DownloadExtension
name="VSCodium"
urlStart="vscodium"
email={userEmail}
accessToken={userName}
/>
</div>
{comingSoon.map((name) => (
<a href="https://plugins.jetbrains.com/plugin/22720-watermelon-context">
<div className="p-3">
<div className="Box d-flex flex-items-center flex-justify-start p-2">
<img
className="avatar avatar-8"
src={`/logos/${name.toLowerCase()}.svg`}
/>
<div className="p-2">
<h2>{name}</h2>
<p>Download now</p>
</div>
</div>
</div>
</a>
))}
</div>
</div>
)}
</div>
);
}
Expand Down
10 changes: 0 additions & 10 deletions components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,6 @@ export default function Header({ userEmail, userToken }) {
GitHub App
</a>
</li>
<li>
<a
className="dropdown-item block px-4 py-2 text-gray-800 hover:bg-gray-200 transition-colors duration-200"
href={`vscode://watermelontools.watermelon-tools?email=${
userEmail ?? ""
}&token=${userToken ? userToken : ""}`}
>
VSCode Extension
</a>
</li>
<li>
<a
className="dropdown-item block px-4 py-2 text-gray-800 hover:bg-gray-200 transition-colors duration-200"
Expand Down
15 changes: 0 additions & 15 deletions components/loginGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import InfoPanel from "../components/dashboard/InfoPanel";
import JiraLoginLink from "../components/JiraLoginLink";
import SlackLoginLink from "../components/SlackLoginLink";
import GitHubLoginLink from "../components/GitHubLoginLink";
import GitLabLoginLink from "../components/GitLabLoginLink";
import BitbucketLoginLink from "../components/BitbucketLoginLink";
import LinearLoginLink from "../components/LinearLoginLink";
import NotionLoginLink from "./NotionLoginLink";
import ConfluenceLoginLink from "./ConfluenceLoginLink";
Expand All @@ -17,19 +15,6 @@ function LoginGrid({ userEmail, data }) {
loginComponent: <GitHubLoginLink userEmail={userEmail} />,
type: "git_platforms",
},
{
name: "Bitbucket",
dataProp: "bitbucket_data",
loginComponent: <BitbucketLoginLink userEmail={userEmail} />,
type: "git_platforms",
},
{
name: "GitLab",
dataProp: "gitlab_data",
loginComponent: <GitLabLoginLink userEmail={userEmail} />,
type: "git_platforms",
},

{
name: "Jira",
dataProp: "jira_data",
Expand Down
3 changes: 0 additions & 3 deletions utils/actions/markdownHelpers/randomText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ const randomText = () => {
const textList = [
"\n[Why not invite more people to your team?](https://app.watermelontools.com/team)",
"\n[Have you starred Watermelon?](https://github.com/watermelontools/watermelon)",
"\n[Try us on VSCode!](https://marketplace.visualstudio.com/items?itemName=WatermelonTools.watermelon-tools)",
"\n[Try us on VSCodium!](https://open-vsx.org/extension/WatermelonTools/watermelon-tools)",
"\n[Try us on any JetBrains IDE!](https://plugins.jetbrains.com/plugin/22720-watermelon-context)",
];

let randomChance = Math.random() * 100;
Expand Down

0 comments on commit 1e29ed0

Please sign in to comment.