-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
1,917 additions
and
1,077 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "searchx", | ||
"productName": "SearchX", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"author": { | ||
"name": "lanyuanxiaoyao", | ||
"email": "[email protected]" | ||
|
@@ -28,6 +28,7 @@ | |
"superagent": "^6.1.0", | ||
"vue": "^2.6.12", | ||
"vue-masonry-css": "^1.0.3", | ||
"vue-monaco": "^1.2.2", | ||
"vue-router": "^3.4.6", | ||
"vuex": "^3.1.3" | ||
}, | ||
|
@@ -42,10 +43,14 @@ | |
"electron": "^11.0.4", | ||
"electron-devtools-installer": "^3.1.0", | ||
"mangle-js-webpack-plugin": "^0.1.4", | ||
"monaco-editor-webpack-plugin": "^1.9.1", | ||
"stylelint": "^13.9.0", | ||
"stylelint-plugin-stylus": "^0.10.0", | ||
"stylus": "^0.54.8", | ||
"stylus-loader": "^3.0.2", | ||
"terser-webpack-plugin": "^4.2.3", | ||
"vue-cli-plugin-electron-builder": "~2.0.0-rc.5", | ||
"vue-cli-plugin-pug": "^2.0.0", | ||
"vue-template-compiler": "^2.6.11" | ||
}, | ||
"browserslist": [ | ||
|
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
163 changes: 0 additions & 163 deletions
163
public_utools/squirrel/squirrel-utools-0.3.137-SNAPSHOT.js
This file was deleted.
Oops, something went wrong.
163 changes: 163 additions & 0 deletions
163
public_utools/squirrel/squirrel-utools-0.3.145-SNAPSHOT.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const path = require('path') | ||
const {batchDeleteFilesSync, listDirExcludeFiles} = require('./utils') | ||
|
||
batchDeleteFilesSync(listDirExcludeFiles(path.join(__dirname, '..', 'public'), ['index.html', 'favicon.ico'])) | ||
batchDeleteFilesSync(listDirExcludeFiles(path.join(__dirname, '..', 'public'), ['index.html', 'favicon.png'])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,130 +1,74 @@ | ||
<template> | ||
<div class="app"> | ||
<a-layout style="height: 100%"> | ||
<a-layout-header class="app-title"> | ||
<a-page-header :sub-title="slogan"> | ||
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IoIHBbcyCi5tefQp8cT2xbbcHuIoZjmpIxJc20vVPh1aMGH1tCGMEPFYQcj7HbB6voX16/VHfwz79ty7AzUzL2goa+wfw1XYdpvbaz6hhyOb4cWFtTgMHYeatSKVtXgaF4FAcdxnN8FbQy5o8zRXu5WAk2poiiUcqcD31nmebEVDjMkE1dNnaDBbaWQGhFGtDJV2gDqXJ1IzQDrkCzyjKUUVVWYHHEnTdNIqUoXtFgWsYbroRvJUzzWTGeaKo5TQLIgCAZWwrB9iEi8keuH97FRXdbEqUKBm85RqpmCgAStFjqCACGO/xEOnIrr2E3ocuTY681+JYFGUAvslnhJsmL5fFPtupiXKJIsKR7ZCn2bFGwgjJ7CFxwUKVou5+dzeWZE9DGvSOIXADYVKoE70O+buiVOEXGEMc6f4bxMRpSi3g5YpSKE8WWAiz6SLCJZvIgVlZsVJ0pEjA6OD8ATjJB2G6BHyXHYlE1cpkF3Z9aWJrwgkNkB9SkBOe0AUMtRP0/zPq30uO6zbZei/GDmBnRig9Hqb9QERuUqqJvhbjZjp4PARggJjLZDlVAzV6VpP/z0sml7XE9mN8KDMq2FeTrDNY/qGgAaTw56Y7YdTY5v655tCsM/GkLVo3d9NJ6ovjCxrz7UCAscTm1o3fvmqkh4PTlWCmqwB2ApGwRWmXkxWIp0See9ZWvRYxjDaG5r7KQYvQTL6IgUkRCT+Hg2ESM3G2E5389ZYjAScck4uw9W5tu7ra/27urog8X8BSrNG+C+tnIYAAAAAElFTkSuQmCC" /> | ||
{{ title }} | ||
</a-space> | ||
</template> | ||
<template slot="tags"> | ||
<a-tag color="gray"> | ||
{{ version }} | ||
</a-tag> | ||
</template> | ||
<template slot="extra"> | ||
<a-space | ||
:size="'middle'" | ||
class="more" | ||
> | ||
<a-tooltip title="开源"> | ||
<a-icon | ||
type="github" | ||
@click="openUrl('https://github.com/LanyuanXiaoyao-Studio/SearchX')" | ||
/> | ||
</a-tooltip> | ||
<a-tooltip | ||
title="邮箱" | ||
@click="openUrl('mailto:[email protected]?subject=%E6%84%8F%E8%A7%81%E5%8F%8D%E9%A6%88&body=(%E8%AF%B7%E8%AF%A6%E7%BB%86%E6%8F%8F%E8%BF%B0%E4%BD%A0%E9%81%87%E5%88%B0%E7%9A%84%E9%97%AE%E9%A2%98)')" | ||
> | ||
<a-icon | ||
theme="filled" | ||
type="mail" | ||
/> | ||
</a-tooltip> | ||
<a-tooltip | ||
title="反馈" | ||
@click="openUrl('https://github.com/LanyuanXiaoyao-Studio/SearchX/issues')" | ||
> | ||
<a-icon | ||
theme="filled" | ||
type="question-circle" | ||
/> | ||
</a-tooltip> | ||
</a-space> | ||
</template> | ||
</a-page-header> | ||
</a-layout-header> | ||
<a-layout :style="{marginTop: '64px'}"> | ||
<a-layout-sider> | ||
<a-menu | ||
class="sider-menu" | ||
mode="inline" | ||
> | ||
<a-menu-item> | ||
<router-link :to="'/'"> | ||
<a-icon type="home"/> | ||
首页 | ||
</router-link> | ||
</a-menu-item> | ||
<a-menu-item> | ||
<router-link :to="'/settings'"> | ||
<a-icon type="setting"/> | ||
设置 | ||
</router-link> | ||
</a-menu-item> | ||
<a-menu-item disabled> | ||
<router-link :to="'/merge-search'"> | ||
<a-icon type="search"/> | ||
大搜索 | ||
<span style="background-color: #ff000095;border-radius: 10px;color: white;padding: 1px 6px 1px 6px;margin: 0 0 0 2px; font-size: 0.6rem">开发中</span> | ||
</router-link> | ||
</a-menu-item> | ||
<a-menu-divider/> | ||
<a-menu-item-group | ||
v-for="(category, key) in categories" | ||
:key="key" | ||
> | ||
<span slot="title"> | ||
{{ key }} | ||
</span> | ||
<a-menu-item | ||
v-for="site in category" | ||
:key="site.code" | ||
> | ||
<router-link :to="`/site/${site.code}`"> | ||
<img | ||
:alt="site.name" | ||
:src="site.icon" | ||
class="site-icon" | ||
/> | ||
{{ site.name }} | ||
</router-link> | ||
</a-menu-item> | ||
</a-menu-item-group> | ||
</a-menu> | ||
</a-layout-sider> | ||
<a-layout | ||
id="view-content-layout" | ||
class="content" | ||
> | ||
<a-back-top :target="layoutDom"/> | ||
<a-layout-content> | ||
<a-config-provider :locale="zh"> | ||
<transition> | ||
<router-view :key="generateViewKey()"/> | ||
</transition> | ||
</a-config-provider> | ||
</a-layout-content> | ||
</a-layout> | ||
</a-layout> | ||
</a-layout> | ||
</div> | ||
<template lang="pug"> | ||
.app | ||
a-layout(style={height: '100%'}) | ||
a-layout-header.app-title | ||
a-page-header(:sub-title="slogan") | ||
template(slot="title") | ||
router-link(style={color: 'black'} to="/") | ||
a-space(size="small") | ||
img(alt="title-icon" :src="icon" style={width: '32px'}) | ||
| {{ title }} | ||
template(slot="tags") | ||
a-tag(color="gray") {{ version }} | ||
template(slot="extra") | ||
a-space.more(:size="'middle'") | ||
a-tooltip(title="开源") | ||
a-icon(type="github" @click="openUrl('https://github.com/LanyuanXiaoyao-Studio/SearchX')") | ||
a-tooltip(title="邮箱") | ||
a-icon(theme="filled" type="mail" @click="openUrl('mailto:[email protected]?subject=%E6%84%8F%E8%A7%81%E5%8F%8D%E9%A6%88&body=(%E8%AF%B7%E8%AF%A6%E7%BB%86%E6%8F%8F%E8%BF%B0%E4%BD%A0%E9%81%87%E5%88%B0%E7%9A%84%E9%97%AE%E9%A2%98)')") | ||
a-tooltip(title="反馈") | ||
a-icon(theme="filled" type="question-circle" @click="openUrl('https://github.com/LanyuanXiaoyao-Studio/SearchX/issues')") | ||
a-layout(style={marginTop: '64px'}) | ||
a-layout-sider | ||
a-menu.sider-menu(:selectedKeys="defaultSelectedKeys" mode="inline") | ||
a-menu-item(key="/") | ||
router-link(to="/") | ||
a-icon(type="home") | ||
| 首页 | ||
a-menu-item(key="/settings") | ||
router-link(to="/settings") | ||
a-icon(type="setting") | ||
| 设置 | ||
a-menu-item(key="/subscription") | ||
router-link(to="/subscription") | ||
a-icon(type="cloud") | ||
| 订阅 | ||
a-menu-item(key="/merge-search" disabled) | ||
router-link(to="/merge-search") | ||
a-icon(type="search") | ||
| 搜索 | ||
DevelopmentTag | ||
a-menu-divider | ||
a-menu-item-group(v-for="(category, key) in categories" :key="key") | ||
span(slot="title") {{ key }} | ||
a-menu-item(v-for="site in category" :key="`/site/${site.code}`") | ||
router-link(:to="`/site/${site.code}`") | ||
img.site-icon(:alt="site.name" :src="site.icon") | ||
| {{ site.name }} | ||
a-layout#view-content-layout.content | ||
a-back-top(:target="layoutDom") | ||
a-layout-content | ||
a-config-provider(:locale="zh") | ||
transition | ||
router-view(:key="generateViewKey()") | ||
</template> | ||
|
||
<script> | ||
import squirrel from '@/squirrel' | ||
import zh from 'ant-design-vue/es/locale/zh_CN' | ||
import {mapGetters} from 'vuex' | ||
import {isEmpty, isNil} from 'licia'; | ||
import DevelopmentTag from '@/components/DevelopmentTag' | ||
export default { | ||
name: 'App', | ||
components: { | ||
DevelopmentTag, | ||
}, | ||
data() { | ||
return { | ||
zh, | ||
icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABjFBMVEUAAAD/49j/4tn/49n/39b/5Nn/49n/3tz/4dn/Zzf/4tj/49j/Rwn/49f/4db/hl3/49j/49n/vaf/4tn/VR//sZX/f1X/sJX/Yiz/1sf/mHb/aTf/08T/WSH/uaH/TA//yrb/TA//u6X/c0P/aDX/y7n/mHX/UBT/z77/lnP/TBD/z77/w6//uqT/eEv/Rwr/rJH/hVr/spf/x7P/tZz/xK//gFX/qY3/jmf/Sw//hVv/imL/n3//zb3/h17/fVL/UBX/283/por/fVL/azn/2sz/rJD/flL/mnn/2s3/zLr/u6b/Rgj/rpL/m3v/h17/RAb/18n/ek3/pYn/aTb/49n/k23/w6//v6n/s5n/nXz/uaH/mXj/ajj/lnH/qIr/iWH/vKX/j2j/flP/dEX/VBv/0cL/q47/x7P/ooL/XCT/jGX/waz/e0//ZC//zbz/yrj/Sg7/2sz/c0P/Xyr/3tL/g1n/tp7/Yi7/28//UBT/1sj/WSH/1cX/z77/bz//y7n/4NT/r5T/gFXACzajAAAAVXRSTlM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QDoeIAmyAwAhy4rlAmK6bS6mHeD7PrLqGgzAyBMYn55KW0AAuVLR2ddvthcXTAaUDpG2Oj3ohUb2A2xLq4DC6nEOgFkXgIMpwoB5bmRDgDQEXVblypIwj91kCaAx4ARpK+2BBTPRmwk8PqcIUMo5wCz0gSOAMWZTio6t37YHgIVSmwFwsu0iPbAxN3omb8Sj2YSeArBYml12ABiEkwDYbEPxCdEx9Yl0e7EE52p/BRBEw4aWoXGZCI3s3nsA+A6A6QL7hS6VxycWXiW2wqJEt7V0+zs92V2Aw756f+LhKMdx0TAd5DsPNLgcDQFTE4TegtZIdOjf2/eLWr85DBwMhaJxtGa4zmu2Xd7dDdOnOOMANQqcjsTQ7xLuDBrP9l67dvU5vdzMMaBJgVtBbkidQd25nGSH71d0Ip1AQbJrIPZGLmh9ChwIBBwciErPB5gFAuxBwXJFlCTDCxR4AHaioJmU9Kw4DFRlAM6nUOBchl1BXwH6chaA62g9+XKczxUqDsC34GDZvR2tMzcvzfS14pwqWcbhizfuoj9JYmoqgf7nb+QnvFx399l2mvsAAAAASUVORK5CYII=' | ||
} | ||
}, | ||
mounted() { | ||
|
@@ -163,11 +107,15 @@ export default { | |
}, | ||
computed: { | ||
...mapGetters([ | ||
'currentUrl', | ||
'mode', | ||
'version', | ||
'sites', | ||
'categories', | ||
]), | ||
defaultSelectedKeys() { | ||
return [this.currentUrl] | ||
}, | ||
title() { | ||
let title = process.env.VUE_APP_TITLE | ||
return isEmpty(title) ? 'SearchX' : title | ||
|
@@ -204,24 +152,24 @@ export default { | |
-webkit-app-region: drag | ||
background-color white | ||
box-shadow: 0 0 5px #666666 | ||
position fixed | ||
z-index 1 | ||
width 100% | ||
height 64px | ||
padding 0 | ||
position fixed | ||
width 100% | ||
z-index 1 | ||
.more | ||
color gray | ||
font-size 1.3rem | ||
cursor pointer | ||
font-size 1.3rem | ||
.sider-menu | ||
overflow-y auto | ||
height 100% | ||
overflow-y auto | ||
.site-icon | ||
margin-right 10px | ||
width 20px | ||
margin-right 5px | ||
.content | ||
padding 15px | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.