Files
zipline/src/components/pages/settings/parts/SettingsGenerators/index.tsx
dicedtomato ae7b4dacf1 feat: remove next.js in favor of client-side only (#857)
* feat: start removing next.js

* feat: working ssr + dev + prod env

* feat: all functionality added + client/ -> src/client/

* fix: build process

* fix: caching on pnpm action

* fix: ignores + cache action

* fix: docker + exdev error

* fix: generate prisma before types

* fix: remove node@20 from actions

* feat: dynamic import optimizations + titled pages

* fix: removed unused vars

* feat: small ui fixes and improvements

* feat: small ui improvements

* fix: linting error

* fix: regex when adding domains
2025-08-14 12:13:54 -07:00

95 lines
3.2 KiB
TypeScript
Executable File

import { Anchor, Code, Group, Paper, Text, Title, Image as MantineImage } from '@mantine/core';
import { IconPrompt } from '@tabler/icons-react';
import GeneratorButton from './GeneratorButton';
import { Link } from 'react-router-dom';
export default function SettingsGenerators() {
return (
<Paper withBorder p='sm'>
<Title order={2}>Generate Uploaders</Title>
<Text size='sm' c='dimmed' mt={3}>
Generate scripts for upload tools. The Flameshot and Shell Script generators are supported on only
Linux and macOS.
</Text>
<Group mt='xs'>
<GeneratorButton
name='ShareX'
icon={
<img width={24} height={24} alt='sharex logo' src='https://getsharex.com/img/ShareX_Logo.svg' />
}
/>
<GeneratorButton
name='Flameshot'
icon={
<img width={24} height={24} alt='flameshot logo' src='https://flameshot.org/flameshot-icon.svg' />
}
desc={
<>
To use this script, you need{' '}
<Anchor component={Link} to='https://flameshot.org'>
Flameshot
</Anchor>
,{' '}
<Anchor component={Link} to='https://curl.se/'>
<Code>curl</Code>
</Anchor>
,{' '}
<Anchor component={Link} to='https://github.com/stedolan/jq'>
<Code>jq</Code>
</Anchor>
, and{' '}
<Anchor component={Link} to='https://github.com/astrand/xclip'>
<Code>xclip</Code> (linux only)
</Anchor>{' '}
installed. This script is intended for use on Linux and macOS only (see options below).
</>
}
/>
<GeneratorButton
name='ishare'
icon={
<MantineImage
width={24}
height={24}
alt='ishare logo'
src='https://isharemac.app/ishare/Util/Assets.xcassets/AppIcon.appiconset/AppIcon-128.png'
/>
}
desc={
<>
This generator requires <Anchor href='https://isharemac.app/'>ishare</Anchor> to be installed on
macOS. This uploader is intended for use on macOS only.
</>
}
/>
<GeneratorButton
name='Shell Script'
icon={<IconPrompt size={24} />}
desc={
<>
To use this script, you need <Code>bash</Code>,{' '}
<Anchor component={Link} to='https://curl.se/'>
<Code>curl</Code>
</Anchor>
,{' '}
<Anchor component={Link} to='https://darwinsys.com/file/'>
<Code>file</Code>
</Anchor>
,{' '}
<Anchor component={Link} to='https://github.com/stedolan/jq'>
<Code>jq</Code>
</Anchor>
, and{' '}
<Anchor component={Link} to='https://github.com/astrand/xclip'>
<Code>xclip</Code> (linux only)
</Anchor>{' '}
installed. This script is intended for use on Linux and macOS only (see options below).
</>
}
/>
</Group>
</Paper>
);
}