@@ -2,8 +2,9 @@ var app = {
2
2
settings : {
3
3
runs : true ,
4
4
name : 'Settings' ,
5
+ icon : './assets/img/systemIcons/settings.svg' ,
5
6
init : async function ( ) {
6
- const main = tk . mbw ( 'Settings' , '300px' , 'auto' , true , undefined , undefined ) ;
7
+ const main = tk . mbw ( 'Settings' , '300px' , 'auto' , true , undefined , undefined , undefined , './assets/img/systemIcons/settings.svg' ) ;
7
8
const generalPane = tk . c ( 'div' , main . main , 'hide' ) ;
8
9
const appearPane = tk . c ( 'div' , main . main , 'hide' ) ;
9
10
const mainPane = tk . c ( 'div' , main . main ) ;
@@ -76,7 +77,7 @@ var app = {
76
77
tk . cb ( 'b4 time' , 'what' , undefined , title ) ;
77
78
// first menu
78
79
const first = tk . c ( 'div' , main , 'setb' ) ;
79
- tk . img ( './assets/img/setup/first .svg' , 'setupi' , first ) ;
80
+ tk . img ( './assets/img/systemIcons/os .svg' , 'setupi' , first ) ;
80
81
tk . p ( 'Welcome to NovaOS Deskop Next-Gen!' , 'h2' , first ) ;
81
82
tk . p ( 'NovaOS is proudly powered by WebDesk!' , 'h3' , first ) ;
82
83
tk . cb ( 'b1' , `Login as Guest` , ( ) => wd . desktop ( 'Guest' , gen ( 8 ) ) , first ) ;
@@ -99,7 +100,7 @@ var app = {
99
100
copy . id = "quickstartwdgoing" ;
100
101
// warn menu
101
102
const warn = tk . c ( 'div' , main , 'setb hide' ) ;
102
- tk . img ( './assets/img/noround.png ' , 'setupi' , warn ) ;
103
+ tk . img ( './assets/img/systemIcons/os.svg ' , 'setupi' , warn ) ;
103
104
tk . p ( `Online services` , 'h2' , warn ) ;
104
105
tk . p ( 'NovaOS makes an ID called a DeskID for you. Others using WebDesk, NovaOS-NG or compatible tools can use this ID to send you files or call you.' , undefined , warn ) ;
105
106
tk . p ( 'To recieve calls and files from others, NovaOS needs to be open. When not in use, NovaOS uses less resources' , undefined , warn ) ;
@@ -134,8 +135,9 @@ var app = {
134
135
files : {
135
136
runs : true ,
136
137
name : 'Files' ,
138
+ icon : './assets/img/systemIcons/files.svg' ,
137
139
init : async function ( ) {
138
- const win = tk . mbw ( `Files` , '340px' , 'auto' , true , undefined , undefined ) ;
140
+ const win = tk . mbw ( `Files` , '340px' , 'auto' , true , undefined , undefined , undefined , './assets/img/systemIcons/files.svg' ) ;
139
141
const breadcrumbs = tk . c ( 'div' , win . main ) ;
140
142
const items = tk . c ( 'div' , win . main ) ;
141
143
async function navto ( path ) {
@@ -176,10 +178,12 @@ var app = {
176
178
about : {
177
179
runs : true ,
178
180
name : 'About' ,
181
+ icon : './assets/img/systemIcons/os.svg' ,
179
182
init : async function ( ) {
180
- const win = tk . mbw ( 'About' , '300px' , 'auto' , true , undefined , undefined ) ;
183
+ const win = tk . mbw ( 'About' , '300px' , 'auto' , true , undefined , undefined , undefined , './assets/img/systemIcons/os.svg' ) ;
181
184
var aboutTxt = tk . c ( 'div' , win . main ) ;
182
185
aboutTxt . innerHTML = `
186
+ <img height="100px" src="./assets/img/systemIcons/os.svg">
183
187
<h2>NovaOS</h1>
184
188
<p>NovaOS is a free, open-source operating system designed for the web. It is built on WebDesk, a web-based desktop environment.</p>
185
189
<p>Version: ${ abt . ver } </p>
@@ -190,8 +194,9 @@ var app = {
190
194
browser : {
191
195
runs : true ,
192
196
name : 'Browser' ,
197
+ icon : './assets/img/systemIcons/networking.svg' ,
193
198
init : async function ( ) {
194
- const win = tk . mbw ( 'Browser' , '80vw' , '82vh' , true , undefined , undefined ) ;
199
+ const win = tk . mbw ( 'Browser' , '80vw' , '82vh' , true , undefined , undefined , undefined , './assets/img/systemIcons/networking.svg' ) ;
195
200
ui . dest ( win . title , 0 ) ;
196
201
const tabs = tk . c ( 'div' , win . main , 'tabbar d' ) ;
197
202
let currenttab = tk . c ( 'div' , win . main , 'hide' ) ;
@@ -201,10 +206,10 @@ var app = {
201
206
const btnnest = tk . c ( 'div' , tabs , 'tnav' ) ;
202
207
const addbtn = tk . cb ( 'b4 browserbutton' , '+' , function ( ) {
203
208
const tab = tk . c ( 'embed' , win . main , 'browsertab' ) ;
204
- tab . src = "https://meower.xyz " ;
209
+ tab . src = "https://corsproxy.io/?https%3A%2F%2Fnovafurry.win " ;
205
210
ui . sw2 ( currenttab , tab ) ;
206
211
currenttab = tab ;
207
- const tabbtn = tk . cb ( 'b4' , 'meower.xyz ' , function ( ) {
212
+ const tabbtn = tk . cb ( 'b4' , 'novafurry.win ' , function ( ) {
208
213
ui . sw2 ( currenttab , tab ) ;
209
214
currenttab = tab ;
210
215
currentbtn = tabtitle ;
@@ -232,8 +237,9 @@ var app = {
232
237
const search = tk . c ( 'input' , okiedokie , 'i1 browserbutton' ) ;
233
238
search . placeholder = "Enter URL" ;
234
239
const go = tk . cb ( 'b4 browserbutton' , 'Go!' , function ( ) {
235
- currenttab . src = search . value ;
236
- currentbtn . innerText = search . value ;
240
+ currenttab . src = `https://corsproxy.io/?${ search . value . startsWith ( 'http' ) ? encodeURIComponent ( search . value ) : 'https://' + encodeURIComponent ( search . value ) } ` ;
241
+ console . log ( `https://corsproxy.io/?${ search . value . startsWith ( 'http' ) ? encodeURIComponent ( search . value ) : 'https://' + encodeURIComponent ( search . value ) } ` ) ;
242
+ currentbtn . innerHTML = search . value ;
237
243
} , okiedokie ) ;
238
244
wd . win ( ) ;
239
245
}
@@ -252,23 +258,10 @@ var app = {
252
258
}
253
259
} ,
254
260
} ,
255
- // sysAi: {
256
- // runs: false,
257
- // name: 'NovaOS System AI Models',
258
- // onstartup: async function() {
259
- // try {
260
- // const model = await use.load();
261
- // console.log("Model loaded");
262
- // window.novaAImodel= model;
263
- // } catch (error) {
264
- // app.sysAi.onstartup();
265
- // console.error("Failed to load model", error);
266
- // }
267
- // },
268
- // },
269
261
txter :{
270
262
runs : true ,
271
263
name : 'txter editor' ,
264
+ icon : './assets/img/systemIcons/noicon.svg' ,
272
265
init : async function ( ) {
273
266
const win = tk . mbw ( 'txter' , 'fit-content' , 'fit-content' , true , undefined , undefined ) ;
274
267
const txtarea = tk . c ( 'textarea' , win . main , 'i1' ) ;
@@ -287,8 +280,9 @@ var app = {
287
280
docai : {
288
281
runs : true ,
289
282
name : 'DocAI' ,
283
+ icon : './assets/img/systemIcons/noicon.svg' ,
290
284
init : async function ( query = "" ) {
291
- const win = tk . mbw ( 'DocAI' , '500px' , 'auto' , true , undefined , undefined , "docai" ) ;
285
+ const win = tk . mbw ( 'DocAI' , '500px' , 'auto' , true , undefined , undefined , undefined , "docai" ) ;
292
286
var div = tk . c ( 'div' , win . main ) ;
293
287
// div.innerText = "DocAI is not yet available in this version of NovaOS.";
294
288
div . innerHTML = `
@@ -427,7 +421,7 @@ var app = {
427
421
} else {
428
422
document . querySelector ( "#docai" ) . remove ( ) ;
429
423
document . querySelector ( "#docaitbn" ) . remove ( ) ;
430
- const load = tk . mbw ( 'DocAI Model Loader' , '500px' , 'auto' , true , undefined , undefined , "docaiml" ) ;
424
+ const load = tk . mbw ( 'DocAI Model Loader' , '500px' , 'auto' , true , undefined , undefined , undefined , "docaiml" ) ;
431
425
wm . wal ( "You skipped loading the DocAI model on boot. Please wait." )
432
426
var div = tk . c ( 'p' , load . main ) ;
433
427
div . innerHTML = `DocAI is loading the models...<br><progress></progress>` ;
0 commit comments