Skip to content

Commit

Permalink
update to bootstrap branch (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
chicoxyzzy committed Oct 6, 2022
1 parent 9bf9eec commit 4273a67
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
1 change: 1 addition & 0 deletions desktop-kotlin-kotlinjs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
build/
package-lock.json
2 changes: 0 additions & 2 deletions desktop-kotlin-kotlinjs/src/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ fun main () {
val cwd = ipc.cwd()

if (cwd != null) {
ipc.navigate("file://$cwd/index.html")
ipc.title("Socket SDK Kotlin/Native %26 Kotlin.js Example")
ipc.show(index = 0)
}
}
6 changes: 0 additions & 6 deletions desktop-node-react/src/main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { dirname, join } from 'path';
import system from '@socketsupply/ssc-node';

async function main () {
await system.show({ window: 0 });

const screen = await system.getScreenSize();

await system.setSize({
Expand All @@ -17,10 +15,6 @@ async function main () {
value: 'React App',
});

const resourcesDirectory = dirname(process.argv[1]);
const file = join(resourcesDirectory, 'index.html');
await system.navigate({ window: 0, value: `file://${file}` });

let counter = 0;

function increaseCounterAndSendMessage(type) {
Expand Down
8 changes: 4 additions & 4 deletions desktop-node-tonic-cjs/src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function main () {
// ## Example
// Show one of the windows
//
await system.show({ window: 0 })
// await system.show({ window: 0 })
// await system.show({ window: 1 })

//
Expand All @@ -37,9 +37,9 @@ async function main () {
// ## Example
// Navigate from the current location
//
const resourcesDirectory = path.dirname(process.argv[1])
const file = path.join(resourcesDirectory, 'index.html')
await system.navigate({ window: 0, value: `file://${file}` })
// const resourcesDirectory = path.dirname(process.argv[1])
// const file = path.join(resourcesDirectory, 'index.html')
// await system.navigate({ window: 0, value: `file://${file}` })
// await system.navigate({ window: 1, value: `file://${file}` })

// await system.setSize({ window: 0, width: 200, height: 200 })
Expand Down
8 changes: 4 additions & 4 deletions desktop-node-tonic-esm/src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function main () {
// ## Example
// Show one of the windows
//
await system.show({ window: 0 })
// await system.show({ window: 0 })
// await system.show({ window: 1 })

//
Expand All @@ -37,9 +37,9 @@ async function main () {
// ## Example
// Navigate from the current location
//
const resourcesDirectory = path.dirname(process.argv[1])
const file = path.join(resourcesDirectory, 'index.html')
await system.navigate({ window: 0, value: `file://${file}` })
// const resourcesDirectory = path.dirname(process.argv[1])
// const file = path.join(resourcesDirectory, 'index.html')
// await system.navigate({ window: 0, value: `file://${file}` })
// await system.navigate({ window: 1, value: `file://${file}` })

// await system.setSize({ window: 0, width: 200, height: 200 })
Expand Down

0 comments on commit 4273a67

Please sign in to comment.