1.4.3原版

This commit is contained in:
anian
2026-03-15 23:33:02 +08:00
commit 54fb39d15c
135 changed files with 14156 additions and 0 deletions
@@ -0,0 +1,13 @@
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
name: annotation-setting-link-rss
spec:
targetRef:
group: core.halo.run
kind: Link
formSchema:
- $formkit: "url"
name: "rss_url"
label: "RSS 地址"
@@ -0,0 +1,8 @@
apiVersion: plugin.halo.run/v1alpha1
kind: ReverseProxy
metadata:
name: friends-static-assets
rules:
- path: /static/**
file:
directory: static
@@ -0,0 +1,59 @@
apiVersion: v1alpha1
kind: Role
metadata:
name: role-template-fridends-anonymous
labels:
halo.run/role-template: "true"
halo.run/hidden: "true"
rbac.authorization.halo.run/aggregate-to-anonymous: "true"
annotations:
rbac.authorization.halo.run/module: "朋友圈"
rbac.authorization.halo.run/display-name: "朋友圈匿名接口"
rules:
- apiGroups: ["api.friend.moony.la"]
resources: ["parsingrss","friendposts"]
verbs: [ "get", "list" ]
---
apiVersion: v1alpha1
kind: Role
metadata:
name: role-template-friends-view
labels:
halo.run/role-template: "true"
annotations:
rbac.authorization.halo.run/module: "朋友圈"
rbac.authorization.halo.run/display-name: "朋友圈查看"
rbac.authorization.halo.run/ui-permissions: |
["plugin:friends:view"]
rules:
- apiGroups: [ "friend.moony.la" ]
resources: [ "friendposts","cronfriendposts" ]
verbs: [ "get", "list" ]
- apiGroups: [ "api.friend.moony.la" ]
resources: [ "friendposts","parsingrss"]
verbs: [ "get", "list" ]
---
apiVersion: v1alpha1
kind: Role
metadata:
name: role-template-friends-manage
labels:
halo.run/role-template: "true"
annotations:
rbac.authorization.halo.run/module: "朋友圈"
rbac.authorization.halo.run/display-name: "朋友圈管理"
rbac.authorization.halo.run/ui-permissions: |
["plugin:friends:manage"]
rbac.authorization.halo.run/dependencies: |
["role-template-friends-view"]
rules:
- apiGroups: [ "friend.moony.la" ]
resources: [ "friendposts","cronfriendposts"]
verbs: [ "create", "patch", "update", "delete", "deletecollection" ]
- apiGroups: [ "api.friend.moony.la" ]
resources: [ "friendposts","syncrssfeed","friendposts/delete"]
verbs: [ "create", "patch", "update", "delete", "deletecollection" ]
@@ -0,0 +1,19 @@
apiVersion: v1alpha1
kind: Setting
metadata:
name: plugin-friends-settings
spec:
forms:
- group: base
label: 基本设置
formSchema:
- $formkit: text
label: 页面标题
name: title
validation: required
value: '友链朋友圈'
- $formkit: text
label: 朋友圈列表显示条数
name: pageSize
validation: required|Number
value: 10
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

+25
View File
@@ -0,0 +1,25 @@
apiVersion: plugin.halo.run/v1alpha1
kind: Plugin
metadata:
name: plugin-friends
annotations:
"store.halo.run/app-id": "app-yISsV"
spec:
enabled: false
requires: ">=2.21.0"
pluginDependencies:
"PluginLinks": ">=1.5.0"
author:
name: 困困鱼
website: https://github.com/chengzhongxue
logo: logo.png
homepage: https://www.halo.run/store/apps/app-yISsV
repo: https://github.com/chengzhongxue/plugin-friends-new
issues: https://github.com/chengzhongxue/plugin-friends-new/issues
configMapName: plugin-friends-configMap
settingName: plugin-friends-settings
displayName: "朋友圈"
description: "提供对 RSS 链接的订阅功能,支持获取其订阅内容"
license:
- name: "GPL-3.0"
url: "https://github.com/chengzhongxue/plugin-friends-new/blob/main/LICENSE"
File diff suppressed because one or more lines are too long
+16
View File
@@ -0,0 +1,16 @@
@media (prefers-color-scheme: dark) {
.color-scheme-auto,
[data-color-scheme='auto'] friends-rss {
color-scheme: dark;
--friends-rss-title-color: #f4f4f5;
--friends-rss-description-color: #a1a1aa;
}
}
.color-scheme-dark,
.dark,
[data-color-scheme='dark'] friends-rss {
color-scheme: dark;
--friends-rss-title-color: #f4f4f5;
--friends-rss-description-color: #a1a1aa;
}
File diff suppressed because it is too large Load Diff