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' 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 { class Connector {

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

@ -1,5 +1,5 @@
{ {
"applicationId": "js.neutralino.sample", "applicationId": "js.neutralino.potato-launcher",
"version": "1.0.0", "version": "1.0.0",
"defaultMode": "window", "defaultMode": "window",
"port": 0, "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 FieldError from '@tiny-components/validator/src/fieldError.riot'
import ShinyAppsView from './views/apps.riot' import potatoAppsView from './views/apps.riot'
import ShinyFieldTags from './components/fields/tags.riot' import potatoFieldTags from './components/fields/tags.riot'
import ShinyCloseButton from './components/closeButton.riot' import potatoCloseButton from './components/closeButton.riot'
// register & mount riot component // register & mount riot component
riot.register('field-error', FieldError) riot.register('field-error', FieldError)
@ -16,13 +16,13 @@ riot.register('field-error', FieldError)
riot.register('tiny-loading', TinyLoading) riot.register('tiny-loading', TinyLoading)
riot.register('tiny-sidebar-form-header', TinySidebarFormHeader) riot.register('tiny-sidebar-form-header', TinySidebarFormHeader)
riot.register('tiny-sidebar-form-footer', TinySidebarFormFooter) riot.register('tiny-sidebar-form-footer', TinySidebarFormFooter)
riot.register('shiny-field-tags', ShinyFieldTags) riot.register('potato-field-tags', potatoFieldTags)
riot.register('shiny-apps-view', ShinyAppsView) riot.register('potato-apps-view', potatoAppsView)
riot.register('shiny-close-button', ShinyCloseButton) riot.register('potato-close-button', potatoCloseButton)
// adding events for Neutralino // adding events for Neutralino
Neutralino.events.on('ready', () => { Neutralino.events.on('ready', () => {
riot.mount('shiny-apps-view') riot.mount('potato-apps-view')
}) })
// let it rain // 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) } }> <button class="button button--icon m-bottom-0" onclick={ (event) => { handleClick(event) } }>
<svg class="icon icon--big" aria-hidden="true"> <svg class="icon icon--big" aria-hidden="true">
<use xlink:href="symbol-defs.svg#icon-add"></use> <use xlink:href="symbol-defs.svg#icon-add"></use>
@ -11,13 +11,14 @@
import formStore from './../stores/form.js' import formStore from './../stores/form.js'
/** /**
* example to open sidebar form * open sidebar form
* *
* @author Björn Hase * @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/tiny-components/sidebar-form * @link https://gitea.node001.net/HerrHase/potato-launcher.git
* *
*/ */
export default { export default {
/** /**
@ -30,4 +31,4 @@
} }
</script> </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) } }> <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"> <svg class="icon icon--big" aria-hidden="true">
<use xlink:href="symbol-defs.svg#icon-log-out"></use> <use xlink:href="symbol-defs.svg#icon-log-out"></use>
@ -11,8 +11,8 @@
* close app * close app
* *
* @author Björn Hase * @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/tiny-components/sidebar-form * @link https://gitea.node001.net/HerrHase/potato-launcher.git
* *
*/ */
@ -23,4 +23,4 @@
} }
</script> </script>
</shiny-close-button> </potato-close-button>

@ -1,4 +1,4 @@
<shiny-field-tags> <potato-field-tags>
<div class="field-tags"> <div class="field-tags">
<select name="{ state.options.name }[]" multiple style="display: none;"> <select name="{ state.options.name }[]" multiple style="display: none;">
<option each={ tag in state.tags } value={ tag }></option> <option each={ tag in state.tags } value={ tag }></option>
@ -32,10 +32,14 @@
import * as riot from 'riot' 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 export default
{ {
state: state:
@ -157,4 +161,4 @@
} }
</script> </script>
</shiny-field-tags> </potato-field-tags>

@ -1,4 +1,4 @@
<shiny-apps-form> <potato-apps-form>
<div class={ getCssClasses() }> <div class={ getCssClasses() }>
<div class="sidebar__inner"> <div class="sidebar__inner">
@ -38,7 +38,7 @@
<div class="field-group"> <div class="field-group">
<label class="field-label"> <label class="field-label">
tags 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> </label>
<field-error name="tags[]"></field-error> <field-error name="tags[]"></field-error>
</div> </div>
@ -101,14 +101,11 @@
import FormValidator from '@tiny-components/validator/src/formValidator.js' import FormValidator from '@tiny-components/validator/src/formValidator.js'
/** /**
* Sidebar Form has slot:title and slot:form * handler for apps
*
* Button need props.formId to trigger submit in slot:form
*
* *
* @author Björn Hase * @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/tiny-components/sidebar-form * @link https://gitea.node001.net/HerrHase/potato-launcher.git
* *
*/ */
@ -236,4 +233,4 @@
} }
</script> </script>
</shiny-apps-form> </potato-apps-form>

@ -1,9 +1,9 @@
/** /**
* Mixin to Extend a Sidebar * mixin extends sidebarForm
* *
* @author Björn Hase * @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/tiny-components/sidebar-form * @link https://gitea.node001.net/HerrHase/potato-launcher.git
* *
*/ */
@ -47,7 +47,7 @@ export default {
}, },
/** /**
* *
* *
*/ */
onBeforeMount() { onBeforeMount() {

@ -1,9 +1,9 @@
/** /**
* example store for trigger open * Store for apps
* *
* @author Björn Hase * @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/tiny-components/sidebar-form * @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 * @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/tiny-components/sidebar-form * @link https://gitea.node001.net/HerrHase/potato-launcher.git
* *
*/ */

@ -1,4 +1,4 @@
<shiny-apps-view> <potato-apps-view>
<div class="views"> <div class="views">
<header class="header m-bottom-3"> <header class="header m-bottom-3">
@ -11,8 +11,8 @@
</button> </button>
</div> </div>
<div> <div>
<shiny-apps-form-button></shiny-apps-form-button> <potato-apps-form-button></potato-apps-form-button>
<shiny-close-button></shiny-close-button> <potato-close-button></potato-close-button>
</div> </div>
</div> </div>
</header> </header>
@ -44,29 +44,29 @@
</div> </div>
</diV> </diV>
<shiny-apps-form></shiny-apps-form> <potato-apps-form></potato-apps-form>
</div> </div>
<script> <script>
import * as riot from 'riot' import * as riot from 'riot'
import ShinyAppsForm from './../forms/apps.riot' import potatoAppsForm from './../forms/apps.riot'
import ShinyAppsFormButton from './../components/appsFormButton.riot' import potatoAppsFormButton from './../components/appsFormButton.riot'
import appsStore from './../stores/apps.js' import appsStore from './../stores/apps.js'
// let it rain // let it rain
riot.register('shiny-apps-form', ShinyAppsForm) riot.register('potato-apps-form', potatoAppsForm)
riot.mount('shiny-apps-form') riot.mount('potato-apps-form')
riot.register('shiny-apps-form-button', ShinyAppsFormButton) riot.register('potato-apps-form-button', potatoAppsFormButton)
riot.mount('shiny-apps-form-buttons') riot.mount('potato-apps-form-buttons')
/** /**
* apps.riot *
* *
* @author Björn Hase * @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> </script>
</shiny-apps-view> </potato-apps-view>

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

Loading…
Cancel
Save