chore: rename to slash

This commit is contained in:
Steven
2023-07-11 23:51:17 +08:00
parent fcd72e1f98
commit b36572c5be
43 changed files with 97 additions and 97 deletions

View File

@ -19,12 +19,12 @@ const AboutDialog: React.FC<Props> = (props: Props) => {
</div>
<div className="max-w-full w-80 sm:w-96">
<p>
<span className="font-medium">Shortify</span> is a bookmarking and short link service that allows you to save and share links
<span className="font-medium">Slash</span> is a bookmarking and short link service that allows you to save and share links
easily.
</p>
<div className="mt-1">
<span className="mr-2">See more in:</span>
<Link variant="plain" href="https://github.com/boojack/shortify">
<Link variant="plain" href="https://github.com/boojack/slash">
GitHub
</Link>
</div>

View File

@ -13,7 +13,7 @@ interface Props {
const GenerateQRCodeDialog: React.FC<Props> = (props: Props) => {
const { shortcut, onClose } = props;
const containerRef = useRef<HTMLDivElement | null>(null);
const shortifyLink = absolutifyLink(`/s/${shortcut.name}`);
const shortcutLink = absolutifyLink(`/s/${shortcut.name}`);
const handleCloseBtnClick = () => {
onClose();
@ -44,7 +44,7 @@ const GenerateQRCodeDialog: React.FC<Props> = (props: Props) => {
</div>
<div>
<div ref={containerRef} className="w-full flex flex-row justify-center items-center mt-2 mb-6">
<QRCodeCanvas value={shortifyLink} size={128} bgColor={"#ffffff"} fgColor={"#000000"} includeMargin={false} level={"L"} />
<QRCodeCanvas value={shortcutLink} size={128} bgColor={"#ffffff"} fgColor={"#000000"} includeMargin={false} level={"L"} />
</div>
<div className="w-full flex flex-row justify-center items-center px-4">
<Button className="w-full" color="neutral" onClick={handleDownloadQRCodeClick}>

View File

@ -24,7 +24,7 @@ const Header: React.FC = () => {
<div className="flex flex-row justify-start items-center shrink mr-2">
<Link to="/" className="text-base font-mono font-medium cursor-pointer flex flex-row justify-start items-center">
<img src="/logo.png" className="w-8 h-auto mr-2" alt="" />
Shortify
Slash
</Link>
</div>
<div className="relative flex-shrink-0">

View File

@ -30,7 +30,7 @@ const ShortcutView = (props: Props) => {
const [showQRCodeDialog, setShowQRCodeDialog] = useState<boolean>(false);
const [showAnalyticsDialog, setShowAnalyticsDialog] = useState<boolean>(false);
const havePermission = currentUser.role === "ADMIN" || shortcut.creatorId === currentUser.id;
const shortifyLink = absolutifyLink(`/s/${shortcut.name}`);
const shortcutLink = absolutifyLink(`/s/${shortcut.name}`);
useEffect(() => {
faviconStore.getOrFetchUrlFavicon(shortcut.link).then((url) => {
@ -41,7 +41,7 @@ const ShortcutView = (props: Props) => {
}, [shortcut.link]);
const handleCopyButtonClick = () => {
copy(shortifyLink);
copy(shortcutLink);
toast.success("Shortcut link copied to clipboard.");
};
@ -71,7 +71,7 @@ const ShortcutView = (props: Props) => {
<a
className="flex flex-row px-1 mr-1 justify-start items-center cursor-pointer rounded-md hover:bg-gray-100 hover:shadow"
target="_blank"
href={shortifyLink}
href={shortcutLink}
>
<span className="text-gray-400">s/</span>
{shortcut.name}

View File

@ -3,15 +3,15 @@
"visibility": {
"private": {
"self": "Private",
"description": "Only you can view this shortcut"
"description": "Only you can access"
},
"workspace": {
"self": "Workspace",
"description": "Visible to Workspace Members"
"description": "Workspace members can access"
},
"public": {
"self": "Public",
"description": "Visible to Everyone on the Internet"
"description": "Available to Everyone on the Internet"
}
}
}

View File

@ -65,7 +65,7 @@ const SignIn: React.FC = () => {
<div className="w-full py-4 grow flex flex-col justify-center items-center">
<div className="flex flex-col justify-start items-center w-full gap-y-2 mb-4">
<img src="/logo.png" className="w-16 h-auto" alt="logo" />
<span className="text-2xl font-medium font-mono opacity-80">Shortify</span>
<span className="text-2xl font-medium font-mono opacity-80">Slash</span>
</div>
<form className="w-full" onSubmit={handleSigninBtnClick}>
<div className={`flex flex-col justify-start items-start w-full ${actionBtnLoadingState.isLoading ? "opacity-80" : ""}`}>
@ -75,7 +75,7 @@ const SignIn: React.FC = () => {
className="w-full py-3"
type="email"
value={email}
placeholder="steven@shortify.com"
placeholder="steven@slash.com"
onChange={handleEmailInputChanged}
/>
</div>

View File

@ -77,7 +77,7 @@ const SignUp: React.FC = () => {
<div className="w-full py-4 grow flex flex-col justify-center items-center">
<div className="flex flex-col justify-start items-center w-full gap-y-2 mb-4">
<img src="/logo.png" className="w-16 h-auto" alt="logo" />
<span className="text-2xl font-medium font-mono opacity-80">Shortify</span>
<span className="text-2xl font-medium font-mono opacity-80">Slash</span>
</div>
<p className="w-full text-center mb-4 text-2xl">Create your account</p>
<form className="w-full" onSubmit={handleSignupBtnClick}>
@ -88,7 +88,7 @@ const SignUp: React.FC = () => {
className="w-full py-3"
type="email"
value={email}
placeholder="steven@shortify.com"
placeholder="steven@slash.com"
onChange={handleEmailInputChanged}
/>
</div>