Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>OCC Web</name>
<summary>OCC Commands in a web terminal</summary>
<description><![CDATA[Run OCC Commands in a web terminal]]></description>
<version>0.2.3</version>
<version>0.2.4</version>
<licence>agpl</licence>
<author mail="adphi.apps@gmail.com" >Adphi</author>
<namespace>OCCWeb</namespace>
Expand All @@ -15,7 +15,7 @@
<repository>https://github.com/adphi/occweb</repository>
<screenshot>https://github.com/adphi/occweb/raw/main/appinfo/screenshot.png</screenshot>
<dependencies>
<nextcloud min-version="31" max-version="31"/>
<nextcloud min-version="31" max-version="34"/>
</dependencies>
<navigations>
<navigation role="admin">
Expand Down
3 changes: 3 additions & 0 deletions js/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
(function (OC, window, $, undefined) {
'use strict';
$.ajaxSetup({
headers: { 'requesttoken': OC.requestToken }
});
$(function() {
function scrollToBottom(){
var html = $('html');
Expand Down
2 changes: 2 additions & 0 deletions js/jquery.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Controller/OccController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct($AppName, IRequest $request, $userId)

$this->application = new Application(
OC::$server->get(\OCP\ServerVersion::class),
OC::$server->getConfig(),
OC::$server->get(\OCP\IConfig::class),
OC::$server->get(\OCP\EventDispatcher\IEventDispatcher::class),
new FakeRequest(),
$this->logger,
Expand Down
3 changes: 2 additions & 1 deletion templates/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php
script('occweb', 'index');
script('occweb', 'jquery.min');
script('occweb', 'term');
script('occweb', 'unix_formatting');
script('occweb', 'index');
style('occweb', 'style');
?>

Expand Down