minearm-website 0.0.3-beta.3 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +12 -0
- package/{LICENSE → LICENSE.md} +21 -21
- package/README.md +13 -2
- package/astro.config.ts +6 -1
- package/cz.yaml +7 -0
- package/docker-compose.yml +11 -0
- package/netlify.toml +4 -0
- package/package.json +7 -7
- package/public/13.png +0 -0
- package/public/scripts/mdata.json +1 -1
- package/src/components/loading/loading.vue +1 -1
- package/src/content/blog/{default/it → it}/Rust/345/237/272/346/234/254/350/257/255/346/263/225.md +41 -29
- package/src/lib/posts.js +21 -0
- package/src/pages/[...page].astro +8 -4
- package/src/pages/about/index.md +13 -3
- package/src/pages/blog/[...slug].astro +1 -1
- package/src/pages/friends/index.md +2 -2
- package/src/theme_config.ts +3 -2
- package/public/13.jpg +0 -0
- package/src/content/blog/default/Extended Search.md +0 -50
- package/src/content/blog/default/Mail.md +0 -15
- /package/src/content/blog/{default/history → history}//345/205/254/345/205/203/345/211/215//347/247/246/345/247/213/347/232/207/347/273/237/344/270/200/345/205/255/345/233/275.md" +0 -0
- /package/src/content/blog/{default/history → history}//350/277/221/344/273/243/347/257/207//344/270/255/345/233/275/345/205/261/344/272/247/345/205/232/345/205/232/345/217/262.md" +0 -0
package/Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Base stage for building the static files
|
2
|
+
FROM node:lts AS base
|
3
|
+
WORKDIR /app
|
4
|
+
COPY package*.json ./
|
5
|
+
RUN npm install
|
6
|
+
COPY . .
|
7
|
+
RUN npm run build
|
8
|
+
|
9
|
+
# Runtime stage for serving the application
|
10
|
+
FROM nginx:mainline-alpine-slim AS runtime
|
11
|
+
COPY --from=base ./app/dist /usr/share/nginx/html
|
12
|
+
EXPOSE 80
|
package/{LICENSE → LICENSE.md}
RENAMED
@@ -1,21 +1,21 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c)
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2024 onWidget
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
@@ -1,11 +1,17 @@
|
|
1
1
|
# Minearm & Website
|
2
2
|
# 本主题是从[HusBlog](https://github.com/KraHsu/HsuBlog.git)改进而来的
|
3
|
+
最新的正式版是0.1.2
|
4
|
+
最新的测试版是0.0.3-beta.4
|
3
5
|
|
4
|
-
但是Minearm & Website做出了很大的改变,比如修复了scss警告和升级astro版本到
|
6
|
+
但是Minearm & Website做出了很大的改变,比如修复了scss警告和升级astro版本到5.0.5
|
5
7
|
|
6
8
|
# 效果
|
7
9
|

