GithubHelp home page GithubHelp logo

browser-window's People

Contributors

jamen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

browser-window's Issues

`menubar` option

Instead of the long autoHideMenuBar, just a meunbar that defaults to true. e.g. menubar: false to disable

Custom "ready" signal on `window.load`

Would be nice if there was a to trigger window.load's callback through IPC.

I envision something like this:

var window = browser()

window.load('./source.html', function () {
  // Trigger this manually in source
})
var me = require('browser-window/child')()

setTimeout(function () {
  me.ready()
}, 100)

Pure JS apps

With our window.load, you can make Electron apps without creating HTML and CSS files:

var APP_ENTRY = path.resolve('./app/index.js')

window.load(`<html><body><script>require('${APP_ENTRY}')</script></body>`, { type: 'text/html' })

It would be cool if there was a way to bootstrap JS files even easier.

Window IPC with UIDs

I would likewin.on(evt, fn) and win.send(evt, ...params) to operate on top of uuid or unique-string (maybe win.native.id?) to have the events be per-window.

For example, win.on('foo', ...) becomes 241$foo or 4427b402-9921-4a03-ac2d-6841dcfbf2aa$foo

An `openDevTools` helper.

It would be cool to have something like this:

var window = browser.transparent({
  devTools: process.env.APP_ENV === 'dev'
  // ...
})

To have dev tools open automatically:

APP_ENV=dev electron .

It could be supplied true/false, or openDevTools's mode options. e.g.:

var window = browser({ devTools: 'undocked' })

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.