Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
29151a5
electron
xiandanin Oct 24, 2019
1f58da3
基本的解析器
xiandanin Oct 25, 2019
15a2bfc
数据格式化
xiandanin Oct 29, 2019
c888c5c
增加排序和页码
xiandanin Oct 30, 2019
3867ca3
设置页面
xiandanin Oct 31, 2019
c958c13
增加日志工具
xiandanin Oct 31, 2019
a0e7bf4
尝试支持代理
xiandanin Nov 1, 2019
274ff6e
完善UI和缓存
xiandanin Nov 2, 2019
c86edd3
关于页面;异常处理;无边框窗口的双击最大化;设置的数据刷新
xiandanin Nov 3, 2019
d4abb2b
优化头部菜单
xiandanin Nov 4, 2019
59c7daf
完善UI
xiandanin Nov 17, 2019
c45d56a
增加二维码功能
xiandanin Nov 17, 2019
4d0a38b
一些优化
xiandanin Nov 18, 2019
1f325df
增加起始页;优化搜索选项
xiandanin Nov 19, 2019
4c29d0f
双向绑定
xiandanin Nov 20, 2019
a31d2e7
增加源站列表的选项;更新规则
xiandanin Nov 24, 2019
0ab372a
完善设置;完善源站列表加载策略
xiandanin Nov 25, 2019
14cd709
更新Logo
xiandanin Nov 26, 2019
f59e7d8
update config
xiandanin Nov 26, 2019
3613f00
Update README.md
xiandanin Nov 26, 2019
e68b073
更新缓存加载策略
xiandanin Nov 27, 2019
fa34e71
更新规则
xiandanin Nov 27, 2019
93a36ce
Update README.md
xiandanin Nov 29, 2019
5278e9b
Update README.md
xiandanin Dec 4, 2019
142dc08
修改安装时修改安装位置
ggymm Dec 22, 2019
bf61f37
Merge pull request #60 from gongym12138/patch-1
xiandanin Dec 22, 2019
80144e6
重新调整配置页面
xiandanin Dec 24, 2019
42f5bea
调整路由
xiandanin Dec 24, 2019
e0851fc
Update README.md
xiandanin Dec 25, 2019
f8b16ce
增加几项新的设置
xiandanin Dec 25, 2019
0af79da
调整路由;缓存库兼容
xiandanin Dec 26, 2019
c91430b
新增了一些配置
xiandanin Dec 27, 2019
77f70dd
增加代理测试;兼容windows菜单;增加右键菜单
xiandanin Dec 28, 2019
179f94f
update rule.json
xiandanin Dec 28, 2019
b636836
增加清除缓存的菜单
xiandanin Dec 28, 2019
69f0eb1
update app.gif
xiandanin Dec 29, 2019
d8d9c64
Merge branch 'electron-web'
xiandanin Dec 29, 2019
0982b11
打开更新检查
xiandanin Dec 29, 2019
34daf1b
Update issue_template.md
xiandanin Dec 29, 2019
5524ebf
修复搜索框无法选中输入文字的问题
xiandanin Dec 30, 2019
93c3134
Update README.md
xiandanin Dec 31, 2019
e1ea242
修正magnet的正则
xiandanin Dec 31, 2019
b324b6f
设置页面增加socks5选项;默认配置增加端口;
xiandanin Jan 3, 2020
1863968
提高时间提取的准确性;增加过滤
xiandanin Jan 6, 2020
d9ddbdd
升级electron;自动分配端口
xiandanin Jan 10, 2020
9105dc6
支持socks5代理
xiandanin Jan 12, 2020
2be9181
支持只关闭窗口不退出程序
xiandanin Jan 12, 2020
fb76b92
更新规则; 更新词条
xiandanin Jan 12, 2020
939c6b0
更新默认设置;更新规则;规则加载失败时使用内置规则
xiandanin Jan 14, 2020
ae91d61
优化UI
xiandanin Jan 14, 2020
32e547e
修复windows没有关闭进程的问题
xiandanin Mar 6, 2020
aff109c
调整详情的文件列表的UI
xiandanin Mar 6, 2020
6fc5868
修正package.json中"build:dir"配置
HolderJiang Jul 12, 2020
c9a2505
Merge pull request #100 from JsonHive/master
xiandanin Jul 12, 2020
a7348ab
更新了一批规则
xiandanin Jul 23, 2020
23f5b40
Update README.md
xiandanin Jul 23, 2020
012a86b
Update README.md
xiandanin Apr 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"comments": false,
"env": {
"main": {
"presets": [
[
"env",
{
"targets": {
"node": 7
}
}
],
"stage-0"
]
},
"renderer": {
"presets": [
[
"env",
{
"modules": false
}
],
"stage-0"
]
},
"web": {
"presets": [
[
"env",
{
"modules": false
}
],
"stage-0"
]
}
},
"plugins": [
"transform-runtime",
"transform-es2015-modules-commonjs",
"transform-async-to-generator"
]
}
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
132 changes: 132 additions & 0 deletions .electron-vue/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
'use strict'

