Skip to content

Commit

Permalink
feat: update dependency configuration and internationalization for pa…
Browse files Browse the repository at this point in the history
…ckage source URL

- Changed the label and property for the proxy field to pkgSrcURL in DependencyConfigDialog.vue, enhancing clarity in the UI.
- Removed the deprecated setting constants related to proxy configuration from the constants module.
- Updated internationalization files for both English and Chinese to reflect the new pkgSrcURL terminology.
- Adjusted type definitions in interfaces to replace proxy with pkg_src_url, ensuring consistency across the codebase.

These changes improve the user experience by providing clearer terminology and removing outdated configurations.
  • Loading branch information
Marvin Zhang committed Dec 30, 2024
1 parent 4e73858 commit 3310093
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/components/core/dependency/DependencyConfigDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ defineOptions({ name: 'ClDependencyConfigDialog' });
</cl-form-item>
<cl-form-item
:span="4"
:label="t('views.env.deps.config.form.proxy')"
prop="proxy"
:label="t('views.env.deps.config.form.pkgSrcURL')"
prop="pkg_src_url"
>
<el-input
v-model="form.proxy"
:placeholder="t('views.env.deps.config.form.proxy')"
v-model="form.pkg_src_url"
:placeholder="t('views.env.deps.config.form.pkgSrcURL')"
/>
</cl-form-item>
</cl-form>
Expand Down
1 change: 0 additions & 1 deletion src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export * from './node';
export * from './os';
export * from './plugin';
export * from './router';
export * from './setting';
export * from './sort';
export * from './spider';
export * from './tab';
Expand Down
5 changes: 0 additions & 5 deletions src/constants/setting.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/i18n/lang/en/views/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const env: LViewsEnv = {
name: 'Name',
execCmd: 'Execute Command',
pkgCmd: 'Package Command',
proxy: 'Proxy',
pkgSrcURL: 'Package Source URL',
defaultVersion: 'Default Version',
},
alert: {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/lang/zh/views/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const env: LViewsEnv = {
name: '名称',
execCmd: '执行命令',
pkgCmd: '依赖管理命令',
proxy: '代理',
pkgSrcURL: '依赖源 URL',
defaultVersion: '默认版本',
},
alert: {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/i18n/views/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ interface LViewsEnv {
name: string;
execCmd: string;
pkgCmd: string;
proxy: string;
pkgSrcURL: string;
defaultVersion: string;
};
alert: {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/models/dependency.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export declare global {
enabled?: boolean;
exec_cmd?: string;
pkg_cmd?: string;
proxy?: string;
pkg_src_url?: string;
setup?: boolean;
search_ready?: boolean;
total_dependencies?: number;
Expand Down

0 comments on commit 3310093

Please sign in to comment.