-
Notifications
You must be signed in to change notification settings - Fork 18
Conversation
* added react-dom to "externals" in webpack.config.js * removed from repository a unused bundle file * added a missing dev dependency (eslint-config-dnn)
…ed for prepublishOnly
…pack dependency for SvgIcons common component
…pack dependency for Checkbox common component
…pack dependency for Collapsible common component
…pack dependency for CollapsibleRow common component
…pack dependency for ContentLoaderWrapper common component
…pack dependency for DatePicker common component
…pack dependency for DayPicker common component
…pack dependency for DatePicker common component
…pack dependency for Dropdown common component
…pack dependency for DropdownWithError common component
…pack dependency for Droppable common component
…pack dependency for EditableField common component
…pack dependency for FileUpload common component
…pack dependency for FolderPicker common component
…pack dependency for GridCell common component
…pack dependency for GridSystem common component
…pack dependency for InputGroup common component
…pack dependency for Modal common component
…pack dependency for MultilineInput common component
…pack dependency for MultiLineInputWithError common component
DNN-10066 Fixed bundle's size issue. From 260kb to 52kb.
CONTENT-7612: localize dnn-file-upload component.
…G files management.
DNN-10414: provided option to make current page not selectable
…CM-762-merge # Conflicts: # Collapsible/lib/Collapsible.js # FileUpload/lib/FileUpload.js # FileUpload/package.json # InputGroup/lib/InputGroup.js # InputGroup/package.json # PagePicker/lib/PagePicker.js # PagePicker/package.json # PersonaBarPageHeader/lib/PersonaBarPageHeader.js # PersonaBarPageHeader/package.json # PersonaBarPageHeader/webpack.config.js # SvgIcons/lib/SvgIcons.js # SvgIcons/package.json # SvgIcons/src/SvgIcons.jsx # TextOverflowWrapper/package.json # TextOverflowWrapper/webpack.config.js # TextOverflowWrapperNew/lib/TextOverflowWrapperNew.js # TextOverflowWrapperNew/package.json # Tooltip/lib/Tooltip.js
node_modules | ||
/sinopiautil.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using rlidwka/sinopia? It looks kind of dead (rlidwka/sinopia#463 rlidwka/sinopia#376)
@@ -0,0 +1,6 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come the components before this one (alphabetically) didn't have a .babelrc
?
"react": "^15.3.2", | ||
"react-day-picker": "^2.3.3", | ||
"moment": "2.13.0", | ||
"raw-loader": "0.5.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed !raw!
in jsx so maybe this dependency is no longer needed?
"url-loader": "0.5.7", | ||
"webpack": "1.13.0" | ||
"react": "^15.6.2", | ||
"react-custom-scrollbars": "^4.1.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, are we using more than one solution for scrollbars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I also found different scrollbars' libraries in other projects.
fileInput.value = ''; | ||
clearFileUploaderValue(fileInput) { | ||
if (fileInput) { | ||
fileInput.value = ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I though single quotes were the default ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project standard seems to be double quotes :)
"react": "^15.3.2", | ||
"dnn-global-styles": "0.0.5", | ||
"dnn-grid-cell": "0.0.4", | ||
"dnn-back-to-link": "0.0.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How cute. These dnn components weren't even included in old dependencies :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to check deps one by one... it happened in many other places and made testing and debugging quite hard before.
@@ -1,37 +1,49 @@ | |||
{ | |||
"name": "dnn-persona-bar-page-header", | |||
"version": "0.0.29", | |||
"version": "0.0.31", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I keep looking at those versions and I'm getting the impression that we're not really using server correctly?
@@ -17,6 +17,7 @@ | |||
"babel-loader": "6.2.4", | |||
"babel-preset-es2015": "6.6.0", | |||
"babel-preset-react": "6.5.0", | |||
"cpy": "^6.0.0", | |||
"css-loader": "0.23.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this file even here, in root? And package name is dnn-tree-control
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe some wild cut and paste :)
"dnn-text-overflow-wrapper-new": "0.0.4", | ||
"shortid": "^2.2.8" | ||
"shortid": "^2.2.8", | ||
"lodash": "4.17.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we doing tree shaking in end apps? If not maybe we could import the individual features of lodash?
@@ -4,8 +4,6 @@ const searchIcon = require("!raw!./img/search.svg"); | |||
const fileIcon = require("!raw!./img/pages.svg"); | |||
import { Scrollbars } from "react-custom-scrollbars"; | |||
|
|||
const notSpecifiedText = "<None Specified>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, where is the default text now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually the real problem here is the "!raw!" prefix... I should investigate, since it won't work without webpack, I guess.
FileUpload/src/FileUpload.jsx
Outdated
@@ -67,7 +64,7 @@ export default class FileUpload extends Component { | |||
} | |||
if (nextProps.selectedFile.fileId !== this.state.selectedFile.fileId) { | |||
const file = nextProps.selectedFile; | |||
this.updateFileState(file); | |||
//this.updateFileState(file); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed anymore? Please consider removing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know who and why made this. This pull requests focus on project structure and build process.
InputGroup/src/style.less
Outdated
border-collapse: separate; | ||
width: 100%; | ||
float: left; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure float
isn't going to cause trouble?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know about the code of each components. It's part of our next issues when we will decide how to manage common components
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, this looks like a new style prop here. I worry it could break some UI
}); | ||
componentDidMount() { | ||
//Set time out to ensure calculation happens after render | ||
setTimeout(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is setTimeout
the best option to synchronise?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe not. I don't know who and why made this. This pull requests focus on project structure and build process.
No description provided.