parent
623cadf981
commit
452f29bcb3
18 changed files with 56 additions and 56 deletions
|
@ -1,12 +1,12 @@
|
||||||
|
import type * as firefish from "firefish-js";
|
||||||
|
import { defineAsyncComponent } from "vue";
|
||||||
|
import { i18n } from "./i18n";
|
||||||
import { apiUrl } from "@/config";
|
import { apiUrl } from "@/config";
|
||||||
import { alert, api, popup, popupMenu, waiting } from "@/os";
|
import { alert, api, popup, popupMenu, waiting } from "@/os";
|
||||||
import { $i } from "@/reactiveAccount";
|
import { $i } from "@/reactiveAccount";
|
||||||
import icon from "@/scripts/icon";
|
import icon from "@/scripts/icon";
|
||||||
import { del, get, set } from "@/scripts/idb-proxy";
|
import { del, get, set } from "@/scripts/idb-proxy";
|
||||||
import { reloadChannel, unisonReload } from "@/scripts/unison-reload";
|
import { reloadChannel, unisonReload } from "@/scripts/unison-reload";
|
||||||
import type * as firefish from "firefish-js";
|
|
||||||
import { defineAsyncComponent } from "vue";
|
|
||||||
import { i18n } from "./i18n";
|
|
||||||
|
|
||||||
// TODO: 他のタブと永続化されたstateを同期
|
// TODO: 他のタブと永続化されたstateを同期
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import { markRaw } from "vue";
|
||||||
import { locale } from "@/config";
|
import { locale } from "@/config";
|
||||||
import { I18n } from "@/scripts/i18n";
|
import { I18n } from "@/scripts/i18n";
|
||||||
import { markRaw } from "vue";
|
|
||||||
|
|
||||||
export const i18n = markRaw(new I18n(locale));
|
export const i18n = markRaw(new I18n(locale));
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ if (accounts) {
|
||||||
}
|
}
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
import { set } from "@/scripts/idb-proxy";
|
|
||||||
import { compareVersions } from "compare-versions";
|
import { compareVersions } from "compare-versions";
|
||||||
import {
|
import {
|
||||||
computed,
|
computed,
|
||||||
|
@ -32,6 +31,7 @@ import {
|
||||||
version as vueVersion,
|
version as vueVersion,
|
||||||
watch,
|
watch,
|
||||||
} from "vue";
|
} from "vue";
|
||||||
|
import { set } from "@/scripts/idb-proxy";
|
||||||
|
|
||||||
import { login, refreshAccount, signout, updateAccount } from "@/account";
|
import { login, refreshAccount, signout, updateAccount } from "@/account";
|
||||||
import components from "@/components";
|
import components from "@/components";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { computed, reactive } from "vue";
|
||||||
import { ui } from "@/config";
|
import { ui } from "@/config";
|
||||||
import { i18n } from "@/i18n";
|
import { i18n } from "@/i18n";
|
||||||
import * as os from "@/os";
|
import * as os from "@/os";
|
||||||
|
@ -5,7 +6,6 @@ import { $i } from "@/reactiveAccount";
|
||||||
import icon from "@/scripts/icon";
|
import icon from "@/scripts/icon";
|
||||||
import { search } from "@/scripts/search";
|
import { search } from "@/scripts/search";
|
||||||
import { unisonReload } from "@/scripts/unison-reload";
|
import { unisonReload } from "@/scripts/unison-reload";
|
||||||
import { computed, reactive } from "vue";
|
|
||||||
|
|
||||||
export const navbarItemDef = reactive({
|
export const navbarItemDef = reactive({
|
||||||
notifications: {
|
notifications: {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
// NIRAX --- A lightweight router
|
// NIRAX --- A lightweight router
|
||||||
|
|
||||||
import { pleaseLogin } from "@/scripts/please-login";
|
|
||||||
import { safeURIDecode } from "@/scripts/safe-uri-decode";
|
|
||||||
import { EventEmitter } from "eventemitter3";
|
import { EventEmitter } from "eventemitter3";
|
||||||
import type { Component, ShallowRef } from "vue";
|
import type { Component, ShallowRef } from "vue";
|
||||||
import { shallowRef } from "vue";
|
import { shallowRef } from "vue";
|
||||||
|
import { safeURIDecode } from "@/scripts/safe-uri-decode";
|
||||||
|
import { pleaseLogin } from "@/scripts/please-login";
|
||||||
|
|
||||||
interface RouteDef {
|
interface RouteDef {
|
||||||
path: string;
|
path: string;
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
// TODO: なんでもかんでもos.tsに突っ込むのやめたいのでよしなに分割する
|
// TODO: なんでもかんでもos.tsに突っ込むのやめたいのでよしなに分割する
|
||||||
|
|
||||||
import MkDialog from "@/components/MkDialog.vue";
|
|
||||||
import MkPostFormDialog from "@/components/MkPostFormDialog.vue";
|
|
||||||
import MkToast from "@/components/MkToast.vue";
|
|
||||||
import MkWaitingDialog from "@/components/MkWaitingDialog.vue";
|
|
||||||
import { url, apiUrl } from "@/config";
|
|
||||||
import { $i } from "@/reactiveAccount";
|
|
||||||
import type { MenuItem } from "@/types/menu";
|
|
||||||
import { EventEmitter } from "eventemitter3";
|
import { EventEmitter } from "eventemitter3";
|
||||||
import * as firefish from "firefish-js";
|
import * as firefish from "firefish-js";
|
||||||
import insertTextAtCursor from "insert-text-at-cursor";
|
import insertTextAtCursor from "insert-text-at-cursor";
|
||||||
import type { Component, Ref } from "vue";
|
import type { Component, Ref } from "vue";
|
||||||
import { defineAsyncComponent, markRaw, ref } from "vue";
|
import { defineAsyncComponent, markRaw, ref } from "vue";
|
||||||
import { i18n } from "./i18n";
|
import { i18n } from "./i18n";
|
||||||
|
import MkDialog from "@/components/MkDialog.vue";
|
||||||
|
import MkPostFormDialog from "@/components/MkPostFormDialog.vue";
|
||||||
|
import MkToast from "@/components/MkToast.vue";
|
||||||
|
import MkWaitingDialog from "@/components/MkWaitingDialog.vue";
|
||||||
|
import { apiUrl, url } from "@/config";
|
||||||
|
import { $i } from "@/reactiveAccount";
|
||||||
|
import type { MenuItem } from "@/types/menu";
|
||||||
|
|
||||||
export const pendingApiRequestsCount = ref(0);
|
export const pendingApiRequestsCount = ref(0);
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
// PIZZAX --- A lightweight store
|
// PIZZAX --- A lightweight store
|
||||||
|
|
||||||
import { $i } from "@/reactiveAccount";
|
|
||||||
import type { Ref } from "vue";
|
import type { Ref } from "vue";
|
||||||
import { onUnmounted, ref, watch } from "vue";
|
import { onUnmounted, ref, watch } from "vue";
|
||||||
import { api } from "./os";
|
import { api } from "./os";
|
||||||
import { stream } from "./stream";
|
import { stream } from "./stream";
|
||||||
|
import { $i } from "@/reactiveAccount";
|
||||||
|
|
||||||
type StateDef = Record<
|
type StateDef = Record<
|
||||||
string,
|
string,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { Interpreter, Parser, utils, values } from "@syuilo/aiscript";
|
||||||
import { inputText } from "@/os";
|
import { inputText } from "@/os";
|
||||||
import { createAiScriptEnv } from "@/scripts/aiscript/api";
|
import { createAiScriptEnv } from "@/scripts/aiscript/api";
|
||||||
import {
|
import {
|
||||||
|
@ -7,7 +8,6 @@ import {
|
||||||
postFormActions,
|
postFormActions,
|
||||||
userActions,
|
userActions,
|
||||||
} from "@/store";
|
} from "@/store";
|
||||||
import { Interpreter, Parser, utils, values } from "@syuilo/aiscript";
|
|
||||||
|
|
||||||
const parser = new Parser();
|
const parser = new Parser();
|
||||||
const pluginContexts = new Map<string, Interpreter>();
|
const pluginContexts = new Map<string, Interpreter>();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { Account } from "@/account";
|
|
||||||
import { reactive } from "vue";
|
import { reactive } from "vue";
|
||||||
|
import type { Account } from "@/account";
|
||||||
|
|
||||||
const accountData = localStorage.getItem("account");
|
const accountData = localStorage.getItem("account");
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
|
import type { AsyncComponentLoader } from "vue";
|
||||||
|
import { defineAsyncComponent, inject } from "vue";
|
||||||
import { iAmModerator } from "@/account";
|
import { iAmModerator } from "@/account";
|
||||||
import { Router } from "@/nirax";
|
import { Router } from "@/nirax";
|
||||||
import MkError from "@/pages/_error_.vue";
|
import MkError from "@/pages/_error_.vue";
|
||||||
import MkLoading from "@/pages/_loading_.vue";
|
import MkLoading from "@/pages/_loading_.vue";
|
||||||
import { $i } from "@/reactiveAccount";
|
import { $i } from "@/reactiveAccount";
|
||||||
import type { AsyncComponentLoader } from "vue";
|
|
||||||
import { defineAsyncComponent, inject } from "vue";
|
|
||||||
// import { api } from "@/os";
|
// import { api } from "@/os";
|
||||||
|
|
||||||
// function getGuestTimelineStatus() {
|
// function getGuestTimelineStatus() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { url } from "@/config";
|
|
||||||
import { $i } from "@/reactiveAccount";
|
|
||||||
import * as firefish from "firefish-js";
|
import * as firefish from "firefish-js";
|
||||||
import { markRaw } from "vue";
|
import { markRaw } from "vue";
|
||||||
|
import { url } from "@/config";
|
||||||
|
import { $i } from "@/reactiveAccount";
|
||||||
|
|
||||||
export const stream = markRaw(
|
export const stream = markRaw(
|
||||||
new firefish.Stream(
|
new firefish.Stream(
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import type { Theme } from "./scripts/theme";
|
||||||
import { api } from "@/os";
|
import { api } from "@/os";
|
||||||
import { $i } from "@/reactiveAccount";
|
import { $i } from "@/reactiveAccount";
|
||||||
import type { Theme } from "./scripts/theme";
|
|
||||||
|
|
||||||
const lsCacheKey = $i ? `themes:${$i.id}` : "";
|
const lsCacheKey = $i ? `themes:${$i.id}` : "";
|
||||||
|
|
||||||
|
|
|
@ -11,30 +11,30 @@ import {
|
||||||
DetailedInstanceMetadata,
|
DetailedInstanceMetadata,
|
||||||
DriveFile,
|
DriveFile,
|
||||||
DriveFolder,
|
DriveFolder,
|
||||||
FollowRequest,
|
|
||||||
Following,
|
Following,
|
||||||
FollowingFolloweePopulated,
|
FollowingFolloweePopulated,
|
||||||
FollowingFollowerPopulated,
|
FollowingFollowerPopulated,
|
||||||
|
FollowRequest,
|
||||||
GalleryPost,
|
GalleryPost,
|
||||||
Instance,
|
Instance,
|
||||||
InstanceMetadata,
|
InstanceMetadata,
|
||||||
LiteInstanceMetadata,
|
LiteInstanceMetadata,
|
||||||
MeDetailed,
|
MeDetailed,
|
||||||
MessagingMessage,
|
|
||||||
Note,
|
Note,
|
||||||
NoteFavorite,
|
NoteFavorite,
|
||||||
NoteReaction,
|
|
||||||
Notification,
|
|
||||||
OriginType,
|
OriginType,
|
||||||
Page,
|
Page,
|
||||||
ServerInfo,
|
ServerInfo,
|
||||||
Signin,
|
|
||||||
Stats,
|
Stats,
|
||||||
User,
|
User,
|
||||||
UserDetailed,
|
UserDetailed,
|
||||||
UserGroup,
|
UserGroup,
|
||||||
UserList,
|
UserList,
|
||||||
UserSorting,
|
UserSorting,
|
||||||
|
Notification,
|
||||||
|
NoteReaction,
|
||||||
|
Signin,
|
||||||
|
MessagingMessage,
|
||||||
} from "./entities";
|
} from "./entities";
|
||||||
|
|
||||||
type TODO = Record<string, any> | null;
|
type TODO = Record<string, any> | null;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { Acct } from "./acct";
|
|
||||||
import { Endpoints } from "./api.types";
|
import { Endpoints } from "./api.types";
|
||||||
import * as consts from "./consts";
|
|
||||||
import Stream, { Connection } from "./streaming";
|
import Stream, { Connection } from "./streaming";
|
||||||
import { Channels } from "./streaming.types";
|
import { Channels } from "./streaming.types";
|
||||||
|
import { Acct } from "./acct";
|
||||||
|
import * as consts from "./consts";
|
||||||
|
|
||||||
export { Endpoints, Stream, Connection as ChannelConnection, Channels, Acct };
|
export { Endpoints, Stream, Connection as ChannelConnection, Channels, Acct };
|
||||||
|
|
||||||
|
|
|
@ -27,9 +27,9 @@ export function urlQuery(
|
||||||
const params = Object.entries(obj)
|
const params = Object.entries(obj)
|
||||||
.filter(([, v]) => (Array.isArray(v) ? v.length : v !== undefined))
|
.filter(([, v]) => (Array.isArray(v) ? v.length : v !== undefined))
|
||||||
.reduce(
|
.reduce(
|
||||||
// biome-ignore lint/suspicious/noAssignInExpressions: <Used for key assigning>
|
// rome-ignore lint/suspicious/noAssignInExpressions: <Used for key assigning>
|
||||||
// biome-ignore lint/style/noNonNullAssertion: <>
|
// rome-ignore lint/style/noNonNullAssertion: <>
|
||||||
// biome-ignore lint/style/noCommaOperator: <>
|
// rome-ignore lint/style/noCommaOperator: <>
|
||||||
(a, [k, v]) => ((a[k] = v!), a),
|
(a, [k, v]) => ((a[k] = v!), a),
|
||||||
{} as Record<string, string | number | boolean>,
|
{} as Record<string, string | number | boolean>,
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
import { RequestCanceledError, isCancel } from "./cancel";
|
import Response from "./response";
|
||||||
import Converter from "./converter";
|
import OAuth from "./oauth";
|
||||||
import Entity from "./entity";
|
import { isCancel, RequestCanceledError } from "./cancel";
|
||||||
import FilterContext from "./filter_context";
|
import { ProxyConfig } from "./proxy_config";
|
||||||
import generator, {
|
import generator, {
|
||||||
|
detector,
|
||||||
MegalodonInterface,
|
MegalodonInterface,
|
||||||
WebSocketInterface,
|
WebSocketInterface,
|
||||||
detector,
|
|
||||||
} from "./megalodon";
|
} from "./megalodon";
|
||||||
import Misskey from "./misskey";
|
import Misskey from "./misskey";
|
||||||
|
import Entity from "./entity";
|
||||||
import NotificationType from "./notification";
|
import NotificationType from "./notification";
|
||||||
import OAuth from "./oauth";
|
import FilterContext from "./filter_context";
|
||||||
import { ProxyConfig } from "./proxy_config";
|
import Converter from "./converter";
|
||||||
import Response from "./response";
|
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Response,
|
Response,
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import axios, { AxiosRequestConfig } from "axios";
|
import Response from "./response";
|
||||||
import { DEFAULT_UA } from "./default";
|
|
||||||
import Entity from "./entity";
|
|
||||||
import Misskey from "./misskey";
|
|
||||||
import OAuth from "./oauth";
|
import OAuth from "./oauth";
|
||||||
import proxyAgent, { ProxyConfig } from "./proxy_config";
|
import proxyAgent, { ProxyConfig } from "./proxy_config";
|
||||||
import Response from "./response";
|
import Entity from "./entity";
|
||||||
|
import axios, { AxiosRequestConfig } from "axios";
|
||||||
|
import Misskey from "./misskey";
|
||||||
|
import { DEFAULT_UA } from "./default";
|
||||||
|
|
||||||
export interface WebSocketInterface {
|
export interface WebSocketInterface {
|
||||||
start(): void;
|
start(): void;
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
import AsyncLock from "async-lock";
|
|
||||||
import FormData from "form-data";
|
import FormData from "form-data";
|
||||||
|
import AsyncLock from "async-lock";
|
||||||
|
|
||||||
import fs from "node:fs";
|
import MisskeyAPI from "./misskey/api_client";
|
||||||
import MegalodonEntity from "@/entity";
|
|
||||||
import { DEFAULT_UA } from "./default";
|
import { DEFAULT_UA } from "./default";
|
||||||
|
import { ProxyConfig } from "./proxy_config";
|
||||||
|
import OAuth from "./oauth";
|
||||||
|
import Response from "./response";
|
||||||
import Entity from "./entity";
|
import Entity from "./entity";
|
||||||
import {
|
import {
|
||||||
ArgumentError,
|
|
||||||
MegalodonInterface,
|
MegalodonInterface,
|
||||||
NoImplementedError,
|
|
||||||
UnexpectedError,
|
|
||||||
WebSocketInterface,
|
WebSocketInterface,
|
||||||
|
NoImplementedError,
|
||||||
|
ArgumentError,
|
||||||
|
UnexpectedError,
|
||||||
} from "./megalodon";
|
} from "./megalodon";
|
||||||
import MisskeyAPI from "./misskey/api_client";
|
import MegalodonEntity from "@/entity";
|
||||||
|
import fs from "node:fs";
|
||||||
import MisskeyNotificationType from "./misskey/notification";
|
import MisskeyNotificationType from "./misskey/notification";
|
||||||
import OAuth from "./oauth";
|
|
||||||
import { ProxyConfig } from "./proxy_config";
|
|
||||||
import Response from "./response";
|
|
||||||
|
|
||||||
type AccountCache = {
|
type AccountCache = {
|
||||||
locks: AsyncLock;
|
locks: AsyncLock;
|
||||||
|
|
Loading…
Reference in a new issue