blueedgetechno / win11React

Windows 11 in React 💻🌈⚡
https://win11.blueedge.me
Creative Commons Zero v1.0 Universal
9.12k stars 956 forks source link

Add our own apps #269

Open blgoreuxe opened 2 years ago

blgoreuxe commented 2 years ago

can you make a feature where you can select an app icon from your computer, a title and a link and on the home screen it will show up a shortcut and when you click it, it will act like an app from the Microsoft store. exept it only shows on your computer and not anyone else, nor does it need to be accepted. I want this because i want to add in a VSCode server i have (because it better than the one in the microsoft store) and if i was to just suggest that then people can see my files which i really dont want. so in conclusion can you make a feature where you can make your own apps on the desktop.

win11bot commented 2 years ago

Hey, thank you for creating an issue. We will normally respond within 24 hours.

luni-moon commented 2 years ago

I think this is a great idea. Maybe we should add a local cache (if we don't already have one), for features like this.

blueedgetechno commented 2 years ago

Actually you can add your own app locally

open the console and run these lines

var installed = localStorage.getItem('installed') || '[]'
installed = JSON.parse(installed)
installed.push({
  "name": "Smash karts",
  "icon": "https://api.web.gamepix.com/assets/img/250/250/icon/smash-karts.png",
  "type": "app",
  "data": {
    "type": "IFrame",
    "url": "https://smashkarts.io"
  },
  "pwa": true
})

localStorage.setItem('installed', JSON.stringify(installed))

Here I added an App called SmashKart, you can add your own by changing the name, icon and url.

After running the script and refresh. Then head over to start menu and all apps and scroll to the app.

luni-moon commented 2 years ago

Actually you can add your own app locally

open the console and run these lines

var installed = localStorage.getItem('installed') || '[]'
installed = JSON.parse(installed)
installed.push({
  "name": "Smash karts",
  "icon": "https://api.web.gamepix.com/assets/img/250/250/icon/smash-karts.png",
  "type": "app",
  "data": {
    "type": "IFrame",
    "url": "https://smashkarts.io"
  },
  "pwa": true
})

localStorage.setItem('installed', JSON.stringify(installed))

Here I added an App called SmashKart, you can add your own by changing the name, icon and url.

After running the script and refresh. Then head over to start menu and all apps and scroll to the app.

Wouldn't be nice to have this as a feature to make it easier for non-programmers?

blueedgetechno commented 2 years ago

yes, write this one in the feature request of discord. I will get to it later.

blgoreuxe commented 2 years ago

yes, write this one in the feature request of discord. I will get to it later.

Alrighty, Thanks but can u do it for me @Lukas-Batema i dont use discore

luni-moon commented 2 years ago

yes, write this one in the feature request of discord. I will get to it later.

Alrighty, Thanks but can u do it for me @Lukas-Batema i dont use discore

Ye, I can.

blgoreuxe commented 2 years ago

yes, write this one in the feature request of discord. I will get to it later.

Alrighty, Thanks but can u do it for me @Lukas-Batema i dont use discore

Ye, I can.

thanks

blgoreuxe commented 2 years ago

Actually you can add your own app locally open the console and run these lines

var installed = localStorage.getItem('installed') || '[]'
installed = JSON.parse(installed)
installed.push({
  "name": "Smash karts",
  "icon": "https://api.web.gamepix.com/assets/img/250/250/icon/smash-karts.png",
  "type": "app",
  "data": {
    "type": "IFrame",
    "url": "https://smashkarts.io"
  },
  "pwa": true
})

localStorage.setItem('installed', JSON.stringify(installed))

Here I added an App called SmashKart, you can add your own by changing the name, icon and url. After running the script and refresh. Then head over to start menu and all apps and scroll to the app.

Wouldn't be nice to have this as a feature to make it easier for non-programmers?

and btw if i use this how do i delete an app

blueedgetechno commented 2 years ago

@blgoreuxe

localStorage.setItem('installed', '[]')

ps: it will remove all your installed apps

blgoreuxe commented 2 years ago

@blgoreuxe

localStorage.setItem('installed', '[]')

ps: it will remove all your installed apps

ok, btw how did you learn react?

blueedgetechno commented 2 years ago

head over to discussion and make it a question. We can be little organised :p

blgoreuxe commented 2 years ago

head over to discussion and make it a question. We can be little organised :p

k lol

yashash-pugalia commented 2 years ago

164748562-56c837cd-2444-4df1-a238-96883f1e487c

glitch128 commented 2 years ago
var installed = localStorage.getItem('installed') || '[]'
installed = JSON.parse(installed)
installed.push({
  "name": "Smash karts",
  "icon": "https://api.web.gamepix.com/assets/img/250/250/icon/smash-karts.png",
  "type": "app",
  "data": {
    "type": "IFrame",
    "url": "https://smashkarts.io"
  },
  "pwa": true
})

localStorage.setItem('installed', JSON.stringify(installed))

is this in the developer window or the simulated terminal?

andrewstech commented 2 years ago
var installed = localStorage.getItem('installed') || '[]'
installed = JSON.parse(installed)
installed.push({
  "name": "Smash karts",
  "icon": "https://api.web.gamepix.com/assets/img/250/250/icon/smash-karts.png",
  "type": "app",
  "data": {
    "type": "IFrame",
    "url": "https://smashkarts.io"
  },
  "pwa": true
})

localStorage.setItem('installed', JSON.stringify(installed))

is this in the developer window or the simulated terminal?

Developer tools in your Web browser.

glitch128 commented 2 years ago

Could you add a way to do this in the simulated terminal?

blgoreuxe commented 2 years ago

Could you add a way to do this in the simulated terminal?

yea that would be cool kinda like how linux is like sudo apt install appname

notAperson535 commented 2 years ago

you can now do this with the win11react/store repository

franck403 commented 10 months ago

in the pull request #845 you can install or uninstall app using the terminal. Live preview of this is here #845 preview

gabrieljemail commented 7 months ago

You could have native JavaScript or TypeScript for React run this for you.