Skip to content

Commit a050fff

Browse files
committed
reconstruction: view DDL
2 parents 1e50d6b + eb9ff6e commit a050fff

28 files changed

Lines changed: 508 additions & 64 deletions

File tree

.github/workflows/release_test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,15 @@ jobs:
145145
run: |
146146
xcrun notarytool store-credentials "Chat2DB" --apple-id "${{ secrets.MAC_APPLE_ID }}" --password "${{ secrets.MAC_APPLE_PASSWORD }}" --team-id "${{ secrets.MAC_TEAM_ID }}"
147147
xcrun notarytool submit chat2db-client/release/Chat2DB-Test-99.0.${{ github.run_id }}-Test.dmg --keychain-profile "Chat2DB"
148+
149+
- name: Notarize MacOS ARM64 App
150+
if: matrix.os == 'macos-latest' && matrix.arch == 'arm64'
151+
run: |
152+
xcrun notarytool store-credentials "Chat2DB" --apple-id "${{ secrets.MAC_APPLE_ID }}" --password "${{ secrets.MAC_APPLE_PASSWORD }}" --team-id "${{ secrets.MAC_TEAM_ID }}"
153+
xcrun notarytool submit chat2db-client/release/Chat2DB-Test-99.0.${{ github.run_id }}-Test-arm64.dmg --keychain-profile "Chat2DB"
154+
155+
156+
148157

149158
# Build Jar包
150159
- name: Prepare upload for Jar

chat2db-client/src/assets/font/demo_index.html

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ <h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" targ
5454
<div class="content unicode" style="display: block;">
5555
<ul class="icon_lists dib-box">
5656

57+
<li class="dib">
58+
<span class="icon iconfont">&#xe8e8;</span>
59+
<div class="name">305信息-线性圆框</div>
60+
<div class="code-name">&amp;#xe8e8;</div>
61+
</li>
62+
5763
<li class="dib">
5864
<span class="icon iconfont">&#xe726;</span>
5965
<div class="name">加号</div>
@@ -1230,9 +1236,9 @@ <h3 id="-font-face">第一步:拷贝项目下面生成的 <code>@font-face</co
12301236
<pre><code class="language-css"
12311237
>@font-face {
12321238
font-family: 'iconfont';
1233-
src: url('iconfont.woff2?t=1702019801419') format('woff2'),
1234-
url('iconfont.woff?t=1702019801419') format('woff'),
1235-
url('iconfont.ttf?t=1702019801419') format('truetype');
1239+
src: url('iconfont.woff2?t=1703676613329') format('woff2'),
1240+
url('iconfont.woff?t=1703676613329') format('woff'),
1241+
url('iconfont.ttf?t=1703676613329') format('truetype');
12361242
}
12371243
</code></pre>
12381244
<h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
@@ -1258,6 +1264,15 @@ <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面
12581264
<div class="content font-class">
12591265
<ul class="icon_lists dib-box">
12601266

1267+
<li class="dib">
1268+
<span class="icon iconfont icon-xinxi-xianxingyuankuang"></span>
1269+
<div class="name">
1270+
305信息-线性圆框
1271+
</div>
1272+
<div class="code-name">.icon-xinxi-xianxingyuankuang
1273+
</div>
1274+
</li>
1275+
12611276
<li class="dib">
12621277
<span class="icon iconfont icon-jiahao"></span>
12631278
<div class="name">
@@ -3022,6 +3037,14 @@ <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h
30223037
<div class="content symbol">
30233038
<ul class="icon_lists dib-box">
30243039

3040+
<li class="dib">
3041+
<svg class="icon svg-icon" aria-hidden="true">
3042+
<use xlink:href="#icon-xinxi-xianxingyuankuang"></use>
3043+
</svg>
3044+
<div class="name">305信息-线性圆框</div>
3045+
<div class="code-name">#icon-xinxi-xianxingyuankuang</div>
3046+
</li>
3047+
30253048
<li class="dib">
30263049
<svg class="icon svg-icon" aria-hidden="true">
30273050
<use xlink:href="#icon-jiahao"></use>

