{{item.title}}
10 |{{item.gist}}
11 | 12 |├── static
├── .gitkeep
├── img
│ ├── bg.jpg
│ ├── p1.png
│ ├── tao.ico
│ ├── avatar.png
│ └── bg_admin.jpg
├── css
│ ├── font
│ │ ├── iconfont.eot
│ │ ├── iconfont.ttf
│ │ ├── iconfont.js.gz
│ │ ├── iconfont.woff
│ │ ├── demo_fontclass.html
│ │ ├── iconfont.css
│ │ ├── demo_unicode.html
│ │ ├── demo.css
│ │ ├── demo_symbol.html
│ │ ├── iconfont.svg
│ │ └── iconfont.js
│ ├── public.css
│ └── normalize.css
├── upload
│ └── avatar
│ │ ├── 1536199860345.png
│ │ └── 1536199928211.png
└── js
│ ├── animation.js
│ ├── public.js
│ └── tween.js
├── .eslintignore
├── test
├── unit
│ ├── setup.js
│ ├── .eslintrc
│ ├── specs
│ │ └── HelloWorld.spec.js
│ └── jest.conf.js
└── e2e
│ ├── specs
│ └── test.js
│ ├── custom-assertions
│ └── elementCount.js
│ ├── nightwatch.conf.js
│ └── runner.js
├── config
├── prod.env.js
├── test.env.js
├── dev.env.js
└── index.js
├── src
├── assets
│ └── logo.png
├── components
│ ├── message.vue
│ ├── commonLayout.vue
│ ├── list_home.vue
│ ├── list_content.vue
│ ├── list.vue
│ ├── commonFooter.vue
│ ├── list_article.vue
│ └── commonHeader.vue
├── store
│ └── index.js
├── main.js
├── pages
│ ├── archives.vue
│ ├── categories.vue
│ ├── home.vue
│ ├── collections.vue
│ ├── demo.vue
│ ├── admin
│ │ ├── demoEdit.vue
│ │ ├── articleEdit.vue
│ │ └── articleList.vue
│ ├── visiter
│ │ └── index.vue
│ ├── signin.vue
│ ├── detail.vue
│ └── about.vue
└── router
│ └── index.js
├── .editorconfig
├── .gitignore
├── .postcssrc.js
├── index.html
├── .babelrc
├── .eslintrc.js
├── server
├── index.js
└── db.js
├── README.md
└── package.json
/static/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | /build/
2 | /config/
3 | /dist/
4 | /*.js
5 | /test/unit/coverage/
6 |
--------------------------------------------------------------------------------
/test/unit/setup.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 |
3 | Vue.config.productionTip = false
4 |
--------------------------------------------------------------------------------
/static/img/bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bestRenekton/taoLand/HEAD/static/img/bg.jpg
--------------------------------------------------------------------------------
/static/img/p1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bestRenekton/taoLand/HEAD/static/img/p1.png
--------------------------------------------------------------------------------
/static/img/tao.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bestRenekton/taoLand/HEAD/static/img/tao.ico
--------------------------------------------------------------------------------
/config/prod.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | module.exports = {
3 | NODE_ENV: '"production"'
4 | }
5 |
--------------------------------------------------------------------------------
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bestRenekton/taoLand/HEAD/src/assets/logo.png
--------------------------------------------------------------------------------
/static/img/avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bestRenekton/taoLand/HEAD/static/img/avatar.png
--------------------------------------------------------------------------------
/static/img/bg_admin.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bestRenekton/taoLand/HEAD/static/img/bg_admin.jpg
--------------------------------------------------------------------------------
/test/unit/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "env": {
3 | "jest": true
4 | },
5 | "globals": {
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/static/css/font/iconfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bestRenekton/taoLand/HEAD/static/css/font/iconfont.eot
--------------------------------------------------------------------------------
/static/css/font/iconfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bestRenekton/taoLand/HEAD/static/css/font/iconfont.ttf
--------------------------------------------------------------------------------
/static/css/font/iconfont.js.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bestRenekton/taoLand/HEAD/static/css/font/iconfont.js.gz
--------------------------------------------------------------------------------
/static/css/font/iconfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bestRenekton/taoLand/HEAD/static/css/font/iconfont.woff
--------------------------------------------------------------------------------
/static/upload/avatar/1536199860345.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bestRenekton/taoLand/HEAD/static/upload/avatar/1536199860345.png
--------------------------------------------------------------------------------
/static/upload/avatar/1536199928211.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bestRenekton/taoLand/HEAD/static/upload/avatar/1536199928211.png
--------------------------------------------------------------------------------
/config/test.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const merge = require('webpack-merge')
3 | const devEnv = require('./dev.env')
4 |
5 | module.exports = merge(devEnv, {
6 | NODE_ENV: '"testing"'
7 | })
8 |
--------------------------------------------------------------------------------
/config/dev.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const merge = require('webpack-merge')
3 | const prodEnv = require('./prod.env')
4 |
5 | module.exports = merge(prodEnv, {
6 | NODE_ENV: '"development"'
7 | })
8 |
--------------------------------------------------------------------------------
/src/components/message.vue:
--------------------------------------------------------------------------------
1 |
2 | 我是详情页0419
3 |
4 |
5 |
9 |
10 |
12 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | /dist/
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | /test/unit/coverage/
8 | /test/e2e/reports/
9 | selenium-debug.log
10 |
11 | # Editor directories and files
12 | .idea
13 | .vscode
14 | *.suo
15 | *.ntvs*
16 | *.njsproj
17 | *.sln
18 |
--------------------------------------------------------------------------------
/.postcssrc.js:
--------------------------------------------------------------------------------
1 | // https://github.com/michael-ciniawsky/postcss-load-config
2 |
3 | module.exports = {
4 | "plugins": {
5 | "postcss-import": {},
6 | "postcss-url": {},
7 | // to edit target browsers: use "browserslist" field in package.json
8 | "autoprefixer": {}
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
{{item.title}}
6 |{{item.gist}}
7 |{{item.date}}
9 |{{ title }}
9 | 10 |Archives
8 |Content
14 |Categories
8 |Content
14 |{{item.type}}
5 |FRIENDS
27 | 35 |Collections
8 |{{item.type}}
10 |{{li.gist}}
14 |Content
23 |font-class是unicode使用方式的一种变种,主要是解决unicode书写不直观,语意不明确的问题。
117 |与unicode使用方式相比,具有如下特点:
118 |使用步骤如下:
125 |<link rel="stylesheet" type="text/css" href="./iconfont.css">
129 | <i class="iconfont icon-xxx"></i>
131 | 132 |134 |"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。
133 |
昵称:
8 |头像:
16 |tips:请上传2M以内JPG/PNG格式的图片,比例最好1:1
23 |unicode是字体在网页端最原始的应用方式,特点是:
136 |142 |144 |注意:新版iconfont支持多色图标,这些多色图标在unicode模式下将不能使用,如果有需求建议使用symbol的引用方式
143 |
unicode使用步骤如下:
145 |@font-face {
147 | font-family: 'iconfont';
148 | src: url('iconfont.eot');
149 | src: url('iconfont.eot?#iefix') format('embedded-opentype'),
150 | url('iconfont.woff') format('woff'),
151 | url('iconfont.ttf') format('truetype'),
152 | url('iconfont.svg#iconfont') format('svg');
153 | }
154 |
155 | .iconfont{
157 | font-family:"iconfont" !important;
158 | font-size:16px;font-style:normal;
159 | -webkit-font-smoothing: antialiased;
160 | -webkit-text-stroke-width: 0.2px;
161 | -moz-osx-font-smoothing: grayscale;
162 | }
163 |
164 | <i class="iconfont">3</i>
166 |
167 | 168 |170 |"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。
169 |
New to Taoland ? Sign Up !
8 |Back to Sign In !
15 |Sign In
19 |这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇文章 165 | 这种用法其实是做了一个svg的集合,与另外两种相比具有如下特点:
166 |font-size,color来调整样式。使用步骤如下:
173 |<script src="./iconfont.js"></script>
175 | <style type="text/css">
177 | .icon {
178 | width: 1em; height: 1em;
179 | vertical-align: -0.15em;
180 | fill: currentColor;
181 | overflow: hidden;
182 | }
183 | </style>
184 | <svg class="icon" aria-hidden="true">
186 | <use xlink:href="#icon-xxx"></use>
187 | </svg>
188 |
189 | About
8 | 9 |关于我
11 |做前端有2年了,目前就职于北京思源时代
12 |并不是科班出身,学的是物理,后来从事不喜欢的工作,直到遇到前端
13 |非常喜欢,开始自学,遇到过很多坑,但是一直坚持,坚信终有一天自己也会变强!
14 |联系我
17 |关于本站
28 |这个博客主要用于记录一个菜鸟程序猿的Growth之路.
29 |这也是自己第一次做博客,希望和大家多多交流,一起成长!
30 |欢迎大家提一些对本站的建议,可以直接在下面留言或者新建一个Issue.
31 |2018.2.28 v1.0.1
41 |[+] 个人博客第一版上线2018.3.20 v1.1.1
45 |[+]新增流量统计功能[+]新增token功能[+]升到https[+]若干bug2018.6.10 v1.2.1
52 |[+]大幅提高首页渲染速度[+]看板娘上线[+]若干优化2018.7.23 v1.3.1
58 |[+]游客登陆/注册/检测[+]图片上传[+]评论留言[+]文章分享功能[+]上一篇下一篇友情链接
77 | 85 |