万本电子书0元读

万本电子书0元读

顶部广告

NW.js Essentials电子书

售       价:¥

5人正在读 | 0人评论 9.8

作       者:Alessandro Benoit

出  版  社:Packt Publishing

出版时间:2015-05-25

字       数:81.5万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
If you are an experienced Node.js developer who wants to create amazing desktop applications using NW.js, this is the book for you. Prior knowledge of HTML5, jQuery, and CSS is assumed.
目录展开

NW.js Essentials

Table of Contents

NW.js Essentials

Credits

About the Author

Acknowledgments

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Errata

Piracy

Questions

1. Meet NW.js

NW.js under the hood

Features and drawbacks of NW.js

NW.js – usage scenarios

Popular NW.js applications

Downloading and installing NW.js

Installing NW.js on Mac OS X

Installing NW.js on Microsoft Windows

Installing NW.js on Linux

Development tools

Writing and running your first "Hello World" app

Running NW.js applications on Sublime Text 2

Running NW.js applications on Microsoft Windows

Running NW.js applications on Mac OS

Running NW.js applications on Linux

Summary

2. NW.js Native UI APIs

The App API – the core of your applications

Opening a file in your application natively

Accessing the application data folder path

Accessing the manifest file data

Best practices for closing applications

Registering system-wide hotkeys

Other app APIs

The Window API – working with windows on NW.js

Instantiating a new window object

Window – setting size and position of windows

Changing the window status

Fullscreen windows and the Kiosk mode

Frameless windows and drag regions

The taskbar icon – get the user's attention!

Closing windows

Other Window APIs

The Screen API – screen geometry functions

The Menu API – handling window and context menus

The contextual menu

The window menu

File dialogs – opening and saving files

Opening multiple files

Filtering by file type

Opening a directory

Saving files

Suggesting a default path

Opening files through file dragging

The Tray API – hide your application in plain sight

The Clipboard API – accessing the system clipboard

The Shell API – platform-dependent desktop functions

Summary

3. Leveraging the Power of Node.js

Routing and templating in NW.js

Node.js global and process objects

The window object

Using NW.js' main module

Handling paths in NW.js

NW.js context issues

Working with Node.js modules

Internal modules

Third-party modules written in JavaScript

Third-party modules with C/C++ add-ons

Summary

4. Data Persistence Solutions and Other Browser Web APIs

Data persistence solutions

Web storage

Web SQL Database

IndexedDB

XMLHttpRequest and BLOBs

Handling media files

Shedding some light on security issues

The Web Notifications API

Summary

5. Let's Put It All Together

Let's get started!

A matter of style

The HTML5 skeleton

Let's dive deep into the application logic

The application layer

Adding a new task

Loading all the tasks

Implementing export and sync features

The NativeUI layer

Implementing the Window menu

Implementing the Context menu

Restoring the window position

Implementing the Options window

Closing the application

Making the application open smoothly

Summary

6. Packaging Your Application for Distribution

The manifest file

The general logic behind the packaging procedure

Packaging NW.js applications for Mac OS X

Associating a file extension with your application

Packaging NW.js applications for Microsoft Windows

Registering a file type association on Microsoft Windows

Packaging NW.js applications for Linux

Adding icon and file type associations on Linux

Securing your source code

About NW.js application licensing

Summary

7. Automated Packaging Tools

Web2Executable

node-webkit-builder and grunt-node-webkit-builder

grunt-node-webkit-builder

generator-node-webkit

Summary

8. Let's Debug Your Application

Remote debugging

The DevTools API

Live reloading NW.js

Troubleshooting common issues

Summary

9. Taking Your Application to the Next Level

NW.js boilerplates

node-webkit-hipster-seed

angular-desktop-app

node-webkit-tomster-seed

node-webkit-boilerplate

nw-boilerplate

Development ideas

Resources and tutorials

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部