Skip to content

Commit

Permalink
chore: fix import and config
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jul 18, 2024
1 parent 5f55653 commit 01e05a0
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/client/app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "../../../tsconfig.client",
"extends": "../tsconfig.client",
"compilerOptions": {
"rootDir": "..",
},
"include": [
".",
],
}
}
10 changes: 6 additions & 4 deletions packages/client/client/components/common/k-button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ function onClick(event: MouseEvent) {
padding: 0.4em 1em;
transition: var(--color-transition);
display: inline-block;
// default: transparent & framed
color: var(--el-button-text-color);
border: 1px solid var(--k-color-border);
background-color: transparent;
&.round {
border-radius: 50%;
}
Expand All @@ -66,10 +72,6 @@ function onClick(event: MouseEvent) {
cursor: default;
}
// default: transparent & framed
color: var(--el-button-text-color);
border: 1px solid var(--k-color-border);
background-color: transparent;
&.disabled {
color: var(--k-color-disabled);
border-color: var(--k-color-border);
Expand Down
2 changes: 1 addition & 1 deletion packages/client/client/components/icons/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { App, Component, defineComponent, h, markRaw, reactive } from 'vue'
import * as components from '@koishijs/components'
import * as components from '@cordisjs/components'
import Default from './activity/default.vue'
import Ellipsis from './activity/ellipsis.vue'
import Home from './activity/home.vue'
Expand Down
2 changes: 1 addition & 1 deletion packages/client/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.client",
"extends": "../tsconfig.client",
"compilerOptions": {
"rootDir": ".",
},
Expand Down
3 changes: 2 additions & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"lib",
"src",
"bin.js",
"global.d.ts"
"global.d.ts",
"tsconfig.client.json"
],
"bin": {
"cordis-webui": "bin.js"
Expand Down
20 changes: 20 additions & 0 deletions packages/client/tsconfig.client.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// We do not use "extends" here because dev mode cannot access the root tsconfig.
"compilerOptions": {
"target": "es2022",
"module": "esnext",
"declaration": true,
"jsx": "preserve",
"noEmit": true,
"composite": true,
"incremental": true,
"skipLibCheck": true,
"esModuleInterop": true,
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": false,
"types": [
"@cordisjs/client/global",
],
},
}
2 changes: 1 addition & 1 deletion plugins/logger/client/logs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
import { computed } from 'vue'
import { Dict, Time, VirtualList, useContext, useRpc, send } from '@cordisjs/client'
import {} from '@cordisjs/plugin-manager/client'
import { AnsiUp } from 'ansi_up'
import Logger from 'reggol'
import AnsiUp from 'ansi_up'
defineOptions({
inheritAttrs: false,
Expand Down

0 comments on commit 01e05a0

Please sign in to comment.