Skip to content

Commit

Permalink
baseUrl added to BrowserFS config
Browse files Browse the repository at this point in the history
  • Loading branch information
chinonso098 committed Aug 6, 2024
1 parent 7126b80 commit 9cb7994
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 4 additions & 2 deletions src/app/shared/system-service/file.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class FileService{
'/':{
fs: 'OverlayFS',
options:{
readable:{fs: 'XmlHttpRequest', options:{index: osDriveFileSystemIndex}},
readable:{fs: 'XmlHttpRequest', options:{index: osDriveFileSystemIndex, baseUrl:'osdrive'}},
writable:{fs:"IndexedDB", options: {storeName: "browser-fs-cache"}}
},
},
Expand Down Expand Up @@ -316,15 +316,17 @@ export class FileService{

await this.initBrowserFsAsync();

const path1 = '/Desktop'
return new Promise<string[]>((resolve, reject) => {
const fs = this._fileSystem;
const interval = setInterval(() => {
fs.readdir(path, function(err, files) {
fs.readdir(path1, function(err, files) {
if(err){
console.log("Oops! a boo boo happened, filesystem wasn't ready:", err);
reject([]);
}else{
clearInterval(interval);
console.log(`files:${files}`);
resolve(files || []);
}
});
Expand Down
4 changes: 0 additions & 4 deletions src/app/system-apps/terminal/terminal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,18 +640,14 @@ export class TerminalComponent implements BaseComponent, OnInit, AfterViewInit,
terminalCmd.setCommandOutput = result;
}



if(rootCmd == "mv"){
const result = await this._terminaCommandsImpl.mv(cmdStringArr[1], cmdStringArr[2]);
terminalCmd.setResponseCode = this.Success;
terminalCmd.setCommandOutput = result;
}

if (rootCmd == "cp"){

const option = cmdStringArr[1];

const source = cmdStringArr[2];
const destination = cmdStringArr[3];

Expand Down
2 changes: 1 addition & 1 deletion src/osdrive.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"osdrive":{"Desktop":{"fileexplorer.url":null,"heat.url":null,"hello.url":null,"surfs.url":null,"taskmanager.url":null,"terminal.url":null,"titanium.url":null},"Documents":{"Credits.md":null,"Dynamic Programming.txt":null,"PDFs":{"CyberPower_UM_EC650LCD 2.pdf":null,"MotherBoard":{"PRO-B650-P-WIFI.pdf":null}},"Screen-Shots":{"Sample ScreenShot.png":null},"starting a new proj in VSCode.txt":null},"Downloads":{"anothertest.txt":null},"Games":{"D3D.url":null,"Data":{"D3D.jsdos":null,"Digger.jsdos":null,"Doom.jsdos":null,"Jill of the Jungle.jsdos":null,"Machine Nation.jsdos":null,"Shadow Knight.jsdos":null},"Diggers.url":null,"Doom.url":null,"Flash-Games ":{"logo-anim.swf":null},"icons":{"d3d.png":null,"diggers.png":null,"doom.png":null,"doom1.png":null}},"Music":{"jazz-club-in-new-orleans.mp3":null,"titanium.mp3":null},"Pictures":{"Samples":{"Chill on the Moon.jpg":null,"Sparkling Water.jpg":null,"Sunset Car.jpg":null,"Sunset.jpg":null,"mystical.jpg":null,"no_img.jpeg":null},"favicon.ico":null,"favicon1.ico":null,"favicon_nice.png":null,"heat.png":null},"Videos":{"nuts.mp4":null,"surfs.mp4":null},"icons":{"arrow_down.png":null,"arrow_next.png":null,"arrow_up.png":null,"audioplayer.png":null,"camera_48.png":null,"chkmark26.png":null,"chkmark32.png":null,"circle.png":null,"cmd.ico":null,"code-editor-2_48.png":null,"code-editor_64.png":null,"config.ico":null,"content_view.ico":null,"cross_mark_32.png":null,"desktop.ico":null,"desktop_folder.ico":null,"details_pane.ico":null,"details_view.ico":null,"documents.ico":null,"documents_folder.ico":null,"downloads.ico":null,"downloads.png":null,"downloads1.png":null,"downloads_folder.ico":null,"econo.png":null,"empty_folder.ico":null,"empty_recycle.ico":null,"emulator-1.png":null,"emulator-2.png":null,"extral_large_image.ico":null,"file.ico":null,"file_explorer.ico":null,"file_explorer.png":null,"flash48.png":null,"flash_67.png":null,"floppy.ico":null,"folder.ico":null,"games.ico":null,"generic-program.ico":null,"grey_history_32.png":null,"grey_nav_expand_32.png":null,"grey_nav_forward_32.png":null,"grey_nav_refresh_32.png":null,"image.ico":null,"info_48.png":null,"js-dos-logo.png":null,"large_image.ico":null,"list_of_thumbnails_view.ico":null,"markdown-2_50.png":null,"markdown-50.png":null,"markdown-file_50.png":null,"medium_icons_view.ico":null,"music.png":null,"music_file.ico":null,"music_folder.ico":null,"my_computer.ico":null,"nav_expand_32.png":null,"nav_left_32.png":null,"nav_right_32.png":null,"nav_up-32.png":null,"navigation_pane.ico":null,"non_empty_folder.ico":null,"non_empty_recycle.ico":null,"pdf-48.png":null,"photos_48.png":null,"picture_folder.ico":null,"pictures.ico":null,"pin_24.png":null,"preview_pane.ico":null,"red-x_50.png":null,"search_32.png":null,"small_icons_view.ico":null,"taskmanger.png":null,"taskmanger_2.png":null,"terminal-2_48.png":null,"terminal_48.png":null,"text-editor_48.png":null,"tiles_view.ico":null,"unknown.ico":null,"unpin_24.png":null,"unpin_32.png":null,"video.ico":null,"video_file.ico":null,"video_folder.ico":null,"videoplayer-2_48.png":null,"videoplayer.png":null,"vs-code_48.png":null,"vs-code_64.png":null,"white_history_32.png":null,"x_32.png":null,"zip_folder.ico":null},"simple.txt":null}}
{"Desktop":{"fileexplorer.url":null,"heat.url":null,"hello.url":null,"surfs.url":null,"taskmanager.url":null,"terminal.url":null,"titanium.url":null},"Documents":{"Credits.md":null,"Dynamic Programming.txt":null,"PDFs":{"CyberPower_UM_EC650LCD 2.pdf":null,"MotherBoard":{"PRO-B650-P-WIFI.pdf":null}},"Screen-Shots":{"Sample ScreenShot.png":null},"starting a new proj in VSCode.txt":null},"Downloads":{"anothertest.txt":null},"Games":{"D3D.url":null,"Data":{"D3D.jsdos":null,"Digger.jsdos":null,"Doom.jsdos":null,"Jill of the Jungle.jsdos":null,"Machine Nation.jsdos":null,"Shadow Knight.jsdos":null},"Diggers.url":null,"Doom.url":null,"Flash-Games ":{"logo-anim.swf":null},"icons":{"d3d.png":null,"diggers.png":null,"doom.png":null,"doom1.png":null}},"Music":{"jazz-club-in-new-orleans.mp3":null,"titanium.mp3":null},"Pictures":{"Samples":{"Chill on the Moon.jpg":null,"Sparkling Water.jpg":null,"Sunset Car.jpg":null,"Sunset.jpg":null,"mystical.jpg":null,"no_img.jpeg":null},"favicon.ico":null,"favicon1.ico":null,"favicon_nice.png":null,"heat.png":null},"Videos":{"nuts.mp4":null,"surfs.mp4":null},"icons":{"arrow_down.png":null,"arrow_next.png":null,"arrow_up.png":null,"audioplayer.png":null,"camera_48.png":null,"chkmark26.png":null,"chkmark32.png":null,"circle.png":null,"cmd.ico":null,"code-editor-2_48.png":null,"code-editor_64.png":null,"config.ico":null,"content_view.ico":null,"cross_mark_32.png":null,"desktop.ico":null,"desktop_folder.ico":null,"details_pane.ico":null,"details_view.ico":null,"documents.ico":null,"documents_folder.ico":null,"downloads.ico":null,"downloads.png":null,"downloads1.png":null,"downloads_folder.ico":null,"econo.png":null,"empty_folder.ico":null,"empty_recycle.ico":null,"emulator-1.png":null,"emulator-2.png":null,"extral_large_image.ico":null,"file.ico":null,"file_explorer.ico":null,"file_explorer.png":null,"flash48.png":null,"flash_67.png":null,"floppy.ico":null,"folder.ico":null,"games.ico":null,"generic-program.ico":null,"grey_history_32.png":null,"grey_nav_expand_32.png":null,"grey_nav_forward_32.png":null,"grey_nav_refresh_32.png":null,"image.ico":null,"info_48.png":null,"js-dos-logo.png":null,"large_image.ico":null,"list_of_thumbnails_view.ico":null,"markdown-2_50.png":null,"markdown-50.png":null,"markdown-file_50.png":null,"medium_icons_view.ico":null,"music.png":null,"music_file.ico":null,"music_folder.ico":null,"my_computer.ico":null,"nav_expand_32.png":null,"nav_left_32.png":null,"nav_right_32.png":null,"nav_up-32.png":null,"navigation_pane.ico":null,"non_empty_folder.ico":null,"non_empty_recycle.ico":null,"pdf-48.png":null,"photos_48.png":null,"picture_folder.ico":null,"pictures.ico":null,"pin_24.png":null,"preview_pane.ico":null,"red-x_50.png":null,"search_32.png":null,"small_icons_view.ico":null,"taskmanger.png":null,"taskmanger_2.png":null,"terminal-2_48.png":null,"terminal_48.png":null,"text-editor_48.png":null,"tiles_view.ico":null,"unknown.ico":null,"unpin_24.png":null,"unpin_32.png":null,"video.ico":null,"video_file.ico":null,"video_folder.ico":null,"videoplayer-2_48.png":null,"videoplayer.png":null,"vs-code_48.png":null,"vs-code_64.png":null,"white_history_32.png":null,"x_32.png":null,"zip_folder.ico":null},"simple.txt":null,"watr-fluid.mp3":null}

0 comments on commit 9cb7994

Please sign in to comment.