chat2db-client/src/assets/font/iconfont.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@font-face {
22
font-family: "iconfont"; /* Project id 3633546 */
3-
src: url('iconfont.woff2?t=1702019801419') format('woff2'),
4-
url('iconfont.woff?t=1702019801419') format('woff'),
5-
url('iconfont.ttf?t=1702019801419') format('truetype');
3+
src: url('iconfont.woff2?t=1703676613329') format('woff2'),
4+
url('iconfont.woff?t=1703676613329') format('woff'),
5+
url('iconfont.ttf?t=1703676613329') format('truetype');
66
}
77

88
.iconfont {
@@ -13,6 +13,10 @@
1313
-moz-osx-font-smoothing: grayscale;
1414
}
1515

16+
.icon-xinxi-xianxingyuankuang:before {
17+
content: "\e8e8";
18+
}
19+
1620
.icon-jiahao:before {
1721
content: "\e726";
1822
}

chat2db-client/src/assets/font/iconfont.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chat2db-client/src/assets/font/iconfont.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
"css_prefix_text": "icon-",
66
"description": "",
77
"glyphs": [
8+
{
9+
"icon_id": "1727525",
10+
"name": "305信息-线性圆框",
11+
"font_class": "xinxi-xianxingyuankuang",
12+
"unicode": "e8e8",
13+
"unicode_decimal": 59624
14+
},
815
{
916
"icon_id": "577312",
1017
"name": "加号",
236 Bytes
Binary file not shown.
80 Bytes
Binary file not shown.
96 Bytes
Binary file not shown.

chat2db-client/src/blocks/Tree/index.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { ITreeNode } from '@/typings';
77
import { TreeNodeType, databaseMap } from '@/constants';
88
import { treeConfig, switchIcon, ITreeConfigItem } from './treeConfig';
99
import { useCommonStore } from '@/store/common';
10+
import { setCurrentWorkspaceGlobalExtend } from '@/pages/main/workspace/store/common';
1011
import LoadingGracile from '@/components/Loading/LoadingGracile';
1112
import { setFocusId, useTreeStore } from './treeStore';
1213
import { useGetRightClickMenu } from './hooks/useGetRightClickMenu';
@@ -321,6 +322,19 @@ const TreeNode = memo((props: TreeNodeIProps) => {
321322
useCommonStore.setState({
322323
focusedContent: (treeNodeData.name || '') as any,
323324
});
325+
if(treeNodeData.treeNodeType === TreeNodeType.TABLE){
326+
setCurrentWorkspaceGlobalExtend({
327+
code: 'viewDDL',
328+
uniqueData: {
329+
dataSourceId: treeNodeData.extraParams?.dataSourceId,
330+
dataSourceName: treeNodeData.extraParams?.dataSourceName,
331+
databaseName: treeNodeData.extraParams?.databaseName,
332+
databaseType: treeNodeData.extraParams?.databaseType,
333+
schemaName: treeNodeData.extraParams?.schemaName,
334+
tableName: treeNodeData.name,
335+
}
336+
});
337+
}
324338
setFocusId(treeNodeData.uuid || '');
325339
};
326340

chat2db-client/src/components/Iconfont/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ if (__ENV__ === 'local') {
99
/* 在线链接服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */
1010
@font-face {
1111
font-family: 'iconfont'; /* Project id 3633546 */
12-
src: url('//at.alicdn.com/t/c/font_3633546_k2vec3ylzxg.woff2?t=1701918215684') format('woff2'),
13-
url('//at.alicdn.com/t/c/font_3633546_k2vec3ylzxg.woff?t=1701918215684') format('woff'),
14-
url('//at.alicdn.com/t/c/font_3633546_k2vec3ylzxg.ttf?t=1701918215684') format('truetype');
12+
src: url('//at.alicdn.com/t/c/font_3633546_oqofqe5r679.woff2?t=1703676557975') format('woff2'),
13+
url('//at.alicdn.com/t/c/font_3633546_oqofqe5r679.woff?t=1703676557975') format('woff'),
14+
url('//at.alicdn.com/t/c/font_3633546_oqofqe5r679.ttf?t=1703676557975') format('truetype');
1515
}
1616
`;
1717
const style = document.createElement('style');

0 commit comments

Comments
 (0)