change comments, change path for index

release-neutralino
HerrHase 2 years ago
parent 4158f7c765
commit 5d24497a5d

@ -3,7 +3,11 @@ import websocket from 'websocket'
import { v4 as uuidv4 } from 'uuid'
/**
* connector creating client and routing to handlers
*
* @author Björn Hase
* @license https://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://gitea.node001.net/HerrHase/potato-launcher.git
*
*/
class Connector {

@ -4,8 +4,8 @@ import AppsStore from './../stores/apps.js'
* handler for apps
*
* @author Björn Hase
* @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://gitea.node001.net/HerrHase/tellme-bot.git
* @license https://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://gitea.node001.net/HerrHase/potato-launcher.git
*
*/
class AppsHandler {

@ -1,5 +1,5 @@
{
"applicationId": "js.neutralino.sample",
"applicationId": "js.neutralino.potato-launcher",
"version": "1.0.0",
"defaultMode": "window",
"port": 0,

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Potato Launcher</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div class="potato-main">
<div class="container-full p-top-4">
<potato-apps-view></potato-apps-view>
</div>
</div>
<script src="js/neutralino.js"></script>
<!-- -->
<script src="js/app.js"></script>
</body>
</html>

@ -6,9 +6,9 @@ import TinySidebarFormFooter from './forms/footer.riot'
import FieldError from '@tiny-components/validator/src/fieldError.riot'
import ShinyAppsView from './views/apps.riot'
import ShinyFieldTags from './components/fields/tags.riot'
import ShinyCloseButton from './components/closeButton.riot'
import potatoAppsView from './views/apps.riot'
import potatoFieldTags from './components/fields/tags.riot'
import potatoCloseButton from './components/closeButton.riot'
// register & mount riot component
riot.register('field-error', FieldError)
@ -16,13 +16,13 @@ riot.register('field-error', FieldError)
riot.register('tiny-loading', TinyLoading)
riot.register('tiny-sidebar-form-header', TinySidebarFormHeader)
riot.register('tiny-sidebar-form-footer', TinySidebarFormFooter)
riot.register('shiny-field-tags', ShinyFieldTags)
riot.register('shiny-apps-view', ShinyAppsView)
riot.register('shiny-close-button', ShinyCloseButton)
riot.register('potato-field-tags', potatoFieldTags)
riot.register('potato-apps-view', potatoAppsView)
riot.register('potato-close-button', potatoCloseButton)
// adding events for Neutralino
Neutralino.events.on('ready', () => {
riot.mount('shiny-apps-view')
riot.mount('potato-apps-view')
})
// let it rain

@ -1,4 +1,4 @@
<shiny-apps-form-button>
<potato-apps-form-button>
<button class="button button--icon m-bottom-0" onclick={ (event) => { handleClick(event) } }>
<svg class="icon icon--big" aria-hidden="true">
<use xlink:href="symbol-defs.svg#icon-add"></use>
@ -11,13 +11,14 @@
import formStore from './../stores/form.js'
/**
* example to open sidebar form
* open sidebar form
*
* @author Björn Hase
* @license http://opensource.org/licenses/MIT The MIT License
* @link https://gitea.node001.net/tiny-components/sidebar-form
* @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://gitea.node001.net/HerrHase/potato-launcher.git
*
*/
export default {
/**
@ -30,4 +31,4 @@
}
</script>
</shiny-apps-form-button>
</potato-apps-form-button>

@ -1,4 +1,4 @@
<shiny-close-button>
<potato-close-button>
<button class="button button--icon button--danger m-left-5 m-bottom-0" onclick={ (event) => { handleClose(event) } }>
<svg class="icon icon--big" aria-hidden="true">
<use xlink:href="symbol-defs.svg#icon-log-out"></use>
@ -11,8 +11,8 @@
* close app
*
* @author Björn Hase
* @license http://opensource.org/licenses/MIT The MIT License
* @link https://gitea.node001.net/tiny-components/sidebar-form
* @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://gitea.node001.net/HerrHase/potato-launcher.git
*
*/
@ -23,4 +23,4 @@
}
</script>
</shiny-close-button>
</potato-close-button>

@ -1,4 +1,4 @@
<shiny-field-tags>
<potato-field-tags>
<div class="field-tags">
<select name="{ state.options.name }[]" multiple style="display: none;">
<option each={ tag in state.tags } value={ tag }></option>
@ -32,10 +32,14 @@
import * as riot from 'riot'
/**
* component field adding / remove tags for a form
*
*
* @author Björn Hase
* @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://gitea.node001.net/HerrHase/potato-launcher.git
*
*/
export default
{
state:
@ -157,4 +161,4 @@
}
</script>
</shiny-field-tags>
</potato-field-tags>

@ -1,4 +1,4 @@
<shiny-apps-form>
<potato-apps-form>
<div class={ getCssClasses() }>
<div class="sidebar__inner">
@ -38,7 +38,7 @@
<div class="field-group">
<label class="field-label">
tags
<shiny-field-tags name="tags" value={ state.current.tags ? state.current.tags : '' }></shiny-field-tags>
<potato-field-tags name="tags" value={ state.current.tags ? state.current.tags : '' }></potato-field-tags>
</label>
<field-error name="tags[]"></field-error>
</div>
@ -101,14 +101,11 @@
import FormValidator from '@tiny-components/validator/src/formValidator.js'
/**
* Sidebar Form has slot:title and slot:form
*
* Button need props.formId to trigger submit in slot:form
*
* handler for apps
*
* @author Björn Hase
* @license http://opensource.org/licenses/MIT The MIT License
* @link https://gitea.node001.net/tiny-components/sidebar-form
* @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://gitea.node001.net/HerrHase/potato-launcher.git
*
*/
@ -236,4 +233,4 @@
}
</script>
</shiny-apps-form>
</potato-apps-form>

@ -1,9 +1,9 @@
/**
* Mixin to Extend a Sidebar
* mixin extends sidebarForm
*
* @author Björn Hase
* @license http://opensource.org/licenses/MIT The MIT License
* @link https://gitea.node001.net/tiny-components/sidebar-form
* @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://gitea.node001.net/HerrHase/potato-launcher.git
*
*/
@ -47,7 +47,7 @@ export default {
},
/**
*
*
*
*/
onBeforeMount() {

@ -1,9 +1,9 @@
/**
* example store for trigger open
* Store for apps
*
* @author Björn Hase
* @license http://opensource.org/licenses/MIT The MIT License
* @link https://gitea.node001.net/tiny-components/sidebar-form
* @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://gitea.node001.net/HerrHase/potato-launcher.git
*
*/

@ -1,9 +1,9 @@
/**
* example store for trigger open
* Store for form
*
* @author Björn Hase
* @license http://opensource.org/licenses/MIT The MIT License
* @link https://gitea.node001.net/tiny-components/sidebar-form
* @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://gitea.node001.net/HerrHase/potato-launcher.git
*
*/

@ -1,4 +1,4 @@
<shiny-apps-view>
<potato-apps-view>
<div class="views">
<header class="header m-bottom-3">
@ -11,8 +11,8 @@
</button>
</div>
<div>
<shiny-apps-form-button></shiny-apps-form-button>
<shiny-close-button></shiny-close-button>
<potato-apps-form-button></potato-apps-form-button>
<potato-close-button></potato-close-button>
</div>
</div>
</header>
@ -44,29 +44,29 @@
</div>
</diV>
<shiny-apps-form></shiny-apps-form>
<potato-apps-form></potato-apps-form>
</div>
<script>
import * as riot from 'riot'
import ShinyAppsForm from './../forms/apps.riot'
import ShinyAppsFormButton from './../components/appsFormButton.riot'
import potatoAppsForm from './../forms/apps.riot'
import potatoAppsFormButton from './../components/appsFormButton.riot'
import appsStore from './../stores/apps.js'
// let it rain
riot.register('shiny-apps-form', ShinyAppsForm)
riot.mount('shiny-apps-form')
riot.register('potato-apps-form', potatoAppsForm)
riot.mount('potato-apps-form')
riot.register('shiny-apps-form-button', ShinyAppsFormButton)
riot.mount('shiny-apps-form-buttons')
riot.register('potato-apps-form-button', potatoAppsFormButton)
riot.mount('potato-apps-form-buttons')
/**
* apps.riot
*
*
* @author Björn Hase
* @license http://opensource.org/licenses/MIT The MIT License
*
* @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://gitea.node001.net/HerrHase/potato-launcher.git
*
*/
@ -140,4 +140,4 @@
}
</script>
</shiny-apps-view>
</potato-apps-view>

@ -65,3 +65,4 @@ mix
.copy('resources/js/neutralino.js', 'build/js')
.sass('src/scss/styles.scss', 'css')
.copyDirectory('node_modules/@tiny-components/plain-ui/src/fonts/**', 'build/css')
.copyDirectory('resources/index.html', 'build')

Loading…
Cancel
Save