Skip to content

Commit

Permalink
feat:搜狗搜索引擎
Browse files Browse the repository at this point in the history
  • Loading branch information
kanoqwq committed Oct 30, 2024
1 parent c744d8e commit 4eef2ad
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @Email: [email protected]
* @Date: 2023-04-17 14:47:15
* @Last Modified by: kanoqwq
* @Last Modified time: 2024-10-29 20:49:15
* @Last Modified time: 2024-10-30 20:58:59
* @Description: Description
*/
import { ref, onMounted, watch, computed } from 'vue';
Expand Down Expand Up @@ -59,12 +59,12 @@ const onFocus = () => {
transform: scale(1.1);
}
.main {
position: relative;
position: absolute;
height: 100%;
width: 100%;
overflow: hidden;
.bg {
position: absolute;
position: fixed;
z-index: 1;
left: 0;
bottom: 0;
Expand All @@ -79,7 +79,7 @@ const onFocus = () => {
}
.mask {
position: absolute;
position: fixed;
z-index: 2;
left: 0;
right: 0;
Expand Down
10 changes: 7 additions & 3 deletions src/assets/css/iconfont.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 4031152 */
src: url('iconfont.woff2?t=1730096123849') format('woff2'),
url('iconfont.woff?t=1730096123849') format('woff'),
url('iconfont.ttf?t=1730096123849') format('truetype');
src: url('iconfont.woff2?t=1730292865867') format('woff2'),
url('iconfont.woff?t=1730292865867') format('woff'),
url('iconfont.ttf?t=1730292865867') format('truetype');
}

.iconfont {
Expand All @@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale;
}

.icon-sougou:before {
content: "\e956";
}

.icon-upload:before {
content: "\e75d";
}
Expand Down
Binary file modified src/assets/css/iconfont.ttf
Binary file not shown.
Binary file modified src/assets/css/iconfont.woff
Binary file not shown.
Binary file modified src/assets/css/iconfont.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion src/assets/js/iconfont.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/store/searchEngines/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ export const searchEngines = defineStore("searchEngines", {
url: "https://duckduckgo.com/?t=h_&hps=1&start=1&ia=web&q=",
method: "suggestDuckDuckGo",
},
{
name: "搜狗",
icon: "icon-sougou",
url: !isMobile()
? "https://www.sogou.com/web?query="
: "https://m.sogou.com/web/searchList.jsp?s_from=pcsearch&keyword=",
method: "suggestBaidu",
},
] as Array<SearchEngine>,
//上一次选中的搜索引擎index
lastSelectedEngine: Number(getItem("selectedEngine")) || 0,
Expand Down

0 comments on commit 4eef2ad

Please sign in to comment.