docs: update icon and command name

This commit is contained in:
sevichecc 2023-04-16 13:39:49 +08:00
parent d6ff99bc59
commit b55c15c123
Signed by untrusted user who does not match committer: SevicheCC
GPG key ID: C577000000000000
4 changed files with 2079 additions and 23 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 23 KiB

2074
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -12,14 +12,14 @@
"commands": [ "commands": [
{ {
"name": "simple-status", "name": "simple-status",
"title": "Simple post", "title": "Add Simple Status",
"description": "Publish simple text status with text", "description": "Publish simple text status",
"mode": "view" "mode": "view"
}, },
{ {
"name": "detail-status", "name": "status",
"title": "Publish with image or files", "title": "Add Status",
"description": "Publish status with image or files", "description": "Publish status with attenchments, or scheduled status",
"mode": "view" "mode": "view"
} }
], ],

View file

@ -1,18 +0,0 @@
import { Form, LaunchProps } from "@raycast/api";
import VisibilityDropdown from "./components/VisibilityDropdown";
import SimpleCommand from "./simple-status";
import { Status } from "./types";
import { useState } from "react";
export default function DetailCommand(props: LaunchProps<{ draftValues: Partial<Status> }>) {
const [files, setFiles] = useState<string[]>([]);
return (
<SimpleCommand {...props}>
<Form.FilePicker id="files" value={files} onChange={setFiles} />
{files.length === 1 &&<Form.TextArea id="description" title="Alt text" />}
<Form.DatePicker id="scheduled_at" title="Scheduled Time"/>
<VisibilityDropdown />
</SimpleCommand>
);
}