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> <bugs>https://github.com/your-user/nextcloud-nextcloudapptemplate/issues</bugs>
<repository>https://github.com/your-user/nextcloud-nextcloudapptemplate</repository> <repository>https://github.com/your-user/nextcloud-nextcloudapptemplate</repository>
<screenshot>https://raw.githubusercontent.com/your-user/nextcloud-nextcloudapptemplate/refs/heads/master/promo.png</screenshot> <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> <dependencies>
<nextcloud min-version="29" max-version="32"/> <nextcloud min-version="29" max-version="32"/>
</dependencies> </dependencies>

View File

@@ -15,17 +15,11 @@ use OCP\IL10N;
use OCP\IRequest; use OCP\IRequest;
final class ApiController extends OCSController { final class ApiController extends OCSController {
/** @var IAppConfig */
private $config;
/** @var IL10N */
private $l10n;
public function __construct( public function __construct(
string $appName, string $appName,
IRequest $request, IRequest $request,
IAppConfig $config, private IAppConfig $config,
IL10N $l10n, private IL10N $l10n,
) { ) {
parent::__construct($appName, $request); parent::__construct($appName, $request);
$this->config = $config; $this->config = $config;

View File

@@ -8,10 +8,10 @@ use OCP\IURLGenerator;
use OCP\Settings\IIconSection; use OCP\Settings\IIconSection;
class Admin implements IIconSection { class Admin implements IIconSection {
private IL10N $l; public function __construct(
private IURLGenerator $urlGenerator; private IL10N $l,
private IURLGenerator $urlGenerator,
public function __construct(IL10N $l, IURLGenerator $urlGenerator) { ) {
$this->l = $l; $this->l = $l;
$this->urlGenerator = $urlGenerator; $this->urlGenerator = $urlGenerator;
} }

View File

@@ -10,10 +10,10 @@ use OCP\Settings\ISettings;
use OCP\Util; use OCP\Util;
class Admin implements ISettings { class Admin implements ISettings {
private IL10N $l; public function __construct(
private IAppConfig $config; private IAppConfig $config,
private IL10N $l,
public function __construct(IAppConfig $config, IL10N $l) { ) {
$this->config = $config; $this->config = $config;
$this->l = $l; $this->l = $l;
} }

View File

@@ -3,7 +3,7 @@
"info": { "info": {
"title": "nextcloudapptemplate", "title": "nextcloudapptemplate",
"version": "0.0.1", "version": "0.0.1",
"description": "Automatically fills the currency rates for your Cospend projects daily.", "description": "Enter your app summary here.",
"license": { "license": {
"name": "agpl" "name": "agpl"
} }

View File

@@ -107,7 +107,7 @@
<form @submit.prevent @submit="save"> <form @submit.prevent @submit="save">
<div class="row gap-16 align-center"> <div class="row gap-16 align-center">
<NcButton @click="fetchHello" :disabled="loading">{{ strings.fetchHello }}</NcButton> <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>
<span v-if="loading">{{ strings.loading }}</span> <span v-if="loading">{{ strings.loading }}</span>