make app id shorter

pull/9/head
sualko 2020-04-26 13:26:34 +02:00
parent e12e2b6a24
commit 5826bbff45
17 changed files with 29 additions and 29 deletions

View File

@ -65,7 +65,7 @@ clean-dev:
pack:
mkdir -p archive
tar --exclude='./Makefile' --exclude='./webpack*' --exclude='./.*' --exclude='./ts' --exclude='./tests' --exclude='./node_modules' --exclude='./archive' -zcvf ./archive/cloud_bbb.tar.gz . --transform s/^./bigbluebutton/
tar --exclude='./Makefile' --exclude='./webpack*' --exclude='./.*' --exclude='./ts' --exclude='./tests' --exclude='./node_modules' --exclude='./archive' -zcvf ./archive/cloud_bbb.tar.gz . --transform s/^./bbb/
# Tests
test:

View File

@ -9,7 +9,7 @@ To install it change into your Nextcloud's apps directory:
Then run:
git clone https://github.com/sualko/cloud_bbb.git bigbluebutton
git clone https://github.com/sualko/cloud_bbb.git bbb
Then install the dependencies using:

View File

@ -1,3 +1,3 @@
<?php
OCP\Util::addScript ( 'bigbluebutton', 'filelist');
OCP\Util::addScript ( 'bbb', 'filelist');

View File

@ -1,6 +1,6 @@
<?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>bigbluebutton</id>
<id>bbb</id>
<name>BigBlueButton</name>
<summary>BigBlueButton integration for Nextcloud</summary>
<description><![CDATA[This app allows to create meetings with BigBlueButton]]></description>

View File

@ -27,11 +27,11 @@ class Admin implements ISettings
public function getForm()
{
$parameters = [
'api.url' => $this->config->getAppValue('bigbluebutton', 'api.url'),
'api.secret' => $this->config->getAppValue('bigbluebutton', 'api.secret'),
'api.url' => $this->config->getAppValue('bbb', 'api.url'),
'api.secret' => $this->config->getAppValue('bbb', 'api.secret'),
];
return new TemplateResponse('bigbluebutton', 'admin', $parameters);
return new TemplateResponse('bbb', 'admin', $parameters);
}
/**

View File

@ -12,7 +12,7 @@ class Personal implements ISettings
*/
public function getForm()
{
return new TemplateResponse('bigbluebutton', 'manager');
return new TemplateResponse('bbb', 'manager');
}
/**
@ -20,7 +20,7 @@ class Personal implements ISettings
*/
public function getSection()
{
return 'bigbluebutton';
return 'bbb';
}
/**

View File

@ -27,7 +27,7 @@ class Section implements IIconSection
*/
public function getID()
{
return 'bigbluebutton';
return 'bbb';
}
/**
@ -58,6 +58,6 @@ class Section implements IIconSection
*/
public function getIcon()
{
return $this->url->imagePath('bigbluebutton', 'app-dark.svg');
return $this->url->imagePath('bbb', 'app-dark.svg');
}
}

View File

@ -1,5 +1,5 @@
{
"name": "bigbluebutton",
"name": "@sualko/cloud_bbb",
"description": "Nextcloud Integration for BigBlueButton",
"version": "0.1.0",
"author": "Klaus Herberth <klaus@jsxc.org>",

View File

@ -2,10 +2,10 @@
/** @var $l \OCP\IL10N */
/** @var $_ array */
script('bigbluebutton', 'admin');
script('bbb', 'admin');
?>
<div id="bigbluebutton-settings" class="section">
<div id="bbb-settings" class="section">
<h2>BigBlueButton</h2>
<form>

View File

@ -1,5 +1,5 @@
<?php
script('bigbluebutton', 'manager');
script('bbb', 'manager');
?>
<div id="bigbluebutton-root"></div>
<div id="bbb-root"></div>

View File

@ -11,7 +11,7 @@ export interface Room {
class Api {
public getUrl(endpoint: string): string {
return OC.generateUrl(`apps/bigbluebutton/${endpoint}`);
return OC.generateUrl(`apps/bbb/${endpoint}`);
}
public async getRooms(): Promise<Room[]> {

View File

@ -1,9 +1,9 @@
#bigbluebutton-react-root, #bigbluebutton-root {
#bbb-react-root, #bbb-root {
height: 100%;
min-height: calc(100vh - 50px);
}
#bigbluebutton-react-root {
#bbb-react-root {
&, & > table {
width: 100%;

View File

@ -90,7 +90,7 @@ const App: React.FC<Props> = () => {
}
return (
<div id="bigbluebutton-react-root"
<div id="bbb-react-root"
onClick={() => { /* @TODO hide edit inputs */ }}>
<table>
<thead>

View File

@ -55,8 +55,8 @@ const RoomRow: React.FC<Props> = (props) => {
ev.preventDefault();
OC.dialogs.confirm(
t('bigbluebutton', 'Are you sure you want to delete "{name}"? This operation can not be undone', { name: room.name }),
t('bigbluebutton', 'Delete "{name}"?', { name: room.name }),
t('bbb', 'Are you sure you want to delete "{name}"? This operation can not be undone', { name: room.name }),
t('bbb', 'Delete "{name}"?', { name: room.name }),
confirmed => {
if (confirmed) {
props.deleteRoom(room.id);

View File

@ -8,5 +8,5 @@ import ReactDom from 'react-dom';
window['React'] = React;
$(document).ready(() => {
ReactDom.render( <App/>, document.getElementById('bigbluebutton-root'));
ReactDom.render( <App/>, document.getElementById('bbb-root'));
});

View File

@ -1,10 +1,10 @@
declare const OCP: any;
$(() => {
$('#bigbluebutton-settings form').submit(function (ev) {
$('#bbb-settings form').submit(function (ev) {
ev.preventDefault();
OCP.AppConfig.setValue('bigbluebutton', 'api.url', this['api.url'].value);
OCP.AppConfig.setValue('bigbluebutton', 'api.secret', this['api.secret'].value);
OCP.AppConfig.setValue('bbb', 'api.url', this['api.url'].value);
OCP.AppConfig.setValue('bbb', 'api.secret', this['api.secret'].value);
})
});

View File

@ -6,7 +6,7 @@ declare const OCA: any;
class BigBlueButton {
public async getRooms(): Promise<Room[]> {
const response = await axios.get(OC.generateUrl('/apps/bigbluebutton/rooms'))
const response = await axios.get(OC.generateUrl('/apps/bbb/rooms'))
return response.data
}
@ -41,7 +41,7 @@ $(() => {
displayName: name,
mime,
permissions: OC.PERMISSION_SHARE,
icon: OC.imagePath('bigbluebutton', 'app-dark.svg'),
icon: OC.imagePath('bbb', 'app-dark.svg'),
actionHandler: (fileName, context) => {
share(context.fileInfoModel.getFullPath(), fileName, uid);
}
@ -51,7 +51,7 @@ $(() => {
async function share(path: string, filename: string, roomUid) {
const id = await createShare(path);
const shareUrl = await configureShare(id);
const joinUrl = generateUrl('/apps/bigbluebutton/b/{uid}?u={url}&filename={filename}', {
const joinUrl = generateUrl('/apps/bbb/b/{uid}?u={url}&filename={filename}', {
uid: roomUid,
url: shareUrl + '/download',
filename