提交 02604a27 编写于 作者: X xjh22222228

Update

上级 a5efa7d2
......@@ -30,7 +30,7 @@
## 拥有出色的特性
- [√] 内置 `700+` 实用网站。
- [√] 内置 `800+` 实用网站。
- [√] 三叉树分类、结构清晰、分类清晰。
- [√] 颜值与简约并存,不再是杀马特时代。
- [√] 支持3种浏览模式,创新。
......
......@@ -19,9 +19,10 @@ export const webpLanguage = [
// 如果没有请赋值空字符串
export const git = 'https://github.com/xjh22222228/nav';
export const caseNumber = '粤ICP备16052285号';
// 网站底部描述, 可以是 HTML
export const FOOTER_DESC = '';
// http://nav.xiejiahe.com/#/index?q=grabient
// http://www.nav3.cn/#/index?q=grabient
export const BACKGROUND_LINEAR = [
'linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%)',
'linear-gradient(90deg, #FEE140 0%, #FA709A 100%)',
......
......@@ -143,6 +143,12 @@ export default {
desc: 'IT类技术书籍PDF',
link: 'https://github.com/asyncfun/IT-eBOOK',
},
{
icon: 'https://refactoringguru.cn/favicon.ico',
name: 'Refactoring.Guru',
desc: '22种常用设计模式',
link: 'https://refactoringguru.cn/design-patterns',
},
]
},
{
......
......@@ -12,16 +12,10 @@
<footer class="footer">
<div>
<a [href]="git" target="_blank">
<img src="https://img.shields.io/github/stars/xjh22222228/nav?style=social" alt="" style="margin-right: 6px;transform: scale(.9);">
<img src="https://img.shields.io/github/forks/xjh22222228/nav?style=social" alt="" style="margin-left: 6px;transform: scale(.9);">
</a>
<span class="total">共收录 {{ includeTotal }} 个网站</span>
</div>
<div class="copyright" *ngIf="caseNumber">
<a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备16052285号</a>
</div>
<div class="copyright" *ngIf="FOOTER_DESC" [innerHTML]="FOOTER_DESC"></div>
</footer>
</div>
......
......@@ -8,7 +8,6 @@
text-align: center;
margin-top: 10px;
color: #fff;
font-size: 12px;
.total {
margin-left: 5px;
......@@ -21,7 +20,6 @@
}
.copyright > * {
font-size: 12px;
color: #fff;
}
}
......
import { Component } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import nav from '../../data';
import { BACKGROUND_LINEAR, git, caseNumber } from '../../config';
import { BACKGROUND_LINEAR, git, FOOTER_DESC } from '../../config';
import { randomInt } from '../utils';
@Component({
......@@ -15,7 +15,7 @@ export class AppComponent {
nav: Array<any> = nav;
includeTotal: number = 0;
git: string = git;
caseNumber: string = caseNumber;
FOOTER_DESC: string = FOOTER_DESC;
ngOnInit() {
const hash = window.location.hash;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册