Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 15, 2024
1 parent 57d7282 commit 25961dd
Showing 1 changed file with 36 additions and 54 deletions.
90 changes: 36 additions & 54 deletions src/components/Installer/index.jsx
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
import React, { useState } from 'react';
import styles from './styles.module.css';
import React, { useState } from "react";
import styles from "./styles.module.css";

export default function CondaInstallerSelector() {
const [os, setOs] = useState('');
const [arch, setArch] = useState('');
const [installerType, setInstallerType] = useState('');
const [os, setOs] = useState("");
const [arch, setArch] = useState("");
const [installerType, setInstallerType] = useState("");

const osArchitectures = {
Linux: ['x64', 'aarch64', 'ppc64le'],
macOS: ['x64', 'ARM64'],
Windows: ['x64', 'ARM64 (Beta)'],
Linux: ["x64", "aarch64", "ppc64le"],
macOS: ["x64", "ARM64"],
Windows: ["x64", "ARM64 (Beta)"],
};

const installerData = {
Anaconda: {
name: 'Anaconda Distribution',
url: 'https://docs.anaconda.com/anaconda/install/index.html',
defaultChannel: 'defaults',
description: 'A Python/R data science distribution containing conda',
name: "Anaconda Distribution",
url: "https://docs.anaconda.com/anaconda/install/index.html",
defaultChannel: "defaults",
description: "A Python/R data science distribution containing conda",
},
Miniconda: {
name: 'Miniconda',
url: 'https://docs.anaconda.com/miniconda/index.html',
defaultChannel: 'defaults',
description: 'Minimal installation of Anaconda Distribution',
name: "Miniconda",
url: "https://docs.anaconda.com/miniconda/index.html",
defaultChannel: "defaults",
description: "Minimal installation of Anaconda Distribution",
},
Miniforge: {
name: 'Miniforge',
url: 'https://github.com/conda-forge/miniforge',
defaultChannel: 'conda-forge',
description: 'Community-driven minimal installer using conda-forge',
name: "Miniforge",
url: "https://github.com/conda-forge/miniforge",
defaultChannel: "conda-forge",
description: "Community-driven minimal installer using conda-forge",
},
Micromamba: {
name: 'Micromamba',
url: 'https://mamba.readthedocs.io/en/latest/installation.html#micromamba',
defaultChannel: 'conda-forge',
description: 'Standalone fast package manager (no conda required)',
name: "Micromamba",
url: "https://mamba.readthedocs.io/en/latest/installation.html#micromamba",
defaultChannel: "conda-forge",
description: "Standalone fast package manager (no conda required)",
isStandalone: true,
},
Pixi: {
name: 'Pixi',
url: 'https://prefix.dev/docs/pixi/installation',
defaultChannel: 'conda-forge',
description: 'Modern package management solution for Python, C++, and R',
name: "Pixi",
url: "https://prefix.dev/docs/pixi/installation",
defaultChannel: "conda-forge",
description: "Modern package management solution for Python, C++, and R",
isStandalone: true,
},
};
Expand All @@ -67,15 +67,15 @@ export default function CondaInstallerSelector() {
<div className={styles.form_group}>
<div>
<label htmlFor="os-select" className={styles.label}>
{' '}
{" "}
Operating System
</label>
<select
id="os-select"
value={os}
onChange={(e) => {
setOs(e.target.value);
setArch('');
setArch("");
}}
className={styles.select}
>
Expand All @@ -91,7 +91,7 @@ export default function CondaInstallerSelector() {
{os && (
<div>
<label htmlFor="arch-select" className={styles.label}>
{' '}
{" "}
Architecture
</label>
<select
Expand All @@ -112,7 +112,7 @@ export default function CondaInstallerSelector() {

<div>
<label htmlFor="installer-select" className={styles.label}>
{' '}
{" "}
Installer Type
</label>
<select
Expand All @@ -135,28 +135,10 @@ export default function CondaInstallerSelector() {
<div>
<strong>Selected Configuration:</strong>
<ul className={styles.details_list}>
<li>
OS:
{' '}
{os}
</li>
{arch && (
<li>
Architecture:
{' '}
{arch}
</li>
)}
<li>
Installer:
{' '}
{installerDetails.name}
</li>
<li>
Default Channel:
{' '}
{installerDetails.defaultChannel}
</li>
<li>OS: {os}</li>
{arch && <li>Architecture: {arch}</li>}
<li>Installer: {installerDetails.name}</li>
<li>Default Channel: {installerDetails.defaultChannel}</li>
</ul>
</div>

Expand Down

0 comments on commit 25961dd

Please sign in to comment.