Compare commits

...

6 Commits

Author SHA1 Message Date
semantic-release-bot 9235fef3c6 🔖 chore(release): v1.0.2 [skip ci]
## [1.0.2](https://github.com/perfect-panel/ppanel-web/compare/v1.0.1...v1.0.2) (2025-06-29)

### 🐛 Bug Fixes

* **subscription**: User subscription information ([7d18ff6](https://github.com/perfect-panel/ppanel-web/commit/7d18ff6))
2025-06-29 09:19:10 +00:00
web@ppanel ee0c3371f7 Merge branch 'main' into develop 2025-06-29 08:39:58 +00:00
web@ppanel 7d18ff6825 🐛 fix(subscription): User subscription information 2025-06-29 08:33:43 +00:00
semantic-release-bot c86d28f798 🔖 chore(release): v1.0.1 [skip ci]
## [1.0.1](https://github.com/perfect-panel/ppanel-web/compare/v1.0.0...v1.0.1) (2025-04-28)

### 🐛 Bug Fixes

* **payment**: Disable webhook_secret field in PaymentForm component ([d323af8](https://github.com/perfect-panel/ppanel-web/commit/d323af8))
* **recharge**: Set balance prop to false in PaymentMethods component ([356ae5b](https://github.com/perfect-panel/ppanel-web/commit/356ae5b))
2025-04-28 11:54:50 +00:00
web@ppanel d323af8bb6 🐛 fix(payment): Disable webhook_secret field in PaymentForm component 2025-04-28 11:51:41 +00:00
web@ppanel 356ae5b777 🐛 fix(recharge): Set balance prop to false in PaymentMethods component 2025-04-28 11:30:06 +00:00
5 changed files with 21 additions and 1 deletions
+15
View File
@@ -1,6 +1,21 @@
<a name="readme-top"></a> <a name="readme-top"></a>
# Changelog # Changelog
## [1.0.2](https://github.com/perfect-panel/ppanel-web/compare/v1.0.1...v1.0.2) (2025-06-29)
### 🐛 Bug Fixes
* **subscription**: User subscription information ([7d18ff6](https://github.com/perfect-panel/ppanel-web/commit/7d18ff6))
## [1.0.1](https://github.com/perfect-panel/ppanel-web/compare/v1.0.0...v1.0.1) (2025-04-28)
### 🐛 Bug Fixes
* **payment**: Disable webhook_secret field in PaymentForm component ([d323af8](https://github.com/perfect-panel/ppanel-web/commit/d323af8))
* **recharge**: Set balance prop to false in PaymentMethods component ([356ae5b](https://github.com/perfect-panel/ppanel-web/commit/356ae5b))
# 1.0.0 (2025-04-24) # 1.0.0 (2025-04-24)
@@ -371,6 +371,7 @@ export default function PaymentForm<T>({
? configValues[fieldKey] ? configValues[fieldKey]
: '' : ''
} }
disabled={fieldKey === 'webhook_secret'}
onValueChange={(value) => { onValueChange={(value) => {
const newConfig = { ...configValues }; const newConfig = { ...configValues };
newConfig[fieldKey] = value; newConfig[fieldKey] = value;
@@ -45,6 +45,9 @@ const formSchema = z.object({
speed_limit: z.number().optional(), speed_limit: z.number().optional(),
device_limit: z.number().optional(), device_limit: z.number().optional(),
expired_at: z.number().nullish().optional(), expired_at: z.number().nullish().optional(),
upload: z.number().optional(),
download: z.number().optional(),
id: z.number().optional(),
}); });
export function SubscriptionForm({ trigger, title, loading, initialData, onSubmit }: Props) { export function SubscriptionForm({ trigger, title, loading, initialData, onSubmit }: Props) {
@@ -65,6 +65,7 @@ export default function Recharge(props: Readonly<ButtonProps>) {
/> />
</div> </div>
<PaymentMethods <PaymentMethods
balance={false}
value={params.payment} value={params.payment}
onChange={(value) => setParams({ ...params, payment: value })} onChange={(value) => setParams({ ...params, payment: value })}
/> />
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "ppanel-web", "name": "ppanel-web",
"version": "1.0.0", "version": "1.0.2",
"private": true, "private": true,
"homepage": "https://github.com/perfect-panel/ppanel-web", "homepage": "https://github.com/perfect-panel/ppanel-web",
"bugs": { "bugs": {