mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-12 16:06:38 +00:00
Merge branch 'main' into dev
This commit is contained in:
@@ -108,7 +108,7 @@ export default function Page() {
|
||||
async function onSubmit(data: CreateFormValues) {
|
||||
setCreateLoading(true);
|
||||
|
||||
let payload: CreateOrgApiKeyBody = {
|
||||
const payload: CreateOrgApiKeyBody = {
|
||||
name: data.name
|
||||
};
|
||||
|
||||
|
||||
@@ -290,7 +290,7 @@ export default function ClientsTable({ clients, orgId }: ClientTableProps) {
|
||||
columns={columns}
|
||||
data={rows}
|
||||
addClient={() => {
|
||||
router.push(`/${orgId}/settings/clients/create`)
|
||||
router.push(`/${orgId}/settings/clients/create`);
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
|
||||
@@ -280,7 +280,7 @@ export default function Page() {
|
||||
return;
|
||||
}
|
||||
|
||||
let payload: CreateClientBody = {
|
||||
const payload: CreateClientBody = {
|
||||
name: data.name,
|
||||
type: data.method as "olm",
|
||||
siteIds: data.siteIds.map((site) => parseInt(site.id)),
|
||||
|
||||
@@ -29,7 +29,7 @@ export default function ResourceInfoBox({}: ResourceInfoBoxType) {
|
||||
const { isEnabled, isAvailable } = useDockerSocket(site!);
|
||||
const t = useTranslations();
|
||||
|
||||
let fullUrl = `${resource.ssl ? "https" : "http"}://${resource.fullDomain}`;
|
||||
const fullUrl = `${resource.ssl ? "https" : "http"}://${resource.fullDomain}`;
|
||||
|
||||
return (
|
||||
<Alert>
|
||||
|
||||
@@ -327,7 +327,7 @@ export default function ReverseProxyTargets(props: {
|
||||
setProxySettingsLoading(true);
|
||||
|
||||
// Save targets
|
||||
for (let target of targets) {
|
||||
for (const target of targets) {
|
||||
const data = {
|
||||
ip: target.ip,
|
||||
port: target.port,
|
||||
|
||||
@@ -271,7 +271,7 @@ export default function ResourceRules(props: {
|
||||
}
|
||||
|
||||
// Save rules
|
||||
for (let rule of rules) {
|
||||
for (const rule of rules) {
|
||||
const data = {
|
||||
action: rule.action,
|
||||
match: rule.match,
|
||||
@@ -348,7 +348,7 @@ export default function ResourceRules(props: {
|
||||
|
||||
setRules([
|
||||
...rules.map((r) => {
|
||||
let res = {
|
||||
const res = {
|
||||
...r,
|
||||
new: false,
|
||||
updated: false
|
||||
|
||||
@@ -106,7 +106,7 @@ export default function Page() {
|
||||
async function onSubmit(data: CreateFormValues) {
|
||||
setCreateLoading(true);
|
||||
|
||||
let payload: CreateOrgApiKeyBody = {
|
||||
const payload: CreateOrgApiKeyBody = {
|
||||
name: data.name
|
||||
};
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ export default async function RootLayout({
|
||||
const env = pullEnv();
|
||||
const locale = await getLocale();
|
||||
|
||||
let supporterData = {
|
||||
const supporterData = {
|
||||
visible: true
|
||||
} as any;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user