mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-03 03:11:40 +00:00
restructure files onto electron-vite boilerplate
This commit is contained in:
parent
91ce2cd8a1
commit
1cf587bc8f
457 changed files with 9927 additions and 11705 deletions
|
|
@ -2,13 +2,14 @@ import { ActionIcon, CopyButton, Group } from '@mantine/core';
|
|||
import isElectron from 'is-electron';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { RiCheckFill, RiClipboardFill, RiExternalLinkFill } from 'react-icons/ri';
|
||||
import { Tooltip, toast } from '/@/renderer/components';
|
||||
import styled from 'styled-components';
|
||||
|
||||
const util = isElectron() ? window.electron.utils : null;
|
||||
import { toast, Tooltip } from '/@/renderer/components';
|
||||
|
||||
const util = isElectron() ? window.api.utils : null;
|
||||
|
||||
export type SongPathProps = {
|
||||
path: string | null;
|
||||
path: null | string;
|
||||
};
|
||||
|
||||
const PathText = styled.div`
|
||||
|
|
@ -28,11 +29,13 @@ export const SongPath = ({ path }: SongPathProps) => {
|
|||
>
|
||||
{({ copied, copy }) => (
|
||||
<Tooltip
|
||||
withinPortal
|
||||
label={t(
|
||||
copied ? 'page.itemDetail.copiedPath' : 'page.itemDetail.copyPath',
|
||||
{ postProcess: 'sentenceCase' },
|
||||
{
|
||||
postProcess: 'sentenceCase',
|
||||
},
|
||||
)}
|
||||
withinPortal
|
||||
>
|
||||
<ActionIcon onClick={copy}>
|
||||
{copied ? <RiCheckFill /> : <RiClipboardFill />}
|
||||
|
|
@ -42,8 +45,8 @@ export const SongPath = ({ path }: SongPathProps) => {
|
|||
</CopyButton>
|
||||
{util && (
|
||||
<Tooltip
|
||||
withinPortal
|
||||
label={t('page.itemDetail.openFile', { postProcess: 'sentenceCase' })}
|
||||
withinPortal
|
||||
>
|
||||
<ActionIcon>
|
||||
<RiExternalLinkFill
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue