diff --git a/lingtropy-client/buildAssets/builder/config.js b/lingtropy-client/buildAssets/builder/config.js
index b103f80..345ddff 100644
--- a/lingtropy-client/buildAssets/builder/config.js
+++ b/lingtropy-client/buildAssets/builder/config.js
@@ -3,7 +3,7 @@ const dotenv = require('dotenv')
const packageJson = require('../../package.json')
const baseConfig = {
- productName: packageJson.name,
+ productName: '文案助手',
appId: packageJson.appId,
asar: true,
extends: null,
diff --git a/lingtropy-client/package-lock.json b/lingtropy-client/package-lock.json
index 38a8f99..3b8f1db 100644
--- a/lingtropy-client/package-lock.json
+++ b/lingtropy-client/package-lock.json
@@ -1,27 +1,28 @@
{
"name": "lingtropy",
- "version": "1.0.0",
+ "version": "1.0.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "lingtropy",
- "version": "1.0.0",
+ "version": "1.0.1",
"license": "MIT",
"dependencies": {
"@mdi/font": "^7.4.47",
"axios": "^1.8.3",
"electron-store": "^10.0.1",
"lingtropy": "file:",
+ "lingtropy2": "file:",
"pinia": "^3.0.1",
"vue": "^3.5.13",
"vue-i18n": "^11.1.1",
"vue-router": "^4.5.0",
- "vuetify": "^3.7.14",
- "vutron": "file:"
+ "vuetify": "^3.7.14"
},
"devDependencies": {
"@playwright/test": "^1.50.1",
+ "@types/electron-store": "^3.2.2",
"@typescript-eslint/eslint-plugin": "7.16.1",
"@typescript-eslint/parser": "7.16.1",
"@vitejs/plugin-vue": "^5.2.1",
@@ -41,7 +42,7 @@
"playwright": "^1.50.1",
"prettier": "^3.5.2",
"tree-kill": "^1.2.2",
- "typescript": "5.7.3",
+ "typescript": "^5.8.2",
"vite": "^6.2.0",
"vite-plugin-electron": "^0.29.0",
"vite-plugin-electron-renderer": "^0.14.6",
@@ -1321,6 +1322,17 @@
"@types/ms": "*"
}
},
+ "node_modules/@types/electron-store": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/@types/electron-store/-/electron-store-3.2.2.tgz",
+ "integrity": "sha512-N3X45mnsfnwmeZoXSZmeE7/Tne8kdbIKO1vQdbbEV04TzrMbWIeDVJJjnX2n5GH9O61zI612tet4s2jCZ55DXw==",
+ "deprecated": "This is a stub types definition. electron-store provides its own type definitions, so you do not need this installed.",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "electron-store": "*"
+ }
+ },
"node_modules/@types/eslint": {
"version": "8.56.11",
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.11.tgz",
@@ -6333,6 +6345,10 @@
"resolved": "",
"link": true
},
+ "node_modules/lingtropy2": {
+ "resolved": "",
+ "link": true
+ },
"node_modules/locate-path": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
@@ -8697,9 +8713,9 @@
}
},
"node_modules/typescript": {
- "version": "5.7.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz",
- "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==",
+ "version": "5.8.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz",
+ "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==",
"devOptional": true,
"license": "Apache-2.0",
"bin": {
@@ -9151,10 +9167,6 @@
}
}
},
- "node_modules/vutron": {
- "resolved": "",
- "link": true
- },
"node_modules/wcwidth": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",
diff --git a/lingtropy-client/package.json b/lingtropy-client/package.json
index 587ba64..476ad4f 100644
--- a/lingtropy-client/package.json
+++ b/lingtropy-client/package.json
@@ -1,7 +1,7 @@
{
"name": "lingtropy",
"appId": "com.lingnite.lingtropy",
- "version": "1.0.0",
+ "version": "1.0.1",
"description": "文案助手",
"homepage": "https://www.lingnite.com",
"author": "沈阳泠启网络科技有限公司",
@@ -45,6 +45,8 @@
"@mdi/font": "^7.4.47",
"axios": "^1.8.3",
"electron-store": "^10.0.1",
+ "lingtropy": "file:",
+ "lingtropy2": "file:",
"pinia": "^3.0.1",
"vue": "^3.5.13",
"vue-i18n": "^11.1.1",
@@ -53,6 +55,7 @@
},
"devDependencies": {
"@playwright/test": "^1.50.1",
+ "@types/electron-store": "^3.2.2",
"@typescript-eslint/eslint-plugin": "7.16.1",
"@typescript-eslint/parser": "7.16.1",
"@vitejs/plugin-vue": "^5.2.1",
@@ -72,7 +75,7 @@
"playwright": "^1.50.1",
"prettier": "^3.5.2",
"tree-kill": "^1.2.2",
- "typescript": "5.7.3",
+ "typescript": "^5.8.2",
"vite": "^6.2.0",
"vite-plugin-electron": "^0.29.0",
"vite-plugin-electron-renderer": "^0.14.6",
diff --git a/lingtropy-client/src/main/IPCs.ts b/lingtropy-client/src/main/IPCs.ts
index 07bef18..0e72347 100644
--- a/lingtropy-client/src/main/IPCs.ts
+++ b/lingtropy-client/src/main/IPCs.ts
@@ -3,7 +3,7 @@ import Constants from './utils/Constants'
import Store from 'electron-store'
import axios from 'axios'
import OpenAI from 'openai'
-import { HttpsProxyAgent } from 'https-proxy-agent'
+
const store = new Store()
/*
* IPC Communications
@@ -20,6 +20,7 @@ const store = new Store()
// }
// }
// const baseUrl = ""
+
export default class IPCs {
static initialize(): void {
// Get application version
diff --git a/lingtropy-client/src/main/MainRunner.ts b/lingtropy-client/src/main/MainRunner.ts
index a2d17de..70b1e74 100644
--- a/lingtropy-client/src/main/MainRunner.ts
+++ b/lingtropy-client/src/main/MainRunner.ts
@@ -10,13 +10,14 @@ import { createTray, hideWindow, showWindow } from './tray.ts'
const options = {
width: Constants.IS_DEV_ENV ? 1500 : 1250,
- height: 850,
+ height: 900,
tray: {
// all optional values from DEFAULT_TRAY_OPTIONS can de defined here
enabled: true,
menu: false, // true, to use a tray menu ; false to toggle visibility on click on tray icon
trayWindow: false // true, to use a tray floating window attached to top try icon
- }
+ },
+ title: '文案助手'
}
const exitApp = (mainWindow: BrowserWindow): void => {
diff --git a/lingtropy-client/src/main/index.ts b/lingtropy-client/src/main/index.ts
index b3a1666..defdc4c 100644
--- a/lingtropy-client/src/main/index.ts
+++ b/lingtropy-client/src/main/index.ts
@@ -19,6 +19,7 @@ app.on('ready', async () => {
*/
mainWindow = await createMainWindow()
+ // mainWindow.setTile("23")
})
app.on('activate', async () => {
diff --git a/lingtropy-client/src/main/utils/Constants.ts b/lingtropy-client/src/main/utils/Constants.ts
index 6afb0ba..131a7ba 100644
--- a/lingtropy-client/src/main/utils/Constants.ts
+++ b/lingtropy-client/src/main/utils/Constants.ts
@@ -15,7 +15,7 @@ export interface TrayOptions {
export default class Constants {
// Display app name (uppercase first letter)
- static APP_NAME = name.charAt(0).toUpperCase() + name.slice(1)
+ static APP_NAME = '文案助手' //name.charAt(0).toUpperCase() + name.slice(1)
static APP_VERSION = version
diff --git a/lingtropy-client/src/renderer/components/DisclaimerComponent.vue b/lingtropy-client/src/renderer/components/DisclaimerComponent.vue
new file mode 100644
index 0000000..857558f
--- /dev/null
+++ b/lingtropy-client/src/renderer/components/DisclaimerComponent.vue
@@ -0,0 +1,193 @@
+
+
+ 您正在使用本软件,请您仔细阅读以下内容并确认: 继续使用本工具,即表示您已阅读并同意上述声明。免责声明
+
+
+
智能改写,提升文案质量