From 52b1d686f885be8e3f1c52e89b099029378d5d16 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:07:07 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/components/Installer/index.jsx | 97 +++++++++++++++++------------- src/pages/index.jsx | 16 ++--- 2 files changed, 62 insertions(+), 51 deletions(-) diff --git a/src/components/Installer/index.jsx b/src/components/Installer/index.jsx index 9a162d28..e98d4591 100644 --- a/src/components/Installer/index.jsx +++ b/src/components/Installer/index.jsx @@ -1,54 +1,54 @@ -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', - url: 'https://docs.anaconda.com/free/anaconda/install/index.html', - defaultChannel: 'defaults', - description: 'Complete distribution for scientific Python development', + name: "Anaconda", + url: "https://docs.anaconda.com/free/anaconda/install/index.html", + defaultChannel: "defaults", + description: "Complete distribution for scientific Python development", }, Miniconda: { - name: 'Miniconda', - url: 'https://docs.conda.io/en/latest/miniconda.html', - defaultChannel: 'defaults', - description: 'Minimal conda installer with Python', + name: "Miniconda", + url: "https://docs.conda.io/en/latest/miniconda.html", + defaultChannel: "defaults", + description: "Minimal conda installer with Python", }, 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", }, Mambaforge: { - name: 'Mambaforge', - url: 'https://github.com/conda-forge/miniforge#mambaforge', - defaultChannel: 'conda-forge', - description: 'Miniforge variant with mamba as default package manager', + name: "Mambaforge", + url: "https://github.com/conda-forge/miniforge#mambaforge", + defaultChannel: "conda-forge", + description: "Miniforge variant with mamba as default package manager", }, 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, }, }; @@ -73,7 +73,7 @@ export default function CondaInstallerSelector() {