Browse Source

renamed app 'OCC Web'

Adphi 1 year ago
parent
commit
32837fffa6
7 changed files with 20 additions and 19 deletions
  1. 9 8
      appinfo/info.xml
  2. 1 1
      appinfo/routes.php
  3. 2 2
      composer.json
  4. 1 1
      js/index.js
  5. 2 2
      lib/Controller/OCCController.php
  6. 1 1
      lib/Controller/OCCOutput.php
  7. 4 4
      templates/index.php

+ 9 - 8
appinfo/info.xml

@@ -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>
+    xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
+    <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>
+

+ 1 - 1
appinfo/routes.php

@@ -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

+ 2 - 2
composer.json

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

+ 1 - 1
js/index.js

@@ -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 = {

+ 2 - 2
lib/Controller/OCCController.php

@@ -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)

+ 1 - 1
lib/Controller/OCCOutput.php

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

+ 4 - 4
templates/index.php

@@ -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">