Skip to content

Commit cc0add7

Browse files
committed
checkin
0 parents  commit cc0add7

File tree

183 files changed

+115564
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+115564
-0
lines changed

.babelrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"presets": ["es2015", "stage-3"],
3+
"plugins": [
4+
[
5+
"transform-runtime",
6+
{
7+
"regenerator": true
8+
}
9+
]
10+
]
11+
}

.env.example

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
WECHAT_ENV=production

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea/
2+
node_modules/
3+
build/
4+
.env
5+
.DS_Store
6+
*.iml

.prettierignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build
2+
bundle
3+
logo
4+
tests
5+
6+
# Ignore all HTML files:
7+
*.html
8+
*.min.js

.prettierrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": true
6+
}

CONTRIBUTING.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 开发
2+
``` shell
3+
npm run start
4+
```
5+
6+
浏览器打开 `chrome://extensions/` 拖入 `./build` 文件夹
7+
8+
9+
# 代码
10+
```
11+
./src/drivers/ 所有同步器
12+
./src/background.js 发布流程控制
13+
```

LICENSE

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2019 fun <https://github.com/lljxx1> and
4+
Wechatsync Contributors <https://github.com/wechatsync>.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# 文章同步助手
2+
3+
![](https://img.shields.io/github/v/release/lljxx1/WechatSync.svg)
4+
![](https://img.shields.io/github/last-commit/lljxx1/WechatSync)
5+
![](https://img.shields.io/github/issues/lljxx1/WechatSync)
6+
7+
还在为一次编辑,N 个平台需多次排版上传脑壳疼吧?
8+
为广大自媒体朋友撸了个提高生产力的小工具、可以做到的在多个内容平台无缝同步。
9+
10+
## 预览
11+
12+
#### 公众号文章同步
13+
14+
![](snapshots/wechatsync.png)
15+
16+
#### 正文提取
17+
18+
![](snapshots/raw.png)
19+
20+
![](snapshots/reader.png)
21+
22+
![](snapshots/sample.png)
23+
24+
#### 同步详情
25+
26+
![](snapshots/detail.png)
27+
28+
#### Markdown 编辑器
29+
30+
![](snapshots/markdown.png)
31+
32+
#### 多渠道选择
33+
34+
![](snapshots/pub.png)
35+
36+
## 安装方式
37+
38+
#### Chrome 商店
39+
40+
[传送门](https://chrome.google.com/webstore/detail/%E5%BE%AE%E4%BF%A1%E5%90%8C%E6%AD%A5%E5%8A%A9%E6%89%8B/hchobocdmclopcbnibdnoafilagadion)
41+
42+
#### 开发者模式安装
43+
44+
1. [下载](http://wpics.oss-cn-shanghai.aliyuncs.com/WechatSync.zip?date=0625) 并解压
45+
2. 打开 chrome://extensions
46+
3. 右上角“开启开发者模式”
47+
4. 拖入解压后的文件夹到浏览器插件页
48+
49+
## 发布渠道
50+
51+
#### HTML
52+
53+
- [x] WordPress
54+
- [x] Typecho
55+
- [x] 知乎
56+
- [x] 简书
57+
- [x] 微博
58+
- [x] 头条
59+
60+
#### Markdown
61+
62+
- [x] CSDN
63+
- [x] 掘金
64+
- [x] Segmentfault
65+
- [x] Cnblog
66+
67+
## 特性
68+
69+
- [x] 公众号文章
70+
- [x] Markdown 编辑器
71+
- [x] 网页正文提取(基于 Safari 阅读模式) 可实现多平台互同步
72+
73+
### Markdown 编辑器
74+
75+
- [x] 图片上传图床
76+
77+
## 背景
78+
79+
早在几年前,同事就在为 WordPress 和微信公众号之间不同排版而烦恼,每次都是两边重复排版一遍。
80+
2016 年的时候给他写了个爬虫,基于搜狗+打码平台+抓取内容,自动上传图片到 WordPress 博客。
81+
最后他只需要专注于公众号这边的内容发布即可!
82+
83+
但是最近这个方案有点问题了,修起来也麻烦。
84+
85+
于是便有了这个基于浏览器插件的方案,所有信息都存储在本地。
86+
不同于简媒、OpenWrite 之类基于云端的一键发布方案,免去了 Cookie 可能被盗用的安全风险。
87+
相比 artipub 需要自己部署安装的方案,也要方便很多
88+
89+
https://www.v2ex.com/t/573320
90+
91+
## 更新日志
92+
93+
### 0.0.9
94+
95+
- 今日头条同步失败更明确的提示
96+
- 修复今日头条不因为要手机号验证不能直接发布的问题,改为同步过去是草稿
97+
- 解决了微信如果有外链及视频会无法同步到今日头条情况
98+
99+
### 0.0.6
100+
101+
- 新增 CSDN、掘金、博客园、思否等多个渠道
102+
- 新增 Markdown 编辑器
103+
104+
### 0.0.5 - 2019.06.25
105+
106+
- 修复 typecho 同步 bug
107+
- 修复简书同步 bug
108+
- 修复代码块同步 bug
109+
110+
### 0.0.4 - 2019.06.16
111+
112+
- 修复头条 bug、微信标题被遮挡
113+
- 修复代码块到知乎不换行的问题
114+
- 新增 typecho
115+
- 新增头条号
116+
117+
### 0.0.3 - 2019.06.12
118+
119+
- 新增简书,知乎
120+
121+
### 0.0.2 - 2019.06.09
122+
123+
- 新增同步详情

bundle/driver.code.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)