diff --git a/package.json b/package.json index 73eee66..61f95d5 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ }, "dependencies": { "dayjs": "^1.11.13", + "highlight.js": "^11.11.1", "hooks": "file:", "vue": "^3.5.13", "vue-router": "4" diff --git a/src/components/SlideLayout.vue b/src/components/SlideLayout.vue index 7ac188a..2f006c6 100644 --- a/src/components/SlideLayout.vue +++ b/src/components/SlideLayout.vue @@ -17,18 +17,39 @@ + + diff --git a/src/views/ContentsView.vue b/src/views/ContentsView.vue new file mode 100644 index 0000000..1764dcc --- /dev/null +++ b/src/views/ContentsView.vue @@ -0,0 +1,229 @@ + + + + + diff --git a/src/views/HooksConceptView.vue b/src/views/HooksConceptView.vue new file mode 100644 index 0000000..9ce0cfb --- /dev/null +++ b/src/views/HooksConceptView.vue @@ -0,0 +1,215 @@ + + + + + diff --git a/src/views/HooksMethodView.vue b/src/views/HooksMethodView.vue new file mode 100644 index 0000000..7d3ffee --- /dev/null +++ b/src/views/HooksMethodView.vue @@ -0,0 +1,364 @@ + + + + + diff --git a/src/views/HooksUsageView.vue b/src/views/HooksUsageView.vue new file mode 100644 index 0000000..7452b56 --- /dev/null +++ b/src/views/HooksUsageView.vue @@ -0,0 +1,253 @@ + + + + + diff --git a/yarn.lock b/yarn.lock index 23dd2e4..e3dd72c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -478,12 +478,18 @@ he@^1.2.0: resolved "https://mirrors.yuchat.top/repository/npmjs/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== +highlight.js@^11.11.1: + version "11.11.1" + resolved "https://mirrors.yuchat.top/repository/npmjs/highlight.js/-/highlight.js-11.11.1.tgz#fca06fa0e5aeecf6c4d437239135fabc15213585" + integrity sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w== + "hooks@file:.": version "0.0.0" dependencies: dayjs "^1.11.13" - hooks "file:C:/Users/yanlongqi/AppData/Local/Yarn/Cache/v6/npm-hooks-0.0.0-3bade944-d2d2-4129-9022-13077f5d891c-1735875890338/node_modules/hooks" + hooks "file:C:/Users/yanlongqi/AppData/Local/Yarn/Cache/v6/npm-hooks-0.0.0-3c6b1486-789e-4725-9581-a6da575f3e2f-1735881618100/node_modules/hooks" vue "^3.5.13" + vue-router "4" magic-string@^0.30.11: version "0.30.17"