Skip to content

Commit 96d5101

Browse files
committed
init project
0 parents  commit 96d5101

13 files changed

+2581
-0
lines changed

.github/workflows/deploy.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy fe-interview Site
2+
3+
on: [push]
4+
5+
jobs:
6+
build-and-deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout Repository
10+
uses: actions/checkout@v4
11+
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
cache: "npm"
17+
18+
- name: Install Dependencies
19+
run: npm install
20+
21+
- name: Build
22+
run: npm run build
23+
24+
- name: Deploy to GitHub Pages
25+
uses: JamesIves/github-pages-deploy-action@v4
26+
with:
27+
folder: .vitepress/dist/
28+
branch: gh_pages
29+
clean: true

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Build and Release Folders
2+
bin-debug/
3+
bin-release/
4+
[Oo]bj/
5+
[Bb]in/
6+
7+
# Other files and folders
8+
.settings/
9+
10+
# Executables
11+
*.swf
12+
*.air
13+
*.ipa
14+
*.apk
15+
16+
# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
17+
# should NOT be excluded as they contain compiler settings and other important
18+
# information for Eclipse / Flash Builder.
19+
20+
#
21+
node_modules/
22+
23+
# vitepress
24+
.vitepress/cache
25+
.vitepress/dist

.vitepress/config.mts

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import { defineConfig } from "vitepress";
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
title: "fe interview",
6+
description: "A VitePress Site",
7+
themeConfig: {
8+
// https://vitepress.dev/reference/default-theme-config
9+
nav: [
10+
// { text: "Home", link: "/" },
11+
// { text: "Examples", link: "/markdown-examples" },
12+
],
13+
14+
sidebar: [
15+
{
16+
text: "JS 理论基础",
17+
link: "/JS 理论基础",
18+
},
19+
{
20+
text: "前端工程化",
21+
items: [
22+
{ text: "React&Vue", link: "/React" },
23+
{ text: "Webpack&Vite", link: "/Webpack" },
24+
{ text: "CSS", link: "/Css" },
25+
],
26+
},
27+
{
28+
text: "手写题",
29+
link: "/手写题",
30+
},
31+
{
32+
text: "网络协议",
33+
link: "/网络协议",
34+
},
35+
{
36+
text: "算法题",
37+
link: "/算法题",
38+
},
39+
],
40+
41+
socialLinks: [{ icon: "github", link: "https://github.com/" }],
42+
},
43+
});

Css.md

Whitespace-only changes.

JS 理论基础.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
下面是与原生 JS 有关的知识点汇总
2+
3+
## 1.作用域&作用域链&闭包
4+
5+
```text
6+
JS作用域是词法作用域,指变量的访问范围。主要分为块作用域、函数作用域、模块作用域和全局作用域
7+
8+
当 JavaScript 代码需要访问某个变量时,按照嵌套关系从内向外查找变量,直到找到该变量或者到达全局作用域。如果在所有作用域中都找不到变量,则会抛出 ReferenceError
9+
10+
在JS中函数是一等公民,当函数返回函数的时候就形成闭包
11+
```
12+
13+
## 2.类与继承和原型链
14+
15+
```text
16+
17+
```
18+
19+
## 3.异步
20+
21+
Ajax -> 事件监听 -> Promise -> 生成器方法 -> async/await
22+
23+
## 4.模块

React.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## 什么是 Virtual DOM?
2+
3+
## React 组件之间如何通信?
4+
5+
- 父组件通过 props 向子组件传递状态
6+
- 子组件通过回调方法更新父组件的状态
7+
- 兄弟组件通过状态提升到最近的共同父组件或者状态管理工具通信
8+
9+
## React 的生命周期
10+
11+
## React 的重渲染
12+
13+
## 为什么 React 渲染列表时需要加上 key?
14+
15+
## 如何理解 Fiber 架构
16+
17+
## Redux 的原理
18+
19+
## vue2 与 vue3 的双向绑定原理

Webpack.md

Whitespace-only changes.

index.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
# https://vitepress.dev/reference/default-theme-home-page
3+
layout: home
4+
5+
hero:
6+
name: "前端技术面试总结"
7+
actions:
8+
- theme: brand
9+
text: 快速开始
10+
link: /React
11+
---

0 commit comments

Comments
 (0)