process.env.NODE_ENV = 'production'

const { say } = require('cfonts')
const chalk = require('chalk')
const del = require('del')
const { spawn } = require('child_process')
const webpack = require('webpack')
const Multispinner = require('multispinner')


const mainConfig = require('./webpack.main.config')
const rendererConfig = require('./webpack.renderer.config')
const webConfig = require('./webpack.web.config')

const doneLog = chalk.bgGreen.white(' DONE ') + ' '
const errorLog = chalk.bgRed.white(' ERROR ') + ' '
const okayLog = chalk.bgBlue.white(' OKAY ') + ' '
const isCI = process.env.CI || false

if (process.env.BUILD_TARGET === 'clean') clean()
else if (process.env.BUILD_TARGET === 'web') web()
else build()

function clean () {
del.sync(['build/*', '!build/icons', '!build/icons/icon.*'])
console.log(`\n${doneLog}\n`)
process.exit()
}

function build () {
greeting()

del.sync(['dist/electron/*', '!.gitkeep'])

const tasks = ['main', 'renderer']
const m = new Multispinner(tasks, {
preText: 'building',
postText: 'process'
})

let results = ''

m.on('success', () => {
process.stdout.write('\x1B[2J\x1B[0f')
console.log(`\n\n${results}`)
console.log(`${okayLog}take it away ${chalk.yellow('`electron-builder`')}\n`)
process.exit()
})

pack(mainConfig).then(result => {
results += result + '\n\n'
m.success('main')
}).catch(err => {
m.error('main')
console.log(`\n ${errorLog}failed to build main process`)
console.error(`\n${err}\n`)
process.exit(1)
})

pack(rendererConfig).then(result => {
results += result + '\n\n'
m.success('renderer')
}).catch(err => {
m.error('renderer')
console.log(`\n ${errorLog}failed to build renderer process`)
console.error(`\n${err}\n`)
process.exit(1)
})
}

function pack (config) {
return new Promise((resolve, reject) => {
config.mode = 'production'
webpack(config, (err, stats) => {
if (err) reject(err.stack || err)
else if (stats.hasErrors()) {
let err = ''

stats.toString({
chunks: false,
colors: true
})
.split(/\r?\n/)
.forEach(line => {
err += ` ${line}\n`
})

reject(err)
} else {
resolve(stats.toString({
chunks: false,
colors: true
}))
}
})
})
}

function web () {
del.sync(['dist/web/*', '!.gitkeep'])
webConfig.mode = 'production'
webpack(webConfig, (err, stats) => {
if (err || stats.hasErrors()) console.log(err)

console.log(stats.toString({
chunks: false,
colors: true
}))

process.exit()
})
}

function greeting () {
const cols = process.stdout.columns
let text = ''

if (cols > 85) text = 'lets-build'
else if (cols > 60) text = 'lets-|build'
else text = false

if (text && !isCI) {
say(text, {
colors: ['yellow'],
font: 'simple3d',
space: false
})
} else console.log(chalk.yellow.bold('\n lets-build'))
console.log()
}
40 changes: 40 additions & 0 deletions .electron-vue/dev-client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
const hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')

hotClient.subscribe(event => {
/**
* Reload browser when HTMLWebpackPlugin emits a new index.html
*
* Currently disabled until jantimon/html-webpack-plugin#680 is resolved.
* https://github.com/SimulatedGREG/electron-vue/issues/437
* https://github.com/jantimon/html-webpack-plugin/issues/680
*/
// if (event.action === 'reload') {
// window.location.reload()
// }

/**
* Notify `mainWindow` when `main` process is compiling,
* giving notice for an expected reload of the `electron` process
*/
if (event.action === 'compiling') {
document.body.innerHTML += `
<style>
#dev-client {
background: #4fc08d;
border-radius: 4px;
bottom: 20px;
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
color: #fff;
font-family: 'Source Sans Pro', sans-serif;
left: 20px;
padding: 8px 12px;
position: absolute;
}
</style>

<div id="dev-client">
Compiling Main Process...
</div>
`
}
})
Loading