This file contains hidden or 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
| const { | |
| app, BrowserWindow, TouchBar, nativeImage, | |
| } = require('electron'); | |
| const { TouchBarScrubber, TouchBarButton } = TouchBar; | |
| const image = nativeImage.createFromPath('./m.png').resize({ height: 30 }); | |
| app.on('ready', () => { | |
| const win = new BrowserWindow({ |
This file contains hidden or 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
| const { | |
| app, BrowserWindow, TouchBar, nativeImage, | |
| } = require('electron'); | |
| const { TouchBarPopover, TouchBarButton } = TouchBar; | |
| const image = nativeImage.createFromPath('./m.png').resize({ height: 30 }); | |
| app.on('ready', () => { | |
| const win = new BrowserWindow({ |
This file contains hidden or 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
| const { | |
| app, BrowserWindow, TouchBar, nativeImage, | |
| } = require('electron'); | |
| const { TouchBarSegmentedControl } = TouchBar; | |
| const image = nativeImage.createFromPath('./m.png').resize({ height: 30 }); | |
| app.on('ready', () => { | |
| const win = new BrowserWindow({ |
This file contains hidden or 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
| const { | |
| app, BrowserWindow, TouchBar, | |
| } = require('electron'); | |
| const { TouchBarColorPicker } = TouchBar; | |
| app.on('ready', () => { | |
| const win = new BrowserWindow({ | |
| width: 800, | |
| height: 600, |
This file contains hidden or 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
| const { | |
| app, BrowserWindow, TouchBar, | |
| } = require('electron'); | |
| const { TouchBarGroup, TouchBarSpacer, TouchBarLabel } = TouchBar; | |
| app.on('ready', () => { | |
| const win = new BrowserWindow({ | |
| width: 800, |
This file contains hidden or 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
| const { | |
| app, BrowserWindow, TouchBar, | |
| } = require('electron'); | |
| const { TouchBarSlider } = TouchBar; | |
| app.on('ready', () => { | |
| const win = new BrowserWindow({ | |
| width: 800, | |
| height: 600, |
This file contains hidden or 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
| const { app, BrowserWindow, TouchBar } = require('electron'); | |
| const { TouchBarLabel, TouchBarButton, TouchBarSpacer } = TouchBar; | |
| const button = new TouchBarButton({ | |
| label: `Count: ${counter}`, | |
| accessibilityLabel: 'Counter', | |
| backgroundColor: '#6ab04c', | |
| click: () => { | |
| update(); | |
| }, |
This file contains hidden or 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
| const { | |
| app, BrowserWindow, TouchBar, nativeImage, | |
| } = require('electron'); | |
| const { TouchBarButton } = TouchBar; | |
| app.on('ready', () => { | |
| const win = new BrowserWindow({ | |
| width: 800, | |
| height: 600, |
This file contains hidden or 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
| const { app, BrowserWindow } = require('electron') | |
| function createWindow () { | |
| // Create the browser window. | |
| let win = new BrowserWindow({ | |
| width: 800, | |
| height: 600, | |
| webPreferences: { | |
| nodeIntegration: true | |
| } |
This file contains hidden or 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
| em++ ../main.cpp ../stringFormat.cpp \ | |
| -Os -g1 \ | |
| -s WASM=1 \ | |
| -s MALLOC=emmalloc \ | |
| -s ALLOW_MEMORY_GROWTH=1 \ | |
| -s EXPORT_ES6=1 \ | |
| -s MODULARIZE=1 \ | |
| -s 'EXPORT_NAME="LongerSubSequence"' \ | |
| -s 'ENVIRONMENT="web"' \ | |
| --bind \ |