@@ -28,6 +28,7 @@ import "./OsDesktop.css";
2828import { LeftOutlined , RightOutlined } from "@ant-design/icons" ;
2929import { useHistory } from "react-router-dom" ;
3030import routeManager , { DynamicRouteComponent } from "./component/AppRouteManager" ;
31+ import { StaticBaseUrl } from "./Conf" ;
3132
3233const DesktopIcon = ( { name, iconType, onClick} ) => {
3334 const [ isHovered , setIsHovered ] = useState ( false ) ;
@@ -62,7 +63,7 @@ const DesktopIcon = ({name, iconType, onClick}) => {
6263 >
6364 < div className = "icon" >
6465 < img
65- src = { `https://cdn.casibase.org /apps/${ iconType } .svg` }
66+ src = { `${ StaticBaseUrl } /apps/${ iconType } .svg` }
6667 alt = { name }
6768 />
6869 </ div >
@@ -165,7 +166,7 @@ const Window = ({id, title, isMaximized, isMinimized, zIndex, position, onClose,
165166 } }
166167 />
167168 </ div >
168- < div className = "window-title" > { title } </ div >
169+ < div className = "window-title" > { i18next . t ( `general: ${ title } ` ) } </ div >
169170 < div className = "window-controls" >
170171 < Button size = "small" onClick = { ( e ) => {
171172 e . stopPropagation ( ) ;
@@ -237,7 +238,7 @@ const OsDesktop = (props) => {
237238 const openWindow = ( appType ) => {
238239 const id = `window-${ nextWindowId } ` ;
239240 const appConfig = routeManager . getAppConfig ( appType ) ;
240- const title = i18next . t ( `general: ${ appConfig . title } ` ) ;
241+ const title = appConfig . title ;
241242 const initialRoute = `/${ appType } s` ;
242243
243244 const offset = ( windows . length * 30 ) % 150 ;
0 commit comments