-
Notifications
You must be signed in to change notification settings - Fork 0
Create new_js.js #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
PavelLinearB
wants to merge
20
commits into
main
Choose a base branch
from
cr1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Create new_js.js #98
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
10e43c1
Create new_js.js
PavelLinearB 325694f
Merge branch 'main' into cr1
PavelLinearB 81e5636
Merge branch 'main' into cr1
PavelLinearB 07a3e4e
Merge branch 'main' into cr1
PavelLinearB 88c38ce
Merge branch 'main' into cr1
PavelLinearB 2dcf5e7
Merge branch 'main' into cr1
PavelLinearB 5beb861
Merge branch 'main' into cr1
PavelLinearB 0870ac4
Merge branch 'main' into cr1
PavelLinearB d7df4f6
Merge branch 'main' into cr1
PavelLinearB 4f98323
Merge branch 'main' into cr1
PavelLinearB efb075a
Merge branch 'main' into cr1
PavelLinearB 77898bc
Merge branch 'main' into cr1
PavelLinearB 41aaee2
Merge branch 'main' into cr1
PavelLinearB fcd5043
Merge branch 'main' into cr1
PavelLinearB a5f3473
Merge branch 'main' into cr1
PavelLinearB 0d6bed6
Merge branch 'main' into cr1
PavelLinearB f54b82a
Merge branch 'main' into cr1
PavelLinearB 22d23d0
Merge branch 'main' into cr1
PavelLinearB 2982f7f
Merge branch 'main' into cr1
PavelLinearB d0d94bd
Merge branch 'main' into cr1
PavelLinearB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| var app = require('app'); | ||
| var BrowserWindow = require('browser-window'); | ||
| var glob = require('glob'); | ||
|
|
||
| var mainWindow = null; | ||
|
|
||
| // Require and setup each JS file in the main-process dir | ||
| glob('main-process/**/*.js', function (error, files) { | ||
| if (error) return console.log(error); | ||
| files.forEach(function (file) { | ||
| require('./' + file).setup(); | ||
| }); | ||
| }); | ||
|
|
||
| function lala () { | ||
| const length = 10; | ||
| const pets = new Array(length); | ||
| pets[pets.length] = "cat"; | ||
| const array1 = [1, 2, 3, 4]; | ||
| const sum = array1.reduce(function (a, b) { | ||
| return a + b; | ||
| }); | ||
|
|
||
| const dogs = ["Rex", "Lassie"] | ||
| for (let i = 0; i < dogs.length; i++) { | ||
| console.log(dogs[i]); | ||
| } | ||
| } | ||
|
|
||
| function SayHello() { | ||
| console.log("Hello!"); | ||
| } | ||
|
|
||
| function doIt() { | ||
| console.log("Hello!"); | ||
| } | ||
|
|
||
| function createWindow () { | ||
| mainWindow = new BrowserWindow({ width: 920, height: 900 }); | ||
| mainWindow.loadURL('file://' + __dirname + '/index.html'); | ||
| mainWindow.on('closed', function () { | ||
| mainWindow = null; | ||
| }); | ||
| } | ||
|
|
||
| app.on('ready', createWindow); | ||
|
|
||
| app.on('window-all-closed', function () { | ||
| if (process.platform !== 'darwin') { | ||
| app.quit(); | ||
| } | ||
| }); | ||
|
|
||
| app.on('activate', function () { | ||
| if (mainWindow === null) { | ||
| createWindow(); | ||
| } | ||
| }); | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.