-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1dabe42
commit 7dae658
Showing
2 changed files
with
44 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# ngx-file-select | ||
|
||
Tired of forcing your users to access their own files on a web app by entering a path so that NodeJS can interact with it. This is a simple web component which acts as a lightweight alternative to the Electron file browser. | ||
|
||
## Preview | ||
|
||
|
||
## Example: Embed in a bootsrap modal | ||
```html | ||
|
||
<script type="text/javascript"> | ||
function handleBrowseEvent(event) { | ||
window.removeEventListener('fselect', handleBrowseEvent); | ||
$("#browseModal").modal('hide'); | ||
$("#new-node-input-filename").val(event.detail.path); | ||
} | ||
</script> | ||
|
||
<!-- Bootstrap 4 modal --> | ||
<div id="browseModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | ||
<div class="modal-dialog modal-lg"> | ||
<div class="modal-content"> | ||
|
||
<div class="modal-header"> | ||
<h3 id="myModalLabel" class="modal-title text-white">File Browse Control</h3> | ||
<button type="button" class="close text-white" id="modal-x" data-dismiss="modal" aria-hidden="true">×</button> | ||
</div> | ||
|
||
<div class="modal-body" id="fileBrowseControl"> | ||
<div style="background-color: white;"> | ||
<file-browse></file-browse> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,12 @@ | ||
# account-manager-api | ||
# file demo api | ||
|
||
## Build | ||
|
||
```bash | ||
npm install | ||
npm run build | ||
|
||
## Debugging | ||
From git bash | ||
```bash | ||
export DB_CONNECT_STRING="mongodb+srv://<username>:<password>@cluster0.2xjwj.mongodb.net/<dbname>?retryWrites=true&w=majority" | ||
export RECURLY_API_KEY="API_KEY" | ||
|
||
export AWS_ACCESS_KEY_ID="AWS_ACCESS_KEY_ID" | ||
export AWS_SECRET_ACCESS_KEY="AWS_SECRET_ACCESS_KEY" | ||
``` | ||
then launch VS Code. | ||
|
||
## Running | ||
```bash | ||
code . | ||
npm start | ||
``` | ||
last start the debugger. |