mirror of
https://github.com/chenasraf/nextcloud-app-template.git
synced 2026-05-17 17:28:09 +00:00
chore: cleanups, remove donation from info.xml
This commit is contained in:
@@ -25,8 +25,6 @@ Enter your app description here.
|
||||
<bugs>https://github.com/your-user/nextcloud-nextcloudapptemplate/issues</bugs>
|
||||
<repository>https://github.com/your-user/nextcloud-nextcloudapptemplate</repository>
|
||||
<screenshot>https://raw.githubusercontent.com/your-user/nextcloud-nextcloudapptemplate/refs/heads/master/promo.png</screenshot>
|
||||
<donation>https://ko-fi.com/casraf</donation>
|
||||
<donation type="paypal"><![CDATA[https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TSH3C3ABGQM22¤cy_code=ILS&source=url]]></donation>
|
||||
<dependencies>
|
||||
<nextcloud min-version="29" max-version="32"/>
|
||||
</dependencies>
|
||||
|
||||
@@ -15,17 +15,11 @@ use OCP\IL10N;
|
||||
use OCP\IRequest;
|
||||
|
||||
final class ApiController extends OCSController {
|
||||
/** @var IAppConfig */
|
||||
private $config;
|
||||
|
||||
/** @var IL10N */
|
||||
private $l10n;
|
||||
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
IAppConfig $config,
|
||||
IL10N $l10n,
|
||||
private IAppConfig $config,
|
||||
private IL10N $l10n,
|
||||
) {
|
||||
parent::__construct($appName, $request);
|
||||
$this->config = $config;
|
||||
|
||||
@@ -8,10 +8,10 @@ use OCP\IURLGenerator;
|
||||
use OCP\Settings\IIconSection;
|
||||
|
||||
class Admin implements IIconSection {
|
||||
private IL10N $l;
|
||||
private IURLGenerator $urlGenerator;
|
||||
|
||||
public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
|
||||
public function __construct(
|
||||
private IL10N $l,
|
||||
private IURLGenerator $urlGenerator,
|
||||
) {
|
||||
$this->l = $l;
|
||||
$this->urlGenerator = $urlGenerator;
|
||||
}
|
||||
|
||||
@@ -10,10 +10,10 @@ use OCP\Settings\ISettings;
|
||||
use OCP\Util;
|
||||
|
||||
class Admin implements ISettings {
|
||||
private IL10N $l;
|
||||
private IAppConfig $config;
|
||||
|
||||
public function __construct(IAppConfig $config, IL10N $l) {
|
||||
public function __construct(
|
||||
private IAppConfig $config,
|
||||
private IL10N $l,
|
||||
) {
|
||||
$this->config = $config;
|
||||
$this->l = $l;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"info": {
|
||||
"title": "nextcloudapptemplate",
|
||||
"version": "0.0.1",
|
||||
"description": "Automatically fills the currency rates for your Cospend projects daily.",
|
||||
"description": "Enter your app summary here.",
|
||||
"license": {
|
||||
"name": "agpl"
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
<form @submit.prevent @submit="save">
|
||||
<div class="row gap-16 align-center">
|
||||
<NcButton @click="fetchHello" :disabled="loading">{{ strings.fetchHello }}</NcButton>
|
||||
<NcButton native-type="submit" :disabled="loading">{{ strings.save }}</NcButton>
|
||||
<NcButton :disabled="loading" @click="submit">{{ strings.save }}</NcButton>
|
||||
|
||||
<span>
|
||||
<span v-if="loading">{{ strings.loading }}</span>
|
||||
|
||||
Reference in New Issue
Block a user