Skip to content

Commit

Permalink
Merge 8dbdd4b into dead6d9
Browse files Browse the repository at this point in the history
  • Loading branch information
lanyuanxiaoyao authored Feb 2, 2021
2 parents dead6d9 + 8dbdd4b commit 1a7bab7
Show file tree
Hide file tree
Showing 40 changed files with 1,917 additions and 1,077 deletions.
35 changes: 21 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# SearchX

![GitHub package.json version](https://img.shields.io/github/package-json/v/LanyuanXiaoyao-Studio/SearchX?label=%E4%BB%A3%E7%A0%81%E7%89%88%E6%9C%AC)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/LanyuanXiaoyao-Studio/SearchX?label=%E4%BB%A3%E7%A0%81%E4%BD%93%E7%A7%AF)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/LanyuanXiaoyao-Studio/SearchX?label=%E5%8F%91%E5%B8%83%E7%89%88%E6%9C%AC)
![uTools version](https://img.shields.io/badge/uTools%20%E7%89%88%E6%9C%AC-%3E%3D1.1.3-green)

基于规则的跨平台一站式聚合搜索工具。
<p align="center">
<img src="https://s3.ax1x.com/2021/02/02/ynh3Ks.png" alt="icon">
</p>
<h2 align="center">
SearchX
</h2>
<p align="center">
<img src="https://img.shields.io/github/package-json/v/LanyuanXiaoyao-Studio/SearchX/dev?label=%E5%BC%80%E5%8F%91%E7%89%88%E6%9C%AC&color=orange" alt="GitHub package.json version (branch)">
<img src="https://img.shields.io/github/v/release/LanyuanXiaoyao-Studio/SearchX?label=%E5%8F%91%E5%B8%83%E7%89%88%E6%9C%AC&color=blue" alt="GitHub release (latest by date)">
<img src="https://img.shields.io/github/downloads/LanyuanXiaoyao-Studio/SearchX/total?label=%E4%B8%8B%E8%BD%BD%E6%95%B0" alt="GitHub all releases">
<img src="https://img.shields.io/github/downloads/LanyuanXiaoyao-Studio/SearchX/latest/total?label=%E4%B8%8B%E8%BD%BD%E6%95%B0%40latest" alt="GitHub release (latest by SemVer)">
</p>

---

基于规则的跨平台(Windows | macOS | Linux | uTools | Docker&Web)一站式聚合搜索工具。

通过简单的 JSON 规则定义如何获取一个网站的关键内容,并聚合到一起,方便查询和阅读,这就是这个工具的本意,茫茫网海,不同的 UI 和操作方式挡住了我们畅游的道路,是时候返璞归真了。

Expand All @@ -17,12 +25,11 @@

项目支持平台为

- Windows(仅在 Windows 10 系统测试, 低版本系统随缘)
- macOS (仅在 macOS 10.15 系统测试, 其他版本系统随缘)
- Linux (随缘)
- uTools (90%)
-
docker&web ([使用说明](https://github.com/LanyuanXiaoyao-Studio/SearchX/wiki/%E5%AE%89%E8%A3%85%E8%AF%B4%E6%98%8E#%E7%BD%91%E9%A1%B5%E7%89%88-docker--web))
- Windows (仅在 Windows 10 系统测试, 低版本系统随缘)
- macOS (仅在 macOS 10.15 系统测试, 其他版本系统随缘)
- Linux (随缘)
- uTools
- Docker&Web ([使用说明](https://github.com/LanyuanXiaoyao-Studio/SearchX/wiki/%E5%AE%89%E8%A3%85%E8%AF%B4%E6%98%8E#%E7%BD%91%E9%A1%B5%E7%89%88-docker--web))

> Linux 理论上没有太大问题,因为项目里并没用到与操作系统强绑定的本地库,但由于开发者接触桌面 Linux 平台几乎为0,所以不主动适配,感兴趣的同学可以自行编译打包,Github Release 中发布的 rpm 和 deb 包为工具自动打包生成,并未测试,已知问题: 图标无法显示。
Expand Down
Binary file modified icons/icon.icns
Binary file not shown.
Binary file modified icons/icon.ico
Binary file not shown.
Binary file modified icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion package.json
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]"
Expand All @@ -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"
},
Expand All @@ -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": [
Expand Down
Binary file removed public/favicon.ico
Binary file not shown.
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
http-equiv="X-UA-Compatible"
>
<link
href="<%= BASE_URL %>favicon.ico"
href="<%= BASE_URL %>favicon.png"
rel="icon"
>
<meta
Expand Down
2 changes: 1 addition & 1 deletion public_electron/squirrel/squirrel-core-electron.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public_utools/squirrel/squirr-core-utools.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@ window.put = data => {
}
}

const squirrelLib = require('./squirrel-utools-0.3.137-SNAPSHOT')
const squirrelLib = require('./squirrel-utools-0.3.145-SNAPSHOT')
window.squirrelLib = squirrelLib
163 changes: 0 additions & 163 deletions public_utools/squirrel/squirrel-utools-0.3.137-SNAPSHOT.js

This file was deleted.

163 changes: 163 additions & 0 deletions public_utools/squirrel/squirrel-utools-0.3.145-SNAPSHOT.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/clear.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {batchDeleteFilesSync, listDirExcludeFiles} = require('./utils')
const root = path.join(__dirname, '..')

// 清理 public 文件夹
batchDeleteFilesSync(listDirExcludeFiles(path.join(root, 'public'), ['index.html', 'favicon.ico']))
batchDeleteFilesSync(listDirExcludeFiles(path.join(root, 'public'), ['index.html', 'favicon.png']))

// 清理 dist 文件夹
batchDeleteFilesSync([
Expand Down
10 changes: 5 additions & 5 deletions scripts/pre-build-electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path')
const fs = require('fs')
const {batchCopyFilesSync, batchDeleteFilesSync, listDirExcludeFiles} = require('./utils')

batchDeleteFilesSync(listDirExcludeFiles(path.join(__dirname, '..', 'public'), ['index.html', 'favicon.ico']))
batchDeleteFilesSync(listDirExcludeFiles(path.join(__dirname, '..', 'public'), ['index.html', 'favicon.png']))

let publicPath = path.join(__dirname, '..', 'public')
let publicSourcePath = path.join(__dirname, '..', 'public_electron')
Expand All @@ -13,8 +13,8 @@ if (!fs.existsSync(distPath)) {
}

batchCopyFilesSync([
[path.join(publicSourcePath, 'preload.js'), `${publicPath}/preload.js`],
[path.join(publicSourcePath, 'preload.js'), `${distPath}/preload.js`],
[path.join(publicSourcePath, 'squirrel'), `${publicPath}/squirrel`],
[path.join(publicSourcePath, 'squirrel'), `${distPath}/squirrel`]
[path.join(publicSourcePath, 'preload.js'), `${publicPath}/preload.js`],
[path.join(publicSourcePath, 'preload.js'), `${distPath}/preload.js`],
[path.join(publicSourcePath, 'squirrel'), `${publicPath}/squirrel`],
[path.join(publicSourcePath, 'squirrel'), `${distPath}/squirrel`]
])
2 changes: 1 addition & 1 deletion scripts/pre-build-utools.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require('fs')
const path = require('path')
const {batchCopyFilesSync, batchDeleteFilesSync, listDirExcludeFiles} = require('./utils')

batchDeleteFilesSync(listDirExcludeFiles(path.join(__dirname, '..', 'public'), ['index.html', 'favicon.ico']))
batchDeleteFilesSync(listDirExcludeFiles(path.join(__dirname, '..', 'public'), ['index.html', 'favicon.png']))

let publicPath = path.join(__dirname, '..', 'public')
let publicSourcePath = path.join(__dirname, '..', 'public_utools')
Expand Down
2 changes: 1 addition & 1 deletion scripts/pre-build-web.js
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']))
188 changes: 68 additions & 120 deletions src/App.vue
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">
<template slot="title">
<a-space>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAB3VBMVEUAAADS5P7V5/7Y6f7X6P7g7/7n9f7W6P6oxP/Y6f7S5f7Q4/7P4/7U5v7X6P691P7c7P7a6v6Xtv/W6P7b7P6evP/G3P6Dp//F2/46bv/l9P7q9/6wy/9tlv9Off+xy/5Edv9hjf/K3v7W5/5jjv+rxv5+ov/o9v6sx/++1f5Qf//U5v691P7Q4/6Eqf/F2v7U5v5Sgf96n//F2/6qxf/j8v6/1v5ymf+Qsf/T5f6qxf+hvv+Qsv+tx/5Tgf/Z6v5slf/O4f6zzP6du//s+f7n9f5Acv96n/91nP/X6P7G3P5ciP+60f6jwP/b6/5ul//V5/5Edf/n9P7G3P5ijf96oP/l9P61zv5nkP/H2/6lwv5+o/9tlv+60f6cvP/Z6v5IeP97of/h8P6evP5/o/+lwf55n/9kjv+Ep/+KrP/J3f7T5f62z/+60/+OsP+Gqf/a6/7H3P6yzP+Vtf+Ss/+oxP/X6f7V5/7B2P9/pP+vyf+du/98ov+sx/+Krf9Vg//Q4/6kwf+fvf9slf/f7/54n/9zm/9xmf++1f5lj/9dif9ul/9gjP/i8f7d7f7K3v6gvv+Dp/9Rf//N4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See9ZWvRYxjDaG5r7KQYvQTL6IgUkRCT+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/gFXACzajAAAAVXRSTlMA77+AIDCvEGAwz5+AQFAQcN+fj0AwIO/Pv5+fj4BgUEAg7+/v39/fz8/Pv7+/v7+vr5+Pj4CAcGBgQDAg7+/v79/f39/Pz8+/r6+vn4+Pj3BgYFBQB8HgtwAABGxJREFUWMPt1ld32jAYBmBhKKMtJU2T7r333nvv3cqbbbAxDSZQBxLCaPLH+0mWE2xo6vSipx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ArBYml12ABiEkwDYbEPxCdEx9Yl0e7EE52p/BRBEw4aWoXGZCI3s3nsA+A6A6QL7hS6VxycWXiW2wqJEt7V0+zs92V2Aw756f+LhKMdx0TAd5DsPNLgcDQFTE4TegtZIdOjf2/eLWr85DBwMhaJxtGa4zmu2Xd7dDdOnOOMANQqcjsTQ7xLuDBrP9l67dvU5vdzMMaBJgVtBbkidQd25nGSH71d0Ip1AQbJrIPZGLmh9ChwIBBwciErPB5gFAuxBwXJFlCTDCxR4AHaioJmU9Kw4DFRlAM6nUOBchl1BXwH6chaA62g9+XKczxUqDsC34GDZvR2tMzcvzfS14pwqWcbhizfuoj9JYmoqgf7nb+QnvFx399l2mvsAAAAASUVORK5CYII='
}
},
mounted() {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ async function createWindow() {
width: 900,
height: 700,
center: true,
titleBarStyle: 'hidden',
fullscreenWindowTitle: true,
alwaysOnTop: false,
autoHideMenuBar: true,
Expand Down
Loading

0 comments on commit 1a7bab7

Please sign in to comment.