mirror of
https://github.com/Sevichecc/raycast-akkoma-extension.git
synced 2025-04-30 14:49:29 +08:00
docs: update icon and command name
This commit is contained in:
parent
d6ff99bc59
commit
b55c15c123
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
2074
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -12,14 +12,14 @@
|
|||
"commands": [
|
||||
{
|
||||
"name": "simple-status",
|
||||
"title": "Simple post",
|
||||
"description": "Publish simple text status with text",
|
||||
"title": "Add Simple Status",
|
||||
"description": "Publish simple text status",
|
||||
"mode": "view"
|
||||
},
|
||||
{
|
||||
"name": "detail-status",
|
||||
"title": "Publish with image or files",
|
||||
"description": "Publish status with image or files",
|
||||
"name": "status",
|
||||
"title": "Add Status",
|
||||
"description": "Publish status with attenchments, or scheduled status",
|
||||
"mode": "view"
|
||||
}
|
||||
],
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
}
|
Loading…
Reference in a new issue