forked from adphi/occweb
renamed app 'OCC Web'
This commit is contained in:
parent
c909a11420
commit
32837fffa6
@ -1,14 +1,14 @@
|
||||
<?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>testnextcloudapp</id>
|
||||
<name>Test Nextcloud App</name>
|
||||
<summary>Application Test</summary>
|
||||
<description><![CDATA[Application Test]]></description>
|
||||
<id>occweb</id>
|
||||
<name>OCC Web</name>
|
||||
<summary>OCC Command in a web terminal</summary>
|
||||
<description><![CDATA[Run OCC Commands in a web terminal]]></description>
|
||||
<version>0.0.1</version>
|
||||
<licence>agpl</licence>
|
||||
<author mail="adphi.apps@gmail.com" >Adphi</author>
|
||||
<namespace>TestNextcloudApp</namespace>
|
||||
<namespace>OCCWeb</namespace>
|
||||
<category>security</category>
|
||||
<bugs>https://git.adphi.net/Adphi/TestNextcloudApp</bugs>
|
||||
<dependencies>
|
||||
@ -16,8 +16,9 @@
|
||||
</dependencies>
|
||||
<navigations>
|
||||
<navigation>
|
||||
<name>Test Nextcloud App</name>
|
||||
<route>testnextcloudapp.page.index</route>
|
||||
<name>OCCWeb</name>
|
||||
<route>occweb.page.index</route>
|
||||
</navigation>
|
||||
</navigations>
|
||||
</info>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Create your routes in here. The name is the lowercase name of the controller
|
||||
* without the controller part, the stuff after the hash is the method.
|
||||
* e.g. page#index -> OCA\TestNextcloudApp\Controller\PageController->index()
|
||||
* e.g. page#index -> OCA\OCCWeb\Controller\PageController->index()
|
||||
*
|
||||
* The controller class has to be registered in the application.php file since
|
||||
* it's instantiated in there
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Test Nextcloud App",
|
||||
"description": "Application Test",
|
||||
"name": "OCC Web",
|
||||
"description": "OCC Web terminal",
|
||||
"type": "project",
|
||||
"license": "AGPL",
|
||||
"authors": [
|
||||
|
@ -5,7 +5,7 @@
|
||||
var html = $('html');
|
||||
html.scrollTop(html.prop('scrollHeight'));
|
||||
}
|
||||
var baseUrl = OC.generateUrl('/apps/testnextcloudapp');
|
||||
var baseUrl = OC.generateUrl('/apps/occweb');
|
||||
$.get(baseUrl + '/cmd', function(response){
|
||||
$('#app-content').terminal(function(command, term) {
|
||||
var occCommand = {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace OCA\TestNextcloudApp\Controller;
|
||||
namespace OCA\OCCWeb\Controller;
|
||||
|
||||
use OC\Console\Application;
|
||||
use OCP\IRequest;
|
||||
@ -56,7 +56,7 @@ class OCCController extends Controller implements IRequest
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
return new TemplateResponse('testnextcloudapp', 'index'); // templates/index.php
|
||||
return new TemplateResponse('occweb', 'index'); // templates/index.php
|
||||
}
|
||||
|
||||
private function run($input)
|
||||
|
@ -6,7 +6,7 @@
|
||||
* Time: 19:08
|
||||
*/
|
||||
|
||||
namespace OCA\TestNextcloudApp\Controller;
|
||||
namespace OCA\OCCWeb\Controller;
|
||||
|
||||
|
||||
use Symfony\Component\Console\Output\BufferedOutput;
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
script('testnextcloudapp', 'index');
|
||||
script('testnextcloudapp', 'term');
|
||||
script('testnextcloudapp', 'unix_formatting');
|
||||
style('testnextcloudapp', 'style');
|
||||
script('occweb', 'index');
|
||||
script('occweb', 'term');
|
||||
script('occweb', 'unix_formatting');
|
||||
style('occweb', 'style');
|
||||
?>
|
||||
|
||||
<div id="app" class="full-width">
|
||||
|
Loading…
Reference in New Issue
Block a user