|
8
10
|
|
11
|
+
# node(环境)
|
12
|
+
|
13
|
+
要让 Astro 在你的系统上运行,你还需要安装 Node.js,版本 v18.17.1 或 v20.3.0 或更高版本。(不支持 v19)
|
14
|
+
|
9
15
|
# 文件结构
|
10
16
|
|
11
17
|
```bash
|
@@ -49,6 +55,11 @@ root
|
|
49
55
|
npm i minearm-website
|
50
56
|
~~~
|
51
57
|
|
58
|
+
# 进入astro目录
|
59
|
+
~~~
|
60
|
+
cd node_modules/minearm-website
|
61
|
+
~~~
|
62
|
+
|
52
63
|
~~~
|
53
64
|
# 安装依赖
|
54
65
|
npm install
|
@@ -72,4 +83,4 @@ npm run preview
|
|
72
83
|
|
73
84
|
由Minearm-RPM构建的
|
74
85
|
|
75
|
-
# 转载时需标明出处!。
|
86
|
+
# 转载时需标明出处!。
|
package/astro.config.ts
CHANGED
@@ -9,6 +9,7 @@ import remarkDirective from "remark-directive";
|
|
9
9
|
import vue from "@astrojs/vue";
|
10
10
|
import { SiteConfig } from "./src/site_config";
|
11
11
|
import { generateSearchData } from "./src/utils/generateSearchData.ts";
|
12
|
+
//import netlify from "@astrojs/netlify";
|
12
13
|
const remarkPlugins: any = [remarkFrontmatter, remarkGfm, SiteConfig.markdownMath !== false && remarkMath, remarkRestyling, remarkDirective, markdownDirectives, SiteConfig.localSearch && generateSearchData].filter(Boolean);
|
13
14
|
const rehypePlugins: any = [rehypeFrontmatter, rehypeRestyling, SiteConfig.markdownMath === "Katex" && rehypeKatex, SiteConfig.markdownMath === "Mathjax" && rehypeMathjax].filter(Boolean);
|
14
15
|
// https://astro.build/config
|
@@ -16,9 +17,11 @@ export default defineConfig({
|
|
16
17
|
site: SiteConfig.site,
|
17
18
|
integrations: [sitemap(), vue()],
|
18
19
|
output: "static",
|
20
|
+
|
19
21
|
build: {
|
20
22
|
format: "directory"
|
21
23
|
},
|
24
|
+
|
22
25
|
markdown: {
|
23
26
|
syntaxHighlight: "shiki",
|
24
27
|
shikiConfig: {
|
@@ -29,5 +32,7 @@ export default defineConfig({
|
|
29
32
|
remarkPlugins: remarkPlugins,
|
30
33
|
rehypePlugins: rehypePlugins
|
31
34
|
},
|
32
|
-
|
35
|
+
|
36
|
+
trailingSlash: "ignore",
|
37
|
+
// adapter: netlify()
|
33
38
|
});
|
package/cz.yaml
ADDED
package/netlify.toml
ADDED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "minearm-website",
|
3
3
|
"description": "Welcome to Minearm & Website.",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.1.2",
|
5
5
|
"homepage": "https://github.com/Minearm-RPM/minearm",
|
6
6
|
"type": "module",
|
7
7
|
"license": "MIT",
|
@@ -18,14 +18,14 @@
|
|
18
18
|
"pu": "ts-node ./pu.ts"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@astrojs/markdown-remark": "^
|
22
|
-
"@astrojs/mdx": "^
|
23
|
-
"@astrojs/rss": "^4.0.
|
21
|
+
"@astrojs/markdown-remark": "^6.0.1",
|
22
|
+
"@astrojs/mdx": "^4.0.2",
|
23
|
+
"@astrojs/rss": "^4.0.10",
|
24
24
|
"@duannx/vue-client-only": "^1.0.3",
|
25
25
|
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
26
26
|
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
27
27
|
"@iconify-json/tabler": "^1.2.8",
|
28
|
-
"astro": "^
|
28
|
+
"astro": "^5.0.5",
|
29
29
|
"astro-i18next": "^1.0.0-beta.21",
|
30
30
|
"astro-icon": "^1.1.2",
|
31
31
|
"fuse.js": "^6.6.2",
|
@@ -47,12 +47,12 @@
|
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
49
|
"@astrojs/sitemap": "^3.2.1",
|
50
|
-
"@astrojs/vue": "^
|
50
|
+
"@astrojs/vue": "^5.0.2",
|
51
51
|
"@types/yargs": "^17.0.24",
|
52
52
|
"sass": "1.70.0",
|
53
53
|
"scss": "^0.2.4",
|
54
54
|
"ts-node": "10.9.2",
|
55
|
-
"vue": "3.5.
|
55
|
+
"vue": "^3.5.13"
|
56
56
|
},
|
57
57
|
"keywords": [
|
58
58
|
"astro-component",
|
package/public/13.png
ADDED
Binary file
|
@@ -139,7 +139,7 @@ document.onreadystatechange = async () => {
|
|
139
139
|
filter: drop-shadow(0 0 10px yellow);
|
140
140
|
animation-delay: -0.5s;
|
141
141
|
}
|
142
|
-
.load :last-child {
|
142
|
+
.load :last-child {
|
143
143
|
background: #99ff00;
|
144
144
|
border: 5px solid #99ff00;
|
145
145
|
filter: drop-shadow(0 0 10px #99ff00);
|
package/src/content/blog/{default/it → it}/Rust/345/237/272/346/234/254/350/257/255/346/263/225.md
RENAMED
@@ -14,13 +14,15 @@ category: 'Rust'
|
|
14
14
|
---
|
15
15
|
# Rust 基础语法
|
16
16
|
|
17
|
-
|
17
|
+
# 说明
|
18
|
+
|
19
|
+
复制滴别想,抄作业滴不要,若需要,滴开启超级复制插件
|
18
20
|
|
19
21
|
变量,基本类型,函数,注释和控制流,这些几乎是每种编程语言都具有的编程概念。
|
20
22
|
|
21
23
|
这些基础概念将存在于每个 Rust 程序中,及早学习它们将使你以最快的速度学习 Rust 的使用。
|
22
24
|
|
23
|
-
变量
|
25
|
+
# 变量
|
24
26
|
首先必须说明,Rust 是强类型语言,但具有自动判断变量类型的能力。这很容易让人与弱类型语言产生混淆。
|
25
27
|
|
26
28
|
默认情况下,Rust 中的变量是不可变的,除非使用 mut 关键字声明为可变变量。
|
@@ -81,22 +83,25 @@ let a: u64 = 114;
|
|
81
83
|
|
82
84
|
这里声明了 a 为无符号 64 位整型变量,如果没有声明类型,a 将自动被判断为有符号 32 位整型变量,这对于 a 的取值范围有很大的影响。
|
83
85
|
|
84
|
-
数据类型
|
86
|
+
# 数据类型
|
87
|
+
|
85
88
|
Rust 是静态类型语言,在变量声明时可以显式指定类型,但通常可以依赖类型推断。
|
86
89
|
|
87
90
|
基本类型: i32 (32位有符号整数), u32 (32位无符号整数), f64 (64位浮点数), bool (布尔类型), char (字符)
|
88
91
|
|
89
|
-
实例
|
92
|
+
- 实例
|
90
93
|
```rust
|
91
94
|
let x: i32 = 42;
|
92
95
|
let y: f64 = 3.14;
|
93
96
|
let is_true: bool = true;
|
94
97
|
let letter: char = 'A';
|
95
98
|
```
|
96
|
-
|
99
|
+
|
100
|
+
# 函数
|
101
|
+
|
97
102
|
Rust 函数通过 fn 关键字定义,函数的返回类型通过箭头符号 -> 指定。
|
98
103
|
|
99
|
-
实例
|
104
|
+
- 实例
|
100
105
|
```rust
|
101
106
|
fn add(a: i32, b: i32) -> i32 {
|
102
107
|
a + b
|
@@ -104,10 +109,10 @@ fn add(a: i32, b: i32) -> i32 {
|
|
104
109
|
```
|
105
110
|
如果函数没有返回值,类型默认为 ()(即空元组)。
|
106
111
|
|
107
|
-
|
108
|
-
if 表达式
|
112
|
+
**控制流**
|
113
|
+
# if 表达式
|
109
114
|
|
110
|
-
实例
|
115
|
+
- 实例
|
111
116
|
```rust
|
112
117
|
let number = 7;
|
113
118
|
if number < 5 {
|
@@ -116,9 +121,11 @@ if number < 5 {
|
|
116
121
|
println!("大于等于 5");
|
117
122
|
}
|
118
123
|
```
|
119
|
-
|
124
|
+
# loop 循环
|
125
|
+
|
126
|
+
loop 是 Rust 中的无限循环,可以使用 break 退出循环。
|
120
127
|
|
121
|
-
实例
|
128
|
+
- 实例
|
122
129
|
```rust
|
123
130
|
let mut counter = 0;
|
124
131
|
loop {
|
@@ -128,9 +135,10 @@ loop {
|
|
128
135
|
}
|
129
136
|
}
|
130
137
|
```
|
131
|
-
while 循环
|
132
138
|
|
133
|
-
|
139
|
+
# while 循环
|
140
|
+
|
141
|
+
- 实例
|
134
142
|
```rust
|
135
143
|
let mut number = 3;
|
136
144
|
while number != 0 {
|
@@ -139,15 +147,15 @@ while number != 0 {
|
|
139
147
|
}
|
140
148
|
```
|
141
149
|
|
142
|
-
for 循环
|
150
|
+
# for 循环
|
143
151
|
|
144
|
-
实例
|
152
|
+
- 实例
|
145
153
|
```rust
|
146
154
|
for number in 1..4 {
|
147
155
|
println!("{}!", number);
|
148
156
|
}
|
149
157
|
```
|
150
|
-
所有权
|
158
|
+
# 所有权
|
151
159
|
Rust 中的所有权是独特的内存管理机制,核心概念包括所有权 (ownership)、借用 (borrowing) 和引用 (reference)。
|
152
160
|
|
153
161
|
所有权规则:
|
@@ -160,7 +168,8 @@ let s1 = String::from("hello");
|
|
160
168
|
let s2 = s1; // s1 的所有权被转移给了 s2
|
161
169
|
// println!("{}", s1); // 此处编译会报错,因为 s1 已不再拥有该值
|
162
170
|
```
|
163
|
-
|
171
|
+
# 借用和引用
|
172
|
+
借用允许引用数据而不获取所有权,通过 & 符号实现。
|
164
173
|
```rust
|
165
174
|
fn main() {
|
166
175
|
let s = String::from("hello");
|
@@ -172,10 +181,11 @@ fn calculate_length(s: &String) -> usize {
|
|
172
181
|
s.len()
|
173
182
|
}
|
174
183
|
```
|
175
|
-
结构体
|
184
|
+
# 结构体
|
185
|
+
|
176
186
|
结构体用于创建自定义类型,字段可以包含多种数据类型。
|
177
187
|
|
178
|
-
实例
|
188
|
+
- 实例
|
179
189
|
```rust
|
180
190
|
struct User {
|
181
191
|
username: String,
|
@@ -191,10 +201,11 @@ let user1 = User {
|
|
191
201
|
active: true,
|
192
202
|
};
|
193
203
|
```
|
194
|
-
枚举
|
204
|
+
# 枚举
|
205
|
+
|
195
206
|
枚举允许定义可能的几种数据类型中的一种。
|
196
207
|
|
197
|
-
实例
|
208
|
+
- 实例
|
198
209
|
```rust
|
199
210
|
enum IpAddrKind {
|
200
211
|
V4,
|
@@ -204,10 +215,10 @@ enum IpAddrKind {
|
|
204
215
|
let four = IpAddrKind::V4;
|
205
216
|
let six = IpAddrKind::V6;
|
206
217
|
```
|
207
|
-
模式匹配
|
218
|
+
# 模式匹配
|
208
219
|
match 是 Rust 中强大的控制流工具,类似于 switch 语句。
|
209
220
|
|
210
|
-
实例
|
221
|
+
- 实例
|
211
222
|
```rust
|
212
223
|
enum Coin {
|
213
224
|
Penny,
|
@@ -225,13 +236,13 @@ fn value_in_cents(coin: Coin) -> u8 {
|
|
225
236
|
}
|
226
237
|
}
|
227
238
|
```
|
228
|
-
错误处理
|
239
|
+
# 错误处理
|
229
240
|
|
230
241
|
Rust 有两种主要的错误处理方式:Result<T, E> 和 Option<T>。
|
231
242
|
|
232
243
|
Result:
|
233
244
|
|
234
|
-
实例
|
245
|
+
- 实例
|
235
246
|
```rust
|
236
247
|
enum Result<T, E> {
|
237
248
|
Ok(T),
|
@@ -248,7 +259,7 @@ fn divide(a: i32, b: i32) -> Result<i32, String> {
|
|
248
259
|
```
|
249
260
|
Option:
|
250
261
|
|
251
|
-
实例
|
262
|
+
- 实例
|
252
263
|
```rust
|
253
264
|
fn get_element(index: usize, vec: &Vec<i32>) -> Option<i32> {
|
254
265
|
if index < vec.len() {
|
@@ -261,7 +272,7 @@ fn get_element(index: usize, vec: &Vec<i32>) -> Option<i32> {
|
|
261
272
|
所有权与借用的生命周期
|
262
273
|
Rust 使用生命周期来确保引用的有效性。生命周期标注用 'a 等来表示,但常见的情况下,编译器会自动推导。
|
263
274
|
|
264
|
-
实例
|
275
|
+
- 实例
|
265
276
|
```rust
|
266
277
|
fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {
|
267
278
|
if x.len() > y.len() {
|
@@ -271,12 +282,13 @@ fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {
|
|
271
282
|
}
|
272
283
|
}
|
273
284
|
```
|
274
|
-
|
285
|
+
# 重影
|
286
|
+
|
275
287
|
重影的概念与其他面向对象语言里的"重写"(Override)或"重载"(Overload)是不一样的。重影就是刚才讲述的所谓"重新绑定",之所以加引号就是为了在没有介绍这个概念的时候代替一下概念。
|
276
288
|
|
277
289
|
重影就是指变量的名称可以被重新使用的机制:
|
278
290
|
|
279
|
-
实例
|
291
|
+
- 实例
|
280
292
|
```rust
|
281
293
|
fn main() {
|
282
294
|
let x = 5;
|
package/src/lib/posts.js
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
import fs from 'fs';
|
2
|
+
import path from 'path';
|
3
|
+
import matter from 'gray-matter';
|
4
|
+
|
5
|
+
const postsDirectory = path.join(process.cwd(), 'src/posts');
|
6
|
+
|
7
|
+
export function getPosts() {
|
8
|
+
const fileNames = fs.readdirSync(postsDirectory);
|
9
|
+
const allPostsData = fileNames.map(fileName => {
|
10
|
+
const fullPath = path.join(postsDirectory, fileName);
|
11
|
+
const fileContents = fs.readFileSync(fullPath, 'utf8');
|
12
|
+
const matterResult = matter(fileContents);
|
13
|
+
|
14
|
+
return {
|
15
|
+
data: matterResult.data,
|
16
|
+
content: matterResult.content,
|
17
|
+
url: `/posts/${fileName.replace(/\.md$/, '')}`
|
18
|
+
};
|
19
|
+
});
|
20
|
+
return allPostsData.sort((a, b) => b.data.pubDate.localeCompare(a.data.pubDate));
|
21
|
+
}
|
@@ -3,9 +3,9 @@ import HomeLayout from "@src/layouts/HomeLayout.astro";
|
|
3
3
|
import PostsList from "@comp/postlist/postsList.astro";
|
4
4
|
import Pagination from "@comp/postlist/pagination.astro";
|
5
5
|
import { ThemeConfig } from "@src/theme_config";
|
6
|
-
import { ViewTransitions } from 'astro:transitions';
|
7
6
|
import { utils } from "@src/utils/utils";
|
8
7
|
import { type CollectionEntry, getCollection } from "astro:content";
|
8
|
+
|
9
9
|
export async function getStaticPaths({ paginate }: any) {
|
10
10
|
const posts: CollectionEntry<"blog">[] = (await getCollection("blog")).sort(
|
11
11
|
(a: { data: { pubDate: string; }; }, b: { data: { pubDate: string; }; }) => utils.compareDates(a.data.pubDate, b.data.pubDate)
|
@@ -14,8 +14,12 @@ export async function getStaticPaths({ paginate }: any) {
|
|
14
14
|
}
|
15
15
|
|
16
16
|
const { page } = Astro.props;
|
17
|
-
---
|
18
17
|
|
18
|
+
// 确保 page 对象包含正确的数据
|
19
|
+
if (!page || !page.data) {
|
20
|
+
throw new Error("Invalid page data");
|
21
|
+
}
|
22
|
+
---
|
19
23
|
<HomeLayout>
|
20
24
|
{
|
21
25
|
ThemeConfig.homePage.heroShoot && (
|
@@ -37,10 +41,10 @@ const { page } = Astro.props;
|
|
37
41
|
page.lastPage > 1 && (
|
38
42
|
<Pagination
|
39
43
|
baseurl="/"
|
40
|
-
pageSize={page.
|
44
|
+
pageSize={page.pageSize}
|
41
45
|
activePage={page.currentPage}
|
42
46
|
/>
|
43
47
|
)
|
44
48
|
}
|
45
49
|
</Fragment>
|
46
|
-
</HomeLayout>
|
50
|
+
</HomeLayout>
|
package/src/pages/about/index.md
CHANGED
@@ -7,14 +7,19 @@ useComments: true
|
|
7
7
|
useToc: true
|
8
8
|
---
|
9
9
|
# Minearm & Website
|
10
|
-
|
11
10
|
# 本主题是从[HusBlog](https://github.com/KraHsu/HsuBlog.git)改进而来的
|
11
|
+
最新的正式版是0.1.2
|
12
|
+
最新的测试版是0.0.3-beta.4
|
12
13
|
|
13
|
-
但是Minearm & Website做出了很大的改变,比如修复了scss警告和升级astro版本到
|
14
|
+
但是Minearm & Website做出了很大的改变,比如修复了scss警告和升级astro版本到5.0.5
|
14
15
|
|
15
16
|
# 效果
|
16
17
|

|
17
18
|
|
19
|
+
# node(环境)
|
20
|
+
|
21
|
+
要让 Astro 在你的系统上运行,你还需要安装 Node.js,版本 v18.17.1 或 v20.3.0 或更高版本。(不支持 v19)
|
22
|
+
|
18
23
|
# 文件结构
|
19
24
|
|
20
25
|
```bash
|
@@ -58,6 +63,11 @@ root
|
|
58
63
|
npm i minearm-website
|
59
64
|
~~~
|
60
65
|
|
66
|
+
# 进入astro目录
|
67
|
+
~~~
|
68
|
+
cd node_modules/minearm-website
|
69
|
+
~~~
|
70
|
+
|
61
71
|
~~~
|
62
72
|
# 安装依赖
|
63
73
|
npm install
|
@@ -81,4 +91,4 @@ npm run preview
|
|
81
91
|
|
82
92
|
由Minearm-RPM构建的
|
83
93
|
|
84
|
-
# 转载时需标明出处!。
|
94
|
+
# 转载时需标明出处!。
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
import { CollectionEntry, getCollection } from "astro:content";
|
2
|
+
import { type CollectionEntry, getCollection } from "astro:content";
|
3
3
|
import PostLayout from "@src/layouts/PostLayout.astro";
|
4
4
|
import HeroWave from "@comp/header/heroWave.astro";
|
5
5
|
import GetIcon from "@comp/icons/getIcon.astro";
|
@@ -17,8 +17,8 @@ useToc: true
|
|
17
17
|
|
18
18
|
::link[B站破击]{logo="/pojipao.avif" desc="全互联网最中二的傻逼" link="https://space.bilibili.com/1598534390"}
|
19
19
|
|
20
|
-
::link[
|
20
|
+
::link[এ՞情绪ᮨ℘]{logo="/13.png" desc="明天要被历史肘击😭" link="mailto:2939765322@qq.com"}
|
21
21
|
|
22
22
|
::link[三的根号]{logo="/3.png" desc="√3每日发疯" link="https://space.bilibili.com/1832902560"}
|
23
23
|
|
24
|
-
::link[智宇]{logo="https://zhiyuhub.top/upload/be2bb1bb-8d91-4e9b-8b4d-00d4c45774ae.png" desc="root@kali:/#" link="https://zhiyuhub.top/"}
|
24
|
+
::link[智宇]{logo="https://zhiyuhub.top/upload/be2bb1bb-8d91-4e9b-8b4d-00d4c45774ae.png" desc="root@kali:/#" link="https://zhiyuhub.top/"}
|
package/src/theme_config.ts
CHANGED
@@ -2,7 +2,7 @@ import { Icons } from "@comp/icons/icon";
|
|
2
2
|
import { SiteConfig } from "./site_config";
|
3
3
|
// import { faStar } from "@fortawesome/free-solid-svg-icons";
|
4
4
|
// import { library, icon } from "@fortawesome/fontawesome-svg-core";
|
5
|
-
//import Code from '
|
5
|
+
//import Code from './components/c.astro';
|
6
6
|
// library.add(faStar);
|
7
7
|
// const starIcon = icon({ prefix: "fas", iconName: "star" });
|
8
8
|
|
@@ -170,9 +170,10 @@ export const ThemeConfig: Configs = {
|
|
170
170
|
// },
|
171
171
|
type: "waline",
|
172
172
|
options: {
|
173
|
-
serverURL: "https://
|
173
|
+
serverURL: "https://comments.minearm.org",
|
174
174
|
},
|
175
175
|
//type: true,
|
176
176
|
//options: null,
|
177
177
|
},
|
178
178
|
};
|
179
|
+
|
package/public/13.jpg
DELETED
Binary file
|
@@ -1,50 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Extended Search
|
3
|
-
description: '关于Minearm-RPM & Website所使用的fusejs的扩展搜索语法'
|
4
|
-
heroColor: ''
|
5
|
-
pubDate: 2024-09-25
|
6
|
-
abbrlink: Search-help
|
7
|
-
cover: "/help1.png"
|
8
|
-
coverAlt: "help1"
|
9
|
-
tags:
|
10
|
-
- 'localSearch'
|
11
|
-
- 'Extended Search'
|
12
|
-
category: 'Help'
|
13
|
-
---
|
14
|
-
|
15
|
-
## Extended Search
|
16
|
-
|
17
|
-
This site uses [fusejs](https://www.fusejs.io) to provide local search services, allowing you to use extended search - a search format that can fine-tune search results, similar to:color[unix]{color="green"}
|
18
|
-
|
19
|
-
Space represents logical `AND`, pipe symbol | represents logical `OR`, and to escape spaces, use double quotes `""`.
|
20
|
-
|
21
|
-
| **Token** | **Match type** | **Description** |
|
22
|
-
| ----------- | -------------------------- | -------------------------------------- |
|
23
|
-
| `jscript` | fuzzy-match | Items that fuzzy match `jscript` |
|
24
|
-
| `=scheme` | exact-match | Items that are `scheme` |
|
25
|
-
| `'python` | include-match | Items that include `python` |
|
26
|
-
| `!ruby` | inverse-exact-match | Items that do not include `ruby` |
|
27
|
-
| `^java` | prefix-exact-match | Items that start with `java` |
|
28
|
-
| `!^earlang` | inverse-prefix-exact-match | Items that do not start with `earlang` |
|
29
|
-
| `.js$` | suffix-exact-match | Items that end with `.js` |
|
30
|
-
| `!.go$` | inverse-suffix-exact-match | Items that do not end with `.go` |
|
31
|
-
|
32
|
-
## 扩展搜索
|
33
|
-
|
34
|
-
本站使用[fusejs](https://www.fusejs.io)提供本地搜索服务,允许您使用扩展搜索——一种可以微调搜索结果的搜索格式,类似于:color[unix]{color="green"}
|
35
|
-
|
36
|
-
空格代表逻辑与`AND`,管道符|代表逻辑或`OR`,如要转义空格请使用双引号`""`
|
37
|
-
| **令牌** | **匹配类型** | **描述** |
|
38
|
-
| ----------- | ---------------- | --------------------------- |
|
39
|
-
| `jscript` | 模糊匹配 | 与 `jscript` 模糊匹配的项目 |
|
40
|
-
| `=scheme` | 精确匹配 | 是 `scheme` 的项目 |
|
41
|
-
| `'python` | 包含匹配 | 包含 `python` 的项目 |
|
42
|
-
| `!ruby` | 反向精确匹配 | 不包含 `ruby` 的项目 |
|
43
|
-
| `^java` | 前缀精确匹配 | 以 `java` 开头的项目 |
|
44
|
-
| `!^earlang` | 反向前缀精确匹配 | 不以 `earlang` 开头的项目 |
|
45
|
-
| `.js$` | 后缀精确匹配 | 以 `.js` 结尾的项目 |
|
46
|
-
| `!.go$` | 反向后缀精确匹配 | 不以 `.go` 结尾的项目 |
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
File without changes
|