mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-31 11:42:41 +08:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
## 3.0.12
|
||||||
|
|
||||||
|
`2023-11-13`
|
||||||
|
|
||||||
|
**更新日志**
|
||||||
|
|
||||||
|
- 🐞【Fixed】Copy as insert first row lost problem
|
||||||
|
|
||||||
|
|
||||||
## 3.0.11
|
## 3.0.11
|
||||||
|
|
||||||
`2023-11-08`
|
`2023-11-08`
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
## 3.0.12
|
||||||
|
|
||||||
|
`2023-11-13`
|
||||||
|
|
||||||
|
**更新日志**
|
||||||
|
|
||||||
|
- 🐞【修复】复制为insert第一行丢失问题
|
||||||
|
|
||||||
|
|
||||||
## 3.0.11
|
## 3.0.11
|
||||||
|
|
||||||
`2023-11-10`
|
`2023-11-10`
|
||||||
|
@ -20,12 +20,7 @@ export default defineConfig({
|
|||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
hash: true,
|
hash: true,
|
||||||
routes: [
|
routes: [
|
||||||
{ path: '/demo', component: '@/pages/demo' },
|
|
||||||
{ path: '/connections', component: 'main' },
|
|
||||||
{ path: '/workspace', component: 'main' },
|
|
||||||
{ path: '/dashboard', component: 'main' },
|
|
||||||
{ path: '/login', component: '@/pages/login' },
|
{ path: '/login', component: '@/pages/login' },
|
||||||
{ path: '/test', component: '@/pages/test' },
|
|
||||||
{ path: '/', component: 'main' },
|
{ path: '/', component: 'main' },
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -50,13 +45,7 @@ export default defineConfig({
|
|||||||
// rel: 'manifest',
|
// rel: 'manifest',
|
||||||
// href: 'manifest.json',
|
// href: 'manifest.json',
|
||||||
// }],
|
// }],
|
||||||
links: [
|
links: [{ rel: 'icon', type: 'image/ico', sizes: '32x32', href: '/static/front/logo.ico' }],
|
||||||
{ rel:"icon",
|
|
||||||
type:"image/ico",
|
|
||||||
sizes:"32x32",
|
|
||||||
href:"/static/front/logo.ico"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
headScripts: [
|
headScripts: [
|
||||||
`if (localStorage.getItem('app-local-storage-versions') !== 'v3') {
|
`if (localStorage.getItem('app-local-storage-versions') !== 'v3') {
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
@ -100,5 +89,5 @@ export default defineConfig({
|
|||||||
__APP_VERSION__: yarn_config.app_version || '0.0.0',
|
__APP_VERSION__: yarn_config.app_version || '0.0.0',
|
||||||
__APP_PORT__: yarn_config.app_port,
|
__APP_PORT__: yarn_config.app_port,
|
||||||
},
|
},
|
||||||
esbuildMinifyIIFE: true
|
esbuildMinifyIIFE: true,
|
||||||
});
|
});
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
}
|
}
|
||||||
.timeSpan{
|
.timeSpan{
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
.iconBox {
|
.iconBox {
|
||||||
transform: rotate(90deg);
|
transform: rotate(90deg);
|
||||||
|
@ -768,7 +768,6 @@ export default function TableBox(props: ITableProps) {
|
|||||||
const newRowDatas = tableData.filter((item) => rowIds.includes(item[colNoCode]!));
|
const newRowDatas = tableData.filter((item) => rowIds.includes(item[colNoCode]!));
|
||||||
const newRowDatasList = newRowDatas.map((item) => {
|
const newRowDatasList = newRowDatas.map((item) => {
|
||||||
const _item = lodash.cloneDeep(item);
|
const _item = lodash.cloneDeep(item);
|
||||||
delete _item[colNoCode];
|
|
||||||
return Object.keys(_item).map((i) => _item[i]);
|
return Object.keys(_item).map((i) => _item[i]);
|
||||||
});
|
});
|
||||||
const _updateDatas = newRowDatasList.map((item, index) => {
|
const _updateDatas = newRowDatasList.map((item, index) => {
|
||||||
@ -791,7 +790,6 @@ export default function TableBox(props: ITableProps) {
|
|||||||
const newRowDatas = tableData.filter((item) => rowIds.includes(item[colNoCode]!));
|
const newRowDatas = tableData.filter((item) => rowIds.includes(item[colNoCode]!));
|
||||||
const newRowDatasList = newRowDatas.map((item) => {
|
const newRowDatasList = newRowDatas.map((item) => {
|
||||||
const _item = lodash.cloneDeep(item);
|
const _item = lodash.cloneDeep(item);
|
||||||
delete _item[colNoCode];
|
|
||||||
return Object.keys(_item).map((i) => _item[i]);
|
return Object.keys(_item).map((i) => _item[i]);
|
||||||
});
|
});
|
||||||
const _updateDatas = newRowDatasList.map((item, index) => {
|
const _updateDatas = newRowDatasList.map((item, index) => {
|
||||||
|
@ -184,17 +184,6 @@ function AppContainer() {
|
|||||||
{startSchedule < 2 && (
|
{startSchedule < 2 && (
|
||||||
<div className={styles.loadingBox}>
|
<div className={styles.loadingBox}>
|
||||||
<Spin spinning={!serviceFail} size="large" />
|
<Spin spinning={!serviceFail} size="large" />
|
||||||
{/* 状态等于1时,说明没服务起来需要轮训接口,这时可能服务配置又问题,需要设置来修改 */}
|
|
||||||
{/* {startSchedule === 1 && (
|
|
||||||
<Setting
|
|
||||||
render={
|
|
||||||
<div className={styles.settingBox}>
|
|
||||||
<Iconfont code="" />
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
noLogin
|
|
||||||
/>
|
|
||||||
)} */}
|
|
||||||
{serviceFail && (
|
{serviceFail && (
|
||||||
<>
|
<>
|
||||||
<div className={styles.github}>
|
<div className={styles.github}>
|
||||||
|
@ -110,21 +110,21 @@ const registerAppMenu = (mainWindow, orgs) => {
|
|||||||
{
|
{
|
||||||
label: '访问官网',
|
label: '访问官网',
|
||||||
click() {
|
click() {
|
||||||
const url = 'https://chat2db.ai/';
|
const url = 'https://www.sqlgpt.cn/zh';
|
||||||
shell.openExternal(url);
|
shell.openExternal(url);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '查看文档',
|
label: '查看文档',
|
||||||
click() {
|
click() {
|
||||||
const url = 'https://doc.chat2db.ai/';
|
const url = 'https://doc.sqlgpt.cn/zh/';
|
||||||
shell.openExternal(url);
|
shell.openExternal(url);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '查看更新日志',
|
label: '查看更新日志',
|
||||||
click() {
|
click() {
|
||||||
const url = 'https://doc.chat2db.ai/changelog/';
|
const url = 'https://doc.sqlgpt.cn/zh/changelog/';
|
||||||
shell.openExternal(url);
|
shell.openExternal(url);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
.box {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
background-color: var(--color-bg);
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
import React, { memo } from 'react';
|
|
||||||
import styles from './index.less';
|
|
||||||
import classnames from 'classnames';
|
|
||||||
|
|
||||||
interface IProps {
|
|
||||||
className?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export default memo<IProps>(function Chat(props) {
|
|
||||||
const { className } = props
|
|
||||||
return <div className={classnames(styles.box, className)}>
|
|
||||||
Chat
|
|
||||||
</div>
|
|
||||||
})
|
|
@ -23,6 +23,26 @@ public class OperationUpdateRequest {
|
|||||||
*/
|
*/
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据源连接ID
|
||||||
|
*/
|
||||||
|
private Long dataSourceId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* db名称
|
||||||
|
*/
|
||||||
|
private String databaseName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表所在空间
|
||||||
|
*/
|
||||||
|
private String schemaName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库类型
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ddl内容
|
* ddl内容
|
||||||
*/
|
*/
|
||||||
|
34
script/local-client-build.sh
Normal file
34
script/local-client-build.sh
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# JRE_DIR="${JAVA_HOME}/jre"
|
||||||
|
JRE_DIR="~/Library/Java/JavaVirtualMachines/corretto-17.0.8.1/Contents/Home/"
|
||||||
|
JRE_TARGET_DIR="chat2db-client/static/jre"
|
||||||
|
CURRENT_ID="123"
|
||||||
|
|
||||||
|
# Clean
|
||||||
|
echo "Clean"
|
||||||
|
rm -rf chat2db-client/static
|
||||||
|
rm -rf chat2db-client/versions
|
||||||
|
rm -rf chat2db-client/release
|
||||||
|
|
||||||
|
# 使用 mkdir 创建目录,并使用 -p 参数确保如果目录已存在不会报错
|
||||||
|
mkdir -p "$JRE_TARGET_DIR"
|
||||||
|
|
||||||
|
# 使用 cp 命令复制 JAVA_HOME 目录内容到目标目录
|
||||||
|
# -r 参数表示递归复制整个目录
|
||||||
|
cp -r "${JRE_DIR}/" "$JRE_TARGET_DIR"
|
||||||
|
chmod -R 777 "$JRE_TARGET_DIR"
|
||||||
|
|
||||||
|
# 打包后端代码
|
||||||
|
mvn clean package -B '-Dmaven.test.skip=true' -f chat2db-server/pom.xml
|
||||||
|
mkdir -p chat2db-client/versions/99.0.${CURRENT_ID}/static
|
||||||
|
echo -n 99.0.${CURRENT_ID} > chat2db-client/versions/version
|
||||||
|
cp chat2db-server/chat2db-server-start/target/chat2db-server-start.jar chat2db-client/versions/99.0.${CURRENT_ID}/static/
|
||||||
|
|
||||||
|
# 打包前端代码
|
||||||
|
cd chat2db-client
|
||||||
|
yarn install
|
||||||
|
yarn run build:web:desktop --app_port=10822
|
||||||
|
cp -r dist ./versions/99.0.${CURRENT_ID}/
|
||||||
|
# 打包客户端
|
||||||
|
yarn run build:main:prod -c.productName=Chat2DB-Test -c.extraMetadata.version=99.0.${CURRENT_ID} --mac --arm64
|
Reference in New Issue
Block a user