Open syns2191 opened 5 hours ago
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.
:white_check_mark: syns2191
:x: nyomansutralia-jubelio
You have signed the CLA already but the status is still pending? Let us recheck it.
This pull request introduces various changes across multiple files, primarily focusing on enhancing application configuration management, translation consistency, and component structure. Key updates include the addition of a TypeScript script for modifying server and web application files, renaming translation keys to follow a new naming convention, and introducing new interfaces and constants for better type safety. Additionally, several components are modified to streamline language selection and improve the overall structure and error handling of the application.
File | Change Summary |
---|---|
.scripts/configure.electron.ts |
New script for modifying server and web application files based on command-line arguments. Includes functions for modifying specific JavaScript and TypeScript files. |
apps/server-web/src/locales/i18n/bg/translation.json |
Renamed translation keys in the "MENUAPP" section to include "APP" prefix for consistency. |
apps/server-web/src/locales/i18n/en/translation.json |
Similar renaming of translation keys in the "MENUAPP" section to include "APP" prefix. |
apps/server-web/src/main/helpers/constant.ts |
Added new properties to EventLists and SettingPageTypeMessage ; updated IPC_TYPES for better type safety. |
apps/server-web/src/main/helpers/interfaces/i-constant.ts |
Expanded Channels type to include a new string literal 'current-language' . |
apps/server-web/src/main/helpers/interfaces/i-menu.ts |
Introduced new interfaces AppMenu and AppSubMenu for menu structure. |
apps/server-web/src/main/helpers/interfaces/i-server.ts |
Changed GeneralConfig and ServerConfig interfaces from private to public. |
apps/server-web/src/main/helpers/interfaces/index.ts |
Added export for i-menu module. |
apps/server-web/src/main/helpers/replace-config.ts |
Added clearDesktopConfig function for deleting specific desktop configuration files. |
apps/server-web/src/main/helpers/services/desktop-server-factory.ts |
Updated getApiInstance method to assign env parameter to apiInstance . |
apps/server-web/src/main/helpers/services/libs/desktop-store.ts |
Added deepMerge and validateConfig methods; restructured setDefaultServerConfig . |
apps/server-web/src/main/helpers/services/web-service.ts |
Changed access modifiers for env and setApiConfig to public. |
apps/server-web/src/main/main.ts |
Enhanced structure with new imports, updated type annotations, and added initTrayMenu function. |
apps/server-web/src/main/menu.ts |
Updated defaultMenu method to return AppMenu[] and modified label strings to include "APP_" prefix. |
apps/server-web/src/renderer/components/LanguageSelector.tsx |
New React component for language selection. |
apps/server-web/src/renderer/components/SideBar.tsx |
Removed language props, integrated LanguageSelector component. |
apps/server-web/src/renderer/libs/interfaces/i-components.ts |
Removed langs and onLangChange properties from ISidebarComponent . |
apps/server-web/src/renderer/libs/interfaces/i-setting.ts |
Changed label property in ILanguages from required to optional. |
apps/server-web/src/renderer/pages/Setting.tsx |
Updated SideBar props to remove langs and onLangChange . |
apps/server-web/src/renderer/pages/setup/Landing.tsx |
Added dynamic language selection with LanguageSelector component. |
apps/web/app/api/desktop-server/route.ts |
Introduced new API endpoint for retrieving desktop configuration data. |
apps/web/app/constants.ts |
Added IS_DESKTOP_APP constant and modified basePath logic for desktop environment. |
apps/web/app/env.ts |
Introduced getServerSideProps function for server-side configuration retrieval. |
apps/web/app/services/client/axios.ts |
Enhanced API configuration with desktopServerOveride function and updated method signatures to async. |
apps/web/app/services/server/requests/desktop-source.ts |
Added getDesktopConfig function for retrieving server runtime configuration. |
package.json |
Added and updated scripts related to Electron configuration. |
🐰 In the land of code, where changes bloom,
A script was born to clear the gloom.
With translations neat, and menus bright,
Our app now shines, a true delight!
So hop along, let's celebrate,
For every change, we elevate! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
Please include a summary of the changes and the related issue.
Type of Change
Checklist
Previous screenshots
Please add here videos or images of previous status
Current screenshots
Please add here videos or images of previous status
Summary by CodeRabbit
Release Notes
New Features
LanguageSelector
component for dynamic language selection.Improvements
SideBar
component by integrating theLanguageSelector
.Bug Fixes
Chores
package.json
for better Electron integration.