mirror of
https://github.com/ducbao414/win32.run.git
synced 2025-12-15 16:52:49 +09:00
help & support links
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script>
|
||||
import Window from '../../../lib/components/xp/Window.svelte';
|
||||
import {onMount } from 'svelte';
|
||||
import { runningPrograms, zIndex, hardDrive, selectingItems } from '../../../lib/store'
|
||||
import { runningPrograms, zIndex, hardDrive, selectingItems, queueProgram } from '../../../lib/store'
|
||||
import {recycle_bin_id, icons} from '../../../lib/system';
|
||||
import Menu from '../../../lib/components/xp/Menu.svelte';
|
||||
import RButton from '../../../lib/components/xp/RButton.svelte';
|
||||
@@ -146,15 +146,18 @@
|
||||
items: [
|
||||
[
|
||||
{
|
||||
name: 'Help and Support Center'
|
||||
name: 'Help and Support Center',
|
||||
action: () => open_link('https://docs.win32.run')
|
||||
},
|
||||
{
|
||||
name: 'Is this copy legal?'
|
||||
name: 'Is this copy legal?',
|
||||
action: () => open_link('https://docs.win32.run')
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
name: 'About Windows'
|
||||
name: 'About Windows',
|
||||
action: () => open_link('https://docs.win32.run')
|
||||
}
|
||||
]
|
||||
]
|
||||
@@ -229,6 +232,13 @@
|
||||
open(parent_id);
|
||||
}
|
||||
|
||||
function open_link(link){
|
||||
queueProgram.set({
|
||||
path: './programs/internet_explorer.svelte',
|
||||
fs_item: {url: link}
|
||||
})
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<Window options={options} bind:this={window} on_click_close={destroy}>
|
||||
|
||||
@@ -93,11 +93,7 @@
|
||||
name: 'Help and Support',
|
||||
icon: '/images/xp/icons/HelpandSupport.png',
|
||||
path: './programs/webapp.svelte',
|
||||
webapp: {
|
||||
url: 'https://docs.win32.run',
|
||||
icon: '/images/xp/icons/HelpandSupport.png',
|
||||
name: 'Help and Support'
|
||||
}
|
||||
link: 'https://docs.win32.run'
|
||||
},
|
||||
null,
|
||||
{
|
||||
@@ -409,15 +405,25 @@
|
||||
|
||||
function launch(item){
|
||||
console.log(item);
|
||||
let {path, fs_item, webapp} = item;
|
||||
if(path){
|
||||
let {path, fs_item, webapp, link } = item;
|
||||
if(link){
|
||||
open_link(link);
|
||||
|
||||
} else if(path){
|
||||
queueProgram.set({
|
||||
path,
|
||||
fs_item,
|
||||
webapp
|
||||
})
|
||||
}
|
||||
hide();
|
||||
}
|
||||
|
||||
function open_link(link){
|
||||
queueProgram.set({
|
||||
path: './programs/internet_explorer.svelte',
|
||||
fs_item: {url: link}
|
||||
})
|
||||
}
|
||||
|
||||
async function show_shutdown_panel(){
|
||||
|
||||
Reference in New Issue
Block a user