Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion spfx/src/webparts/siteAdmin/SiteAdminWebPart.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
"WebPropSearchPropertyDescription": "The custom property to set for search.",
"WebPropSearchPropertyKey": "",
"WebPropSearchPropertyLabel": "Search Property:",
"WebPropSearchPropertyReportName": "Search Property",
"WebPropSearchPropertyTabName": "",
"WebPropSearchScope": false,
"WebPropSearchScopeDescription": "The search scope for the site to target. Default is 'Site'.",
Expand Down
133 changes: 125 additions & 8 deletions spfx/src/webparts/siteAdmin/SiteAdminWebPart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,20 @@ export interface ISiteAdminWebPartProps {
ReportsDocSearchFileExt: string;
ReportsDocSearchKeywords: string;
ReportsDocSearchRegexPatterns: string;
ReportNameDLP: string;
ReportNameDocRetention: string;
ReportNameExternalShares: string;
ReportNameExternalUsers: string;
ReportNamePermissions: string;
ReportNameRetention: string;
ReportNameSearchAgents: string;
ReportNameSearchDocs: string;
ReportNameSearchEEEU: string;
ReportNameSearchProp: string;
ReportNameSearchUsers: string;
ReportNameSensitivityLabels: string;
ReportNameSharingLinks: string;
ReportNameUniquePermissions: string;
ReportsSecureFileText: string;
ReportsOversharedGroups: string;
SensitivityLabelFileExt: string;
Expand Down Expand Up @@ -177,7 +191,6 @@ export interface ISiteAdminWebPartProps {
WebPropSearchPropertyKey: string;
WebPropSearchPropertyLabel: string;
WebPropSearchPropertyManagedProperty: string;
WebPropSearchPropertyReportName: string;
WebPropSearchPropertyTabName: string;
WebPropSearchPropertyValues: string;
WebPropSearchScope: boolean;
Expand Down Expand Up @@ -234,6 +247,22 @@ declare const SiteAdmin: {
maxStorageSize?: number;
siteAttestation?: boolean;
siteAttestationText?: string;
reportNames?: {
dlp: string;
docRetention: string;
externalShares: string;
externalUsers: string;
permissions: string;
retention: string;
searchAgents: string;
searchDocs: string;
searchEEEU: string;
searchProp: string;
searchUsers: string;
sensitivityLabels: string;
sharingLinks: string;
uniquePermissions: string;
}
reportProps?: {
docRententionYears?: string;
dlpFileExt?: string;
Expand All @@ -249,7 +278,6 @@ declare const SiteAdmin: {
key: string;
label: string;
managedProperty: string;
reportName: string;
tabName: string;
values: string;
}
Expand Down Expand Up @@ -688,11 +716,6 @@ export default class SiteAdminWebPart extends BaseClientSideWebPart<ISiteAdminWe
description: "The custom tab name for this property.",
value: this.properties.WebPropSearchPropertyTabName
}),
PropertyPaneTextField("WebPropSearchPropertyReportName", {
label: strings.WebPropSearchPropertyReportName,
description: "The report name to for this custom property.",
value: this.properties.WebPropSearchPropertyReportName
}),
PropertyPaneTextField("WebPropSearchPropertyLabel", {
label: strings.WebPropSearchPropertyLabel,
description: "The label to display for the custom property in the form.",
Expand Down Expand Up @@ -815,6 +838,85 @@ export default class SiteAdminWebPart extends BaseClientSideWebPart<ISiteAdminWe
}
]
},
{
groups: [
{
groupName: "Report Names",
groupFields: [
PropertyPaneTextField("ReportNameDLP", {
label: "Data Loss Prevention (DLP):",
description: "The report name displayed in the form.",
value: this.properties.ReportNameDLP
}),
PropertyPaneTextField("HideReportDocRetention", {
label: "Document Retention:",
description: "The report name displayed in the form.",
value: this.properties.ReportNameDocRetention
}),
PropertyPaneTextField("HideReportExternalShares", {
label: "External Shares:",
description: "The report name displayed in the form.",
value: this.properties.ReportNameExternalShares
}),
PropertyPaneTextField("HideReportExternalUsers", {
label: "External Users:",
description: "The report name displayed in the form.",
value: this.properties.ReportNameExternalUsers
}),
PropertyPaneTextField("HideReportPermissions", {
label: "Permissions:",
description: "The report name displayed in the form.",
value: this.properties.ReportNamePermissions
}),
PropertyPaneTextField("HideReportRetention", {
label: "Retention:",
description: "The report name displayed in the form.",
value: this.properties.ReportNameRetention
}),
PropertyPaneTextField("HideReportSearchAgents", {
label: "Search Agents:",
description: "The report name displayed in the form.",
value: this.properties.ReportNameSearchAgents
}),
PropertyPaneTextField("HideReportSearchDocs", {
label: "Document Search:",
description: "The report name displayed in the form.",
value: this.properties.ReportNameSearchDocs
}),
PropertyPaneTextField("HideReportSearchEEEU", {
label: "Search EEEU:",
description: "The report name displayed in the form.",
value: this.properties.ReportNameSearchEEEU
}),
PropertyPaneTextField("HideReportSearchProp", {
label: "Search Property:",
description: "The report name displayed in the form.",
value: this.properties.ReportNameSearchProp
}),
PropertyPaneTextField("HideReportSearchUsers", {
label: "Search Users:",
description: "The report name displayed in the form.",
value: this.properties.ReportNameSearchUsers
}),
PropertyPaneTextField("HideReportSensitivityLabels", {
label: "Sensitivity Labels:",
description: "The report name displayed in the form.",
value: this.properties.ReportNameSensitivityLabels
}),
PropertyPaneTextField("HideReportSharingLinks", {
label: "Sharing Links:",
description: "The report name displayed in the form.",
value: this.properties.ReportNameSharingLinks
}),
PropertyPaneTextField("HideReportUniquePermissions", {
label: "Unique Permissions:",
description: "The report name displayed in the form.",
value: this.properties.ReportNameUniquePermissions
})
]
}
]
},
{
groups: [
{
Expand Down Expand Up @@ -959,6 +1061,22 @@ export default class SiteAdminWebPart extends BaseClientSideWebPart<ISiteAdminWe
maxRequests: this.properties.MaxRequests,
maxStorageDesc: this.properties.MaxStorageDescription,
maxStorageSize,
reportNames: {
dlp: this.properties.ReportNameDLP,
docRetention: this.properties.ReportNameDocRetention,
externalShares: this.properties.ReportNameExternalShares,
externalUsers: this.properties.ReportNameExternalUsers,
permissions: this.properties.ReportNamePermissions,
retention: this.properties.ReportNameRetention,
searchAgents: this.properties.ReportNameSearchAgents,
searchDocs: this.properties.ReportNameSearchDocs,
searchEEEU: this.properties.ReportNameSearchEEEU,
searchProp: this.properties.ReportNameSearchProp,
searchUsers: this.properties.ReportNameSearchUsers,
sensitivityLabels: this.properties.ReportNameSensitivityLabels,
sharingLinks: this.properties.ReportNameSharingLinks,
uniquePermissions: this.properties.ReportNameUniquePermissions
},
reportProps: {
dlpFileExt: this.properties.ReportsDLPFileExt,
docRententionYears: this.properties.ReportsDocRententionYears,
Expand All @@ -974,7 +1092,6 @@ export default class SiteAdminWebPart extends BaseClientSideWebPart<ISiteAdminWe
key: this.properties.WebPropSearchPropertyKey,
label: this.properties.WebPropSearchPropertyLabel,
managedProperty: this.properties.WebPropSearchPropertyManagedProperty,
reportName: this.properties.WebPropSearchPropertyReportName,
tabName: this.properties.WebPropSearchPropertyTabName,
values: this.properties.WebPropSearchPropertyValues
},
Expand Down
1 change: 0 additions & 1 deletion spfx/src/webparts/siteAdmin/loc/en-us.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ define([], function () {
"WebPropSearchPropertyDescription": "Description",
"WebPropSearchPropertyLabel": "Label",
"WebPropSearchPropertyManagedProperty": "Managed Property",
"WebPropSearchPropertyReportName": "Report Name",
"WebPropSearchPropertyTabName": "Tab Name",
"WebPropSearchPropertyValues": "Values",
"WebPropSearchScope": "Search Scope",
Expand Down
1 change: 0 additions & 1 deletion spfx/src/webparts/siteAdmin/loc/mystrings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ declare interface ISiteAdminWebPartStrings {
WebPropSearchPropertyDescription: string;
WebPropSearchPropertyLabel: string;
WebPropSearchPropertyManagedProperty: string;
WebPropSearchPropertyReportName: string;
WebPropSearchPropertyTabName: string;
WebPropSearchPropertyValues: string;
WebPropSearchScope: string;
Expand Down
3 changes: 2 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Strings from "./strings";
import { Security } from "./security";
import { SiteAttestationForm } from "./siteAttestationForm";
import { Tabs } from "./tabs";
import { IReportProps } from "./tabs/reports";
import { IReportNames, IReportProps } from "./tabs/reports";
import { ISearchProps } from "./tabs/searchProp";

// App Properties
Expand Down Expand Up @@ -55,6 +55,7 @@ export interface IAppProps {
maxRequests?: number;
maxStorageDesc?: string;
maxStorageSize?: number;
reportNames?: IReportNames;
reportProps?: IReportProps;
searchProps?: ISearchProps;
siteAttestation?: boolean;
Expand Down
12 changes: 6 additions & 6 deletions src/tabs/lists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ export class ListsTab {
// DLP
if (typeof (this._appProps.hideReports.dlp) === "undefined" || this._appProps.hideReports.dlp != true) {
items.push({
text: "Data Loss Prevention",
text: this._appProps.reportNames.dlp || "Data Loss Prevention",
data: "Finds files that has DLP applied to it.",
value: ReportTypes.DLP
});
Expand All @@ -612,7 +612,7 @@ export class ListsTab {
// Ensure it's a library
if (isLibrary) {
items.push({
text: "Search Agents",
text: this._appProps.reportNames.searchAgents || "Search Agents",
data: "Search the library for agents.",
value: ReportTypes.SearchAgents
});
Expand All @@ -623,7 +623,7 @@ export class ListsTab {
if (isLibrary && item.DriveId) {
if (typeof (this._appProps.hideReports.searchDocs) === "undefined" || this._appProps.hideReports.searchDocs != true) {
items.push({
text: "Search Documents",
text: this._appProps.reportNames.searchDocs || "Search Documents",
data: "Search for documents using regex patterns.",
value: ReportTypes.SearchDocs
});
Expand All @@ -633,7 +633,7 @@ export class ListsTab {
// Search EEEU
if (typeof (this._appProps.hideReports.searchEEEU) === "undefined" || this._appProps.hideReports.searchEEEU != true) {
items.push({
text: "Search EEEU",
text: this._appProps.reportNames.searchEEEU || "Search EEEU",
data: "Search for the 'Every' and 'Everyone exception external users' accounts.",
value: ReportTypes.SearchEEEU
});
Expand All @@ -644,7 +644,7 @@ export class ListsTab {
// See if we are displaying this option
if (typeof (this._appProps.hideReports.sensitivityLabels) === "undefined" || this._appProps.hideReports.sensitivityLabels != true) {
items.push({
text: "Sensitivity Labels",
text: this._appProps.reportNames.sensitivityLabels || "Sensitivity Labels",
data: "Click to view sensitivity label options.",
value: ReportTypes.SensitivityLabels
});
Expand All @@ -654,7 +654,7 @@ export class ListsTab {
// Unique Permissions
if (typeof (this._appProps.hideReports.uniquePermissions) === "undefined" || this._appProps.hideReports.uniquePermissions != true) {
items.push({
text: "Unique Permissions",
text: this._appProps.reportNames.uniquePermissions || "Unique Permissions",
data: "Scans for items that have unique permissions.",
value: ReportTypes.UniquePermissions
});
Expand Down
Loading
Loading