-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor:providers invite app (#4599)
Signed-off-by: jingyang <3161362058@qq.com>
- Loading branch information
Showing
20 changed files
with
68 additions
and
622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
LAF_BASE_URL= | ||
LAF_BASE_URL= | ||
NEXT_PUBLIC_MOCK_USER= | ||
GIFT_RATIO= | ||
SEALOS_DOMAIN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,17 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; | ||
const { i18n } = require('./next-i18next.config'); | ||
const analyzer = process.env === 'production' ? [new BundleAnalyzerPlugin()] : []; | ||
const path = require('path'); | ||
const { i18n } = require('./next-i18next.config') | ||
const path = require('path') | ||
|
||
const nextConfig = { | ||
i18n, | ||
output: 'standalone', | ||
reactStrictMode: false, | ||
compress: true, | ||
webpack: (config, { isServer }) => { | ||
config.module.rules = config.module.rules.concat([ | ||
{ | ||
test: /\.svg$/i, | ||
issuer: /\.[jt]sx?$/, | ||
use: ['@svgr/webpack'] | ||
} | ||
]); | ||
config.plugins = [...config.plugins, ...analyzer]; | ||
return config; | ||
}, | ||
transpilePackages: ['@sealos/ui', 'sealos-desktop-sdk', '@sealos/driver'], | ||
experimental: { | ||
// this includes files from the monorepo base two directories up | ||
outputFileTracingRoot: path.join(__dirname, '../../') | ||
} | ||
}; | ||
} | ||
|
||
module.exports = nextConfig; | ||
module.exports = nextConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
{ | ||
"Upload Token File": "Upload License File", | ||
"Activate License": "Activate License", | ||
"Activation Record": "Activation Record", | ||
"Purchase License": "Purchase License", | ||
"Please go to": "Please go to", | ||
"Activation Time": "Activation time: ", | ||
"Go to the message center to see the results": "Go to the message center to see the results", | ||
"token does not exist": "license does not exist", | ||
"No Record": "No Record", | ||
"Activation time": "Activation time", | ||
"Activation Successful": "Activation Successful", | ||
"Failed to obtain cluster ID, contact administrator": "Failed to obtain cluster ID, contact administrator", | ||
"Cluster ID": "Cluster ID: {{id}}", | ||
"Purchase Tip": "Activate / Purchase" | ||
"Cumulative number of invitees": "Cumulative number of invitees", | ||
"Earnings": "Earnings", | ||
"Cashback Ratio": "Cashback Ratio", | ||
"Every time a friend recharges": "Every time a friend recharges, you will receive a balance reward of {{amount}}", | ||
"Invitation link": "Invitation link", | ||
"Copy link": "Copy link", | ||
"Time": "Time", | ||
"Amount": "Amount", | ||
"No invitation records": "No invitation records~" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
{ | ||
"Upload Token File": "上传 License 文件", | ||
"Activate License": "激活 License", | ||
"Activation Record": "激活记录", | ||
"Purchase License": "购买 License", | ||
"Please go to": "请前往", | ||
"Activation Time": "激活时间: ", | ||
"Go to the message center to see the results": "前往消息中心查看结果", | ||
"token does not exist": "license 不存在", | ||
"No Record": "暂无记录", | ||
"Activation time": "激活时间", | ||
"Activation Successful": "激活成功", | ||
"Failed to obtain cluster ID, contact administrator": "获取集群id失败, 联系管理员", | ||
"Cluster ID": "集群 ID: {{id}}", | ||
"Purchase Tip": "激活 / 购买" | ||
"Cumulative number of invitees": "累计邀请人数", | ||
"Earnings": "收益", | ||
"Cashback Ratio": "返现比例", | ||
"Every time a friend recharges": "好友每次充值,您都获得 {{amount}} 的余额奖励", | ||
"Invitation link": "邀请链接", | ||
"Copy link": "复制链接", | ||
"Time": "时间", | ||
"Amount": "金额", | ||
"No invitation records": "无邀请记录~" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
import { jsonRes } from '@/services/backend/response'; | ||
import { jsonRes } from '@/services/response'; | ||
import { ApiResp } from '@/services/kubernet'; | ||
import type { NextApiRequest, NextApiResponse } from 'next'; | ||
|
||
export type Response = { | ||
domain?: string; | ||
LICENSE_DOMAIN: string; | ||
export type SystemEnvResponse = { | ||
domain: string; | ||
}; | ||
|
||
export default async function handler(req: NextApiRequest, res: NextApiResponse<ApiResp>) { | ||
jsonRes<Response>(res, { | ||
jsonRes<SystemEnvResponse>(res, { | ||
data: { | ||
domain: process.env.SEALOS_DOMAIN || 'cloud.sealos.io', | ||
LICENSE_DOMAIN: process.env.LICENSE_DOMAIN || 'cloud.sealos.io' | ||
domain: process.env.SEALOS_DOMAIN || 'cloud.sealos.io' | ||
} | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.