Skip to content

Commit

Permalink
docs: Updating README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
johnazedo committed Jun 1, 2020
1 parent 6bd5537 commit 27f25b4
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 27 deletions.
55 changes: 53 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,59 @@ Shortcuts | Description
Cmd+J or Ctrl+J | Show dev tools
Cmd+B or Ctrl+b | Return to home page

## How to use?
A guide to use this software

### Install and usage

Clone this repository:

````sh
git clone [email protected]:JohnAzedo/RocketBrowser.git
````
This command will install all dependences.
Install npm before do this:
````sh
npm install
````

Run application with:
````sh
npm start
````



### SASS compile command

```console
$ sass --sourcemap=none --no-cache app/assets/sass/*.sass:app/assets/css/*.css
If you change something in SASS files, run this command:
```sh
sass --sourcemap=none --no-cache app/assets/sass/*.sass:app/assets/css/*.css
```
## Project structure
````sh
.
├── LICENSE
├── README.md
├── app
│   ├── assets
│   │   ├── css
│   │   │   └── home.css
│   │   └── sass
│   │   └── home.sass
│   ├── controllers
│   │   └── home.js
│   └── home.html
├── app.js
├── config
│   └── settings.js
├── package-lock.json
└── package.json

6 directories, 10 files
````

## Authors
- [@johnazedo](https://github.com/JohnAzedo)

- [@maykbrito](https://github.com/maykbrito)
16 changes: 0 additions & 16 deletions app/arrow-left.html

This file was deleted.

9 changes: 0 additions & 9 deletions app/controllers/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,15 @@
const electron = require('electron');
const urlExists = require('url-exists');
const currentWindow = electron.remote.getCurrentWindow()
const BrowserView = electron.remote.BrowserView


document.querySelector('#btnSearch').addEventListener('click', () => {
url = document.getElementById("inputURL").value;
urlExists(url, function(err, exists) {
if (exists) {
// let view = new BrowserView();
// currentWindow.setBrowserView(view);
// view.setBounds({ x: 20, y: 430, width: 60, height: 60 });
// view.webContents.loadFile("app/arrow-left.html");
currentWindow.loadURL(url);
}
});
});

// document.querySelector('#btnBack').addEventListener('click', () => {
// console.log("teste");
// });


0 comments on commit 27f25b4

Please sign in to comment.