Skip to content

Commit 190e0cb

Browse files
author
hsl947
committed
Init Project
1 parent b202dcf commit 190e0cb

29 files changed

+1023
-55
lines changed

.DS_Store

8 KB
Binary file not shown.

.editorconfig

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
charset = utf-8
12+
13+
[*.md]
14+
trim_trailing_whitespace = false

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
components/hw-editor/**

.eslintrc.js

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
node: true
6+
},
7+
parserOptions: {
8+
parser: 'babel-eslint'
9+
},
10+
extends: [
11+
'@nuxtjs',
12+
'plugin:nuxt/recommended'
13+
],
14+
plugins: [
15+
16+
],
17+
// add your custom rules here
18+
rules: {
19+
'nuxt/no-cjs-in-config': 'off',
20+
'generator-star-spacing': 'off',
21+
'no-mixed-operators': 0,
22+
'vue/max-attributes-per-line': [
23+
2,
24+
{
25+
'singleline': 5,
26+
'multiline': {
27+
'max': 1,
28+
'allowFirstLine': false
29+
}
30+
}
31+
],
32+
'vue/attribute-hyphenation': 0,
33+
'vue/html-self-closing': 0,
34+
'vue/component-name-in-template-casing': 0,
35+
'vue/html-closing-bracket-spacing': 0,
36+
'vue/singleline-html-element-content-newline': 0,
37+
'vue/no-unused-components': 0,
38+
'vue/multiline-html-element-content-newline': 0,
39+
'vue/no-use-v-if-with-v-for': 0,
40+
'vue/html-closing-bracket-newline': 0,
41+
'vue/no-parsing-error': 0,
42+
'vue/comment-directive': 'off',
43+
'no-console': 0,
44+
'no-tabs': 0,
45+
'quotes': [
46+
2,
47+
'single',
48+
{
49+
'avoidEscape': true,
50+
'allowTemplateLiterals': true
51+
}
52+
],
53+
'no-delete-var': 2,
54+
'prefer-const': [
55+
2,
56+
{
57+
'ignoreReadBeforeAssign': false
58+
}
59+
]
60+
}
61+
}

.github/FUNDING.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/ISSUE_TEMPLATE/bug_report.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Bug report(报告问题)
3+
about: Create a report to help us improve
4+
---
5+
<!--
6+
注意:为更好的解决你的问题,请参考模板提供完整信息,准确描述问题,信息不全的 issue 将被关闭。
7+
8+
Note: In order to better solve your problem, please refer to the template to provide complete information, accurately describe the problem, and the incomplete information issue will be closed.
9+
-->
10+
11+
12+
## Bug report(问题描述)
13+
14+
#### Steps to reproduce(问题复现步骤)
15+
<!--
16+
1. [xxx]
17+
2. [xxx]
18+
3. [xxxx]
19+
-->
20+
21+
#### Screenshot or Gif(截图或动态图)
22+
23+
24+
#### Other relevant information(格外信息)
25+
- Your OS:
26+
- Your broswer version:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Feature Request(新功能建议)
3+
about: Suggest an idea for this project
4+
---
5+
6+
## Feature request(新功能建议)
7+

.github/ISSUE_TEMPLATE/question.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Question(提问)
3+
about: Asking questions about use
4+
---
5+
6+
## Question(提问)
7+
8+
<!--
9+
提问之前,请确定你已经过自己的努力,尝试解决过这个问题。
10+
若是代码相关问题,请不要只截图,请提供在线 demo,以便节约彼此的时间。
11+
12+
Before asking a question, please make sure that you have tried your best to solve this problem.
13+
If it's a code-related issue, please don't just take screenshots. Please provide an online demo to save each other's time.
14+
-->
15+
16+
#### Steps to reproduce(问题复现步骤)
17+
<!--
18+
1. [xxx]
19+
2. [xxx]
20+
3. [xxxx]
21+
-->
22+
23+
#### Screenshot or Gif(截图或动态图)
24+
25+
26+
#### Other relevant information(格外信息)
27+
- Your OS:
28+
- Your broswer version:

.gitignore

+17-32
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
13
# Logs
24
logs
35
*.log
46
npm-debug.log*
57
yarn-debug.log*
68
yarn-error.log*
7-
lerna-debug.log*
8-
9-
# Diagnostic reports (https://nodejs.org/api/report.html)
10-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
119

1210
# Runtime data
1311
pids
@@ -20,12 +18,11 @@ lib-cov
2018

2119
# Coverage directory used by tools like istanbul
2220
coverage
23-
*.lcov
2421

2522
# nyc test coverage
2623
.nyc_output
2724

28-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
25+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
2926
.grunt
3027

3128
# Bower dependency directory (https://bower.io/)
@@ -38,27 +35,18 @@ bower_components
3835
build/Release
3936

4037
# Dependency directories
41-
node_modules/
38+
/node_modules
4239
jspm_packages/
4340

4441
# TypeScript v1 declaration files
4542
typings/
4643

47-
# TypeScript cache
48-
*.tsbuildinfo
49-
5044
# Optional npm cache directory
5145
.npm
5246

5347
# Optional eslint cache
5448
.eslintcache
5549

56-
# Microbundle cache
57-
.rpt2_cache/
58-
.rts2_cache_cjs/
59-
.rts2_cache_es/
60-
.rts2_cache_umd/
61-
6250
# Optional REPL history
6351
.node_repl_history
6452

@@ -70,35 +58,32 @@ typings/
7058

7159
# dotenv environment variables file
7260
.env
73-
.env.test
7461

7562
# parcel-bundler cache (https://parceljs.org/)
7663
.cache
7764

78-
# Next.js build output
65+
# next.js build output
7966
.next
8067

81-
# Nuxt.js build / generate output
68+
# nuxt.js build output
8269
.nuxt
83-
dist
8470

85-
# Gatsby files
86-
.cache/
87-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88-
# https://nextjs.org/blog/next-9-1#public-directory-support
89-
# public
71+
# Nuxt generate
72+
dist
9073

9174
# vuepress build output
9275
.vuepress/dist
9376

9477
# Serverless directories
95-
.serverless/
78+
.serverless
79+
80+
# IDE
81+
.idea
9682

97-
# FuseBox cache
98-
.fusebox/
83+
# Service worker
84+
sw.*
9985

100-
# DynamoDB Local files
101-
.dynamodb/
86+
*.tar.gz
87+
*.json
10288

103-
# TernJS port file
104-
.tern-port
89+
.vscode

LICENSE

-21
This file was deleted.

README.md

+64-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,64 @@
1-
# html2md
2-
helloworld社区开发的轻量强大的html一键转md工具,支持多平台一键转换.
1+
<h1 align="center">🎉 Hello-Html2md</h1>
2+
3+
<div >
4+
5+
[helloworld社区](https://www.helloworld.net) 开发的轻量强大的html一键转md工具💪🏻,纯前端开发,不需要后端接口(<small> Node是我们前端的</small>😗!),支持多平台,一键将文章链接转换为md,方便大家收藏和保存好文章(最关键的功能大家都懂的🤪)。
6+
7+
[预览地址](https://www.helloworld.net/html2md) 👈🏻
8+
9+
</div>
10+
<br />
11+
12+
## 技术栈
13+
14+
- [vue](https://cn.vuejs.org/) 前端三剑客之一,主张最少,具有高度灵活性的渐进式框架
15+
- [nuxt](https://zh.nuxtjs.org/) 通过利用 Vue.js 和 Node.js最佳实践来构建高性能应用程序
16+
- [express](https://www.expressjs.com.cn/) 基于 Node.js 平台,快速、开放、极简的 Web 开发框架
17+
- [element-ui](https://element.eleme.cn/#/zh-CN) 宇宙第一 Vue 第三方组件库,有不服?
18+
- [js-dom](https://github.com/jsdom/jsdom) 一款可在 Node 环境下模拟浏览器的 API 的库
19+
- [turndown](https://github.com/domchristie/turndown) 使用 JavaScript 将 HTML 转换为 Markdown
20+
- [axios](http://www.axios-js.com/) 易用、简洁且高效的 http库,支持浏览器和 Node 环境。
21+
- [mavon-editor](https://github.com/hinesboy/mavonEditor) 一款基于 Vue 的 markdown 编辑器,支持所见即所得
22+
- [sass](https://www.sass.hk/) 强大的 Css 预处理器之一
23+
## 使用
24+
25+
### 下载
26+
```bash
27+
git clone [email protected]:helloworld-Co/html2md.git
28+
cd ./html2md
29+
```
30+
### 安装
31+
```bash
32+
npm install
33+
or
34+
yarn install
35+
```
36+
### 启动
37+
```bash
38+
npm run dev
39+
or
40+
yarn dev
41+
```
42+
43+
## 使用备注
44+
- **防盗链**:由于各大网站的图片基本都会有防盗链机制,转换出来的 md 里的图片会无法正常预览,这个不慌 😳,把 md 内容复制到 [helloworld社区](https://www.helloworld.net) 的写作文本框中就能正常显示了👌🏻。
45+
- **微信文章**:微信文章内容格式差异性比较大,不能保证 💯% 好使,如果一篇不能解决,那就换下一篇吧😏。
46+
47+
## 技术交流群 / 官方公众号
48+
<img src="./wx-group.png" width = "200" alt="官方微信群" />
49+
<img src="./wx.png" width = "200" alt="官方公众号" />
50+
51+
## 支持环境
52+
53+
现代浏览器及 IE11。
54+
55+
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera |
56+
| --------- | --------- | --------- | --------- | --------- |
57+
| IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions
58+
59+
## 参与贡献
60+
61+
我们非常欢迎你的贡献,你可以通过以下方式和我们一起共建 😃
62+
63+
- 通过 [Issue](https://github.com/helloworld-Co/html2md/issues) 报告 bug。
64+
- 提交 [Pull Request](https://github.com/helloworld-Co/html2md/pulls) 一起改进。

assets/.DS_Store

6 KB
Binary file not shown.

assets/css/element-variables.scss

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* 改变主题色变量 */
2+
$--color-primary: #00A6F4;
3+
4+
/* 改变 icon 字体路径变量,必需 */
5+
$--font-path: '~element-ui/lib/theme-chalk/fonts';
6+
7+
@import "~element-ui/packages/theme-chalk/src/index";

0 commit comments

Comments
 (0)