Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
shfshanyue committed Nov 28, 2021
1 parent 706616f commit ba3e72a
Show file tree
Hide file tree
Showing 60 changed files with 19,867 additions and 4,785 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ a.md
.env
dist
mock-interviews
.temp
.cache
41 changes: 9 additions & 32 deletions .vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const _ = require('lodash')
const { generateSiebar } = require('./header')
const { generateSidebar: generateESidebar} = require('../data/engineering')

module.exports = {
base: '/',
Expand All @@ -8,17 +9,16 @@ module.exports = {
head: [
['link', { rel: 'shortcut icon', href: '/favicon.ico', type: 'image/x-icon' }],
// 设置 Google 的 Search Console
['meta', { name: 'google-site-verification', content: '_rNB9Nt0ukzWmMfhXSSxCHUAeeMs24OiuhGm4QjdwXA'}]
['meta', { name: 'google-site-verification', content: '_rNB9Nt0ukzWmMfhXSSxCHUAeeMs24OiuhGm4QjdwXA' }]
],
shouldPrefetch: () => false,
bundler: '@vuepress/bundler-vite',
themeConfig: {
repo: 'shfshanyue/Daily-Question',
nav: [
{ text: '主页', link: '/' },
// { text: '周刊', link: '/weekly/' },
// { text: '我的面经', link: '/interviews/2018.html' },
{ text: '面经大全', link: '/interview.html' },
{ text: '大厂内推', link: '/infer/ali-ascp.md' },
{ text: '前端工程化三十八讲', link: '/engineering/' },
{ text: '计算机基础', link: '/base/' },
{ text: '前端面试基础', link: '/fe/' },
{ text: '高级前端面试', link: '/server/' },
Expand All @@ -27,6 +27,8 @@ module.exports = {
items: [
{ text: 'DevOps', link: '/devops/' },
{ text: '开放式问题', link: '/open/' },
{ text: '大厂内推', link: '/infer/ali-ascp.md' },
{ text: '面经大全', link: '/interview.html' },
]
},
{ text: '各地求职', link: '/job/chengdu.html' },
Expand All @@ -36,6 +38,7 @@ module.exports = {
],
sidebar: {
...generateSiebar(),
...generateESidebar(),
'/job/': [
['chengdu', '成都大厂'],
],
Expand Down Expand Up @@ -118,7 +121,7 @@ module.exports = {
hostname: 'https://q.shanyue.tech'
},
],
[
[
'@vuepress/google-analytics',
{
'ga': 'UA-102193749-3'
Expand All @@ -134,7 +137,7 @@ module.exports = {
frontmatter: {
home: true,
heroText: '互联网大厂面试每日一题',
heroImage: './logo.png',
heroImage: 'logo.png',
tagline: '山月的全栈进阶之路',
actionText: '历史记录 →',
actionLink: '/weekly/',
Expand All @@ -153,32 +156,6 @@ module.exports = {
}
]
},
// extendPageData ($page) {
// const number = $page.path.split(/[\/\.]/g)[3]

// // 根据 Issues 设置 TDK
// if (/\d+/.test(number)) {
// const issue = _.get(issuesByNumber, number, {})
// const labels = _.flatMap(issue.labels, label => {
// if (!label) { return null }
// label = labelsByName[label.name]
// const labels = [label.alias, label.name, GROUP_MAP[label.group]]
// return labels
// }).filter(_.identity)
// const keywords = meta[number] ? meta[number].keywords.split(',') : issue.title.slice(6).split(/[,,!!??]/g)
// $page.frontmatter.meta = [{
// name: 'keywords',
// content: ['前端面试题', ...labels, ...keywords].join(',')
// }, {
// name: 'google-site-verification',
// content: '_rNB9Nt0ukzWmMfhXSSxCHUAeeMs24OiuhGm4QjdwXA'
// }]
// $page.frontmatter.description = meta[number] && meta[number].description ? meta[number].description : (issue.body || _.slice(_.get(issue.comment, 'body', issue.title), 0, 240).join(''))
// $page.frontmatter.metaTitle = `${$page.title} | 前端面试题`
// } else {
// $page.frontmatter.metaTitle = `${$page.title || '大厂前端面试题每日一题'} | Vue | React | JS | Mysql | 面试题`
// }
// }
}
}
]
Expand Down
Binary file added .vuepress/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion .vuepress/theme/components/Bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@
<div class="text">
你可以跟着我的笔记 <a href="https://shanyue.tech/op/">当我有一台服务器时,我做了什么</a> 来开始维护服务器并搭建应用,将引导你使用 docker 和 k8s 搭建一个自己的服务器开发集群。
</div> -->
<div class="text">
<!-- <div class="text">
极客时间对于推广渠道会有返利优惠,比如山月在极客时间买了一门课,再把课程分享给好友购买,这时极客时间会向山月返利20元左右。
</div>
<div class="text">
而我现在做了一个<a href="http://geek.shanyue.tech/">返利平台</a>,你可以在上边通过<a href="https://geek.shanyue.tech">山月的链接</a>购买课程,此时极客时间会向我返利。为了共同学习,而你可以添加我的微信 (shanyue94),我将把<strong>极客时间给我的返利发一个红包全部返给你</strong>。
</div> -->
<div class="text">
<a href="http://geek.shanyue.tech/">极客时间返利平台</a>,你可以在上边通过<a href="https://geek.shanyue.tech">山月的链接</a>购买课程,并添加我的微信 (shanyue94) 领取返现。
</div>
</div>
<div class="bar-intro">
<div class="text">
每天晚上九点 <a href="https://space.bilibili.com/28696526">B站讲解前端工程化直播</a>,并解答相关问题。
</div>
</div>
</div>
Expand Down
28 changes: 12 additions & 16 deletions .vuepress/theme/components/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@

<div :class="{ 'theme-default-content': true, lock: isLock }">
<Content />
<div class="content-lock" v-if="isLock">
<!-- <div class="content-lock" v-if="isLock">
<p>扫码关注公众号<span>互联网大厂面试</span>,并发送 <span v-text="code"></span></p>
<p>即可在关注期间<span>无限制</span>浏览本站全部文章内容</p>
<img src="./we.jpg" width="180" height="180">
<!-- <p>该提示信息随机出现,你可以<span>再次刷新</span>页面,来浏览本站全部文章</p> -->
<p>
你也可以在文章<a href="https://github.com/shfshanyue/op-note/blob/master/blog-to-wechat.md">关于回复公众号扫码解锁全站的技术实现</a>中获得解锁代码,永久解锁本站全部文章
</p>
</div>
<div :style="{ border: '1px solid #eee', padding: '1rem', borderRadius: '6px' }">
</div> -->
</div>
<PageEdit />

<PageNav v-bind="{ sidebarItems }" />

<slot name="bottom" />
<!-- <div :style="{ border: '1px solid #eee', padding: '1rem', borderRadius: '6px' }">
<h2>
站长山月
</h2>
Expand Down Expand Up @@ -42,13 +44,7 @@
</li>
</ul>
<div>我的微信:shanyue94,欢迎交流</div>
</div>
</div>
<PageEdit />

<PageNav v-bind="{ sidebarItems }" />

<slot name="bottom" />
</div> -->
</main>
</template>

Expand Down Expand Up @@ -111,8 +107,8 @@ export default {
},
computed: {
isLock () {
return !mobile.any && this.lock ? Math.random() > 0.01 : false
/* return false */
// return !mobile.any && this.lock ? Math.random() > 0.01 : false
return false
}
},
components: { PageEdit, PageNav },
Expand Down
17 changes: 17 additions & 0 deletions _index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
home: true
heroText: 互联网大厂面试每日一题
heroImage: logo.png
tagline: 山月的全栈进阶之路
actions:
- text: 快速上手
link: /interview.md
features:
- title: 全栈
details: 见其广,知其深
- title: 每日一题
details: 勤学如春起之苗,不见其增,日有所长
- title: 积累,
details: 不积跬步,无以至千里
footer: 暮从碧山下,山月随人归。却顾所来径,苍苍横翠微。
---
Loading

0 comments on commit ba3e72a

Please sign in to comment.