Updated angular todo sample to SPFx v0.2.0 (#7)
Changed to loading Angular and ngOfficeUIFabric from CDN
This commit is contained in:
parent
81ac375173
commit
89a9b575d9
|
@ -13,9 +13,14 @@
|
|||
"office-ui-fabric-react": "node_modules/office-ui-fabric-react/dist/office-ui-fabric-react.js",
|
||||
"react": "node_modules/react/dist/react.min.js",
|
||||
"react-dom": "node_modules/react-dom/dist/react-dom.min.js",
|
||||
"react-dom/server": "node_modules/react-dom/dist/react-dom-server.min.js"
|
||||
"react-dom/server": "node_modules/react-dom/dist/react-dom-server.min.js",
|
||||
"angular": {
|
||||
"path": "https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.8/angular.min.js",
|
||||
"globalName": "angular"
|
||||
},
|
||||
"ng-office-ui-fabric": "https://cdnjs.cloudflare.com/ajax/libs/ngOfficeUiFabric/0.12.3/ngOfficeUiFabric.js"
|
||||
},
|
||||
"localizedResources": {
|
||||
"mystrings": "webparts/toDo/loc/{locale}.js"
|
||||
"toDoStrings": "webparts/toDo/loc/{locale}.js"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,15 +6,13 @@
|
|||
"node": ">=0.10.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@microsoft/sp-client-base": "~0.1.12",
|
||||
"@microsoft/sp-client-preview": "~0.1.12",
|
||||
"angular": "^1.5.8",
|
||||
"ng-office-ui-fabric": "^0.12.3"
|
||||
"@microsoft/sp-client-base": "~0.2.0",
|
||||
"@microsoft/sp-client-preview": "~0.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@microsoft/sp-build-web": "~0.4.32",
|
||||
"@microsoft/sp-module-interfaces": "~0.1.8",
|
||||
"@microsoft/sp-webpart-workbench": "~0.1.12",
|
||||
"@microsoft/sp-build-web": "~0.5.0",
|
||||
"@microsoft/sp-module-interfaces": "~0.2.0",
|
||||
"@microsoft/sp-webpart-workbench": "~0.2.0",
|
||||
"gulp": "~3.9.1"
|
||||
},
|
||||
"scripts": {
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
import ModuleLoader from '@microsoft/sp-module-loader';
|
||||
|
||||
import styles from './ToDo.module.scss';
|
||||
import * as strings from 'mystrings';
|
||||
import * as strings from 'toDoStrings';
|
||||
import { IToDoWebPartProps } from './IToDoWebPartProps';
|
||||
|
||||
import * as angular from 'angular';
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
declare interface IStrings {
|
||||
declare interface IToDoStrings {
|
||||
PropertyPaneDescription: string;
|
||||
ViewGroupName: string;
|
||||
HideFinishedTasksFieldLabel: string;
|
||||
}
|
||||
|
||||
declare module 'mystrings' {
|
||||
const strings: IStrings;
|
||||
declare module 'toDoStrings' {
|
||||
const strings: IToDoStrings;
|
||||
export = strings;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue