|
8 | 8 | <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script> |
9 | 9 | <script src="https://jscolor.com/release/2.5/jscolor-2.5.2/jscolor.js"></script> |
10 | 10 | <script src="https://adthoughtsglobal.github.io/owifive/editor/assets/sortable.js"></script> |
11 | | - <meta name="permissions" content="olp, settings, system, unsandboxed"> |
12 | | - <meta name="capabilities" content="settings_manager"> |
13 | | - <meta name="nova-include" content="nova.css material-symbols-rounded"> |
14 | | - <meta name="nova-icon" |
15 | | - content="<svg width='232' height='232' viewBox='0 0 232 232' fill='none' xmlns='http://www.w3.org/2000/svg'> <g clip-path='url(#clip0_3_148)'> <rect x='28' y='28' width='175' height='175' rx='20' fill='#737373'/> <rect x='-8' y='115.5' width='174.655' height='174.655' rx='20' transform='rotate(-45 -8 115.5)' fill='#B4B4B4'/> <circle cx='115.5' cy='115.5' r='67.5' fill='white'/> <circle cx='115.5' cy='115.5' r='53.5' fill='#6179FF'/> </g> <defs> <clipPath id='clip0_3_148'> <rect width='232' height='232' fill='white'/> </clipPath> </defs> </svg>"> |
16 | | - |
| 11 | + |
| 12 | + <script type="application/json" data-for="ntxSetup"> |
| 13 | + { |
| 14 | + "author":"runnova", |
| 15 | + "include": ["nova.css", "material-symbols-rounded"], |
| 16 | + "permissions":["olp", "settings", "system", "unsandboxed"], |
| 17 | + "nova-icon": "<svg width='232' height='232' viewBox='0 0 232 232' fill='none' xmlns='http://www.w3.org/2000/svg'> <g clip-path='url(#clip0_3_148)'> <rect x='28' y='28' width='175' height='175' rx='20' fill='#737373'/> <rect x='-8' y='115.5' width='174.655' height='174.655' rx='20' transform='rotate(-45 -8 115.5)' fill='#B4B4B4'/> <circle cx='115.5' cy='115.5' r='67.5' fill='white'/> <circle cx='115.5' cy='115.5' r='53.5' fill='#6179FF'/> </g> <defs> <clipPath id='clip0_3_148'> <rect width='232' height='232' fill='white'/> </clipPath> </defs> </svg>" |
| 18 | + } |
| 19 | + </script> |
17 | 20 | <style> |
18 | 21 | * { |
19 | 22 | box-sizing: border-box; |
@@ -1948,7 +1951,7 @@ <h1>Nova Nav</h1> |
1948 | 1951 | } |
1949 | 1952 |
|
1950 | 1953 | async function chooseNewNavPnl() { |
1951 | | - let fileID = await ntxSession.send("olp.useHandler", "file_manager", { opener: "any", dir: "Downloads/" }); |
| 1954 | + let fileID = await ntxSession.send("olp.useHandler", "Files@runnova", { opener: "any", dir: "Downloads/" }); |
1952 | 1955 | if (!fileID) return; |
1953 | 1956 |
|
1954 | 1957 | let file = await ntx.fileGet.byId(fileID); |
@@ -2509,7 +2512,7 @@ <h3>File Type Providers</h3> |
2509 | 2512 | clickedRowId = `row-${type}`; |
2510 | 2513 |
|
2511 | 2514 | replaceableapp = handlers; |
2512 | | - let newHandler = await ntxSession.send("olp.useHandler", "file_manager", { "opener": "app", "dir": "Apps/" }); |
| 2515 | + let newHandler = await ntxSession.send("olp.useHandler", "Files@runnova", { "opener": "app", "dir": "Apps/" }); |
2513 | 2516 |
|
2514 | 2517 | for (let key in window.parent.handlers) { |
2515 | 2518 | if (window.parent.handlers.hasOwnProperty(key)) { |
@@ -2627,7 +2630,7 @@ <h3>File Type Providers</h3> |
2627 | 2630 | } |
2628 | 2631 |
|
2629 | 2632 | async function edituserpfp() { |
2630 | | - let fileid = await ntxSession.send("olp.useHandler", "file_manager", { "opener": 'any', "dir": "Downloads/" }) |
| 2633 | + let fileid = await ntxSession.send("olp.useHandler", "Files@runnova", { "opener": 'any', "dir": "Downloads/" }) |
2631 | 2634 | ntxSession.send("fileGet.byId", fileid) |
2632 | 2635 | .then(async (url) => { |
2633 | 2636 | let content = url?.content; |
@@ -2964,7 +2967,7 @@ <h1>Default apps</h1> |
2964 | 2967 | }; |
2965 | 2968 |
|
2966 | 2969 | document.querySelectorAll('.appInfoMngBtns')[2].onclick = async function () { |
2967 | | - await ntxSession.send("olp.useHandler", "text_editor", appID); |
| 2970 | + await ntxSession.send("olp.useHandler", "Text@runnova", appID); |
2968 | 2971 | }; |
2969 | 2972 |
|
2970 | 2973 | document.getElementById("openappwindowbtn").onclick = async function () { |
@@ -3308,7 +3311,7 @@ <h1>Theme</h1> |
3308 | 3311 | </segr> |
3309 | 3312 | <segr style="margin-top: .5rem"> |
3310 | 3313 | <div class="single_setting" |
3311 | | - onclick="ntxSession.send('olp.useHandler','content_store', {'opener':'themes'})"> |
| 3314 | + onclick="ntxSession.send('olp.useHandler','Store@runnova', {'opener':'themes'})"> |
3312 | 3315 |
|
3313 | 3316 | <div class="settingName"> |
3314 | 3317 | <span>Browse themes</span> |
@@ -3478,7 +3481,7 @@ <h1>Icon pack <div class="betatag">beta</div> |
3478 | 3481 | <script> |
3479 | 3482 | async function saveiconpack() { |
3480 | 3483 | if (document.getElementById("iconpackidinp").value == '') { |
3481 | | - let packID = await ntxSession.send("olp.useHandler", "file_manager", { "opener": 'any', "dir": "Downloads/" }) |
| 3484 | + let packID = await ntxSession.send("olp.useHandler", "Files@runnova", { "opener": 'any', "dir": "Downloads/" }) |
3482 | 3485 | document.getElementById("iconpackidinp").value = (packID) ? packID : ''; |
3483 | 3486 | } |
3484 | 3487 | let iconp; |
@@ -3590,7 +3593,7 @@ <h1>Icon pack <div class="betatag">beta</div> |
3590 | 3593 | var newurl = document.getElementById("wallpaperurl"); |
3591 | 3594 | var oldurl = await ntxSession.send("settings.get", "wall"); |
3592 | 3595 | if (newurl.value == '' || newurl.value == oldurl) { |
3593 | | - let fileID = await ntxSession.send("olp.useHandler", "file_manager", { "opener": 'any', "dir": "Downloads/" }) |
| 3596 | + let fileID = await ntxSession.send("olp.useHandler", "Files@runnova", { "opener": 'any', "dir": "Downloads/" }) |
3594 | 3597 | newurl.value = (fileID) ? fileID : ''; |
3595 | 3598 | } |
3596 | 3599 | await ntxSession.send("settings.set", "wall", newurl.value); |
|
0 commit comments