diff --git a/HTTP.http b/HTTP.http index a00ebbb0..206bd0bb 100644 --- a/HTTP.http +++ b/HTTP.http @@ -1,14 +1,15 @@ +### cookie 修改 http-client.env.json 配置文件中的即可 ### 删除 settings 配置, Cookit 可以从 Console 后台 F12 获取 DELETE http://localhost:8090/api/v1alpha1/settings/theme-hao-setting Content-Type: application/json -Cookie: Idea-b3bcefb1=28a94d07-f033-473f-aaff-bce5a96ae38b; Hm_lvt_828db1fd637f3717a876af84bf0678bd=1664877624,1664884710; mozi-assist={"show":false,"audio":false,"speed":"middle","zomm":1,"cursor":false,"pointer":false,"bigtext":false,"overead":false}; Hm_lpvt_828db1fd637f3717a876af84bf0678bd=1665275924; XSRF-TOKEN=54b8f604-bde6-4977-8ba2-1ba66a1c334f; SESSION=25179b0d-8abb-4638-ab64-54eb277d7b5e +Cookie: {{cookie}} ### 设置 settings 的配置,将 settings 的配置文件先使用 yaml 转 json 转换后放在下面即可 POST http://localhost:8090/api/v1alpha1/settings Content-Type: application/json -Cookie: Idea-b3bcefb1=28a94d07-f033-473f-aaff-bce5a96ae38b; Hm_lvt_828db1fd637f3717a876af84bf0678bd=1664877624,1664884710; mozi-assist={"show":false,"audio":false,"speed":"middle","zomm":1,"cursor":false,"pointer":false,"bigtext":false,"overead":false}; Hm_lpvt_828db1fd637f3717a876af84bf0678bd=1665275924; XSRF-TOKEN=54b8f604-bde6-4977-8ba2-1ba66a1c334f; SESSION=25179b0d-8abb-4638-ab64-54eb277d7b5e +Cookie: {{cookie}} { "apiVersion": "v1alpha1", @@ -127,16 +128,18 @@ Cookie: Idea-b3bcefb1=28a94d07-f033-473f-aaff-bce5a96ae38b; Hm_lvt_828db1fd637f3 "help": "目前提供的小部件有:profile(站点资料), popular-posts(热门文章), latest-comments(最新评论), categories(文章分类), tags(文章标签)。你可以随意组合或排序,以逗号隔开。" }, { - "$formkit": "group", - "name": "profile", - "label": "信息卡片", - "children": [ - { - "$formkit": "text", - "name": "name", - "placeholder": "请输入名称" - } - ] + "$formkit": "text", + "name": "profile_name", + "label": "个人卡片名称", + "placeholder": "请填写个人卡片名称", + "help": "不填写默认为站点则名称" + }, + { + "$formkit": "textarea", + "name": "profile_desc", + "label": "个人卡片描述信息", + "placeholder": "请填写个人卡片描述信息", + "help": "支持使用 HTML 标签" } ] } @@ -146,5 +149,4 @@ Cookie: Idea-b3bcefb1=28a94d07-f033-473f-aaff-bce5a96ae38b; Hm_lvt_828db1fd637f3 - ### \ No newline at end of file diff --git a/http-client.env.json b/http-client.env.json new file mode 100644 index 00000000..e8b9bbe9 --- /dev/null +++ b/http-client.env.json @@ -0,0 +1,5 @@ +{ + "dev": { + "cookie": "Idea-b3bcefb1=28a94d07-f033-473f-aaff-bce5a96ae38b; Hm_lvt_828db1fd637f3717a876af84bf0678bd=1664877624,1664884710; mozi-assist={\"show\":false,\"audio\":false,\"speed\":\"middle\",\"zomm\":1,\"cursor\":false,\"pointer\":false,\"bigtext\":false,\"overead\":false}; Hm_lpvt_828db1fd637f3717a876af84bf0678bd=1665275924; XSRF-TOKEN=73e4ac5d-1176-4b86-aeb8-65ac5ac5155b; SESSION=81c19961-bd6b-44f3-ad30-a9a3da699d07" + } +} \ No newline at end of file diff --git a/settings.yaml b/settings.yaml index c495cd39..f2308ea8 100644 --- a/settings.yaml +++ b/settings.yaml @@ -58,7 +58,6 @@ spec: value: true - label: 隐藏 value: false - - group: sidebar label: 侧边栏 formSchema: @@ -67,10 +66,12 @@ spec: label: 小部件 value: "profile,popular-posts,latest-comments,categories,tags" help: "目前提供的小部件有:profile(站点资料), popular-posts(热门文章), latest-comments(最新评论), categories(文章分类), tags(文章标签)。你可以随意组合或排序,以逗号隔开。" - - $formkit: group - name: profile - label: 信息卡片 - children: - - $formkit: text - name: name - placeholder: 请输入名称 \ No newline at end of file + - $formkit: text + name: profile_name + label: 个人卡片名称 + placeholder: 请填写个人卡片名称 + help: "不填写默认为站点则名称" + - $formkit: textarea + name: profile_desc + placeholder: 请填写个人卡片描述信息 + help: "支持使用 HTML 标签" \ No newline at end of file diff --git a/templates/modules/aside.html b/templates/modules/aside.html index 64b19568..bd9ea8a1 100644 --- a/templates/modules/aside.html +++ b/templates/modules/aside.html @@ -2,39 +2,9 @@
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ +
diff --git a/templates/modules/widgets/profile.html b/templates/modules/widgets/profile.html index 894c5e5c..8f7cad8a 100644 --- a/templates/modules/widgets/profile.html +++ b/templates/modules/widgets/profile.html @@ -7,9 +7,14 @@
你好啊!我是
-
Liu ZhiHang
-
- 这里可以写一些公告信息或者个人介绍。 +
+
+
+