2872d70653
Live-tested against nc01 after its auto-update jumped to NC 34.0.4: - Nextcloud's global jQuery has been deprecated since NC19 and is no longer reliably present/first-loaded on NC34 (other apps like serverinfo hit the same issue). occweb's index.js and the vendored jquery.terminal (term.js) both assume a global jQuery, so ship our own copy (js/jquery.js, 3.7.1 from code.jquery.com) and load it before them in templates/index.php. Fixes a hard "jQuery is not defined" crash that left the terminal blank (black screen). - With that fixed, every ajax call started failing with HTTP 412 "CSRF check failed": core only auto-attaches the requesttoken header to requests made through ITS OWN globally-loaded jQuery, and with occweb now vendoring a separate jQuery instance that no longer happens. A global $.ajaxSetup() call turned out unreliable (another app's later jQuery load can replace window.jQuery afterwards), so each of the three ajax calls (SQL query, initial completion list, occ command execution) now sets the requesttoken header explicitly via OC.requestToken. Bump max-version to 34 - actually verified working on NC 34.0.4 now, not inherited/guessed (see the policy comment in this same file). Version bump to 0.3.5.
34 lines
1.5 KiB
XML
34 lines
1.5 KiB
XML
<?xml version="1.0"?>
|
|
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
|
<id>occweb</id>
|
|
<name>Extended OCC Web</name>
|
|
<summary>OCC Commands in a web terminal</summary>
|
|
<description><![CDATA[Run OCC Commands in a web terminal]]></description>
|
|
<version>0.3.5</version>
|
|
<licence>agpl</licence>
|
|
<author mail="dillard.blom@ensembia.com" >Dillard Blom</author>
|
|
<namespace>OCCWeb</namespace>
|
|
<category>tools</category>
|
|
<website>https://github.com/dillardblom/occweb</website>
|
|
<bugs>https://github.com/dillardblom/occweb/issues</bugs>
|
|
<repository>https://github.com/dillardblom/occweb</repository>
|
|
<screenshot>https://github.com/dillardblom/occweb/raw/main/appinfo/screenshot.png</screenshot>
|
|
<dependencies>
|
|
<!-- max-version must equal the highest NC core version this fork has
|
|
actually been verified on - never a value inherited from upstream
|
|
or guessed ahead. Test against the next major's beta and bump
|
|
this BEFORE it goes final, so occ:upgrade never has to fall back
|
|
to auto-disabling the app. -->
|
|
<nextcloud min-version="30" max-version="34"/>
|
|
</dependencies>
|
|
<navigations>
|
|
<navigation role="admin">
|
|
<name>OCCWeb</name>
|
|
<route>occweb.occ.index</route>
|
|
<icon>app.svg</icon>
|
|
<type>link</type>
|
|
</navigation>
|
|
</navigations>
|
|
</info>
|