dependabot[bot] 1434d308ba
Bump loader-utils from 1.4.0 to 1.4.2 (#17)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-11 18:05:55 +01:00
2021-02-26 22:54:43 +01:00
2022-09-16 10:50:57 +02:00
2022-11-11 18:00:36 +01:00
2020-11-05 11:56:26 +01:00
2020-11-05 11:56:26 +01:00
2022-10-04 20:28:07 +02:00
2021-02-26 22:54:43 +01:00
2022-07-17 00:52:29 +02:00
2020-11-05 11:56:26 +01:00
2022-05-14 19:25:22 +02:00
2022-07-18 22:08:36 +02:00
2022-11-11 18:01:04 +01:00
2022-10-04 20:28:07 +02:00
2020-11-05 11:56:26 +01:00
2022-10-04 20:28:07 +02:00

neko-client

Connect to demodesk/neko backend with self contained vue component.

For community edition neko with GUI and plug & play deployment visit m1k1o/neko.

Installation

Code is published to public GitHub npm repository.

# npm command
npm i @demodesk/neko
# yarn command
yarn add @demodesk/neko

Registry setup

# npm command
echo @demodesk:registry=https://npm.pkg.github.com >> .npmrc
# yarn command
echo \"@demodesk:registry\" \"https://npm.pkg.github.com\" >> .yarnrc

Build

You can set keyboard provider at build time, either novnc or the default guacamole.

# by default uses guacamole keybaord
npm run build
# uses novnc keybaord
KEYBOARD=novnc npm run build

Example

API consists of accessing Vue reactive state, calling various methods and subscribing to events. Simple usage:

<!-- import vue -->
<script src="https://unpkg.com/vue"></script>

<!-- import neko -->
<script src="./neko.umd.js"></script>
<link rel="stylesheet" href="./neko.css">

<div id="app">
  <neko ref="neko" server="http://127.0.0.1:3000/api" autologin autoplay />
</div>

<script>
new Vue({
  components: { neko },
  mounted() {
    // access state
    // this.$refs.neko.state.session_id
  
    // call methods
    // this.$refs.neko.setUrl('http://127.0.0.1:3000/api')
    // this.$refs.neko.login('username', 'password')
    // this.$refs.neko.logout()
  
    // subscribe to events
    // this.$refs.neko.events.on('room.control.host', (id) => { })
  },
}).$mount('#app')
</script>
Languages
Go 30.1%
TypeScript 26%
Vue 24%
JavaScript 9.3%
C 3.7%
Other 6.9%