Skip to content

Commit a169b9a

Browse files
committedMar 2, 2020
chore: add zhihu zhaunlan data
1 parent 683810b commit a169b9a

File tree

5 files changed

+139
-2
lines changed

5 files changed

+139
-2
lines changed
 

‎README.md

+4
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@
2626
```
2727
- 添加名称映射(`/config/keywordMapping.js`)
2828
`/config/keywordMapping.js`,此处存放所有子目录的名称映射,需要添加
29+
2930
eg:
31+
```js
3032
'wechat-doc': '小程序文档'
33+
```
34+
3135
- 路由(`/config/routesNameMapping.js`)
3236
如果只是更新原有内容, 那就不必在乎路由这一环节,如果是想新增一级路由(新建了json文件),则需要添加对应路由名称到`/config/routesNameMapping.js` 添加对应路由,以及侧边栏显示名字,此处用二维数组 `['javascript', 'Javascript']`
3337

‎config/keywordMapping.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,7 @@ export const keywordMapping = {
3939
'code-named': ' 变量命名',
4040
'only-tool': '实用工具',
4141
'online-coding': '在线编程',
42-
'build-tool': '构建工具'
42+
'build-tool': '构建工具',
43+
'zhihu-frontend': '前端',
44+
'zhihu-data': '数据'
4345
}

‎config/routesNameMapping.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ export const routesNameMapping = [
22
['tech-blog', '技术博客'],
33
['tech-team', '社区团队'],
44
['framework', '前端框架'],
5+
['zhihu-zhuanlan', '知乎专栏'],
56
['build-tool', '构建工具'],
67
['online-tools', '在线工具'],
78
['mini-program', '小程序'],

‎jsondata/data/zhihu-zhuanlan.json

+128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
{
2+
"zhihu-zhuanlan": {
3+
"zhihu-frontend": [
4+
{
5+
"name": "不止前端",
6+
"link": "https://zhuanlan.zhihu.com/morethanfrontend",
7+
"description": "More than Frontend"
8+
},
9+
{
10+
"name": "FE FAME",
11+
"link": "https://zhuanlan.zhihu.com/fefame",
12+
"description": "记录互联网前端领域工作的点滴"
13+
},
14+
{
15+
"name": "前端新能源",
16+
"link": "https://zhuanlan.zhihu.com/ne-fe",
17+
"description": "分享前端有深度的新思想和新方法"
18+
},
19+
{
20+
"name": "Web开发实践",
21+
"link": "https://zhuanlan.zhihu.com/webqianduan",
22+
"description": "关注前端开发核心技术"
23+
},
24+
{
25+
"name": "腾讯技术",
26+
"link": "https://zhuanlan.zhihu.com/tencent-TEG",
27+
"description": "跟腾讯技术相关的文章都在这里了"
28+
},
29+
{
30+
"name": "面向工资编程",
31+
"link": "https://zhuanlan.zhihu.com/auxten",
32+
"description": "面向工资编程"
33+
},
34+
{
35+
"name": "花呗借呗前端团队",
36+
"link": "https://zhuanlan.zhihu.com/richlab",
37+
"description": "来自蚂蚁金服花呗借呗的全能型前端团队"
38+
},
39+
{
40+
"name": "前端之家",
41+
"link": "https://zhuanlan.zhihu.com/xiaowenzi",
42+
"description": "来自腾讯的高级前端开发工程,为你分享前端案例与感悟"
43+
},
44+
{
45+
"name": "前端算法",
46+
"link": "https://zhuanlan.zhihu.com/c_1144189254912610304",
47+
"description": "使用javascript演绎算法之美"
48+
},
49+
{
50+
"name": "LeetCode刷题记录",
51+
"link": "https://zhuanlan.zhihu.com/leetcode-lyd",
52+
"description": "LeetCode刷题记录"
53+
},
54+
{
55+
"name": "美团技术博客",
56+
"link": "https://zhuanlan.zhihu.com/meituantech",
57+
"description": "美团技术博客"
58+
},
59+
{
60+
"name": "前端随想录",
61+
"link": "https://zhuanlan.zhihu.com/fe-fantasy",
62+
"description": "始于前端的自由技术专栏"
63+
},
64+
{
65+
"name": "阿里南京技术专刊",
66+
"link": "https://zhuanlan.zhihu.com/ali-nanjing",
67+
"description": "阿里巴巴南京研发中心官方技术交流专刊"
68+
},
69+
{
70+
"name": "某熊的技术之路",
71+
"link": "https://zhuanlan.zhihu.com/wxyyxc1992",
72+
"description": "我的技术世界,Web前端、服务端应用架构、数据挖掘"
73+
},
74+
{
75+
"name": "前端精读评论",
76+
"link": "https://zhuanlan.zhihu.com/FrontendPerusal",
77+
"description": "阿里数据中台前端团队分享前端界的好文精读"
78+
},
79+
{
80+
"name": "前端黑魔法",
81+
"link": "https://zhuanlan.zhihu.com/c_29157201",
82+
"description": "More"
83+
},
84+
{
85+
"name": "前端技术漫游指南",
86+
"link": "https://zhuanlan.zhihu.com/front-end",
87+
"description": "这里没有入门教程,只有深度长文"
88+
},
89+
{
90+
"name": "来玩TypeScript啊",
91+
"link": "https://zhuanlan.zhihu.com/c_206498766",
92+
"description": "在使用typescript过程中的一些记录"
93+
},
94+
{
95+
"name": "方正的编程之路",
96+
"link": "https://zhuanlan.zhihu.com/floveluy",
97+
"description": "从零开始,开始了就成功了90%"
98+
},
99+
{
100+
"name": "极乐科技",
101+
"link": "https://zhuanlan.zhihu.com/dreawer",
102+
"description": "高效的中文IT技术平台"
103+
}
104+
],
105+
"zhihu-data": [
106+
{
107+
"name": "数据冰山",
108+
"link": "https://zhuanlan.zhihu.com/hemingke",
109+
"description": "数海探秘,冰山不止一角。"
110+
},
111+
{
112+
"name": "电商数据分析",
113+
"link": "https://zhuanlan.zhihu.com/c_1098625782649401344",
114+
"description": "More"
115+
},
116+
{
117+
"name": "亚马逊跨境电商前哨站",
118+
"link": "https://zhuanlan.zhihu.com/c_1017364281565786112",
119+
"description": "最前沿的亚马逊运营技术分享平台"
120+
},
121+
{
122+
"name": "菜鸡说",
123+
"link": "https://zhuanlan.zhihu.com/xinqian",
124+
"description": "赚钱,不止上班一种方法"
125+
}
126+
]
127+
}
128+
}

‎src/components/SearchBox/index.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,15 @@ export default {
160160
left: 0;
161161
width: 400px;
162162
background-color: #fff;
163-
border: 1px solid $baseColor;
164163
padding: 15px;
165164
max-height: 500px;
166165
overflow-y: auto;
167166
display: flex;
168167
flex-wrap: wrap;
169168
z-index: 888;
169+
border: 1px solid $baseColor;
170+
box-shadow: 0 1px 8px 0px #93d0ff;
171+
170172
li {
171173
width: 45%;
172174
padding: 8px;

0 commit comments

Comments
 (0)
Please sign in to comment.