
NW.js Essentials
Beschreibung
Alle Preise
Weitere Details
Weitere Ausgaben
Inhalt
- Cover
- Copyright
- Credits
- About the Author
- Acknowledgments
- About the Reviewers
- www.PacktPub.com
- Table of Contents
- Preface
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 7: Automated Packaging Tools
- Web2Executable
- node-webkit-builder and grunt-node-webkit-builder
- grunt-node-webkit-builder
- generator-node-webkit
- Summary
- Chapter 8: Let's Debug Your Application
- Remote debugging
- The DevTools API
- Live reloading NW.js
- Troubleshooting common issues
- Summary
- Chapter 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
Systemvoraussetzungen
Dateiformat: ePUB
Kopierschutz: Adobe-DRM (Digital Rights Management)
Systemvoraussetzungen:
- Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).
- Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions oder die App PocketBook (siehe E-Book Hilfe).
- E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)
Das Dateiformat ePUB ist sehr gut für Romane und Sachbücher geeignet – also für „fließenden” Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an.
Mit Adobe-DRM wird hier ein „harter” Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.
Bitte beachten Sie: Wir empfehlen Ihnen unbedingt nach Installation der Lese-Software diese mit Ihrer persönlichen Adobe-ID zu autorisieren!
Weitere Informationen finden Sie in unserer E-Book Hilfe.
Dateiformat: PDF
Kopierschutz: Adobe-DRM (Digital Rights Management)
Systemvoraussetzungen:
- Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).
- Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions oder die App PocketBook (siehe E-Book Hilfe).
- E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)
Das Dateiformat PDF zeigt auf jeder Hardware eine Buchseite stets identisch an. Daher ist eine PDF auch für ein komplexes Layout geeignet, wie es bei Lehr- und Fachbüchern verwendet wird (Bilder, Tabellen, Spalten, Fußnoten). Bei kleinen Displays von E-Readern oder Smartphones sind PDF leider eher nervig, weil zu viel Scrollen notwendig ist.
Mit Adobe-DRM wird hier ein „harter” Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.
Bitte beachten Sie: Wir empfehlen Ihnen unbedingt nach Installation der Lese-Software diese mit Ihrer persönlichen Adobe-ID zu autorisieren!
Weitere Informationen finden Sie in unserer E-Book Hilfe.