pushDeer支持自架版

This commit is contained in:
whyour
2022-11-20 20:05:02 +08:00
parent 8b8336d9d0
commit 6f185570d6
7 changed files with 24 additions and 7 deletions
+9 -4
View File
@@ -31,7 +31,7 @@ import CheckUpdate from './checkUpdate';
import About from './about';
import { useOutletContext } from '@umijs/max';
import { SharedContext } from '@/layouts';
import './index.less'
import './index.less';
const { Text } = Typography;
const optionsWithDisabled = [
@@ -80,10 +80,15 @@ const Setting = () => {
dataIndex: 'scopes',
key: 'scopes',
align: 'center' as const,
width: '40%',
render: (text: string, record: any) => {
return record.scopes.map((scope: any) => {
return <Tag key={scope}>{(config.scopesMap as any)[scope]}</Tag>;
});
return (
<div style={{ textAlign: 'left' }}>
{record.scopes.map((scope: any) => {
return <Tag key={scope}>{(config.scopesMap as any)[scope]}</Tag>;
})}
</div>
);
},
},
{
+4
View File
@@ -137,6 +137,10 @@ export default {
tip: 'PushDeer的Keyhttps://github.com/easychen/pushdeer',
required: true,
},
{
label: 'pushDeerUrl',
tip: 'PushDeer的自架API endpoint,默认是 https://api2.pushdeer.com/message/push',
},
],
bark: [
{