mirror of
https://github.com/Sevichecc/raycast-akkoma-extension.git
synced 2025-04-30 14:49:29 +08:00
refactor: add utils files
This commit is contained in:
parent
b3140f1a0e
commit
d5860b63a0
3 changed files with 8 additions and 8 deletions
|
@ -1,9 +1,9 @@
|
|||
import { useEffect, useState } from "react";
|
||||
import { Action, ActionPanel, List, Toast, showToast, Cache } from "@raycast/api";
|
||||
import { BookmarkedStatus, AkkomaError } from "./types";
|
||||
import { BookmarkedStatus, AkkomaError } from "./utils/types";
|
||||
import { NodeHtmlMarkdown } from "node-html-markdown";
|
||||
import apiServer from "./api";
|
||||
import { authorize } from "./oauth";
|
||||
import apiServer from "./utils/api";
|
||||
import { authorize } from "./utils/oauth";
|
||||
|
||||
const cache = new Cache();
|
||||
const nhm = new NodeHtmlMarkdown();
|
||||
|
|
|
@ -12,9 +12,9 @@ import {
|
|||
LaunchProps,
|
||||
LocalStorage,
|
||||
} from "@raycast/api";
|
||||
import apiServer from "./api";
|
||||
import { AkkomaError, StatusResponse, Preference, Status } from "./types";
|
||||
import { authorize } from "./oauth";
|
||||
import apiServer from "./utils/api";
|
||||
import { AkkomaError, StatusResponse, Preference, Status } from "./utils/types";
|
||||
import { authorize } from "./utils/oauth";
|
||||
|
||||
import VisibilityDropdown from "./components/VisibilityDropdown";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Form, LaunchProps } from "@raycast/api";
|
||||
import { Status } from "./types";
|
||||
import { Status } from "./utils/types";
|
||||
import { useState } from "react";
|
||||
|
||||
import VisibilityDropdown from "./components/VisibilityDropdown";
|
||||
|
@ -10,7 +10,7 @@ export default function DetailCommand(props: LaunchProps<{ draftValues: Partial<
|
|||
|
||||
return (
|
||||
<SimpleCommand {...props}>
|
||||
<Form.FilePicker id="files" value={files} onChange={setFiles} />
|
||||
<Form.FilePicker id="files" value={files} onChange={setFiles} title="Attechments"/>
|
||||
{files.length === 1 && <Form.TextArea id="description" title="Alt text" />}
|
||||
<Form.DatePicker id="scheduled_at" title="Scheduled Time" />
|
||||
<VisibilityDropdown />
|
||||
|
|
Loading…
Reference in a new issue