release-neutralino v0.1
HerrHase 2 years ago
parent 62f8124d1c
commit 335d8efd28

@ -0,0 +1,12 @@
# Potato launcher
I know there a many Launcher on the Market, and they are all damn Beautiful, this
App is not Beautiful, it's only starts App, it is really simple, no fancy dancy Functions.
And it is not finish!
## Next Goals
* Change Format of Images
* Adding Function to Filter Results
* Keyboard- and Controller-Control

@ -32,7 +32,7 @@ class AppsStore extends PouchdbHandler {
.then((response) => {
return this.findOneById(response._id)
}).catch((error) => {
console.log(error)
console.error(error)
})
}
@ -47,7 +47,7 @@ class AppsStore extends PouchdbHandler {
.then((response) => {
return this.findOneById(response._id)
}).catch((error) => {
console.log(error)
console.error(error)
})
}

@ -28,7 +28,7 @@
"fullScreen": false,
"alwaysOnTop": false,
"icon": "/resources/icons/appIcon.png",
"enableInspector": true,
"enableInspector": false,
"borderless": true,
"maximize": true,
"hidden": false,

@ -194,36 +194,27 @@
},
/**
* choose a file for command
*
*
* @param {object} event
*
*/
async handleSelectProgram(event) {
event.preventDefault()
let entry = await Neutralino.os.showOpenDialog('', {
// open dialog to choose a file that starts a programm
const entry = await Neutralino.os.showOpenDialog('Choose a File', {
'multiSelections': false,
'defaultPath': '/home/'
'defaultPath': NL_CWD
})
// adding path to command in current
this.state.current.command = entry
this.update()
},
/**
*
*
*
*/
handleRemoveThumbnail(event) {
event.preventDefault()
this.state.current.thumbnail = null
this.update()
},
/**
*
*
@ -248,6 +239,7 @@
},
/**
*
*
*
* @param object event
@ -255,12 +247,18 @@
*/
async handleSelectThumbnail(event)
{
const entry = await Neutralino.os.showOpenDialog('', {
const entry = await Neutralino.os.showOpenDialog('Choose a Thumbnail for App', {
'multiSelections': false,
'defaultPath': '/home/',
'defaultPath': NL_CWD,
'filters': [{
'name': 'Images',
'extensions': ['jpg', 'png', 'jpeg', 'webp', 'gif', 'md']
'extensions': [
'jpg',
'png',
'jpeg',
'webp',
'gif'
]
}]
})
@ -273,6 +271,20 @@
this.update()
},
/**
* remove current thumbnail for App
*
*
* @param {object} event
*
*/
handleRemoveThumbnail(event) {
event.preventDefault()
this.state.current.thumbnail = null
this.update()
},
/**
*
*
@ -283,6 +295,10 @@
return 'data:image/png;base64,' + media
},
/**
* reset data of current form
*
*/
reset() {
this.state.current = {

Loading…
Cancel
Save