fix: update subscription URL handling and version bump

This commit is contained in:
kastov 2025-05-15 17:12:37 +03:00
parent 66796ae4fa
commit 24011c6223
No known key found for this signature in database
GPG key ID: 1B27BE29057F4C90
7 changed files with 14 additions and 11 deletions

View file

@ -8,8 +8,8 @@
"node_modules/@mantine/core/styles.css"
],
"i18n-ally.localesPaths": [
"public/locales",
"src/app/i18n"
"frontend/public/locales",
"frontend/src/app/i18n"
],
"i18n-ally.displayLanguage": "en",
"i18n-ally.refactor.templates": [

View file

@ -1,12 +1,12 @@
{
"name": "@remnawave/subscription-page",
"version": "5.1.0",
"version": "5.1.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@remnawave/subscription-page",
"version": "5.1.0",
"version": "5.1.1",
"license": "AGPL-3.0-only",
"dependencies": {
"@ladjs/consolidate": "^1.0.4",

View file

@ -1,6 +1,6 @@
{
"name": "@remnawave/subscription-page",
"version": "5.1.0",
"version": "5.1.1",
"description": "Remnawave Subscription Page",
"private": false,
"type": "commonjs",

View file

@ -1,12 +1,12 @@
{
"name": "@remnawave/subscription-page",
"version": "5.0.0",
"version": "5.1.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@remnawave/subscription-page",
"version": "5.0.0",
"version": "5.1.1",
"license": "AGPL-3.0-only",
"dependencies": {
"@mantine/core": "^7.17.3",

View file

@ -2,7 +2,7 @@
"name": "@remnawave/subscription-page",
"private": false,
"type": "module",
"version": "5.0.0",
"version": "5.1.1",
"license": "AGPL-3.0-only",
"author": "REMNAWAVE <github.com/remnawave>",
"homepage": "https://github.com/remnawave",

View file

@ -20,6 +20,7 @@ import { BaseInstallationGuideWidget } from './installation-guide.base.widget'
export const InstallationGuideWidget = ({ appsConfig }: { appsConfig: IPlatformConfig }) => {
const { t, i18n } = useTranslation()
const { subscription } = useSubscriptionInfoStoreInfo()
const os = useOs()
const [currentLang, setCurrentLang] = useState<'en' | 'fa' | 'ru'>('en')
@ -69,7 +70,7 @@ export const InstallationGuideWidget = ({ appsConfig }: { appsConfig: IPlatformC
return null
}
const { subscriptionUrl } = subscription
const subscriptionUrl = window.location.href
const openDeepLink = (urlScheme: string, isNeedBase64Encoding: boolean | undefined) => {
if (isNeedBase64Encoding) {

View file

@ -14,20 +14,22 @@ export const SubscriptionLinkWidget = () => {
if (!subscription) return null
const subscriptionUrl = window.location.href
const handleCopy = () => {
notifications.show({
title: t('subscription-link.widget.link-copied'),
message: t('subscription-link.widget.link-copied-to-clipboard'),
color: 'teal'
})
clipboard.copy(subscription.subscriptionUrl)
clipboard.copy(subscriptionUrl)
}
return (
<>
<Button
onClick={() => {
const subscriptionQrCode = renderSVG(subscription.subscriptionUrl, {
const subscriptionQrCode = renderSVG(subscriptionUrl, {
whiteColor: '#161B22',
blackColor: '#3CC9DB'
})