Skip to content

Commit 5d3c33e

Browse files
authored
Merge pull request #2522 from JohnDuprey/dev
Extension tweaks
2 parents 5bdb4c1 + aeeb2eb commit 5d3c33e

File tree

3 files changed

+83
-5
lines changed

3 files changed

+83
-5
lines changed

src/data/Extensions.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,65 @@
160160
}
161161
],
162162
"mappingRequired": true
163+
},
164+
{
165+
"name": "PasswordPusher",
166+
"type": "PWPush",
167+
"cat": "Passwords",
168+
"forceSyncButton": false,
169+
"helpText": "This integration allows you to generate password links instead of plain text passwords. Visit https://pwpush.com/ or https://github.com/pglombardo/PasswordPusher for more information.",
170+
"SettingOptions": [
171+
{
172+
"type": "checkbox",
173+
"name": "PWPush.Enabled",
174+
"label": "Replace generated passwords with PWPush links"
175+
},
176+
{
177+
"type": "input",
178+
"fieldtype": "text",
179+
"name": "PWPush.BaseUrl",
180+
"label": "PWPush URL",
181+
"placeholder": "Enter your PWPush URL. (default: https://pwpush.com)"
182+
},
183+
{
184+
"type": "input",
185+
"fieldtype": "text",
186+
"name": "PWPush.EmailAddress",
187+
"label": "PWPush email address",
188+
"placeholder": "Enter your email address for PWPush. (optional)"
189+
},
190+
{
191+
"type": "input",
192+
"fieldtype": "password",
193+
"name": "PWPush.ApiKey",
194+
"label": "PWPush API Key",
195+
"placeholder": "Enter your PWPush API Key. (optional)"
196+
},
197+
{
198+
"type": "checkbox",
199+
"name": "PWPush.RetrievalStep",
200+
"label": "Click to retrieve password (recommended)"
201+
},
202+
{
203+
"type": "input",
204+
"fieldtype": "number",
205+
"name": "PWPush.ExpireAfterDays",
206+
"label": "Expiration in Days",
207+
"placeholder": "Expiration time in days. (optional)"
208+
},
209+
{
210+
"type": "input",
211+
"fieldtype": "number",
212+
"name": "PWPush.ExpireAfterViews",
213+
"label": "Expiration after views",
214+
"placeholder": "Expiration after views. (optional)"
215+
},
216+
{
217+
"type": "checkbox",
218+
"name": "PWPush.DeletableByViewer",
219+
"label": "Allow deletion of passwords"
220+
}
221+
],
222+
"mappingRequired": false
163223
}
164224
]

src/views/cipp/Extensions.jsx

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
CTabContent,
1111
CTabPane,
1212
} from '@coreui/react'
13-
import { CippPage } from 'src/components/layout'
13+
import { CippCallout, CippPage } from 'src/components/layout'
1414
import { CippLazy } from 'src/components/utilities'
1515
import { useNavigate } from 'react-router-dom'
1616
import useQuery from 'src/hooks/useQuery.jsx'
@@ -104,7 +104,7 @@ export default function CIPPExtensions() {
104104
<CTabPane key={`pane-${idx}`} visible={active === idx} className="mt-3">
105105
<CippLazy visible={active === idx}>
106106
<CRow className="mb-3">
107-
<CCol md={4}>
107+
<CCol sm={12} md={integration.mappingRequired ? 4 : 12} className="mb-3">
108108
<CippButtonCard
109109
title={integration.name}
110110
titleType="big"
@@ -158,9 +158,29 @@ export default function CIPPExtensions() {
158158
)
159159
}}
160160
/>
161+
{extensionConfigResult?.data?.Results && (
162+
<CippCallout color={extensionConfigResult.isSuccess ? 'success' : 'danger'}>
163+
{extensionConfigResult?.data?.Results}
164+
</CippCallout>
165+
)}
166+
{listExtensionTestResult?.data?.Results && (
167+
<CippCallout color={listExtensionTestResult.isSuccess ? 'success' : 'danger'}>
168+
{listExtensionTestResult?.data?.Results}
169+
{listExtensionTestResult?.data?.Link && (
170+
<a
171+
href={listExtensionTestResult?.data?.Link}
172+
target="_blank"
173+
rel="noreferrer"
174+
className="ms-2"
175+
>
176+
Link
177+
</a>
178+
)}
179+
</CippCallout>
180+
)}
161181
</CippButtonCard>
162182
</CCol>
163-
<CCol md={8}>
183+
<CCol sm={12} md={8}>
164184
<SettingsExtensionMappings type={integration.type} />
165185
</CCol>
166186
</CRow>

src/views/cipp/app-settings/CIPPSettings.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ import { SettingsTenants } from 'src/views/cipp/app-settings/SettingsTenants.jsx
88
import { SettingsBackend } from 'src/views/cipp/app-settings/SettingsBackend.jsx'
99
import { SettingsNotifications } from 'src/views/cipp/app-settings/SettingsNotifications.jsx'
1010
import { SettingsLicenses } from 'src/views/cipp/app-settings/SettingsLicenses.jsx'
11-
import { SettingsExtensions } from 'src/views/cipp/app-settings/SettingsExtensions.jsx'
1211
import { SettingsMaintenance } from 'src/views/cipp/app-settings/SettingsMaintenance.jsx'
13-
import { SettingsExtensionMappings } from 'src/views/cipp/app-settings/SettingsExtensionMappings.jsx'
1412
import { SettingsPartner } from 'src/views/cipp/app-settings/SettingsPartner.jsx'
1513
import useQuery from 'src/hooks/useQuery.jsx'
1614
import { SettingsSuperAdmin } from './SettingsSuperAdmin.jsx'

0 commit comments

Comments
 (0)