mirror of https://github.com/msgbyte/tailchat
feat: 插件中心增加文档预览
parent
31a387e441
commit
f6eb4d5417
@ -0,0 +1,10 @@
|
||||
import { getServiceUrl } from '../manager/service';
|
||||
|
||||
/**
|
||||
* 解析url, 将中间的常量替换成变量
|
||||
* @param originUrl 原始Url
|
||||
* @returns 解析后的url
|
||||
*/
|
||||
export function parseUrlStr(originUrl: string): string {
|
||||
return String(originUrl).replace('{BACKEND}', getServiceUrl());
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
## com.msgbyte.webview
|
||||
|
||||
为 `Tailchat` 增加 `Webview` 能力
|
||||
|
||||
### Usage
|
||||
|
||||
在 群组设置 -> 创建面板 可以添加网页面板。
|
@ -0,0 +1,18 @@
|
||||
.tailchat-markdown {
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
word-break: break-all;
|
||||
margin: 20px 0;
|
||||
line-height: 1.2;
|
||||
text-align: left;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
code {
|
||||
@apply px-2 py-1 bg-black bg-opacity-20 rounded;
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
import 'antd/dist/antd.css';
|
||||
import './antd/index.less';
|
||||
import 'tailwindcss/tailwind.css';
|
||||
import './tailwind.less';
|
||||
import './global.less';
|
||||
|
@ -0,0 +1,19 @@
|
||||
@tailwind base;
|
||||
|
||||
@layer base {
|
||||
h1 {
|
||||
@apply text-2xl;
|
||||
}
|
||||
|
||||
h2 {
|
||||
@apply text-xl;
|
||||
}
|
||||
|
||||
h3 {
|
||||
@apply text-lg;
|
||||
}
|
||||
}
|
||||
|
||||
@tailwind components;
|
||||
|
||||
@tailwind utilities;
|
Loading…
Reference in New Issue