+
+
+ {(link, index) => (
+
+
+ {link}
+
+
+
+
+ }
+ shape="circle"
+ size="small"
+ type="plain"
+ onClick={() => onPlay(index())}
+ />
+
+
+
+ }
+ shape="circle"
+ size="small"
+ type="plain"
+ onClick={() => onCopy(link)}
+ />
+
+
+
+ )}
+
+
+
+
+
+ >
+ );
+};
+
+export default Result;
diff --git a/src/components/search/index.scss b/src/components/search/index.scss
index 453917f..4f5c06b 100644
--- a/src/components/search/index.scss
+++ b/src/components/search/index.scss
@@ -1,5 +1,4 @@
#search {
- flex: 2;
justify-content: center;
align-items: center;
@@ -8,65 +7,6 @@
}
}
-.parsed-result {
- background-color: rgba($color: #000000, $alpha: 0.2);
- backdrop-filter: blur(5px);
- border-radius: 16px;
- padding: 5px 10px;
- width: 440px;
- min-height: 440px;
- color: #fff;
- box-shadow: var(--alley-box-shadow-secondary);
- margin-top: 20px;
-
- .alley-button {
- --alley-color-button-text: #fff;
-
- &-plain:hover:not(:disabled) {
- color: #fff;
- background: var(--alley-color-primary);
- }
- }
-
- .parsed-result-header {
- flex: 1;
- }
-
- .parsed-links-wrapper {
- flex: 8;
- }
-
- .parsed-links {
- flex: 8;
-
- .link {
- color: var(--alley-color-primary);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- cursor: pointer;
-
- &:hover {
- cursor: pointer;
- }
- }
- }
-
- .parsed-links-note {
- flex: 1;
- }
-}
-
-.parsed-result-dialog {
- .alley-dialog-close-button {
- position: absolute;
- right: 20px;
- top: 20px;
- color: #fff;
- z-index: 99;
- }
-}
-
.bili-cookie-dialog {
textarea {
width: 480px;
diff --git a/src/components/search/index.tsx b/src/components/search/index.tsx
index e478f02..077d81c 100644
--- a/src/components/search/index.tsx
+++ b/src/components/search/index.tsx
@@ -1,7 +1,6 @@
import "./index.scss";
import { children, createSignal, For, useContext } from "solid-js";
import { platforms } from "~/parser";
-import Result from "./result";
import { AiOutlineCheck } from "solid-icons/ai";
import { AppContext } from "~/context";
import BiliCookieEditor from "./bili-cookie";
@@ -16,7 +15,7 @@ import {
} from "~/lazy";
const Search = () => {
- const [_, { setToast }, { config }, { parsedResult, setParsedResult }] =
+ const [_, { setToast }, { config }, { setParsedResult }] =
useContext(AppContext)!;
const [input, setInput] = createSignal("");
@@ -112,8 +111,6 @@ const Search = () => {