From 98f25cbedbb1c777c077e3dc6afd04a71f203d7e Mon Sep 17 00:00:00 2001 From: Mehmet Ali <87281783+malisipi@users.noreply.github.com> Date: Sat, 13 Nov 2021 23:13:38 +0300 Subject: [PATCH] Updates * Support to dialog and notification * Fix window resize bug * Location api for weather and maps * App demo mode (Read README.md to learn more) * Update style of interface * New terminal commands (uname, notify-send, wine) and support to start apps from terminal * New app (VSCode) * Fix context menu bug --- LICENSE.md | 2 + README.md | 16 ++- apps/filemanager/js/app.js | 10 +- apps/filemanager/js/folderview.js | 2 +- apps/filemanager/other_locations.html | 2 +- apps/filemanager/trash.html | 4 +- apps/help/js/app.js | 6 +- apps/imageviewer/js/app.js | 4 +- apps/libreoffice/calc/index.html | 2 +- apps/libreoffice/writer/index.html | 2 +- apps/maps/js/app.js | 10 +- apps/maps/map.html | 4 +- apps/settings/about.html | 6 +- apps/settings/js/app.js | 4 +- apps/settings/js/background.js | 2 +- apps/settings/js/side.js | 8 +- apps/terminal/js/app.js | 6 +- apps/terminal/js/main.js | 25 +++- apps/weather/app.html | 6 +- apps/weather/js/app.js | 6 +- apps/webbrowser/js/app.js | 6 +- apps/wine/notepad.html | 2 +- contextmenu.html | 6 +- css/activities.css | 6 +- css/app-menu.css | 6 +- css/dialog.css | 76 ++++++++++ css/dock.css | 4 +- css/main.css | 1 - css/notify.css | 36 +++++ css/panel.css | 4 + index.html | 39 +++--- js/app-manager.js | 164 ++++++++++++++++++++++ js/dialogs.js | 12 ++ js/localStorage.js | 28 +++- js/notify.js | 9 ++ js/status.js | 6 +- js/window.js | 192 ++++++++------------------ main.js | 6 +- status.html | 2 +- 39 files changed, 515 insertions(+), 217 deletions(-) mode change 100644 => 100755 apps/maps/map.html mode change 100644 => 100755 apps/settings/js/background.js mode change 100644 => 100755 apps/settings/js/side.js mode change 100644 => 100755 apps/weather/app.html mode change 100644 => 100755 css/activities.css mode change 100644 => 100755 css/app-menu.css create mode 100644 css/dialog.css mode change 100644 => 100755 css/dock.css create mode 100644 css/notify.css create mode 100644 js/app-manager.js create mode 100644 js/dialogs.js mode change 100644 => 100755 js/localStorage.js create mode 100644 js/notify.js diff --git a/LICENSE.md b/LICENSE.md index cac506e..9ab5364 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -12,6 +12,8 @@ * Brython licensed by [BSD-3-Clause License](./LICENCE_BSD3Clause.TXT) +* Also used Geolocation Services of [CodeTabs](https://github.com/jolav/codetabs) + > Ubuntu and Canonical are registered trademarks of Canonical Ltd. > Gnome are registered trademarks of Gnome. diff --git a/README.md b/README.md index 7617e0d..6f5d7f4 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,24 @@ For introduce the Ubuntu environment' beauty (on web) and for fun. :) I was insp ## To-Do List * Increase clone apps' functionality -* [12] Create more clone application +* [13] Create more clone application * [+] Update interface to similar Ubuntu 21.10 interface * [-] Update interface to similar Ubuntu 22.04 interface +## App Demo Mode + + You can present your demo app with that project. + +> `https://malisipi.github.io/ubuntu-tour/?[`name`,`icon`,`location`]` + +* name: Your app's name +* icon: Your app's icon +* location: Your app's website + +> You can't send notification or create a new window. Because your app demo that hosted on another domain will be blocked by CORS policy. If you need to create a more powerful app demo, You can host the project with together your app demo. + +> https://malisipi.github.io/ubuntu-tour/?[%22Ubuntu-Tour%22,%22https://malisipi.github.io/ubuntu-tour/%22,%22https://malisipi.github.io/ubuntu-tour/icons/Suru/Suru/scalable/places/start-here-symbolic.svg%22] + ## Notes > Ubuntu Tour is compatible with touch devices. (Window resize on mobile is harder than on computer. And some browsers may not support resize on mobile.) diff --git a/apps/filemanager/js/app.js b/apps/filemanager/js/app.js index 5116029..e814849 100644 --- a/apps/filemanager/js/app.js +++ b/apps/filemanager/js/app.js @@ -8,22 +8,22 @@ function goToForward(){ function goTo(){ if (window.event.keyCode == '13'){ - alert("It's just a demo :)") + parent.parent.showNotification("It's just a demo :)","","",1250); } } function showMenu(){ - alert("It's just a demo :)"); + parent.parent.showNotification("It's just a demo :)","","",1250); } function showAsList(){ - alert("It's just a demo :)") + parent.parent.showNotification("It's just a demo :)","","",1250); } function changeLook(){ - alert("It's just a demo :)") + parent.parent.showNotification("It's just a demo :)","","",1250); } function searchAnything(){ - alert("It's just a demo :)") + parent.parent.showNotification("It's just a demo :)","","",1250); } \ No newline at end of file diff --git a/apps/filemanager/js/folderview.js b/apps/filemanager/js/folderview.js index f2f0570..cdda1dd 100644 --- a/apps/filemanager/js/folderview.js +++ b/apps/filemanager/js/folderview.js @@ -33,6 +33,6 @@ function openFile(theFile){ if(theFile=="Tjbk79TARiE.jpg") aboutFile=["../../icons/unsplash/Tjbk79TARiE.jpg","picture"]; if(aboutFile[1]=="picture"){ - parent.parent.window_create_special(parent.parent.createRandomWindowID(),'apps/imageviewer/index.html?file='+aboutFile[0],'Image Viewer','icons/Suru/Suru/48x48/apps/image-viewer-app.png'); + parent.parent.start_app('eog',"file="+aboutFile[0]); } } \ No newline at end of file diff --git a/apps/filemanager/other_locations.html b/apps/filemanager/other_locations.html index 716a634..f6170bc 100644 --- a/apps/filemanager/other_locations.html +++ b/apps/filemanager/other_locations.html @@ -7,7 +7,7 @@
diff --git a/apps/filemanager/trash.html b/apps/filemanager/trash.html index 63a3d46..29a2807 100644 --- a/apps/filemanager/trash.html +++ b/apps/filemanager/trash.html @@ -10,8 +10,8 @@ | |
Trash | - - + + |