renamed app 'OCC Web'

This commit is contained in:
Adphi 2019-01-19 15:54:24 +01:00
parent c909a11420
commit 32837fffa6
7 changed files with 20 additions and 19 deletions

View File

@ -1,14 +1,14 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" <info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd"> xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<id>testnextcloudapp</id> <id>occweb</id>
<name>Test Nextcloud App</name> <name>OCC Web</name>
<summary>Application Test</summary> <summary>OCC Command in a web terminal</summary>
<description><![CDATA[Application Test]]></description> <description><![CDATA[Run OCC Commands in a web terminal]]></description>
<version>0.0.1</version> <version>0.0.1</version>
<licence>agpl</licence> <licence>agpl</licence>
<author mail="adphi.apps@gmail.com" >Adphi</author> <author mail="adphi.apps@gmail.com" >Adphi</author>
<namespace>TestNextcloudApp</namespace> <namespace>OCCWeb</namespace>
<category>security</category> <category>security</category>
<bugs>https://git.adphi.net/Adphi/TestNextcloudApp</bugs> <bugs>https://git.adphi.net/Adphi/TestNextcloudApp</bugs>
<dependencies> <dependencies>
@ -16,8 +16,9 @@
</dependencies> </dependencies>
<navigations> <navigations>
<navigation> <navigation>
<name>Test Nextcloud App</name> <name>OCCWeb</name>
<route>testnextcloudapp.page.index</route> <route>occweb.page.index</route>
</navigation> </navigation>
</navigations> </navigations>
</info> </info>

View File

@ -2,7 +2,7 @@
/** /**
* Create your routes in here. The name is the lowercase name of the controller * 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. * 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 * The controller class has to be registered in the application.php file since
* it's instantiated in there * it's instantiated in there

View File

@ -1,6 +1,6 @@
{ {
"name": "Test Nextcloud App", "name": "OCC Web",
"description": "Application Test", "description": "OCC Web terminal",
"type": "project", "type": "project",
"license": "AGPL", "license": "AGPL",
"authors": [ "authors": [

View File

@ -5,7 +5,7 @@
var html = $('html'); var html = $('html');
html.scrollTop(html.prop('scrollHeight')); html.scrollTop(html.prop('scrollHeight'));
} }
var baseUrl = OC.generateUrl('/apps/testnextcloudapp'); var baseUrl = OC.generateUrl('/apps/occweb');
$.get(baseUrl + '/cmd', function(response){ $.get(baseUrl + '/cmd', function(response){
$('#app-content').terminal(function(command, term) { $('#app-content').terminal(function(command, term) {
var occCommand = { var occCommand = {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace OCA\TestNextcloudApp\Controller; namespace OCA\OCCWeb\Controller;
use OC\Console\Application; use OC\Console\Application;
use OCP\IRequest; use OCP\IRequest;
@ -56,7 +56,7 @@ class OCCController extends Controller implements IRequest
*/ */
public function index() public function index()
{ {
return new TemplateResponse('testnextcloudapp', 'index'); // templates/index.php return new TemplateResponse('occweb', 'index'); // templates/index.php
} }
private function run($input) private function run($input)

View File

@ -6,7 +6,7 @@
* Time: 19:08 * Time: 19:08
*/ */
namespace OCA\TestNextcloudApp\Controller; namespace OCA\OCCWeb\Controller;
use Symfony\Component\Console\Output\BufferedOutput; use Symfony\Component\Console\Output\BufferedOutput;

View File

@ -1,8 +1,8 @@
<?php <?php
script('testnextcloudapp', 'index'); script('occweb', 'index');
script('testnextcloudapp', 'term'); script('occweb', 'term');
script('testnextcloudapp', 'unix_formatting'); script('occweb', 'unix_formatting');
style('testnextcloudapp', 'style'); style('occweb', 'style');
?> ?>
<div id="app" class="full-width"> <div id="app" class="full-width">