Skip to content

Commit f21c0b7

Browse files
committed
chore: 添加元数据
1 parent c435a22 commit f21c0b7

File tree

6 files changed

+52
-113
lines changed

6 files changed

+52
-113
lines changed

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# 以管理员身份自启动
2+
3+
本插件可以通过计划任务,让 ClassIsland 在开机时以管理员身份自启动。
4+
5+
![图片](https://github.com/user-attachments/assets/55e09328-5cde-49b9-be42-6e48a895f8eb)
6+
7+
## 使用方法
8+
9+
1. 在插件市场下载本插件;
10+
2. 转到[【管理员自启动】](classisland://app/settings/classisland.startUpAsAdmin)页面;
11+
3. 点击【创建/更新计划任务】按钮;
12+
4. 大功告成!现在 ClassIsland 可以在用户登录时以管理员身份自启动了。
13+
14+
## 注意事项
15+
16+
如果您在创建计划任务之后移动了 ClassIsland 程序本体,需要按照上面的步骤再创建一遍计划任务。创建的计划任务不会随插件卸载/禁用而被删除。
17+
18+
## 致谢
19+
20+
本项目使用了以下第三方库:
21+
22+
- [TaskScheduler](https://github.com/dahall/taskscheduler)
23+
- [ClassIsland.PluginSdk](https://github.com/ClassIsland/ClassIsland/)
24+
25+
## 许可证
26+
27+
本项目基于 [GNU General Public License v3.0](https://github.com/ClassIsland/StartUpAsAdmin/blob/master/LICENSE.txt) 许可。

StartUpAsAdmin/README.md

+17-108
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,27 @@
1-
# 插件自述文件
1+
# 以管理员身份自启动
22

3-
本文件会在插件市场上显示。在安装插件后,本自述文件也会在【应用设置】->【插件】页面中显示。因此,本文件也将会是用户了解你的插件功能的重要途径,建议好好写 README
3+
本插件可以通过计划任务,让 ClassIsland 在开机时以管理员身份自启动
44

5-
**注意事项:**
5+
![图片](https://github.com/user-attachments/assets/55e09328-5cde-49b9-be42-6e48a895f8eb)
66

7-
- 嵌入图片时请使用网络图床。
8-
- 支持在这里直接调用 ClassIsland 内部的 Uri,例如[classisland://app/test/](classisland://app/test/)
9-
- 本文件一般会在 ClassIsland 内置的 Markdown 渲染器(基于 [MdXaml](https://github.com/whistyun/MdXaml))中渲染,仅支持部分 Markdown 语法。
7+
## 使用方法
108

11-
***
9+
1. 在插件市场下载本插件;
10+
2. 转到[【管理员自启动】](classisland://app/settings/classisland.startUpAsAdmin)页面;
11+
3. 点击【创建/更新计划任务】按钮;
12+
4. 大功告成!现在 ClassIsland 可以在用户登录时以管理员身份自启动了。
1213

13-
**支持的 Markdown 语法:**
14+
## 注意事项
1415

15-
> 本示例魔改自 [Leanote 博客](http://leanote.leanote.com/post/markdown-source-code)
16+
如果您在创建计划任务之后移动了 ClassIsland 程序本体,需要按照上面的步骤再创建一遍计划任务。创建的计划任务不会随插件卸载/禁用而被删除
1617

17-
# Welcome to ClassIsland! 欢迎来到ClassIsland!
18-
19-
## 1. 排版
20-
21-
**粗体** *斜体*
22-
23-
~~这是一段错误的文本。~~
24-
25-
引用:
26-
27-
> 123123123123
28-
29-
有充列表:
30-
1. 支持Vim
31-
2. 支持Emacs
32-
33-
无序列表:
34-
35-
- 项目1
36-
- 项目2
37-
38-
39-
## 2. 图片与链接
40-
41-
网络图片:
42-
![Banner](https://github.com/user-attachments/assets/a815dd7d-8343-4da5-aee4-3f754aa297e4)
18+
## 致谢
4319

44-
WPF 资源图片
20+
本项目使用了以下第三方库
4521

46-
![1690356161339](pack://application:,,,/ClassIsland;component/Assets/AppLogo.png)
22+
- [TaskScheduler](https://github.com/dahall/taskscheduler)
23+
- [ClassIsland.PluginSdk](https://github.com/ClassIsland/ClassIsland/)
4724

48-
链接:
49-
50-
[ClassIsland 官网](http://classisland.tech)
51-
52-
## 3. 标题
53-
54-
以下是各级标题, 最多支持5级标题
55-
56-
```
57-
# h1
58-
## h2
59-
### h3
60-
#### h4
61-
##### h4
62-
###### h5
63-
```
64-
65-
## 4. 代码
66-
67-
示例:
68-
69-
function get(key) {
70-
return m[key];
71-
}
72-
73-
代码高亮示例:
74-
75-
``` javascript
76-
/**
77-
* nth element in the fibonacci series.
78-
* @param n >= 0
79-
* @return the nth element, >= 0.
80-
*/
81-
function fib(n) {
82-
var a = 1, b = 1;
83-
var tmp;
84-
while (--n >= 0) {
85-
tmp = a;
86-
a += b;
87-
b = tmp;
88-
}
89-
return a;
90-
}
91-
92-
document.write(fib(10));
93-
```
94-
95-
```python
96-
class Employee:
97-
empCount = 0
98-
99-
def __init__(self, name, salary):
100-
self.name = name
101-
self.salary = salary
102-
Employee.empCount += 1
103-
```
104-
105-
# 5. Markdown 扩展
106-
107-
Markdown 扩展支持:
108-
109-
* 表格
110-
111-
## 5.1 表格
112-
113-
Item | Value
114-
-------- | ---
115-
Computer | \$1600
116-
Phone | \$12
117-
Pipe | \$1
118-
25+
## 许可证
26+
27+
本项目基于 [GNU General Public License v3.0](https://github.com/ClassIsland/StartUpAsAdmin/blob/master/LICENSE.txt) 许可。

StartUpAsAdmin/StartUpAsAdmin.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
</ItemGroup>
2222

2323
<ItemGroup>
24+
<None Update="icon.ico">
25+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
26+
</None>
2427
<None Update="manifest.yml">
2528
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2629
</None>
2730
<None Update="README.md">
2831
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2932
</None>
30-
<None Update="icon.png">
31-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
32-
</None>
3333
</ItemGroup>
3434
</Project>

StartUpAsAdmin/icon.ico

80.9 KB
Binary file not shown.

StartUpAsAdmin/icon.png

-285 KB
Binary file not shown.

StartUpAsAdmin/manifest.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
# YAML 教程:https://www.runoob.com/w3cnote/yaml-intro.html
33
# 插件清单格式:https://docs.classisland.tech/zh-cn/latest/dev/plugins/create-project/#%E6%8F%92%E4%BB%B6%E6%B8%85%E5%8D%95%E6%96%87%E4%BB%B6
44

5-
id: StartUpAsAdmin
5+
id: classisland.startUpAsAdmin
66
name: 以管理员身份自启动
77
description: 通过计划任务,让 ClassIsland 在开机时以管理员身份自启动。
88
entranceAssembly: "StartUpAsAdmin.dll"
9-
url: https://example.com
9+
url: https://github.com/ClassIsland/StartUpAsAdmin
1010
version: 1.0.0.0
1111
apiVersion: 1.5.0
12+
icon: icon.ico
1213
author: ClassIsland
14+
repoOwner: ClassIsland
15+
repoName: StartUpAsAdmin

0 commit comments

Comments
 (0)