Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for multiple users with different access rights and Text Editor. #331

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
364c901
Fixed broken symbolic links visualisation. If symbolic link was broke…
nickiv69 Mar 17, 2022
f0d98f1
if the OS (e.g. Embedded Linux Platform) where File Manager is runnin…
nickivnv Mar 22, 2022
e93a63b
Adding "http-proxy-middleware" library to client-react project.
nickivnv Mar 22, 2022
6002e38
Merge branch 'master' of https://github.com/nickivnv/filemanager
nickivnv Mar 29, 2022
70231b0
Merge branch 'OpusCapita:master' into master
nickivnv Mar 29, 2022
cc3c09c
Bug fix: Unit test with Node v16.13.1 ended with the following errors:
nickivnv Apr 4, 2022
3f720c9
Merge branch 'master' of https://github.com/nickivnv/filemanager
nickivnv Apr 4, 2022
470a4f3
Merge branch 'OpusCapita:master' into master
nickivnv Apr 8, 2022
93f587b
Supporting users with different access rights. Adding 'express-sessio…
nickivnv Apr 8, 2022
9904ecb
Add Signin Dialog to the components.
nickivnv Apr 22, 2022
d1fe60a
Response with http error 419 if session expired.
nickivnv Apr 25, 2022
0f1d5a9
Add cookie session to the unit test.
nickivnv Apr 27, 2022
3cc15f1
Add MultiUserAccessFileManager client component.
nickivnv May 5, 2022
9c206d0
Server extended to handle file editing.
nickivnv Nov 18, 2022
d26ed7e
Add editor dialog to the front-end.
nickivnv Nov 21, 2022
4a3a3ab
Integrate edward(web editor based on Ace) into server part.
nickivnv Nov 22, 2022
518a170
delete some wrong commit files
nickivnv Nov 22, 2022
8cfb347
Change library version for using on node 12.22.2
nickivnv Nov 22, 2022
361f857
Replace Edward(https://github.com/cloudcmd/edward) editor with React-…
nickivnv Dec 9, 2022
6a4efb1
Close icon added in the top-right corner.
nickivnv Dec 12, 2022
87053b5
close icon position property changed.
nickivnv Dec 12, 2022
fe5bd96
Show correct file size and date after modifying.
nickivnv Dec 12, 2022
5da256d
Open files with double click in 'view' or 'edit' mode depending on ac…
nickivnv Dec 14, 2022
4238ee7
Limit loaded file size for Editor to 100KB.
nickivnv Dec 23, 2022
84b6a69
File loaded limit size error message made as text resource.
nickivnv Dec 23, 2022
572464b
Adding some more language modes to AceEditor.
nickivnv Dec 27, 2022
f285b16
bug fix with editor view mode.
nickivnv Jan 2, 2023
2a31c10
prevent exception on client, if not imported editor mode is used.
nickivnv Jan 2, 2023
ab2116c
Move location bar to the top area. which is usual for most known File…
nickivnv Feb 6, 2023
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
2 changes: 1 addition & 1 deletion packages/client-react/.env.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports = {
HOST: process.env.HOST ? process.env.HOST : 'localhost',
PORT: process.env.PORT ? process.env.PORT : 3000,
SERVER_URL: process.env.SERVER_URL ? process.env.SERVER_URL : 'http://localhost:8080/myfilemanager',
FILE_SERVER_URL: process.env.FILE_SERVER_URL ? process.env.FILE_SERVER_URL : 'http://localhost:3020',// 'http://localhost:8080/myfilemanager',

CLIENT_ID: process.env.CLIENT_ID,
API_KEY: process.env.API_KEY
Expand Down
3 changes: 2 additions & 1 deletion packages/client-react/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ module.exports = {
}
}],
include: [
path.resolve(__dirname, '../src')
path.resolve(__dirname, '../src'),
path.resolve(__dirname, '../www')
]
}
]
Expand Down
9 changes: 6 additions & 3 deletions packages/client-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"babel-cli": "6.26.0",
"babel-core": "6.26.0",
"babel-eslint": "8.2.3",
"babel-loader": "6.4.1",
"babel-loader": "7.1.5",
"babel-plugin-lodash": "3.2.11",
"babel-plugin-transform-decorators-legacy": "1.3.4",
"babel-plugin-transform-runtime": "6.23.0",
Expand Down Expand Up @@ -86,10 +86,13 @@
"source-map-loader": "0.1.6",
"style-loader": "0.13.2",
"url-loader": "0.5.8",
"webpack": "2.2.1",
"webpack": "2.7.0",
"webpack-bundle-analyzer": "2.8.2",
"webpack-dev-middleware": "1.10.1",
"write-file-webpack-plugin": "3.4.2"
"write-file-webpack-plugin": "3.4.2",
"http-proxy-middleware": "2.0.3",
"react-ace": "10.1.0"

},
"dependencies": {
"@opuscapita/react-svg": "2.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import './Dialog.less';

const propTypes = {
autofocus: PropTypes.bool,
onHide: PropTypes.func
onHide: PropTypes.func,
className: PropTypes.string
};
const defaultProps = {
autofocus: false,
onHide: () => {}
onHide: () => {},
className: "oc-fm--dialog"
};

export default
Expand All @@ -26,7 +28,7 @@ class Dialog extends Component {
return (
<div
ref={ref => (autofocus && ref && ref.focus())}
className="oc-fm--dialog"
className={this.props.className}
onKeyDown={this.handleKeyDown}
onClick={e => e.stopPropagation()}
onMouseDown={e => e.stopPropagation()}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
### Synopsis

EditDialog is
*Write here a short introduction and/or overview that explains **what** component is.*

### Props Reference

| Name | Type | Description |
| ------------------------------ | :---------------------- | ----------------------------------------------------------- |
| demoProp | string | Write a description of the property |

### Code Example

```
<div style={{ backgroundColor: 'rgba(0, 0, 0, 0.72)' }}>
<EditDialog />
</div>
```

### Component Name

EditDialog

### License

Apache License Version 2.0

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
What is a SCOPE file. See documentation here:
https://github.com/OpusCapita/react-showroom-client/blob/master/docs/scope-component.md
*/

import React, { Component } from 'react';
import { showroomScopeDecorator } from '@opuscapita/react-showroom-client';

@showroomScopeDecorator
export default
class EditDialogScope extends Component {
constructor(props) {
super(props);
this.state = {};
}

render() {
return (
<div>
{this._renderChildren()}
</div>
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.oc-fm-edit-dialog {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
padding: 12px;
width: 92%;
height: 92%;
// width: calc(100% - 10px);
// height: calc(100% - 10px);
border-radius: 4px;
background: #fff;
position: relative;
box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 16px, rgba(0, 0, 0, 0.15) 0px 1px 4px;

&:focus {
outline:none;
}
}

.oc-edit--dialog__content {
width: 100%;
max-width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;

&:focus {
outline: none;
}
}

.oc-edit--dialog__close-icon {
width: 24px;
height: 24px;
position: absolute;
top: 2px;
right: 2px;
&:hover {
background-color: #e0e0e0;
}
}

@font-face {
font-family : 'Droid Sans Mono';
src : url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJTwtzT4qNq-faudv5qbO9-U.eot);
src :
local('Droid Sans Mono'),
local('DroidSansMono'),
url(/font/DroidSansMono.eot) format('embedded-opentype'),
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJTwtzT4qNq-faudv5qbO9-U.eot?#iefix) format('embedded-opentype'),
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJTwtzT4qNq-faudv5qbO9-U.eot) format('embedded-opentype'),
url(/font/DroidSansMono.woff2) format('woff2'),
url(/font/DroidSansMono.woff) format('woff'),
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff) format('woff'),
local('Consolas');
font-style : normal;
font-weight : 400;
}
Loading