Skip to content

Commit

Permalink
rearrange properties into separate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nbelyh committed Jan 28, 2023
1 parent 5cf16b4 commit 6cd37b6
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 30 deletions.
Binary file modified spfx-locale.xlsx
Binary file not shown.
19 changes: 19 additions & 0 deletions src/WebPart/IWebPartProps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

export interface IWebPartProps {
url: string;
startPage: string;
width: string;
height: string;
hideToolbars: boolean;
hideBorders: boolean;

hideDiagramBoundary: boolean;
disableHyperlinks: boolean;
disablePan: boolean;
disablePanZoomWindow: boolean;
disableZoom: boolean;

enableNavigation: boolean;

zoom: number;
}
2 changes: 1 addition & 1 deletion src/WebPart/TopFrame.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import styles from './TopFrame.module.scss';
import { WebPartContext } from '@microsoft/sp-webpart-base';
import { IWebPartProps } from './WebPart';
import { IWebPartProps } from "./IWebPartProps";
import { Utils } from './Utils';
import { Placeholder } from '../min-sp-controls-react/controls/placeholder';
import { Breadcrumb, IBreadcrumbItem, MessageBar, MessageBarType, ThemeProvider } from '@fluentui/react';
Expand Down
28 changes: 5 additions & 23 deletions src/WebPart/WebPart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,11 @@ require('VisioEmbed');
import * as strings from 'WebPartStrings';

import { TopFrame } from './TopFrame';
import { PropertyPaneVersionField } from './PropertyPaneVersionField';
import { PropertyPaneUrlField } from './PropertyPaneUrlField';
import { PropertyPaneSizeField } from './PropertyPaneSizeField';
import { IDefaultFolder } from './IDefaultFolder';

export interface IWebPartProps {
url: string;
startPage: string;
width: string;
height: string;
hideToolbars: boolean;
hideBorders: boolean;

hideDiagramBoundary: boolean;
disableHyperlinks: boolean;
disablePan: boolean;
disablePanZoomWindow: boolean;
disableZoom: boolean;

enableNavigation: boolean;

zoom: number;
}
import { PropertyPaneVersionField } from './properties/PropertyPaneVersionField';
import { PropertyPaneUrlField } from './properties/PropertyPaneUrlField';
import { PropertyPaneSizeField } from './properties/PropertyPaneSizeField';
import { IDefaultFolder } from './properties/IDefaultFolder';
import { IWebPartProps } from './IWebPartProps';

export default class WebPart extends BaseClientSideWebPart<IWebPartProps> {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as React from 'react';
import { FilePicker, IFilePickerResult } from './../min-sp-controls-react/controls/filePicker';
import { FilePicker, IFilePickerResult } from '../../min-sp-controls-react/controls/filePicker';

import { sp } from '@pnp/sp';
import '@pnp/sp/webs';
import '@pnp/sp/folders';
import '@pnp/sp/lists';
import '@pnp/sp/files';
import { WebPartContext } from '@microsoft/sp-webpart-base';
import { FolderExplorer, IFolder } from '../min-sp-controls-react/controls/folderExplorer';
import { FolderExplorer, IFolder } from '../../min-sp-controls-react/controls/folderExplorer';
import { IDefaultFolder } from './IDefaultFolder';
import { Stack } from '@fluentui/react/lib/Stack';
import { Text } from '@fluentui/react/lib/Text';
Expand Down Expand Up @@ -101,7 +101,7 @@ export function PropertyPaneUrlFieldComponent(props: {
<Stack tokens={{ childrenGap: 's2' }}>
<FilePicker
label={strings.VisioDocument}
accepts={[strings.UrlPickerExtensions]}
accepts={['.vsd', '.vsdx', '.vsdm']}
buttonLabel={strings.UrlPickerBrowse}
onSave={(filePickerResult: IFilePickerResult[]) => onUploadFile(filePickerResult)}
onChange={(filePickerResult: IFilePickerResult[]) => onChangeFile(filePickerResult)}
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion src/loc/de-de.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ define([], function() {
UploadTo: "Hochladen auf",
UrlNotSelected: "Nicht ausgewählt",
UrlPickerBrowse: "Öffnen...",
UrlPickerExtensions: ".vsd\", \".vsdx\", \".vsdm",
View: "Ansicht",
VisioDocument: "Visio Document"
};
Expand Down
1 change: 0 additions & 1 deletion src/loc/en-us.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ define([], function() {
UploadTo: "Upload To",
UrlNotSelected: "Not selected",
UrlPickerBrowse: "Browse...",
UrlPickerExtensions: ".vsd\", \".vsdx\", \".vsdm",
View: "View",
VisioDocument: "Visio Document"
};
Expand Down
1 change: 0 additions & 1 deletion src/loc/strings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ declare interface IWebPartStrings {
UploadTo: string;
UrlNotSelected: string;
UrlPickerBrowse: string;
UrlPickerExtensions: string;
VisioDocument: string;
}

Expand Down

0 comments on commit 6cd37b6

Please sign in to comment.