Skip to content

Commit

Permalink
remove no need code
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Sep 3, 2024
1 parent 2b317f6 commit 236736d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion app/api/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) {
console.log("[Auth] hashed access code:", hashedCode);
console.log("[User IP] ", getIP(req));
console.log("[Time] ", new Date().toLocaleString());
console.log("[ModelProvider] ", modelProvider);

if (serverConfig.needCode && !serverConfig.codes.has(hashedCode) && !apiKey) {
return {
Expand Down
10 changes: 1 addition & 9 deletions app/components/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,26 @@ import { ErrorBoundary } from "./error";
import styles from "./mask.module.scss";
import pluginStyles from "./plugin.module.scss";

import DownloadIcon from "../icons/download.svg";
import EditIcon from "../icons/edit.svg";
import AddIcon from "../icons/add.svg";
import CloseIcon from "../icons/close.svg";
import DeleteIcon from "../icons/delete.svg";
import EyeIcon from "../icons/eye.svg";
import CopyIcon from "../icons/copy.svg";
import ConfirmIcon from "../icons/confirm.svg";
import ReloadIcon from "../icons/reload.svg";

import { Plugin, usePluginStore, FunctionToolService } from "../store/plugin";
import {
Input,
PasswordInput,
List,
ListItem,
Modal,
Popover,
Select,
showConfirm,
showToast,
} from "./ui-lib";
import { downloadAs } from "../utils";
import Locale from "../locales";
import { useNavigate } from "react-router-dom";
import { useEffect, useState, useCallback } from "react";
import { Path } from "../constant";
import { nanoid } from "nanoid";
import { useEffect, useState } from "react";

export function PluginPage() {
const navigate = useNavigate();
Expand Down

0 comments on commit 236736d

Please sign in to comment.