chatluna-plugin-onebot-sandbox 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { Context } from 'cordis'
2
2
  import zh from './locales/zh.yml'
3
3
  import en from './locales/en.yml'
4
+ import './nav-badge.css'
4
5
 
5
6
  export default function apply(ctx: Context) {
6
7
  ctx.locale.register('onebot-sandbox', { zh, en })
@@ -8,8 +9,8 @@ export default function apply(ctx: Context) {
8
9
  ctx.slots.route({
9
10
  path: '/onebot-sandbox/:view?',
10
11
  page: async () => (await import('./app')).SandboxApp,
11
- title: () => t('onebot-sandbox.title'),
12
- icon: 'flask-conical',
12
+ title: () => t('onebot-sandbox.nav'),
13
+ icon: 'flask',
13
14
  order: 60,
14
15
  group: 'chat',
15
16
  groupOrder: 20,
@@ -1,3 +1,4 @@
1
+ onebot-sandbox.nav: "Sandbox"
1
2
  onebot-sandbox.title: "OneBot Sandbox"
2
3
  sandbox.avatar.back: "Back to profile"
3
4
  sandbox.avatar.builtin: "Built-in avatar {id}"
@@ -1,3 +1,4 @@
1
+ onebot-sandbox.nav: "沙盒"
1
2
  onebot-sandbox.title: "OneBot 沙盒"
2
3
  sandbox.avatar.back: "返回资料编辑"
3
4
  sandbox.avatar.builtin: "内置头像 {id}"
@@ -0,0 +1,12 @@
1
+ /* 侧栏标题只接受字符串,「OneBot」角标挂在宿主侧栏条目的标题后面;收起侧栏时标题不渲染,角标随之消失 */
2
+ [data-slot='sidebar-item'][href*='/onebot-sandbox'] > span::after {
3
+ content: 'OneBot';
4
+ display: inline-block;
5
+ margin-left: 2px;
6
+ font-size: 9px;
7
+ font-weight: 500;
8
+ line-height: 9px;
9
+ letter-spacing: 0.02em;
10
+ vertical-align: top;
11
+ opacity: 0.7;
12
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "client/app.tsx": {
3
- "file": "app-BhlZI8M1.js",
3
+ "file": "app-CmsXGEJ1.js",
4
4
  "name": "app",
5
5
  "src": "client/app.tsx",
6
6
  "isDynamicEntry": true