mirror of
https://github.com/remnawave/subscription-page.git
synced 2026-05-13 12:06:39 +00:00
fix: update subscription URL handling and version bump
This commit is contained in:
parent
66796ae4fa
commit
24011c6223
7 changed files with 14 additions and 11 deletions
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
|
|
@ -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": [
|
||||
|
|
|
|||
4
backend/package-lock.json
generated
4
backend/package-lock.json
generated
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@remnawave/subscription-page",
|
||||
"version": "5.1.0",
|
||||
"version": "5.1.1",
|
||||
"description": "Remnawave Subscription Page",
|
||||
"private": false,
|
||||
"type": "commonjs",
|
||||
|
|
|
|||
4
frontend/package-lock.json
generated
4
frontend/package-lock.json
generated
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue