chore: cleanups, remove donation from info.xml

This commit is contained in:
2025-09-20 13:31:04 +03:00
parent c5a4b89685
commit e0b2b5f43f
6 changed files with 12 additions and 20 deletions

View File

@@ -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&currency_code=ILS&source=url]]></donation>
<dependencies>
<nextcloud min-version="29" max-version="32"/>
</dependencies>

View File

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

View File

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

View File

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

View File

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

View File

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