diff --git a/.babelrc b/.babelrc
new file mode 100644
index 00000000..44262f47
--- /dev/null
+++ b/.babelrc
@@ -0,0 +1,12 @@
+{
+ "presets": [
+ ["@babel/env", {
+ "targets": {
+ "ios": "9.3",
+ "chrome": "50"
+ },
+ "useBuiltIns": "usage"
+ }]
+ ],
+ "plugins": ["@babel/plugin-proposal-object-rest-spread"]
+}
diff --git a/.dockerignore b/.dockerignore
deleted file mode 100644
index bc487890..00000000
--- a/.dockerignore
+++ /dev/null
@@ -1,3 +0,0 @@
-node_modules
-app
-sessions
\ No newline at end of file
diff --git a/.eslintignore b/.eslintignore
new file mode 100644
index 00000000..e54938f4
--- /dev/null
+++ b/.eslintignore
@@ -0,0 +1 @@
+jquery.*.js
diff --git a/.eslintrc.json b/.eslintrc.json
index 1f9fff30..faf7c80e 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,16 +1,19 @@
{
"env": {
- "es2021": true,
+ "es6": true,
"browser": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
- "sourceType": "module"
+ "sourceType": "module",
+ "ecmaFeatures": {
+ "experimentalObjectRestSpread": true
+ }
},
"rules": {
- "no-prototype-builtins": "off",
"no-console": "off",
+ "no-undef": "off",
"no-useless-escape": "off",
"no-self-assign": "off",
"no-empty": [
@@ -37,7 +40,7 @@
"ObjectExpression": 1,
"ArrayExpression": 1,
"MemberExpression": "off",
- "ignoredNodes": ["ConditionalExpression", "TemplateElement"]
+ "ignoredNodes": ["ConditionalExpression"]
}
],
"linebreak-style": [
@@ -46,12 +49,14 @@
],
"quotes": [
"error",
- "single",
- { "allowTemplateLiterals": true }
+ "single"
],
"semi": [
"error",
"never"
]
+ },
+ "globals": {
+ "module": true
}
}
diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml
deleted file mode 100644
index 68eaa5f3..00000000
--- a/.forgejo/workflows/build.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-name: Build
-on: [workflow_dispatch]
-
-jobs:
- Deploy:
- runs-on: docker
- container:
- image: ghcr.io/catthehacker/ubuntu:act-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- with:
- lfs: 'true'
-
- - name: Docker Login
- run: |
- docker login -u riksolo -p ${{secrets.CONTAINER_REGISTRY_TOKEN}} git.riksolo.com
-
- - name: Build and push
- run: |
- docker build -t git.riksolo.com/riksolo/open-stage-control:latest -t git.riksolo.com/riksolo/open-stage-control:${{github.sha}} .
- docker push git.riksolo.com/riksolo/open-stage-control:latest
- docker push git.riksolo.com/riksolo/open-stage-control:${{github.sha}}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 71086d11..fa09066c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,17 +1,10 @@
-# npmg
-node_modules/
-
-# build
-/app/
-
-# python/midi build
-src/server/python/*
-!src/server/python/*.py
-
-# docs build
-src/docs/widgets-reference.js
-properties-reference.md
-
-# packaging
-dist/
-sessions/
\ No newline at end of file
+node_modules
+dist
+app/LICENSE
+app/assets/*.css*
+app/assets/*.png
+app/client/*.js*
+app/launcher/*.js*
+app/server/*.js*
+app/package.json
+package-lock.json
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..c3e8a24b
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,50 @@
+anHsudo: required
+dist: trusty
+language: node_js
+node_js:
+ - "9"
+before_install:
+ - sudo dpkg --add-architecture i386
+ - sudo apt-get update -qq
+ - sudo apt-get install -qq wine fakeroot xvfb
+install: npm install
+before_deploy:
+deploy:
+ provider: releases
+ api-key:
+ secure: Nb4qJlmLEE2/ETHEYe8V8eGI08d4GuE5kdQef5ZnB4PrstppLlAjShv5E4DNTsyalMOMDjpw9v+9aQNzxGiGv+lCVVL5oFvqvDpcYusRuF9Qua7oJtFh+5FvjgC1DDjauk5Z7WQWMvzWwfNmqbY/lxPbA4zVy4kdYkGV/8WnzA9AL5fU0ZU8gDsFjcr9Pz81XDsDXtPH/+iMuclMsEl8V/ZuswWlZaFn1Jnb1tcGC5WUCsuNQo/+gGfSK6Qcf9AKsIrOjdzi55s4jqH1N7P/kKi4a2tWUTwmSLrOxdUmSYjXVOxMu0cAEnHSeYREv/5o6J0MbfQrDoxh2y5roPZzqE+FAuFLl+b/+bYlW0mrfYfSuP/VX9LYh5JSvrhN7rZuUfMqS1iM7c9Dx8sZadMnvYEAAJhH8IV/9SkuRa/8QoIpXf7YB9v1jERxs4gk5CPT5Aml6nY/CvMWiEQ/wJhC7iZd/QRHshgfNLfAGlbbNU2KP6ZsVAGD601fyST/8neoQqLqS9mteOr1QME3c5EFw+XaauIQNYZSl+wJr8Y1YMcKY+fbJqqR0TXkbsoxFgV9PRf/4ZCjIJYtmelQVlM7j20XavOHM/Ko6/y7a3pohFz+ql3YR9jGF5XW2foXb4+e6DwTGL91/f75hYcsvXxoKbeaBjWpaSK8532UTeVkhPM=
+ file_glob: true
+ file: dist/packages/*
+ skip_cleanup: true
+ on:
+ tags: true
+before_deploy:
+ - export VERSION=$(sed -nE 's/^\s*"version":\ "(.*?)",$/\1/p' package.json)
+ - npm run package -- --all
+ - npm run package -- --rpi
+ - npm run package-node
+ - npm run deb32
+ - npm run deb64
+ - npm run debarm
+ - cd dist
+ - mkdir packages
+ - mv open-stage-control-linux-ia32/*.deb packages/open-stage-control-${VERSION}-i386.deb
+ - mv open-stage-control-linux-x64/*.deb packages/open-stage-control-${VERSION}-amd64.deb
+ - mv open-stage-control-linux-armv7l/*.deb packages/open-stage-control-${VERSION}-armv7l.deb
+ - mv open-stage-control-node open-stage-control-${VERSION}-node
+ - mv open-stage-control-win32-ia32 open-stage-control-${VERSION}-win32-ia32
+ - mv open-stage-control-win32-x64 open-stage-control-${VERSION}-win32-x64
+ - mv open-stage-control-linux-ia32 open-stage-control-${VERSION}-linux-ia32
+ - mv open-stage-control-linux-x64 open-stage-control-${VERSION}-linux-x64
+ - mv open-stage-control-linux-armv7l open-stage-control-${VERSION}-linux-armv7l
+ # - mv open-stage-control-linux-arm64 open-stage-control-${VERSION}-linux-arm64
+ - zip -q -r --symlinks packages/open-stage-control-${VERSION}-osx.zip open-stage-control-darwin-x64/open-stage-control.app
+ - zip -q -r packages/open-stage-control-${VERSION}-node.zip open-stage-control-${VERSION}-node
+ - zip -q -r packages/open-stage-control-${VERSION}-win32-ia32.zip open-stage-control-${VERSION}-win32-ia32
+ - zip -q -r packages/open-stage-control-${VERSION}-win32-x64.zip open-stage-control-${VERSION}-win32-x64
+ - zip -q -r packages/open-stage-control-${VERSION}-linux-ia32.zip open-stage-control-${VERSION}-linux-ia32
+ - zip -q -r packages/open-stage-control-${VERSION}-linux-x64.zip open-stage-control-${VERSION}-linux-x64
+ - zip -q -r packages/open-stage-control-${VERSION}-linux-armv7l.zip open-stage-control-${VERSION}-linux-armv7l
+ # - zip -q -r packages/open-stage-control-${VERSION}-linux-arm64.zip open-stage-control-${VERSION}-linux-arm64
+ - ls packages
+ - cd ..
diff --git a/AI_POLICY.md b/AI_POLICY.md
deleted file mode 100644
index 20067a2d..00000000
--- a/AI_POLICY.md
+++ /dev/null
@@ -1,7 +0,0 @@
-Anything AI-related is strictly prohibited from this project.
-
-If you think this project could benefit from a smart use of AI, think harder.
-
-Think harder about the (hundreds of) millions of data workers that make your AI "smart", not to mention the monumental ecological waste it represents.
-
-If you still think this way, don't tell me.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ff189256..37d08ee8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,1778 +1,1453 @@
# Changelog
-## 1.31.2
+## 0.41.2
- bug fixes
- - editor: fix regression (1.30.0) causing errors when editing the value property
+ - geometry properties not properly applied when reset to `auto`
+ - `strip` layout not properly applied when changing the widget's `horizontal` property
+ - `modal` glitch on chromium v70
-- widgets
- - canvas: allow `onResize` to send and trigger widget synchronization and scripts
-
-## 1.31.1
-
-- bug fixes
- - clone: regression causing error when some widgets have a non-string id
-
-## 1.31.0
-
-- widgets
- - clone, fragment: add `scoped` property. This allows making the widget self-contained (independent from its original) by prefixing all widget ids automatically (and transparently resolving unprefixed ids in advanced syntaxes and scripts within the scope)
-
-- bug fixes
- - midi: unrecognized `no_auto_note_off` option
- - MacOs: the app now quits when all windows are closed
- - launcher: if the Tray icon is enabled, closing the launcher window won't quit the app if the server is running
- - scrollbar widget: fix initial value in vertical mode
- - console: fix copying using CmdOrCtrl+C when the editor is enabled
-
-- custom module
- - objects transmitted using `receive()` will be received as objects by the client app (instead of a json string)
-
-## 1.30.4
-
-- bug fixes
- - remote control: add support for icon transform suffixes
- - editor: fix moving/resing widgets inside folders when using percent units
- - clone: `@{parent.propertyName}` blocks in target widget now update when clone's parent property updates
-
-- widgets
- - encoder: add `horizontal` mode
- - knob: add `encoder` design
-
-## 1.30.3
-
-- bug fixes
- - scrollbar: missing update upon target container resize
- - server: regression breaking reception of osc message over tcp
-
-- widgets
- - file: remember last visited directy per widget if `directory` property is not set
- - knob: add `horizontal` mode
- - eq: filter responses are now only computed when needed; the widget's value is no longer exposed / sync'ed.
- - plot, eq: unclip line drawing on y-axis
-
-- scripting
- - add `uploadFile` function for reading client-side files
- - add `scrollIntoView` function
-
-## 1.30.2
-
-- bug fixes
- - when using objects in properties, numbers-as-strings and booleans-as-strings values are now preserved instead of being converted to their litteral counterparts
- - rgb: fix rendering issue
- - patchbay: interaction and rendering issues
- - `event.preventDefault` in `onTouch` now affect modal buttons
- - menu: use click event instead of tap in `toggle` and `doubleTap-toggle` modes
- - button: missing `move` events in `onTouch`
- - error when logging `event` object in `onTouch`
-
-- widgets
- - modal/button/file: add `click` property
-
-- editor
- - preserve code editor undo history between consecutive edits of a same widget's property
- - preserve fullscreen code editor focus when saving / submitting
-
-- client
- - add `noWarning` client option
-
-## 1.30.1
-
-- bug fixes
- - regression breaking user asset loading from a root directory named "assets"
- - regression breaking custom module's `nativeRequire()` for locally installed modules
-
-## 1.30.0
-
-- bug fixes
- - server: fix resolving absolute file urls containing the remote-root path
- - prevent editor zoom level from affecting drag events when the editor is disabled
- - prevent changing editor zoom level when it's disabled
- - fader: fix touchZone == knob for compact design
- - separator labels missing in inspector
- - make the client app more robust to restrictive browser settings (cookie must still be enabled for the app to fully work)
-
-- widgets
- - the html property is no longer restricted / sanitized
- - input/textarea/select no longer have their appearance property reset in custom html
- - canvas: added `contextType` property
- - file: honor server's `remote-root` option (remove root path from displayed path and returned value)
- - menu: changed default `layout` to `vertical`
- - root/panel/modal/tab: support setting `scroll` to `hidden` (hides scrollbars and allows scrolling)
- - add new `scrollbar` widget that connects to a scrolling container widget and acts as it scrollbar
- - input: add `noCanvas` option to avoid blurry text under some circumstances
- - xy: add `clipX` and `clipY` proprties (allows multixy to set per-pads anges limits)
- - button: add `onTouch` script
- - switch: make `values` property dynamic
-
-- editor
- - selecting a widget automatically shows it in the widget tree if it's not minimized
- - submitting an unchanged value for the `value` property will now affect the value state of the widget even if the property content itself did not change
-
-- scripting
- - user scripts are longer protected against infinite loop and the main window object may be reached (it's not supported to break out of scripting context, but resources are no longer wasted to prevent it)
- - `toolbar()` can now target menu actions by id instead of index
- - `getToolbar()` function added (returns the state of a menu entry toggle)
- - calling `setFocus()` without argument now unfocuses current active element
-
-- midi
- - add `no_auto_note_off` option
- - add `Restart backend` action to the launcher's menu
- - add `restartMidiBackend()` function to custom module context
-
-- breaking change
- - dropped support for iOS 10.3
- - minimum chromium version requirement raised to 70
- - macOS 11 (Big Sur) or above is now required (the node package will work on older system)
- - scrollbars are no longer emulated on iOS
- - scrollbar styling is now done using only the standard css scrollbar-* properties) to be more in line with system scrollbars in general
- - panels no longer use their value to set/get their scrolling state, nor do they sync scrolling automatically. Instead there's now a dedicated scrollbar widget that can be used for this.
-
-- misc
- - now using electron v36.9.5
-
-## 1.29.9
-
-- build
- - fix building from sources now that open stage control is not hosted on github
-
-- scripting
- - user scripts are longer protected against infinite loop
-
-## 1.29.8
-
-- bug fixes
- - firefox: `onTouch` error when the cursor goes outside the page
- - dropdown: label not initialized until a value is set
- - editor: regression (1.29.0) preventing color changes made with the color to be undoable unless validaed with the enter key
- - editor: color picker interaction issue in near #000000
- - rgb: incoming values were not queued when during user interaction
-
-- client
- - add `title` client option
-
-## 1.29.7
-
-- launcher
- - add tray icon and menu (landed in 1.29.6 accidentally), disabled by default (can be enabled from the launcher's menu)
-
-
-## 1.29.6
-
-- bug fixes
- - matrix: prevent error when `quantity` is invalid
- - multixy/xy: send value when setting `spring` to `true` (only if current value is different than spring value)
- - switch/menu/fader: more consistent rendering when `borderRadius` is set
-
-- widgets
- - multixy/xy: add `stepsX` and `stepsY` properties
-
-- misc
- - native silicon buids (osx-arm64)
-
-## 1.29.5
-
-- bug fixes
- - keyboard: regression (1.27.5) breaking `velocity` property
- - editor: retain scroll position in code editors
- - cli: regression (1.28) preventing from setting options from a terminal on windows
-
-
-## 1.29.4
-
-- bug fixes
- - regression (1.29.3) breaking some widget recreation routines
-
-## 1.29.3
-
-- widgets
- - frame: add `allow` property
- - matrix: make `quantity` a dynamic property to avoid losing widget state when it changes
- - patchbay: missing `preArgs` implementation
-
-## 1.29.1 / 1.29.2
-
-- bug fixes
- - scripting: `setFocus` not working on iOS
- - fader/range: drawing error with `pips` enabled
-
-## 1.29.0
-
-- bug fixes
- - file browser: drive listing failing on recent windows
- - root: `hideMenu` not working when `--read-only` is set
- - combining `--read-only` and `--fullscreen` now disables `F11` on built-in client
- - regression breaking `pips` for range widget
-
-- widgets
- - add `onTouch` to all container widgets
- - allow starting a traversing gesture outside a touchable widget
- - fader: make `knobSize` dynamic
-
-## 1.28.5
-
-- bug fixes
- - multixy: error when `points` is `0` (or empty array) (again)
-
-## 1.28.4
-
-- bug fixes
- - multixy: error when `points` is `0` (or empty array)
-
-## 1.28.3
-
-- bug fixes
- - multixy: correclty handle incoming feedback values and simultaneous touch releases
-
-## 1.28.2
-
-- bug fixes
- - regression in feedback handling (unfixes multixy simultaneous spring issue temporarily)
-
-## 1.28.1
-
-- bug fixes
- - eq: `highpass` filter not working as expected with `poles` set
- - fader: `touchZone` not applied to `doubleTap` events
- - fader: `touchZone` not affecting mousewheel interactions
- - fader: regression causing issues with `onTouch` scripts
-
-## 1.28.0
-
-- bug fixes
- - ui: global zoom (CmdOrCtrl + scroll / + / - / 0) issues and conflits with native browser zoom;
- - ui: limit ctrl + scroll zoom speed
- - broken cli when `ELECTRON_RUN_AS_NODE` is set
- - inspector: input bug when a code editor was focused using the tab key
- - inspector: prevent editing non-editable widgets (e.g matrix items) when clicking on their ids in error logs
- - multixy: simultaneous touch releases not working correctly when `spring` is set and feedback values are received shortly after being sent
-
-- widgets
- - fader: add `touchZone` property to allow restricting interaction to a part of the widget
- - eq: add support for n-poles lowpass and highpass filters with the filter's `poles` property
- - eq: adapt sampling frequency to the x-axis range
- - xy/multixy: add `auto` choice to `axisLock` (locks on the first moved axis)
- - file: `extension` can now be an array of strings
- - plot/eq: smoother curves
- - sliders/pads: `doubleTap` can now be `"script"`, in which case `onTouch` will be called with `event.type` set to `doubleTap`
- - xy: add `label` property
- - multixy: add `padsAttr` property for per-pad customization
- - panel: `tabsPosition` can now be `hidden`
- - pads: support percents in `pointSize`
-
-- scripting
- - `console.log` now always print the id of the widget that called it
-
-- editor
- - inspector: tab key navigation now works, property categories can be fold/unfold with enter/space when focused
- - inspector: `F2` now focuses the `html` property in the inpector if `label` is not present
- - tree: add `mod + f` to focus the search input
-
-
-
-## 1.27.5
-
-- bug fixes
- - patchbay: layout issue
- - widget: regression causing error when emptying the css property and leaving only class declarations
- - modal: incorrect position in scrolled containers when `relative` is `true`
- - menu: incorrect position in scrlled containers depending on menu's alignment
- - button: `locals.touchCoords` not updated upon release and incorrect when `doubleTap` is set
-
-## 1.27.4
-
-- bug fixes
- - fader: pips drawing issue causing small a position offset or errors with some browsers
- - script: setFocus not working with textarea widgets
-
-## 1.27.3
-
-- bug fixes
- - regression causing circular loop errors upon certain editions
- - fader: glitch with large `lineWidth` values in default design mode
-
-## 1.27.2
-
-- bug fixes
- - multixy: `default` not applied when points are named
- - clone: avoid some unnecessary property checks
- - clone: prevent missing editions in target properties (e.g. VAR{} renamed with the same return value)
-
-- client
- - show 3-dots menu in read-only mode with access to allowed items (e.g fullscreen)
- - hide console in read-only mode
-
-- widgets
- - matrix: don't implicitely override children's `label`, do it explicitely in `props`' default
-
-- custom module
- - `receive()` and `send()` now accept `host` and `port` to be provided as a single string argument joined by a colon
-
-## 1.27.1
-
-- bug fixes
- - server: `fullscreen` option not working when `read-only` is set
- - led and text widgets not client-syncing
- - patchbay: `address` not working properly when set to `auto`
- - patchbay: `ignoreDefaults` not working properly
- - editor: missing position indicator in color picker pad
- - file browser: fallback to home directory when last visited directory is not accessible
-
-- mobile
- - apply root's (or themes) background color the the browser's topbar when possible
-
-
-## 1.27.0
-
-- bug fixes
- - app address / qr code not updating when network changes
- - issue after theme auto reload (broken grid, colors not updated)
-
-- widgets
- - pads: expose css variable `--point-size`
-
-- custom module
- - provide error backtraces in module.exports functions
- - add `reload()` callback to provide finer control over the module's lifecycle
- - add `stop()` callback (runs when the server stops)
-
-- remote control
- - add /SESSION/CREATE command
-
-- client
- - file browser now remembers the last displayed directory
- - allow dismissing notifications by clicking on them
- - allow toggling notifications globally from main menu
- - add `notifications` client option
-
-## 1.26.2
-
-- bug fixes
- - user resources not loading when using an external browser
- - advanced syntaxes resolution order issue
-
-- advanced syntaxes
- - display an error in the console in some unsupported advanced syntaxes use cases
-
-## 1.26.1
-
-- bug fixes
- - mac: unable to show launcher windows when starting minimized
-
-## 1.26.0
-
-- bug fixes
- - scripting: `getProp()` now correctly returns a copy of the property if it is an object
- - prevent infinite loop when loading widgets with complex inter-dependencies
- - modal: layout issue on iOS 15+
-
-- widgets
- - dropdown: allow resubmitting the same value
- - switch: allow resubmitting the same value
- - plot: missing `logScaleX` and `logScaleY` properties
- - xy/multixy: add `axisLock` property; allow locking one the axis by holding `Shift` while dragging if `axisLock` is not set, bypasses it otherwise.
- - knob/fader/range: add `colorKnob` property
-
-- launcher
- - on Mac, start hidden if `Start minimized` is set
- - allow dropping files into file fields
-
-- custom module
- - expose `tcpServer` to allow monitoring the state of tcp connections
-
-## 1.25.7
-
-- bug fixes
- - rare issue that made the last widget(s) in a container disappear when other widgets in the same container had a specific property dependency pattern
-
-- remote control
- - `/EDIT*` commands sent by a custom module are not affected by the server's `read-only` option anymore
-
-- widgets
- - input: allow using a number in `numeric` to specify stepping value for mousewheel interaction
- - root: add `onPreload` scripting property
-
-## 1.25.6
-
-- bug fixes
- - sliders: error when `steps` is an array
-
-- scripting
- - `stateSet`: add optional `{send: false}` flag
-
-## 1.25.5
-
-- bug fixes
- - code editor: issue when middle clicking in the editor on linux
- - code editor: modern js operators such as `**` not recognized
- - sliders: prevent error when `steps` is not a number, add `auto` mode for using ranges values as steps (it did not work before)
- - pads, range: value not initialized as an array, causing errors in some cases
- - modal: popup not closing when `doubleTap` is true
-
-## 1.25.4
-
-- bug fixes
- - custom module: `receive()` not passing boolean arguments properly
- - fix `--authentication` on iOS clients
-
-- editor
- - display current widget value in the `value` property's help modal
-
-## 1.25.3
-
-- bug fixes
- - input: rendering issues with big font sizes
- - panel: tab rendering issue when initialized with a non-numeric value
- - panel: minor style issue in tab navigation bar
- - scripting: scripting functions not working inside `browseFile()` callback
- - scripting: using `external: true` in `set()` should prevent affected widget from sending any message
- - button: inconsistent value in `push` mode with `decoupled` enabled when setting value from script
-
-## 1.25.2
-
-- bug fixes
- - textarea: escape key not restoring previous value
- - scripting: `setFocus(id)` not affecting textarea widgets
- - led, text, variable: value not synchronized between different clients
- - error when running from sources on Mac
-
-## 1.25.1
-
-- bug fixes
- - regression in inter-widget sync mechanism
- - regression breaking `set()` function in scripts
- - textarea: display nothing instead of "null" when receing no value, null or an empty string
-
-## 1.25.0
-
-- bug fixes
- - multixy: doubleTap not working on touch devices
- - button: `x` and `y` variables not passed to `onValue` when `doubleTap` is true on touch devices
- - advanced syntax: update issue with clones using their own value in their properties
- - client: minor keyboard shortcut issues
- - panel: mitigate client synchronization issue with scrollbars
-
-- widgets
- - menu: add a background to menu items to help distinguish them
- - menu: merge different interaction modes into a single `mode` property
- - menu: add `swipe` mode
-
-- remote control
- - `/STATE/SET`: add optional argument to prevent widgets from sending their value
-
-## 1.24.2
-
-- bug fixes
- - editor: regression breaking widget context menu actions under "Position" submenu
- - touch devices: touchend event not fired on elements removed/detached during touchstart/touchmove callbacks (caused issues when switching tabs using a button inside a tab)
-
-
-## 1.24.1
-
-- bug fixes
- - launcher: `Ctrl+M` keyboard shortcut not working
- - widgets: regression incurring a small delay before resolving a property that depends on a widget's own value
- - server: `--client-size` and `--client-position` options not parsed correctly
-
-- advanced syntaxes
- - support `@{}` inside `IMPORT{}`
-
-## 1.24.0
-
-- bug fixes
- - widgets: circular value feedback issues
- - editor: `ctrl + e` not working when hit multiple times without releasing `ctrl`
- - mobile: "prevent sleep" feature not working
-
-- widgets
- - patchbay: add `in`, `out` and `both` modes to `exclusive` property
- - panel: replace `verticalTabs` property with `tabsPosition` (supports 4 directions)
-
-- custom module
- - add optional `errorCallback` argument to`loadJSON` and `saveJSON`
-
-- server
- - print multiple qrcodes if multiple network interfaces are available and prevent printing a qrcode for the localhost address
-
-- misc
- - add linux rpm packages
-
-## 1.23.0
-
-- bug fixes
- - linkId not working between two encoder widgets
- - fader: `gradient` breakpoints not positioned correctly
- - canvas: `onDraw()` called twice when calling `updateCanvas()`
-
-- midi
- - optional rpn/nrpn parsing as single messages
-
-- widgets
- - keyboard: incoming values different than the `off` property are now interpreted as `on`
-
-- editor
- - when focusing the label property with `F2`, select all text in the text area
- - preserve scroll position in code editor when validating
- - display the id of selected widget in the inspector's header
-
-- scripting
- - expose file browser (from the file widget) as a scripting function
-
-- custom module
- - don't restrict file extension in `loadJSON()` and `saveJSON` functions
-
-- misc
- - add polish locales (@ Manz4rk)
- - add css classes to some notification popups to allow targetting them with css themes
-
-## 1.22.0
-
-- bug fixes
- - keyboard widget: `linkId` not working (unable to link 2 keyboard widgets)
- - slides: issues with ranges containing decimal keys
-
-- launcher
- - add menu options to show the qr code again
- - mac: change "List MIDI devices" keyboard shortcut to `Ctrl+m`
-
-- widgets
- - image: add support for special value "qrcode"
-
-- misc
- - add german locales (@ Magnus Reichel)
- - package file names changed to follow debian's convention
- - add a cli option to disable the qr code (`--no-qrcode`)
-
-## 1.21.0
-
-- bug fixes
- - custom module: fix autoreload on nested submodules
-
-- launcher
- - print a qrcode when the server starts to help connecting mobile devices
-
-- editor
- - horizontal scrolling issues with maximized code editor
-
-- widgets
- - switch/menu/dropdown: add a syntax that supports duplicate labels in `values` property
-
-- custom module
- - expose `global` object that persists accross module reloads.
-
-- scripting
- - onCreate: expose `value`
-
-## 1.20.0
-
-- bug fixes
- - scripting: prevent some functions to be marked as undefined
- - advanced syntaxes: ignores quotes around file path in `IMPORT{}`
-
-- launcher
- - add `Start minimized` menu option
-
-- misc
- - change noFocus client option behavior: the default client window now doesn't take the focus at all, even when a text input is clicked.
- - colorize debug messages for sent and received osc/midi messages
-
-- scripting
- - add `setFocusable()` function to change the focusability of the window on the fly (allows reenabling focus temporarily to interact with a text widget using a dedicated toggle button for example)
- - add `reload()` function
- - expose Navigator object with `getNavigator()`
-
-- widgets
- - fragment: add `fallback` property
-
-## 1.19.2
-
-- bug fixes
- - regression breaking touch move events on desktop touchscreens
-
-## 1.19.1
-
-- bug fixes
- - editor zoom: adjust root widget size when zooming out
-
-## 1.19.0
-
-- editor
- - add keyboard shortcut "h" to hide selection and widget drag / resize handles while pressed
- - inspector: add some shortcut buttons in the header
-
-- widgets
- - add folder widget (flat container that doesn't affect layout)
- - input: add `maxLength` property
- - multixy: allow setting its own value from onValue script while touched
-
-- ui
- - add a virtual onscreen keyboard for desktop clients (can be enabled from the clients main menu)
- - change local zoom (alt+scroll) behavior so that it only affect widgets and add scrollbars to navigate while zooming instead of following the mouse
-
-- server
- - client-options: add `virtualKeyboard` option to enable virtual keyboard by default (desktop clients only)
-
-## 1.18.3
-
-- bug fixes
- - button: regression in push mode (`on` value not passed to `onValue` script when triggered from another widget)
- - button: decoupled push mode returning wrong value when activated from a widget script
-
-## 1.18.2
-
-- bug fixes
- - canvas: `onTouch` not triggered on iOS when when `event.force`, `event.altitudeAngle` or `event.azimuthAngle` changes
- - switch: interaction issue when value labels contain icons
- - ios: attempt to fix rendering glitch when waking up after sleep
-
-## 1.18.1
-
-- widgets
- - button: add `decoupled` property, compatible with all button modes
- - button: remove `decoupled` mode
-
-## 1.18.0
-
-- bug fixes
- - client script source map not loading (helps providing useful error messages)
-
-- widgets
- - button: add `decoupled` mode (toggle mode that only updates its state when it receives a value from osc/midi messages)
- - button: add client option `altTraversing` to allow one-way response to traversing gestures for toggle buttons
- - canvas: iOS: trigger `onTouch` when `event.force`, `event.altitudeAngle` or `event.azimuthAngle` updates
- - knob: add `snap-alt` mode (snap mode that allows jumping between range.min and range.max)
- - all: add `borderRadius` property
-
-- scripting
- - add `updateCanvas()` function (forces a canvas widget to redraw)
-
-- remote control
- - `/NOTIFY`: if multiple arguments are provided, interpret the first one as the icon's name for the client notification
-
-- midi
- - on Mac, name virtual ports after the device name to avoid confusion
-
-- server
- - client-options: add `clientSync` option to allow disabling client synchronization
- - client-options: add `altTraversing` option
-
-- editor
- - add `F2` keyboard shortcut to bring label property input into view if selected widget has one
-
-## 1.17.0
-
-- bug fixes
- - editor: error when ctrl+clicking on a root's child
- - range: multitouch interaction issue
-
-- widget
- - knob / encoder: `sensitivity` and ctrl+drag gesture preserve `circular` mode behavior
- - knob / encoder: `snap` mode now works like `circular` mode except for the touch start event (value can't jump from start to end anymore)
- - patchbay: add `exclusive` option
-
-- editor
- - allow interacting with a widget without selecting it by using the middle mouse button or by holding shift+win (shift+cmd on mac).
-
-## 1.16.6
-
-- bug fixes
- - visibility property update issues
-
-## 1.16.4
-
-- bug fixes
- - modal: display issue when a modal receives the same value multiple times
- - patchbay: `outputs` property not handling object value properly
- - server: resolution conflict between app files and user files
-
-- widgets
- - patchbay: trigger `onValue` script when a connection changes
-
-- misc
- - windows: allow accessing other drives than the default one (list drives when the file browser reaches the filesystem's root)
-
-## 1.16.3
-
-- bug fixes
- - custom module: submodules not loading their own submodules with relative paths properly
- - custom module: issue with circular submodule requires
- - server: harmless error message when importing css files from the main theme file
- - server: allow using folder names "client" and "assets" for user files (eg for images used in a session)
-
-- widgets
- - canvas: add `onResize` script property
- - scripting: expose javascript's `Image` constructor
-
-## 1.16.2
-
-- bug fixes
- - widget visibility not updated properly when set as a non-boolean value
-
-- widgets
- - tabs: detach hidden tabs from the DOM (reduces lag caused by heavy tabs)
-
-## 1.16.1
-
-- bug fixes
- - eq widgets not properly converted when importing v0 sessions
- - image paths with url queries not loaded properly
- - @{} syntax not returning truncated value according to the widget's precision property (fixed for primitive values only, object values are still returned as is)
-
-## 1.16.0
-
-- advanced syntaxes
- - `@{}` and `VAR{}` that return objects / arrays do not return a copy of their value anymore as it may introduce a significant overhead when used extensively. Mutating these objects in `#{}` and `JS{}` scripts will now affect the actual values and should be avoided at all cost.
-- widgets
- - `comments` property flagged as dynamic
- - multixy: add `doubleTap` property
-
-## 1.15.8
-
-- bug fixes
- - range: value update issue (internal touch state not updated properly)
- - scripting: send(): ignore `ignoreDefaults` property
- - script: onKeyboard script not cleaned upon edition / removal
- - editor: some variables not appearing as defined in `onKeyboard`
-
-## 1.15.7
-
-- bug fixes
- - matrix: property resolution issue with object/array items in `props`
- - bypass client option `nofocus=1` when the editor is enabled
- - menu/dropdown: display label when value is undefined
-
-- misc
- - updated midi bridge: provide more information when loading fails; may fix some compatibility issue on windows
-
-## 1.15.6
-
-- bug fixes
- - ios: prevent server error related to the use of cookies
- - scripting: `getVar()` now returns a copy of the variable to prevent mutations on saved object
-
-## 1.15.5
-
-- bug fixes
- - matrix: advanced property issue in `props` property (bis)
-
-- editor
- - inspector: add solo mode with `alt+click` for category panels
-
-## 1.15.4
-
-- bug fixes
- - matrix: advanced property issue in `props` property
-
-## 1.15.3
-
-- bug fixes
- - interaction issue ("deadzone") on touch screens
- - main menu not hidden when `read-only` is set
- - osc messages containing unicode characters not encoded correctly
-
-## 1.15.2
-
-- bug fixes
- - modal: scroll state not restored when the modal container is recreated
- - server: allow spaces and accentuated characters in client id
-
-## 1.15.1
-
-- bug fixes
- - prevent flickering on canvas based widgets when they are recreated
-
-- editor
- - added code editor for `html` and `css` properties
-
-- remote control
- - add `/RELOAD` command
-
-## 1.15.0
-
-- bug fixes
- - editor: prevent accessing non-editable widgets with right arrow
- - multixy: regression causing interaction issue
-
-- widgets
- - add `lock` property to all widgets
-
-- launcher
- - add `Autostart` menu option
-
-- misc
- - update FontAwesome icon font to version 6
-
-## 1.14.6
-
-- bug fixes
- - inspector: script editor: cursor alignment issue in indented lines
- - clone: prevent freeze and print an error when attempting to create a circular clone
- - modal: regression on android that prevents focusing input widgets in modals
-
-## 1.14.5
-
-- bug fixes
- - session loading error with some malformed property cases
-
-## 1.14.4
-
-- bug fixes
- - broken console interpreter since v1.14.0
-
-- widgets
- - button: add `momentary` mode for sending messages with no value; prevent button from getting stuck when `on` and `off` are equal in `momentary` and `tap` modes
-
-- inspector
- - color picker: inline picker widget (no longer in a modal); show color changes on the fly
- - code editor: validate input with `cmd+enter` instead of `ctrl+enter` on Mac
-
-- scripting
- - `screen.height` and `screen.width` always returns the current screen dimensions
- - added `screen.orientation` global variable
-
-- misc
- - some performance improvements
-
-## 1.14.3
-
-- bug fixes
- - osc receivers (`OSC{}` syntax) now apply the same rule as widgets regarding midi messages (only receive if the message's origin matches one of the host widget's midi targets)
- - modal: rendering issue on iOS
- - button: `locals.touchCoords` not updated since v1.14.0
-
-- widgets
- - clone/fragment: remove scripting properties as they are supposed to be overridden in `props`
-
-## 1.14.2
-
-- bug fixes
- - context-menu: double click issue in submenus on small touch screens
- - clone/fragment: broken onDraw / onTouch scripts if cloned widget is a canvas
-
-## 1.14.0, 1.14.1
-
-- bug fixes
- - misc: sending typed arguments (`{type, value}` objects) should override the widget's `typeTags` definition
- - multixy: errors when `ephemeral` is `true`
- - scripting: `setVar` not affecting all widgets when multiple widgets match provided id
-
-- widgets
- - renamed `script` property to `onValue`, `draw` to `onDraw`, `touch` to `onTouch`
- - added `onCreate` script property to all widgets
- - added `onTouch` script to widgets that supported the touch state variable in scripts (now deprecated)
- - script: added `onKeyboard` property, removed `event` property
- - canvas: expose additional touch event informations (`radiusX`, `radiusY`, `rotationAngle` and iOS-only `altitudeAngle`, `azimuthAngle` and `touchType`)
-
-- scripting
- - special keyword `this` now returns the string `"this"`
-
-- advanced syntaxes
- - added `IMPORT{file}` syntax to allow loading external files in properties
-
-- editor
- - add fullscreen mode for properties with code editor enabled
-
-## 1.13.2
-
-- bug fixes
- - editor: keep relative sizes and positions when resizing multiple widgets at a time
-
-- widgets
- - canvas: expose touch pressure (as `event.force`) in the `touch` script.
- - canvas: expose touch events for extra elements added with the `html` property
-
-## 1.13.1
-
-- bug fixes
- - editor: data loss when leaving the editor's focus with no modifications
-
-## 1.13.0
-
-- bug fixes
- - scripting: `storage.getItem()` not returning anything
-
-- editor
- - new code editor for `script`, `touch`, `draw` and `props` properties with syntax highlighting, line numbers, etc
-
-- scripting
- - `set()`: add an option to prevent target widget's script
-
-- widgets
- - root: add `hideMenu` property
-
-- misc
- - minor cosmetic changes
-
-## 1.12.0
-
-- widgets
- - new **canvas** widget (under `pads`): allows creating custom widgets
- - button: expose normalized touch coordinates in scripts as `locals.touchCoords`
- - print a warning in the console when using advanced syntaxes in the script property
-
-## 1.11.1
-
-- bug fixes
- - client options specified in server config not working unless lowercased
- - make disconnection detection less aggressive (don't display notification if reconnection succeeds quickly)
- - panel: initial scroll state issue
-
-## 1.11.0
-
-- bug fixes
- - menu: interaction issue on iOS
- - script: prevent script functions from being called in the wrong scope (ie when leaked using the `globals` object) and print an explicit error
- - containers: prevent errors with some color formats in colorWidget
- - theme: relative url not resolved correctly
-
-- widgets
- - when a panel contains widgets and has `scroll` set to `true`, its value will be used to represent the scroll position for x-axis and y-axis between 0 and 1.
-
-## 1.10.3
-
-- bug fixes
- - config not persistent on windows
-
-- misc
- - read-only mode now hides and disables the main menu
-
-## 1.10.2
-
-- bug fixes
- - certificate expiration issue
- - regression breaking colors in canvas-based widgets
-
-## 1.10.0
-
-- bug fixes
- - sliders: ignore key order in `range`
- - sliders: handle mousewheel increment when starting from a value between two steps with `steps` property defined
- - inspector: allow scrolling in the help modal
- - console: fix command history behavior and increase history size
-
-- widgets
- - encoder: expose angle in script (as `locals.angle`)
- - new textarea widget (multi line input)
- - expose the computed dimensions of canvas-based widgets in `css` (as `--widget-width` and `--widget-height`) and `script` (as `locals.width` and `locals.height`)
-
-- client
- - add `Save backup` menu action (saves a backup copy of current session with an incremented suffix appended to the file name)
-
-## 1.9.14
-
-- bug fixes
- - modal: remove `html` property
- - matrix: nested property inheritance (eg. `@{id_@{id_x}}`) not working in `props`
-
-## 1.9.13
-
-- bug fixes
- - nested property inheritance (eg. `@{id_@{id_x}}`) not updating properly
- - canvas based widgets not updating when hidden
-
-## 1.9.12
-
-- bug fixes
- - client options: options ignored if not lowercased
- - sliders: prevent errors for some edge-case `range` values
-
-## 1.9.11
-
-- bug fixes
- - range: value not properly updated with set()
-
-- misc
- - (built-in client only) add `nofocus` client option to prevent the client window from taking focus unless a text input or a dropdown is clicked.
-
-
-## 1.9.10
-
-- bug fixes
- - matrix: regression from 1.9.8 (broken nested @{} syntax in props property)
-
-- misc
- - midi: detect missing binary (eg when deleted by antivirus) and print a message
-
-## 1.9.9
-
-- bug fixes
- - matrix: regression from 1.9.8
-
-## 1.9.8
-
-- bug fixes
- - matrix: update children when `props` is modified even when the result for `$ = 0` doesn't change
- - fragments: fragment widgets empty when reloading
- - panel: scrollbar issue on iOS 13+
-
-- scripting
- - expose `console.clear()`
-
-## 1.9.7
-
-- bug fixes
- - issue when resizing widget using keyboard shortcuts
- - advanced syntaxes (VAR{}): avoid storing default value as string if it can be parsed as a javascript primitive (boolean, number, etc)
- - advanced syntaxes (VAR{}): ignore quotes around variable name
-
-- editor
- - change keyboard shortcuts for moving widgets (now `mod + arrows`) and navigating in widgets (now `arrows`) to feel more natural with the project tree view.
-
-- widgets
- - script: bypass keyboard shortcuts already used by the editor if it is enabled
- - matrix: removed ambiguous `start` property
- - matrix: advanced syntax blocks can be passed to children without being resolved at the matrix\' scope by adding an underscore before the opening bracket
- - text: add `soft` mode for the `wrap` property
- - input: improve `numeric` mode on iOS
-
-## 1.9.6
-
-- bug fixes
- - advanced syntaxes: `VAR{}` not updating when the default value is edited
- - editor: fix "Bring to front" and "Send to back" context menu actions
-
-- ui
- - add keyboard shortcuts `mod + "+"` and `mod + "-"` to control zoom level
-
-- widgets
- - input: add `numeric` property (allows numeric values only and displays numeric keyboard on mobile devices)
- - button: add `soft` mode for the `wrap` property
- - switch: add `wrap` property
-
-- editor
- - display dropdown and checkbox for boolean properties with extra choices
-
-## 1.9.5
-
-- bug fixes
- - advanced syntaxes: various issues and regressions
- - editor: preserve advanced syntaxes in `left` and `top` when pasting a widget
-
-- editor
- - tree: update widget visibility when it changes dynamically
-
-## 1.9.4
-
-- bug fixes
- - prevent error with empty `OSC{}` blocks
- - regression breaking advanced syntax blocks containing nested brackets
-
-- advanced syntaxes
- - new syntax for creating and using custom variables in properties: `VAR{name, default}`
- - `JS{}` blocks don't require 2 brackets anymore (`JS\{\{}}` still works)
-
-- scripting
- - add `getVar()` and `setVar()` for reading and modifying custom variables. This allows modifying properties directly from scripts (if they contain `VAR{}` blocks).
- - expose session path as `globals.session`
-
-- editor
- - make tree item blink when hitting "Show in tree"
-
-- remote control
- - add `/SCRIPT` command to run scripts remotely
-
-## 1.9.3
-
-- bug fixes
- - scripting: set() not working from a slider to a pad
- - tabs not sending messages / triggering scripts when clicked in editing mode
- - prevent hang with some syntax errors in advanced syntaxes
- - don't show project tree if minimized when creating a new widget (1.9.2 regression)
- - fix "ID + 1" paste for widgets with numeric ids
- - dropdown: reset the underlying dropdown when the widget's value is undefined
-
-- editor
- - tree: allow specifying multiple type filters
- - tree: add "Show in session" context menu action
-
-## 1.9.2
-
-- bug fixes
- - visualizer: remove `bars` and `dots` option
- - plot: fix `bars` option
- - project tree: clear filter input when loading a session
- - server: fix serving files from paths containing accents
- - editor: keep editor open when loading a session
- - menu: prevent clipping in container on iOS
-
-- widgets
- - image: add pre defined values for `size`, `position` and `repeat` properties
- - text: add vertical alignment choices to `align`
-
-- editor
- - tree: add icons before widget ids depending on the category
- - tree: activate tab when selecting it in the project tree
- - tree: allow dragging widgets from a container to another
- - tree: expand container when a new widget is created inside it
- - tree: add support for filtering widgets by type (by typing `type:fader` for example)
- - smarter shift+drag selection: allow selecting widgets in the area when the event started on the parent container
- - select newly created widgets/tab except when copy-pasting
-
-- remote control
- - add `/STATE/SEND` command
-
-## 1.9.1
-
-- bug fixes
- - button: allow writing strings like `"1.0"` in `label` without removing the decimals
- - editor: use css variable `--grid-width` at startup and after disabling & enabling the grid
- - launcher: regression preventing server halt when built-in client is closed manually beforehand
- - scripting: prevent crash (built-in client only) when using the variable `navigator`
-
-- widgets
- - menu/switch/dropdown: reset value to `undefined` when receiving a value that's not defined in `values`
-
-- scripting
- - expose instance of navigator [Clipboard](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard) as `globals.clipboard`
-
-- midi
- - allow sending note off with velocity
- - add option for receiving note off with velocity
-
-- misc
- - v0->v1 session conversion: remove `JS\{\{}}` in script property
-
-## 1.9.0
-
-**Warning** Sessions saved with this version will not open in older versions (sessions saved with older version will open in this version).
-
-- bug fixes
- - remote-root option not applied on resources loaded by the client app (css images, etc)
- - input: display issue when resizing the window
- - launcher: cancel stopping the server when there are unsaved changes in the built-in client
-
-- editor
- - context menu: add `export` action to export a widget as a fragment file
- - show project tree if minimized when clicking on "Show in tree"
-
-- widget
- - **new** `fragment` widgets (under `containers`): embedded session or fragment file with overridable properties.
- - add `comments` property to all widgets
-
-- launcher
- - add `Always on top` menu toggle
-
-## 1.8.15
-
-- bug fixes
- - editor: error when duplicating widget while if the clipboard is empty
- - ui: local zoom move issue when not in fullscreen
- - custom module: `clearInterval()` not working
- - regression breaking style attribute in html property
-
-- misc
- - faster local zoom
-
-## 1.8.14
-
-- bug fixes
- - `alt+shift+c` not working when pressed before dragging
- - incremental pasting issue with address property
- - generate scrollbars for panels on iOS 13+
- - fix scrolling on chrome for iOS 13+
-
-- editor
- - add `mod+d` and `mod+shift+d` for duplicating widgets
- - use a temporary clipboard when duplicating widgets
-
-- misc
- - inspector: move `script` property to `scripting` category
- - ui: minor style tweaks
-
-
-## 1.8.13
-
-- widgets
- - file: show save icon when mode is set to save
- - file: center icon when hidePath is set to true
- - sliders/pads: apply `spring` property dynamically
-
-- ui
- - add `alt`+`wheel` for local zoom centered on cursor
-
-- editor
- - add `alt+c+drag` and `alt+shift+c+drag` for duplicating dragged widgets
-
-## 1.8.12
-
-- bug fixes:
- - project tree: filter input position issue when scrolling
- - sliders/pads: apply `spring` property dynamically
-
-- project tree
- - select range of contiguous widgets with shift + click
-
-- misc
- - plot: remove unused `filters` property; fix description for `rangeX` and `rangeY`
- - console: focus input when the console opens
-
-## 1.8.11
-
-- bug fixes
- - switch: widget not reacting at first touch when traversing is enabled on parent
- - sliders: disable mousewheel when `spring` is enabled
-
-- widgets
- - script: add `once` event mode
- - encoder: remove `spring` property
-
-- custom module
- - expose `process` global
-
-- scripting
- - add `openUrl` function
-
-## 1.8.10
-
-- bug fixes
- - modal: issues with children's visibility
- - console: allow multiple arguments in console.log()
-
-- ui
- - launcher: add many keyboard shortcuts
- - client: add keyboard shortcuts for clearing the console
-
-- scripting
- - add `setFocus` function to focus an input widget programmatically
-
-- misc
- - add `usePercents` client option
-
-## 1.8.9
-
-- bug fixes
- - script: issue when using the `options` argument in `set()` (options leaked to subsequent set() calls in the script)
- - multixy: `decimals` property not applied
- - multixy: spring behavior not working until all points are released
- - custom module: prevent require() from reading submodules files each time and instead return the object in memory
-
-## 1.8.8
-
-- launcher
- - add file browser button for the `theme` option and fix parsing path containing spaces if only one theme is set
-
-- windows
- - remove `ctrl+w` shortcut for closing a window (use `alt+f4` instead)
-
-
-## 1.8.7
-
-- midi
- - add active sensing messages support (received as sysex)
-
-- remote control
- - restore `/TABS` command (for opening tabs by ids)
-
-- widgets
- - encoder: expose rotation speed in script (as `locals.speed`)
-
-## 1.8.6
-
-- bug fixes
- - range: per-fader touch event not emitted properly
- - rgb: fix `spring` property
- - rgb: touch event not emitted
-
-## 1.8.5
-
-- bug fixes
- - midi: debug messages displayed as errors
- - launcher: broken context menu
-
-## 1.8.4
-
-- bug fixes
- - input: prevent focus when selecting the widget for edition
- - input: submit content when leaving focus, not only when hitting `enter` or `tab` (`esc` still cancels)
- - midi: prevent midi bridge from stopping when an error occurs; provide meaningful errors when connection fails
-
-- editor
- - inspector: hitting ctrl+s while editing a property will submit the change before saving
-
-- ui
- - hide the console toggle button when the bottom panel is minimized and the editor is disabled
-
-- widgets
- - file: add `mode` property, for choosing between `open` and `save` modes
- - switch: add `flip` mode
-
-## 1.8.3
-
-- bug fixes
- - keyboard: allow note numbers up to 127
- - server: return http 404 error when a user-requested resource is not found instead of keeping a pending request
- - modal: `visible` property not applied correctly
-
-
-- project tree
- - add an input for filtering displayed widget by id
-
-## 1.8.2
-
-- bug fixes
- - menu: allow manual line breaks ("`\n`") in labels / values
- - custom module: parsing issue when sending widget data using `receive()` (`type` attribute erroneously parsed as an osc typetag)
-
-- widgets
- - html property: allow "href" attribute on "a" elements
-
-
-## 1.8.1
-
-- bug fixes
- - script: stops triggering osc messages under some circumstances
-
-## 1.8.0
-
-- bug fixes
- - project tree: layout issue with deeply nested widgets
- - ios 10.3 regression
- - file browser: layout issue with long paths
-
-- custom module
- - add `nativeRequire` function (allows loading native node modules or locally installed modules)
-
-## 1.7.8
-
-- bug fixes
- - canvas-based widgets not drawn when placed in a modal while having a conditional visibility set
- - text: missing `decimals` property
- - clone: fix usage of osc listener syntax (acts as if clone has an `address` property set to `auto`)
-
-- widgets
- - clone: make `props` property dynamic (avoid full widget rebuild when possible)
-
-- misc
- - increase client console history size and allow changing it with client url options
-
-## 1.7.7
-
-- bug fixes
- - startup regression
-
-## 1.7.6
-
-- bug fixes
- - (harmless) error raised when starting the server from the launcher with `debug` set to `true`
-
-- editor
- - display/save color picked values with css rgba notation instead of hexadecimal
-
-- widgets
- - modal: add `ignoreTabs` option (allows overflowing tab ancestors)
- - menu: add `ignoreTabs` option
-
-## 1.7.5
-
-- bug fixes
- - ios: cloned menu not displayed correctly
- - engine: downgrade to fix startup issue on windows
-
-## 1.7.4
-
-- bug fixes
- - editor: cloned `dropdown` and `input` widgets not opening when selected
- - widgets: prevent value-stateless widgets (tap buttons, clone, scripts, html and svg) from sending a value for cross-client synchronization (leads to unexpected script execution) and exclude them from state saves
- - input: apply `decimals` number before checking the value against the `validation` expression
- - range: `steps` and `dashed` property not working; remove `origin` property
- - config conflicts between launcher and server (affecting at least session history)
-
-## 1.7.3
-
-- bug fixes
- - custom module / theme: prevent reloading the module while the file is being written to
- - server: if a theme is used, attempt to resolve image urls against the theme file's location
- - modal/button: prevent error when `label` is updated
-
-- widgets
- - encoder: add `ticks` property back
-
-## 1.7.2
-
-- bug fixes
- - midi: mtc parsing error
- - custom module: hot reload cache issue on windows
-
-
-## 1.7.1
-
-- bug fixes
- - regression causing server errors
-
-## 1.7.0
-
-**Important change**
-
-Prebuilt binaries are now supplied only for 64bit Linux/MacOs/Windows. Other platforms should use the `node` package or build it from sources.
-
-**MIDI support**
-
-As of this version, packages except the `node` package are bundled with a midi binary that will be used whenever midi's `path` option is not set. It is no longer necessary to install `python` and `python-rtmidi`.
-
-**Changelog**
-
-
-- bug fixes
- - editor: missing context menu (copy, paste) in inspector inputs
- - widgets: osc listeners not resolving "auto" address
- - cli: `ELECTRON_RUN_AS_NODE` headless mode not working without `--no-gui` option
- - ios: clone widget not laid out properly in horizontal panels
- - ui: missing vertical scrollbar when root's height overflows the workspace
- - server: provide readable error when a file requested by the client file is not found
- - tab: content not drawn when changing visible property
- - matrix: addresses not generated property when matrix' address is `auto`
-
-- ui
- - add console bottom panel with a simple script interpreter
-
-- widgets
- - keyboard: add `velocity` property (allows mapping the touch coordinates between `off` (top) and `on` (bottom))
- - input: add `validation` property (allows defining a regular expression that the value must match)
- - modal: add `relative` position property
-
-- midi
- - accept sending sysex strings without spaces between the bytes
- - load prebuilt midi binary on 64bit linux/windows/osx
- - add support for midi time code messages
-
-- misc
- - sessions converted from v0 will use the widget's html property to display the former label property
-
-## 1.6.2
-
-- bug fixes
- - matrix: issues when changing non-dynamic properties (content not properly removed)
- - input: apply default value when receiving an empty value or no value at all
-
-## 1.6.1
-
-- bug fixes
- - keyboard: prevent `script` property from being copied to each key
-
-- widgets
- - keyboard: make `on` and `off` properties dynamic
- - script: add `getIndex` function
- - matrix/keyboard: `id` variable in script is now the `id` of the child widget that triggered the event
-
-## 1.6.0
-
-- bug fixes
- - range: error when setting `default` property
- - range: fix `doubleTap` property
-
-- widgets
- - all: add `html` property to allow inserting custom content in widgets (label, value, etc) and style it with the `css` property.
-
-- scripting:
- - `send()`: ignore the widget's `bypass` property (allows bypassing default messages and define custom ones)
- - `set()`: add supports for wildcards in the id parameter
- - `set()`: add a 3rd optional parameter for preventing further script executions and/or osc messages from being sent
-
-- custom module
- - automatically reload custom module when the file is modified
- - add support for loading submodules with `require()`
-
-- theme
- - automatically reload theme when the file is modified
-
-## 1.5.4
-
-- bug fixes
- - ssl: generate unique certificates (with random serial numbers) to avoid reuse errors. Certificates generated with older versions of o-s-c will be updated automatically.
- - `~/` path prefix not recognized when using remote control commands like `/SESSION/SAVE`
- - `~/` path prefix not recognized in `remote-root` option
- - editor: paste ID+1: midi-related addresses should not be incremented
-
-- remote control
- - add `/STATE/OPEN` and `/STATE/SAVE` commands
- - ignore unsaved changes when loading a session with `/SESSION/OPEN`
- - resolve relative file paths against `remote-root` setting
-
-## 1.5.3
+## 0.41.1
- bug fixes
- - editor: error when `preArgs` and `address` are modified at the same time (affects `/EDIT` command and matrix/clone widgets)
+ - error when loading session file
+ - prevent sidepanel issue when toggling quickly
-## 1.5.2
-
-- bug fixes
- - launcher: midi device names containing multiple spaces not parsed correctly
- - fullscreen: lack of support not detected on some ios devices
- - multixy: labels not hidden when `ephemeral` is `true`
-
-- remote control
- - add `/SESSION/OPEN` and `/SESSION/SAVE` commands
-
-## 1.5.1
-
-- bug fixes
- - widgets: touch state scripts not triggering some synchronization mechanism
-
-- widgets
- - encoder: remove `steps`, `ticks` and `origin` properties
- - encoder: make `sensitivity` work with values below 1
-
-## 1.5.0
-
-- bug fixes
- - image: broken value validation
- - menu/dropdown: use correct z-index
- - dropdown: prevent dropdown from opening when selecting the widget for edition
-
-- editor
- - holding `alt` extends the north-west handle to the widget's size to ease dragging
- - widget properties reordered (e.g. style-related properties, even widget-specific, are now under the "style" category)
-
-- widgets
- - remove `colorBg` for all widgets except containers
- - widgets background color is now transparent by default (can be overridden with css)
- - keyboard: added `colorBlack` and `colorWhite` properties to customize key colors
- - dropdown/menu: add `label` property (with support easy key/value display)
- - dropdown/menu: add `icon` toggle property
- - modal: add `popupPadding` property to control the button's and the container's padding independently
-
-## 1.4.1
-
-- bug fixes
- - multixy/range: prevent some extra touch state events;`
-
-## 1.4.0
-
-- bug fixes
- - project tree: error when dropping a widget at its initial position
-
-- editor
- - validate property change when clicking on a widget
- - cancel property change when hitting escape
- - add menu and keyboard shortcuts to reorder widgets
- - add keyboard shortcut to show widget in project tree
- - selected widget is not showed on top of the others anymore
-
-- widgets
- - expose widgets unique identifiers with property name "uuid"
- - xy/multixy: add `ephemeral` property
- - fader/knob/xy/range/multixy: remove `touchAddress` property
- - fader/knob/xy/range/multixy: expose touch state in `script` property (`touchAddress` usages will be converted automatically)
-
-## 1.3.0
-
-- bug fixes
- - editor: hide impossible actions from context-menu (eg adding widgets in tab containers)
- - editor: error when selecting a tab/root widget while a property field contains unsubmitted changes
- - panel: layout issue with tabs & lineWidth property
- - input: extend focusable area
-
-- midi
- - remove variable args in sysex messages (dynamic properties and scripting can be used to this effect)
- - add support for sending sysex bytes as integers
- - allow sending any system message (eg MIDI time code)
- - add support for receiving MIDI time code messages (as raw sysex) (requires adding the `mtc` flag to the midi configuration)
-
-
-## 1.2.1
-
-- scripting
- - expose toolbar menu actions
-
-- remote control
- - optimise small changes made with /EDIT
-
-- widgets
- - button: add `wrap` and `vertical` properties
- - root: add `width` and `height` properties (helps building mobile layouts)
-
-## 1.2.0
-
-- bug fixes
- - editor: id not incremented when pasting multiple widgets with id+1
+## 0.41.0
- main
- - remove support for extra args in the `custom-module` option (fixes some path issues)
+ - `--send` accepts `ip:port` and `domain:port` targets
+ - removed previously deprecated `--sync` option
+ - `--custom-module` now accepts extra options that can be consumed from the custom module's code
+ - sessions located on the server can now be saved remotely, this becomes the default behavior for keyboard shortcut `mod + s`, local export is still available via `mod + shift + s`
+ - added `--remote-saving` options to limit remote session saving feature to hosts that match the provided regular expression
+- ui
+ - added notifications
+- widgets
+ - `matrices`: **new** `patchbay` widget
+- bug fixes
+ - layout break when hitting tab with sidepanel closed and editor enabled
+ - crash when running the server in an environnement without user home folder
+
+## 0.40.5
+
+- bug fixes
+ - clone: editor's selection rectangle appearing after editing the clone's target widget
+ - windows: midi issue (python path not found)
+- widgets
+ - input: hitting `tab` now validates the value before focusing the next input (hitting `esc` or clicking outside the widget still cancels); when focusing an input widget, its whole value is selected by default; focused/selected text color hint changes.
+ - matrix: widgets inherit from the matrix' `id` and osc properties by default
+
+## 0.40.4
+
+- bug fixes
+ - editor: widgets/tabs not properly reordered when changing a widget or tab's index by more than 1
+ - main: `--no-gui` switch not working when running the app from a different directory
+ - regression causing osc receivers (`OSC{}`) to conflict with property listeners (`@{}`)
+- widgets
+ - push: add `doubleTap` option
+ - osc listeners (`OSC{}`) now accept relative addresses (without leading '/'), automatically prefixed with the widget's address
+
+## 0.40.3
+
+- bug fixes
+ - editor: sidepanel & dragging handles not always updated after edition
+ - widgets: parsing error when a property contains more than 10 variables
+
+## 0.40.2
+
+- bug fixes
+ - regression reversing tabs order
+
+## 0.40.1
+
+- bug fixes
+ - editor: issue with tabs selection / edition
+ - regression breaking `svg`
+
+## 0.40.0
+
+- bug fixes
+ - `--read-only` option not properly working
+ - `keyboard`: dynamic properties `target`, `precision` & `preArgs` not being updated dynamically
+- widgets
+ - formulas: added `indexOf` function
+ - **deprecated** `multifader` / `multipush` / `multitoggle` in favor of the generic `matrix` widget
+ - meter: `gradient` can be set as an object to define uneven color breakpoints
+
+## 0.39.8
+
+- bug fixes
+ - meter's properties not accessible (overridden with fader's properties)
+- mobile
+ - button for preventing device sleep
+
+## 0.39.7
+
+- bug fixes
+ - iOS 9.3 compatibility
+- widgets
+ - sliders: `steps` property is now dynamic
+
+## 0.39.6
+
+- bug fixes
+ - `modal` widgets not working since chrome v70
+
+## 0.39.5
+
+- bug fixes
+ - sliders: `steps` option not working when `range.min` is not `0`
+ - regression breaking the app for iOS 9.3
+
+## 0.39.4
- widgets
- - all: add `lineWidth` style property
- - knob: add `solid` & `line` designs
- - fader: add `knobSize` property
+ - multiXy: added `.pad-N` class to inner xy pads to help with css customization
+ - xy/multiXy: added css variables `--background`, `--color-pips`, `--pips-opacity` and `--point-opacity`
+ - rgb: added `alpha` option
+ - xy/multiXy/rgb: design impovements;
+ - sliders: new `steps` option
+## 0.39.3
+
+- bug fixes
+ - broken tabs color property
+ - broken `/TABS` command; this command doesn't makes panels send osc messages anymore
+
+## 0.39.2
+
+- bug fixes
+ - regresssion: broken --theme option
+ - regression: missing 'edit parent' action in editor's context menu
+
+## 0.39.1
+
+- bug fixes
+ - regression breaking icons in switches' labels
+
+## 0.39.0
+
+- performance
+ - rendering speed improved (session loading time reduced by about 30%)
+- widgets
+ - remove support for deprecated properties `path`, `noPip` and `noSync`
+ - sliders/pads: `precision` is no longer a dynamic property
+
+## 0.38.7
+
+- bug fixes
+ - launcher compatibility issues with electron v3
+
+## 0.38.6
+
+- bug fixes
+ - regression with dynamic property `color` in panels and matrices
+- packaging
+ - node-only package can be run with electron too
+
+## 0.38.5
+
+- packaging
+ - regression causing the client js bundle to be much bigger than needed
+ - added node-only package built without electron for unsupported platforms (armv6, etc)
+
+## 0.38.4
+
+- bug fixes
+ - `@{parent}` calls not working consistently in clone widgets
+ - `slider/pads`: inteverted ranges not working
+ - fix `doubleTap` for sliders with `snap` set to `true`
+ - undo/redo errors
+- widgets
+ - 1-level nested property inheritance calls (`@{id_@{id_2}}`) are now updated dynamically
+ - support special css property `class` for adding custom classes to widgets
+ - added "smart" traversing gestures mode that limits affected widgets by the type of the first touched widget
+ - root: added `traversing` property
- editor
- - preserve percentages in position/size
- - add 'Relative units (%)' option to use percents automatically on new widgets
+ - major performance improvements (containers' children are reused whenever possible instead of being recreated)
+ - removed widget deletion confirmation popup
+ - properties categories can now be folded
+ - added keyboard shortcut `F2` for editing the label quickly
+ - added keyboard shortcut `mod + s` for saving the session
+ - added keyboard shortcut `mod + o` for opening a session
+ - use `backspace` instead of `delete` for deleting widgets on MacOs
+ - added keyboard shortcut `mod + e` for enabling / disabling the editor
+ - added keyboard shortcuts `mod + arrows` for selecting widgets
+ - added keyboard shortcut `mod + a` for selecting a widget's siblings and itself
+ - added keyboard shortcut `mod + shift + a` for cancelling selection
+ - added multi widget selection with mouse when `shift` is pressed
+ - right-click doesn't modify current selection when `mod` or `shift` is pressed
+- formulas
+ - added `extend(x, y)` function for merging two objects
+ - objects' closing brackets (`}`) don't need to be escaped with a backslash anymore
+ - show property's computed value in the help popup
-## 1.1.0
+## 0.37.4
- bug fixes
- - iOS 14+ scrolling issue
-
-- midi
- - add support for channel pressure and key pressure messages
-
-- widgets
- - svg: remove support for non-standard `%x` and `%y` units; fixed layout update when resized;
- - knob: add support for custom dash/gap size in `dashed` property
-
-## 1.0.4
-
-- bug fixes
- - script: broken `storage.getItem` and `storage.removeItem`
- - regression breaking `remote-root` option when starting with the launcher
-
-
-## 1.0.3
-
-- bug fixes
- - modal: layout issue on iOS
-
-- widgets
- - panels: added `contain` property to allow scrolling in vertical/horizontal layouts
-
-- midi
- - add support for named ports in midi configuration
-
-
-## 1.0.2
-
-- bug fixes
- - broken scrolling on iPhone iOS 13
- - window geometry issue
-
-## 1.0.1
-
-- UI
- - windows' dimensions and position are now saved upon closing and restored at startup
-
-## 1.0.0
-
-*This list is not exhaustive*
-
-- compatibility
- - dropped support for iOS 9
- - firefox (75+) support
-
-- UI
- - overhaul design reworked
- - foldable sidepanels
- - removed lobby
- - added toolbar menu
- - display loading (spinner) in a notification instead of a modal
- - mod + w to close window
- - context-menu now use click event to trigger actions, not mousedown/touchstart
- - no more uppercase text by default
-
-- themes
- - built-in themes removed except `orange`
-
-- translations
- - incomplete russian translation removed
-
-- editor
- - project tree
- - dropdown for properties with multiple choices
- - color picker
- - preview numeric values for style-related properties set to auto
- - context menu: added "show in tree" action
- - context menu: removed "edit parent" action
- - allow copying tabs (to tab containers only)
- - shared clipboard across all clients
- - prevent interaction with widgets when `shift` or `ctrl` is held
- - ensure @{} bindings are always updated upon edition
-
-
-- widget changes
- - all: removed `label` option except for buttons, tabs and modals (one should use `text` widgets if needed)
- - all: removed support for `null` and `"self"` targets
- - all: added `ignoreDefaults` property (allows ignoring the server's default targets)
- - all: `precision` property to `decimals`, don't set osc integer typetag when 0
- - all: added `typeTags` property
- - all: multiple style properties to control visibility, colors, alphas and padding
- - all: added `interaction` (=> css `pointer-events: none;`)
- - all: added `expand` (=> css `flex: 1;`)
- - all: prevent html tags in label
- - pads: removed `split` property -> use custom-module or script instead
- - root: can contain widgets or tabs
- - panels: added `layout`, `justify` and `gridTemplate` to help managing layouts (especially responsive ones)
- - panels: added `verticalTabs` property
- - panels: added `traversing` property, allow restricting `traversing` to a specific widget type
- - fader: removed `input`
- - fader: removed `meter`
- - fader: added `gradient`
- - fader: added `round` design style
- - fader: support setting dash size and gap size in `dashed` property
- - switch: added `layout` (including grid)
- - switch: added `click` mode
- - plot/eq: removed `smooth`
- - plots/sliders/pads: reversed `logScale` behavior to match standard implementations; can be either `false` (disabled), `true` (logarithmic scale) or `number` (manual log scale, negative for exponential scale)
- - visualizer: added `framerate` property
- - visualizer: added `freeze` property
- - menu: always centered menu
- - modal: modals can't overflow parent tab boundaries
- - input: removed `vertical`
- - pads, range: when `touchAddress` is set, one message per touched point is sent, in addition to the former touch state message
- - eq: removed `logScaleX` property, always draw logarithmic frequency response
- - eq: logarithmic x-axis scale fixed
- - eq: filters are now defined with the `filters` property, leaving the `value` to its default purpose
- - eq: added `rangeX`
- - html: allow `class`, `title` and `style` attributes
- - dropdown: close menu when receiving a value
- - dropdown: removed empty 1st option
- - switch: removed `showValues` (inconsistent with menu/dropdown, feature covered by `values` property)
- - frame: allow loading non local urls
-
-- widget removals
- - `push`, `toggle`: merged into `button`
- - `strip`: features now covered by `panel`
- - `meter`: duplicate of `fader` with `design` to `compact` and `interaction` to `false`
- - `switcher`, `state`, `crossfader`: removed => state management functions added to the `script` widget
- - `keys`: merged with `script`
- - `gyroscope`: not compatible since chrome 74 unless o-s-c goes HTTPS
-
-
+ - osc receivers (`OSC{}`) not working in non-dynamic properties
- remote control
- - removed /TABS
- - added /NOTIFY
+ - added `/GET/#` to get a widget's value without using `/GET` as reply address
-- scripting (general)
- - removed MathJS language
- - reuse #{} syntax as as shorthand for JS\{\{}} (one liner, implicit return)
- - added `locals` variable, a variable store scoped to the widget
- - renamed `global` to `globals`
- - expose environment variables in `globals`: `url`, `env` (query parameters), `platform`, `screen` (width/height)
+## 0.37.3
-- script widget
- - always hidden except in project tree
- - `script` property must not be wrapped in a JS\{\{}} block anymore
- - added `stateGet` and `stateSet` functions
- - added `storage` object, proxy to the document's localStorage object (allows storing data that persist after refresh/close (cleared with the browser's cache)
- - added `setTimeout`, `clearTimeout`, `setInterval`, `clearInterval` function proxies with an extra `id` argument (they clear automatically when called multiple times and upon widget removal. `id` is scoped to the widget)
+- bug fixes
+ - gyroscope: osc sendings not properly triggered on value updates
+## 0.37.2
+
+- bug fixes
+ - osc: regression making empty `preArgs` count as one empty string argument
+
+## 0.37.1
+
+- bug fixes
+ - closing popups when clicking precisely on the "x"
+- translations
+ - fr: corrections
+ - ru: added russian translation
+
+## 0.37.0
+
+- bug fixes
+ - editor: opening the sidepanel doesn't select the root widget anymore
+ - ios: fix `doubleTap`
+- widgets
+ - **new** `gyroscope` widget
+ - **new** `frame` widget
+ - **breaking change** in `panel`: dropped Visual Format Language support (`layout` and `spacing` properties)
+ - maths: added `timestamp()` function
+- editor
+ - widget property names can be clicked to show documentation
+- misc
+ - the client app can be translated (https://github.com/jean-emmanuel/open-stage-control/issues/302)
+
+## 0.36.0
+
+- bug fixes
+ - `linkId` synchronizations now correctly trigger property updates
+ - widgets with multiple `linkId` are now properly handled
+ - synchronization issue between `visualizer` widgets
+- widgets
+ - `keys` (**breaking changes**): formulas in `keydown` and `keyup` must be explicitely written using the `#{}` syntax; variable `value` got removed from these formulas context (use `@{this}` instead); removed `widgetId` property, the value emitted by the widget on keypress events can be linked with other widgets via the `linkId` property or the property inheritance syntax;
+ - `visualizer`: update rate set to default canvas framerate
+- editor
+ - **new** keyboard shortcuts (undo, redo, copy, paste, etc)
+
+## 0.35.0
+
+- main
+ - added `--state` option for loading a state file with a session file
- state
- - quickstate (store/recall from menu) is now stored in the clients cache and persists after refresh/close (cleared with the browser's cache)
+ - loading a state file doesn't replace the quick save slot anymore
+- widgets
+ - **new** `script` widget
+- misc
+ - reduced session file size (indentation set to 2 instead of 4)
+## 0.34.4
+
+- bug fixes
+ - widgets: dynamic `address` when `split` is `true`
+ - strip: missing osc properties (`address` and `preArgs`) for remote control
+ - switcher: update linked widgets' osc properties before sending if they depend on the switcher's value
+
+## 0.34.3
+
+- bug fixes
+ - launcher: regression breaking the `port` option
+
+## 0.34.2
+
+- bug fixes
+ - matrices: spacing issue when wrapped in strips
+ - launcher: regression preventing options to be applied
+
+## 0.34.1
+
+- bug fixes
+ - switch: display object-values properly when `showValues` is set to `true`
+ - prevent non-dynamic properties updates from breaking an osc sending event chain
+- deprecations
+ - `formula` has been removed from the editor's context menu
- custom module
- - `settings.read(name)`: `name` is now the long name of command-line options (not a camelCased one)
- - `receive()`: optional last argument to pass extra options such as `clientId`
- - client id persist upon page refresh and can be set manually with the client url option `id`
+ - expose `app` to the custom module's scope: an event emitter for monitoring the events sent by the different clients
+- misc
+ - fixed rpi build
+## 0.33.3
+
+- bug fixes
+ - matrix: recreation loop issue with matrices of clones
+ - multixy: glitch when some letters are used in the points' labels
+
+## 0.33.2
+
+- bug fixes
+ - matrix: set initial value at widget's creation; missing border under widget's label
+- widgets
+ - property math syntax: add `values()` and `keys()` functions
+
+## 0.33.1
+
+- bug fixes
+ - widgets: remove unnused properties to avoid having hidden properties laying around when the type changes (especially dangerous when those properties where linked to other widgets)
+
+## 0.33.0
+
+- bug fixes
+ - osc receivers: unregister properly when widgets are recreated (memory leak); allow non-string values (eg. objects)
+ - circular property update issues
+- widgets
+ - **new** generic `matrix` widget
+ - fader: restore right-click focusing the input in compact mode (mouse only)
+
+## 0.32.6
+
+- bug fixes
+ - css border-radius not applying correctly for some widgets
+- themes
+ - multiple adjustments
+
+## 0.32.5
+
+- bug fixes
+ - missing feedback support for widgets with typed preArgs
+- themes
+ - improved `dark` theme
+ - added `flat`
+
+## 0.32.4
+
+- bug fixes
+ - regression breaking typed osc args
+
+
+## 0.32.3
+
+- bug fixes
+ - regression in editor/resize function
+
+## 0.32.2
+
+- bug fixes
+ - sliders colors not displayed correctly on iOS
+- widgets
+ - xy: tiny knob style change
+- editor
+ - reallow editing disabled properties
+
+## 0.32.1
+
+- bug fixes
+ - error in osc receivers
+
+## 0.32.0
+
+- main
+ - add tcp support
+
+## 0.31.0
+
+- bug fixes
+ - regression breaking multitouch widgets
+- widgets
+ - fader/knob/pad: right-click / long tap doesn't give focus to the input anymore
+
+## 0.30.4
+
+- bug fixes
+ - regression breaking touch traversing gestures
+ - clone widgets becomming unselectable for edition
+ - `preArgs` property still being coerced to an array
+
+## 0.30.3
+
+- bug fixes
+ - big regression breaking many touch gestures
+
+## 0.30.2
+
+- bug fixes
+ - broken remote-control /TABS command
+ - disabled `spacing` property in strips
+ - disabled properties in modals
+ - broken arm build
+
+
+## 0.30.1
+
+- midi
+ - prevent the main process from exiting when MIDI setup fails
+
+## 0.30.0
+
+- widgets
+ - `target` and `preArgs` properties are no longer coerced to arrays and can be written as single string values
+ - `linkId` supports master and slave modes with `>>` and `<<` prefixes
+ - the special `target` token `null` can now be used in conjunction with regular targets, it disables the default global targets set via the `--send` option
+- editor
+ - disabled widget properties are now greyed out
+
+## 0.29.2
+
+- bug fixes
+ - launcher: parsing errors are not fatal anymore
+ - css parsing error on iOS
+
+## 0.29.1
+
+- bug fixes
+ - editor: "wrap" deleting the widget just before the one being wrapped
+ - regression breaking traversing gestures and high precision gestures (0.29.0)
+- server
+ - allow sending osc to broadcast ip addresses
+- widgets
+ - limited support for property inheritance nesting (`@{id_@{id_2}}`)
+ - support using property inheritance syntax in osc listeners' addresses
+
+## 0.29.0
+
+- beaking changes
+ - dropped supported for `.js` sessions (deprecated in 0.20.0)
+- bug fixes
+ - zeroconf: unpublish when shutting down
+ - ios 9.3 compatibility issue
+ - function mispelling in rgb widget
+- widgets
+ - modal: added `popupLeft` and `popupTop` properties
+ - faders/meter: add css variable `--gauge-opacity` to allow setting a fixed gauge opacity for meters and compact faders
+- custom module
+ - messages converted from midi inputs can be filtered
+
+
+## 0.28.3
+
+- bug fixes
+ - widgets not correctly drawn when hidden/shown with dynamic css
+ - iOS: file upload failing sometimes
+- widgets
+ - knob: small design improvements (pips don't take extra space anymore)
+
+## 0.28.2
+
+- bug fixes
+ - session list: fix "remove from history" always removing the first item in the list
+- custom module
+ - expose `setInterval`
+ - expose `clearTimeout` and `clearInterval`
+ - prevent errors when failing to run the module
+
+
+## 0.28.1
+
+- bug fixes
+ - regression in nested clones structures handling
+
+
+## 0.28.0
+
+- widgets
+ - matrices: support setting `split` property as a string to allow using children's indexes in their address (`$` is replaced with the index number)
+ - text: `wrap` property doesn't break words by default anymore
+ - rgb: added `range` property
+- launcher
+ - right-click context menu (copy, paste, clear console, toggle console autoscoll, relaunch app)
+ - better font for the console
+
+## 0.27.2
+
+- bug fixes
+ - session/state file upload sometimes failing silently
+ - regression breaking the app for iOS
+
+## 0.27.1
+
+- bug fixes
+ - error when resizing a widget and its clone(s) at the same time
+ - error with non string css property
+ - session list not reappearing when failing to load
+ - broken state file loading
+- misc
+ - added a loading indicator when uploading a session file or a state file
+
+## 0.27.0
+
+- bug fixes
+ - strip: nested strips were inheriting their parent's `spacing`
+ - modal: prevent error when retrieving a child's property
+ - modal: prevent touch event from affecting elements behind the popup when closing it
+ - clone: some properies in target widget were not applied to the clone
+ - clone: prevent clone from resetting its target value when created
+ - text: vertical centering issues in narrow widgets
+ - dynamic properties: when using a widget's own value to determine its osc settings, these are checked and updated if needed before sending the message
+ - prevent error when loading a session containing invalid property inheritance calls
+ - broken build for iOS 9.3
+- editor
+ - wrap in: insert wrapper at selected widget's index
+ - wrap in: set label to false by default when wrapping in a strip or a panel
+ - css property `pointer-events:none;` is now ignored when the editor is enabled
+ - preverve pecentages when dragging/resizing a widget that has its position/size written in percents
+- widgets
+ - **new** `OSC{/address, default_value}` syntax
+- ui
+ - sidepanel is now resizable
+- themes
+ - `responsive-fonts`: increase size for big screens
+- build
+ - dropped support for node < 4.8
+
+## 0.26.3
+
+- bug fixes
+ - ios: broken default accent color in clone Widgets
+ - ios/android: closing the sidepanel opened the tab next to the menu button
+- editor
+ - mac: use `shift` instead of `command` for multi widget selection to match native behaviour and prevent unwanted zoom with trackpads
+- widgets
+ - strip: `spacing` now accepts percents
+
+## 0.26.2
+
+- bug fixes
+ - regression preventing glass effect from using the widget's color
+ - missing last key in keyboard widget
+ - editor: select parent widget after deleting a widget
+ - regression letting user to scroll the main document
+ - editor: wrap/cut/delete multiple widget not working properly
+- widgets
+ - text: set line-height relative to font size
+ - meter: added `gradient` feature
+
+## 0.26.1
+
+- bug fixes
+ - ios: text input fields not editable
+- editor
+ - mac: use `command` instead of `ctrl` for multi widget selection
+
+## 0.26.0
+
+- bug fixes
+ - editor: when selecting another widget while editing a property, changes where applied to the newly selected widget
+ - widgets: css: @media queries parsing
+ - prevent some errors when synchronizing clients
+ - use command key instead of ctrl for zooming on mac
+ - clone: memory leak / freeze
+- default client
+ - mac: disabled unsupported pinch zoom
+- themes
+ - alt-buttons: modal font-weight & color fix; push button active state colored border
+ - added "responsive-fonts" theme
+- editor
+ - allow multi widget resizing/dragging
+ - tweaked ctrl+click/right-click selection behaviors
+ - **new** "Wrap in" context menu
+
+
+## 0.25.0
+
+- bug fixes
+ - launcher: parse array options correctly when an item contains spaces,
+ - launcher: the terminal now grows and scrolls to bottom automatically
+ - editor: broken children reordering; children
+ list display bug with long `id`s
+- main
+ - add `--fullscreen` switch (default gui only, bypasses the sidepanel fullscreen button)
+ - added/updated some themes: `orange`, `light`, `dark`, `alt-buttons` (the latter can be combined with other themes)
+- widgets
+ - knob: big knobs design tweaks
+ - **new** `default` property that sets a widgets initial/doubleTap/spring value. The `value` property does no longer serve this purpose.
+ - **new** `bypass` property that disable osc messages (except when requested via `/GET` and `/EDIT/GET`)
+ - panel: **removed** `noSync` property (backward compatible fallback to `bypass`)
+ - property inheritance: `@{widget_id.value}`, `@{widget_id}` and `@{widget_id._value}` now all refer to the widget's current value (the latter being kept for backward compatibility); If a property update triggers an osc message, it will now be sent after the other dynamic properties changes are resolved (such as osc `address`, `target`, etc)
+ - text: added `align` and `wrap` properties
+ - input: added `align` property
+ - sliders/xy: `doubleTap` can be an osc address to send a special message instead of resetting the widget's value
+- editor
+ - allow selecting multiple widgets (`ctrl + click`) if they share the same parent. Context-menu and sidepanel editing actions apply to all selected widgets
+
+## 0.24.3
+
+- bug fixes
+ - property maths: variables names declared in a formula were replaced by their associated value if found in the formula's result
+ - missing console logs on windows
+- ui
+ - add iOS fullscreen support via add-to-home feature
+- editor
+ - ask for confirmation when closing or refreshing the page if the editor has been enabled at least once
+ - prevent default widget interaction when selecting a widget for edition
+- widgets
+ - knob: small design tweaks
+- misc
+ - remove proprietary ffmepg codec from package
+
+## 0.24.2
+
+- bug fixes
+ - macOs app menu & shortcuts
+
+## 0.24.1
+
+- bug fixes
+ - server/client communication errors
+ - prevent error windows from spawning
+- main
+ - added some menu items on macOs (including "Quit" !)
+
+## 0.24.0
+
+:warning: **BREAKING CHANGES** :warning:
+
+Read the changelog carefully, old sessions files are likely to need some adjustements to work as they used to. Plots and input widgets had their `widgetId` option removed because it was redundant with the generic `linkId` property.
+
+- bug fixes
+ - regression preventing dropdown to display no option selected
+ - crossfaders display issue on iOS
+ - restored compatibility options for server-client communications
+ - xy: `doubleTap` option
+ - range: `spring` option
+ - plot: crash when drawing only one point
+ - widget css: fixed @media queries @keyframes parsings
+- main
+ - theme files changes are automatically applied
+ - server-client communication system rewritten -> HUGE latency reduction and stability improvement especially under stress conditions
+ - engine update (electron@1.8.2)
+- widgets
+ - **new** svg plot widget
+ - switch: wrap non-array `values` property in an array
+ - dropdown: wrap non-array `values` property in an array; always add a default empty value
+ - property inheritance: added shorthand default to `_value` when no property is specified (`@{widgetId}`); some properties can now be dynamically changed without recreating the widget entirely
+ - property maths: added support for math expressions everywhere via `#{}`
+ - input: add glass effect when `editable` is `false`
+ - `linkId` can now be set as an array of linkIds
+ - plot: added `dots` options; **removed** `points` options (use `value` and property inheritance instead)
+ - eq: **removed** `filters` options (use `value` and property inheritance instead)
+ - plot/meter/led/rgbled/text: **removed** `widgetId` option
+ - input: **removed** `widgetId` option
+ - math: **deprecated** `formula` widget
+
+## 0.23.1
+
+- bug fixes
+ - regression breaking modal's position in scrolled tab containers
+ - widget with a `touchAddress` set now send their touch-off message when removed or recreated while being interacted with
+ - broken windows builds (long path issue)
+
+## 0.23.0
+
+- bug fixes
+ - plots now send their value to other widget for synchronization as expected
+ - text widgets now apply their target widget's precision
+ - property inheritance accepts targetting a parent widget by its id
+ - multiple icons not displayed correctly
+ - broken `--blank` option
+- main
+ - added `--disable-gpu` option for disabling hardware acceleration (fixes rendering glitches and reduces input lag on some systems)
+- widgets
+ - inputs: **new** `keys` widget, for keyboard bindings
+ - property inheritance: new special property name `_value` (retrieve the widget's value, and update when it changes)
+ - switch: added `showValues` to display both values and labels in the buttons; array values can now be selected via osc
+ - range: both handles can be moved by holding `shift` while dragging
+ - rgb: **removed** `touchAddress` option
+ - labels/texts: multiple white spaces are no longer merged
+ - plot: can receive stringified arrays of coordinates or stringified objects for merging coordinates sets; added `bars` option for drawing barcharts;
+ - widgets' `precision` option allows setting a specific data type for numbers (sliders can send doubles !)
+- misc
+ - event system rewritten
+ - js build size reduced
+
+## 0.22.0
+
+- bug fixes
+ - sessions opened from command line with relative paths are now added to the history with their absolute path
+ - sending an empty message to a `text` widget resets it to its initial value and without ignoring its `value` property
+ - sending no value to a widget with `preArgs` is now possible : all the arguments found in incomming osc messages are now taken into account to match the widgets in the session
+ - regression breaking state quicksave from sidepanel
+- engine
+ - downgraded to the latest *stable* electron release
+- main
+ - added `zeroconf` / `bonjour` publishing for the app's http and osc input ports
+ - added `--instance-name` option to differenciate mulitple instances in zeroconf networks
+- widgets
+ - sliders/pads: holding `Ctrl` now enables high precision dragging with the mouse and bypasses the `snap` option
+ - inputs: renamed `input`'s property `horizontal` to `vertical` to match how the widget actually displays
+ - sliders: **new** `range` widget
+ - plots: **new** `image` widget
+- remote control
+ - **removed** deprecated `/EXEC`
+ - renamed `/EDIT_SOFT` to `/EDIT/MERGE`
+ - added `/EDIT/GET` (get a widget's data)
+ - added `/GET` (get a widget's value)
+ - added `/SET` (set a widget's value as if it was interacted with from the interface)
+
+
+## 0.21.3
+
+- bug fixes
+ - session/state: regression (0.21.2) breaking save-to-file function
+- ui
+ - FontAwesome 5 (icon font) !
+
+## 0.21.2
+
+- bug fixes
+ - cli: broken long flag `--no-gui`
+ - headless: when running with `node`, errors don't stop the server; when running with `electron` (default), errors are logged in the console instead of being showed in a dialog window
+ - switcher widgets regression (broken)
+- midi
+ - float values are now allowed and automatically rounded
+- misc
+ - some code refactoring
+
+## 0.21.1
+
+- bug fixes
+ - visualizer: fix memory leak when editing; fix ignored `smooth` option
+ - plots: regression preventing widgets with no `target` option from receiving messages sent by other clients
+
+## 0.21.0
+
+- main
+ - renamed `--sync` option to `--send` (deprecation, backward-compatible)
+- widgets
+ - sliders/pads: when receiving feedback while touched, the widget waits to be released before updating to the latest received value.
+ - input: the widget's value is no longer validated when leaving focus by clicking somewhere else or hitting the `Tab` key (it must be submitted by hitting the `Enter` key); when submitting a value to another widget, the feedback from this widget doesn't trigger a second osc message anymore; non-editable inputs can't steal focus anymore
+ - added support for `null` value in `target` option to disable osc sending
+- misc
+ - property fields are now parsed using [JSON5](https://github.com/json5/json5), a more flexible notation. Session files are still written in standard JSON format, this is just a way to avoid typing mistakes when using the editor.
+ - remote editing also accepts JSON5 notation
+
+## 0.20.3
+
+- bug fixes
+ - allow loading `.json` session files from the launcher
+- launcher
+ - new log/error console (shows once the app is started)
+
+## 0.20.2
+
+- bug fixes
+ - pads: regression breaking the built-in input
+ - multifader: inverted order in horizontal mode
+- widgets
+ - plots: add `smooth` option (thanks to [cardinal-spline-js](https://github.com/epistemex/cardinal-spline-js)); draw thicker lines
+ - pads: draw thicker inner circle
+ - mobile
+ - prevent devices from entering sleep mode
+
+
+## 0.20.1
+
+- bug fixes
+ - error popups not created
+- misc
+ - rename sessions files to `.json`
+
+## 0.20.0
+
+- **breaking changes**
+ - sessions are now saved as `.json`files by default (the deprecated `.js` extension can still be opened).
+ - states are now saved as `.state` files (the old `.preset` files can be renamed without any problem)
+- bug fixes
+ - touch release event is properly dispatched in traversing containers (ie keyboards and matrices) (#94)
+- widgets
+ - css `border-radius` support enhanced
+ - css `color` applies locally while `--color-text` applies to children too
+ - plot/text: new lines are properly printed
+- packaging
+ - added `arm64` binaries
+- iOS
+ - compatibility improved (version 9.3 and above)
+- engine
+ - electron 1.8.0 (chrome 59)
+
+## 0.19.6
+
+- hot fix
+ - broken formula widget
+
+## 0.19.5
- launcher
- - config save/load
- - allow starting/stopping server without rebooting
- - syntax check on `--midi` option
-
-- server
- - renamed `--url-options` to `--client-options` and make them apply even in remote browsers (can be overridden with url queries)
- - removed `--blank`, `--gui-only`, `--examples`
- - hide `--disable-gpu` (cli-only)
- - added cli-only `--cache-dir` and `--config-file`
- - added `--authentication` option
- - added `--use-ssl` option
-
-
+ - fixed typo in new version message
- misc
- - canvas: better visibility checks to avoid unnecessary draw calls
- - visualizer: perf improvement (avoid data processing when not visible), all visualizers hook on the same loop to avoid concurrent timeouts
- - button: in 'tap' mode (formerly push with `noRelease`), never send/sync `off` value, automatically reset to `off` when receiving `on`
- - more detached DOM for lighter nested canvas widgets (ie multixy)
- - unified (kind of) dom html structure for widgets, known css tricks will require adjustments.
- - cache and config files are now stored in a folder named `open-stage-control` (located in the system's default location for config file). The `.open-stage-control` is no longer used.
- - added support for icons rotate/flip transform suffixes (example: `^cog.spin`, `^play.rotate-horizontal`)
+ - client-side javascript's size reduced, now for real !!
+
+## 0.19.4
+
+- bug fixes
+ - buttons: changing `css` background works as expected
+ - widgets: changing `css` (text) color works as expected
+ - fader: fix hidden input in horizontal + compact mode
+ - pads: pips scaling bug
+- widgets
+ - `css` font-sizes apply correctly to all children (better use percents)
+ - formula: add `unit` option
+- misc
+ - client-side javascript's size reduced !
+
+## 0.19.3
+
+- bug fixes
+ - midi: noteOff messages not being sent;
+
+## 0.19.2
+
+- bug fixes
+ - lobby: regression breaking the lobby for touch devices
+
+
+## 0.19.1
+
+- bug fixes
+ - launcher: load correct font
+ - midi: python3 compatibility fix
+
+## 0.19.0
+
+- ui
+ - general design improved, heavily inspired by [budislavTVP](http://budislavtvp.deviantart.com/) works; color schemes are much simpler and easier to customize (try `--theme light` !); Font changed to Roboto; Texts are slightly thicker and uppercased in most cases for better readability (use css `text-transform:none` to disable the latter).
+- widgets
+ - fader: added `dashed` option; added `input` option;
+ - meter: added `alignRight` option; added `dashed` option;
+ - knob: removed `compact` option; added `dashed` option; added `input` option;
+ - xy/rgb: added `input` option; added `pips` option:
+ - panel/strip: removed inner widgets dark borders; added `border` option;
+ - buttons: new `dropdown` widget;
+ - toggle: added `led` option to choose between the old appearance and the new one; added `douleTap` option
+ - new `input` widget
+ - containers: new `clone` widgets
+ - added support for `"self"` value in `target` option (sends the message back to the clients, useful for sending `/EDIT` messages...)
+- editor
+ - option fields are now multiline (`ctrl + enter` to add a new line), and pretty printed
+ - added checkboxes for boolean options
+ - added `Edit Parent` context menu option
+- midi
+ - replaced `pyo` dependency with [`pyrtmidi`](https://github.com/patrickkidd/pyrtmidi): lighter, dedicated to midi only, and handling virtual ports (no `mididings` dependency anymore)
+ - pitchbend value is now a single integer between 0 and 16383
+- bug fixes
+ - fixed VisualFormat errors in iOS
+- main
+ - added `--url-options` command line option
+ - fixed `--disable-vsync` not working when starting from the launcher
+- documentation
+ - new style, better organization
+
+## 0.18.0
+
+:warning: **Breaking changes** :warning:
+
+Sessions saved with this version will not be readable with older versions (old sessions a can be opened but wont be backward-compatible once saved).
+
+
+- widgets
+ - add property inheritance between widgets with statements `@{parent.propertyName}`, `@{this.propertyName}` and `@{widgetID.propertyName}`
+ - containers: added `variables` options (arbitrary varibles to pass to children)
+ - panel: added full osc support (for sending/receiving tab changes)
+ - modal: changed style to fit popups' appearance; added `popupWidth` and `popupHeight` options; :warning: removed `tabs` option; added full osc support; added `doubleTap` option (makes it openable with double taps instead of single taps)
+ - strip: refactored widget using `panel` as base; added `stretch` and `spacing` option; now it's really cool
+ - sliders: added `doubleTap` option (double taps reset the widget to its initial value when enabled)
+ - knob/fader: renamed `noPip` option to `pips` (inverted behaviour; backward compatible)
+ - encoder: mousewheel support
+ - knob: compact design remake
+- bug fixes
+ - sliders: fixed `spring` when `value` equals `0`
+ - modal: fixed osc values (was `True`/`False` instead of `1`/`0`)
+- session
+ - the root panel is now saved as a special `panel` widget (which means it has savable options)
+- custom module
+ - add access to the app's `settings` object
+
+## 0.17.8
+
+- bug fixes
+ - regression breaking widgets' `split` option (0.17.6)
+ - regression breaking the state export button (0.17.7)
+ - regression breaking editor's `cut` action (0.17.7)
+- osc
+ - javascript object are now stringifyied before beeing sent
+- widgets
+ - maths: add `condition` option to [`formula`](http://osc.ammd.net/user-guide/widgets-specifics/maths/#formula)
+ - sliders/pads: add `touchAddress` option
+ - fader: add `meterAddress`
+
+## 0.17.7
+
+- engine
+ - socket.io v2
+- client
+ - scripts are now transpiled to ES5 javascript code, thus increasing compatibility with some browser (iOS9's chrome, firefox, etc)
+ - scripts size reduced from 2.4M to 1M thanks to minification
+- bug fixes
+ - elements duplications in sidepanel when loading another session
+
+## 0.17.6
+
+- main
+ - osc sending speed optimization: all static infos (target, address, preArgs) are cached server side to reduce network overhead
+- widgets
+ - **new** encoder widget
+- mobile
+ - `hdpi` support (add `?hdpi=1` to the server's url)
+- bug fixes
+ - launcher: link to the app's address is now clickable
+ - sidepanel: layout glitches with iOS
+ - midi: `program` now works with the correct number of arguments
+- misc
+ - some little style fixes
+
+## 0.17.5
+
+- bug fixes
+ - `multixy` snap mode position offset
+- widgets
+ - **new** [`rgbled`](http://osc.ammd.net/user-guide/widgets-specifics/plots/#rgbled)
+
+
+## 0.17.4
+
+- bug fixes
+ - broken `--blank` option fixed (false-positive detection of concurrency with `--read-only`)
+ - remove debug message in console when closing windows
+
+## 0.17.3
+
+Hot fix for `--read-only` switch.
+Dependencies updates.
+
+## 0.17.2 (deleted)
+
+- bug fixes
+ - `editor`: correctly remove editing state when disabling the editor right after going to another tab
+- main
+ - **new** `--read-only` switch for disabling the editor and preventing change to the session history
+- widgets
+ - `panel/modal`: add `layout` option ([Visual Format Language](https://github.com/IjzerenHein/autolayout.js))
+ - `css` option now interprets `&` as a selector for the widget's element itself (useful for targetting pseudo-elements such as `&:after`)
+ - `plots`: add `widgetId` option to `text`, `meter` and `led`
+
+## 0.17.1
+
+- bug fixes
+ - `midi`: missing dependency
+ - `headless`: terminate `midi` correctly when process exits
+
+## 0.17.0
+
+- main
+ - **new** `midi` support ([documentation](http://osc.ammd.net/user-guide/midi/))
+- ui
+ - **new** `/TABS id1 id2 etc` osc address to remotely enable tabs
+ - remote editing through `/EXEC` command is now deprecated, use `/EDIT` and `/EDIT_SOFT` instead
+- bug fixes
+ - `push` widgets (and `keyboards`) not correctly synchronizing each other (with shared widget ids or between different clients)
+- widgets
+ - `css` option now supports css selectors, scoped to the widgets element
+ - `matrices` don't pass `css` option to their children anymore; subwidgets' indexes are now append to `preArgs` instead of being prepended.
+- misc
+ - app's title uppercased
+ - tabs titles' letter-spacing increased
+
+## 0.16.5
+
+- bug fixes
+ - `modal`: correct z-stacking with absolutely positionned widgets; proper rendering for inner widgets; disable parent tab's scrolling when opened; fix various style glitches;
+ - `strip`: resize glitch when containing compact horizontal sliders
+
+## 0.16.4
+
+- bug fixes
+ - tab links broken after activating traversing gestures
+ - `push` release is now handled per touch point (releasing one finger used to release all pressed buttons)
+- misc
+ - destroy default client window when the app process exits
+
+## 0.16.3
+
+- bug fixes
+ - crash when remote-editing widgets in disabled tabs
+ - desktop client touch screen support restored
+
+## 0.16.1
+
+- bug fixes
+ - string arguments overquoted in sent osc messages
+- custom module
+ - added support for initialization script
+ - unified expected formatting in sendOsc and receiveOsc methods
+- ui
+ - reduced scrollbars width
+
+
+## 0.16.0
+
+- new logo :)
+- bug fixes
+ - editor: new widgets are correctly positionned in scrolled areas
+- widgets
+ - **new** `formula` widget, a [mathjs](http://mathjs.org/) expression evaluator that can process other widgets' values
+ - `multixy` supports named points; fixed drag-dead zone in the border
+
+## 0.15.1
+
+- widgets
+ - multifader: add `snap` option
+- misc
+ - minor css-related performance fix
+ - some titles in the editor had the first-letter uppercased
+
+## 0.15.0
+
+- style
+ - improved coherence, no more pure greys, better differenciation between clickable and static elements. Went back from "pure flat" to "flatty" to help with that (ie a few shadows to make layout more self-explanatory). Some widgets were slightly repimped.
+- bug fixes
+ - `push`: options separators not hidden in the editor
+ - error when touching a non-interractive object while touching a widget with the other fingers
+- widgets
+ - `multixy` now behaves smarter: points are assigned to the closest touch points
+- main
+ - modifying a session file will automatically update clients that have loaded the same file
+
+## 0.14.0
+
+- bug fixes
+ - some layout regressions in chrome v49
+- main
+ - osc input port (`-o`) is now set to the http port (`-p`) by default
+- widgets
+ - **new** `crossfader` and `switcher` widgets that store and recall the state of other widgets
+ - `matrices` now accept multiple color values (that will be sequencially passed to their children)
+ - `switches` accept icons in their values' labels
+- engine
+ - electron v1.4.13
+- misc
+ - all widgets classes were rewritten using ES6 class expressions
+ - firefox's minimal version is now 46 because of a ES6 related bug (*note that it's still not officially supported*)
+
+## 0.13.1
+
+- bug fixes
+ - regression preventing received osc messages to be properly routed to widgets with `preArgs`
+- debug
+ - errors occuring in the browser process are now piped to the main process' console with the source file name and the line number.
+
+## 0.13.0
+
+- main
+ - **new** `-b / --blank` option to start editing a new session directly
+ - **new** `--disable-vsync` option that improves performance (reduce input lag) on some systems
+ - some inconsistent parameter combinations are now prevented
+ - firefox compatibility improved (yet not perfect)
+ - launcher window is no longer of the `splash` type, as it was difficult to close with some window managers
+- widgets
+ - **new** `modal` container : a button that turns into a fullscreen panel when clicked.
+ - sliders/xy: add `spring` option that makes that widget jump back to its initial value when released
+ - fader: horizontal mode default height fixed
+ - keyboard: black keys pressed state is more noticeable
+ - matrices: added `start` option to choose the first subwidget's `id`
+ - labels' height reduced
+- editor
+ - **new** snap-to-grid feature
+ - widgets' min-width set to grid's width
+- misc
+ - building with node 4 is fixed
+
+## 0.12.0
+
+- bug fixes
+ - error popups raised by the main process can be closed
+ - sliders don't send same value over network when the value change is below the widget's precision
+- widgets
+ - **new** (piano) keyboard widget
+ - matrices: fixed `preArgs` option; added `split` option (default to `false`), *this changes the default osc messages formatting for these widgets*
+ - icons in labels are inserted using the `^` prefix
+ - text: icons support in value
+- tabs
+ - icons support in label
+- misc
+ - fontawesome update (4.7.0)
+
+## 0.11.6
+
+- widgets
+ - meter: rewritten using fader as base
+ - strip: center widget horizontally if width is set
+ - fader/knob: compact gauge's alpha varies slightly as the distance to the origin grows
+- misc
+ - one example session added
+
+## 0.11.5
+
+- bug fixes
+ - [regression] broken horizontal fader and pads
+
+## 0.11.4
+
+- bug fixes
+ - fader: default `height/width` not set when `top/left` is `auto`
+
+## 0.11.3
+
+- widgets
+ - knob: gesture's precision is proportionnal to the widget's size
+ - fader: `height:auto` (or `width` for `horizontal` mode) makes the fader expand automatically
+- ui
+ - cleaner forms in editor and launcher
+
+## 0.11.2
+
+- touch
+ - using multiple fingers to control a widget increases the precision (reduces the gesture's computed speed)
+- widgets
+ - fader: display pips in `compact` mode when `range` has multiple breakpoints
+ - pads: display pips when `range` has multiple breakpoints
+ - multixy: style update (stroked dots, bold number font); `snap` option added; points are automatically assigned to touches as they come; fix `logScale(X|Y)` options
+
+## 0.11.1
+
+- bug fixes
+ - meters in faders were not always properly positionned
+- widgets
+ - knob: gauge's width is proportionnal to the knob's size in `compact` mode; widget's content centering fixed; `compact` style update;
+
+## 0.11.0
+
+- bug fixes
+ - `-g / --no-gui` not preventing the launcher from spawning
+ - `-e / --examples` not correctly parsed
+- main
+ - launcher displays options descriptions for booleans too
+- widgets
+ - added generic `value` option for setting a widget's initial value (does not sync linked widgets nor send osc message)
+ - **text** widget's `defaultText` replaced with `value`
+ - multixy dots are drawn with filled background instead of stroke
+
+## 0.10.4
+
+- main
+ - launcher displays new version if available
+ - launcher stays opened after starting the server and/or the gui except if `--gui-only` is set
+
+## 0.10.3
+
+- main
+ - launcher: resetting boolean option properly sets it to false
+ - launcher: display package's version
+ - guis: adjust window's background to match the app's
+- ui
+ - launcher and session lobby appear more smoothly
+
+## 0.10.2
+
+- main
+ - when executing the app with no CLI argument, a launcher window is created allowing user to adjust settings before starting the server (config is saved in the user's directory)
+
+## 0.10.1
+
+- bug fixes
+ - rgb: minor visual glitch on extreme value, drawing performance improved
+ - main: examples sessions path are properly stored as absolute paths (fixes `-e / --examples` mode)
+- ui
+ - lobby: session file names are diplayed first, then shortened paths
+- misc
+ - widgets `precision` doesn't affect their visual interraction accuracy since values are now rounded only before osc sending
+
+## 0.10.0-alpha-2
+
+- bug fixes
+ - [windows] fix long path issue (#35) returns
+
+## 0.10.0-alpha
+
+- main
+ - **new** `-c / --custom-module` switch allowing user to define custom osc filtering fonctions
+ - `address` is now used everywhere instead of `path` to describe osc address to avoid confusion. Session files using the old `path` option for widgets are still supported.
+ - **osc bundles** are properly received (subsequent messages are processed separately with a delay if the timetag is set)
+ - widgets can be edited via osc messages using the special `/EXEC` address
+
+## 0.9.2
+
+- bug fixes
+ - [windows] fix long path issue (#35)
+
+## 0.9.1
+
+- widgets
+ - multiXy: added `pointSize` option; made default size bigger; points don't overflow the pad anymore
+
+## 0.9.0
+
+- widgets
+ - **new** `multixy` pad
+- misc
+ - rewritten `pads` with prototype inheritance and using faders under the hood to handle events (this adds *fader*'s `range` capabilities to *xy*)
+- engine
+ - electron 1.4.4
+
+## 0.8.3
+
+- bug fixes
+ - scrollbar arrows not showing
+ - `fader` pips position when `noPip` is `true`
+- widgets
+ - matrices : all `fader`, `push` and `toggle` options are now available to `multifader`, `multipush` and `multitoggle`
+
+## 0.8.2
+
+- bug
+ - avoid crash when sending osc with incorrect typetags
+ - fixed fallback typetag ('s')
+ - fixed broken `null` value for `push` & `toggle`
+
+## 0.8.1
+
+- bug
+ - broken `fader` with `horizontal` set to `true` and `compact` set to `false`
+- widgets
+ - remove margins from `plots`
+ - added `origin` options to `plots`
+
+## 0.8.0
+
+- main
+ - the headless server/clients model is now the only one beeing used : the GUI mode is nothing more than an embedded chromium (electron) client
+ - when a new client opens a session on the server, it is synchronized with the other clients
+ - **new switches** : `--no-gui`, `--gui-only`, `--port`, `--osc-port`, `--version` (see docs)
+- ui
+ - explicit loadings
+- widgets
+ - make push's backlight only respond to external osc messages (not to synchronization messages from other widgets or clients)
+ - removed special `false` value case for push/toggles (which used to disable osc sending)
+ - add `norelease` option to `push` for disabling osc messages when releasing the button
+ - `true` and `false` values are now properly sent as boolean
+ - **args type definition** in `preArgs` option now uses the osc typetags only ('f', 'i', 'T', 'F', etc)
+- engine
+ - electron 1.4.3
+- misc
+ - rewritten matrices with prototypes inheritance
+
+## 0.7.0
+
+- bug fixes
+ - osc messages with 0-item and 1-item args are correctly unpacked and routed
+ - buttons can handle messages with 0 arg if one of their state has the value "null"
+- ui
+ - nice and bigger scrollbar
+ - right-click no longer starts a dragging gesture
+- editor
+ - copy/paste data auto-incrementation fix
+- widgets
+ - new equalizer plotter
+ - push/toggles made more obvious
+ - knob's new options: angle and origin
+ - fader's new option: origin
+- engine
+ - electron 1.4.1 (chrome 53, node 6.5.0)
+- misc
+ - added `--examples` switch for showing the availabe example sessions instead of the history
+ - rewritten sliders and plots using canvas and prototypes inheritance
+ - reorganized package using the two-package.json structure: js and css assets are now create at build time, and only necessary dependencies are shipped with the app
+
+## 0.6.3
+
+- bug fixes
+ - regression (since 498ba4a06adf63d76fe7181691299c1cc55e8240) breaking the editor on touch devices
+
+## 0.6.2
+
+- cool stuff
+ - armv7l prebuilt binaries ! (raspberry 2, etc)
+- engine
+ - electron 1.3.5
+
+## 0.6.1
+
+- bug fixes
+ - editor: widgets/tabs can be accessed through their parent's children list (#27)
+- engine
+ - electron 1.3.1
+
+## 0.6.0
+
+- bug fixes
+ - pasted widget properly use the pointer's position
+ - traversing gestures are effective from the first touch, not after the first move
+ - out-of-range values are properly clipped by faders/knob
+- ui
+ - Faders & Meters design improved
+ - The main font (droid sans) is now loaded...
+ - Knob's sizing got smarter
+ - Widgets don't blink not jump when they appear for the first time or when they resize
+- misc
+ - Fader's `align` option replaced with boolean option `alignRight`
+ - Widget's `label` now accepts special directive `icon: fontawesome-class` to display icons from [FontAwesome](http://fontawesome.io/icons/)
+ - Text widget `defaultText` option added
+- engine
+ - electron 1.2.2
+
+## 0.5.4
+
+- bug fixes
+ - [desktop] menu bar auto-hide
+ - [headless] multitouch support
+- ui
+ - [mobile] better faders pips rendering
+ - fixed horizontal fader knob centering
+ - [mobile] better numeric inputs rendering (not blurred anymore)
+- engine
+ - [desktop] electron 1.2.0 (chrome 51)
+
+## 0.5.3
+
+- bug fixes
+ - [again] touch fake-right-click only fires on long touch, not after every tap
+ - traversing gestures bug with touch
+- misc
+ - better mouse/touch drag events handlers
+- engine
+ - electron 1.1.1
+
+## 0.5.2
+
+- bug fixes
+ - touch fake-right-click only fires on long touch, not after every tap
+
+## 0.5.1
+
+- bug fixes
+ - feedback is now handled precisely by widets (ie not rounded according to the `precision` option, see issue #21)
+- engine
+ - electron 1.1.0
+
+## 0.5.0
+
+- bug fixes
+ - touch/mouse events are both handled simultaneously, module rewritten for better performances (see issue #18)
+- engine
+ - electron 1.0.2
+
+
+## 0.4.8
+
+- bug fixes
+ - regression preventing newly created widgets from using the pointer's coordinates as position
+ - add 0.4.7's fix to headless mode
+
+## 0.4.7
+
+- bug fixes
+ - regression causing widgets with `preArgs` to not receive osc correctly
+
+## 0.4.6
+
+- engine
+ - electron 0.37.6
+ - node-osc 2.0.3
+- features
+ - `compact` option added to knob and fader
+ - if an osc input port is specified, osc messages will be sent from it. This enhances compatibility with apps that send their feedback messages directly to the sender.
+- misc
+ - mouse/touch dragging handler rewritten, now using event delegation and direct handler calls instead of DOM event bubbling whenever it's possible
+
+## 0.4.5
+
+- engine
+ - electron 0.37.3
+- ui
+ - new logo
+ - better lobby design
+- misc
+ - renamed sliders/pads' `absolute` property to `snap`
+
+## 0.4.4
+
+- bug fixes
+ - [headless] scripts are no longer bundled on the fly, it didn't work on some systems
+ - touching widgets without changing their value doesn't make them send the same value again anymore
+- ui
+ - slightly tightened layout
+- features
+ - `noPip` option added to knob and fader
+ - `preArgs` accepts object if the arg's type needs to be specified
+ - knob supports breakpoints scale, same as fader's
+ - fader and knob pip scales now support custom label
+ - a push/toggle's value can be set to `null` if only the path needs to be sent in the osc messages
+ - push buttons do not update their own leds and return their value (for state save and widgets sync) based on their last changed property (led state or touch on/off)
+- misc
+ - refining the fader's pip scale that looked choppy on mobile devices. All pips are now evenly spaced, not relatively to the fader's height.
+ - [desktop mode] saved sessions are added to history
+
+## 0.4.3
+
+- features
+ - text widget can be `vertical`
+ - panel widget `scroll` option
+- bug fixes
+ - smart pasting now works when the clipboard contains several widgets whose unsuffixed ids are the identical
+ - osc received array that contain only one item are correctly unpacked (fixes cross-app sync for widgets that don't accept array, broken since the introduction of `preArgs`)
+ - memory leak when loading a new session (cached tabs were not properly purged)
+- misc
+ - push widget doesn't fire its 'on' value if pressed while stuck in 'on' position
+ - panel widgets don't have inner margins anymore
+ - fader widget optimization : the pip scale is generated from a single gradient plus some elements for each breakpoint (instead of one element per percent), thus reducing the number of elements to draw.
+
+## 0.4.2
+
+- features
+ - new widget : text (just displays received values)
+- bug fixes
+ - widget linking doesn't cause multiple unwanted osc sends anymore
+
+## 0.4.1
+
+- features
+ - `preArgs` option for widgets (prepends constants to osc messages args)
+
+## 0.4.0
+
+- engine
+ - electron 0.37.2 (chrome 49)
+- ui
+ - new flat ui
+ - tab system rewritten : inactive tabs are detached from the DOM tree, thus improving performances while slowing down tab switching.
+ - widget categories in editor's context menu
+- features
+ - logarithmic scaling (log10) support added to knob, fader & xy
+ - mousewheel support added to knob and fader (ctrlKey for fine control)
+ - new widgets : plot, visualizer & meter. Fader built-in feedback meter option
+ - traversing gestures switch in sidepanel
+ - custom color property for all widgets with inheritance (containers)
+ - editor pasting function now smartly increments widget's id and path while keeping label if different from default
+ - true theming support
+- misc
+ - sync/link event handling improved
+ - stylesheets cannot be recompiled on the fly anymore (`--c` switch removed)
+ - **new state save file format, no backward compatibility**
+
+## 0.3.1
+
+- electron updated to 0.36.11
+- editor paste menu lets you choose between `Same ID` (cloned widgets) or `New ID` (resets id, label, linkId, and path)
+- minor style updates
+
+## 0.3.0
+
+- 3 new widgets
+ - multifader
+ - multitoggle
+ - multipush
+
+
+## 0.2.1
+
+- style update (push/toggle widgets, widgets' dragging handle)
+- widget dragging/resizing doesn't get broken when editing the root
+- sidepanel toggle doesn't select root for edition anymore
+
+## 0.2.0
+
+- editor code rewriting
+ - right-click context-menu quick editing (widget copy/cut/paste, add & delete tabs/widgets)
diff --git a/CHANGELOG.v0.md b/CHANGELOG.v0.md
deleted file mode 100644
index 32d3b1a5..00000000
--- a/CHANGELOG.v0.md
+++ /dev/null
@@ -1,1843 +0,0 @@
-# Changelog (v0)
-
-## 0.49.12
-
-
-**This is the last release of the v0 branch**
-
-- bug fixes
- - dropdown: value update issue on iOS 13
-- widgets
- - html: allow `class`, `title` and `style` attributes
-
-## 0.49.11
-
-- bug fixes
- - regression (0.49.10) breaking icon with short names (minimum valid length set to 2 characters)
- - html widget: content not initialized properly
-
-## 0.49.10
-
-- bug fixes
- - svg files not loading
- - canvas glitches when hardware acceleration is disabled (--disable-gpu) (built-in gui only)
-
-- misc
- - prevent `--disable-gpu` from bypassing the launcher window
- - prevent converting `"^icon-name"` to an icon (in text widgets and labels) when `icon-name` is too short to be a valid icon name (minimum 4 characters)
-
-## 0.49.9
-
-- bug fixes
- - downgrade electron engine to fix regression (v0.49.8) on some systems
-
-## 0.49.8
-
-- bug fixes
- - rgb: range not applied when receiving value
-
-## 0.49.7
-
-- bug fixes
- - sync issues when widgets have a single target set
-
-## 0.49.6
-
-- bug fixes
- - windows users launching the app from a terminal now need to add a double dash (--) before their options
- - launcher: disabled unstable `Relaunch` action
-
-## 0.49.5
-
-- bug fixes
- - launcher: file/folder browsing not working
-
-## 0.49.4
-
-- bug fixes
- - image: fixed absolute paths
- - image: reset to 'default' instead of 'value' when receiving an empty value
- - launcher: use current midi config for "List devices" action
- - fader built-in meter: use fader's target (allows midi sync)
-
-## 0.49.3
-
-- bug fixes
- - windows: process not terminated properly when exiting the app
-
-## 0.49.2
-
- - bug fixes
- - plots: prevent `plot/*` widgets from sending messages when using the sidepanel's "send all" function
- - editor: assign correct `address` when emptying the field
- - sidepanel: shadow color issue
-- misc
- - alt-buttons & flat theme tweaks
-
-## 0.49.1
-
-- bug fixes
- - modal: error when `label` depends on a child's property
- - custom module: `send()` function casting numbers to integers instead of floats by default
- - menu: push mode not working on touch devices
-
-## 0.49.0
-
-**Deprecation**
-MathJS syntax is now deprecated and will be removed in the future, sessions using it will be working for a few more versions but users are strongly encouraged to migrate to the javascript syntax.
-
-
-- bug fixes:
- - multiclient sync not working when `targets` is empty
- - widgets: missing `target` property for `plots/*` widgets, required for MIDI bindings
- - editor: set `label` to `auto` instead of `true` when using the toggle button
- - editor: errors when hitting `mod + a` and unselecting widgets
- - modal: correct popup title color
- - options: allow `midi:port_name` pairs in `--send` option
- - sidepanel/state: opening a state file now properly sets it as the next default save location
-- widgets:
- - **new** `menu` widget, circular alternative to the dropdown & switch widgets
- - file: allow selecting folders
- - text: optimize value update when there's no icon to draw
-- editor:
- - convert invalid quote characters automatically to avoid errors
- - tab: added `detached` property (set to false to prevent iframes from reloading when the tab opens)
-
-## 0.48.8
-
-- bug fixes
- - strip: layout issues when moving widget in a strip (min width/height still active)
- - tcp: prevent sending osc messages on udp port when the same port number is set as a tcp target
- - midi: take server default targets into account to determine widget matching
- - save dialog: prevent keys widgets from capturing keystrokes when typing the filename
-
-## 0.48.7
-
-- bug fixes
- - xy: broken `spring` property
- - macOs: add support for emulated right click via `ctrl+click`
- - midi: messages received from a midi port now only affect widgets that send to this port
-
-## 0.48.6
-
-- bug fixes
- - ios: prevent color issues with sliders
- - editor: prevent all keyboard shortcuts from triggering default browser actions
-- main
- - detect http server silent setup failure
-
-## 0.48.5
-
-- bug fixes
- - regression breaking support for utf-8 strings in received osc messages
-
-## 0.48.4
-
-- bug fixes
- - launcher: limit terminal history size to prevent slowdown/freeze
-- widgets
- - knob: text pips support
- - fader: add css variable `--gauge-width`
-
-## 0.48.3
-
-- bug fixes
- - widgets: prevent update errors when widgets are not fully initialized
- - prevent pinch-zoom on touch screen
-
-## 0.48.2
-
-- bug fixes
- - editor: checkbox position in multiline fields
- - patchbay: widget not responding to osc after being edited
-- widgets
- - script: added `httpGet` function for simple local http requests
-
-
-## 0.48.1
-
-- bug fixes
- - modal: `popupLabel` update issues
- - modal: `popupTop` not correctly interpreting percents
- - editor: scrollbar issue in editor's input fields on recent chromium
-
-## 0.48.0
-
-- bug fixes
- - midi: listing devices from context menu not working when the midi options is empty
- - package: broken build from sources on Windows
- - editor: incorrect position when moving a widget from an edge with the keyboard
- - modal: prevent touchend event from reaching the inner widgets when opening the container
- - matrix: clone matrices not properly storing their children's values
- - multipad/range: errors when dragging over when the gesture was initiated on a traversing widget (ie matrix)
-
-- widgets
- - **new** html widget
- - frames: allow loading local html files without requiring a web server to serve them
- - text: escape html tags characters (`<` & `>`)
- - input: added `asYouType` property
- - sliders/pads: added `sensitivity` property
-
-
-## 0.47.4
-
-- bug fixes
- - keys: prevent default browser actions when a combo is bound to a widget (for example print dialog with ctrl+p)
- - xy: broken `doubleTap`
- - widget: error when two sibling widgets have a non-dynamic property depending on each others and on another widget at the same time
- - cli: broken `--version` option
-
-## 0.47.3
-
-- bug fixes
- - regression causing errors with the `value` property
-
-## 0.47.2
-
-- bug fixes
- - midi: `path` option not applied to launcher's `list` contextual action
- - midi: pitchbend messages not received correctly
- - style: layout issues in recent chromium
- - encoder: `0` value in `back` property not working
- - editor: state not completely restored under some conditions
- - push: force release when the widget is removed/recreated while pressed
-
-## 0.47.1
-
-- bug fixes
- - css font faces not loading from absolute/relative paths
-- midi
- - added `path` option for setting python binary path manually
-
-## 0.47.0
-
-- bug fixes
- - launcher: spaces not properly escaped in quoted strings
-- widgets
- - sliders: `default` and `spring` properties are now dynamic
-- server
- - images urls are now resolved relatively to the session path directory by default (fallback to absolute path resolution if not found)
-- custom module
- - added `loadJSON` and `saveJSON` functions
-
-## 0.46.2
-
-- improved canvas rendering speed on chrome v69 and above
-- widgets
- - modal: `scroll` option
- - script: `get(id)` function added in `script`execution context
- - script: `getProp(id, property)` function added in `script`execution context
- - script: `id` variable added in `script`execution context (id of the widget that triggered the script)
-
-## 0.46.1
-
-- bug fixes
- - windows: midi debug strings not printed
-
-## 0.46.0
-
-- bug fixes:
- - modal: `css` not properly applied if the property was previously empty and the modal had been opened at least once
- - image: allow overriding css background-image when value is empty
-- widgets
- - switchers: new `state` widget
-- remote control
- - added `/STATE/[GET|SET|STORE|RECALL]` methods
-- midi
- - print port name in debug messages
- - added `pc_offset` option to act as if program change numbers where between 1 and 128
-
-## 0.45.7
-
-- bug fixes
- - image: `cache` option inverted
- - image: allow whitespaces in url
-- widgets
- - keyboard: `toggles` options
-
-## 0.45.6
-
-- bug fixes
- - bottom horizontal scrollbar not responding on small screens
- - remote file browser: hitting a letter to select a file based on its name was looping on the first two matches only
- - editor: preserve backslashes in enquoted strings (not in objects/arrays)
- - editor: clear the editor when selected widget is removed by an undo/redo action
-- widgets
- - `logScale` can be set to a number to use a logarithm base different from the default
- - knob: `compact` mode is back
-
-## 0.45.5
-
-- bug fixes
- - absolute file paths not resolved under windows
- - nested `@{}` calls issue ([#516](https://github.com/jean-emmanuel/open-stage-control/issues/516))
-
-## 0.45.4
-
-- bug fixes
- - handle network drops correctly (notify immediately and fix reconnection mechanism)
- - formulas breaking the property update mechanism when not resolved
- - modal: title layout issue
-
-## 0.45.3
-
-- bug fixes
- - broken client sync for widgets with `split` set
- - custom module: `receive` function not working when omitting host/port and sending only one argument
- - file browser: prevent error when files/folders cannot be read
-
-## 0.45.2
-
-- bug fixes
- - potential security issue in `JS{{}}` parser
-
-## 0.45.1
-
-- bug fixes
- - broken session local export
- - potential security issue in custom module parser
-
-## 0.45.0
-
-- bug fixes
- - regression (v0.41.4) breaking sync between clients
- - sessions not added to history when opened
- - switch: traversing mode issue
- - remote file browser reactivity issue
- - encoder: broken because `ticks` default was `auto` instead of `360`
-- main
- - state files can be saved remotely
-- widgets
- - **removed** deprecated widgets `multifader`, `multitoggle`, `multipush` and `formula`
- - new `JS{{}}` property syntax, allows writing formulas using javascript
- - errors encountered in `#{}` blocks are now printed to the client console (F12)
- - keys: renamed formula context variable `super` to `meta`
-
-## 0.44.0
-
-- bug fixes
- - ios: clone widget not displaying properly
- - keys: error when leaving the window with the cursor while holding a key-combbo pressed
- - session: disable saving when `--read-only` is set
-- main
- - sessions can be opened and saved from/to the server's filesystem directly
-- widgets
- - new `file` input widget (allows selecting a file on the the serve and sending its absolute filename)
-- midi
- - :warning: **breaking changes** :warning:
- - replaced python dependency `rtmidi` with `python-rtmidi` (provides pre-compiled binaries for all major platforms)
- - sysex messages are now discarded by default, they can be enabled by adding `sysex` to the midi options
-
-## 0.43.0
-
-- bug fixes
- - sidepanel: resize handle overflow issue
-- ui
- - sidepanel: hidden resize handle; show edge resize handle on hover
-- launcher
- - added context menu action to display midi device list without starting the server
-- widgets
- - switch: add `traversing` option (`true` by default)
- - knob: act as a relative encoder when traversing gestures are enabled and `snap` is `false`
- - keys: `key` variable in `keydown` and `keyup` is now always lowercased when referencing a single character
- - keys; expose `code` variable from the keyboard event object (https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code#Code_values)
-- custom module
- - expose shorthand functions `send` and `receives`
- - expose a client object instead of just an id in `app` event handlers to allow retrieving the client's ip address as well
- - custom modules can now be written like standard nodejs modules (using `module.exports` assignement instead of a self-invoking function pattern)
-
-## 0.42.0
-
-- widgets
- - `OSC{}` syntax accepts an optional third argument (`false`) to bypass the host widget's `preArgs`
-- editor
- - sticky header to remind selected widget's id
- - sidepanel can now be resized by dragging its edge
-
-## 0.41.7
-
-- bug fixes
- - matrix: `$` variable not starting at `start`
- - matrix: properties not reset to default when removed from `props`
-
-## 0.41.6
-
-- bug fixes
- - keys: binding conflict with editor
- - xy: drawing performance issue
-
-## 0.41.5
-
-- bug fixes
- - editor: changes applied to wrong widget when clicking on a widget while editing another widget's property
- - push: allow setting `value` property
- - allow whitespaces in path for `--custom-module`
- - error when changing a property that's inherited by a widget to define its address and at least one non-dynamic property
-- widgets
- - sliders: when `steps` is set, scrolling on the widget makes it go directly from one step to another
-
-## 0.41.4
-
-- bug fixes
- - broken `--remote-saving` option*
- - `fader`: built-in `meter` not updating its `address`, `preArgs` & `color` properties
- - incorrect osc messsages when widget's `split` and `preArgs` are set
-
-## 0.41.3
-
-- bug fixes
- - `rgb`: values were rounded even with `precision` different from `0`
-- osc
- - add support for utf8 string argments (encoded/decoded as per standard https://encoding.spec.whatwg.org/#utf-8)
-
-## 0.41.2
-
-- bug fixes
- - geometry properties not properly applied when reset to `auto`
- - `strip` layout not properly applied when changing the widget's `horizontal` property
- - `modal` glitch on chromium v70
-
-## 0.41.1
-
-- bug fixes
- - error when loading session file
- - prevent sidepanel issue when toggling quickly
-
-## 0.41.0
-
-- main
- - `--send` accepts `ip:port` and `domain:port` targets
- - removed previously deprecated `--sync` option
- - `--custom-module` now accepts extra options that can be consumed from the custom module's code
- - sessions located on the server can now be saved remotely, this becomes the default behavior for keyboard shortcut `mod + s`, local export is still available via `mod + shift + s`
- - added `--remote-saving` options to limit remote session saving feature to hosts that match the provided regular expression
-- ui
- - added notifications
-- widgets
- - `matrices`: **new** `patchbay` widget
-- bug fixes
- - layout break when hitting tab with sidepanel closed and editor enabled
- - crash when running the server in an environnement without user home folder
-
-## 0.40.5
-
-- bug fixes
- - clone: editor's selection rectangle appearing after editing the clone's target widget
- - windows: midi issue (python path not found)
-- widgets
- - input: hitting `tab` now validates the value before focusing the next input (hitting `esc` or clicking outside the widget still cancels); when focusing an input widget, its whole value is selected by default; focused/selected text color hint changes.
- - matrix: widgets inherit from the matrix' `id` and osc properties by default
-
-## 0.40.4
-
-- bug fixes
- - editor: widgets/tabs not properly reordered when changing a widget or tab's index by more than 1
- - main: `--no-gui` switch not working when running the app from a different directory
- - regression causing osc receivers (`OSC{}`) to conflict with property listeners (`@{}`)
-- widgets
- - push: add `doubleTap` option
- - osc listeners (`OSC{}`) now accept relative addresses (without leading '/'), automatically prefixed with the widget's address
-
-## 0.40.3
-
-- bug fixes
- - editor: sidepanel & dragging handles not always updated after edition
- - widgets: parsing error when a property contains more than 10 variables
-
-## 0.40.2
-
-- bug fixes
- - regression reversing tabs order
-
-## 0.40.1
-
-- bug fixes
- - editor: issue with tabs selection / edition
- - regression breaking `svg`
-
-## 0.40.0
-
-- bug fixes
- - `--read-only` option not properly working
- - `keyboard`: dynamic properties `target`, `precision` & `preArgs` not being updated dynamically
-- widgets
- - formulas: added `indexOf` function
- - **deprecated** `multifader` / `multipush` / `multitoggle` in favor of the generic `matrix` widget
- - meter: `gradient` can be set as an object to define uneven color breakpoints
-
-## 0.39.8
-
-- bug fixes
- - meter's properties not accessible (overridden with fader's properties)
-- mobile
- - button for preventing device sleep
-
-## 0.39.7
-
-- bug fixes
- - iOS 9.3 compatibility
-- widgets
- - sliders: `steps` property is now dynamic
-
-## 0.39.6
-
-- bug fixes
- - `modal` widgets not working since chrome v70
-
-## 0.39.5
-
-- bug fixes
- - sliders: `steps` option not working when `range.min` is not `0`
- - regression breaking the app for iOS 9.3
-
-## 0.39.4
-
-- widgets
- - multiXy: added `.pad-N` class to inner xy pads to help with css customization
- - xy/multiXy: added css variables `--background`, `--color-pips`, `--pips-opacity` and `--point-opacity`
- - rgb: added `alpha` option
- - xy/multiXy/rgb: design impovements;
- - sliders: new `steps` option
-
-## 0.39.3
-
-- bug fixes
- - broken tabs color property
- - broken `/TABS` command; this command doesn't makes panels send osc messages anymore
-
-## 0.39.2
-
-- bug fixes
- - regresssion: broken --theme option
- - regression: missing 'edit parent' action in editor's context menu
-
-## 0.39.1
-
-- bug fixes
- - regression breaking icons in switches' labels
-
-## 0.39.0
-
-- performance
- - rendering speed improved (session loading time reduced by about 30%)
-- widgets
- - remove support for deprecated properties `path`, `noPip` and `noSync`
- - sliders/pads: `precision` is no longer a dynamic property
-
-## 0.38.7
-
-- bug fixes
- - launcher compatibility issues with electron v3
-
-## 0.38.6
-
-- bug fixes
- - regression with dynamic property `color` in panels and matrices
-- packaging
- - node-only package can be run with electron too
-
-## 0.38.5
-
-- packaging
- - regression causing the client js bundle to be much bigger than needed
- - added node-only package built without electron for unsupported platforms (armv6, etc)
-
-## 0.38.4
-
-- bug fixes
- - `@{parent}` calls not working consistently in clone widgets
- - `slider/pads`: inteverted ranges not working
- - fix `doubleTap` for sliders with `snap` set to `true`
- - undo/redo errors
-- widgets
- - 1-level nested property inheritance calls (`@{id_@{id_2}}`) are now updated dynamically
- - support special css property `class` for adding custom classes to widgets
- - added "smart" traversing gestures mode that limits affected widgets by the type of the first touched widget
- - root: added `traversing` property
-- editor
- - major performance improvements (containers' children are reused whenever possible instead of being recreated)
- - removed widget deletion confirmation popup
- - properties categories can now be folded
- - added keyboard shortcut `F2` for editing the label quickly
- - added keyboard shortcut `mod + s` for saving the session
- - added keyboard shortcut `mod + o` for opening a session
- - use `backspace` instead of `delete` for deleting widgets on MacOs
- - added keyboard shortcut `mod + e` for enabling / disabling the editor
- - added keyboard shortcuts `mod + arrows` for selecting widgets
- - added keyboard shortcut `mod + a` for selecting a widget's siblings and itself
- - added keyboard shortcut `mod + shift + a` for cancelling selection
- - added multi widget selection with mouse when `shift` is pressed
- - right-click doesn't modify current selection when `mod` or `shift` is pressed
-- formulas
- - added `extend(x, y)` function for merging two objects
- - objects' closing brackets (`}`) don't need to be escaped with a backslash anymore
- - show property's computed value in the help popup
-
-## 0.37.4
-
-- bug fixes
- - osc receivers (`OSC{}`) not working in non-dynamic properties
-- remote control
- - added `/GET/#` to get a widget's value without using `/GET` as reply address
-
-## 0.37.3
-
-- bug fixes
- - gyroscope: osc sendings not properly triggered on value updates
-
-
-## 0.37.2
-
-- bug fixes
- - osc: regression making empty `preArgs` count as one empty string argument
-
-## 0.37.1
-
-- bug fixes
- - closing popups when clicking precisely on the "x"
-- translations
- - fr: corrections
- - ru: added russian translation
-
-## 0.37.0
-
-- bug fixes
- - editor: opening the sidepanel doesn't select the root widget anymore
- - ios: fix `doubleTap`
-- widgets
- - **new** `gyroscope` widget
- - **new** `frame` widget
- - **breaking change** in `panel`: dropped Visual Format Language support (`layout` and `spacing` properties)
- - maths: added `timestamp()` function
-- editor
- - widget property names can be clicked to show documentation
-- misc
- - the client app can be translated (https://github.com/jean-emmanuel/open-stage-control/issues/302)
-
-## 0.36.0
-
-- bug fixes
- - `linkId` synchronizations now correctly trigger property updates
- - widgets with multiple `linkId` are now properly handled
- - synchronization issue between `visualizer` widgets
-- widgets
- - `keys` (**breaking changes**): formulas in `keydown` and `keyup` must be explicitely written using the `#{}` syntax; variable `value` got removed from these formulas context (use `@{this}` instead); removed `widgetId` property, the value emitted by the widget on keypress events can be linked with other widgets via the `linkId` property or the property inheritance syntax;
- - `visualizer`: update rate set to default canvas framerate
-- editor
- - **new** keyboard shortcuts (undo, redo, copy, paste, etc)
-
-## 0.35.0
-
-- main
- - added `--state` option for loading a state file with a session file
-- state
- - loading a state file doesn't replace the quick save slot anymore
-- widgets
- - **new** `script` widget
-- misc
- - reduced session file size (indentation set to 2 instead of 4)
-
-## 0.34.4
-
-- bug fixes
- - widgets: dynamic `address` when `split` is `true`
- - strip: missing osc properties (`address` and `preArgs`) for remote control
- - switcher: update linked widgets' osc properties before sending if they depend on the switcher's value
-
-## 0.34.3
-
-- bug fixes
- - launcher: regression breaking the `port` option
-
-## 0.34.2
-
-- bug fixes
- - matrices: spacing issue when wrapped in strips
- - launcher: regression preventing options to be applied
-
-## 0.34.1
-
-- bug fixes
- - switch: display object-values properly when `showValues` is set to `true`
- - prevent non-dynamic properties updates from breaking an osc sending event chain
-- deprecations
- - `formula` has been removed from the editor's context menu
-- custom module
- - expose `app` to the custom module's scope: an event emitter for monitoring the events sent by the different clients
-- misc
- - fixed rpi build
-
-## 0.33.3
-
-- bug fixes
- - matrix: recreation loop issue with matrices of clones
- - multixy: glitch when some letters are used in the points' labels
-
-## 0.33.2
-
-- bug fixes
- - matrix: set initial value at widget's creation; missing border under widget's label
-- widgets
- - property math syntax: add `values()` and `keys()` functions
-
-## 0.33.1
-
-- bug fixes
- - widgets: remove unnused properties to avoid having hidden properties laying around when the type changes (especially dangerous when those properties where linked to other widgets)
-
-## 0.33.0
-
-- bug fixes
- - osc receivers: unregister properly when widgets are recreated (memory leak); allow non-string values (eg. objects)
- - circular property update issues
-- widgets
- - **new** generic `matrix` widget
- - fader: restore right-click focusing the input in compact mode (mouse only)
-
-## 0.32.6
-
-- bug fixes
- - css border-radius not applying correctly for some widgets
-- themes
- - multiple adjustments
-
-## 0.32.5
-
-- bug fixes
- - missing feedback support for widgets with typed preArgs
-- themes
- - improved `dark` theme
- - added `flat`
-
-## 0.32.4
-
-- bug fixes
- - regression breaking typed osc args
-
-
-## 0.32.3
-
-- bug fixes
- - regression in editor/resize function
-
-## 0.32.2
-
-- bug fixes
- - sliders colors not displayed correctly on iOS
-- widgets
- - xy: tiny knob style change
-- editor
- - reallow editing disabled properties
-
-## 0.32.1
-
-- bug fixes
- - error in osc receivers
-
-## 0.32.0
-
-- main
- - add tcp support
-
-## 0.31.0
-
-- bug fixes
- - regression breaking multitouch widgets
-- widgets
- - fader/knob/pad: right-click / long tap doesn't give focus to the input anymore
-
-## 0.30.4
-
-- bug fixes
- - regression breaking touch traversing gestures
- - clone widgets becoming unselectable for edition
- - `preArgs` property still being coerced to an array
-
-## 0.30.3
-
-- bug fixes
- - big regression breaking many touch gestures
-
-## 0.30.2
-
-- bug fixes
- - broken remote-control /TABS command
- - disabled `spacing` property in strips
- - disabled properties in modals
- - broken arm build
-
-
-## 0.30.1
-
-- midi
- - prevent the main process from exiting when MIDI setup fails
-
-## 0.30.0
-
-- widgets
- - `target` and `preArgs` properties are no longer coerced to arrays and can be written as single string values
- - `linkId` supports master and slave modes with `>>` and `<<` prefixes
- - the special `target` token `null` can now be used in conjunction with regular targets, it disables the default global targets set via the `--send` option
-- editor
- - disabled widget properties are now greyed out
-
-## 0.29.2
-
-- bug fixes
- - launcher: parsing errors are not fatal anymore
- - css parsing error on iOS
-
-## 0.29.1
-
-- bug fixes
- - editor: "wrap" deleting the widget just before the one being wrapped
- - regression breaking traversing gestures and high precision gestures (0.29.0)
-- server
- - allow sending osc to broadcast ip addresses
-- widgets
- - limited support for property inheritance nesting (`@{id_@{id_2}}`)
- - support using property inheritance syntax in osc listeners' addresses
-
-## 0.29.0
-
-- beaking changes
- - dropped supported for `.js` sessions (deprecated in 0.20.0)
-- bug fixes
- - zeroconf: unpublish when shutting down
- - ios 9.3 compatibility issue
- - function mispelling in rgb widget
-- widgets
- - modal: added `popupLeft` and `popupTop` properties
- - faders/meter: add css variable `--gauge-opacity` to allow setting a fixed gauge opacity for meters and compact faders
-- custom module
- - messages converted from midi inputs can be filtered
-
-
-## 0.28.3
-
-- bug fixes
- - widgets not correctly drawn when hidden/shown with dynamic css
- - iOS: file upload failing sometimes
-- widgets
- - knob: small design improvements (pips don't take extra space anymore)
-
-## 0.28.2
-
-- bug fixes
- - session list: fix "remove from history" always removing the first item in the list
-- custom module
- - expose `setInterval`
- - expose `clearTimeout` and `clearInterval`
- - prevent errors when failing to run the module
-
-
-## 0.28.1
-
-- bug fixes
- - regression in nested clones structures handling
-
-
-## 0.28.0
-
-- widgets
- - matrices: support setting `split` property as a string to allow using children's indexes in their address (`$` is replaced with the index number)
- - text: `wrap` property doesn't break words by default anymore
- - rgb: added `range` property
-- launcher
- - right-click context menu (copy, paste, clear console, toggle console autoscoll, relaunch app)
- - better font for the console
-
-## 0.27.2
-
-- bug fixes
- - session/state file upload sometimes failing silently
- - regression breaking the app for iOS
-
-## 0.27.1
-
-- bug fixes
- - error when resizing a widget and its clone(s) at the same time
- - error with non string css property
- - session list not reappearing when failing to load
- - broken state file loading
-- misc
- - added a loading indicator when uploading a session file or a state file
-
-## 0.27.0
-
-- bug fixes
- - strip: nested strips were inheriting their parent's `spacing`
- - modal: prevent error when retrieving a child's property
- - modal: prevent touch event from affecting elements behind the popup when closing it
- - clone: some properies in target widget were not applied to the clone
- - clone: prevent clone from resetting its target value when created
- - text: vertical centering issues in narrow widgets
- - dynamic properties: when using a widget's own value to determine its osc settings, these are checked and updated if needed before sending the message
- - prevent error when loading a session containing invalid property inheritance calls
- - broken build for iOS 9.3
-- editor
- - wrap in: insert wrapper at selected widget's index
- - wrap in: set label to false by default when wrapping in a strip or a panel
- - css property `pointer-events:none;` is now ignored when the editor is enabled
- - preverve pecentages when dragging/resizing a widget that has its position/size written in percents
-- widgets
- - **new** `OSC{/address, default_value}` syntax
-- ui
- - sidepanel is now resizable
-- themes
- - `responsive-fonts`: increase size for big screens
-- build
- - dropped support for node < 4.8
-
-## 0.26.3
-
-- bug fixes
- - ios: broken default accent color in clone Widgets
- - ios/android: closing the sidepanel opened the tab next to the menu button
-- editor
- - mac: use `shift` instead of `command` for multi widget selection to match native behaviour and prevent unwanted zoom with trackpads
-- widgets
- - strip: `spacing` now accepts percents
-
-## 0.26.2
-
-- bug fixes
- - regression preventing glass effect from using the widget's color
- - missing last key in keyboard widget
- - editor: select parent widget after deleting a widget
- - regression letting user to scroll the main document
- - editor: wrap/cut/delete multiple widget not working properly
-- widgets
- - text: set line-height relative to font size
- - meter: added `gradient` feature
-
-## 0.26.1
-
-- bug fixes
- - ios: text input fields not editable
-- editor
- - mac: use `command` instead of `ctrl` for multi widget selection
-
-## 0.26.0
-
-- bug fixes
- - editor: when selecting another widget while editing a property, changes where applied to the newly selected widget
- - widgets: css: @media queries parsing
- - prevent some errors when synchronizing clients
- - use command key instead of ctrl for zooming on mac
- - clone: memory leak / freeze
-- default client
- - mac: disabled unsupported pinch zoom
-- themes
- - alt-buttons: modal font-weight & color fix; push button active state colored border
- - added "responsive-fonts" theme
-- editor
- - allow multi widget resizing/dragging
- - tweaked ctrl+click/right-click selection behaviors
- - **new** "Wrap in" context menu
-
-
-## 0.25.0
-
-- bug fixes
- - launcher: parse array options correctly when an item contains spaces,
- - launcher: the terminal now grows and scrolls to bottom automatically
- - editor: broken children reordering; children
- list display bug with long `id`s
-- main
- - add `--fullscreen` switch (default gui only, bypasses the sidepanel fullscreen button)
- - added/updated some themes: `orange`, `light`, `dark`, `alt-buttons` (the latter can be combined with other themes)
-- widgets
- - knob: big knobs design tweaks
- - **new** `default` property that sets a widgets initial/doubleTap/spring value. The `value` property does no longer serve this purpose.
- - **new** `bypass` property that disable osc messages (except when requested via `/GET` and `/EDIT/GET`)
- - panel: **removed** `noSync` property (backward compatible fallback to `bypass`)
- - property inheritance: `@{widget_id.value}`, `@{widget_id}` and `@{widget_id._value}` now all refer to the widget's current value (the latter being kept for backward compatibility); If a property update triggers an osc message, it will now be sent after the other dynamic properties changes are resolved (such as osc `address`, `target`, etc)
- - text: added `align` and `wrap` properties
- - input: added `align` property
- - sliders/xy: `doubleTap` can be an osc address to send a special message instead of resetting the widget's value
-- editor
- - allow selecting multiple widgets (`ctrl + click`) if they share the same parent. Context-menu and sidepanel editing actions apply to all selected widgets
-
-## 0.24.3
-
-- bug fixes
- - property maths: variables names declared in a formula were replaced by their associated value if found in the formula's result
- - missing console logs on windows
-- ui
- - add iOS fullscreen support via add-to-home feature
-- editor
- - ask for confirmation when closing or refreshing the page if the editor has been enabled at least once
- - prevent default widget interaction when selecting a widget for edition
-- widgets
- - knob: small design tweaks
-- misc
- - remove proprietary ffmepg codec from package
-
-## 0.24.2
-
-- bug fixes
- - macOs app menu & shortcuts
-
-## 0.24.1
-
-- bug fixes
- - server/client communication errors
- - prevent error windows from spawning
-- main
- - added some menu items on macOs (including "Quit" !)
-
-## 0.24.0
-
-:warning: **BREAKING CHANGES** :warning:
-
-Read the changelog carefully, old sessions files are likely to need some adjustements to work as they used to. Plots and input widgets had their `widgetId` option removed because it was redundant with the generic `linkId` property.
-
-- bug fixes
- - regression preventing dropdown to display no option selected
- - crossfaders display issue on iOS
- - restored compatibility options for server-client communications
- - xy: `doubleTap` option
- - range: `spring` option
- - plot: crash when drawing only one point
- - widget css: fixed @media queries @keyframes parsings
-- main
- - theme files changes are automatically applied
- - server-client communication system rewritten -> HUGE latency reduction and stability improvement especially under stress conditions
- - engine update (electron@1.8.2)
-- widgets
- - **new** svg plot widget
- - switch: wrap non-array `values` property in an array
- - dropdown: wrap non-array `values` property in an array; always add a default empty value
- - property inheritance: added shorthand default to `_value` when no property is specified (`@{widgetId}`); some properties can now be dynamically changed without recreating the widget entirely
- - property maths: added support for math expressions everywhere via `#{}`
- - input: add glass effect when `editable` is `false`
- - `linkId` can now be set as an array of linkIds
- - plot: added `dots` options; **removed** `points` options (use `value` and property inheritance instead)
- - eq: **removed** `filters` options (use `value` and property inheritance instead)
- - plot/meter/led/rgbled/text: **removed** `widgetId` option
- - input: **removed** `widgetId` option
- - math: **deprecated** `formula` widget
-
-## 0.23.1
-
-- bug fixes
- - regression breaking modal's position in scrolled tab containers
- - widget with a `touchAddress` set now send their touch-off message when removed or recreated while being interacted with
- - broken windows builds (long path issue)
-
-## 0.23.0
-
-- bug fixes
- - plots now send their value to other widget for synchronization as expected
- - text widgets now apply their target widget's precision
- - property inheritance accepts targetting a parent widget by its id
- - multiple icons not displayed correctly
- - broken `--blank` option
-- main
- - added `--disable-gpu` option for disabling hardware acceleration (fixes rendering glitches and reduces input lag on some systems)
-- widgets
- - inputs: **new** `keys` widget, for keyboard bindings
- - property inheritance: new special property name `_value` (retrieve the widget's value, and update when it changes)
- - switch: added `showValues` to display both values and labels in the buttons; array values can now be selected via osc
- - range: both handles can be moved by holding `shift` while dragging
- - rgb: **removed** `touchAddress` option
- - labels/texts: multiple white spaces are no longer merged
- - plot: can receive stringified arrays of coordinates or stringified objects for merging coordinates sets; added `bars` option for drawing barcharts;
- - widgets' `precision` option allows setting a specific data type for numbers (sliders can send doubles !)
-- misc
- - event system rewritten
- - js build size reduced
-
-## 0.22.0
-
-- bug fixes
- - sessions opened from command line with relative paths are now added to the history with their absolute path
- - sending an empty message to a `text` widget resets it to its initial value and without ignoring its `value` property
- - sending no value to a widget with `preArgs` is now possible : all the arguments found in incoming osc messages are now taken into account to match the widgets in the session
- - regression breaking state quicksave from sidepanel
-- engine
- - downgraded to the latest *stable* electron release
-- main
- - added `zeroconf` / `bonjour` publishing for the app's http and osc input ports
- - added `--instance-name` option to differenciate mulitple instances in zeroconf networks
-- widgets
- - sliders/pads: holding `Ctrl` now enables high precision dragging with the mouse and bypasses the `snap` option
- - inputs: renamed `input`'s property `horizontal` to `vertical` to match how the widget actually displays
- - sliders: **new** `range` widget
- - plots: **new** `image` widget
-- remote control
- - **removed** deprecated `/EXEC`
- - renamed `/EDIT_SOFT` to `/EDIT/MERGE`
- - added `/EDIT/GET` (get a widget's data)
- - added `/GET` (get a widget's value)
- - added `/SET` (set a widget's value as if it was interacted with from the interface)
-
-
-## 0.21.3
-
-- bug fixes
- - session/state: regression (0.21.2) breaking save-to-file function
-- ui
- - FontAwesome 5 (icon font) !
-
-## 0.21.2
-
-- bug fixes
- - cli: broken long flag `--no-gui`
- - headless: when running with `node`, errors don't stop the server; when running with `electron` (default), errors are logged in the console instead of being showed in a dialog window
- - switcher widgets regression (broken)
-- midi
- - float values are now allowed and automatically rounded
-- misc
- - some code refactoring
-
-## 0.21.1
-
-- bug fixes
- - visualizer: fix memory leak when editing; fix ignored `smooth` option
- - plots: regression preventing widgets with no `target` option from receiving messages sent by other clients
-
-## 0.21.0
-
-- main
- - renamed `--sync` option to `--send` (deprecation, backward-compatible)
-- widgets
- - sliders/pads: when receiving feedback while touched, the widget waits to be released before updating to the latest received value.
- - input: the widget's value is no longer validated when leaving focus by clicking somewhere else or hitting the `Tab` key (it must be submitted by hitting the `Enter` key); when submitting a value to another widget, the feedback from this widget doesn't trigger a second osc message anymore; non-editable inputs can't steal focus anymore
- - added support for `null` value in `target` option to disable osc sending
-- misc
- - property fields are now parsed using [JSON5](https://github.com/json5/json5), a more flexible notation. Session files are still written in standard JSON format, this is just a way to avoid typing mistakes when using the editor.
- - remote editing also accepts JSON5 notation
-
-## 0.20.3
-
-- bug fixes
- - allow loading `.json` session files from the launcher
-- launcher
- - new log/error console (shows once the app is started)
-
-## 0.20.2
-
-- bug fixes
- - pads: regression breaking the built-in input
- - multifader: inverted order in horizontal mode
-- widgets
- - plots: add `smooth` option (thanks to [cardinal-spline-js](https://github.com/epistemex/cardinal-spline-js)); draw thicker lines
- - pads: draw thicker inner circle
- - mobile
- - prevent devices from entering sleep mode
-
-
-## 0.20.1
-
-- bug fixes
- - error popups not created
-- misc
- - rename sessions files to `.json`
-
-## 0.20.0
-
-- **breaking changes**
- - sessions are now saved as `.json`files by default (the deprecated `.js` extension can still be opened).
- - states are now saved as `.state` files (the old `.preset` files can be renamed without any problem)
-- bug fixes
- - touch release event is properly dispatched in traversing containers (ie keyboards and matrices) (#94)
-- widgets
- - css `border-radius` support enhanced
- - css `color` applies locally while `--color-text` applies to children too
- - plot/text: new lines are properly printed
-- packaging
- - added `arm64` binaries
-- iOS
- - compatibility improved (version 9.3 and above)
-- engine
- - electron 1.8.0 (chrome 59)
-
-## 0.19.6
-
-- hot fix
- - broken formula widget
-
-## 0.19.5
-
-- launcher
- - fixed typo in new version message
-- misc
- - client-side javascript's size reduced, now for real !!
-
-## 0.19.4
-
-- bug fixes
- - buttons: changing `css` background works as expected
- - widgets: changing `css` (text) color works as expected
- - fader: fix hidden input in horizontal + compact mode
- - pads: pips scaling bug
-- widgets
- - `css` font-sizes apply correctly to all children (better use percents)
- - formula: add `unit` option
-- misc
- - client-side javascript's size reduced !
-
-## 0.19.3
-
-- bug fixes
- - midi: noteOff messages not being sent;
-
-## 0.19.2
-
-- bug fixes
- - lobby: regression breaking the lobby for touch devices
-
-
-## 0.19.1
-
-- bug fixes
- - launcher: load correct font
- - midi: python3 compatibility fix
-
-## 0.19.0
-
-- ui
- - general design improved, heavily inspired by [budislavTVP](http://budislavtvp.deviantart.com/) works; color schemes are much simpler and easier to customize (try `--theme light` !); Font changed to Roboto; Texts are slightly thicker and uppercased in most cases for better readability (use css `text-transform:none` to disable the latter).
-- widgets
- - fader: added `dashed` option; added `input` option;
- - meter: added `alignRight` option; added `dashed` option;
- - knob: removed `compact` option; added `dashed` option; added `input` option;
- - xy/rgb: added `input` option; added `pips` option:
- - panel/strip: removed inner widgets dark borders; added `border` option;
- - buttons: new `dropdown` widget;
- - toggle: added `led` option to choose between the old appearance and the new one; added `douleTap` option
- - new `input` widget
- - containers: new `clone` widgets
- - added support for `"self"` value in `target` option (sends the message back to the clients, useful for sending `/EDIT` messages...)
-- editor
- - option fields are now multiline (`ctrl + enter` to add a new line), and pretty printed
- - added checkboxes for boolean options
- - added `Edit Parent` context menu option
-- midi
- - replaced `pyo` dependency with [`pyrtmidi`](https://github.com/patrickkidd/pyrtmidi): lighter, dedicated to midi only, and handling virtual ports (no `mididings` dependency anymore)
- - pitchbend value is now a single integer between 0 and 16383
-- bug fixes
- - fixed VisualFormat errors in iOS
-- main
- - added `--url-options` command line option
- - fixed `--disable-vsync` not working when starting from the launcher
-- documentation
- - new style, better organization
-
-## 0.18.0
-
-:warning: **Breaking changes** :warning:
-
-Sessions saved with this version will not be readable with older versions (old sessions a can be opened but wont be backward-compatible once saved).
-
-
-- widgets
- - add property inheritance between widgets with statements `@{parent.propertyName}`, `@{this.propertyName}` and `@{widgetID.propertyName}`
- - containers: added `variables` options (arbitrary varibles to pass to children)
- - panel: added full osc support (for sending/receiving tab changes)
- - modal: changed style to fit popups' appearance; added `popupWidth` and `popupHeight` options; :warning: removed `tabs` option; added full osc support; added `doubleTap` option (makes it openable with double taps instead of single taps)
- - strip: refactored widget using `panel` as base; added `stretch` and `spacing` option; now it's really cool
- - sliders: added `doubleTap` option (double taps reset the widget to its initial value when enabled)
- - knob/fader: renamed `noPip` option to `pips` (inverted behaviour; backward compatible)
- - encoder: mousewheel support
- - knob: compact design remake
-- bug fixes
- - sliders: fixed `spring` when `value` equals `0`
- - modal: fixed osc values (was `True`/`False` instead of `1`/`0`)
-- session
- - the root panel is now saved as a special `panel` widget (which means it has savable options)
-- custom module
- - add access to the app's `settings` object
-
-## 0.17.8
-
-- bug fixes
- - regression breaking widgets' `split` option (0.17.6)
- - regression breaking the state export button (0.17.7)
- - regression breaking editor's `cut` action (0.17.7)
-- osc
- - javascript object are now stringifyied before beeing sent
-- widgets
- - maths: add `condition` option to [`formula`](http://osc.ammd.net/user-guide/widgets-specifics/maths/#formula)
- - sliders/pads: add `touchAddress` option
- - fader: add `meterAddress`
-
-## 0.17.7
-
-- engine
- - socket.io v2
-- client
- - scripts are now transpiled to ES5 javascript code, thus increasing compatibility with some browser (iOS9's chrome, firefox, etc)
- - scripts size reduced from 2.4M to 1M thanks to minification
-- bug fixes
- - elements duplications in sidepanel when loading another session
-
-## 0.17.6
-
-- main
- - osc sending speed optimization: all static infos (target, address, preArgs) are cached server side to reduce network overhead
-- widgets
- - **new** encoder widget
-- mobile
- - `hdpi` support (add `?hdpi=1` to the server's url)
-- bug fixes
- - launcher: link to the app's address is now clickable
- - sidepanel: layout glitches with iOS
- - midi: `program` now works with the correct number of arguments
-- misc
- - some little style fixes
-
-## 0.17.5
-
-- bug fixes
- - `multixy` snap mode position offset
-- widgets
- - **new** [`rgbled`](http://osc.ammd.net/user-guide/widgets-specifics/plots/#rgbled)
-
-
-## 0.17.4
-
-- bug fixes
- - broken `--blank` option fixed (false-positive detection of concurrency with `--read-only`)
- - remove debug message in console when closing windows
-
-## 0.17.3
-
-Hot fix for `--read-only` switch.
-Dependencies updates.
-
-## 0.17.2 (deleted)
-
-- bug fixes
- - `editor`: correctly remove editing state when disabling the editor right after going to another tab
-- main
- - **new** `--read-only` switch for disabling the editor and preventing change to the session history
-- widgets
- - `panel/modal`: add `layout` option ([Visual Format Language](https://github.com/IjzerenHein/autolayout.js))
- - `css` option now interprets `&` as a selector for the widget's element itself (useful for targetting pseudo-elements such as `&:after`)
- - `plots`: add `widgetId` option to `text`, `meter` and `led`
-
-## 0.17.1
-
-- bug fixes
- - `midi`: missing dependency
- - `headless`: terminate `midi` correctly when process exits
-
-## 0.17.0
-
-- main
- - **new** `midi` support ([documentation](http://osc.ammd.net/user-guide/midi/))
-- ui
- - **new** `/TABS id1 id2 etc` osc address to remotely enable tabs
- - remote editing through `/EXEC` command is now deprecated, use `/EDIT` and `/EDIT_SOFT` instead
-- bug fixes
- - `push` widgets (and `keyboards`) not correctly synchronizing each other (with shared widget ids or between different clients)
-- widgets
- - `css` option now supports css selectors, scoped to the widgets element
- - `matrices` don't pass `css` option to their children anymore; subwidgets' indexes are now append to `preArgs` instead of being prepended.
-- misc
- - app's title uppercased
- - tabs titles' letter-spacing increased
-
-## 0.16.5
-
-- bug fixes
- - `modal`: correct z-stacking with absolutely positionned widgets; proper rendering for inner widgets; disable parent tab's scrolling when opened; fix various style glitches;
- - `strip`: resize glitch when containing compact horizontal sliders
-
-## 0.16.4
-
-- bug fixes
- - tab links broken after activating traversing gestures
- - `push` release is now handled per touch point (releasing one finger used to release all pressed buttons)
-- misc
- - destroy default client window when the app process exits
-
-## 0.16.3
-
-- bug fixes
- - crash when remote-editing widgets in disabled tabs
- - desktop client touch screen support restored
-
-## 0.16.1
-
-- bug fixes
- - string arguments overquoted in sent osc messages
-- custom module
- - added support for initialization script
- - unified expected formatting in sendOsc and receiveOsc methods
-- ui
- - reduced scrollbars width
-
-
-## 0.16.0
-
-- new logo :)
-- bug fixes
- - editor: new widgets are correctly positionned in scrolled areas
-- widgets
- - **new** `formula` widget, a [mathjs](http://mathjs.org/) expression evaluator that can process other widgets' values
- - `multixy` supports named points; fixed drag-dead zone in the border
-
-## 0.15.1
-
-- widgets
- - multifader: add `snap` option
-- misc
- - minor css-related performance fix
- - some titles in the editor had the first-letter uppercased
-
-## 0.15.0
-
-- style
- - improved coherence, no more pure greys, better differenciation between clickable and static elements. Went back from "pure flat" to "flatty" to help with that (ie a few shadows to make layout more self-explanatory). Some widgets were slightly repimped.
-- bug fixes
- - `push`: options separators not hidden in the editor
- - error when touching a non-interractive object while touching a widget with the other fingers
-- widgets
- - `multixy` now behaves smarter: points are assigned to the closest touch points
-- main
- - modifying a session file will automatically update clients that have loaded the same file
-
-## 0.14.0
-
-- bug fixes
- - some layout regressions in chrome v49
-- main
- - osc input port (`-o`) is now set to the http port (`-p`) by default
-- widgets
- - **new** `crossfader` and `switcher` widgets that store and recall the state of other widgets
- - `matrices` now accept multiple color values (that will be sequencially passed to their children)
- - `switches` accept icons in their values' labels
-- engine
- - electron v1.4.13
-- misc
- - all widgets classes were rewritten using ES6 class expressions
- - firefox's minimal version is now 46 because of a ES6 related bug (*note that it's still not officially supported*)
-
-## 0.13.1
-
-- bug fixes
- - regression preventing received osc messages to be properly routed to widgets with `preArgs`
-- debug
- - errors occuring in the browser process are now piped to the main process' console with the source file name and the line number.
-
-## 0.13.0
-
-- main
- - **new** `-b / --blank` option to start editing a new session directly
- - **new** `--disable-vsync` option that improves performance (reduce input lag) on some systems
- - some inconsistent parameter combinations are now prevented
- - firefox compatibility improved (yet not perfect)
- - launcher window is no longer of the `splash` type, as it was difficult to close with some window managers
-- widgets
- - **new** `modal` container : a button that turns into a fullscreen panel when clicked.
- - sliders/xy: add `spring` option that makes that widget jump back to its initial value when released
- - fader: horizontal mode default height fixed
- - keyboard: black keys pressed state is more noticeable
- - matrices: added `start` option to choose the first subwidget's `id`
- - labels' height reduced
-- editor
- - **new** snap-to-grid feature
- - widgets' min-width set to grid's width
-- misc
- - building with node 4 is fixed
-
-## 0.12.0
-
-- bug fixes
- - error popups raised by the main process can be closed
- - sliders don't send same value over network when the value change is below the widget's precision
-- widgets
- - **new** (piano) keyboard widget
- - matrices: fixed `preArgs` option; added `split` option (default to `false`), *this changes the default osc messages formatting for these widgets*
- - icons in labels are inserted using the `^` prefix
- - text: icons support in value
-- tabs
- - icons support in label
-- misc
- - fontawesome update (4.7.0)
-
-## 0.11.6
-
-- widgets
- - meter: rewritten using fader as base
- - strip: center widget horizontally if width is set
- - fader/knob: compact gauge's alpha varies slightly as the distance to the origin grows
-- misc
- - one example session added
-
-## 0.11.5
-
-- bug fixes
- - [regression] broken horizontal fader and pads
-
-## 0.11.4
-
-- bug fixes
- - fader: default `height/width` not set when `top/left` is `auto`
-
-## 0.11.3
-
-- widgets
- - knob: gesture's precision is proportionnal to the widget's size
- - fader: `height:auto` (or `width` for `horizontal` mode) makes the fader expand automatically
-- ui
- - cleaner forms in editor and launcher
-
-## 0.11.2
-
-- touch
- - using multiple fingers to control a widget increases the precision (reduces the gesture's computed speed)
-- widgets
- - fader: display pips in `compact` mode when `range` has multiple breakpoints
- - pads: display pips when `range` has multiple breakpoints
- - multixy: style update (stroked dots, bold number font); `snap` option added; points are automatically assigned to touches as they come; fix `logScale(X|Y)` options
-
-## 0.11.1
-
-- bug fixes
- - meters in faders were not always properly positionned
-- widgets
- - knob: gauge's width is proportionnal to the knob's size in `compact` mode; widget's content centering fixed; `compact` style update;
-
-## 0.11.0
-
-- bug fixes
- - `-g / --no-gui` not preventing the launcher from spawning
- - `-e / --examples` not correctly parsed
-- main
- - launcher displays options descriptions for booleans too
-- widgets
- - added generic `value` option for setting a widget's initial value (does not sync linked widgets nor send osc message)
- - **text** widget's `defaultText` replaced with `value`
- - multixy dots are drawn with filled background instead of stroke
-
-## 0.10.4
-
-- main
- - launcher displays new version if available
- - launcher stays opened after starting the server and/or the gui except if `--gui-only` is set
-
-## 0.10.3
-
-- main
- - launcher: resetting boolean option properly sets it to false
- - launcher: display package's version
- - guis: adjust window's background to match the app's
-- ui
- - launcher and session lobby appear more smoothly
-
-## 0.10.2
-
-- main
- - when executing the app with no CLI argument, a launcher window is created allowing user to adjust settings before starting the server (config is saved in the user's directory)
-
-## 0.10.1
-
-- bug fixes
- - rgb: minor visual glitch on extreme value, drawing performance improved
- - main: examples sessions path are properly stored as absolute paths (fixes `-e / --examples` mode)
-- ui
- - lobby: session file names are diplayed first, then shortened paths
-- misc
- - widgets `precision` doesn't affect their visual interraction accuracy since values are now rounded only before osc sending
-
-## 0.10.0-alpha-2
-
-- bug fixes
- - [windows] fix long path issue (#35) returns
-
-## 0.10.0-alpha
-
-- main
- - **new** `-c / --custom-module` switch allowing user to define custom osc filtering fonctions
- - `address` is now used everywhere instead of `path` to describe osc address to avoid confusion. Session files using the old `path` option for widgets are still supported.
- - **osc bundles** are properly received (subsequent messages are processed separately with a delay if the timetag is set)
- - widgets can be edited via osc messages using the special `/EXEC` address
-
-## 0.9.2
-
-- bug fixes
- - [windows] fix long path issue (#35)
-
-## 0.9.1
-
-- widgets
- - multiXy: added `pointSize` option; made default size bigger; points don't overflow the pad anymore
-
-## 0.9.0
-
-- widgets
- - **new** `multixy` pad
-- misc
- - rewritten `pads` with prototype inheritance and using faders under the hood to handle events (this adds *fader*'s `range` capabilities to *xy*)
-- engine
- - electron 1.4.4
-
-## 0.8.3
-
-- bug fixes
- - scrollbar arrows not showing
- - `fader` pips position when `noPip` is `true`
-- widgets
- - matrices : all `fader`, `push` and `toggle` options are now available to `multifader`, `multipush` and `multitoggle`
-
-## 0.8.2
-
-- bug
- - avoid crash when sending osc with incorrect typetags
- - fixed fallback typetag ('s')
- - fixed broken `null` value for `push` & `toggle`
-
-## 0.8.1
-
-- bug
- - broken `fader` with `horizontal` set to `true` and `compact` set to `false`
-- widgets
- - remove margins from `plots`
- - added `origin` options to `plots`
-
-## 0.8.0
-
-- main
- - the headless server/clients model is now the only one beeing used : the GUI mode is nothing more than an embedded chromium (electron) client
- - when a new client opens a session on the server, it is synchronized with the other clients
- - **new switches** : `--no-gui`, `--gui-only`, `--port`, `--osc-port`, `--version` (see docs)
-- ui
- - explicit loadings
-- widgets
- - make push's backlight only respond to external osc messages (not to synchronization messages from other widgets or clients)
- - removed special `false` value case for push/toggles (which used to disable osc sending)
- - add `norelease` option to `push` for disabling osc messages when releasing the button
- - `true` and `false` values are now properly sent as boolean
- - **args type definition** in `preArgs` option now uses the osc typetags only ('f', 'i', 'T', 'F', etc)
-- engine
- - electron 1.4.3
-- misc
- - rewritten matrices with prototypes inheritance
-
-## 0.7.0
-
-- bug fixes
- - osc messages with 0-item and 1-item args are correctly unpacked and routed
- - buttons can handle messages with 0 arg if one of their state has the value "null"
-- ui
- - nice and bigger scrollbar
- - right-click no longer starts a dragging gesture
-- editor
- - copy/paste data auto-incrementation fix
-- widgets
- - new equalizer plotter
- - push/toggles made more obvious
- - knob's new options: angle and origin
- - fader's new option: origin
-- engine
- - electron 1.4.1 (chrome 53, node 6.5.0)
-- misc
- - added `--examples` switch for showing the availabe example sessions instead of the history
- - rewritten sliders and plots using canvas and prototypes inheritance
- - reorganized package using the two-package.json structure: js and css assets are now create at build time, and only necessary dependencies are shipped with the app
-
-## 0.6.3
-
-- bug fixes
- - regression (since 498ba4a06adf63d76fe7181691299c1cc55e8240) breaking the editor on touch devices
-
-## 0.6.2
-
-- cool stuff
- - armv7l prebuilt binaries ! (raspberry 2, etc)
-- engine
- - electron 1.3.5
-
-## 0.6.1
-
-- bug fixes
- - editor: widgets/tabs can be accessed through their parent's children list (#27)
-- engine
- - electron 1.3.1
-
-## 0.6.0
-
-- bug fixes
- - pasted widget properly use the pointer's position
- - traversing gestures are effective from the first touch, not after the first move
- - out-of-range values are properly clipped by faders/knob
-- ui
- - Faders & Meters design improved
- - The main font (droid sans) is now loaded...
- - Knob's sizing got smarter
- - Widgets don't blink not jump when they appear for the first time or when they resize
-- misc
- - Fader's `align` option replaced with boolean option `alignRight`
- - Widget's `label` now accepts special directive `icon: fontawesome-class` to display icons from [FontAwesome](http://fontawesome.io/icons/)
- - Text widget `defaultText` option added
-- engine
- - electron 1.2.2
-
-## 0.5.4
-
-- bug fixes
- - [desktop] menu bar auto-hide
- - [headless] multitouch support
-- ui
- - [mobile] better faders pips rendering
- - fixed horizontal fader knob centering
- - [mobile] better numeric inputs rendering (not blurred anymore)
-- engine
- - [desktop] electron 1.2.0 (chrome 51)
-
-## 0.5.3
-
-- bug fixes
- - [again] touch fake-right-click only fires on long touch, not after every tap
- - traversing gestures bug with touch
-- misc
- - better mouse/touch drag events handlers
-- engine
- - electron 1.1.1
-
-## 0.5.2
-
-- bug fixes
- - touch fake-right-click only fires on long touch, not after every tap
-
-## 0.5.1
-
-- bug fixes
- - feedback is now handled precisely by widets (ie not rounded according to the `precision` option, see issue #21)
-- engine
- - electron 1.1.0
-
-## 0.5.0
-
-- bug fixes
- - touch/mouse events are both handled simultaneously, module rewritten for better performances (see issue #18)
-- engine
- - electron 1.0.2
-
-
-## 0.4.8
-
-- bug fixes
- - regression preventing newly created widgets from using the pointer's coordinates as position
- - add 0.4.7's fix to headless mode
-
-## 0.4.7
-
-- bug fixes
- - regression causing widgets with `preArgs` to not receive osc correctly
-
-## 0.4.6
-
-- engine
- - electron 0.37.6
- - node-osc 2.0.3
-- features
- - `compact` option added to knob and fader
- - if an osc input port is specified, osc messages will be sent from it. This enhances compatibility with apps that send their feedback messages directly to the sender.
-- misc
- - mouse/touch dragging handler rewritten, now using event delegation and direct handler calls instead of DOM event bubbling whenever it's possible
-
-## 0.4.5
-
-- engine
- - electron 0.37.3
-- ui
- - new logo
- - better lobby design
-- misc
- - renamed sliders/pads' `absolute` property to `snap`
-
-## 0.4.4
-
-- bug fixes
- - [headless] scripts are no longer bundled on the fly, it didn't work on some systems
- - touching widgets without changing their value doesn't make them send the same value again anymore
-- ui
- - slightly tightened layout
-- features
- - `noPip` option added to knob and fader
- - `preArgs` accepts object if the arg's type needs to be specified
- - knob supports breakpoints scale, same as fader's
- - fader and knob pip scales now support custom label
- - a push/toggle's value can be set to `null` if only the path needs to be sent in the osc messages
- - push buttons do not update their own leds and return their value (for state save and widgets sync) based on their last changed property (led state or touch on/off)
-- misc
- - refining the fader's pip scale that looked choppy on mobile devices. All pips are now evenly spaced, not relatively to the fader's height.
- - [desktop mode] saved sessions are added to history
-
-## 0.4.3
-
-- features
- - text widget can be `vertical`
- - panel widget `scroll` option
-- bug fixes
- - smart pasting now works when the clipboard contains several widgets whose unsuffixed ids are the identical
- - osc received array that contain only one item are correctly unpacked (fixes cross-app sync for widgets that don't accept array, broken since the introduction of `preArgs`)
- - memory leak when loading a new session (cached tabs were not properly purged)
-- misc
- - push widget doesn't fire its 'on' value if pressed while stuck in 'on' position
- - panel widgets don't have inner margins anymore
- - fader widget optimization : the pip scale is generated from a single gradient plus some elements for each breakpoint (instead of one element per percent), thus reducing the number of elements to draw.
-
-## 0.4.2
-
-- features
- - new widget : text (just displays received values)
-- bug fixes
- - widget linking doesn't cause multiple unwanted osc sends anymore
-
-## 0.4.1
-
-- features
- - `preArgs` option for widgets (prepends constants to osc messages args)
-
-## 0.4.0
-
-- engine
- - electron 0.37.2 (chrome 49)
-- ui
- - new flat ui
- - tab system rewritten : inactive tabs are detached from the DOM tree, thus improving performances while slowing down tab switching.
- - widget categories in editor's context menu
-- features
- - logarithmic scaling (log10) support added to knob, fader & xy
- - mousewheel support added to knob and fader (ctrlKey for fine control)
- - new widgets : plot, visualizer & meter. Fader built-in feedback meter option
- - traversing gestures switch in sidepanel
- - custom color property for all widgets with inheritance (containers)
- - editor pasting function now smartly increments widget's id and path while keeping label if different from default
- - true theming support
-- misc
- - sync/link event handling improved
- - stylesheets cannot be recompiled on the fly anymore (`--c` switch removed)
- - **new state save file format, no backward compatibility**
-
-## 0.3.1
-
-- electron updated to 0.36.11
-- editor paste menu lets you choose between `Same ID` (cloned widgets) or `New ID` (resets id, label, linkId, and path)
-- minor style updates
-
-## 0.3.0
-
-- 3 new widgets
- - multifader
- - multitoggle
- - multipush
-
-
-## 0.2.1
-
-- style update (push/toggle widgets, widgets' dragging handle)
-- widget dragging/resizing doesn't get broken when editing the root
-- sidepanel toggle doesn't select root for edition anymore
-
-## 0.2.0
-
-- editor code rewriting
- - right-click context-menu quick editing (widget copy/cut/paste, add & delete tabs/widgets)
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 921666c8..00000000
--- a/Dockerfile
+++ /dev/null
@@ -1,29 +0,0 @@
-FROM node:24-alpine
-
-RUN apk --no-cache add git
-
-WORKDIR /usr/src/app
-
-COPY package*.json ./
-
-RUN npm install
-
-COPY . .
-
-RUN npm run build
-
-RUN mkdir /sessions
-RUN touch /sessions/session.json
-
-EXPOSE 8080
-
-ENV ELECTRON_RUN_AS_NODE=1
-
-ENV SEND="127.0.0.1:8080"
-ENV LOAD="/sessions/main.json"
-ENV PORT=8080
-ENV OSC_PORT=8080
-ENV READ_ONLY=false
-
-RUN chmod +x entrypoint.sh
-ENTRYPOINT ["./entrypoint.sh"]
diff --git a/Procfile b/Procfile
new file mode 100644
index 00000000..f8a6c94c
--- /dev/null
+++ b/Procfile
@@ -0,0 +1 @@
+web: npm run build-js && npm run build-css && cd app && node index.js -n -p $PORT --examples --remote-saving 127.0.0.1
diff --git a/README.md b/README.md
index 89da9bd5..b8d8f98a 100644
--- a/README.md
+++ b/README.md
@@ -1,21 +1,50 @@
-
-
-Open Stage Control
-
-*Libre and modular OSC / MIDI controller*
+
+
+
+ Open Stage Control is a libre desktop OSC bi-directional control surface application. It's built with HTML, JavaScript & CSS and run as a Node / Electron web server that accepts any number of Chrome / Chromium / Electron clients. +
+ +Download the latest release (prebuilt binaries for Linux, OS X and Windows)
+ +Try the online demo (Chrome 50+ required)
+ + + + + +## Documentation + +The documentation is located at [osc.ammd.net](http://osc.ammd.net) + +## Supported platforms + +The server can run on all [platforms supported by Electron](https://electron.atom.io/docs/tutorial/supported-platforms/). Clients just need to connect to the server with a compatible browser : + +- any system running Chrome/Chromium version `50` or later (Linux, MacOS, Windows, Android, etc) +- iOS version `9.3` or later + +Firefox is *not* supported. + +## License & credits + +Copyleft © Jean-Emmanuel Doucet @ [AMMD](http://ammd.net) 2018. +This program is a free software released under the [GNU/GPL3](ttps://github.com/jean-emmanuel/open-stage-control/blob/master/LICENSE) license. + +### Dependencies + +Open Stage Control relies on several other free softwares, including [Node.js](https://nodejs.org/), [Electron](http://electron.atom.io/), [osc.js](https://github.com/colinbdclark/osc.js), [babel](http://babeljs.io/), [browserify](http://browserify.org), [exorcist](https://github.com/thlorenz/exorcist), [express](http://expressjs.com), [node-sass](https://github.com/sass/node-sass), [jQuery](http://jquery.com/), [jQuery-UI](http://jqueryui.com/), [Font Awesome](http://fontawesome.io/), [stacktracejs](stacktracejs.com), [mathjs](http://mathjs.org/). A comprehensive and up-to-date list can be found [here](https://github.com/jean-emmanuel/open-stage-control/network/dependencies). + +### Contributors + +https://github.com/jean-emmanuel/open-stage-control/graphs/contributors ---- -Docker additions by Rik Berkelder. +
-mount `/sessions` directory. default session file is created and loaded there.
-
----
-
-Copyleft © Jean-Emmanuel Doucet 2014-2025.
-This program is a free software released under the [GNU/GPL3](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/LICENSE) license.
+BrowserStack supports Open Stage Control by providing a complete suite of browser emulators for Android, iOS and Windows.
diff --git a/app/assets/fonts/fa-solid-900.woff b/app/assets/fonts/fa-solid-900.woff
new file mode 100644
index 00000000..4cf2a4fe
Binary files /dev/null and b/app/assets/fonts/fa-solid-900.woff differ
diff --git a/app/assets/fonts/fa-solid.css b/app/assets/fonts/fa-solid.css
new file mode 100644
index 00000000..28d2889f
--- /dev/null
+++ b/app/assets/fonts/fa-solid.css
@@ -0,0 +1,14 @@
+/*!
+ * Font Awesome Free 5.0.8 by @fontawesome - https://fontawesome.com
+ * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
+ */
+@font-face {
+ font-family: FontAwesome;
+ font-style: normal;
+ font-weight: 900;
+ src: url("./fa-solid-900.woff") format("woff")}
+
+.fa,
+.fas {
+ font-family: FontAwesome;
+ font-weight: 900; }
diff --git a/app/assets/fonts/fontawesome.min.css b/app/assets/fonts/fontawesome.min.css
new file mode 100644
index 00000000..2c97ea00
--- /dev/null
+++ b/app/assets/fonts/fontawesome.min.css
@@ -0,0 +1,5 @@
+/*!
+ * Font Awesome Free 5.0.8 by @fontawesome - https://fontawesome.com
+ * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
+ */
+.fa,.fab,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:a 2s infinite linear;animation:a 2s infinite linear}.fa-pulse{-webkit-animation:a 1s infinite steps(8);animation:a 1s infinite steps(8)}@-webkit-keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-aws:before{content:"\f375"}.fa-backward:before{content:"\f04a"}.fa-balance-scale:before{content:"\f24e"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bicycle:before{content:"\f206"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blind:before{content:"\f29d"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-briefcase:before{content:"\f0b1"}.fa-btc:before{content:"\f15a"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-car:before{content:"\f1b9"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-certificate:before{content:"\f0a3"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-square:before{content:"\f14a"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comments:before{content:"\f086"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-credit-card:before{content:"\f09d"}.fa-crop:before{content:"\f125"}.fa-crosshairs:before{content:"\f05b"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-delicious:before{content:"\f1a5"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-deviantart:before{content:"\f1bd"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-dot-circle:before{content:"\f192"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drupal:before{content:"\f1a9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-edge:before{content:"\f282"}.fa-edit:before{content:"\f044"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-fax:before{content:"\f1ac"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-excel:before{content:"\f1c3"}.fa-file-image:before{content:"\f1c5"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fire:before{content:"\f06d"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-firstdraft:before{content:"\f3a1"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frown:before{content:"\f119"}.fa-futbol:before{content:"\f1e3"}.fa-gamepad:before{content:"\f11b"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-gift:before{content:"\f06b"}.fa-git:before{content:"\f1d3"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-martini:before{content:"\f000"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-spock:before{content:"\f259"}.fa-handshake:before{content:"\f2b5"}.fa-hashtag:before{content:"\f292"}.fa-hdd:before{content:"\f0a0"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-heart:before{content:"\f004"}.fa-heartbeat:before{content:"\f21e"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hockey-puck:before{content:"\f453"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-houzz:before{content:"\f27c"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-instagram:before{content:"\f16d"}.fa-internet-explorer:before{content:"\f26b"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-jenkins:before{content:"\f3b6"}.fa-joget:before{content:"\f3b7"}.fa-joomla:before{content:"\f1aa"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-key:before{content:"\f084"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-korvue:before{content:"\f42f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-male:before{content:"\f183"}.fa-map:before{content:"\f279"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-maxcdn:before{content:"\f136"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-meh:before{content:"\f11a"}.fa-mercury:before{content:"\f223"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-moon:before{content:"\f186"}.fa-motorcycle:before{content:"\f21c"}.fa-mouse-pointer:before{content:"\f245"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nintendo-switch:before{content:"\f418"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-osi:before{content:"\f41a"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-paint-brush:before{content:"\f1fc"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-paragraph:before{content:"\f1dd"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-percent:before{content:"\f295"}.fa-periscope:before{content:"\f3da"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phone:before{content:"\f095"}.fa-phone-square:before{content:"\f098"}.fa-phone-volume:before{content:"\f2a0"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-plane:before{content:"\f072"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-print:before{content:"\f02f"}.fa-product-hunt:before{content:"\f288"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-random:before{content:"\f074"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-rebel:before{content:"\f1d0"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-rendact:before{content:"\f3e4"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-resolving:before{content:"\f3e7"}.fa-retweet:before{content:"\f079"}.fa-road:before{content:"\f018"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-rupee-sign:before{content:"\f156"}.fa-safari:before{content:"\f267"}.fa-sass:before{content:"\f41e"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-scribd:before{content:"\f28a"}.fa-search:before{content:"\f002"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shower:before{content:"\f2cc"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-simplybuilt:before{content:"\f215"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowflake:before{content:"\f2dc"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-spinner:before{content:"\f110"}.fa-spotify:before{content:"\f1bc"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-star:before{content:"\f005"}.fa-star-half:before{content:"\f089"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-strava:before{content:"\f428"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-trademark:before{content:"\f25c"}.fa-train:before{content:"\f238"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-uikit:before{content:"\f403"}.fa-umbrella:before{content:"\f0e9"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-circle:before{content:"\f2bd"}.fa-user-md:before{content:"\f0f0"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vuejs:before{content:"\f41f"}.fa-warehouse:before{content:"\f494"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wrench:before{content:"\f0ad"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}
\ No newline at end of file
diff --git a/app/assets/fonts/roboto-medium.css b/app/assets/fonts/roboto-medium.css
new file mode 100644
index 00000000..bd223e5b
--- /dev/null
+++ b/app/assets/fonts/roboto-medium.css
@@ -0,0 +1,13 @@
+@font-face {
+ font-family: 'Roboto';
+ font-style: normal;
+ font-weight: 500;
+ src: url('roboto-medium.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'RobotoMono';
+ font-style: normal;
+ font-weight: 500;
+ src: url('roboto-mono.woff') format('woff');
+}
diff --git a/app/assets/fonts/roboto-medium.woff b/app/assets/fonts/roboto-medium.woff
new file mode 100644
index 00000000..ced7907e
Binary files /dev/null and b/app/assets/fonts/roboto-medium.woff differ
diff --git a/resources/fonts/roboto-mono.woff b/app/assets/fonts/roboto-mono.woff
similarity index 100%
rename from resources/fonts/roboto-mono.woff
rename to app/assets/fonts/roboto-mono.woff
diff --git a/app/assets/themes/.gitignore b/app/assets/themes/.gitignore
new file mode 100644
index 00000000..d6b7ef32
--- /dev/null
+++ b/app/assets/themes/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore
diff --git a/app/client/index.html b/app/client/index.html
new file mode 100644
index 00000000..f1685a0c
--- /dev/null
+++ b/app/client/index.html
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/examples/ardour.json b/app/examples/ardour.json
new file mode 100644
index 00000000..f62ca83d
--- /dev/null
+++ b/app/examples/ardour.json
@@ -0,0 +1,3362 @@
+[
+ {
+ "type": "root",
+ "tabs": [
+ {
+ "type": "tab",
+ "id": "settings_tab",
+ "linkId": "",
+ "label": "Settings",
+ "color": "auto",
+ "css": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "address": "/tab_1",
+ "preArgs": [],
+ "target": [],
+ "bypass": false,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "strip",
+ "widgets": [
+ {
+ "type": "strip",
+ "id": "greeter",
+ "linkId": "",
+ "height": 40,
+ "label": false,
+ "color": "auto",
+ "css": "",
+ "scroll": true,
+ "border": true,
+ "spacing": 0,
+ "address": "/panel_1",
+ "preArgs": [],
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "svg",
+ "id": "logo",
+ "linkId": "",
+ "label": false,
+ "css": "--color-track:transparent",
+ "svg": "",
+ "preArgs": [],
+ "address": "/svg_1",
+ "width": 50,
+ "default": "",
+ "value": ""
+ },
+ {
+ "type": "text",
+ "id": "greeter_text",
+ "linkId": "",
+ "label": false,
+ "color": "auto",
+ "css": "flex:1",
+ "vertical": false,
+ "wrap": false,
+ "align": "",
+ "default": "",
+ "value": "Ardour Control",
+ "preArgs": [],
+ "address": "/text_4",
+ "width": "auto"
+ },
+ {
+ "type": "image",
+ "id": "osc_logo",
+ "linkId": "",
+ "width": 50,
+ "label": false,
+ "css": "",
+ "default": "",
+ "value": "/assets/favicon.png",
+ "address": "/fader_13",
+ "preArgs": [],
+ "size": "60%",
+ "position": "center",
+ "repeat": "no-repeat",
+ "border": true,
+ "cache": true
+ }
+ ],
+ "horizontal": true,
+ "stretch": false,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "strip_types_select",
+ "label": "strip types",
+ "height": 80,
+ "color": "auto",
+ "css": "",
+ "widgets": [
+ {
+ "type": "toggle",
+ "id": "strip_type_1",
+ "linkId": "",
+ "label": "Audio",
+ "color": "auto",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "value": 1,
+ "precision": 2,
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "address": "/strip_type_1",
+ "led": false,
+ "doubleTap": false,
+ "default": "",
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "strip_type_2",
+ "label": "Midi",
+ "color": "auto",
+ "css": "",
+ "on": 2,
+ "off": 0,
+ "value": 2,
+ "precision": 2,
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "address": "/strip_type_2",
+ "linkId": "",
+ "led": false,
+ "doubleTap": false,
+ "default": "",
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "strip_type_3",
+ "label": "AudioBus",
+ "color": "auto",
+ "css": "",
+ "on": 4,
+ "off": 0,
+ "value": 4,
+ "precision": 2,
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "address": "/strip_type_3",
+ "linkId": "",
+ "led": false,
+ "doubleTap": false,
+ "default": "",
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "strip_type_4",
+ "label": "MidiBus",
+ "color": "auto",
+ "css": "",
+ "on": 8,
+ "off": 0,
+ "value": 8,
+ "precision": 2,
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "address": "/strip_type_4",
+ "linkId": "",
+ "led": false,
+ "doubleTap": false,
+ "default": "",
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "strip_type_5",
+ "label": "VCA",
+ "color": "auto",
+ "css": "",
+ "on": 16,
+ "off": 0,
+ "value": 16,
+ "precision": 2,
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "address": "/strip_type_5",
+ "linkId": "",
+ "led": false,
+ "doubleTap": false,
+ "default": "",
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "strip_type_6",
+ "label": "Master",
+ "color": "auto",
+ "css": "",
+ "on": 32,
+ "off": 0,
+ "value": "",
+ "precision": 2,
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "address": "/strip_type_6",
+ "linkId": "",
+ "led": false,
+ "doubleTap": false,
+ "default": "",
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "strip_type_7",
+ "label": "Monitor",
+ "color": "auto",
+ "css": "",
+ "on": 64,
+ "off": 0,
+ "value": "",
+ "precision": 2,
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "address": "/strip_type_7",
+ "linkId": "",
+ "led": false,
+ "doubleTap": false,
+ "default": "",
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "strip_type_8",
+ "label": "Aux",
+ "color": "auto",
+ "css": "",
+ "on": 128,
+ "off": 0,
+ "value": 128,
+ "precision": 2,
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "address": "/strip_type_8",
+ "linkId": "",
+ "led": false,
+ "doubleTap": false,
+ "default": "",
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "strip_type_9",
+ "label": "Selected",
+ "color": "auto",
+ "on": 256,
+ "off": 0,
+ "value": "",
+ "precision": 2,
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "address": "/strip_type_9",
+ "linkId": "",
+ "css": "",
+ "led": false,
+ "doubleTap": false,
+ "default": "",
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "strip_type_10",
+ "label": "Hidden",
+ "color": "auto",
+ "css": "",
+ "on": 512,
+ "off": 0,
+ "value": "",
+ "precision": 2,
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "address": "/strip_type_10",
+ "linkId": "",
+ "led": false,
+ "doubleTap": false,
+ "default": "",
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "input",
+ "id": "trip_type_bitsum",
+ "linkId": "",
+ "label": "bits",
+ "color": "auto",
+ "css": ".label{height:25rem}",
+ "precision": 0,
+ "address": "/set_surface/strip_types",
+ "preArgs": [],
+ "target": [],
+ "unit": "",
+ "vertical": false,
+ "editable": false,
+ "value": "#{\n@{strip_type_1} + \n@{strip_type_2} + \n@{strip_type_3} + \n@{strip_type_4} + \n@{strip_type_5} + \n@{strip_type_6} + \n@{strip_type_7} + \n@{strip_type_8} + \n@{strip_type_9} + \n@{strip_type_10}\n}",
+ "align": "",
+ "default": "",
+ "bypass": false,
+ "width": "auto"
+ }
+ ],
+ "horizontal": true,
+ "stretch": true,
+ "spacing": 0,
+ "variables": {},
+ "border": true,
+ "scroll": true,
+ "address": "/strip_types_select",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "widgets": [
+ {
+ "type": "switch",
+ "id": "bank_size",
+ "linkId": "",
+ "label": "Bank size",
+ "height": 80,
+ "color": "auto",
+ "css": "",
+ "horizontal": true,
+ "address": "/set_surface/bank_size",
+ "default": 6,
+ "value": "",
+ "precision": 0,
+ "preArgs": [],
+ "target": [],
+ "bypass": false,
+ "showValues": false,
+ "values": [
+ 6,
+ 8,
+ 10,
+ 12
+ ]
+ }
+ ],
+ "label": false,
+ "id": "bank_size_wrapper",
+ "linkId": "",
+ "height": 80,
+ "color": "auto",
+ "css": "",
+ "scroll": true,
+ "horizontal": false,
+ "stretch": false,
+ "border": true,
+ "spacing": 0,
+ "variables": "@{parent.variables}",
+ "preArgs": [],
+ "address": "/bank_size_wrapper",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "display_layout",
+ "linkId": "",
+ "height": 80,
+ "label": "Layout options",
+ "color": "auto",
+ "css": "",
+ "scroll": true,
+ "border": true,
+ "spacing": 0,
+ "address": "/panel_13",
+ "preArgs": [],
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "toggle",
+ "id": "display_session_name",
+ "linkId": "",
+ "label": "Session name",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": 1,
+ "value": "",
+ "precision": 2,
+ "address": "/display_session_name",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "display_transport",
+ "linkId": "",
+ "label": "Transport",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": 1,
+ "value": "",
+ "precision": 2,
+ "address": "/display_transport",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "display_monitor",
+ "linkId": "",
+ "label": "Monitor",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": 1,
+ "value": "",
+ "precision": 2,
+ "address": "/display_monitor",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "bypass": false,
+ "width": "auto"
+ }
+ ],
+ "horizontal": true,
+ "stretch": true,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "display_strip",
+ "linkId": "",
+ "height": 80,
+ "label": "Strip options",
+ "color": "auto",
+ "css": "",
+ "scroll": true,
+ "border": true,
+ "spacing": 0,
+ "address": "/panel_13",
+ "preArgs": [],
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "toggle",
+ "id": "display_trim",
+ "linkId": "",
+ "label": "Trim",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": 1,
+ "value": "",
+ "precision": 2,
+ "address": "/display_trim",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "display_recbar",
+ "linkId": "",
+ "label": "Rec / Mic / Disk",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": 1,
+ "value": "",
+ "precision": 2,
+ "address": "/display_recbar",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "bypass": false,
+ "width": 100
+ },
+ {
+ "type": "toggle",
+ "id": "display_input",
+ "linkId": "",
+ "label": "Gain Input",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": 1,
+ "value": "",
+ "precision": 2,
+ "address": "/display_pan",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "display_pan",
+ "linkId": "",
+ "label": "Pan",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": 1,
+ "value": "",
+ "precision": 2,
+ "address": "/display_pan",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "display_expand",
+ "linkId": "",
+ "label": "Sel²",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": 1,
+ "value": "",
+ "precision": 2,
+ "address": "/display_expand",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "display_compact_faders",
+ "linkId": "",
+ "label": "Compact",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": "",
+ "value": "",
+ "precision": 2,
+ "address": "/display_compact_faders",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "bypass": false,
+ "width": "auto"
+ }
+ ],
+ "horizontal": true,
+ "stretch": true,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "display_selected",
+ "linkId": "",
+ "height": 80,
+ "label": "Select options",
+ "color": "auto",
+ "css": "",
+ "scroll": true,
+ "border": true,
+ "spacing": 0,
+ "address": "/panel_13",
+ "preArgs": [],
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "toggle",
+ "id": "display_polarity_sel",
+ "linkId": "",
+ "label": "Polarity",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": 1,
+ "value": "",
+ "precision": 2,
+ "address": "/display_polarity_sel",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "display_trim_sel",
+ "linkId": "",
+ "label": "Trim",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": 1,
+ "value": "",
+ "precision": 2,
+ "address": "/display_trim_sel",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "display_recbar_sel",
+ "linkId": "",
+ "label": "Rec / Mic / Disk",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": 1,
+ "value": "",
+ "precision": 2,
+ "address": "/display_recbar_sel",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "bypass": false,
+ "width": "auto"
+ },
+ {
+ "type": "toggle",
+ "id": "display_pan_sel",
+ "linkId": "",
+ "label": "Pan",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": 1,
+ "value": "",
+ "precision": 2,
+ "address": "/display_pan_sel",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "bypass": false,
+ "width": "auto"
+ }
+ ],
+ "horizontal": true,
+ "stretch": true,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "panel",
+ "id": "spacer",
+ "linkId": "",
+ "height": "auto",
+ "label": false,
+ "color": "auto",
+ "css": "flex:1",
+ "scroll": true,
+ "border": true,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "address": "/panel_2",
+ "preArgs": [],
+ "target": [],
+ "bypass": false,
+ "variables": "@{parent.variables}",
+ "widgets": [],
+ "tabs": []
+ },
+ {
+ "type": "push",
+ "id": "connect",
+ "label": "Connect",
+ "css": "",
+ "on": null,
+ "off": 0,
+ "precision": 0,
+ "target": [],
+ "color": "auto",
+ "preArgs": "#{\nf = 1 + 2 + 16 + 128 + 8192 + 16384;\n@{display_transport}==1?f=f+64:\"\";\n}\n\n[\n @{bank_size},\n @{trip_type_bitsum},\n #{f},\n 0,\n 0,\n 1\n]",
+ "norelease": true,
+ "address": "/set_surface",
+ "linkId": "",
+ "bypass": false,
+ "height": 70
+ },
+ {
+ "type": "panel",
+ "id": "hidden_utils",
+ "linkId": "",
+ "height": "auto",
+ "label": false,
+ "color": "auto",
+ "css": "display:none;",
+ "default": "",
+ "value": "",
+ "precision": 2,
+ "address": "/fader_13",
+ "preArgs": [],
+ "target": [],
+ "bypass": false,
+ "scroll": true,
+ "border": true,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "text",
+ "id": "loading",
+ "linkId": "",
+ "left": "auto",
+ "top": "auto",
+ "width": "auto",
+ "height": "auto",
+ "label": false,
+ "color": "transparent",
+ "css": "*{background:transparent}",
+ "default": "",
+ "value": "",
+ "address": "/fader_14",
+ "preArgs": [],
+ "vertical": false,
+ "wrap": false,
+ "align": ""
+ }
+ ],
+ "tabs": []
+ }
+ ],
+ "label": false,
+ "top": 0,
+ "left": "auto",
+ "id": "strip_2",
+ "linkId": "",
+ "width": "100%",
+ "height": "100%",
+ "color": "auto",
+ "css": "",
+ "scroll": true,
+ "horizontal": false,
+ "stretch": false,
+ "border": true,
+ "spacing": 0,
+ "variables": "@{parent.variables}",
+ "preArgs": [],
+ "address": "/strip_2",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ }
+ ],
+ "tabs": [],
+ "scroll": true
+ },
+ {
+ "label": "mixer",
+ "widgets": [
+ {
+ "type": "strip",
+ "top": 0,
+ "left": 0,
+ "id": "mixer_main",
+ "label": false,
+ "width": "100%",
+ "height": "100%",
+ "scroll": true,
+ "color": "auto",
+ "css": "",
+ "spacing": 0,
+ "variables": {},
+ "widgets": [
+ {
+ "type": "text",
+ "id": "sess_name",
+ "label": false,
+ "height": 40,
+ "vertical": false,
+ "css": "#{\n@{display_session_name}==0?\"display:none\":\"\"\n}",
+ "preArgs": [],
+ "value": " ",
+ "address": "/session_name",
+ "color": "auto",
+ "linkId": "",
+ "wrap": false,
+ "align": "",
+ "default": ""
+ },
+ {
+ "type": "strip",
+ "id": "transport",
+ "label": false,
+ "height": 40,
+ "color": "auto",
+ "widgets": [
+ {
+ "type": "fader",
+ "id": "shttl",
+ "label": false,
+ "alignRight": false,
+ "horizontal": true,
+ "compact": true,
+ "color": "auto",
+ "snap": false,
+ "spring": true,
+ "range": {
+ "min": -8,
+ "max": 8
+ },
+ "origin": 0,
+ "value": "",
+ "logScale": false,
+ "precision": 2,
+ "meter": false,
+ "address": "/set_transport_speed",
+ "preArgs": [],
+ "target": [],
+ "touchAddress": "",
+ "meterAddress": "",
+ "pips": false,
+ "input": false,
+ "dashed": false,
+ "doubleTap": false,
+ "unit": "",
+ "width": 114,
+ "css": "",
+ "linkId": "",
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "push",
+ "id": "zero",
+ "linkId": "",
+ "label": "^step-backward",
+ "css": "margin: 3rem 2rem",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "color": "auto",
+ "norelease": true,
+ "address": "/goto_start",
+ "width": 55,
+ "bypass": false
+ },
+ {
+ "type": "push",
+ "id": "end",
+ "linkId": "",
+ "label": "^step-forward",
+ "css": "margin: 3rem 2rem",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "color": "auto",
+ "norelease": true,
+ "address": "/goto_end",
+ "width": 55,
+ "bypass": false
+ },
+ {
+ "type": "push",
+ "id": "play",
+ "linkId": "",
+ "label": "^play",
+ "color": "lime",
+ "css": "margin: 3rem 2rem",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "norelease": true,
+ "address": "/transport_play",
+ "width": 55,
+ "bypass": false
+ },
+ {
+ "type": "push",
+ "id": "transport_stop",
+ "linkId": "",
+ "label": "^stop",
+ "color": "red",
+ "css": "margin: 3rem 2rem",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "norelease": true,
+ "address": "/transport_stop",
+ "width": 55,
+ "bypass": false
+ },
+ {
+ "type": "push",
+ "id": "masterrec",
+ "linkId": "",
+ "label": "^circle",
+ "color": "red",
+ "css": "margin: 3rem 2rem",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "norelease": true,
+ "address": "/rec_enable_toggle",
+ "width": 55,
+ "bypass": false
+ },
+ {
+ "type": "text",
+ "id": "time",
+ "label": false,
+ "vertical": false,
+ "css": "font-size:120%; flex:4",
+ "preArgs": [],
+ "value": "00:00:00:00",
+ "address": "/position/smpte",
+ "width": 100,
+ "color": "auto",
+ "linkId": "",
+ "wrap": false,
+ "align": "",
+ "default": ""
+ }
+ ],
+ "variables": {},
+ "border": false,
+ "css": "#{\n@{display_transport}==0?\"display:none\":\"\"\n}",
+ "horizontal": true,
+ "stretch": false,
+ "spacing": 4,
+ "scroll": false,
+ "address": "/transport",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "widgets": [
+ {
+ "type": "strip",
+ "id": "strip_scroll_panel",
+ "label": false,
+ "color": "auto",
+ "spacing": 0,
+ "variables": {
+ "n": 1
+ },
+ "widgets": [
+ {
+ "type": "strip",
+ "id": "channel_strip",
+ "label": false,
+ "css": "",
+ "widgets": [
+ {
+ "type": "text",
+ "id": "chan_@{parent.variables.n}",
+ "label": false,
+ "height": 40,
+ "css": "",
+ "preArgs": [
+ "@{parent.variables.n}"
+ ],
+ "vertical": false,
+ "address": "/strip/name",
+ "value": "@{parent.variables.n}",
+ "color": "auto",
+ "linkId": "",
+ "wrap": false,
+ "align": "",
+ "default": ""
+ },
+ {
+ "type": "strip",
+ "id": "trim_@{parent.variables.n}",
+ "label": false,
+ "height": 60,
+ "color": "auto",
+ "css": "#{\n@{display_trim}==0?\"display:none\":\"\"\n}",
+ "horizontal": true,
+ "stretch": false,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "strip",
+ "id": "trim_meta_@{parent.variables.n}",
+ "label": false,
+ "width": 50,
+ "color": "auto",
+ "horizontal": false,
+ "stretch": true,
+ "border": false,
+ "spacing": 0,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "text",
+ "id": "trim_label_@{parent.variables.n}",
+ "label": false,
+ "color": "auto",
+ "value": "Trim",
+ "preArgs": [],
+ "address": "/trim_label_@{parent.variables.n}",
+ "vertical": false,
+ "css": "",
+ "linkId": "",
+ "wrap": false,
+ "align": "",
+ "default": "",
+ "height": "auto"
+ },
+ {
+ "type": "input",
+ "id": "trim_input_@{parent.variables.n}",
+ "label": false,
+ "color": "auto",
+ "preArgs": [],
+ "linkId": "trim_knob_@{parent.variables.n}",
+ "unit": "",
+ "editable": true,
+ "precision": 1,
+ "target": [],
+ "value": "",
+ "address": "/trim_input_@{parent.variables.n}",
+ "css": "",
+ "vertical": false,
+ "align": "",
+ "default": "",
+ "bypass": false,
+ "height": "auto"
+ }
+ ],
+ "scroll": true,
+ "css": "",
+ "address": "/trim_meta_@{parent.variables.n}",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "knob",
+ "id": "trim_knob_@{parent.variables.n}",
+ "linkId": "trim_knob_@{parent.variables.n}",
+ "label": false,
+ "unit": "",
+ "range": {
+ "min": -20,
+ "max": 20
+ },
+ "logScale": false,
+ "precision": 2,
+ "target": [],
+ "preArgs": [
+ "@{parent.variables.n}"
+ ],
+ "snap": false,
+ "origin": 0,
+ "spring": false,
+ "value": "",
+ "address": "/strip/trimdB",
+ "touchAddress": "",
+ "pips": false,
+ "input": false,
+ "dashed": false,
+ "doubleTap": false,
+ "css": "",
+ "color": "auto",
+ "angle": 270,
+ "width": "auto",
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "scroll": true,
+ "address": "/trim_@{parent.variables.n}",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "rec_buttons_@{parent.variables.n}",
+ "label": false,
+ "height": 40,
+ "color": "auto",
+ "css": "#{\n@{display_recbar}==0?\"display:none\":\"\"\n}",
+ "horizontal": true,
+ "stretch": false,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "toggle",
+ "id": "record_@{parent.variables.n}",
+ "linkId": "",
+ "label": "^circle",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "target": [],
+ "color": "red",
+ "preArgs": [
+ "@{parent.variables.n}"
+ ],
+ "value": "",
+ "address": "/strip/recenable",
+ "led": false,
+ "css": "",
+ "width": "auto",
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "toggle",
+ "id": "mon_@{parent.variables.n}",
+ "linkId": "",
+ "label": "^microphone",
+ "precision": 0,
+ "target": [],
+ "color": "orange",
+ "preArgs": [
+ "@{parent.variables.n}"
+ ],
+ "off": 0,
+ "on": 1,
+ "value": "",
+ "address": "/strip/monitor_input",
+ "led": false,
+ "css": "",
+ "width": "auto",
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "toggle",
+ "id": "disk_@{parent.variables.n}",
+ "linkId": "",
+ "label": "^hdd",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "precision": 0,
+ "target": [],
+ "color": "orange",
+ "preArgs": [
+ "@{parent.variables.n}"
+ ],
+ "value": "",
+ "address": "/strip/monitor_disk",
+ "led": false,
+ "width": "auto",
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "scroll": true,
+ "address": "/top_buttons_@{parent.variables.n}",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "fader_strip_@{parent.variables.n}",
+ "label": false,
+ "color": "auto",
+ "css": "flex:1;",
+ "spacing": 3,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "meter",
+ "id": "meter_@{parent.variables.n}",
+ "label": false,
+ "unit": "",
+ "alignRight": false,
+ "horizontal": false,
+ "pips": false,
+ "dashed": true,
+ "color": "auto",
+ "range": {
+ "min": {
+ "inf": -193
+ },
+ "6%": -60,
+ "12%": -50,
+ "20%": -40,
+ "30%": -30,
+ "42%": -20,
+ "60%": -10,
+ "80%": 0,
+ "max": 6
+ },
+ "logScale": false,
+ "origin": "auto",
+ "value": "",
+ "address": "/strip/meter",
+ "preArgs": [
+ "@{parent.variables.n}"
+ ],
+ "css": "#{\n@{display_compact_faders} ? \n\"\" : \"margin: 20rem 0 20rem 20rem\"\n}",
+ "width": 10,
+ "linkId": "",
+ "default": "",
+ "compact": true,
+ "input": false,
+ "meter": false,
+ "snap": false,
+ "spring": false,
+ "doubleTap": false,
+ "precision": 2,
+ "target": "",
+ "bypass": false,
+ "touchAddress": "",
+ "meterAddress": ""
+ },
+ {
+ "type": "fader",
+ "id": "fader_@{parent.variables.n}",
+ "linkId": "fader_@{parent.variables.n}",
+ "label": false,
+ "unit": "dB",
+ "horizontal": false,
+ "css": "flex:1",
+ "range": {
+ "min": {
+ "-∞": -193
+ },
+ "6%": -60,
+ "12%": -50,
+ "20%": -40,
+ "30%": -30,
+ "42%": -20,
+ "60%": -10,
+ "80%": 0,
+ "max": 6
+ },
+ "logScale": false,
+ "precision": 2,
+ "meter": false,
+ "target": [],
+ "color": "auto",
+ "preArgs": [
+ "@{parent.variables.n}"
+ ],
+ "snap": false,
+ "compact": "#{@{display_compact_faders}}",
+ "alignRight": "#{@{display_compact_faders}}",
+ "origin": "auto",
+ "spring": false,
+ "value": "",
+ "address": "/strip/gain",
+ "touchAddress": "",
+ "meterAddress": "/strip/meter",
+ "pips": true,
+ "input": false,
+ "dashed": false,
+ "doubleTap": false,
+ "width": 80,
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "height": "auto",
+ "border": false,
+ "horizontal": true,
+ "stretch": false,
+ "scroll": false,
+ "address": "/fader_strip_@{parent.variables.n}",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "input",
+ "id": "fader_input_@{parent.variables.n}",
+ "linkId": "fader_@{parent.variables.n}",
+ "label": false,
+ "unit": "dB",
+ "height": 30,
+ "color": "auto",
+ "css": "margin:3rem 3rem 0;\n#{\n@{display_input}==0?\"display:none\":\"\"\n}",
+ "editable": true,
+ "value": "",
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "address": "/fader_input_@{parent.variables.n}",
+ "vertical": false,
+ "align": "",
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "fader",
+ "id": "pan_@{parent.variables.n}",
+ "linkId": "",
+ "label": false,
+ "unit": "",
+ "height": 30,
+ "horizontal": true,
+ "range": {
+ "min": 0,
+ "max": 1
+ },
+ "logScale": false,
+ "precision": 2,
+ "meter": false,
+ "target": [],
+ "preArgs": [
+ "@{parent.variables.n}"
+ ],
+ "snap": false,
+ "compact": true,
+ "alignRight": false,
+ "origin": 0.5,
+ "spring": false,
+ "value": "",
+ "address": "/strip/pan_stereo_position",
+ "touchAddress": "",
+ "meterAddress": "",
+ "pips": false,
+ "input": false,
+ "dashed": false,
+ "doubleTap": true,
+ "color": "auto",
+ "css": "margin:3rem;\n#{\n@{display_pan}==0?\"display:none\":\"\"\n}",
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "strip",
+ "id": "mute_buttons_@{parent.variables.n}",
+ "label": false,
+ "height": 40,
+ "color": "auto",
+ "css": "",
+ "horizontal": true,
+ "stretch": false,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "toggle",
+ "id": "mute_@{parent.variables.n}",
+ "linkId": "",
+ "label": "Mute",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "target": [],
+ "color": "yellow",
+ "preArgs": [
+ "@{parent.variables.n}"
+ ],
+ "value": "",
+ "address": "/strip/mute",
+ "led": false,
+ "width": "auto",
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "toggle",
+ "id": "solo_@{parent.variables.n}",
+ "linkId": "",
+ "label": "Solo",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "target": [],
+ "color": "lime",
+ "preArgs": [
+ "@{parent.variables.n}"
+ ],
+ "value": "",
+ "address": "/strip/solo",
+ "led": false,
+ "width": "auto",
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "scroll": true,
+ "address": "/bottom_buttons_@{parent.variables.n}",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "sel_buttons_@{parent.variables.n}",
+ "label": false,
+ "height": 40,
+ "color": "auto",
+ "css": "",
+ "horizontal": true,
+ "stretch": true,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "push",
+ "id": "sel_@{parent.variables.n}",
+ "linkId": "",
+ "label": "#{\n@{display_expand}==0?\n\"Select\":\"Sel\"\n}",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "target": [],
+ "color": "white",
+ "preArgs": [
+ "@{parent.variables.n}"
+ ],
+ "norelease": false,
+ "address": "/strip/select",
+ "width": "auto",
+ "bypass": false
+ },
+ {
+ "type": "toggle",
+ "id": "expand_@{parent.variables.n}",
+ "linkId": "",
+ "label": "Sel²",
+ "css": "#{\n@{display_expand}==0?\"display:none\":\"\"\n}",
+ "on": 1,
+ "off": 0,
+ "precision": 0,
+ "target": [],
+ "color": "pink",
+ "preArgs": [
+ "@{parent.variables.n}"
+ ],
+ "value": "",
+ "address": "/strip/expand",
+ "led": false,
+ "width": "auto",
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "scroll": true,
+ "address": "/bottom_buttons_@{parent.variables.n}",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ }
+ ],
+ "color": "auto",
+ "spacing": 0,
+ "border": false,
+ "horizontal": false,
+ "stretch": false,
+ "scroll": true,
+ "variables": {
+ "n": 1
+ },
+ "address": "/channel_strip",
+ "preArgs": [],
+ "linkId": "",
+ "width": 120,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "clone",
+ "id": "clone_2",
+ "widgetId": "channel_strip",
+ "css": "",
+ "props": {
+ "variables": {
+ "n": 2
+ },
+ "id": "channel_strip_2"
+ },
+ "width": 120,
+ "label": "",
+ "variables": "@{parent.variables}"
+ },
+ {
+ "type": "clone",
+ "id": "clone_3",
+ "widgetId": "channel_strip",
+ "css": "",
+ "props": {
+ "variables": {
+ "n": 3
+ },
+ "id": "channel_strip_3"
+ },
+ "width": 120,
+ "label": "",
+ "variables": "@{parent.variables}"
+ },
+ {
+ "type": "clone",
+ "id": "clone_4",
+ "widgetId": "channel_strip",
+ "css": "",
+ "props": {
+ "variables": {
+ "n": 4
+ },
+ "id": "channel_strip_4"
+ },
+ "width": 120,
+ "label": "",
+ "variables": "@{parent.variables}"
+ },
+ {
+ "type": "clone",
+ "id": "clone_5",
+ "widgetId": "channel_strip",
+ "css": "",
+ "props": {
+ "variables": {
+ "n": 5
+ },
+ "id": "channel_strip_5"
+ },
+ "width": 120,
+ "label": "",
+ "variables": "@{parent.variables}"
+ },
+ {
+ "type": "clone",
+ "id": "clone_6",
+ "widgetId": "channel_strip",
+ "css": "",
+ "props": {
+ "variables": {
+ "n": 6
+ },
+ "id": "channel_strip_6"
+ },
+ "width": 120,
+ "label": "",
+ "variables": "@{parent.variables}"
+ },
+ {
+ "type": "clone",
+ "id": "clone_7",
+ "widgetId": "#{\n@{bank_size}>6?\n\"channel_strip\" : \"\"\n}",
+ "css": "#{\n@{bank_size}<8?\n\"display:none\" : \"\"\n}",
+ "props": {
+ "variables": {
+ "n": 7
+ },
+ "id": "channel_strip_7"
+ },
+ "width": 120,
+ "label": "",
+ "variables": "@{parent.variables}"
+ },
+ {
+ "type": "clone",
+ "id": "clone_8",
+ "widgetId": "#{\n@{bank_size}>6?\n\"channel_strip\" : \"\"\n}",
+ "css": "#{\n@{bank_size}<8?\n\"display:none\" : \"\"\n}",
+ "props": {
+ "variables": {
+ "n": 8
+ },
+ "id": "channel_strip_8"
+ },
+ "width": 120,
+ "label": "",
+ "variables": "@{parent.variables}"
+ },
+ {
+ "type": "clone",
+ "id": "clone_9",
+ "widgetId": "#{\n@{bank_size}>8?\n\"channel_strip\" : \"\"\n}",
+ "css": "#{\n@{bank_size}<10?\n\"display:none\" : \"\"\n}",
+ "props": {
+ "variables": {
+ "n": 9
+ },
+ "id": "channel_strip_9"
+ },
+ "width": 120,
+ "label": "",
+ "variables": "@{parent.variables}"
+ },
+ {
+ "type": "clone",
+ "id": "clone_10",
+ "widgetId": "#{\n@{bank_size}>8?\n\"channel_strip\" : \"\"\n}",
+ "css": "#{\n@{bank_size}<10?\n\"display:none\" : \"\"\n}",
+ "props": {
+ "variables": {
+ "n": 10
+ },
+ "id": "channel_strip_10"
+ },
+ "width": 120,
+ "label": "",
+ "variables": "@{parent.variables}"
+ },
+ {
+ "type": "clone",
+ "id": "clone_11",
+ "widgetId": "#{\n@{bank_size}>10?\n\"channel_strip\" : \"\"\n}",
+ "css": "#{\n@{bank_size}<12?\n\"display:none\" : \"\"\n}",
+ "props": {
+ "variables": {
+ "n": 11
+ },
+ "id": "channel_strip_11"
+ },
+ "width": 120,
+ "label": "",
+ "variables": "@{parent.variables}"
+ },
+ {
+ "type": "clone",
+ "id": "clone_12",
+ "widgetId": "#{\n@{bank_size}>10?\n\"channel_strip\" : \"\"\n}",
+ "css": "#{\n@{bank_size}<12?\n\"display:none\" : \"\"\n}",
+ "props": {
+ "variables": {
+ "n": 12
+ },
+ "id": "channel_strip_12"
+ },
+ "width": 120,
+ "label": "",
+ "variables": "@{parent.variables}"
+ }
+ ],
+ "css": "flex:1;\nmargin-right:1px;",
+ "border": true,
+ "scroll": true,
+ "address": "/strip_scroll_panel",
+ "preArgs": [],
+ "linkId": "",
+ "width": "auto",
+ "horizontal": true,
+ "stretch": false,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "ch_master",
+ "label": false,
+ "css": "",
+ "widgets": [
+ {
+ "type": "text",
+ "id": "master_label",
+ "label": false,
+ "height": 40,
+ "css": "",
+ "vertical": false,
+ "value": "Master",
+ "address": "/master_label",
+ "color": "auto",
+ "preArgs": [],
+ "linkId": "",
+ "wrap": false,
+ "align": "",
+ "default": ""
+ },
+ {
+ "type": "strip",
+ "id": "master_trim_strip",
+ "label": false,
+ "height": 60,
+ "color": "auto",
+ "css": "#{\n@{display_trim}==0?\"display:none\":\"\"\n}",
+ "horizontal": true,
+ "stretch": false,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "strip",
+ "id": "trim_meta_@{parent.variables.n}",
+ "label": false,
+ "width": 50,
+ "color": "auto",
+ "horizontal": false,
+ "stretch": true,
+ "border": false,
+ "spacing": 0,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "text",
+ "id": "mastertrim_label",
+ "label": false,
+ "color": "auto",
+ "css": "line-height:12rem",
+ "value": "Trim",
+ "preArgs": [],
+ "address": "/mastertrim_label",
+ "vertical": false,
+ "linkId": "",
+ "wrap": false,
+ "align": "",
+ "default": "",
+ "height": "auto"
+ },
+ {
+ "type": "input",
+ "id": "mastertrim_input",
+ "label": false,
+ "color": "auto",
+ "preArgs": [],
+ "linkId": "mastertrim",
+ "unit": "",
+ "editable": true,
+ "precision": 1,
+ "target": [],
+ "value": "",
+ "address": "/mastertrim_input",
+ "css": "",
+ "vertical": false,
+ "align": "",
+ "default": "",
+ "bypass": false,
+ "height": "auto"
+ }
+ ],
+ "scroll": true,
+ "css": "",
+ "address": "/trim_meta_@{parent.variables.n}",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "knob",
+ "id": "mastertrim",
+ "linkId": "mastertrim",
+ "label": false,
+ "unit": "",
+ "range": {
+ "min": -20,
+ "max": 20
+ },
+ "logScale": false,
+ "precision": 2,
+ "target": [],
+ "snap": false,
+ "origin": 0,
+ "spring": false,
+ "value": "",
+ "address": "/master/trimdB",
+ "touchAddress": "",
+ "pips": false,
+ "input": false,
+ "dashed": false,
+ "doubleTap": false,
+ "css": "",
+ "color": "auto",
+ "angle": 270,
+ "width": "auto",
+ "preArgs": [],
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "scroll": true,
+ "address": "/master_trim_strip",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "monitor_modal_strip",
+ "label": false,
+ "height": 40,
+ "color": "auto",
+ "css": "#{\n@{display_monitor}==0?\"display:none\":\"\"\n}",
+ "horizontal": true,
+ "stretch": true,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "modal",
+ "id": "monitor_modal",
+ "label": "^headphones",
+ "width": "auto",
+ "color": "auto",
+ "css": "",
+ "doubleTap": false,
+ "popupWidth": "140rem",
+ "popupHeight": "80%",
+ "value": "",
+ "precision": 0,
+ "address": "/modal_1",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "strip",
+ "id": "monitor_strip",
+ "label": false,
+ "height": "100%",
+ "color": "auto",
+ "css": "",
+ "horizontal": false,
+ "stretch": false,
+ "border": true,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "fader",
+ "id": "monitor",
+ "linkId": "",
+ "label": false,
+ "color": "auto",
+ "compact": false,
+ "css": "flex:1",
+ "snap": false,
+ "range": {
+ "min": {
+ "inf": -200
+ },
+ "6%": -60,
+ "12%": -50,
+ "20%": -40,
+ "30%": -30,
+ "42%": -20,
+ "60%": -10,
+ "80%": 0,
+ "max": 10
+ },
+ "logScale": false,
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "origin": "auto",
+ "spring": false,
+ "value": "",
+ "address": "/monitor/gain",
+ "touchAddress": "",
+ "alignRight": false,
+ "horizontal": false,
+ "meter": false,
+ "meterAddress": "",
+ "unit": "",
+ "pips": true,
+ "input": true,
+ "dashed": false,
+ "doubleTap": false,
+ "height": "auto",
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "strip",
+ "id": "monitor_buttons",
+ "label": false,
+ "color": "auto",
+ "css": "font-size:10rem",
+ "horizontal": true,
+ "stretch": false,
+ "border": false,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "toggle",
+ "id": "monmute",
+ "linkId": "",
+ "label": "M",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "target": [],
+ "color": "yellow",
+ "value": "",
+ "address": "/monitor/mute",
+ "led": false,
+ "css": "",
+ "width": "auto",
+ "preArgs": [],
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "toggle",
+ "id": "mondim",
+ "linkId": "",
+ "label": "Dim",
+ "precision": 0,
+ "target": [],
+ "color": "orange",
+ "off": 0,
+ "on": 1,
+ "value": "",
+ "address": "/monitor/dim",
+ "led": false,
+ "css": "",
+ "width": "auto",
+ "preArgs": [],
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "toggle",
+ "id": "monmono",
+ "linkId": "",
+ "label": "Mono",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "precision": 0,
+ "target": [],
+ "color": "cyan",
+ "value": "",
+ "address": "/monitor/mono",
+ "led": false,
+ "preArgs": [],
+ "width": "auto",
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "height": 50,
+ "spacing": 4,
+ "scroll": true,
+ "address": "/monitor_buttons",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ }
+ ],
+ "width": "100%",
+ "left": "auto",
+ "top": "auto",
+ "spacing": 0,
+ "scroll": true,
+ "address": "/monitor_strip",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ }
+ ],
+ "popupLabel": "Monitor",
+ "linkId": "",
+ "popupLeft": "auto",
+ "popupTop": "auto",
+ "default": "",
+ "bypass": false,
+ "scroll": true
+ }
+ ],
+ "scroll": true,
+ "address": "/monitor_modal_strip",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "master_fader_strip",
+ "label": false,
+ "color": "auto",
+ "css": "flex:1",
+ "spacing": 3,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "meter",
+ "id": "Master_meter",
+ "label": false,
+ "unit": "",
+ "alignRight": false,
+ "horizontal": false,
+ "pips": false,
+ "dashed": true,
+ "color": "auto",
+ "range": {
+ "min": {
+ "inf": -193
+ },
+ "6%": -60,
+ "12%": -50,
+ "20%": -40,
+ "30%": -30,
+ "42%": -20,
+ "60%": -10,
+ "80%": 0,
+ "max": 6
+ },
+ "logScale": false,
+ "origin": "auto",
+ "value": "",
+ "address": "/master/meter",
+ "preArgs": [],
+ "css": "#{\n@{display_compact_faders} ? \n\"\" : \"margin: 20rem 0 20rem 20rem\"\n}",
+ "width": 10,
+ "linkId": "",
+ "default": "",
+ "compact": true,
+ "input": false,
+ "meter": false,
+ "snap": false,
+ "spring": false,
+ "doubleTap": false,
+ "precision": 2,
+ "target": "",
+ "bypass": false,
+ "touchAddress": "",
+ "meterAddress": ""
+ },
+ {
+ "type": "fader",
+ "id": "Master",
+ "linkId": "Master",
+ "label": false,
+ "unit": "dB",
+ "horizontal": false,
+ "css": "flex:1",
+ "range": {
+ "min": {
+ "inf": -193
+ },
+ "6%": -60,
+ "12%": -50,
+ "20%": -40,
+ "30%": -30,
+ "42%": -20,
+ "60%": -10,
+ "80%": 0,
+ "max": 6
+ },
+ "logScale": false,
+ "precision": 2,
+ "meter": false,
+ "target": [],
+ "color": "auto",
+ "snap": false,
+ "compact": "#{@{display_compact_faders}}",
+ "alignRight": "#{@{display_compact_faders}}",
+ "origin": "auto",
+ "spring": false,
+ "value": "",
+ "address": "/master/gain",
+ "touchAddress": "",
+ "pips": true,
+ "input": false,
+ "dashed": false,
+ "doubleTap": false,
+ "width": 80,
+ "preArgs": [],
+ "meterAddress": "",
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "height": "auto",
+ "border": false,
+ "horizontal": true,
+ "stretch": false,
+ "scroll": false,
+ "address": "/master_fader_strip",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "input",
+ "id": "master_input",
+ "linkId": "Master",
+ "label": false,
+ "unit": "dB",
+ "height": 30,
+ "color": "auto",
+ "css": "margin:3rem 3rem 0;\n#{\n@{display_input}==0?\"display:none\":\"\"\n}",
+ "editable": true,
+ "value": "",
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "address": "/master_input",
+ "vertical": false,
+ "align": "",
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "fader",
+ "id": "master_pan",
+ "linkId": "",
+ "label": false,
+ "unit": "",
+ "height": 30,
+ "horizontal": true,
+ "range": {
+ "min": 0,
+ "max": 1
+ },
+ "logScale": false,
+ "precision": 2,
+ "meter": false,
+ "target": [],
+ "snap": false,
+ "compact": true,
+ "alignRight": false,
+ "origin": 0.5,
+ "spring": false,
+ "value": "",
+ "address": "/master/pan_stereo_position",
+ "touchAddress": "",
+ "meterAddress": "",
+ "pips": false,
+ "input": false,
+ "dashed": false,
+ "doubleTap": true,
+ "color": "auto",
+ "css": "margin:3rem;\n#{\n@{display_pan}==0?\"display:none\":\"\"\n}",
+ "preArgs": [],
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "strip",
+ "id": "master_mute_strip",
+ "label": false,
+ "height": 40,
+ "color": "auto",
+ "css": "",
+ "horizontal": true,
+ "stretch": true,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "toggle",
+ "id": "mastermute",
+ "linkId": "",
+ "label": "Mute",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "target": [],
+ "color": "yellow",
+ "value": "",
+ "address": "/master/mute",
+ "led": false,
+ "width": "auto",
+ "preArgs": [],
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "push",
+ "id": "solocan",
+ "linkId": "",
+ "label": "Solo",
+ "color": "red",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "norelease": true,
+ "address": "/cancel_all_solos",
+ "css": ":host:not(.on) {\n opacity:0.75;\n}",
+ "width": 55,
+ "bypass": false
+ }
+ ],
+ "scroll": true,
+ "address": "/master_mute_strip",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "bank_strip",
+ "label": false,
+ "height": 40,
+ "color": "auto",
+ "css": "",
+ "horizontal": true,
+ "stretch": true,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "push",
+ "id": "bank_dn",
+ "linkId": "",
+ "label": "^angle-left",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "norelease": false,
+ "address": "/bank_down",
+ "css": ":host:not(.on) {opacity:0.75}",
+ "width": 50,
+ "color": "auto",
+ "bypass": false
+ },
+ {
+ "type": "push",
+ "id": "bank_up",
+ "linkId": "",
+ "label": "^angle-right",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "norelease": false,
+ "address": "/bank_up",
+ "css": ":host:not(.on) {opacity:0.75}",
+ "width": 50,
+ "color": "auto",
+ "bypass": false
+ }
+ ],
+ "scroll": true,
+ "address": "/monitor_modal_strip",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ }
+ ],
+ "spacing": 0,
+ "border": false,
+ "horizontal": false,
+ "stretch": false,
+ "variables": "@{parent.variables}",
+ "scroll": false,
+ "color": "auto",
+ "address": "/ch_master",
+ "preArgs": [],
+ "linkId": "",
+ "width": 120,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ }
+ ],
+ "label": false,
+ "id": "strip_1",
+ "linkId": "",
+ "height": "auto",
+ "color": "auto",
+ "css": "flex:1",
+ "scroll": true,
+ "horizontal": true,
+ "stretch": false,
+ "border": true,
+ "spacing": 0,
+ "variables": "@{parent.variables}",
+ "preArgs": [],
+ "address": "/strip_1",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ }
+ ],
+ "address": "/mixer_main",
+ "preArgs": [],
+ "border": true,
+ "linkId": "",
+ "horizontal": false,
+ "stretch": false,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ }
+ ],
+ "id": "mixer_tab",
+ "type": "tab",
+ "css": "",
+ "value": "",
+ "precision": 0,
+ "preArgs": [],
+ "target": [],
+ "variables": {},
+ "tabs": [],
+ "color": "auto",
+ "address": "/mixer_tab",
+ "linkId": "",
+ "default": "",
+ "bypass": false,
+ "scroll": true
+ },
+ {
+ "type": "tab",
+ "id": "track_tab",
+ "label": "Track",
+ "color": "auto",
+ "css": "",
+ "value": "",
+ "precision": 0,
+ "preArgs": [],
+ "target": [],
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "strip",
+ "top": 0,
+ "left": 0,
+ "id": "mixer_main",
+ "label": false,
+ "width": "100%",
+ "height": "100%",
+ "scroll": true,
+ "color": "auto",
+ "css": "",
+ "spacing": 0,
+ "variables": {},
+ "widgets": [
+ {
+ "type": "clone",
+ "id": "sess_name_clone",
+ "height": 40,
+ "css": "#{\n@{display_session_name}==0?\"display:none\":\"\"\n}",
+ "widgetId": "sess_name",
+ "props": {},
+ "label": "",
+ "variables": "@{parent.variables}"
+ },
+ {
+ "type": "clone",
+ "id": "transport_clone",
+ "height": 40,
+ "css": "#{\n@{display_transport}==0?\"display:none\":\"\"\n}",
+ "widgetId": "transport",
+ "props": {},
+ "label": "",
+ "variables": "@{parent.variables}"
+ },
+ {
+ "type": "strip",
+ "id": "track_panel",
+ "label": false,
+ "color": "auto",
+ "spacing": 0,
+ "variables": {},
+ "widgets": [
+ {
+ "type": "strip",
+ "id": "select_chn",
+ "label": false,
+ "css": "",
+ "widgets": [
+ {
+ "type": "text",
+ "id": "select_name",
+ "label": false,
+ "height": 40,
+ "css": "",
+ "vertical": false,
+ "address": "/select/name",
+ "value": " sel",
+ "preArgs": [],
+ "color": "auto",
+ "linkId": "",
+ "wrap": false,
+ "align": "",
+ "default": ""
+ },
+ {
+ "type": "strip",
+ "id": "trim_select_strip",
+ "label": false,
+ "height": 60,
+ "color": "auto",
+ "css": "#{\n@{display_trim_sel}==0?\"display:none\":\"\"\n}",
+ "horizontal": true,
+ "stretch": false,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "strip",
+ "id": "trim_meta_select",
+ "label": false,
+ "width": 50,
+ "color": "auto",
+ "horizontal": false,
+ "stretch": true,
+ "border": false,
+ "spacing": 0,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "text",
+ "id": "select_trim_label",
+ "label": false,
+ "color": "auto",
+ "css": "",
+ "value": "Trim",
+ "preArgs": [],
+ "address": "/select_trim_label",
+ "vertical": false,
+ "linkId": "",
+ "wrap": false,
+ "align": "",
+ "default": "",
+ "height": "auto"
+ },
+ {
+ "type": "input",
+ "id": "select_trim_input",
+ "label": false,
+ "color": "auto",
+ "css": "",
+ "preArgs": [],
+ "linkId": "select_trim_knob",
+ "unit": "",
+ "editable": true,
+ "precision": 1,
+ "target": [],
+ "address": "/select_trim_input",
+ "value": "",
+ "vertical": false,
+ "align": "",
+ "default": "",
+ "bypass": false,
+ "height": "auto"
+ }
+ ],
+ "scroll": true,
+ "css": "",
+ "address": "/trim_meta_select",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "knob",
+ "id": "select_trim_knob",
+ "linkId": "select_trim_knob",
+ "label": false,
+ "unit": "",
+ "range": {
+ "min": -20,
+ "max": 20
+ },
+ "logScale": false,
+ "precision": 2,
+ "target": [],
+ "snap": false,
+ "origin": 0,
+ "spring": false,
+ "value": "",
+ "address": "/select/trimdB",
+ "touchAddress": "",
+ "pips": false,
+ "input": false,
+ "dashed": false,
+ "doubleTap": false,
+ "css": "",
+ "color": "auto",
+ "angle": 270,
+ "width": "auto",
+ "preArgs": [],
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "scroll": true,
+ "address": "/trim_select_strip",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "toggle",
+ "id": "polarity_select",
+ "linkId": "",
+ "height": 32,
+ "label": "∅",
+ "color": "auto",
+ "css": "margin:4rem;\nfont-weight:bold;\n#{\n@{display_polarity_sel}==0?\"display:none\":\"\"\n}",
+ "doubleTap": false,
+ "led": false,
+ "on": 1,
+ "off": 0,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "address": "/select/polarity",
+ "preArgs": [],
+ "target": [],
+ "bypass": false
+ },
+ {
+ "type": "strip",
+ "id": "top_buttons_select",
+ "label": false,
+ "height": 40,
+ "color": "auto",
+ "css": "#{\n@{display_recbar_sel}==0?\"display:none\":\"\"\n}",
+ "horizontal": true,
+ "stretch": false,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "toggle",
+ "id": "record_select",
+ "linkId": "",
+ "label": "^circle",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "target": [],
+ "color": "red",
+ "value": "",
+ "address": "/select/recenable",
+ "led": false,
+ "css": "",
+ "width": "auto",
+ "preArgs": [],
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "toggle",
+ "id": "mon_select",
+ "linkId": "",
+ "label": "^microphone",
+ "precision": 0,
+ "target": [],
+ "color": "orange",
+ "off": 0,
+ "on": 1,
+ "value": "",
+ "address": "/select/monitor_input",
+ "led": false,
+ "css": "",
+ "width": "auto",
+ "preArgs": [],
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "toggle",
+ "id": "disk_select",
+ "linkId": "",
+ "label": "^hdd",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "precision": 0,
+ "target": [],
+ "color": "orange",
+ "value": "",
+ "address": "/select/monitor_disk",
+ "led": false,
+ "width": "auto",
+ "preArgs": [],
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "scroll": true,
+ "address": "/top_buttons_select",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "sends_receive_buttons_select",
+ "label": false,
+ "height": 40,
+ "color": "auto",
+ "css": "",
+ "horizontal": false,
+ "stretch": false,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "modal",
+ "id": "receives_panel",
+ "label": "Receives",
+ "color": "auto",
+ "css": "display:none",
+ "widgets": [],
+ "popupWidth": "75%",
+ "popupHeight": "75%",
+ "address": "/receives_panel",
+ "variables": {},
+ "value": "",
+ "precision": 0,
+ "preArgs": [],
+ "target": [],
+ "doubleTap": false,
+ "height": "auto",
+ "popupLabel": "",
+ "linkId": "",
+ "popupLeft": "auto",
+ "popupTop": "auto",
+ "default": "",
+ "bypass": false,
+ "scroll": true
+ },
+ {
+ "type": "modal",
+ "id": "sends_panel",
+ "label": "Sends",
+ "color": "auto",
+ "css": "",
+ "widgets": [],
+ "popupWidth": "75%",
+ "popupHeight": "75%",
+ "address": "/sends_panel",
+ "variables": {},
+ "value": "",
+ "precision": 0,
+ "preArgs": [],
+ "target": [],
+ "doubleTap": false,
+ "height": "auto",
+ "popupLabel": "",
+ "linkId": "",
+ "popupLeft": "auto",
+ "popupTop": "auto",
+ "default": "",
+ "bypass": false,
+ "scroll": true
+ }
+ ],
+ "scroll": true,
+ "address": "/sends_receive_buttons_select",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "fader_select_strip",
+ "label": false,
+ "color": "auto",
+ "css": "flex:1",
+ "spacing": 3,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "meter",
+ "id": "meter_select",
+ "label": false,
+ "unit": "",
+ "alignRight": false,
+ "horizontal": false,
+ "pips": false,
+ "dashed": true,
+ "color": "auto",
+ "range": {
+ "min": {
+ "inf": -193
+ },
+ "6%": -60,
+ "12%": -50,
+ "20%": -40,
+ "30%": -30,
+ "42%": -20,
+ "60%": -10,
+ "80%": 0,
+ "max": 6
+ },
+ "logScale": false,
+ "origin": "auto",
+ "value": "",
+ "address": "/select/meter",
+ "css": "#{\n@{display_compact_faders} ? \n\"\" : \"margin: 20rem 0 20rem 20rem\"\n}",
+ "width": 10,
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "compact": true,
+ "input": false,
+ "meter": false,
+ "snap": false,
+ "spring": false,
+ "doubleTap": false,
+ "precision": 2,
+ "target": "",
+ "bypass": false,
+ "touchAddress": "",
+ "meterAddress": ""
+ },
+ {
+ "type": "fader",
+ "id": "fader_select",
+ "linkId": "fader_select",
+ "label": false,
+ "unit": "dB",
+ "horizontal": false,
+ "css": "flex:1",
+ "range": {
+ "min": {
+ "inf": -193
+ },
+ "6%": -60,
+ "12%": -50,
+ "20%": -40,
+ "30%": -30,
+ "42%": -20,
+ "60%": -10,
+ "80%": 0,
+ "max": 6
+ },
+ "logScale": false,
+ "precision": 2,
+ "meter": false,
+ "target": [],
+ "color": "auto",
+ "snap": false,
+ "compact": "#{@{display_compact_faders}}",
+ "alignRight": "#{@{display_compact_faders}}",
+ "origin": "auto",
+ "spring": false,
+ "value": "",
+ "address": "/select/gain",
+ "touchAddress": "",
+ "pips": true,
+ "input": false,
+ "dashed": false,
+ "doubleTap": false,
+ "width": 80,
+ "meterAddress": "",
+ "preArgs": [],
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "height": "auto",
+ "border": false,
+ "horizontal": true,
+ "stretch": false,
+ "scroll": false,
+ "address": "/fader_select_strip",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "input",
+ "id": "fader_input_select",
+ "linkId": "fader_select",
+ "label": false,
+ "unit": "dB",
+ "height": 30,
+ "color": "auto",
+ "css": "margin:3rem 3rem 0;\n#{\n@{display_input}==0?\"display:none\":\"\"\n}",
+ "editable": true,
+ "value": "",
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "address": "/fader_input_select",
+ "vertical": false,
+ "align": "",
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "fader",
+ "id": "pan_select",
+ "linkId": "",
+ "label": false,
+ "unit": "",
+ "height": 30,
+ "horizontal": true,
+ "range": {
+ "min": 0,
+ "max": 1
+ },
+ "logScale": false,
+ "precision": 2,
+ "meter": false,
+ "target": [],
+ "snap": false,
+ "compact": true,
+ "alignRight": false,
+ "origin": 0.5,
+ "spring": false,
+ "value": "",
+ "address": "/select/pan_stereo_position",
+ "touchAddress": "",
+ "meterAddress": "",
+ "pips": false,
+ "input": false,
+ "dashed": false,
+ "doubleTap": true,
+ "color": "auto",
+ "css": "margin:3rem;\n#{\n@{display_pan_sel}==0?\"display:none\":\"\"\n}",
+ "preArgs": [],
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "strip",
+ "id": "bottom_buttons_select",
+ "label": false,
+ "height": 40,
+ "color": "auto",
+ "css": "",
+ "horizontal": true,
+ "stretch": false,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "toggle",
+ "id": "mute_select",
+ "linkId": "",
+ "label": "Mute",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "target": [],
+ "color": "yellow",
+ "value": "",
+ "address": "/select/mute",
+ "led": false,
+ "width": "auto",
+ "preArgs": [],
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "toggle",
+ "id": "solo_select",
+ "linkId": "",
+ "label": "Solo",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "target": [],
+ "color": "lime",
+ "value": "",
+ "address": "/select/solo",
+ "led": false,
+ "width": "auto",
+ "preArgs": [],
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "scroll": true,
+ "address": "/bottom_buttons_select",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "bottom_buttons_select",
+ "label": false,
+ "height": 40,
+ "color": "auto",
+ "css": "#{\n@{display_expand}==0?\"display:none\":\"\"\n}",
+ "horizontal": true,
+ "stretch": true,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "toggle",
+ "id": "expand_select",
+ "linkId": "",
+ "label": "Sel²",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "precision": 0,
+ "target": [],
+ "color": "pink",
+ "value": "",
+ "address": "/select/expand",
+ "led": false,
+ "width": "auto",
+ "preArgs": [],
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "scroll": true,
+ "address": "/bottom_buttons_select",
+ "preArgs": [],
+ "linkId": "",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ }
+ ],
+ "color": "auto",
+ "spacing": 0,
+ "border": false,
+ "horizontal": false,
+ "stretch": false,
+ "variables": "@{parent.variables}",
+ "scroll": true,
+ "address": "/select_chn",
+ "preArgs": [],
+ "linkId": "",
+ "width": 120,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "plugins_panel_wrapper",
+ "label": false,
+ "scroll": true,
+ "color": "auto",
+ "css": "flex:1",
+ "spacing": 0,
+ "variables": {},
+ "widgets": [
+ {
+ "type": "text",
+ "label": false,
+ "height": 40,
+ "value": "Plugins",
+ "id": "text_1",
+ "color": "auto",
+ "css": "",
+ "vertical": false,
+ "preArgs": [],
+ "address": "/text_1",
+ "linkId": "",
+ "wrap": false,
+ "align": "",
+ "default": ""
+ },
+ {
+ "type": "strip",
+ "id": "plugins_panel",
+ "linkId": "",
+ "label": false,
+ "height": "auto",
+ "color": "auto",
+ "css": "flex:1;margin:0rem",
+ "scroll": true,
+ "horizontal": false,
+ "stretch": false,
+ "border": false,
+ "spacing": 4,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "push",
+ "height": 60,
+ "label": "^sync-alt",
+ "address": "/refresh_plugin_list",
+ "norelease": true,
+ "id": "push_6",
+ "linkId": "",
+ "color": "auto",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "bypass": false
+ }
+ ],
+ "preArgs": [],
+ "address": "/plugins_panel",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ }
+ ],
+ "address": "/plugins_panel",
+ "preArgs": [],
+ "border": false,
+ "linkId": "",
+ "horizontal": false,
+ "stretch": false,
+ "width": "auto",
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ },
+ {
+ "type": "clone",
+ "id": "master_clone",
+ "css": "",
+ "widgetId": "ch_master",
+ "props": {},
+ "width": 120,
+ "label": "",
+ "variables": "@{parent.variables}"
+ }
+ ],
+ "css": "flex:1",
+ "height": "auto",
+ "border": true,
+ "scroll": true,
+ "address": "/strip_scroll_panel",
+ "preArgs": [],
+ "linkId": "",
+ "horizontal": true,
+ "stretch": false,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ }
+ ],
+ "address": "/mixer_main",
+ "preArgs": [],
+ "border": true,
+ "linkId": "",
+ "horizontal": false,
+ "stretch": false,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "tabs": []
+ }
+ ],
+ "tabs": [],
+ "address": "/track_tab",
+ "linkId": "",
+ "default": "",
+ "bypass": false,
+ "scroll": true
+ }
+ ],
+ "value": "",
+ "precision": 0,
+ "address": "/root",
+ "preArgs": [],
+ "target": [
+ null
+ ],
+ "variables": {},
+ "color": "auto",
+ "css": "",
+ "id": "root",
+ "linkId": "",
+ "default": "",
+ "bypass": false,
+ "traversing": false,
+ "scroll": true,
+ "label": false
+ }
+]
\ No newline at end of file
diff --git a/app/examples/demo.json b/app/examples/demo.json
new file mode 100644
index 00000000..dc076022
--- /dev/null
+++ b/app/examples/demo.json
@@ -0,0 +1,892 @@
+[
+ {
+ "type": "root",
+ "tabs": [
+ {
+ "type": "tab",
+ "id": "tab_2",
+ "label": "Open Stage Control",
+ "color": "auto",
+ "css": "",
+ "layout": "",
+ "spacing": 0,
+ "value": "",
+ "precision": 0,
+ "address": "/tab_2",
+ "preArgs": [],
+ "target": [],
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "strip",
+ "top": 10,
+ "left": 10,
+ "id": "strip_4",
+ "label": "Strips",
+ "width": 100,
+ "height": 450,
+ "color": "auto",
+ "css": "",
+ "horizontal": false,
+ "stretch": false,
+ "spacing": 5,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "text",
+ "id": "text_1",
+ "label": false,
+ "height": 30,
+ "vertical": false,
+ "color": "auto",
+ "css": "",
+ "value": 1,
+ "preArgs": [],
+ "address": "/text_1",
+ "linkId": "",
+ "wrap": false,
+ "align": "",
+ "default": ""
+ },
+ {
+ "type": "strip",
+ "id": "strip_5",
+ "label": false,
+ "height": 30,
+ "color": "auto",
+ "horizontal": true,
+ "stretch": true,
+ "spacing": 5,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "toggle",
+ "id": "toggle_1",
+ "linkId": "",
+ "label": false,
+ "led": false,
+ "color": "auto",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "value": "",
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "width": "auto",
+ "address": "/toggle_1",
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "toggle",
+ "linkId": "",
+ "label": false,
+ "led": false,
+ "color": "auto",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "value": "",
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "width": "auto",
+ "id": "toggle_2",
+ "address": "/toggle_2",
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "toggle",
+ "id": "toggle_3",
+ "label": false,
+ "led": false,
+ "color": "auto",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "value": "",
+ "precision": 2,
+ "address": "/toggle_3",
+ "preArgs": [],
+ "target": [],
+ "linkId": "",
+ "width": "auto",
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "css": "",
+ "border": true,
+ "scroll": true,
+ "address": "/strip_5",
+ "preArgs": [],
+ "linkId": "",
+ "_geometry": "geometry",
+ "_style": "style",
+ "_panel": "panel",
+ "layout": "",
+ "_value": "value (tab selection)",
+ "default": "",
+ "value": "",
+ "_osc": "osc (tab selection)",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "_children": "children",
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "strip_6",
+ "label": false,
+ "height": 50,
+ "color": "auto",
+ "css": "margin-bottom:-10rem",
+ "horizontal": true,
+ "stretch": true,
+ "spacing": 0,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "knob",
+ "id": "knob_1",
+ "linkId": "",
+ "label": false,
+ "unit": "",
+ "width": "auto",
+ "color": "auto",
+ "pips": false,
+ "input": false,
+ "dashed": false,
+ "angle": 270,
+ "css": "",
+ "snap": false,
+ "spring": false,
+ "doubleTap": false,
+ "range": {
+ "min": 0,
+ "max": 1
+ },
+ "origin": "auto",
+ "value": "",
+ "logScale": false,
+ "precision": 2,
+ "touchAddress": "",
+ "preArgs": [],
+ "target": [],
+ "address": "/knob_1",
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "knob",
+ "id": "knob_2",
+ "linkId": "",
+ "label": false,
+ "unit": "",
+ "width": "auto",
+ "color": "auto",
+ "pips": false,
+ "input": false,
+ "dashed": false,
+ "angle": 270,
+ "css": "",
+ "snap": false,
+ "spring": false,
+ "doubleTap": false,
+ "range": {
+ "min": 0,
+ "max": 1
+ },
+ "origin": "auto",
+ "value": "",
+ "logScale": false,
+ "precision": 2,
+ "address": "/knob_2",
+ "touchAddress": "",
+ "preArgs": [],
+ "target": [],
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "border": false,
+ "scroll": true,
+ "address": "/strip_6",
+ "preArgs": [],
+ "linkId": "",
+ "_geometry": "geometry",
+ "_style": "style",
+ "_panel": "panel",
+ "layout": "",
+ "_value": "value (tab selection)",
+ "default": "",
+ "value": "",
+ "_osc": "osc (tab selection)",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "_children": "children",
+ "tabs": []
+ },
+ {
+ "type": "strip",
+ "id": "strip_1",
+ "label": false,
+ "color": "auto",
+ "css": "flex:1",
+ "horizontal": true,
+ "stretch": false,
+ "spacing": 0,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "meter",
+ "id": "meter_1",
+ "label": false,
+ "unit": "",
+ "alignRight": false,
+ "horizontal": false,
+ "pips": false,
+ "dashed": true,
+ "color": "auto",
+ "css": "margin: 20rem 0 20rem 10rem;",
+ "range": {
+ "min": 0,
+ "max": 1
+ },
+ "logScale": false,
+ "origin": "auto",
+ "value": "@{knob_1}",
+ "address": "/meter_1",
+ "preArgs": [],
+ "width": 10,
+ "linkId": "",
+ "gradient": [],
+ "default": "",
+ "compact": true,
+ "input": false
+ },
+ {
+ "type": "meter",
+ "id": "meter_2",
+ "label": false,
+ "unit": "",
+ "alignRight": false,
+ "horizontal": false,
+ "pips": false,
+ "dashed": true,
+ "color": "auto",
+ "css": "margin: 20rem 0",
+ "range": {
+ "min": 0,
+ "max": 1
+ },
+ "logScale": false,
+ "origin": "auto",
+ "value": "@{knob_2}",
+ "address": "/meter_1",
+ "preArgs": [],
+ "width": 10,
+ "linkId": "",
+ "gradient": [],
+ "default": "",
+ "compact": true,
+ "input": false
+ },
+ {
+ "type": "fader",
+ "id": "fader_1",
+ "linkId": "",
+ "label": false,
+ "unit": "",
+ "width": "auto",
+ "alignRight": false,
+ "horizontal": false,
+ "pips": true,
+ "input": false,
+ "compact": false,
+ "dashed": false,
+ "color": "auto",
+ "css": "",
+ "snap": false,
+ "spring": false,
+ "doubleTap": false,
+ "range": {
+ "min": 0,
+ "max": 1
+ },
+ "origin": "auto",
+ "value": "",
+ "logScale": false,
+ "precision": 2,
+ "meter": false,
+ "address": "/fader_1",
+ "touchAddress": "",
+ "meterAddress": "",
+ "preArgs": [],
+ "target": [],
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "height": "auto",
+ "border": false,
+ "scroll": true,
+ "address": "/strip_1",
+ "preArgs": [],
+ "linkId": "",
+ "_geometry": "geometry",
+ "_style": "style",
+ "_panel": "panel",
+ "layout": "",
+ "_value": "value (tab selection)",
+ "default": "",
+ "value": "",
+ "_osc": "osc (tab selection)",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "_children": "children",
+ "tabs": []
+ },
+ {
+ "type": "fader",
+ "id": "fader_2",
+ "linkId": "",
+ "label": false,
+ "unit": "",
+ "height": 30,
+ "alignRight": false,
+ "horizontal": true,
+ "pips": false,
+ "input": false,
+ "compact": true,
+ "dashed": false,
+ "color": "auto",
+ "css": "",
+ "snap": false,
+ "spring": false,
+ "doubleTap": false,
+ "range": {
+ "min": 0,
+ "max": 1
+ },
+ "origin": 0.5,
+ "value": 0.5,
+ "logScale": false,
+ "precision": 2,
+ "meter": false,
+ "address": "/fader_2",
+ "touchAddress": "",
+ "meterAddress": "",
+ "preArgs": [],
+ "target": [],
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "strip",
+ "id": "strip_3",
+ "label": false,
+ "height": 30,
+ "color": "auto",
+ "css": "",
+ "horizontal": true,
+ "stretch": false,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "toggle",
+ "id": "toggle_4",
+ "linkId": "",
+ "label": "M",
+ "led": false,
+ "color": "yellow",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "value": "",
+ "precision": 2,
+ "preArgs": [],
+ "target": [],
+ "width": "auto",
+ "address": "/toggle_4",
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "toggle",
+ "id": "toggle_5",
+ "linkId": "",
+ "label": "S",
+ "led": false,
+ "color": "lime",
+ "css": "",
+ "on": 1,
+ "off": 0,
+ "value": "",
+ "precision": 2,
+ "address": "/toggle_5",
+ "preArgs": [],
+ "target": [],
+ "width": "auto",
+ "doubleTap": false,
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "spacing": 0,
+ "border": true,
+ "scroll": true,
+ "address": "/strip_3",
+ "preArgs": [],
+ "linkId": "",
+ "_geometry": "geometry",
+ "_style": "style",
+ "_panel": "panel",
+ "layout": "",
+ "_value": "value (tab selection)",
+ "default": "",
+ "value": "",
+ "_osc": "osc (tab selection)",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "_children": "children",
+ "tabs": []
+ }
+ ],
+ "border": true,
+ "scroll": true,
+ "address": "/strip_4",
+ "preArgs": [],
+ "linkId": "",
+ "_geometry": "geometry",
+ "_style": "style",
+ "_panel": "panel",
+ "layout": "",
+ "_value": "value (tab selection)",
+ "default": "",
+ "value": "",
+ "_osc": "osc (tab selection)",
+ "precision": 0,
+ "target": [],
+ "bypass": false,
+ "_children": "children",
+ "tabs": []
+ },
+ {
+ "type": "panel",
+ "top": 10,
+ "left": 120,
+ "id": "panel_1",
+ "label": "Pads",
+ "width": 350,
+ "height": 350,
+ "scroll": true,
+ "color": "auto",
+ "css": "",
+ "layout": "",
+ "spacing": 0,
+ "value": "",
+ "precision": 0,
+ "address": "/panel_1",
+ "preArgs": [],
+ "target": [],
+ "variables": "@{parent.variables}",
+ "widgets": [],
+ "tabs": [
+ {
+ "type": "tab",
+ "id": "tab_3",
+ "label": "Xy",
+ "color": "auto",
+ "css": "",
+ "layout": "",
+ "spacing": 0,
+ "value": "",
+ "precision": 0,
+ "address": "/tab_3",
+ "preArgs": [],
+ "target": [],
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "xy",
+ "top": 0,
+ "left": 0,
+ "id": "xy_1",
+ "linkId": "",
+ "label": false,
+ "width": "100%",
+ "height": "100%",
+ "input": true,
+ "pips": true,
+ "color": "auto",
+ "css": "",
+ "snap": false,
+ "spring": false,
+ "doubleTap": false,
+ "rangeX": {
+ "min": 0,
+ "25%": 0.25,
+ "50%": 0.5,
+ "75%": 0.75,
+ "max": 1
+ },
+ "rangeY": {
+ "min": 0,
+ "25%": 0.25,
+ "50%": 0.5,
+ "75%": 0.75,
+ "max": 1
+ },
+ "logScaleX": false,
+ "logScaleY": false,
+ "value": [
+ 0.5,
+ 0.5
+ ],
+ "precision": 2,
+ "address": "/xy_1",
+ "touchAddress": "",
+ "preArgs": [],
+ "split": false,
+ "target": [],
+ "pointSize": 20,
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "tabs": [],
+ "linkId": "",
+ "default": "",
+ "bypass": false,
+ "scroll": true
+ },
+ {
+ "type": "tab",
+ "id": "tab_5",
+ "label": "rgb",
+ "color": "auto",
+ "css": "",
+ "layout": "",
+ "spacing": 0,
+ "value": "",
+ "precision": 0,
+ "address": "/tab_5",
+ "preArgs": [],
+ "target": [],
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "rgb",
+ "id": "rgb_1",
+ "linkId": "",
+ "label": false,
+ "left": 0,
+ "top": 0,
+ "width": "100%",
+ "height": "100%",
+ "input": true,
+ "css": "",
+ "snap": false,
+ "spring": false,
+ "value": "",
+ "precision": 0,
+ "address": "/rgb_1",
+ "preArgs": [],
+ "split": false,
+ "target": [],
+ "range": {
+ "min": 0,
+ "max": 255
+ },
+ "default": "",
+ "bypass": false,
+ "pointSize": 10
+ }
+ ],
+ "tabs": [],
+ "linkId": "",
+ "default": "",
+ "bypass": false,
+ "scroll": true
+ },
+ {
+ "type": "tab",
+ "id": "tab_4",
+ "label": "MultiXy",
+ "color": "auto",
+ "css": "",
+ "layout": "",
+ "spacing": 0,
+ "value": "",
+ "precision": 0,
+ "address": "/tab_4",
+ "preArgs": [],
+ "target": [],
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "multixy",
+ "id": "xy_2",
+ "label": false,
+ "width": "100%",
+ "height": "100%",
+ "pips": true,
+ "color": "auto",
+ "css": "",
+ "snap": false,
+ "spring": false,
+ "rangeX": {
+ "min": 0,
+ "25%": 0.25,
+ "50%": 0.5,
+ "75%": 0.75,
+ "max": 1
+ },
+ "rangeY": {
+ "min": 0,
+ "25%": 0.25,
+ "50%": 0.5,
+ "75%": 0.75,
+ "max": 1
+ },
+ "logScaleX": false,
+ "logScaleY": false,
+ "value": [
+ 0.25,
+ 0.5,
+ 0.75,
+ 0.5
+ ],
+ "precision": 2,
+ "address": "/xy_2",
+ "touchAddress": "",
+ "preArgs": [],
+ "split": false,
+ "target": [],
+ "linkId": "",
+ "left": "auto",
+ "top": "auto",
+ "points": 2,
+ "pointSize": 20,
+ "default": "",
+ "bypass": false
+ }
+ ],
+ "tabs": [],
+ "linkId": "",
+ "default": "",
+ "bypass": false,
+ "scroll": true
+ }
+ ],
+ "border": true,
+ "linkId": "",
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "dropdown",
+ "top": 10,
+ "left": 480,
+ "id": "color_picker",
+ "linkId": "",
+ "label": "Color",
+ "width": 130,
+ "height": 60,
+ "color": "auto",
+ "css": "",
+ "precision": 2,
+ "value": "auto",
+ "values": {
+ "Default": "auto",
+ "Orange": "orange"
+ },
+ "address": "/dropdown_1",
+ "preArgs": [],
+ "target": [],
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "keyboard",
+ "top": 370,
+ "left": 120,
+ "id": "keyboard",
+ "keys": 36,
+ "start": 60,
+ "label": "auto",
+ "width": 350,
+ "height": 90,
+ "color": "auto",
+ "css": "",
+ "traversing": true,
+ "on": 1,
+ "off": 0,
+ "precision": 2,
+ "address": "/keyboard_1",
+ "preArgs": [],
+ "split": false,
+ "target": [],
+ "bypass": false
+ },
+ {
+ "type": "multifader",
+ "top": 80,
+ "left": 480,
+ "id": "multifader",
+ "strips": 16,
+ "start": 0,
+ "label": "auto",
+ "unit": "",
+ "width": 130,
+ "height": 380,
+ "alignRight": false,
+ "horizontal": true,
+ "pips": false,
+ "input": false,
+ "compact": true,
+ "dashed": false,
+ "color": "auto",
+ "css": "",
+ "traversing": true,
+ "snap": true,
+ "range": {
+ "min": 0,
+ "max": 1
+ },
+ "value": "",
+ "origin": "auto",
+ "logScale": false,
+ "precision": 2,
+ "meter": false,
+ "address": "/multifader_1",
+ "preArgs": [],
+ "split": false,
+ "target": [],
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "multipush",
+ "top": 10,
+ "left": 620,
+ "id": "multipush",
+ "matrix": [
+ 2,
+ 4
+ ],
+ "start": 0,
+ "spacing": 5,
+ "label": "auto",
+ "width": 130,
+ "height": 220,
+ "color": "auto",
+ "css": "",
+ "traversing": true,
+ "on": 1,
+ "off": 0,
+ "value": "",
+ "precision": 2,
+ "address": "/multipush",
+ "preArgs": [],
+ "split": false,
+ "target": [],
+ "norelease": false,
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "multitoggle",
+ "top": 240,
+ "left": 620,
+ "matrix": [
+ 2,
+ 4
+ ],
+ "start": 0,
+ "spacing": 5,
+ "label": "auto",
+ "width": 130,
+ "height": 220,
+ "color": "auto",
+ "css": "",
+ "traversing": true,
+ "on": 1,
+ "off": 0,
+ "value": "",
+ "precision": 2,
+ "address": "/multitoggle",
+ "preArgs": [],
+ "split": false,
+ "target": [],
+ "led": true,
+ "id": "multitoggle",
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "plot",
+ "top": 470,
+ "left": 10,
+ "id": "plot_1",
+ "width": 740,
+ "height": 140,
+ "label": "Plot (multifader)",
+ "color": "auto",
+ "css": "",
+ "rangeX": {
+ "min": 0,
+ "max": 1
+ },
+ "rangeY": {
+ "min": 0,
+ "max": 1
+ },
+ "origin": "auto",
+ "logScaleX": false,
+ "logScaleY": false,
+ "pips": false,
+ "address": "/plot_1",
+ "preArgs": [],
+ "smooth": true,
+ "linkId": "",
+ "dots": true,
+ "bars": false,
+ "value": "@{multifader}",
+ "default": ""
+ }
+ ],
+ "tabs": [],
+ "linkId": "",
+ "default": "",
+ "bypass": false,
+ "scroll": true
+ }
+ ],
+ "color": "@{color_picker}",
+ "css": "",
+ "value": "",
+ "precision": 0,
+ "address": "/root",
+ "preArgs": [],
+ "target": [],
+ "variables": {},
+ "id": "root",
+ "linkId": "",
+ "default": "",
+ "bypass": false,
+ "scroll": true,
+ "label": false
+ }
+]
\ No newline at end of file
diff --git a/app/examples/keys.json b/app/examples/keys.json
new file mode 100644
index 00000000..d5584586
--- /dev/null
+++ b/app/examples/keys.json
@@ -0,0 +1,156 @@
+[
+ {
+ "type": "root",
+ "tabs": [
+ {
+ "type": "tab",
+ "id": "tab_1",
+ "label": "auto",
+ "color": "auto",
+ "css": "",
+ "layout": "",
+ "spacing": 0,
+ "value": "",
+ "precision": 0,
+ "address": "/tab_1",
+ "preArgs": [],
+ "target": [],
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "keys",
+ "top": 300,
+ "left": 0,
+ "id": "keys_1",
+ "width": "auto",
+ "height": "auto",
+ "label": "auto",
+ "color": "auto",
+ "css": "",
+ "binding": [
+ "r",
+ "f"
+ ],
+ "keydown": "#{\nx = key == \"r\" ? 0.1 : -0.1;\n@{fader_1} + x\n}",
+ "repeat": true,
+ "keyup": "",
+ "linkId": ">> A"
+ },
+ {
+ "type": "fader",
+ "top": 0,
+ "left": 0,
+ "id": "fader_1",
+ "linkId": "<< A",
+ "width": "auto",
+ "height": "auto",
+ "label": "auto",
+ "color": "auto",
+ "css": "",
+ "horizontal": false,
+ "alignRight": false,
+ "pips": true,
+ "input": true,
+ "meter": false,
+ "compact": false,
+ "dashed": false,
+ "snap": false,
+ "spring": false,
+ "doubleTap": false,
+ "range": {
+ "min": 0,
+ "max": 1
+ },
+ "logScale": false,
+ "unit": "",
+ "origin": "auto",
+ "value": "",
+ "precision": 2,
+ "address": "/fader_1",
+ "touchAddress": "",
+ "meterAddress": "",
+ "preArgs": [],
+ "target": [],
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "xy",
+ "top": 50,
+ "left": 170,
+ "id": "xy_1",
+ "linkId": "<< B",
+ "width": 210,
+ "height": 220,
+ "label": "auto",
+ "color": "auto",
+ "css": "",
+ "input": true,
+ "pips": true,
+ "pointSize": 20,
+ "snap": false,
+ "spring": false,
+ "doubleTap": false,
+ "rangeX": {
+ "min": 0,
+ "max": 1
+ },
+ "rangeY": {
+ "min": 0,
+ "max": 1
+ },
+ "logScaleX": false,
+ "logScaleY": false,
+ "value": "",
+ "precision": 2,
+ "address": "/xy_1",
+ "touchAddress": "",
+ "preArgs": [],
+ "split": false,
+ "target": [],
+ "default": "",
+ "bypass": false
+ },
+ {
+ "type": "keys",
+ "top": 270,
+ "left": 170,
+ "id": "keys_2",
+ "width": 210,
+ "height": "auto",
+ "label": "auto",
+ "color": "auto",
+ "css": "",
+ "binding": [
+ "g",
+ "t"
+ ],
+ "keydown": "#{\nx = key == \"t\" ? 0.1 : -0.1;\n@{xy_1}[0] + x\n@{xy_1}[1] + x\n}",
+ "keyup": "",
+ "repeat": false,
+ "linkId": ">> B"
+ }
+ ],
+ "tabs": [],
+ "linkId": "",
+ "default": "",
+ "bypass": false,
+ "scroll": true
+ }
+ ],
+ "color": "auto",
+ "css": "",
+ "value": "",
+ "precision": 0,
+ "address": "/root",
+ "preArgs": [],
+ "target": [],
+ "variables": {},
+ "id": "root",
+ "linkId": "",
+ "default": "",
+ "bypass": false,
+ "scroll": true,
+ "label": false
+ }
+]
\ No newline at end of file
diff --git a/app/examples/svg.json b/app/examples/svg.json
new file mode 100644
index 00000000..1cca103c
--- /dev/null
+++ b/app/examples/svg.json
@@ -0,0 +1,89 @@
+[
+ {
+ "type": "root",
+ "tabs": [
+ {
+ "type": "tab",
+ "id": "tab_1",
+ "linkId": "",
+ "label": "Rgb Levels",
+ "color": "auto",
+ "css": "",
+ "layout": "",
+ "spacing": 0,
+ "default": "",
+ "value": "",
+ "precision": 0,
+ "address": "/tab_1",
+ "preArgs": [],
+ "target": [],
+ "bypass": false,
+ "variables": "@{parent.variables}",
+ "widgets": [
+ {
+ "type": "svg",
+ "top": 150,
+ "left": 0,
+ "id": "rgb_svg",
+ "linkId": "",
+ "width": "100%",
+ "height": 190,
+ "label": "auto",
+ "color": "auto",
+ "css": "path {\n fill:none;\n stroke-width:3rem\n}",
+ "svg": "#{\n\n# build the data array\n# [ [r,g,b], [r,g,b], [r,g,b], etc ]\ndata = @{rgb_matrix};\n\n# extract channels and convert to relative y-axis coordinates\n# assuming the y-range is 0-255\n# 96 - val * 94 for padding and y-axis reversal\n# we add a small offset to make sure the 3 lines are always visible\n\nred = 96 - flatten(data[0:end,0]) / 255 * 94 + 2;\ngreen = 96 - flatten(data[0:end,1]) / 255 * 94;\nblue = 96 - flatten(data[0:end,2]) / 255 * 94 - 2;\n\n# build the x-axis relative coordinates array\n\nlength = size(red)[0]\nxaxis = (0:length) / (length-1) * 100;\n\n\n# convert coords to svg path string\nsvgCoords(color) = map(color, f(c,i)=print(\"L$0%x $1%y\", [xaxis[i], c]));\n\n# svg path first command must be \"M\", not \"L\" \nsvgString(color) = concat(\"M\", unpack(svgCoords(color))[1:end]);\n\n}\n\n\n
-
-
-AMMD hosts this website and made this project possible by funding its first 2 years of development.
-
-----
-
-
-
-
-
-Discourse provides the community forum.
-
-----
-
-
-
-
-
-BrowserStack provides remote browsers for debugging.
diff --git a/resources/docs/docs/custom-module/custom-module.md b/resources/docs/docs/custom-module/custom-module.md
deleted file mode 100644
index 985c5eed..00000000
--- a/resources/docs/docs/custom-module/custom-module.md
+++ /dev/null
@@ -1,220 +0,0 @@
-# Custom module
-
-Using the server's `custom-module` option, users can load a custom javascript module that filters incoming and outgoing OSC / MIDI messages.
-
-## Writing a custom module
-
-
-```js
-
-// Do whatever you want
-// initialize variables
-// declare functions
-// listen to app events
-// load modules
-// etc
-
-module.exports = {
-
- init: function(){
- // this will be executed once when the osc server starts after
- // connections are set up
- // it is called for the main module only
- },
-
- stop: function(){
- // this will be executed once when the osc server stops
- // it is called for the main module only
- },
-
- reload: function(){
- // this will be executed after the custom module is reloaded
- // it is called for the main module only
- },
-
- oscInFilter:function(data){
- // Filter incoming osc messages
-
- var {address, args, host, port} = data
-
- // do what you want
-
- // address = string
- // args = array of {value, type} objects
- // host = string
- // port = integer
-
- // return data if you want the message to be processed
- return {address, args, host, port}
-
- },
-
- oscOutFilter:function(data){
- // Filter outgoing osc messages
-
- var {address, args, host, port, clientId} = data
-
- // same as oscInFilter
-
- // return data if you want the message to be and sent
- return {address, args, host, port}
- },
-
- unload: function(){
- // this will be executed before the custom module is reloaded
- // it is called for all modules, including other loaded modules
- },
-
-}
-
-```
-
-## Available globals
-
-The module is executed in a restricted context, only a few globals are available :
-
-----
-
-#### `app`
-[`Event Emitter`](https://nodejs.org/api/events.html#events_class_eventemitter), useful for monitoring the events sent by the different clients. Event names can be found in [callbacks.js](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/src/server/node/ipc/callbacks.mjs), callbacks are called with 2 arguments: `data` (object) and `client` (object: `{address, id}`)
-
-----
-
-#### `receive(host, port, address, ...args, options)`
-
-Send osc/midi message to connected clients. `host` and `port` can be specified to simulate a specific origin for the message.
-
-- `host` (optional): `string` ip address, valid hostname or `"midi"`
-- `port` (optional): `integer` port number or `string` midi device name
-- `address`: osc address
-- `args`: value or `{type: "OSC_TYPE_LETTER", value: VALUE}` `object` (objects that don't match this format will simply be turned to a JSON string).
-- `options` (optional): set to `{clientId: id}` to define which client receives the message (where `id` is the client's id as retrieved from `app` events or `oscOutFilter`)
-
-For convenience, `host` and `port` can be provided both as single string argument joined with a colon.
-
-----
-
-#### `send(host, port, address, ...args)`
-
-Send osc/midi to a target (see `receive()`).
-
-----
-
-#### `settings.read(name)`
-
-Returns specified server option. `name` must be the option's long name without the leading dashes (ie: `"send"`, not `"s"`)
-
-----
-
-#### `settings.appAddresses()`
-
-Returns the server's http addresses.
-
-----
-
-#### `loadJSON(path, errorCallback)`
-
-Loads a json file (path is relative to the custom module location)
-
-- `path`: `string`, path to file (any extension allowed, but the content must be valid JSON)
-- `errorCallback` (optional): `function`, called with the error as argument if the file can't be loaded
-
-
-----
-
-#### `saveJSON(path, data, errorCallback)`
-
-Saves an object/array to a json file (path is relative to the custom module location)
-
-- `path`: `string`, path to file (any extension allowed)
-- `data`: `object`, `array` or any value that can be encoded to JSON
-- `errorCallback` (optional): `function`, called with the error as argument if the file can't be loaded
-
-----
-
-#### `require(path)`
-
-Load another javascript module. Returns the value of `module.exports` defined in this module. If `path` is a relative path, it will be resolved against its parent module's path. See [Managing Big Modules](../managing-big-modules).
-
-This function is different from node's native `require` function, it's merely a way to split a custom module into separate files.
-
-----
-
-#### `nativeRequire(moduleName)`
-
-This function can be used to load native node modules or locally installed modules (e.g. with npm) if a `node_modules` folder is found in the custom module's location.
-
-??? "Installing node modules: resources"
- - https://nodejs.dev/
- - https://nodejs.dev/learn/an-introduction-to-the-npm-package-manager
- - https://nodejs.dev/learn/the-package-json-guide
-
-----
-
-#### `tcpServer`
-
-Raw access to the server's [TCP backend](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/src/server/node/osc/tcp.mjs). Can be used to monitor the state of TCP connections:
-
-```js
-for (var ip in tcpServer.clients) {
- tcpServer.clients[ip].port.on('ready', ()=>{
- console.log(`TCP connection established with ${ip}:${tcpServer.clients[ip].remotePort}`)
- })
- tcpServer.clients[ip].port.on('close', ()=>{
- console.log(`TCP connection lost with ${ip}:${tcpServer.clients[ip].remotePort}`)
- })
-}
-```
-
-
-#### `restartMidiBackend()`
-
-This function can be used to restart the midi backend (if already running) without restarting the server
-
-#### Other javascript globals
-
-- `console`
-- `setTimeout`
-- `clearTimeout`
-- `setInterval`
-- `clearInterval`
-- `__dirname`
-- `__filename`
-- `process`
-- `global`
-
-----
-
-
-## Autoreload
-
-Custom modules (including submodules loaded with `require()`) are reloaded automatically when they are modified. Upon reload, timers (`setTimeout` and `setInterval`) and event listeners (added to the `app` object) are reset. After each reload the `module.exports.reload()` function (if any) is called.
-
-The `global` object persists accross reloads.
-
-??? "Reloading native modules"
-
- When using modules loaded with `nativeRequire()`, you may need to tell the custom module how to unload some components to allow reloading using the `module.exports.unload` definition. For example, if a port is bound using the `http` module, you'll need to unbind it otherwise the custom module will fail to bind it again when reloading:
-
- ```js
-
- var http = nativeRequire('http'),
- server = http.createServer((req, res)=>{
- res.writeHead(200)
- res.end('Hello world')
- })
-
- server.listen(5555, 'localhost')
-
-
- module.exports = {
-
- unload: function() {
-
- server.close()
- // otherwise you'd get "Error: listen EADDRINUSE: address already in use 127.0.0.1:5555"
-
- }
-
- }
- ```
diff --git a/resources/docs/docs/custom-module/examples.md b/resources/docs/docs/custom-module/examples.md
deleted file mode 100644
index d903870c..00000000
--- a/resources/docs/docs/custom-module/examples.md
+++ /dev/null
@@ -1,471 +0,0 @@
-## Basic address routing
-
-```js
-module.exports = {
-
- oscInFilter:function(data){
-
- var {address, args, host, port} = data
-
- if (address === '/some_address') {
- address = '/fader_1'
- }
-
- return {address, args, host, port}
-
- },
-
- oscOutFilter:function(data){
-
- var {address, args, host, port, clientId} = data
-
- if (address === '/fader_1') {
- address = '/some_address'
- }
-
- return {address, args, host, port}
- }
-
-}
-```
-
-## Value conversion
-
-```js
-module.exports = {
-
- oscInFilter:function(data){
-
- var {address, args, host, port} = data
-
- if (address === '/some_address') {
-
- args[0].value = args[0].value * 10
-
- }
-
- return {address, args, host, port}
-
- },
-
- oscOutFilter:function(data){
-
- var {address, args, host, port, clientId} = data
-
- if (address === '/some_address') {
-
- args[0].value = args[0].value / 10
-
- }
-
- return {address, args, host, port}
- }
-
-}
-```
-
-## Arguments split / merge
-
-```js
-
-var xyValue = [0, 0]
-
-module.exports = {
-
- oscInFilter:function(data){
-
- var {address, args, host, port} = data
-
- // split
- if (address === '/some_xy_address') {
- var arg1 = args[0].value,
- arg2 = args[1].value
-
- receive('/fader_1', arg1)
- receive('/fader_2', arg2)
-
- return // bypass original message
- }
-
- return {address, args, host, port}
-
- },
-
- oscOutFilter:function(data){
-
- var {address, args, host, port, clientId} = data
-
- // merge
- if (address === '/fader_1') {
-
- xyValue[0] = args[0].value
- send(host, port, '/some_xy_address', ...xyValue)
- return // bypass original message
-
- } else if (address === '/fader_2') {
-
- xyValue[1] = args[1].value
- send(host, port, '/some_xy_address', ...xyValue)
- return // bypass original message
-
- }
-
- return {address, args, host, port}
- }
-
-}
-```
-
-## Reply
-
-```js
-
-module.exports = {
-
- oscInFilter:function(data){
-
- var {address, args, host, port} = data
-
- if (address === '/knock_knock') {
-
- send(host, port, '/who_is_there')
-
- return // bypass original message
- }
-
- return {address, args, host, port}
-
- },
-
-}
-```
-
-## Simulate user input on a single client
-
-```js
-
-// keep track of connected clients
-
-var clients = []
-
-app.on('open', (data, client)=>{
- if (!clients.includes(client.id)) clients.push(client.id)
-})
-
-app.on('close', (data, client)=>{
- if (clients.includes(client.id)) clients.splice(clients.indexOf(client.id))
-})
-
-module.exports = {
-
- oscInFilter:function(data){
-
- var {address, args, host, port} = data
-
- if (address === '/some_osc_address') {
-
- // simulate user input on the first client in the array
-
- receive('/SET', 'widget_id', 1, {clientId: clients[0]})
-
- return // bypass original message
- }
-
- return {address, args, host, port}
-
- }
-
-}
-
-
-```
-
-## Auto-save client state
-
-```js
-// store state in a variable
-var state = {}
-
-// keep track of connected clients
-var clients = []
-
-app.on('sessionOpened', (data, client)=>{
-
- // client connected (and in a session)
- if (!clients.includes(client.id)) clients.push(client.id)
-
- // when a client opens a session, send the state
- // but only if it's the only connected client (otherwise, let the regular sync happen)
- if (clients.length === 1) {
- receive('/STATE/SET', state, {clientId: clients[0]})
- }
-
-})
-
-app.on('close', (data, client)=>{
-
- // client disconnected
- if (clients.includes(client.id)) clients.splice(clients.indexOf(client.id))
-
-})
-
-// request 1st client's state every 10 seconds
-setInterval(()=>{
-
- if (clients.length > 0) {
- receive('/STATE/GET', '127.0.0.1:8888', {clientId: clients[0]})
- }
-
-}, 10000)
-
-
-module.exports = {
-
- oscOutFilter: function(data) {
-
- if (data.address === '/STATE/GET') {
- // update state variable when the client responds
- state = data.args[0].value
-
- // bypass the osc message
- return
- }
-
- return data
-
- }
-
-}
-
-```
-
-## MIDI routing
-
-```js
-var routing = {
- // midi cc vs widget id
- 60: 'fader_1',
- 61: 'fader_2',
- // etc
-}
-
-module.exports = {
-
- oscInFilter:function(data){
- // Filter incoming osc messages
-
- var {address, args, host, port} = data
-
- if (host === 'midi') {
-
- // MIDI routing !
- if (address === '/control') {
-
- // assign args to variables
- var [channel, ctrl, value] = args.map(arg=>arg.value)
-
- // simple conditions
- if (ctrl === 80) receive('/SET', 'widget_id', value / 127)
-
- // simple routing table (midi cc vs widget id)
- if (routing[ctrl]) receive('/SET', routing[ctrl], value / 127)
-
- // note: /SET simulates a user interaction and makes the widget send its osc message
- // but it adds some delay (we wait for the UI to respond)
- // AND it may trigger multiple replies if more than one client are connected.
- // Alternatively, we could do this:
- // send('/osc_address', value / 127)
- // receive('/osc_address', value / 127)
- // Or, to send /SET to a single client:
- // receive('/SET', '/osc_address', value / 127, {clientId: ID})
-
-
- }
-
- return // bypass original message
-
- }
-
-
- // return data if you want the message to be processed
- return {address, args, host, port}
-
- }
-
-
-}
-```
-
-
-## Read file
-
-```js
-
-var fs = nativeRequire('fs')
-
-module.exports = {
-
- oscOutFilter:function(data){
- // Filter outgoing osc messages
-
- var {address, args, host, port} = data
-
- if (address === '/file') {
-
- fs.readFile(args[0].value, 'utf8' , (err, data) => {
- if (err) {
- console.error(err)
- return
- }
- receive('/html', data)
- })
-
- return // bypass original message
-
- }
-
-
- // return data if you want the message to be processed
- return {address, args, host, port}
-
- }
-
-
-}
-```
-
-## Display RTSP Stream
-
-```js
-// requires ffmpeg installed on the system
-// and rtsp-ffmpeg installed in the custom module's folder (by running npm install rtsp-ffmpeg)
-// see https://github.com/agsh/rtsp-ffmpeg#ffmpeg for available options
-
-var rtsp = nativeRequire('rtsp-ffmpeg')
-
-var stream = new rtsp.FFMpeg({
- input: 'rtsp://freja.hiof.no:1935/rtplive/_definst_/hessdalen03.stream',
-})
-
-stream.on('data', (data)=>{
-
- // send frame to image widget with address set to "/stream"
- receive('/stream', 'data:image/jpeg;base64,' + data.toString('base64'))
-
-})
-
-module.exports = {
-
- unload: ()=>{
- stream.stop()
- }
-
-}
-```
-
-## Custom module merger
-```js
-var submodules = [
- require('./custom_modA.js'),
- require('./custom_modB.js'),
- // etc
-]
-
-
-module.exports = {
- init: function(){
- for (var m of submodules) {
- if (m.init) m.init()
- }
- },
- reload: function(){
- for (var m of submodules) {
- if (m.reload) m.reload()
- }
- },
- oscInFilter: function(data){
-
- for (var m of submodules) {
- if (m.oscInFilter) data = m.oscInFilter(data)
- if (!data) return
- }
-
- return data
-
- },
- oscOutFilter: function(data){
-
- for (var m of submodules) {
- if (m.oscOutFilter) data = m.oscOutFilter(data)
- if (!data) return
- }
-
- return data
- }
-}
-```
-
-## Dynamic widget creation
-```js
-function create_widgets() {
- receive('', '', '/EDIT', 'root', {
- widgets: [{
- type: 'panel',
- id: 'my_panel',
- layout: 'vertical',
- width: '100%',
- height: '200%',
- widgets: [
- {
- type: 'text',
- id: 'notice',
- value: 'Hello, world!',
- width: '100%',
- },
- {
- type: 'button',
- id: 'button',
- address: '/foo',
- preArgs: [1],
- },
- ]
- }]
- })
-}
-
-module.exports = {
- reload: function(){
- // Create widgets whenever the custom modules is edited
- create_widgets()
- },
-}
-
-// Create widgets whenever an existing session is loaded
-app.on('sessionOpened', ()=>{
- create_widgets()
-})
-
-// And when a new session is created
-app.on('sessionSetPath', (e)=>{
- if (e.path === '') {
- create_widgets()
- }
-})
-```
-
-
-## Simple bridge
-
-```js
-module.exports = {
-
- oscInFilter: function(data) {
-
- // pass through incoming messages directly to another application
- send('127.0.0.1', 12345, data.address, ...args)
-
- return data // let original message reach clients / widgets
- }
-
-}
-```
diff --git a/resources/docs/docs/custom-module/managing-big-modules.md b/resources/docs/docs/custom-module/managing-big-modules.md
deleted file mode 100644
index 1a335c83..00000000
--- a/resources/docs/docs/custom-module/managing-big-modules.md
+++ /dev/null
@@ -1,22 +0,0 @@
-Starting with `v1.6.0`, custom modules can load submodules with the `require()` function.
-
-**1**. define some variable in `number.js`
-
-```javascript
-module.exports = 42
-```
-
-**2**. retrieve it in your main module file (`main.js`):
-
-```javascript
-var num = require('./number.js')
-
-module.exports = {
- init: function(){
- console.log(num) // 42
- },
- oscInFilter: function(data){
- // etc
- }
-}
-```
diff --git a/resources/docs/docs/customization/css-tips.md b/resources/docs/docs/customization/css-tips.md
deleted file mode 100644
index 95e7c236..00000000
--- a/resources/docs/docs/customization/css-tips.md
+++ /dev/null
@@ -1,100 +0,0 @@
-# CSS Tips
-
-## Browser inspector
-
-
-Hit ++f12++ to open the developers tools panel. The html/css inspector helps retrieving the class names needed to style specific parts of the widgets: hit ++ctrl+shift+c++ or click on the inspect icon () and click on a element in the interface to reveal its html code.
-
-
-## Inline syntax
-
-For simple use cases, the `css` property can be written as a HTML inline styles (without any CSS selector). CSS rules will apply to the widget element.
-
-```css
-opacity: 0.5; /* make the widget transparent */
-font-size: 120%; /* increase font-size */
-```
-
-
-## Selector syntax
-
-CSS selectors can be used to apply styles to specific elements:
-
-```css
-:host {
- /* style for the widget element
- & { } also works (deprecated)
- */
-}
-
-label {
- /* style for the label elements */
-}
-
-> label {
- /* style for the direct child label element */
-}
-
-```
-
-!!! info ""
- Mixing Inline and Selector syntaxes doesn't work, once you use selectors, you have to use the `:host` selector to target the widget element.
-
-## Extra css classes: `class`
-
-This non-standard css property can be used to add custom css classes to the widget element: `class: my-custom-class;`
-Multiple classes can be added (one per `class` statement). Custom classes are always added to the widget's root element, css selectors are ignored.
-
-!!! info ""
- Using class names that are already used in the app can be hazardous. In order to avoid that, custom class names should be prefixed with something uncommon and preferably cool, such as `xxx-myclass` or `crispy-seitan-myclass`.
-
-## Layering: `z-index`
-
-Z-Axis ordering can be set using the `z-index` rule. Widgets positioned at absolute coordinates (when `top` or `left` is different from `auto`) have `z-index:10;` by default.
-
-## Responsive sizing
-
-In most cases, using `vertical`, `horizontal` or `grid` layouts as well as using percentages in `height` and `width` will do. CSS `calc()` function can help in some cases (set the corresponding property to `auto` to avoid conflicts):
-
-```css
-:host {
-
- width: calc(100% - 100rem);
-
-}
-```
-
-Media queries can also be used:
-
-```css
-@media screen and (min-width: 768px) {
-
- :host {
-
- /* style the widget if the screen is bigger than 768px */
-
- }
-
-}
-```
-
-
-## Size units
-
-- use `rem` instead of `px` (`px` values will not scale when zooming), except for media queries
-- use `%` for font-size
-
-
-## CSS variables
-
-[CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) declared in the [default theme](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/scss/themes/default.scss) can be overridden.
-
-Widgets also rely on CSS variables for the style properties (colors, padding, etc). These are documented in the widgets' `css` property description.
-
-# Loading images
-
-Image urls are resolved in this order:
-- in the session's directory
-- in theme's directory
-- in the server's `remote-root` directory if the option is set
-- as absolute paths
diff --git a/resources/docs/docs/customization/themes.md b/resources/docs/docs/customization/themes.md
deleted file mode 100644
index 0af1d8fe..00000000
--- a/resources/docs/docs/customization/themes.md
+++ /dev/null
@@ -1,36 +0,0 @@
-## Built-in themes
-
-Themes can be loaded with the `--theme` option. Multiple themes can be combined. Built-in themes can be loaded using their name, custom theme files can be loaded using their path.
-
-Available themes (full color scheme):
-
-- `nord`: arctic color palette (https://www.nordtheme.com/)
-- `orange`: grey and orange theme
-
-## Creating a custom theme
-
-Creating a custom theme is as simple as writing a tiny css file that will override the default css variables defined in [default.scss](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/scss/themes/default.scss) :
-
-```css
-:root {
- --color-accent: red;
-}
-```
-
-This will change the default accent color to red. Variables can also be overridden for a specific subset of elements, for example :
-
-```css
-.panel-container {
- --color-accent: blue;
-}
-```
-
-This will change the default accent color to blue for all elements in panel widgets.
-
-## Autoreload
-
-Theme files are reloaded automatically when they are modified.
-
-## SCSS
-
-If you want to use the [SCSS](https://sass-lang.com/documentation/syntax) syntax to write your theme, follow the [Running from sources](../../getting-started/running-from-sources) instructions, create a `.scss` file in `src/scss/themes/` and run `npm run watch-css`. The theme will be watched and compiled automatically to a css file located in `app/assets/themes/` (css files in this directory can be selected from the theme option by their name, without .css suffix).
diff --git a/resources/docs/docs/getting-started/introduction.md b/resources/docs/docs/getting-started/introduction.md
deleted file mode 100644
index bcff82e9..00000000
--- a/resources/docs/docs/getting-started/introduction.md
+++ /dev/null
@@ -1,70 +0,0 @@
-Welcome to Open Stage Control documentation. Along these pages you'll learn how to setup OSC on your system and everything you need to start building your own control interface.
-
-## Overview
-
-Open Stage Control consists of 3 modules: the server, the launcher and the client.
-
-The **server** is the core of the software, it is responsible for sending and receiving all osc/midi messages, and act as a web server that serves the clients web application. It is written in Javascript and runs with Electron, a cross-platform framework based on Chromium. By default, the server always opens a client window when it starts but it can be run in *headless* mode, without any window.
-
-The **launcher** provides a simple way to configure and start the server. It appears whenever the server is not launched from a terminal or without being configured.
-
-The **client** is the web application made available by the server when it starts. Any compatible browser that connects to the server by browsing to its address will create a new client instance and be able to open and modify sessions.
-
-
-## Requirements
-
-The **server** can run on all [platforms supported by Electron](https://www.electronjs.org/docs/tutorial/support#supported-platforms). Systems that can run [Node.js](https://nodejs.org/en/) may also be able to run it in headless mode (see [Running with Node](./running-with-node.md)).
-
-The **client** is compatible with the following browsers:
-
-- Firefox: version `75` and higher
-- Chromium / Chrome: version `75` and higher
-
-iOS devices must be of version `11` or higher.
-
-
-## Installation
-
-=== "Linux 64bit"
-
- **Ubuntu / Debian**
-
- - [Download](/download) `open-stage-control-VERSION-amd64.deb`
- - Install it by running this as root in a terminal:
- ```bash
- dpkg -i path/to/open-stage-control-VERSION-ARCH.deb
- ```
-
- **Other linux distributions**
-
- - [Download](/download) `open-stage-control-VERSION-linux-x64.zip`
- - Extract it in the location of your choice
- - The file inside it named `open-stage-control` is the app's main executable
-
-=== "Mac 64bit"
-
- - [Download](/download) `open-stage-control-VERSION-osx-x64.zip`
- - Extract it in the location of your choice
- - Drag `open-stage-control.app` in your `Application` folder
-
-
-=== "Mac Silicon (arm)"
-
- - [Download](/download) `open-stage-control-VERSION-osx-arm.zip`
- - Extract it in the location of your choice
- - Drag `open-stage-control.app` in your `Application` folder
-
- See [https://disable-gatekeeper.github.io/](https://disable-gatekeeper.github.io/) to workaround the "damaged and can't be opened" error.
-
-=== "Windows 64bit"
-
- - [Download](/download) `open-stage-control-VERSION-win32-x64.zip`
- - Extract it in the location of your choice
- - The file inside it named `open-stage-control.exe` is the app's main executable
-
-=== "Other systems"
-
- - Install [Node.js](https://nodejs.org/en/download/package-manager/)
- - Download `open-stage-control-VERSION-node.zip`
- - Extract it in the location of your choice
- - In a terminal, run `node /path/to/open-stage-control-VERSION-node --help`
diff --git a/resources/docs/docs/getting-started/running-from-sources.md b/resources/docs/docs/getting-started/running-from-sources.md
deleted file mode 100644
index dd4a90c0..00000000
--- a/resources/docs/docs/getting-started/running-from-sources.md
+++ /dev/null
@@ -1,109 +0,0 @@
-Running the app from the sources slightly differs from using prebuilt binaries: we'll build and launch the app with npm (node package manager).
-
-## Requirements
-
-- [Node.js](https://nodejs.org/en/#download)
-- [git](https://git-scm.com/downloads)
-
-
-## Run from sources
-
-
-**Download**
-
-```bash
-git clone https://framagit.org/jean-emmanuel/open-stage-control.git
-cd open-stage-control/
-# uncomment next line if you want the latest release
-# instead of the current development version
-# git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
-npm install
-npm run build
-```
-
-!!! tip "Raspberry systems"
- Run one of these instead of `npm install` (you can get the system's `arch` by running `uname -m` in a terminal)
- ```
- npm install --arch=arm64
- npm install --arch=armv7l
- ```
-
-
-!!! info "Updating from sources"
- ```bash
- git pull
- npm install
- npm run build
- ```
-
-**Run**
-
-```bash
-npm start [ -- options]
-```
-
-!!! info ""
- A double hyphen (`--`) is used here to tell npm that the options are to be passed to the app.
-
-
-!!! warning "MIDI support"
- When running from sources, MIDI support won't be enabled unless the [MIDI configuration procedure](../../midi/midi-configuration/) for "other systems" is followed.
-
-## Build documentation
-
-In order to make the local documentation available through the server's `--docs` option and the launcher's `Documentation` menu action, an extra step is needed.
-
-
-```bash
-# install docs website theme
-python3 -m pip install mkdocs-material
-# build docs website
-npm run build-docs
-```
-
-## Package from sources
-
-Follow the "Run from sources" instructions, then:
-
-```bash
-
-# TARGET_PLATFORM can be linux, win32 (windows) or darwin (os x)
-export PLATFORM=TARGET_PLATFORM
-# TARGET_ARCH can be ia32, x64, armv7l or arm64
-export ARCH=TARGET_ARCH
-
-
-npm run package
-
-
-# The node-only package can be built with
-npm run package-node
-
-```
-
-This will build the app in `dist/open-stage-control-PLATFORM-ARCH`.
-
-!!! info ""
- Building the app for windows from a linux system requires wine to be installed.
-
-
-## Debian / Ubuntu and RPM installers
-
-=== "Debian / Ubuntu"
-
- ```
- npm run deb64
- ```
-
-=== "RPM"
-
- ```
- npm run rpm
- ```
-
-
-## Build script on Mac Silicon
-
-This user-contributed script can be used to build open stage control on recent Macs:
-
-https://github.com/rewgs/osc-as
diff --git a/resources/docs/docs/getting-started/running-with-node.md b/resources/docs/docs/getting-started/running-with-node.md
deleted file mode 100644
index 39a9e400..00000000
--- a/resources/docs/docs/getting-started/running-with-node.md
+++ /dev/null
@@ -1,24 +0,0 @@
-## Lite headless mode
-
-It's possible to run the server in headless mode with the nodejs engine embedded in Electron, this reduces memory / cpu usage significantly.
-
-```
-ELECTRON_RUN_AS_NODE=1 open-stage-control path/to/open-stage-control/resources/app/ [options]
-```
-
-
-## Running with node
-
-If Electron does not run on your platform, it is possible to run the server in headless mode using [Node.js](https://nodejs.org/en/download/package-manager/).
-
-
-1. Install [Node.js](https://nodejs.org/en/download/package-manager/)
-2. Download `open-stage-control-[version]-node.zip` package and extract it
-3. Run `node /path/to/open-stage-control [options]`
-
-
-!!! info
- When running from sources or with regular binaries (packaged with electron), the command slightly differs:
-
- - electron package: `node /path/to/open-stage-control/resources/app [options]`
- - from sources: `node /path/to/open-stage-control/app [options]`
diff --git a/resources/docs/docs/getting-started/server-configuration.md b/resources/docs/docs/getting-started/server-configuration.md
deleted file mode 100644
index 63fa6ca8..00000000
--- a/resources/docs/docs/getting-started/server-configuration.md
+++ /dev/null
@@ -1,230 +0,0 @@
-The **server** can be configured with many options, either from a terminal or with the help of the **launcher**.
-
-## Options
-
-!!! quote ""
- #### `send`
-
- Defines the default osc/midi targets. These will be added to the widget's individual targets. Targets must be separated by a space and formatted as follows:
-
- - `ip_address:port`
- - `host_name:port`
- - `midi:device_name`
-
-!!! quote ""
- #### `load`
-
- Path to a session file (.json). All clients connecting the server will load it.
-
-!!! quote ""
- #### `state`
-
- Path to a state file (.state). All clients connecting the server will load it.
-
-
-!!! quote ""
- #### `custom-module`
-
- Path to a custom module file (.js).
-
- **WARNING:** custom module can access the file system, use at your own risk.
-
-
-!!! quote ""
- #### `port`
-
- HTTP port for the server (default: `8080`).
-
-
-!!! quote ""
- #### `osc-port`
-
- OSC (UDP) input port (default: `port`).
-
-
-!!! quote ""
- #### `tcp-port`
-
- OSC (TCP) input port.
-
-
-!!! quote ""
- #### `tcp-targets`
-
- TCP servers to connect to. When sending osc messages, if the target matches one of these, TCP protocol will be used instead of UDP. Targets must be separated by a space and formatted as follows:
-
- - `ip_address:port`
- - `host_name:port`
-
-
-!!! quote ""
- #### `midi`
-
- MIDI options separated by spaces, MIDI support must be enabled, see [MIDI configuration](../midi/midi-configuration.md).
-
-
-!!! quote ""
- #### `debug`
-
- Print sent and received messages in the console. This may impact performance and should not be enabled in production.
-
-
-
-!!! quote ""
- #### `no-gui`
-
- Disable built-in client window.
-
-
-!!! quote ""
- #### `fullscreen`
-
- Start the built-in client window in fullscreen.
-
-
-!!! quote ""
- #### `theme`
-
- Theme names or paths. See [Themes](../customization/themes.md).
-
-
-!!! quote ""
- #### `client-options`
-
- Default [client options](../client-options.md), separated by spaces.
-
-
-!!! quote ""
- #### `disable-vsync`
-
- Disable built-in client window's vertical synchronization.
-
-
-!!! quote ""
- #### `force-gpu`
-
- Disable built-in client window's gpu blacklist (may improve rendering performance in some cases).
-
-
-!!! quote ""
- #### `read-only`
-
- Disable session editing, and file saving.
-
-
-!!! quote ""
- #### `remote-saving`
-
- Disable file saving for hosts that don't match the regular expression.
-
- Sessions are saved and opened on the server's filesystem. It is possible to limit this feature to specific client with a regular expression. For example, `"127.0.0.1|192.168.0.10"` disables remote saving except for clients with ip addresses `127.0.0.1` (the server's local address) and `192.168.0.10`.
-
-
-!!! quote ""
- #### `remote-root`
-
- Set file browsing root folder. Prevent writing files outside of this folder.
-
-!!! quote ""
- #### `authentication`
-
- Restrict access to `user:password` (remote clients will be prompted for these credentials).
-
-!!! quote ""
- #### `instance-name`
-
- Server's name on zeroconf/bonjour network. Incremented automatically if not available.
-
-!!! quote ""
- #### `use-ssl`
-
- Use HTTPS protocol instead of HTTP (a self-signed certificate will be created)
-
-
-
-## Command-line options
-
-The following options can only be set from a terminal.
-
-!!! quote ""
- #### `disable-gpu`
-
- Disable hardware acceleration for the launcher window and the built-in client window.
-
-
-!!! quote ""
- #### `inspect`
-
- Enable node inspector.
-
-
-!!! quote ""
- #### `cache-dir`
-
- Override default cache directory (contains browser cache and localStorage data).
-
-
-!!! quote ""
- #### `config-file`
-
- Override default config file location (contains session history and launcher config). Defaults to `cache-dir/config.json`.
-
-
-
-!!! quote ""
- #### `client-position`
-
- Define the built-in client window position, must be a pair of integers separated by a comma (`x,y`).
-
-
-
-!!! quote ""
- #### `client-size`
-
- Define the built-in client window size, must be a pair of integers separated by a comma (`width,height`).
-
-!!! quote ""
- #### `no-qrcode`
-
- Disable qrcode when the server starts.
-
-
-!!! quote ""
- #### `help`
-
- Show help.
-
-!!! quote ""
- #### `docs`
-
- Serve documentation website locally and open it with the system's default browser
-
-
-!!! quote ""
- #### `version`
-
- Show version number.
-
-
-## Running in a terminal
-
-Options name must be prepended with a double dash (`--`) in a terminal.
-
-!!! example "Example"
- ```
- open-stage-control --no-gui --load path/to/your/session.json --theme path/to/your/theme.css
- ```
-
- Launches the server in headless mode, and makes all clients load provided session and theme automatically.
-
-
-## Running in a terminal on Windows
-
-Windows users launching the app from a terminal need to add a double dash (`--`) and a space before their options:
-
-```bash
-open-stage-control.exe -- --port 5555 [...]
-
-# when running from sources
-npm start -- -- [options]
-```
diff --git a/resources/docs/docs/midi/midi-configuration.md b/resources/docs/docs/midi/midi-configuration.md
deleted file mode 100644
index feb3984a..00000000
--- a/resources/docs/docs/midi/midi-configuration.md
+++ /dev/null
@@ -1,144 +0,0 @@
-## Installation
-
-
-=== "Linux / Windows / OSX"
-
- Open Stage Control comes bundled with built-in MIDI support if you're using the official package for Linux, OSX or Windows.
-
-
-=== "Other systems / Node"
-
- Enabling MIDI support on other systems or when building Open Stage Control from sources requires additional softwares to be installed on the server's system:
-
- - [python 3](https://www.python.org/downloads/)
- - python package [python-rtmidi](https://spotlightkid.github.io/python-rtmidi/installation.html#from-pypi)
-
-
- ??? example "Linux"
-
- Install `python3-rtmidi` from your distribution's package repository, or if it's not available:
-
- - Install `python3` and `python3-pip` from your distribution's package repository
- - Run this command in a terminal
- ```bash
- python3 -m pip install python-rtmidi --upgrade
- ```
-
- ??? example "Mac"
-
- - Download and install [Python 3 for Mac OS](https://www.python.org/downloads/mac-osx/)
- - Open a terminal
- - Install `pip` (package installer for python) by executing these commands
- ```
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- python get-pip.py
- ```
- - Install `python-rtmidi` by executing this command
- ```bash
- python -m pip install python-rtmidi --upgrade
- ```
-
- ??? example "Windows"
-
- - Download and install [Python 3 for Windows](https://www.python.org/downloads/windows/)
- - **make sure to check the option** "Add Python 3.x to PATH"
- - Open a terminal (++win+r++)
- - Install `pip` (package installer for python) by executing these commands
- ```
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- python get-pip.py
- ```
- - Install `python-rtmidi` by executing this command
- ```bash
- python -m pip install python-rtmidi --upgrade
- ```
-
-## Configuration
-
-The server's `midi` option accepts the following parameters, separated by spaces.
-
-!!! warning ""
- If an option contains space characters, it must be quoted.
-
-**`list`**
-
-Print the available MIDI ports to the console when the server starts. This action is also available in the launcher's menu.
-
-**`device_name:input,output`**
-
-Create a virtual MIDI device that will translate OSC messages to MIDI messages
-
-- `device_name` is an arbitrary identifier that can be used as a target by widgets (see [Widget setup](#widget-setup)). It doesn't have to match any device's real name.
-- `input` / `output` can be port numbers or strings (as reported by the `list` action). If a string is specified, the first port whose name contains the string will be used (comparison is case-insensitive).
-
-**`sysex`**
-
-Enable parsing of system exclusive messages (disabled by default).
-
-**`mtc`**
-
-Enable parsing of midi time code messages (disabled by default).
-
-**`rpn`**
-
-Enable sending and receiving [RPN/NRPN](https://en.wikipedia.org/wiki/NRPN) controls on as single `/rpn` / `/nrpn` messages instead of 3 or 4 control changes that constitute them.
-
-
-**`active_sensing`**
-
-Enable parsing of midi active sensing messages (disabled by default). Active sensing messages will be received as sysex.
-
-**`pc_offset`**
-
-Send program changes with a `-1` offset to match some software/hardware implementations
-
-**`note_off_velocity`**
-
-Use `/note_on` for noteOn messages and `/note_off` for noteOff messages instead of the defaut `/note` and velocity 0 for note off.
-
-**`auto_note_off`**
-
-Prevent converting outgoing noteOn messages with velocity 0 to noteOff messages.
-
-
-**`device_name:virtual`** (*Linux / Mac only*): creates a virtual midi device with one input port and one output port
-
-
-**`jack`** (*Linux only*): use JACK MIDI instead of ALSA. `python-rtmidi` must be compiled with [jack support](https://spotlightkid.github.io/python-rtmidi/installation.html#linux) for this to work.
-
-
-**`path=/path/to/python`**
-
-*Only use this if you know what you are doing. This option should not be set when using the official Linux / Windows / OSX packages.*
-
-Indicates where to find python binary in case open stage control doesn't (`Error: spawn python3 ENOENT`).
-
-
-## Widget setup
-
-In order to send MIDI messages, a widget must have at least one `target` formatted as follows:
-
-`midi:device_name` (where `device_name` is one of the declared midi devices)
-
-Its `address` and `preArgs` properties must be set according to Open Stage Control's [midi messages](../midi-messages) specification.
-
-!!! warning
- Messages received from a MIDI port only affect widgets that send to this port.
-
-## Debug
-
-Enabling the server's `debug` options will print some extra information (sent/received midi messages, midi setup information, etc)
-
-## Example configuration
-
-Setting the server's `midi` option as follows:
-
-```
-sysex synth:1,2 daw:3,3
-```
-
-- enables sysex support (sysex messages will not be ignored)
-- creates a midi device "synth" connected with input 1 and output 2
-- creates a midi device "daw" connected with input 3 and output 3
-
-If a widget has its `target` set to `midi:synth`, it will receive MIDI from port 1 and send MIDI to port 2.
diff --git a/resources/docs/docs/midi/midi-messages.md b/resources/docs/docs/midi/midi-messages.md
deleted file mode 100644
index e189dcfe..00000000
--- a/resources/docs/docs/midi/midi-messages.md
+++ /dev/null
@@ -1,130 +0,0 @@
-!!! info ""
- Define static argument values using the [`preArgs`](/docs/widgets/properties-reference/#preArgs) option in order to complete the respective MIDI message.
-
-----
-
-#### `/note channel note velocity`
-
-NoteOn event or noteOff if velocity equals `0`. Incoming noteOff events will be received as `/note` with velocity 0 if `note_off_velocity` is not set during [setup](../midi-configuration).
-
-- `channel`: integer between 1 and 16
-- `note`: integer between 0 and 127
-- `velocity`: integer between 0 and 127
-
-!!! example "Example"
-
- A push button might be configured as follows in order to send a MIDI note whose velocity is defined by the button's on/off value:
-
- - `address`: `/note`
- - `preArgs`: `[1, 60]` (for MIDI channel 1, and note 60 / C4)
- - `on`: `100` (for noteOn velocity of 100 on button push)
- - `off`: `0` (to send a noteOff on button release)
- - `target`: `midi:device_name` (where device_name is one of the declared midi devices defined during [setup](../midi-configuration))
-
-----
-
-#### `/note_off channel note velocity`
-
-NoteOff event with any velocity. Incoming noteOff events will be received as `/note_off` if `note_off_velocity` is set during [setup](../midi-configuration).
-
-----
-
-#### `/control channel cc value`
-
-Control change event.
-
-- `channel`: integer between 1 and 16
-- `cc`: integer between 0 and 127
-- `value`: integer between 0 and 127
-
-!!! example "Example"
-
- A fader might be configured as follows in order to send a MIDI control message (a volume control in this example):
-
- - `address`: `/control`
- - `pre-args`: `[1, 7]` (MIDI channel 1, control number 7 generally used as volume control)
- - `range`: `{"min": 0, "max": 127}` (MIDI values are encoded in this range)
- - `target`: `midi:device_name`
-
-----
-
-#### `/program channel program`
-
-Program change event.
-
-- `channel`: integer between 1 and 16
-- `program`: integer between 0 and 127*
-
-!!! info
- \* Some devices / softwares display the `program` value between 1 and 128, thus interpreting `program change 0` as `program change 1` and so on. Add the `pc_offset` parameter to the server's `midi` option to make Open Stage Control behave this way.
-
-----
-
-#### `/pitch channel pitch`
-
-PitchWheel event.
-
-- `channel`: integer between 1 and 16
-- `pitch`: integer between 0 and 16383
-
-----
-
-#### `/sysex msg`
-
-System exclusive message.
-
-- `msg`: hexadecimal sysex data string of the form `f0 ... f7`.
-
-Instead of a single hexadecimal string, arguments can be separated and defined either as hexadecimal bytes or as integers. When received, system messages are always formatted as a single hexadecimal string.
-
-----
-
-#### `/mtc timecode`
-
-MIDI time code message.
-
-- `timecode`: `hh:mm:ss:ff` string.
-
-
-----
-
-#### `/channel_pressure channel pressure`
-
-Channel pressure event.
-
-- `channel`: integer between 1 and 16
-- `pressure`: integer between 0 and 127
-
-----
-
-
-#### `/key_pressure channel note pressure`
-
-Polyphonic key pressure event.
-
-- `channel`: integer between 1 and 16
-- `note`: integer between 0 and 127
-- `pressure`: integer between 0 and 127
-
-----
-
-
-#### `/rpn channel rpn value`
-
-Registered Parameter Number event.
-
-- `channel`: integer between 1 and 16
-- `rpn`: integer between 0 and 16383
-- `value`: integer between 0 and 16383
-
-----
-
-#### `/nrpn channel nrpn value`
-
-Non-Registered Parameter Number event.
-
-- `channel`: integer between 1 and 16
-- `nrpn`: integer between 0 and 16383
-- `value`: integer between 0 and 16383
-
-----
diff --git a/resources/docs/docs/remote-control.md b/resources/docs/docs/remote-control.md
deleted file mode 100644
index a25fb9db..00000000
--- a/resources/docs/docs/remote-control.md
+++ /dev/null
@@ -1,237 +0,0 @@
-# Remote control
-
-When osc messages are received, the default behavior is to update the value of all widgets that match the address and preArgs. Additionally, Open Stage Control clients respond to some general osc commands.
-
-!!! note "Multi-client setup"
- These commands are interpreted by each client connected to the server so there might be more than one reply. Using a custom module is the only way to send a message to a single client.
-
-
-----
-
-#### `/EDIT id properties options`
-
-
-Apply a set of options to an existing widget by replacing the old ones with the new ones. This ignores the widget's `lock` property. If sent by a custom module using `receive()`, this command will not be prevented by the server's `read-only` option.
-
-- `id`: `string`, widget's `id`
-- `properties`: `string`, [JSON5](https://github.com/json5/json5) stringified object defining the new properties to merge
- - example: `{"label":"New Label", "color":"red"}`
-- `options` (optional): `string`, [JSON5](https://github.com/json5/json5) stringified object defining extra option flags:
- - `noWarning`: set to `true` to prevent further warning when exiting.
-
-----
-
-#### `/EDIT/MERGE id properties options`
-
-Apply a set of options to an existing widget by merging them to the widget's options.
-
-----
-
-#### `/EDIT/UNDO`
-
-Undo editing action
-
-
-----
-
-#### `/EDIT/REDO`
-
-Redo editing action
-
-
-----
-
-#### `/EDIT/GET target id`
-
-Sends back a widget's data (JSON stringified object), including its children, to specified target.
-
-- `target`: `string`, `ip:port` pair
-- `id`: `string`, widget's `id`
-
-Replies `/EDIT/GET id data`
-
-- `id`: `string`
-- `data`: `string`
-
-
-----
-
-#### `/EDIT/GET target address preArg1 preArg2 ...`
-
-Sends back a widget's data (JSON stringified object), including its children, to specified target.
-
-- `target`: `string`, `ip:port` pair
-- `address`: `string`, widget's `address`
-- `preArg[1...]`: `*`, widget's `preArgs`
-
-Replies `/EDIT/GET address preArg1 preArg2 ... data`
-
-- `address`: `string`, widget's `address`
-- `preArg[1...]`: `*`, widget's `preArgs`
-- `data`: `string`
-
-
-
-----
-
-#### `/GET target id`
-
-Sends back a widget's value to specified target.
-
-- `target`: `string`, `ip:port` pair
-- `id`: `string`, widget's `id`
-
-Replies `/GET id value`
-
-- `id`: `string`
-- `value`: `*`
-
-
-----
-
-#### `/GET target address preArg1 preArg2 ...`
-
-Sends back a widget's value to specified target.
-
-- `target`: `string`, `ip:port` pair
-- `address`: `string`, widget's `address`
-- `preArg[1...]`: `*`, widget's `preArgs`
-
-Replies `/GET address preArg1 preArg2 ... value`
-
-- `address`: `string`, widget's `address`
-- `preArg[1...]`: `*`, widget's `preArgs`
-- `value`: `*`
-
-
-----
-
-#### `/GET/#`
-
-Same as `/GET` but uses the widget's address instead of `/GET` to reply.
-
-----
-
-#### `/NOTIFY icon message`
-
-Sends a notification message to the client.
-
-- `icon`: icon for the notification, for example : `^play`, `^pause`, etc (see https://fontawesome.com/icons?d=gallery&s=solid&m=free)
-- `message`: message content
-
-
-----
-
-#### `/LOG message`
-
-Print message in the client's console.
-
-----
-
-#### `/SET id value`
-
-Set a widget's value as if it was interacted with from the interface. This is likely to make it send its value.
-
-- `id`: `string`, widget's `id`
-- `value`: `*`, widget's new value
-
-
-----
-
-#### `/SET address preArg1 preArg2 ... value`
-
-Set a widget's value as if it was interacted with from the interface. This is likely to make it send its value.
-
-- `address`: `string`, widget's `address`
-- `preArg[1...]`: `*`, widget's `preArgs`
-- `value`: `*`, widget's new value
-
-
-
-----
-
-#### `/STATE/GET target`
-
-Sends back the app's state to specified target
-
-- `target`: `string`, `ip:port` pair
-
-
-----
-
-#### `/STATE/SET state send`
-
-Set widgets' state
-
-- `state`: `string`, json stringified object (`"widget_id": value` pairs)
-- `send` (optional): `boolean`, set to `false` to prevent widgets from sending their values when the state is applied
-
-
-
-----
-
-#### `/STATE/STORE`
-
-Save the state of all widgets in the temporary slot.
-
-
-----
-
-#### `/STATE/RECALL`
-
-Reload saved state from the temporary slot.
-
-
-----
-
-#### `/STATE/SEND`
-
-Make all widgets send their current value.
-
-----
-
-#### `/STATE/OPEN path.state`
-
-Open state file `path.state`.
-
-----
-
-#### `/STATE/SAVE path.state`
-
-Save state session to `path.state`.
-
-----
-
-#### `/SESSION/CREATE`
-
-Create a new empty session. Unsaved changes will be lost.
-
-----
-#### `/SESSION/OPEN path.json`
-
-Open session file `path.json`.
-
-----
-
-#### `/SESSION/SAVE path.json`
-
-Save current session to `path.json`. If `path.json` is omitted, current session's path is used.
-
-----
-
-#### `/TABS tab_id1 tab_id2 ...`
-
-Open the tabs designated by the id parameters.
-
-----
-
-#### `/SCRIPT code`
-
-Run code as if it where executed by a script widget.
-
-
-----
-
-#### `/RELOAD`
-
-Reload page in the browser.
diff --git a/resources/docs/docs/tutorials/change-property-with-osc.md b/resources/docs/docs/tutorials/change-property-with-osc.md
deleted file mode 100644
index 1c9a83c8..00000000
--- a/resources/docs/docs/tutorials/change-property-with-osc.md
+++ /dev/null
@@ -1,149 +0,0 @@
-# Change a widget property with an osc message
-
-By default, widgets only expose their value to incoming messages, but there are multiple ways to allow changing any widget property using osc messages as well. In this tutorial we'll explore the different possibilities for exposing the `visible` property of a widget to incoming messages, but it applies to any other property.
-
-## 1. Using a variable widget
-
-Create a variable widget and set up its `address` (and `preArgs` if needed) so that it receives the messages you want to use, and then in your other widget's `visible` property, use the [inheritance syntax](../widgets/advanced-syntaxes.md#inheritance-idproperty) to retrieve the variable's value:
-
-
-=== "Inheritance syntax"
- ```
- @{variable_id}
- ```
-=== "Inheritance syntax + Javascript"
- ```js
- JS{
- // bonus, in case you don't want to use the variable's value as-is
- if (@{variable_id} > 0.5) {
- return true
- } else {
- return false
- }
- }
- ```
-
-Now the variable's value will determine the visibility of the widget. The `visible` property expects a boolean value (`true` for visible, `false` for invisible) but any [truthy](https://developer.mozilla.org/en-US/docs/Glossary/truthy) / [falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) will do (e.g. `1` for visible, `0` for invisible is a sensible choice).
-
-## 2. Using the OSC listener syntax
-
-The [OSC listener syntax](../widgets/advanced-syntaxes.md#osc-listeners-oscaddress-default-usepreargs) might be a more straightforward solution for simple use cases. Writing this in a widget's `visible` property:
-
-
-=== "Relative address"
- ```
- OSC{show}
- ```
-
-will listen for messages on address `/widget_address/show` and return the last received value.
-
-
-If we write this instead:
-
-=== "Absolute address"
- ```
- OSC{/show}
- ```
-
-the address will be `/show` and won't be prefixed with the widget's address as before.
-
-
-It is often needed to specify the initial state of the listener (before it receives any message), this is done via the second argument of the listener syntax:
-
-
-=== "Default value (true)"
- ```
- OSC{show, true}
- ```
-=== "Default value (truthy)"
- ```
- OSC{show, 1}
- ```
-=== "Default value (false)"
- ```
- OSC{show, false}
- ```
-=== "Default value (falsy)"
- ```
- OSC{show, 0}
- ```
-
-If the widget has any preArgs set, the osc listener will inherit them by default, this means that for a message to change the listener's value it will not only have to match its address but also the widget's `preArgs`, this can be prevented using the third argument of the listener syntax:
-
-=== "Ignore preArgs"
- ```
- OSC{show, 1, false}
- ```
-
-
-## 3. Using custom variables
-
-The [custom variable syntax](../widgets/advanced-syntaxes.md#custom-variables-varvariablename-default) connects regular properties and scripting properties (`onCreate`, `onValue`, etc), writing this in the `visible` property:
-
-```
-VAR{show}
-```
-
-will create a custom variable named `show` scoped to the widget (custom variables do not use a global namespace and multiple widgets may use the same names for their custom variables without conflict). This custom variable can be read and set from any widget scripting property using the [`getVar()` / `setVar()`](../widgets/scripting.md#getvarid-name) functions.
-
-For instance, we could use a variable widget as osc receiver like in the first example of this tutorial and use it's `onValue` script to change the custom variable's value (instead of using the inheritance syntax):
-
-```js
-// variable widget onValue
-// simply pass received value to the custom variable
-setVar('widget_id', 'show', value)
-```
-
-
-The custom variable's initial state can be specified:
-
-```
-VAR{show, 1}
-```
-
-## 4. Using /EDIT commands
-
-The [`/EDIT`](../remote-control.md) remote control command can be used to modify any widget property in the session, for instance:
-
-```
-/EDIT widget_id '{visible: false}'
-```
-
-Will hide the widget with id `widget_id`. Note that this is different from the 3 techniques described above in that it actually modifies the session and changes the property value in a destructive way (the property is rewritten, not just its state). When quitting the session after using it a warning indicating the session has unsaved changes will be shown, this can be prevented by appending a extra argument to the message:
-
-```
-/EDIT widget_id '{visible: false}' '{noWarning: true}'
-```
-
-Note that the arguments after `widget_id` are sent as strings ([JSON5](https://github.com/json5/json5)-encoded objects), this is because sending plain javascript object over osc is not possible.
-
-## Bonus: custom module
-
-Any of these techniques can be used in conjunction with a [custom module](../custom-module/custom-module.md). Using the `receive()` function allows simulating incoming osc messages and can be used to trigger property changes:
-
-=== "Variable widget"
- ```js
- var visible = true
- receive('/variable_id', visible)
- // or if variable widgets has preArgs
- receive('/variable_id', preArg1, preArg2, visible)
- ```
-=== "OSC listener"
- ```js
- var visible = true
- receive('/widget_address/show', visible)
- // or if listener has preArgs
- receive('/widget_address/show', preArg1, preArg2, visible)
- ```
-=== "Custom variable"
- ```js
- var visible = true
- receive('/SCRIPT', `setVar('widget_id', 'show', ${visible})`)
- ```
-=== "/EDIT command"
- ```js
- var visible = true
- // what's really cool here is that you don't need to stringify objects arguments
- // receive() will take care of that for you
- receive('/EDIT', 'widget_id', {visible: visible}}, {noWarning: true})
- ```
diff --git a/resources/docs/docs/tutorials/first-steps.md b/resources/docs/docs/tutorials/first-steps.md
deleted file mode 100644
index 71df540c..00000000
--- a/resources/docs/docs/tutorials/first-steps.md
+++ /dev/null
@@ -1,252 +0,0 @@
-# First Steps with Open Stage Control
-
-*Contributed by H. James Harkins, Feb. 2023*
-
-Let's walk through the basic steps to build a simple interface in Open Stage Control, send information to another app, and deploy the interface to remote (even mobile) devices.
-
-Before beginning, you should already have installed Open Stage Control -- see the [Introduction](../getting-started/introduction.md).
-
-Also: This document provides sample patches for SuperCollider, Pure Data and Max/MSP, to receive control data from the Open Stage Control interface. If you do not have any of these tools, I suggest to install [Pure Data](https://puredata.info/downloads/pure-data) because it has the smallest footprint.
-
-## The Launcher
-
-Use your system's application launcher, open the Open Stage Control app. Here, you can configure options for the interface server.
-
-For now, go to the first box ("send") and type in `127.0.0.1:57120`. This will tell the server to send Open Sound Control messages to the same machine where the server is running, on port 57120.
-
-NOTE: For your own applications, you can use any port that is not in use. For this example, I chose 57120 because it is SuperCollider's default UDP port (and I set the Pure Data and Max patches to use the same port, to simplify.)
-
-You don't need to set any other options at this time.
-
-### Addresses and ports
-
-Many users approaching Open Sound Control for the first time get confused about ports. You need to be aware of the FROM and TO addresses. The "send" field in the Launcher should reference the address TO which messages should be sent. In this demo, we are assuming that Open Stage Control and the target app are running on the same machine. So the TO address is localhost: `127.0.0.1`. The "send" box should use the port *on which the target app is receiving messages*. This is typically under control of the target app: 1/ SuperCollider opens 57120 by default; 2/ Pd's [netreceive] object, and Max's [udpreceive], both require the TO port as an argument. So the TO port is your choice, as long as they match.
-
-Open Stage Control sends messages FROM the IP address of the machine where Open Stage Control is running, and from port 8080 (or localhost = `127.0.0.1` if on the same machine). Thus, if the receiving app will filter incoming messages based on address, the filtering address should be the FROM address, port 8080. The target app can also update Open Stage Control's display by sending messages back to exactly this address. So you will see later, in the demo patches, that messages are sent to `127.0.0.1:8080` so that the user's interaction with the target app appears in Open Stage Control as well.
-
-## Starting the server
-
-Click the "play" button near the top left of the window. You should see status messages in the launcher window such as:
-
-```
-(INFO) Server started, app available at
- http://127.0.0.1:8080
- http://your.ip.ad.dress:8080
-```
-
-And a new, mostly empty, window will open. This new, larger window is the *client*.
-
-## The client
-
-The client allows you to edit and perform your interface.
-
-The interface design is called a *session*. To create a new session, go to the "three-dots" menu at the top left, and choose Session > New session.
-
-Two new panels are displayed: a project browser, and an object inspector (to set properties). The empty space in the middle is the editor, where you will build the interface.
-
-Let's start with a toggle button. Right-click in the empty editor panel in the middle, and navigate to Add widget > Basics > button. For this demo, we don't need to change anything else: the button defaults to toggle behavior, and the display text is not important for now (although you can change it in the inspector, if you want).
-
-And let's add one more control, to the right of this: Right-click, Add widget > Sliders > fader.
-
-
-
-When a widget is selected, you can move it by dragging the top-left handle, and resize it by dragging the bottom-right handle. Let's use these handles to position the fader to the right of the button, and stretch it to be horizontal instead of vertical.
-
-
-
-Notice, however, that the fader's value handle is still vertical. To fix this, look in the Inspector at the right, expand "Fader style," and check the "horizontal" checkbox.
-
-
-
-
-
-By the way: I suggest to keep the widgets closer to the top left, so that they are still visible on a phone screen (later).
-
-When designing an interface for production, you would change other object properties as well. In particular, the Open Sound Control addresses `/button_1` and `/fader_1` are not very descriptive. You would probably want to assign different command paths, in the "osc" tab. As this is just an introduction, we won't do that now.
-
-## Receiving the data
-
-At this time, the interface can already be used: three-dots menu > Editor > "Enabled" (click to disable the editor). (The controls will respond also when the editor is enabled, but you have to click an extra time to select the widget before changing its value.)
-
-To see the effect, launch one of the following apps and open the given patch. The Open Stage Control button should open and close the envelope, and the fader should control frequency. The patches also send control data from their own GUIs back to Open Stage Control, so all of the controls should be synced in both directions.
-
-NOTE: In Pure Data and Max, the default slider/fader range is 0-127, integers. Open Stage Control uses the range 0.0 - 1.0 by default. If you just create a slider and connect it, you won't see much action. In the example patches, the slider's properties have been modified to take a 0.0 - 1.0 floating-point range, matching the data from Open Stage Control.
-
-NOTE: Because all of the patches bind to the same UDP port, you can open only one at a time. You could, if you like, change the port number in one patch, and add that port by specifying multiple "send" targets in the Launcher, e.g. `127.0.0.1:57120 127.0.0.1:7374`.
-
-NOTE: These patches are provided as a courtesy to get you started more quickly. Maintaining, extending or developing them is outside the scope of the Open Stage Control community.
-
-!!! Example "Choose your app"
-
- === "Pure Data"
-
- Copy the code below, and save it into a text file `osc-first-steps.pd`. Then open it in Pure Data.
-
- ```
- #N canvas 436 127 562 502 12;
- #X obj 86 51 loadbang;
- #X msg 86 76 \; pd dsp 1;
- #X obj 253 51 netreceive -u -b 57120;
- #X obj 253 76 oscparse;
- #X obj 253 101 list trim;
- #X obj 253 126 route fader_1 button_1;
- #X msg 253 190 4 \$1;
- #X obj 253 215 pow;
- #X obj 253 240 * 200;
- #X obj 253 265 lop~ 3;
- #X msg 328 265 \$1 100;
- #X obj 328 304 line~;
- #X obj 279 356 *~;
- #X obj 279 381 *~ 0.1;
- #X obj 266 424 dac~;
- #X text 38 139 Open Stage Control \; "First Steps" tutorial \; hjh
- 2023;
- #X obj 253 304 osc~ 200;
- #X obj 328 159 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
- #000000 0 1;
- #X obj 256 159 hsl 60 15 0 1 0 0 empty empty empty -2 -8 0 10 #fcfcfc
- #000000 #000000 0 1;
- #X obj 70 251 unpack f s;
- #X obj 70 325 oscformat;
- #X msg 137 283 set \$1;
- #X obj 70 424 netsend -u -b;
- #X obj 93 356 loadbang;
- #X msg 93 381 connect 127.0.0.1 8080;
- #X obj 70 226 r sendback;
- #X msg 379 200 \; sendback \$1 button_1;
- #X msg 379 233 \; sendback \$1 fader_1;
- #X connect 0 0 1 0;
- #X connect 2 0 3 0;
- #X connect 3 0 4 0;
- #X connect 4 0 5 0;
- #X connect 5 0 18 0;
- #X connect 5 1 17 0;
- #X connect 6 0 7 0;
- #X connect 7 0 8 0;
- #X connect 8 0 9 0;
- #X connect 9 0 16 0;
- #X connect 10 0 11 0;
- #X connect 11 0 12 1;
- #X connect 12 0 13 0;
- #X connect 13 0 14 0;
- #X connect 13 0 14 1;
- #X connect 16 0 12 0;
- #X connect 17 0 10 0;
- #X connect 17 0 26 0;
- #X connect 18 0 6 0;
- #X connect 18 0 27 0;
- #X connect 19 0 20 0;
- #X connect 19 1 21 0;
- #X connect 20 0 22 0;
- #X connect 21 0 20 0;
- #X connect 23 0 24 0;
- #X connect 24 0 22 0;
- #X connect 25 0 19 0;
- ```
-
- === "Max/MSP"
-
- Copy the text below. In Max, choose File > New from clipboard.
-
- ```
- ----------begin_max5_patcher----------
- 949.3oc0XkraaCCD8rCP9GHDxo.GWRJpEWzaEnW6gdrInfVlwgoxjBRTYEMe
- 6khTx0HgVlwP1MFAwBZnjl2algyBe9zSFELS9.qJ.7YvOAiF8rVxHirFIi5D
- LJXI8grbZk4ACVxppnKXAiaWTwdPYV3SWSmyJ+EBbFZ0h74lkjyt8BDdkzBp
- J6FtXwuJYYJq1wwjIvw.LJt4RRh4F7DH3ptWRTujKxYJCJvqIUVq5Di5Dako
- drfY+7AAfqLK8mSOo4p9x3AfwypUJoXiTNtWFSBaHIJB1bIM5iDiEr603+sD
- tddQESLGfvZGj9ODHElBc5s8f5gnTqEHdKbG4l6vcleYxkKYB0aI32KXBvOT
- ZuM3qRgpTlCtL3a7xJkVJqn5x.fpVIK4zbvEfat8F.FhCW8cx4BVlrVX9XgN
- LK3DerKv0BLHoGNyRUNWuC1k6DG0GtsHEAM9wXCGvvsC6qykTkF3E0pdnC5e
- JtjtjozoXXB5rbSbNruv+t0p3OYjhlr6lFkbwhblSSCoOSCBkLIZksAS5988
- 4R2Qa.uIP7pgeWxWt3BPVNO62.kDXABfVOmKcZe5MuOJzj3iDEYLSsUAfGtX
- d1SyoYu3D3vdi4mNIQiXhcKKIp622W5a3fmh97W.57xNSIOsO9jfab.gSmZH
- xfW+shuPPy2G0jN2oyCk5AYiwFZNs4liCx1TfwMeS7HKTaAWBb27t3sQ3wff
- YTwh8RuVmgzIQc2pQrGTGaqQEAOFZyJ6wr7M3lIauNbqWd3o5+ivZz14KNM7
- XNpNxcPMzCh21gX3wPL845p5vItnZpGL0NVHYvGRxzB5dwyR1vLgIdzHc693
- ihQBKj26hl9LufceaX3GNm5l3ZoVULvpy4X03+tL.djn11rKJhrECPnaCP3l
- 8yia+e+bD.Zdv32w.QIHryjWgdTjxFBfR1sQ+eOw31uroFyqOpKC7ZV3UVhJ
- YcYV2Wr6vq.qgw4rJEWPUboX8mx9Pa1l6s9Zl21C88JTIKaFeu+wJ7GBDefP
- 7dDAwGVadpWpCNX5KwG8EMXpyqHpzAScdE8fiFT8g1p9HCl9B8gejCbBgjMr
- aDcvxGfh2iPn4DL7HnB9w.Bn8TZQjeIplNXwdHuxTYfEZXTneY9SFNFR7lgC
- jBQdovgK+AB5kBcWMssCJZQwcrxp1WwpKcSi2JMg1ois2yE16ssnETxti28J
- 1SpNfVp6IToaHrtz.wfGha6VNXoTuQQTy61t1v1FUa5KUP0SaUPs7xz+5omn
- ef+B9C+QQC
- -----------end_max5_patcher-----------
- ```
-
- === "SuperCollider"
-
- Copy/paste the code below into a new code document. Run the entire block to start. It will clean up when you close the GUI window.
-
- ```
- // OSC response part
- (
- var addr = NetAddr("127.0.0.1", 8080); // FROM address
- var freqRange = ControlSpec(200.0, 800.0, \exp);
- var button, slider;
-
- OSCdef(\button, { |msg|
- defer { button.value = msg[1] };
- if(x.notNil) { x.set(\gate, msg[1]) };
- }, '/button_1', addr);
-
- OSCdef(\slider, { |msg|
- defer { slider.value = msg[1] };
- if(x.notNil) { x.set(\freq, freqRange.map(msg[1])) };
- }, '/fader_1', addr);
-
- w = Window("Open Stage Control", Rect(800, 200, 400, 100)).front;
- w.layout = HLayout(
- button = Button(),
- slider = Slider().orientation_(\horizontal)
- );
- w.alwaysOnTop = true; // may not take effect in all window managers
-
- button.states = [["off"], ["playing", Color.black, Color(0.7, 1, 0.7)]];
- button.action = { |view|
- if(x.notNil) { x.set(\gate, view.value) };
- addr.sendMsg('/button_1', view.value);
- };
-
- slider.action = { |view|
- if(x.notNil) { x.set(\freq, freqRange.map(view.value)) };
- addr.sendMsg('/fader_1', view.value);
- };
-
- w.onClose = {
- if(x.notNil) { x.free };
- OSCdef(\button).free;
- OSCdef(\slider).free;
- };
-
- // audio part
- // if this fails (if you have an issue with audio devices),
- // you won't hear anything but the onscreen GUIs
- // will reflect changes from Open Stage Control
- s.waitForBoot {
- x = { |freq = 200, amp = 0.1, gate = 0|
- var eg = EnvGen.kr(Env.asr(0.1, 1, 0.1), gate);
- (SinOsc.ar(Lag.kr(freq, 0.1)) * amp * eg).dup
- }.play;
- };
- )
- ```
-
-## Deploying the interface
-
-The whole point of Open Stage Control is to make the interface available on other devices, especially mobile devices.
-
-The interface will not be visible to other clients, however, until you save it to disk: three-dots menu > Session > Save, and give the file a name such as `open-stage-demo` (you don't need to type the `.json` extension).
-
-Now -- remember those status messages in the launcher window? On another device (computer, phone or tablet), go to the `http://192.168.xxx.yyy:8080` address. The device should be on the same (W)LAN. (If there is another remote address, it may or may not work, depending on your network.) Supported browsers are Firefox v. 75 and higher, or Chromium/Chrome v. 60 and higher.
-
-This should open an empty client window, similar to the one you saw before.
-
-From here, you can open the session that you just saved: three-dots menu *in the webpage* > Session > Open Recent (yes, this is synced from the server!). This should display the controls created in that session, and the controls should function the same as in the other client window.
-
-And that is... it! Basic usage is as simple as that.
-
-For convenience, if there is a session you know that you will use often, and you don't want to load it in the webpage by hand every time, you can choose the file under "load" in the initial Launcher window. This is also useful for public deployments with audience participation, where you don't want audience members to have to load manually.
-
-When not using Open Stage Control, you can also stop the server from the launcher window (stop button, top-left).
diff --git a/resources/docs/docs/tutorials/first-steps/fader-style.png b/resources/docs/docs/tutorials/first-steps/fader-style.png
deleted file mode 100644
index a09ecd9c..00000000
Binary files a/resources/docs/docs/tutorials/first-steps/fader-style.png and /dev/null differ
diff --git a/resources/docs/docs/tutorials/first-steps/horizontal-fader.png b/resources/docs/docs/tutorials/first-steps/horizontal-fader.png
deleted file mode 100644
index 82916a6d..00000000
Binary files a/resources/docs/docs/tutorials/first-steps/horizontal-fader.png and /dev/null differ
diff --git a/resources/docs/docs/tutorials/first-steps/resized-fader.png b/resources/docs/docs/tutorials/first-steps/resized-fader.png
deleted file mode 100644
index e69acf21..00000000
Binary files a/resources/docs/docs/tutorials/first-steps/resized-fader.png and /dev/null differ
diff --git a/resources/docs/docs/tutorials/first-steps/two-widgets.png b/resources/docs/docs/tutorials/first-steps/two-widgets.png
deleted file mode 100644
index 62fa2a74..00000000
Binary files a/resources/docs/docs/tutorials/first-steps/two-widgets.png and /dev/null differ
diff --git a/resources/docs/docs/user-interface/client.md b/resources/docs/docs/user-interface/client.md
deleted file mode 100644
index 2133c01f..00000000
--- a/resources/docs/docs/user-interface/client.md
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-## 1. Menu
-
-- Session
- - New session: create a new empty session and enable the editor
- - Open: browse session files on the server
- - Open recent: open a recent session on the server
- - Save / Save as: save session file on the server
- - Fragment mode: when enabled, the session will be saved as a fragment file (only the root's first child will be saved)
- - Save backup: save a copy of current session with a incremented suffix appended to the file name
- - Import: import a session file from the client's filesystem
- - Export: export a session file to the client's filesystem
-- State
- - Store: save all widgets' state to a persistent slot (stored in the client's cache)
- - Recall: apply state storer in the persistent slot (updated widgets may send messages)
- - Send All: make all widgets send their current value
- - Open: browse state files on the server
- - Save / Save as: save state file on the server
- - Import: import a state file from the client's filesystem
- - Export: export a state file to the client's filesystem
-- Editor
- - Enable: toggle editor's state
- - Grid: toggle grid
- - Project tree: toggle project tree's visibility
- - Inspector: toggle inspector's visibility
- - Relative units (%): when enabled, newly created widgets will have their position and size set in percents.
-- Console
- - Enable: toggle console's state
- - Clear console: remove logged messages from the console
-- Virtual keyboard: (desktop only) toggle virtual keyboard (displayed only when a text input is in focus, except for code editors in the inspector)
-- Fullscreen: toggle fullscreen
-- Notifications: toggle visibility of notifications
-- Prevent sleep (mobile only): attempt to prevent device from going to sleep when idle
-
-## 2. Sidepanels
-
-The sidepanels are only visible when the editor is active, they can be resized and/or hidden. Both are described in the [editor](./editor.md) section.
-
-## 3. Session
-
-It is the main component, it contains all the widgets and takes all the available space when the sidepanels are closed.
-
-## 4. Notifications
-
-Notifications appear in the lower right corner, they are usually used to convey server status information and can be dismissed with a single click.
-
-## 5. Modals
-
-
-
-Modals are virtual popup windows that may contain various content: file browser, color picker, error, widgets...
-
-## Keyboard shortcuts
-
-=== "Linux"
-
- | Shortcut | Description |
- |---|---|
- | ++ctrl+"Mousewheel"++ | change global zoom (pixel scaling) |
- | ++ctrl+0++ | reset global zoom |
- | ++ctrl+e++ | enable/disable editor |
- | ++ctrl+k++ | show/hide console |
- | ++ctrl+l++ | clear console |
- | ++ctrl+s++ | save session |
- | ++ctrl+shift+s++ | save session as... |
- | ++ctrl+o++ | open a session file |
- | ++ctrl+w++ | close client |
-
-=== "Windows"
-
- | Shortcut | Description |
- |---|---|
- | ++ctrl+"Mousewheel"++ | change global zoom (pixel scaling) |
- | ++ctrl+0++ | reset global zoom |
- | ++ctrl+e++ | enable/disable editor |
- | ++ctrl+k++ | show/hide console |
- | ++ctrl+l++ | clear console |
- | ++ctrl+s++ | save session |
- | ++ctrl+shift+s++ | save session as... |
- | ++ctrl+o++ | open a session file |
- | ++alt+f4++ | close client |
-
-=== "Mac"
-
- | Shortcut | Description |
- |---|---|
- | ++cmd+"Mousewheel"++ | change global zoom (pixel scaling) |
- | ++cmd+0++ | reset zoom |
- | ++cmd+e++ | enable/disable editor |
- | ++cmd+k++ | show/hide console |
- | ++cmd+l++ | clear console |
- | ++cmd+s++ | save session |
- | ++cmd+shift+s++ | save session as... |
- | ++cmd+o++ | open a session file |
- | ++cmd+w++ | close client |
diff --git a/resources/docs/docs/user-interface/editor.md b/resources/docs/docs/user-interface/editor.md
deleted file mode 100644
index bfa62544..00000000
--- a/resources/docs/docs/user-interface/editor.md
+++ /dev/null
@@ -1,156 +0,0 @@
-## Widget selection
-
-Clicking on a widget, on a tab label or on an item in the project tree selects the widgets for editing:
-
-- All its editable properties are shown in the inspector panel
-- The corresponding item in the project tree is highlighted
-- A selection outline is drawn around the widget
-- Dragging / Resizing handles are added to the widget
-
-
-
-To interact with a widget directly without selecting it, either use the middle mouse button or hold ++shift+win++ (++shift+cmd++ on Mac).
-
-## Menu
-
-Right clicking on a widget displays a menu with the following actions
-
-- `Show in tree`: show widget in project tree (hidden when clicking in the project tree)
-- `Position`:
- - `Send to back`: Send selected widget to back (first of siblings)
- - `Send farther`: Send selected widget farther
- - `Bring closer`: Bring selected widget closer
- - `Bring to front`: Bring selected widget to front (last of siblings)
-- `Copy`: copy widget's data
-- `Cut`: copy widget's data and delete selected widget
-- `Paste`: paste copied widget in selected container
- - `Paste`: paste the widget as is
- - `ID + 1` : increments the id of the copied widget (and all its children) before pasting
- - `Clone` : create a clone widget targetting the copied widget
-- `Add widget`: create a new widget in selected container
-- `Add tab`: create a new tab in selected container
-- `Export`: export as fragment file
-- `Delete`: delete selected tab or widget
-
-
-## Inspector
-
-Selected widget's properties are displayed and can be modified in the inspector. The [properties reference](../widgets/properties-reference.md) lists the available properties for each widget type.
-
-- Property fields are all multiline (press `shift + enter` for new line).
-- Properties are written in JSON, with some flexibility brought by the [JSON5](https://github.com/json5/json5) format. For example, double quotes around object keys are not mandatory.
-- Clicking on a property name spawns a help modal window
-- Properties are divided into multiple categories that can be toggled with a click. ++alt+"Click"++ on a category closes the other categories before toggling selected category.
-
-Some properties (for example `onValue`) have a special code editor with syntax highlighting and many keyboard shortcuts (available by clicking on the "Help" button). In these properties, pressing `enter` will not submit pending changes but instead insert a new line at the cursor position (as you would expect in a regular editor). To submit pending changes, press ++ctrl+enter++ (or ++cmd+enter== on Mac) or click outside the editor.
-
-Widgets can be locked for edition by enabling their `lock` property. When locked, a widget can't be modified by the editor but it remains possible to delete it or to move it from a container to another in the project tree.
-
-## Project tree
-
-The project tree displays the whole widget structure of the session. Widgets can be reordered or moved to another container with drag-and-drop.
-
-The "Filter" input allows filtering displayed widgets by their `id`. It's also possible to only display a single type of widget by typing `type:fader` for example.
-
-Invisible widgets are displayed with a lower opacity and their name in italic. Locked widgets are displayed with a lock icon after their name.
-
-## Widget resizing / dragging
-
-Selected widget can be resized using its south, south-east and east handles. It can be dragged with its north-west handle (holding ++alt++ extends this handle to the widget's size to ease dragging). If the widget's position/size was written in percents, the editor will try to keep using percents.
-
-When the grid is enabled, widget resizing / dragging snaps to a 10 pixel wide grid.
-
-## Multi-widgets editing
-
-Multiple widgets can be edited at once.
-
-- The inspector will only display properties that are shared by all selected widgets
-- Selection can only contain sibling widgets (same direct parent)
-- Context-menu actions and properties changes apply to all selected widgets
-- Resizing / Dragging will affect all selected widgets, relatively the selection's size and position
-
-
-## Keyboard shortcuts
-
-=== "Linux / Windows"
-
- | Shortcut | Description |
- |---|---|
- | ++ctrl+g++ | Toggle grid. |
- | ++ctrl+t++ | Toggle session tree. |
- | ++ctrl+i++ | Toggle inspector. |
- | ++"Click"++ | Widget selection. |
- | ++ctrl+"Click"++ | Multi-widget selection. Widgets can be toggled from selection by clicking on them individually.|
- | ++shift+"Click"+"Drag"++ | Draw a selection rectangle and attempt to select widgets in it. If ++ctrl++ is pressed too, current selection is kept and will be merged with the new one if possible. |
- | ++ctrl+z++ | Undo |
- | ++ctrl+y++ }`
-
-This syntax allows defining a property using [Javascript](https://developer.mozilla.org/en-US/docs/Web/JavaScript). The code will be compiled as a function and executed in a restricted context.
-
-- if no `return` statement is found, the formula will return an empty string
-- javascript [strict mode](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Strict_mode) is always enabled
-- `setTimeout` and `setInterval` functions are not available
-
-A property *cannot* contain multiple `JS{}` blocks
-
-#### Available variables
-
-- `console`: javascript console
-- `locals`: object for storing/reading arbitrary values. Changing its properties *does not* trigger any synchronisation even if the value is used somewhere else.
-- `globals`: same as `locals` but shared between all widgets, contains a few useful variables:
- - `screen`: client screen informations (`{width, height, orientation}`)
- - `env`: client options (ie: url query options),
- - `ip`: client's ip address,
- - `url`: server url,
- - `platform`: operating system as seen by the client
- - `session`: session file path
- - `clipboard`: instance of navigator [Clipboard](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard)
-
-Parsing errors can be read in the console (++ctrl+k++).
-
-!!! warning
- Modifying values in `locals` or `globals` **does not** trigger anything if they are used somewhere else.
-
-#### Using in advanced syntaxes
-
-In this context, `@{}`, `VAR{}` and `OSC{}` syntaxes are seen as variables. When they change, the whole block will be evaluated again.
-
-!!! danger "Do not mutate"
- When these syntaxes return objects or arrays, mutating said objects will affect the underlying variables in memory and may lead to unexpected behavior.
-
- The `@{}` syntax, when used for anything else than the widget's value, will always return a copy of the property and is not affected by this.
-
-## Javascript: `#{ }`
-
-This is a shorthand for the `JS{}` syntax, the only difference being that `` is automatically prepended with a `return` statement.
-
-A property *can* contain multiple `#{}` blocks.
-
-!!! note "Compilation order"
- `#{}` blocks are compiled after `JS{}` blocks
diff --git a/resources/docs/docs/widgets/canvas.md b/resources/docs/docs/widgets/canvas.md
deleted file mode 100644
index dffea008..00000000
--- a/resources/docs/docs/widgets/canvas.md
+++ /dev/null
@@ -1,195 +0,0 @@
-# Canvas widget
-
-The canvas widget allows creating custom widgets with user-defined drawings and touch reactions.
-
-It has dedicated scripting properties (`onTouch`, `onDraw` and `onResize`) that work like the `onValue` property : they are used to defined scripts that will be executed when specific events occurs.
-
-This widget requires a good understanding of the javascript [Canvas API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) and of the javascript programming language in general.
-
-## Canvas properties
-
-### `valueLength`
-
-This property must be set to the number of values held by the widget : 1 for a simple slider, 2 for an XY pad, etc. Attempts to set the widget's value with a different number of values will be ignored.
-
-```js
-set("this", 1) // works if valueLength == 1
-set("this", [1, 2]) // works if valueLength == 2
-```
-
-### `autoClear`
-
-This is a convenience option that clears the canvas context and calls [`beginPath`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/beginPath) before each drawing. When this property is set to `false`, the canvas must be cleared manually.
-
-### `continuous`
-
-If this property is enabled, the widget will be redrawn at a fixed rate even if not interacted with (see [`onDraw`](#onDraw)).
-
-
-### `onTouch`
-
-This script is executed when the widget is touched, when it is released, and during the movement of the pointer while the widget is touched.
-
-This script has access to the same variables and functions as the `onValue` property (except the event-specific ones), plus the following:
-
-- `value`: widget value
-- `width`: canvas width in pixels
-- `height`: canvas height in pixels
-- `event`: object containing the following:
- - `type`: `"start"`, `"move"` or `"stop"`
- - `target`: id of the widget under the pointer, `"this"` if it's the canvas widget itself, `null` if no widget is under the pointer
- - `targetName`: name attribute of the html element under the pointer
- - `targetTagName`: tag name of the html element under the pointer
- - `offsetX`, `offsetY`: touch coordinates in pixels, relative to the html element under the pointer
- - `movementX`, `movementY`: movement of the pointer in pixels since the last event
- - `pageX`, `pageY`: touch coordinates in pixels, relative to the page
- - `pointerId`: unique identifier used to differentiate fingers in multitouch situation
- - `altKey`, `ctrlKey`, `shiftKey`: keyboard modifier states
- - `force`: amount of pressure applied to the touch surface between `0` and `1` (see [Touch.force](https://developer.mozilla.org/en-US/docs/Web/API/Touch/force)). Equals `0` if the API is not supported or if no pressure information is found.
- - `radiusX`, `radiusY`, `rotationAngle`: see [Touch.rotationAngle](https://developer.mozilla.org/en-US/docs/Web/API/Touch/rotationAngle)
- - (iOS only) `altitudeAngle`, `azimuthAngle`: see [Touch.altitudeAngle](https://w3c.github.io/touch-events/#dom-touch-altitudeangle)
- - (iOS only) `touchType`: "direct" or "stylus"
-
-
-!!! note "Extra html elements"
- Elements added using the `html` property can be touched as well, `event.targetName` can be used to determine which element is touched.
-
-
-### `onDraw`
-
-This script is executed when the widget should be redrawn, which is when it's touched and when it receives a value.
-
-This script has access to the same variables and functions as the `onValue` property (except the event-specific ones), plus the following:
-
-- `value`: widget value
-- `width`: canvas width in pixels
-- `height`: canvas height in pixels
-- `ctx`: [canvas rendering context](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D) of the widget
-- `cssVars`: object containing the computed value of some of the widget's style properties such as `colorWidget`, `alphaFill`, `padding`, etc
-
-In this script, all osc messages emissions are prevented and changing the value of a widget won't trigger widget synchronisation / scripts / advanced syntaxes updates.
-
-### `onResize`
-
-This script is executed when the widget has resized, before it is redrawn.
-
-This script has access to the same variables and functions as the `onValue` property (except the event-specific ones), plus the following:
-
-- `value`: widget value
-- `width`: canvas width in pixels
-- `height`: canvas height in pixels
-- `cssVars`: object containing the computed value of some of the widget's style properties such as `colorWidget`, `alphaFill`, `padding`, etc
-
-## Example: XY pad
-
-Let's create a simple xy pad, with a value made of two numbers between 0 and 1. We set `valueLength` to `2` to make sure the widget only accepts incoming messages with two values (x and y).
-
-First, we use the `onTouch` property to store the touch coordinates in the `locals` object. We also call `set()` to store these in the widget's value (this way, the widget can send messages and sync with other widgets).
-
-```js
-// onTouch
-
-// store normalized coordinates
-if (event.type == "start") {
- locals.x = event.offsetX / width
- locals.y = event.offsetY / height
-} else {
- // when the pointer is moving, increment coordinates
- // because offsetX and offsetY may not be relevant
- // if the pointer hovers a different widgets
- locals.x += event.movementX / width
- locals.y += event.movementY / height
-}
-
-// update widget value and send
-set("this", [locals.x, locals.y])
-```
-
-Then, we use the `onDraw` property to draw a circle at the touch coordinates.
-
-```js
-// onDraw
-
-// draw circle at touch coordinates
-ctx.arc(value[0] * width, value[1] * height, 6, 0, Math.PI * 2)
-// use colorFill property as stroke color
-ctx.strokeStyle = cssVars.colorFill
-// draw stroke
-ctx.stroke()
-```
-
-Finally, we use the `onValue` property to apply limits to the values.
-
-```js
-// onValue
-
-// apply limits
-var x = Math.max(0, Math.min(1, value[0])),
- y = Math.max(0, Math.min(1, value[1]))
-
-// re-update widget value without retriggering script or sending message
-set("this", [x, y], {sync: false, send: false})
-
-// the widget will automatically send its value if
-// this script was triggered by a user interaction
-// no need to call send() here but we could, for example
-// if we want to split the value in to multiple messages
-```
-
-## Example: multi slider
-
-Let's build a row of 20-sliders with a single widget. We first set `valueLength` to... 20 !
-
-```js
-// onTouch
-
-// store normalized coordinates
-if (event.type == "start") {
- locals.x = event.offsetX / width
- locals.y = event.offsetY / height
-} else {
- // when the pointer is moving, increment coordinates
- // because offsetX and offsetY may not be relevant
- // if the pointer hovers a different widgets
- locals.x += event.movementX / width
- locals.y += event.movementY / height
-}
-
-
-// which slider are we touching ?
-var n = parseInt(locals.x * value.length)
-n = Math.max(0, Math.min(n, value.length-1))
-
-// update value at slider's index
-// 1 - locals.y because y axis is from top to bottom in js canvas
-value[n] = 1 - locals.y
-
-// update widget value and send
-set("this", value)
-```
-
-```js
-// onDraw
-
-ctx.fillStyle = cssVars.colorFill
-ctx.globalAlpha = cssVars.alphaFillOn
-
-var sliderWidth = width / value.length - 1
-for (var i in value){
- ctx.beginPath()
- ctx.rect(i * width / value.length, height, sliderWidth, - value[i] * height)
- ctx.fill()
-}
-```
-
-```js
-// onValue
-
-// apply limits
-for (var i in value) {
- value[i] = Math.max(0, Math.min(1, value[i]))
-}
-
-// re-update widget value without retriggering script or sending message
-set("this", value, {sync: false, send: false})
-```
diff --git a/resources/docs/docs/widgets/fragments.md b/resources/docs/docs/widgets/fragments.md
deleted file mode 100644
index 69e3b473..00000000
--- a/resources/docs/docs/widgets/fragments.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# Fragments
-
-Fragments allow breaking sessions into multiple files and reusable components made of multiple widgets.
-
-## Fragment files
-
-
-When right-clicking on a widget in the editor mode, it is possible to export it as a fragment file.
-
-Fragment files have the same extension as session files (`.json`) and can be opened like regular sessions. When doing so, keep in mind that only the first child of the root widget will be saved. It is possible to save a fragment file as a session file (and vice versa) by toggling the `Fragment mode` in the main menu.
-
-
-## Fragment widgets
-
-Fragment widgets work like clone widget except their source widget are loaded from fragment files or session files. When the sources files are modified, the fragment widgets are updated automatically.
diff --git a/resources/docs/docs/widgets/general-mechanics.md b/resources/docs/docs/widgets/general-mechanics.md
deleted file mode 100644
index 631bdd0b..00000000
--- a/resources/docs/docs/widgets/general-mechanics.md
+++ /dev/null
@@ -1,62 +0,0 @@
-## Interaction
-
-These are interaction events widgets are likely to respond to:
-
-| Mouse | Touch | Description |
-|---|---|---|
-| Mousedown | Tap | Handled at pressing time, not releasing. |
-| Click | Click | Handled at release time. |
-| Double Click | Double Tap | Some widgets handle double click / double tap events. |
-| Drag | Drag | The widgets respond to mouse and touch drag gestures with a 1:1 precision ratio. |
-
-
-Widgets sensibility can be tuned with the `sensibility` property. Single-touch widgets (i.e. all widgets except `mutlixy` and `range`) also accept an alternate interaction event for fine control.
-
-| Mouse | Touch | Description |
-|---|---|---|
-| `Ctrl` + Drag | / | Holding the `Ctrl` key while dragging with the mouse increases the gesture's precision by 10.|
-| / | Two-fingers drag | Using two fingers on a single-touch target increases the gesture's precision by 10. |
-
-
-## Sending messages
-
-When interacted with, widgets with at least one target (including the server's defaults) send osc messages of the following form:
-
-```
-/address ...preArgs ...value
-```
-
-If they have MIDI targets, the server will try to convert the osc messages into a MIDI messages (see [MIDI messages](../midi/midi-messages.md)).
-
-
-## Receiving messages
-
-When an osc message is received, it updates every widgets that meets the following conditions
-
-- same `address`
-- same `preArgs` (no distinction between integers and round floats )
-
-The remaining arguments after `preArgs` are passed to the widget.
-
-
-When a MIDI message is received, it's converted into an osc message (see [MIDI messages](../midi/midi-messages.md)) and follows the same rules, except that only the widgets that include the emitting MIDI device in their targets will be able to receive it.
-
-
-## Widget synchronization
-
-Within a single client's scope, there are multiple ways to synchronize widgets:
-
-- If they share the same `id`: in this case, the synchronized widget doesn't send any osc/midi message. This case is mostly used for widget cloning.
-- If they share a `linkId`: in this case, the synchronized widget sends its osc/midi message normally.
-- If their `value` properties depend on each other using the [advanced syntaxes](./advanced-syntaxes.md)
-- Using [scripting](./scripting.md)
-
-## Client synchronization
-
-From a client to another, widgets are automatically synchronized if they share the following properties:
-
-- `address`
-- `preArgs`
-- `targets`
-
-Client synchronization can be disabled globally with the `clientSync` [client option](../client-options.md). Widgets with `bypass` set to `true` will not send synchronization messages to other clients.
diff --git a/resources/docs/docs/widgets/scripting.md b/resources/docs/docs/widgets/scripting.md
deleted file mode 100644
index c02e975c..00000000
--- a/resources/docs/docs/widgets/scripting.md
+++ /dev/null
@@ -1,437 +0,0 @@
-# Scripting
-
-Widgets can run [Javascript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) scripts upon specific events. These scripts are written in special properties under the scripting category.
-
-!!! warning "Advanced syntaxes"
- Most [advanced syntaxes](../advanced-syntaxes/) should be avoided as much as possible in scripting properties:
-
- - `@{}`: use `get()` and `getProp()` instead
- - `OSC{}`: use `get()` instead (using another widget as receiver)
- - `VAR{}`: use `getVar()`instead
- - `JS{}` and `#{}` are useless (scripting properties are already interpreted as javascript code) unless you want to generate code procedurally
-
- The editor will always fail to recognize these syntaxes as they don't comply with the javacript language specification, even if the resulting code is valid.
-
-## Events
-
-### `onCreate`
-
-This script is called when the widget is created. If the widget has children, it will be executed after the children are created.
-
-!!! warning "Modifying parent container"
- Modifying a non-dynamic property on a parent container from this script **will not work**.
-
-The following variables are available in this context:
-
-- `value`: widget's value
-
-### `onValue`
-
-This script is called when the widget's value updates and when it receives a value.
-
-The following variables are available in this context:
-
-- `id` (`string`): id of the widget that's responsible for the value update
-- `value`: widget's value
-- `touch`: see [Touch state](#touch-state)
-
-??? infos "Keyboard & Matrix"
- In keyboards and matrices, `id` is the id of the child widget that triggered the event, and `value` is an array containing the children's values.
- The touched widget's value can be retrieved with:
- ```javascript
- value[getIndex(id)]
- ```
-
-??? infos "Touch state (deprecated)"
-
- *This feature is deprecated, use `onTouch` instead*
-
- When some widgets are touched or released, a special value event can be caught to trigger custom actions.
-
- If the variable `touch` is not `undefined`, this means it holds the widget's current touch state:
-
- - `0/1` for the widget's touch state (`fader`, `knob` and `xy`, `range` and `multixy`)
- - `[i, 0/1]` if the widget is multi touch (`range` and `multixy`). In this case `i` is the touched handle's index, starting with `0`.
-
- ```js
- if (touch !== undefined) {
- // send multi touch state
- if (touch.length) send('/touch_address', touch[0], touch[1])
- // send global touch state
- else send('/touch_address', touch)
- } else {
- // do something with the value ?
- }
- ```
-
- To avoid unwanted script executions, touch state events will only be caught if the script contains the word `touch` and if `onTouch` is empty.
-
-
-### `onTouch`
-
-This script is executed when the widget is touched, and when it is released.
-
-This script has access to the same variables and functions as the `script` property (except the event-specific ones), plus the following:
-
-- `value`: widget value
-- `event`: object containing the following:
- - `type`: `"start"` or `"stop"`
- - `handle`: `undefined` if the event concerns the widget, `integer` if it concerns one of it's handles (`multixy` and `range` widgets only)
-
-[Canvas](../canvas/) and containers expose more informations in their `onTouch` script.
-
-??? infos "Containers onTouch"
-
- Containers (root, panel, etc) can monitor touch events happening inside them, it works like with [Canvas](../canvas/#ontouch), with a few differences:
-
- - `event.firstTarget` will return the id of the first touched widget
- - setting `event.preventDefault` to `true` will prevent the event from reaching widgets in the container ('start' and 'move' events only)
- - setting `event.allowScroll` to `true` will allow touch scrolling where it would normally be prevented ('start' event only)
- - setting `event.inertia` will affect 'move' events (works like widget `sensitivity` in reverse (1 = normal, 10 = slow move))
- - `width` and `height` are undefined
-
- Containers with `traversing` enabled change how touch events are emitted:
-
- - a new 'stop' event is emitted whenever the pointer exits a touchable widget while pressed.
- - a new 'start' event is emitted whenever the pointer enters a touchable widget while pressed.
-
-
-### `onDraw`
-
-See [canvas](../canvas/).
-
-### `onKeyboard`
-
-*Script widget only*
-
-This script is executed when the key(s) defined in the widget's `keyBinding` property are pressed.
-
-
-The following variables are available in this context:
-
-
-- `type` (`string`): `keydown` or `keyup`
-- `key` (`string`): key name,
-- `code` (`number`): key code
-- `ctrl` (`boolean)`: `true` if ctrl key is pressed
-- `shift` (`boolean`): `true` if shift key is pressed
-- `alt` (`boolean`): `true` if alt key is pressed
-- `meta` (`boolean`): `true` if meta key is pressed
-
-
-### `onPreload`
-
-This script is specific to the root widget, it's called before any other widget is created and can be used to create global variables / functions accessible in other scripts.
-
-In this script, all osc messages emissions are prevented and changing the value of a widget won't trigger widget synchronisation / scripts / advanced syntaxes updates.
-
-## Available variables
-
-The following variables and functions are accessible in this context.
-
-
-- `console`: javascript console
-- `locals`: object for storing/reading arbitrary values. Changing its properties *does not* trigger any synchronisation even if the value is used somewhere else.
-- `globals`: same as `locals` but shared between all widgets, contains a few useful variables:
- - `screen`: client screen informations (`{width, height, orientation}`)
- - `env`: client options (ie: url query options),
- - `ip`: client's ip address,
- - `url`: server url,
- - `platform`: operating system as seen by the client
- - `session`: session file path
- - `clipboard`: instance of navigator [Clipboard](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard)
-- `Image`: javascript's [Image](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image) constructor
-
-
-!!! note "this"
- Unlike in most javascript contexts, the special keyword `this` doesn't point to an object but instead returns the string `"this"`.
-
-
-----
-
-#### `get(id)`
-- `id`: widget `id` as a string.
-
-Returns the value of the first matching widget. If the returned value is an object, a copy is returned to allow safe mutation.
-
-----
-
-#### `set(id, value, options)`
-- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget. `id` may contains wildcards ('\*').
-- `value`: new value for the widget.
-- `options` (optional): `object`, accepts the following items:
- - `sync: false`: prevents widgets from triggering synchronization and scripts
- - `script: false`: prevents scripts but not synchronization
- - `send: false`: prevents widgets from sending osc messages
- - `external: true`: simulates a value coming from an osc/midi message (implies `send: false` automatically)
-
-Sets the value of the first matching widget. If `ìd` contains wildcards, affects all matching widgets **except** the emitting widget.
-
-If the event that triggered the script's execution was initiated by a user interaction, this will make the widget send its value as well (unless `options` is set to `{send: false}`).
-
-----
-
-#### `getVar(id, name)`
-- `id`: widget `id` as a string.
-- `name`: variable name as a string.
-
-Returns the value of a widget's custom variable. If the returned value is an object, a copy is returned to allow safe mutation.
-
-----
-
-#### `setVar(id, name, value)`
-- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget. `id` may contains wildcards ('\*').
-- `name`: variable name as a string.
-- `value`: new value for the variable.
-
-Sets the value of a widget's custom variable (see [advanced syntaxes](./advanced-syntaxes.md##ustom-variables-varvariablename-default)). If `ìd` contains wildcards, affects all matching widgets.
-
-
-----
-
-#### `send(target, address, ...args)`
-- `target` (optional): `"ip:port"` or `"midi:device_name"` string. If omitted, the widget's target (or the server's defaults) will be used.
-- `address`: osc address, must start with a `/`
-- `args`: values or `{type: "OSC_TYPE_LETTER", value: VALUE}` objects
-
-Sends an osc message.
-
-If the event that triggered the script's execution was not initiated by a user interaction, this function will have no effect.
-
-This function ignores the widget's `bypass` and `ignoreDefaults` properties.
-
-??? infos "Examples"
- ```javascript
- send('127.0.0.1:4444', '/address', 1)
- send('127.0.0.1:4444', '/address', 1, 2)
- send('/address', 1) // uses the widget's target
- send('/address', {type: 'i', value: 1}) // sends 1 as an integer
- ```
-
-
-----
-
-#### `getProp(id, name)`
-- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget.
-- `name`: property name.
-
-Returns the property called `"name"` of the first matching widget. If the returned value is an object, a copy is returned to allow safe mutation.
-
-----
-
-#### `getIndex(id)`
-- `id` (optional): widget `id` as a string. Defaults to `"this"`.
-
-Returns the widget's index in its container.
-
-----
-
-#### `updateProp(id, name)`
-- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget.
-- `name`: property name.
-
-Forces a widget to check if one of its properties has changed and update itself if needed.
-
-----
-
-#### `updateCanvas(id)`
-- `id`: widget `id` as a string. Can be `"this"` to target the host widget.
-
-Forces a canvas widget redraw.
-
-----
-
-#### `httpGet(url, callback)`
-
-- `url`: url of the resource to fetch (local url only)
-- `callback`: function executed when/if the http request succeeds, with the response text as argument
-
-----
-
-#### `stateGet(id)`
-- `id`: widget `id` as a string, or array of `id` strings. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget.
-
-Returns a state object (`id:value`) for matching widget and all their children.
-
-----
-
-#### `stateSet(state, options)`
-
-Loads a state object. If the event that triggered the script's execution was initiated by a user interaction, this will make the updated widgets send their value as well.
-
-- `options` (optional): `object`, accepts the following items:
- - `send: false`: prevents widgets from sending osc messages
-
-----
-
-#### `storage`
-
-Global [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) instance, allows storing data that persists upon refresh/relaunch.
-
-----
-
-#### `setTimeout(id, callback, delay)` / `setInterval(id, callback, delay)`
-
-These work like almost their native equivalent, with an extra (optional) `id` argument.
-
-- `id` (optional): unique identifier, if omitted, defaults to `undefined`. If a timeout with the same id is already running, it is cleared before the new one is created (even if `undefined`). `id`s are scoped to the widget's context: two timeouts with the same `id` in two different widgets can run concurrently
-- `callback`: function to be executed
-- `delay`: delay before execution is ms
-
-Reference:
-
-- https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout
-- https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval
-
-
-Usage note:
-
-If no concurrent timeout / interval is needed, calling `setTimeout`, `setInterval`, `clearTimeout` and `clearInterval` with no `ìd` argument will do.
-
------
-
-#### `clearTimeout(id)` / `clearInterval(id)`
-
-Clears timeout with matching `id`.
-
-Reference:
-
-- https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearTimeout
-- https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearInterval
-
-----
-
-#### `setFocus(id)`
-
-- `id` (optional): widget `id` as a string
-
-Gives focus to a widget (ie input widget). If `id` is omitted or falsy, currently focused element will be unfocused.
-
-*Built-in client only*: tells the operating system to give the focus to the client window
-
-----
-
-#### `unfocus()`
-
-*Built-in client only*: tells the operating system to give the focus to the window that was focused before.
-
-----
-
-#### `setFocusable(focusable)`
-
-- `focusable`: `0` or `1`
-
-*Built-in client only*: define whether the client window can be focused or not. Text inputs cannot be interacted with when the window is not focusable.
-
-----
-
-#### `getScroll(id)`
-- `id`: widget `id` as a string.
-
-Returns the scroll position of a container as a `[x, y]` array.
-
-----
-
-#### `setScroll(id, x, y)`
-- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget.
-- `x`: horizontal scroll, `undefined` to use current value
-- `y`: vertical scroll, `undefined` to use current value
-
-Sets the scroll state of a container.
-
-----
-
-#### `scrollIntoView(id, option)`
-- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget.
-- `option`: `alignToTop` or `options` argument as defined in https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
-
-Scroll containers to make widget(s) visible.
-
-
-----
-
-#### `toolbar(id)`
-- `id` menu entry id (string)
-
-Triggers toobar action if currently available (ie accessible from the menu). `id` can be one of the following:
-
-- `session-new`,`session-open`, `session-save`, `session-save-as`, `session-fragment`, `session-backup`, `session-import`, `session-export`
-- `state-store`, `state-recall`, `state-send`, `state-open`, `state-save`, `state-save-as`, `state-import`, `state-export`
-- `editor-enabled`, `editor-grid`, `editor-tree`, `editor-inspector`, `editor-percents`
-- `console-enabled`, `console-clear`
-- `fullscreen`, `notifictions`, `prevent-sleep`, `virtual-keyboard`
-
-Some actions will only be triggered if initiated with a physical user interaction, check the console for errors if it doesn't work as expected.
-
-
-=== "Legacy syntax: `toolbar(i1, i2, ...)`"
-
- - `iX`: menu entry index
-
- Triggers toolbar action at specified index.
-
- !!! example "Examples"
-
- - `toolbar(0, 0)` -> Open a new session
- - `toolbar(4)` -> Toggle full screen
-
-
-----
-
-#### `getToolbar(id)`
-- `id` menu entry id (string)
-
-Returns `true` if the toolbar entry exists and is currently activated.
-
-#### `openUrl(url)`
-- `url`: http(s) url
-
-*Built-in client only*: opens url with the system's default browser
-*External client only*: opens url in a new tab
-
-If the event that triggered the script's execution was not initiated by a user interaction, this function will have no effect.
-
-----
-
-#### `runAs(id, callback)`
-- `id`: widget `id` as a string.
-- `callback`: function to be executed
-
-Run `callback` function as if executed by another that widget matches specified id. This will not change the value of any local variable but `"this"` and `"parent"` arguments (accepted by functions such as `set()`) will be interpreted differently. Timeouts and intervals will be created and cleared in the target widget's scope.
-
-----
-
-#### `reload(keepState)`
-- `keepState` (optional): `true` by default, set to false to discard the client's state.
-
-Reload the client application. Cannot be called from the `onCreate` property.
-
-If the event that triggered the script's execution was not initiated by a user interaction, this function will have no effect.
-
-
-----
-
-#### `getNavigator()`
-
-Returns the instance of [Navigator](https://developer.mozilla.org/en-US/docs/Web/API/Navigator).
-
-----
-
-#### `browseFile(options, callback)`
-
-Opens the server file browser and pass selected file to a callback function (does not create nor read files by itself).
-
-- `options`: object with the following keys:
- - `extension`: allowed extension (default: "*")
- - `directory`: starting directory for browser (default: user's home)
- - `allowDir`: allow choosing a directory instead of a file (default: false)
- - `mode`: "save" or "open"
-- `callback`: function called with 1 argument (file path)
-
-#### `uploadFile(options, callback)`
-
-Opens the client file upload prompt and pass the raw content of selected file to a callback function.
-
-- `options`: object with the following keys:
- - `types`: equivalent of HTML attribute [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/accept)
-- `callback`: function called with 1 argument (file content)
diff --git a/resources/docs/download.md b/resources/docs/download.md
deleted file mode 100644
index d5089028..00000000
--- a/resources/docs/download.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# Download the latest release
-
-!!! tip ""
- [*Click here*](/docs/getting-started/introduction/#installation) to read the installation guide.
-
-
- Open Stage Control v{{config.latest_release}}
-
-
-
- - GNU/Linux RPM (64-bit)
- - GNU/Linux Debian (64-bit)
- - GNU/Linux (64-bit)
- - Node.js
- - MacOS x64
- - MacOS arm64
- - Windows (64-bit)
-
-
-
-
-
-
-
diff --git a/resources/docs/editing-sessions.md b/resources/docs/editing-sessions.md
new file mode 100644
index 00000000..77484497
--- /dev/null
+++ b/resources/docs/editing-sessions.md
@@ -0,0 +1,98 @@
+# Editing sessions
+
+The session editor can be enabled from the sidepanel. Once enabled, clicking on a widget will make it the *selected widget*.
+
+## Root panel
+
+The root panel can be selected by clicking on the "Root" button in the sidepanel.
+
+## Context menu
+
+Right clicking / long touch on a widget or on a tab will also display a context menu providing useful utilities :
+
+- `Edit parent`: select widget's parent for edition
+- `Copy`: copy widget's data
+- `Cut`: copy widget's data and delete selected widget
+- `Wrap in`: wrap the widget in a new container
+- `Paste`: paste copied widget in selected container
+ - `Paste`: paste the widget as is
+ - `ID + 1` : increments the id of the copied widget (and all its children) before pasting
+ - `Clone` : create a clone widget targetting the copied widget
+- `Add widget`: create a new widget in selected container
+- `Add tab`: create a new tab in selected container
+- `Delete`: delete selected tab or widget
+
+## Save
+
+When working on a sessions that has been loaded from the server's filesystem, it is possible to save it remotely. When doing so, all the other clients working on the same session will be reloaded automatically.
+
+It is possible to limit this feature to specific client addresses by using the server's `--remote-saving` option. For example:
+`open-stage-control --remote-saving 127.0.0.1|192.168.0.10`
+
+Will disable remote saving except for the clients with ip addresses `127.0.0.1` (the server's local address) and `192.168.0.10`.
+
+## Save As
+
+Session can be exported as a `.json` file on the client's filesystem.
+
+## Load
+
+Loading a session file doesn't affect other clients.
+
+## Grid
+
+By default, widget resizing / dragging snaps to a 10 pixel wide grid. Its width can be customized in the editor (when it's enabled). Setting its width to 1 will disable it. Note that the grid doesn't affect manual setting of a widget's size / position.
+
+## Properties
+
+Selected widget's properties are displayed and can be modified in the sidepanel. The [widgets reference](widgets/widgets) section lists the available properties for each widget type. Property fields are all multiline (press `shift + enter` for new line).
+
+Properties are written in JSON, with some flexibility brought by the [JSON5](https://github.com/json5/json5) format. For example, doubles quotes around object keys are not mandatory. All input will be converted to standard JSON.
+
+
+## Widget resizing / dragging
+
+Selected widget can be resized using its south, south-east and east handles. It can be dragged with its north-west handle. Using this feature will convert position and size values to plain number values, thus breaking previously set percent or inherited values.
+
+## Keyboard shortcuts
+
+The following shortcuts are always available:
+
+| Shortcut | Description |
+|---|---|
+| `mod + e` | enable/disable editor |
+| `mod + s` | save session |
+| `mod + shift s` | export session as... |
+| `mod + o` | open a session file |
+
+The following shortcuts are available only when the editor is enabled:
+
+| Shortcut | Description |
+|---|---|
+| `mod + click`* | Multi-widget selection. Widgets can be toggled from selection by clicking on them individually.|
+| `shift + click + drag`* | Draw a selection rectangle and attempt to select widgets in it (starts by selecting the widget under the cursor). If `mod` is pressed too, current selection is kept and will be merged with the new one if possible. |
+| `f2` | Edit selected widget's label |
+| `mod + z` | Undo |
+| `mod + y / mod + shift + z` | Redo |
+| `delete` (`backspace` on Mac) | Delete selected widgets |
+| `mod + c` | Copy selected widgets |
+| `mod + x` | Cut selected widgets |
+| `mod + v` | Paste clipboard in selected widget |
+| `mod + shift + v` | Paste and increment id |
+| `up, down, left, right` | Move selected widgets (1 grid unit, hold `shift` for 5 grid units) |
+| `alt + [up, down, left, right]` | Resize selected widgets (1 grid unit, hold `shift` for 5 grid units) |
+| `mod + a` | Select current widget's siblings and itself |
+| `mod + shift + a` | Cancel current widget selection |
+| `mod + up` | Select current widget's parent |
+| `mod + down` | Select current widget's first child |
+| `mod + right` | Select current widget's next sibling |
+| `mod + left` | Select current widget's previous sibling |
+
+
+Where `mod` is `ctrl` except on MacOs (`command`)
+
+
+!!! note "* Multi-widgets editing"
+ - selection can only contain sibling widgets (same direct parent)
+ - context-menu actions and properties changes apply to all selected widgets
+ - resizing / dragging will affect all selected widgets, relatively to the first selected widget
diff --git a/resources/docs/examples.md b/resources/docs/examples.md
new file mode 100644
index 00000000..aad911bc
--- /dev/null
+++ b/resources/docs/examples.md
@@ -0,0 +1,34 @@
+# Community examples
+
+Feel free to submitt you own by [opening an issue](https://github.com/jean-emmanuel/open-stage-control/issues/new?title=[example]) on github.
+
+## Ardour
+
+- [Ardour Control](https://github.com/jean-emmanuel/ardour-control)
+
+
+## Reaper
+
+- [Reaper OSC Panels](https://github.com/ThrashJazzAssassin/REAPER-OSC-panels)
+
+
+## QLab
+
+- [QLab Cook Book / Open Stage Control](https://qlabcookbook.com/tag/open-stage-control/)
+
+
+## Bitwig
+
+- [Open Stage Control Bitwig](https://github.com/kdejaeger/open-stage-control-bitwig)
+
+
+
+- [OpenStageControl4Bitwig](http://www.mossgrabers.de/Software/Bitwig/Bitwig.html)
+ - https://www.youtube.com/watch?v=u-fgArpsHQQ
+ - https://www.youtube.com/watch?v=RvEMlo72ynQ
+
+
+## Others
+
+- [Manaberry's UI](https://vi-control.net/community/threads/open-stage-control-tutorial-an-alternative-to-lemur-and-touchosc.72643/)
+
diff --git a/resources/docs/extra/scripts.js b/resources/docs/extra/scripts.js
deleted file mode 100644
index f75c16a1..00000000
--- a/resources/docs/extra/scripts.js
+++ /dev/null
@@ -1,27 +0,0 @@
-document.addEventListener('DOMContentLoaded', ()=>{
-
- if (window.location.hash && window.location.href.includes('properties-reference')) {
- // show target in tabs/details
- document.querySelectorAll('[id='+window.location.hash.split("#")[1]+']').forEach(function(item){
- var tab = item.closest('.tabbed-block'),
- container= item.closest('.tabbed-set'),
- details = item.closest('details'),
- index = 0
- while (tab.previousElementSibling) {
- index++
- tab = tab.previousElementSibling
- }
- console.log(index)
- container.querySelectorAll('.tabbed-labels label:nth-child('+(index+1)+')').forEach(function(item,i){
- item.click()
- })
-
- if (item) {
- item.scrollIntoView()
- document.documentElement.scrollTop -= 70
- }
- })
- }
-
-
-})
diff --git a/resources/docs/extra/styles.css b/resources/docs/extra/styles.css
deleted file mode 100644
index 83093318..00000000
--- a/resources/docs/extra/styles.css
+++ /dev/null
@@ -1,123 +0,0 @@
-:root {
- --osc-background-color: rgb(21,26,36);
- --osc-accent-color: #448aff;
-}
-
-html {
- overflow-y: scroll;
-}
-
-.md-header, .md-nav__title[for=__drawer] {
- background-color: var(--osc-background-color)!important;
-}
-
-@media screen and (min-width:1220px) {
- .md-nav__title[for=__drawer] {
- background-color: transparent!important;
- }
-}
-
-.md-header-nav__title {
- padding-top: 1px;
- padding-left: 0!important
-}
-
-.md-source__facts {
- display: none;
-}
-
-td:first-child {
- white-space: pre!important;
- vertical-align: top;
-}
-
-
-.force-full-table + .md-typeset__scrollwrap .md-typeset__table {
- width:100%;
-}
-.force-full-table + .md-typeset__scrollwrap .md-typeset__table table {
- display: table!important;
- width:100%;
-}
-
-
-.accordion {
- margin: 1.5625em 0;
- padding: .6rem;
- overflow: hidden;
- font-size: .64rem;
- page-break-inside: avoid;
- border-left: .2rem solid var(--osc-accent-color);
- border-radius: .1rem;
- box-shadow: 0 0.2rem 0.5rem rgba(0,0,0,.05), 0 0 0.05rem rgba(0,0,0,.1);
-}
-.accordion h6 {
- cursor: pointer;
- margin-top: 0;
-}
-
-.accordion > :last-child {
- display: none;
-}
-.accordion .md-typeset__table {
- margin-bottom: 0;
-}
-.accordion.show > :last-child {
- display: block;
- margin-bottom: 0;
-}
-.accordionlink > .headerlink {
- opacity: 1!important;
- visibility: visible!important;
- text-decoration: none;
- color: inherit!important;
- display: block;
- outline: none;
- box-shadow: none;
- margin-left: 0;
-}
-.accordion-description {
- opacity: 0.8;
-}
-.accordion.show .accordion-description {
- margin-bottom: 8px;
-}
-
-table .thead2 {
- background: rgba(0, 0, 0, 0.05);
- white-space: nowrap;
-}
-table .thead2 h6 {
- color: #888;
-}
-
-details.api h4 {
- padding: 0;
- margin: 0;
-}
-details.api summary {
- padding-left: 0.6rem;
-}
-details.api summary:before {
- display: none!important;
-}
-
-details summary div {
- display: inline-block;
-}
-
-i[title="dynamic"] {
- color: var(--osc-accent-color);
-}
-
-
-.patreon-icon {
- margin-top: 2em!important;
- color: black!important;
- display: block;
- background-image: url('data:image/svg+xml;charset=UTF-8,');
- background-size: 20px 30px;
- background-repeat: no-repeat;
- background-position: 20px center;
- padding-left: 3em!important;
-}
diff --git a/resources/docs/extras/advanced-property-syntax.md b/resources/docs/extras/advanced-property-syntax.md
new file mode 100644
index 00000000..eb82b85e
--- /dev/null
+++ b/resources/docs/extras/advanced-property-syntax.md
@@ -0,0 +1,99 @@
+# Advanced property syntax
+
+## Inheritance: `@{}`
+
+Widgets can use each other's property values by using the following syntaxes:
+
+- `@{this.propertyName}`
+- `@{parent.propertyName}`
+- `@{widgetId.propertyName}` (where `widgetId` is the target widget's `id`)
+
+!!! note
+ Don't use `widgetId` when targetting `this` or `parent`, it won't work.
+
+`propertyName` can be any of the target widget's properties.
+
+It can be used to:
+
+- concatenate strings: `/@{parent.id}/some_suffix`
+- define object value: `["@{parent.id}"]`
+
+If the retreived property is an object (`[] / {}`), a subset can be defined by appending a dot and a key (array index or object key) : `@{parent.variables.key}`
+
+!!! note ""
+ The root panel's `id` is `root`.
+
+### Using the value
+
+The special property name `value` refers to a widget's current value (which can be affected by its `value` *property*).
+
+When omitted, the property name defaults to `value` : `@{widgetId}` => `@{widgetId.value}`
+
+### Dynamic properties
+
+Some properties, when changed, trigger a complete widget recreation that ends any ongoing user interaction. Also, updating these properties continuously (e.g. when linked to a slider's dynamic value) can be very cpu expensive.
+
+Some properties have much cheaper update routines and can be considered as `dynamic`, as in performance safe. These properties are marked in the documentation with a ` `.
+
+
+### Circular references cases
+
+- container widgets can inherit their children's properties only to define `dynamic` properties
+- widgets can inherit their own `value` property only to define `dynamic` properties
+
+----
+
+### Nesting
+
+The inheritance syntax supports 1-level nesting : `@{fader_@{toggle_1}}`
+
+## OSC listeners: `OSC{}`
+
+The following syntax allows listening on an osc address to define a property, with an optionnal default value :
+
+```
+OSC{/address, 1}
+```
+Will return `1` at first and listen for osc messages on address `/address`. Each time a value is received, the property will be updated.
+
+
+If the leading slash (`/`) is omitted, the address will be prefixed with the widget's `address` property:
+
+```
+OSC{color, "auto"}
+```
+Will listen for osc messages on address `/widget_address/color`.
+
+----
+
+
+## Formulas: `#{}`
+
+The following syntax allow writing mathematical formulas in widgets' properties:
+
+```
+#{FORMULA}
+```
+
+Where FORMULA is a valid [MathJS](http://mathjs.org/docs/expressions/syntax.html) expression:
+
+- [syntax documentation](http://mathjs.org/docs/expressions/syntax.html)
+- [available functions](http://mathjs.org/docs/reference/functions.html)
+- [available constants](http://mathjs.org/docs/reference/constants.html)
+- formulas can be [multiline](http://mathjs.org/docs/expressions/syntax.html#multiline-expressions)
+- property inheritance calls (`@{...}`) are always resolved before formulas
+- arrays / matrices indexes are **zero-based** (ie `["a","b"][0]` returns `"a"`)
+- strings can be multiline when enclosed in backticks instead of double quotes (``` ` ` ```)
+
+Additionnal functions:
+
+- `indexOf(a, x)`: returns index of item `x` in array `a`
+- `unpack(x)`: remove an array's brackets (`unpack([1,2])` returns `"1, 2"`)
+- `pad(x, padding)`: add leading zeros if the length the integer part of `x` is smaller than `padding` (`pad(1,2)` returns `"01"`)
+- `length(x)`: returns the length of an array or string
+- `keys(x)`: returns an array of a given object's property names (from [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys))
+- `values(x)`: returns an array of a given object's own enumerable property values (from [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values))
+- `extend(x, y)`: merges two objects into one
+
+!!! tip ""
+ A single widget property can contain multiple formulas. Variables and functions declared in a formula are available to subsequent formulas in the same property definition.
diff --git a/resources/docs/extras/css-tips.md b/resources/docs/extras/css-tips.md
new file mode 100644
index 00000000..9f4ac659
--- /dev/null
+++ b/resources/docs/extras/css-tips.md
@@ -0,0 +1,107 @@
+# CSS Tips
+
+## Inline syntax
+
+For simple use cases, the `css` property can be written as a HTML inline styles (without any CSS selector). CSS rules will apply to the widget element.
+
+```css
+opacity: 0.5; /* make the widget's transparent */
+font-size: 120%; /* increase font-size */
+```
+
+
+## Selector syntax
+
+CSS selectors can be used to apply styles to specific elements:
+
+```css
+:host {
+ /* style for the widget element
+ & { } also works (deprecated)
+ */
+}
+
+.label {
+ /* style for the .label elements */
+}
+
+> .label {
+ /* style for the direct child .label element */
+}
+
+```
+
+!!! tip ""
+ Mixing Inline and Selector syntaxes doesn't work, once you use selectors, you have to use the `:host` selector to target the widget element.
+
+## Extra css classes: `class`
+
+This non-standard css property can be used to add custom css classes to the widget element: `class: my-custom-class;`
+Multiple classes can be added (one per `class` statement).
+
+!!! warning ""
+ Using class names that are already used in the app can be hazardous. In order to avoid that, custom class names should be prefixed with something uncommon and preferably cool, such as `xxx-myclass` or `crispy-seitan-myclass`.
+
+## Layering: `z-index`
+
+Z-Axis ordering can be set using the `z-index` rule. Absolutely positionned widgets (when `top` or `left` is different from `auto`) have `z-index:10;` by default.
+
+## Layering: `pointer-events`
+
+To make a widget ignore interactions (ie to be able to click through it), add `pointer-events:none;`.
+
+!!! note ""
+ This is always ignored when the editor is enabled.
+
+## Responsive sizing
+
+In most cases, using percentages in `height` and `width` will do. CSS `calc()` function can help in some cases:
+
+```css
+:host {
+
+ width: calc(100% - 100rem);
+
+}
+```
+
+Media queries can also be used:
+
+```css
+@media screen and (min-width: 768px) {
+
+ :host {
+
+ /* style the widget if the screen is bigger than 768px */
+
+ }
+
+}
+```
+
+
+## Size units
+
+- use `rem` instead of `px` (`px` values will not scale when zooming)
+- use `%` for font-size
+
+
+## CSS Variables
+
+CSS Variables declared in the [default theme](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/browser/scss/themes/default.scss) can be overriden. Some widgets also use specific CSS variables (mostly to define colors) documented on their respective pages.
+
+## Other tips
+
+## Use the inspector
+
+Hit `F12` to open the developers tools panel. The html/css inspector helps retreiving the class names needed to style specific parts of the widgets.
+
+### Panel's background-color
+
+This works for panel, strip and tabs:
+
+```css
+> .panel {
+ background-color: red;
+}
+```
diff --git a/resources/docs/extras/custom-module.md b/resources/docs/extras/custom-module.md
new file mode 100644
index 00000000..14b0a9ad
--- /dev/null
+++ b/resources/docs/extras/custom-module.md
@@ -0,0 +1,67 @@
+# Custom module
+
+Using the `-c / --custom-module` command-line switch, users can load a javascript file to tune the way Open Stage Control behaves regarding osc.
+
+It must be of the following form:
+
+```js
+(function(){
+
+ // Do whatever you want, initialize some variables, declare some functions, ...
+
+ return {
+ init: function(){
+ // this will be executed once when the osc server starts
+ },
+ oscInFilter:function(data){
+ // Filter incomming osc messages
+
+ var {address, args, host, port} = data
+
+ // do what you want
+
+ // address = string
+ // args = array of {value, type} objects
+ // host = string
+ // port = integer
+
+ // return data if you want the message to be processed
+ return {address, args, host, port}
+
+ },
+ oscOutFilter:function(data){
+ // Filter outgoing osc messages
+
+ var {address, args, host, port} = data
+
+ // same as oscInFilter
+
+ // return data if you want the message to be and sent
+ return {address, args, host, port}
+ }
+ }
+
+})()
+
+```
+
+The module is executed in a restricted context, only a few globals are available :
+
+- `console`: `object`
+- `sendOsc`: `function({address, args, host, port})`
+- `receiveOsc`: `function({address, args, host, port})`
+- `setTimeout`: `function(function, delay)`
+- `clearTimeout`: `function(timeout)`
+- `setInterval`: `function(function, delay)`
+- `clearInterval`: `function(interval)`
+- `settings.read`: `function(name)`, see [settings.js](https://github.com/jean-emmanuel/open-stage-control/blob/master/app/main/settings.js#L125-L162) for available options
+- `app`: an [event emitter](https://nodejs.org/api/events.html#events_class_eventemitter) for monitoring the events sent by the different clients. Event names can be found in [callbacks.js](https://github.com/jean-emmanuel/open-stage-control/blob/master/app/main/callbacks.js), callbacks are called with 2 arguments: `data` (object) and `clientId` (string)
+- `options`: `array` containing the extra options passed to `--custom-module` after the filename
+
+
+`sendOsc` and `receiveOsc` expect arguments formatted as follow:
+
+- `address`: `string`
+- `args`: `array` of `{type:"OSC_TYPE_LETTER", value:VALUE}` `objects`
+- `host`: `string` ip address, valid hostname or `midi`
+- `port`: `integer` port number or `string` midi device name
diff --git a/resources/docs/extras/midi.md b/resources/docs/extras/midi.md
new file mode 100644
index 00000000..49a05b10
--- /dev/null
+++ b/resources/docs/extras/midi.md
@@ -0,0 +1,96 @@
+# Sending / Receiving MIDI
+
+Open Stage Control can send and receive MIDI messages.
+
+## Requirements
+
+MIDI support requires additional software to be installed on the server's system:
+
+- python (2 / 3)
+- python package [rtmidi](https://pypi.python.org/pypi/rtmidi) (version 2.3.2)
+
+!!! note "Why an additionnal dependency ?"
+ Providing cross-platform MIDI support is not trivial, as it requires OS-specific compilation that cannot be automated within Open Stage Control's current packaging workflow. Using a python addon seems to be the best compromise so far : the core app remains easy to build, and the extra dependency is easy to install.
+
+## Setup
+
+When running the app, the `-m / --midi` switch must be set; it accepts the following options (separated by spaces):
+
+- `list`: prints the available MIDI ports to the console; numbers in the first column may be used for `input`/`output` definition below
+- `device_name:input,output`: connect to midi ports `input` and `output`; osc messages sent to target `midi:device_name` will be processed as midi events; Multiple devices can be declared
+
+*Linux only:*
+
+- `device_name:virtual`: creates a virtual midi device with one input port and one output port
+- `jack`: use JACK MIDI instead of ALSA (add as extra parameter). `rtmidi` must be compiled with `--jack-midi` flag for this to work.
+
+## Widget settings
+
+In order to send MIDI messages, a widget must have at least one `target` formatted as follows:
+
+`midi:device_name` (where `device_name` is one of the declared midi devices)
+
+## Supported MIDI messages
+
+!!! warning ""
+ Define static argument values using the [`preArgs`](/widgets/widgets/#preargs) option in order to complete the respective MIDI message.
+
+
+
+### `/note channel note velocity`
+
+NoteOn event or noteOff if velocity equals `0`.
+
+- `channel`: integer between 1 and 16
+- `note`: integer between 0 and 127
+- `velocity`: integer between 0 and 127
+
+Example:
+
+A push button might be configured as follows in order to send a MIDI note whose velocity is defined by the button's on/off value:
+
+- `address`: /note
+- `preArgs`: [1, 60] (for MIDI channel 1, and note 60 / C3)
+- `on`: 100 (for noteOn velocity of 100 on button push)
+- `off`: 0 (to send a noteOff on button release)
+- `target`: ["midi:device_name"] (where device_name is one of the declared midi devices defined during [setup](#setup))
+
+### `/control channel cc value`
+
+Control change event.
+
+- `channel`: integer between 1 and 16
+- `cc`: integer between 0 and 127
+- `value`: integer between 0 and 127
+
+Example:
+
+A fader might be configured as follows in order to send a MIDI control message (a volume control in this example):
+
+- `address`: /control
+- `pre-args`: [1, 7] (MIDI channel 1, control number 7 generally used as volume control)
+- `range`: {"min": 0, "max": 127} (MIDI values are encoded in this range)
+- `target`: ["midi:device_name"]
+
+### `/program channel program`
+
+Program change event.
+
+- `channel`: integer between 1 and 16
+- `program`: integer between 0 and 127
+
+### `/pitch channel pitch`
+
+PitchWheel event.
+
+- `channel`: integer between 1 and 16
+- `pitch`: integer between 0 and 16383
+
+### `/sysex msg v1 .. vN`
+
+System exclusive message.
+
+- `msg`: hexadecimal sysex data string of the form `f0 ... f7`. You may include placeholders of the form `nn` which will be replaced by `v1, .., vN` respectively.
+- `v1, .., vN`: values encoded as hexadecimal data strings to include in `msg`. Most probably, you will need to sepcify a [custom module](/extras/custom-module/) in order to convert numeric widget values into the required hexadecimal format. In general, this conversion will be different for each manufacturer / device.
+
+For a very simple example, refer to session 'sysex.json' found in the application's sub folder 'resources/app/examples/'. Please remember to adjust the button's `target` to the `device_name` used in your MIDI setup.
diff --git a/resources/docs/extras/property-maths.md b/resources/docs/extras/property-maths.md
new file mode 100644
index 00000000..70a96129
--- /dev/null
+++ b/resources/docs/extras/property-maths.md
@@ -0,0 +1,30 @@
+# Property maths
+
+The following syntax allow writing mathematical formulas in widgets' properties:
+
+```
+#{ FORMULA }
+```
+
+Where FORMULA is a valid [MathJS](http://mathjs.org/docs/expressions/syntax.html) expression:
+
+- [syntax documentation](http://mathjs.org/docs/expressions/syntax.html)
+- [available functions](http://mathjs.org/docs/reference/functions.html)
+- [available constants](http://mathjs.org/docs/reference/constants.html)
+- formulas can be [multiline](http://mathjs.org/docs/expressions/syntax.html#multiline-expressions)
+- property inheritance calls (`@{...}`) are always resolved before formulas
+- arrays / matrices indexes are **zero-based** (ie `["a","b"][0]` returns `"a"`)
+- strings can be multiline when enclosed in backticks (``` ` ` ```)
+- inner closing brackets (`}`) must be escaped with a backslash (`\}`)
+
+Additionnal functions:
+
+- `unpack(x)`: remove an array's brackets (`unpack([1,2])` returns `"1, 2"`)
+- `pad(x, padding)`: add leading zeros if the length the integer part of `x` is smaller than `padding` (`pad(1,2)` returns `"01"`)
+- `length(x)`: returns the length of an array or string
+- `values(x)`: returns an array of a given object's own property values
+- `keys(x)`: returns an array of a given object's own property names
+- `timestamp()`: returns the number of milliseconds elapsed since January 1, 1970
+
+!!! tip ""
+ A single widget property can contain multiple formulas. Variables and functions declared in a formula are available to subsequent formulas in the same property definition.
diff --git a/resources/docs/extras/remote-control.md b/resources/docs/extras/remote-control.md
new file mode 100644
index 00000000..94c3a70c
--- /dev/null
+++ b/resources/docs/extras/remote-control.md
@@ -0,0 +1,114 @@
+# Remote control
+
+All widgets that send osc messages respond to the same messages. Additionnaly, Open Stage Control responds to some general osc commands.
+
+
+## `/EDIT id options`
+
+
+Apply a set of options to an existing widget by replacing the old ones with the new ones.
+
+
+- `id`: `string`, widget's `id`
+- `options`: `string`, [JSON5](https://github.com/json5/json5) stringified object defining the new properties to merge
+ - example: `{"label":"New Label", "color":"red"}`
+
+!!! warning ""
+ Editing a widget can be cpu expensive, hence updating the UI continuously is not a good idea
+
+## `/EDIT/MERGE id options`
+
+Apply a set of options to an existing widget by merging them to the widget's options.
+
+
+- `id`: `string`, widget's `id`
+- `options`: `string`, [JSON5](https://github.com/json5/json5) stringified object defining the new properties to merge
+ - example: `{"label":"New Label", "color":"red"}`
+
+!!! warning ""
+ Editing a widget can be cpu expensive, hence updating the UI continuously is not a good idea
+
+## `/EDIT/UNDO`
+
+Undo editing action
+
+## `/EDIT/REDO`
+
+Redo editing action
+
+## `/EDIT/GET target id`
+
+Sends back a widget's data (JSON stringified object), including its children, to specified target.
+
+- `target`: `string`, `ip:port` pair
+- `id`: `string`, widget's `id`
+
+Returns `/EDIT/GET id data`
+
+- `id`: `string`
+- `data`: `string`
+
+## `/EDIT/GET target address preArg1 preArg2 ...`
+
+Sends back a widget's data (JSON stringified object), including its children, to specified target.
+
+- `target`: `string`, `ip:port` pair
+- `address`: `string`, widget's `address`
+- `preArg[1...]`: `*`, widget's `preArgs`
+
+Returns `/EDIT/GET address preArg1 preArg2 ... data`
+
+- `address`: `string`, widget's `address`
+- `preArg[1...]`: `*`, widget's `preArgs`
+- `data`: `string`
+
+
+## `/GET target id`
+
+Sends back a widget's value to specified target.
+
+- `target`: `string`, `ip:port` pair
+- `id`: `string`, widget's `id`
+
+Returns `/GET id value`
+
+- `id`: `string`
+- `value`: `*`
+
+## `/GET target address preArg1 preArg2 ...`
+
+Sends back a widget's value to specified target.
+
+- `target`: `string`, `ip:port` pair
+- `address`: `string`, widget's `address`
+- `preArg[1...]`: `*`, widget's `preArgs`
+
+Returns `/GET address preArg1 preArg2 ... value`
+
+- `address`: `string`, widget's `address`
+- `preArg[1...]`: `*`, widget's `preArgs`
+- `value`: `*`
+
+## `/GET/#`
+
+Same as `/GET` but uses the widget's address instead of `/GET` to reply.
+
+## `/SET target id value`
+
+Set a widget's value as if it was interacted with from the interface. This is likely to make it send its value.
+
+- `id`: `string`, widget's `id`
+- `value`: `*`, widget's new value
+
+## `/SET address preArg1 preArg2 ... value`
+
+Set a widget's value as if it was interacted with from the interface. This is likely to make it send its value.
+
+- `address`: `string`, widget's `address`
+- `preArg[1...]`: `*`, widget's `preArgs`
+- `value`: `*`, widget's new value
+
+
+## `/TABS id id etc`
+
+Open the tabs designated by the `id` parameters. The target tab link must be accesible (opening a tab located in a disabled tab won't work unless you specify the parent tab's `id` before; the safest way to go is to pass the whole tab tree to enable).
diff --git a/resources/docs/extras/theming.md b/resources/docs/extras/theming.md
new file mode 100644
index 00000000..6cdc5541
--- /dev/null
+++ b/resources/docs/extras/theming.md
@@ -0,0 +1,46 @@
+# Theming
+
+## Built-in themes
+
+Themes can be loaded with the `--theme` option. Multiple themes can be combined. Built-in themes can be loaded using their name, custom theme files can be loaded using their path.
+
+Available themes (full color scheme):
+
+- `orange`: grey and orange theme
+- `light`: light and blue
+- `dark`: blue night theme
+
+Available extensions (alternative visual settings)
+
+- `flat`: remove 3d effects
+- `alt-buttons`: colorful active buttons
+- `responsive-fonts`: bigger texts for bigger screens
+
+## Creating a custom theme
+
+Creating a custom theme is as simple as writing a tiny css file that will override the default css variables defined in [default.scss](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/browser/scss/themes/default.scss) :
+
+```css
+:root {
+ --color-accent:red;
+}
+```
+
+This will change the default accent color to red. Variables can also be overridden for a specific subset of elements, for example :
+
+```css
+.panel-container {
+ --color-text:blue;
+}
+```
+
+This will change the default text color to blue for all elements in panel widgets.
+
+## Scss / autoreload
+
+When running the app [from sources](../getting-started), custom themes can be written in scss:
+
+- the scss file must be located in `src/browser/scss/themes/`
+- run `npm run watch-css`
+
+The theme will be watched and compiled automatically to a css file located in app/browser/themes/ (css files in this directory can be selected from the theme option by their name, without .css suffix). If the app is running on default http port, clients will reload the theme automatically.
diff --git a/resources/docs/extras/url-options.md b/resources/docs/extras/url-options.md
new file mode 100644
index 00000000..7dcae063
--- /dev/null
+++ b/resources/docs/extras/url-options.md
@@ -0,0 +1,23 @@
+# URL Options
+
+Client specific options can be set by adding query parameters to the server's url. One must prepend the url with a question mark (`?`) followed by `parameter=value` pairs separated with ampersands (`&`).
+
+
+| Option | Value | Default | Description |
+|----|----|----|----|
+| hdpi | 1 / 0 | 0 | enable high resolution canvas |
+| forceHdpi | number | 0 | force canvas scaling (ignore `hdpi`) |
+| doubletab | number | 375 | sets the double tap/click time thershold in milliseconds |
+| zoom | number | 1 | sets the initial zoom |
+| framerate | number | 60 | limit canvas drawing framerate |
+| lang | string | *system_default* | use a different language than the default if available (available languages: en, fr, ru) |
+
+Example:
+
+`http://server-ip:port?hdpi=1`
+
+
+!!! note ""
+ When using the built-in client, url options can be set through the `--url-options` switch.
+
+ Example: `open-stage-control --url-options zoom=2 doubletap=200`
diff --git a/resources/docs/fonts b/resources/docs/fonts
deleted file mode 120000
index 35bed8b8..00000000
--- a/resources/docs/fonts
+++ /dev/null
@@ -1 +0,0 @@
-../fonts
\ No newline at end of file
diff --git a/resources/docs/getting-started.md b/resources/docs/getting-started.md
new file mode 100644
index 00000000..5ea6f8bc
--- /dev/null
+++ b/resources/docs/getting-started.md
@@ -0,0 +1,179 @@
+# Getting started
+
+!!! tip ""
+ Prebuilt binaries for Linux, Windows and OS X can be found on the [release](https://github.com/jean-emmanuel/open-stage-control/releases) page.
+
+
+## Options
+
+Below are the available command-line options. Note that when running without any command-line switch (ie from a file browser), a launcher window will spawn to help setting them.
+
+!!! tip ""
+ Preferences are stored in the user's home folder in a file named `.open-stage-control` (hidden under Linux / macOS)
+
+|| Option | Description |
+|---||---|
+| `-s` | `--send` | default targets for all widgets (ip:port pairs)|
+| `-l` | `--load` | session file to load |
+| | `--state` | state file to load (osc messages will be sent, unless there are other clients connected) |
+| `-b` | `--blank` | load a blank session and start the editor |
+| `-c` | `--custom-module` | custom module file to load (custom options can be passed after the filename) |
+| `-p` | `--port` | http port of the server (default to 8080) |
+| `-o` | `--osc-port` | osc input port (default to --port) |
+| | `--tcp-port` | tcp server input port |
+| | `--tcp-targets` | tcp servers to connect to (ip:port pairs), does not susbtitute for --send |
+| `-m` | `--midi` | midi router settings |
+| `-d` | `--debug` | log received osc messages in the console |
+| `-n` | `--no-gui` | disable default gui |
+| `-g` | `--gui-only` | app server's url. If true, local port (--port) is used |
+| `-t` | `--theme` | theme name or path (mutliple values allowed) see [theming](extras/theming/) |
+| `-e` | `--examples` | list examples instead of recent sessions |
+| | `--url-options` | [url options](extras/url-options) (opt=value pairs) |
+| |`--disable-vsync` | disable gui's vertical synchronization |
+| |`--disable-gpu` | disable hardware acceleration |
+| |`--read-only` | disable session editing and session history changes |
+| |`--remote-saving` | disable remote session saving for hosts that don\'t match the regular expresion |
+| |`--instance-name` | used to differenciate multiple instances in a zeroconf network |
+| |`--fullscreen` | launch in fullscreen mode (only affects the default gui, F11 to exit) |
+
+Command-line only :
+
+|| Option | Description |
+|---||---|
+| `-h` | `--help` | print available options |
+| `-v` | `--version` | print version number |
+
+**Examples**
+
+```bash
+open-stage-control --send 127.0.0.1:5555 127.0.0.1:6666 --port 7777
+```
+
+This will create an app listening on port 7777 for synchronization messages, and sending its widgets state changes to ports 5555 and 6666.
+
+```bash
+open-stage-control --no-gui --load path/to/session.js --port 9999
+```
+
+This will create a headless app available through http on port 9999 with session.js loaded automatically.
+
+!!! tip "What about HTTPS ?"
+ Security is out of the app's scope. If you are concerned about safety, using a private - protected - network should be enough.
+
+
+## Run from sources
+
+Running the app from the sources slightly differs from using built binaries : we'll build and launch the app with npm (node package manager).
+
+**1. Requirements**
+
+- [Node.js >= 4.8](https://nodejs.org/en/#download)
+- [git](https://git-scm.com/downloads)
+
+**2. Download sources**
+
+```bash
+git clone https://github.com/jean-emmanuel/open-stage-control
+cd open-stage-control/
+# uncomment next line if you want the latest release
+# instead of the current development version
+# git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
+npm install
+npm run build
+```
+
+!!! note "Updating from sources"
+ ```bash
+ git pull
+ npm install
+ npm run build
+ ```
+
+**3. Run !**
+
+```bash
+npm start [ -- options]
+```
+
+!!! note ""
+ A double hyphen (`--`) is used here to tell npm that the options are to be passed to the app.
+
+
+## Build from sources
+
+**1. Requirements**
+
+- [Node.js >= 4.8](https://nodejs.org/en/#download)
+- [git](https://git-scm.com/downloads)
+
+**2. Download sources & build package**
+
+```bash
+git clone https://github.com/jean-emmanuel/open-stage-control
+cd open-stage-control/
+# uncomment next line if you want the latest release
+# instead of the current development version
+# git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
+npm install
+
+# TARGET_PLATFORM can be linux, win32 (windows) or darwin (os x)
+export PLATFORM=TARGET_PLATFORM
+# TARGET_ARCH can be ia32, x64 or armv7l
+export ARCH=TARGET_ARCH
+
+npm run build
+
+npm run package
+
+# For raspberry-pi / armv7l, run this instead
+npm run package-rpi
+
+# Do one of the following if you want a deb package for debian/ubuntu
+npm run deb32
+npm run deb64
+npm run debarm
+```
+
+This will build the app in `dist/open-stage-control-PLATFORM-ARCH`.
+
+!!! note ""
+ Building the app for windows from a linux system requires wine to be installed.*
+
+## Running in a headless context
+
+Electron, Open Stage Control's engine, is based on chromium and can't run out of the box without a display server. However, using a virtual framebuffer does the trick. Detailed instructions can be found in Electron's [documentation](http://electron.atom.io/docs/tutorial/testing-on-headless-ci/).
+
+In short: install [xvfb](https://en.wikipedia.org/wiki/Xvfb) and prepend your command with `xvfb-run`:
+
+```bash
+xvfb-run open-stage-control -n
+```
+
+## Running without Electron
+
+It is possible to run the server in headless mode without Electron using [node](https://nodejs.org/en/download/package-manager/) (v6 or higher) :
+
+```bash
+node /path/to/packaged/open-stage-control/resources/app/ -n
+node /path/to/sources/open-stage-control/app/ -n
+```
+
+Or using the precompilled binaries for node:
+
+```bash
+node /path/to/packaged/open-stage-control-node/ -n
+```
+
+To build the app for node only from sources:
+
+```bash
+
+# git clone, etc...
+
+npm install
+
+npm run build
+
+npm run package-node
+
+```
diff --git a/resources/docs/img/ardour-osc.png b/resources/docs/img/ardour-osc.png
new file mode 120000
index 00000000..8666affc
--- /dev/null
+++ b/resources/docs/img/ardour-osc.png
@@ -0,0 +1 @@
+../../images/ardour-osc.png
\ No newline at end of file
diff --git a/resources/docs/img/inspect.png b/resources/docs/img/inspect.png
deleted file mode 100644
index bad738b1..00000000
Binary files a/resources/docs/img/inspect.png and /dev/null differ
diff --git a/resources/docs/img/logo-browserstack.png b/resources/docs/img/logo-browserstack.png
new file mode 120000
index 00000000..aa6a40e5
--- /dev/null
+++ b/resources/docs/img/logo-browserstack.png
@@ -0,0 +1 @@
+../../images/logo-browserstack.png
\ No newline at end of file
diff --git a/resources/docs/img/logo-nobadge.png b/resources/docs/img/logo-nobadge.png
new file mode 120000
index 00000000..88c35c42
--- /dev/null
+++ b/resources/docs/img/logo-nobadge.png
@@ -0,0 +1 @@
+../../images/logo-nobadge.png
\ No newline at end of file
diff --git a/resources/docs/img/logo-nobadge.svg b/resources/docs/img/logo-nobadge.svg
new file mode 120000
index 00000000..71ddf3d3
--- /dev/null
+++ b/resources/docs/img/logo-nobadge.svg
@@ -0,0 +1 @@
+../../images/logo-nobadge.svg
\ No newline at end of file
diff --git a/resources/docs/img/logo.png b/resources/docs/img/logo.png
deleted file mode 120000
index e018c559..00000000
--- a/resources/docs/img/logo.png
+++ /dev/null
@@ -1 +0,0 @@
-../../images/logo.png
\ No newline at end of file
diff --git a/resources/docs/img/logo_nobadge.png b/resources/docs/img/logo_nobadge.png
deleted file mode 120000
index 8bdc8145..00000000
--- a/resources/docs/img/logo_nobadge.png
+++ /dev/null
@@ -1 +0,0 @@
-../../images/logo_nobadge.png
\ No newline at end of file
diff --git a/resources/docs/img/screenshots/client.png b/resources/docs/img/screenshots/client.png
deleted file mode 100644
index 163d574e..00000000
Binary files a/resources/docs/img/screenshots/client.png and /dev/null differ
diff --git a/resources/docs/img/screenshots/editor.png b/resources/docs/img/screenshots/editor.png
deleted file mode 100644
index 7865ff54..00000000
Binary files a/resources/docs/img/screenshots/editor.png and /dev/null differ
diff --git a/resources/docs/img/screenshots/launcher.png b/resources/docs/img/screenshots/launcher.png
deleted file mode 100644
index 683f2b1d..00000000
Binary files a/resources/docs/img/screenshots/launcher.png and /dev/null differ
diff --git a/resources/docs/img/screenshots/modal.png b/resources/docs/img/screenshots/modal.png
deleted file mode 100644
index 21dfec52..00000000
Binary files a/resources/docs/img/screenshots/modal.png and /dev/null differ
diff --git a/resources/docs/img/sponsors b/resources/docs/img/sponsors
deleted file mode 120000
index 11038448..00000000
--- a/resources/docs/img/sponsors
+++ /dev/null
@@ -1 +0,0 @@
-../../images/sponsors/
\ No newline at end of file
diff --git a/resources/docs/index.md b/resources/docs/index.md
index fd34dcd4..bf24e97e 100644
--- a/resources/docs/index.md
+++ b/resources/docs/index.md
@@ -1,10 +1,61 @@
----
-template: home.html
-title: Open Stage Control
----
-
+
+#
Open Stage Control
+
+*Libre and modular OSC / MIDI controller*
+
+Open Stage Control is a desktop OSC bi-directional control surface application. It's built on web technologies and run as an [Electron](http://electron.atom.io/) web server that accepts any number of clients.
+
+Try the online demo (Chrome 50+ required)
+
+Download the latest release
+
+
+
+
+## Supported platforms
+
+The server can run on all [platforms supported by Electron](https://electron.atom.io/docs/tutorial/supported-platforms/) or [Node](https://nodejs.org/en/) (in headless mode only, see [Running without Electron](getting-started/#running-without-electron)). Clients just need to connect to the server with a compatible browser :
+
+- any system running Chrome/Chromium version `50` or later (Linux, MacOS, Windows, Android, etc)
+- iOS version `9.3` or later
+
+Firefox is *not* supported.
+
+## Is there an Android / iOS app ?
+
+No, Open Stage Control is a *desktop* server app. Mobile devices can open the app by connecting to the server using Chrome.
+
+!!! tip "Add to home screen"
+ Once connected, mobile devices can add the server's url to the home screen and launch it from there directly.
+
+
+## Need help ? Found a bug ?
+
+Head over the [issue tracker](https://github.com/jean-emmanuel/open-stage-control/issues) :)
+
+## Free what ?
+
+Open Stage Control is a [free software](https://www.fsf.org/), as in *gratis* and — most importantly — **libre**. It always will be. If you want to support the project financially, consider using liberapay or [flattr](https://flattr.com/@jean-emmanuel) :
+
+
+
+
+----
+
+## Table of contents
+
+- [Getting started](getting-started)
+- [User interface](interface)
+- [Editing sessions](editing-sessions)
+- [Widgets reference](widgets-reference)
+- Extras:
+ - [Advanced property syntax](extras/advanced-property-syntax)
+ - [CSS Tips](extras/css-tips)
+ - [Theming](extras/theming)
+ - [URL options](extras/url-options)
+ - [Remote control](extras/remote-control)
+ - [Custom module](extras/custom-module)
+ - [Midi](extras/midi)
+- [Examples](examples)
+- [Credits](credits)
diff --git a/resources/docs/interface.md b/resources/docs/interface.md
new file mode 100644
index 00000000..b32e1cb7
--- /dev/null
+++ b/resources/docs/interface.md
@@ -0,0 +1,37 @@
+# User interface
+
+## Sidepanel
+
+The sidepanel can be opened by clicking the navigation icon in the upper right corner or by pressing F10.
+
+### State management
+
+- Store: save the state of all widgets in the temporary slot
+- Recall: reload saved state from the temporary slot
+- Send All: make all widgets send their current value
+- Export: save the state of all widgets to a `.preset` file
+- Import: load a state from a `.preset` file
+
+### Traversing gestures
+
+By default, a dragging gesture can only affect the widget it started on. Enabling traversing gesture does two things:
+
+- make gestures affect every widgets no matter where they started
+- make sliders-like widgets respond as if their `snap` option is enabled
+
+When traversing gestures are set to "Smart", these will only affect widgets that have the same type as the first touched widget.
+
+### Editor
+
+See [Editing sessions](editing-sessions.md).
+
+## Interactions
+
+| Mouse | Touch | Description |
+|---|---|---|
+| Click | Tap | Handled at pressing time, not releasing. |
+| Double Click | Double Tap | Some widgets handle double click / tap events. |
+| Right-click | Long touch | Widgets that have only one value input will give focus to it when receiving this event. When the editor is enabled, Right-click / Long touch spawns the editor's context menu. |
+| Drag | Drag | The widgets respond to mouse and touch drag gestures with a 1:1 precision ratio. |
+| `Ctrl` + Drag | | Holding the `Ctrl` key while dragging with the mouse increases the gesture's precision by 10.|
+| | Two-fingers drag (single target) | Using two on a single-touch target increases the gesture's precision by 10. |
diff --git a/resources/docs/widgets-reference.md b/resources/docs/widgets-reference.md
new file mode 100644
index 00000000..f1e2cb50
--- /dev/null
+++ b/resources/docs/widgets-reference.md
@@ -0,0 +1,477 @@
+
+
+## Generic properties
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| type¶
| `string` | "auto" | |
+| id¶
| `string` | "auto" | Widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages. |
+| linkId¶
| `string`\|
`array` | "" | Widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages.
When prefixed with >>, the `linkId` will make the widget act as a master (sending but not receiving)
When prefixed with <<, the `linkId` will make the widget act as a slave (receiving but not sending) |
+| geometry¶
||||
+| left¶
| `number`\|
`string` | "auto" | When both top and left are set to auto, the widget is positioned according to the normal flow of the page (from left to right, by order of creation).
Otherwise, the widget will be absolutely positioned |
+| top¶
| `number`\|
`percentage` | "auto" | When both top and left are set to auto, the widget is positioned according to the normal flow of the page (from left to right, by order of creation).
Otherwise, the widget will be absolutely positioned |
+| width¶
| `number`\|
`percentage` | "auto" | |
+| height¶
| `number`\|
`percentage` | "auto" | |
+| style¶
||||
+| label¶
| `string`\|
`boolean` | "auto" | Set to `false` to hide completely
Insert icons using the prefix ^ followed by the icon's name : ^play, ^pause, etc |
+| color¶
| `string` | "auto" | CSS color code. Set to "auto" to inherit from parent widget. |
+| css¶
| `string` | "" | CSS rules |
+| value¶
||||
+| default¶
| `*` | "" | If set, the widget will be initialized with this value when the session is loaded. |
+| value¶
| `*` | "" | Define the widget's value depending on other widget's values / properties using property inheritance and property maths |
+| osc¶
||||
+| precision¶
| `integer`\|
`string` | 2 | Defines the number of decimals to display and to send.
Set to `0` to send integers only.
Data type can be specified by appending a valid osc type tag to the precision value, for example : `3d` will make the widget send double precision numbers rounded to three decimals |
+| address¶
| `string` | "auto" | OSC address for sending messages, it must start with a / |
+| preArgs¶
| `*`\|
`array` | "" | A value or array of values that will be prepended to the OSC messages.
Values can be defined as objects if the osc type tag needs to be specified: `{type: "i", value: 1}` |
+| target¶
| `string`\|
`array`\|
`null` | "" | This defines the targets of the widget's OSC messages
- A `string` or `array` of strings formatted as follow: `ip:port` or `["ip:port"]`
- If midi is enabled, targets can be `midi:device_name`
- The special item `"self"` can be used to refer to the emitting client directly.
- If no target is set, messages can still be sent if the server has default targets
- The server's default targets can be bypassed by setting one of the items to `null` |
+| bypass¶
| `boolean` | false | Set to `true` to prevent the widget from sending any osc message |
+
+## Sliders
+
+### fader
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| style¶
||||
+| css¶
| `string` | "" | Available CSS variables:
- `--color-gauge: color;`
- `--color-knob: color;`
- `--color-pips: color;`
- `--gauge-opacity: number;` |
+| fader¶
||||
+| horizontal¶
| `boolean` | false | Set to `true` to display the fader horizontally |
+| alignRight¶
| `boolean` | false | Set to `true` to invert the pip's and fader's position |
+| pips¶
| `boolean` | true | Set to `false` to hide the scale |
+| input¶
| `boolean` | true | Set to `false` to hide the built-in input |
+| meter¶
| `boolean` | false | Set to true to display a vu-meter next in the fader
- the meter's `id` will be the same as the widget's with `/meter` appended to it
- the meter's `id` will be the same as the widget's with `/meter` appended to it |
+| compact¶
| `boolean` | false | Set to `true` to display a compact alternative for the widget. Disables default mouse/touch focusing on the value display. |
+| dashed¶
| `boolean` | false | Set to `true` to display a dashed gauge |
+| snap¶
| `boolean` | false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position |
+| spring¶
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released |
+| doubleTap¶
| `boolean` | false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.
Can also be an osc address, in which case the widget will just send an osc message (`/ `) |
+| range¶
| `object` | {
"min": 0,
"max": 1
} | Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed
Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) |
+| steps¶
| `string`\|
`number`\|
`array` | "" | Restricts the widget's value:
- `auto`: use values defined in `range`
- `number`: define a number of evenly spaced steps
- `array`: use arbitrary values |
+| logScale¶
| `boolean` | false | Set to `true` to use logarithmic scale |
+| unit¶
| `string` | "" | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
+| origin¶
| `number` | "auto" | Defines the starting point's value of the fader's gauge |
+| osc¶
||||
+| touchAddress¶
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
+| meterAddress¶
| `string` | "" | OSC address for the built-in meter |
+
+### knob
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| style¶
||||
+| css¶
| `string` | "" | Available CSS variables:
- `--color-gauge: color;`
- `--color-knob: color;`
- `--color-pips: color;` |
+| knob¶
||||
+| pips¶
| `boolean` | true | Set to `false` to hide the scale |
+| input¶
| `boolean` | true | Set to `false` to hide the built-in input |
+| dashed¶
| `boolean` | false | Set to `true` to display a dashed gauge |
+| angle¶
| `number` | 270 | Defines the angle's width of the knob, in degrees |
+| snap¶
| `boolean` | false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position |
+| spring¶
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released |
+| doubleTap¶
| `boolean` | false | Set to `true` to make the knob reset to its `default` value when receiving a double tap.
Can also be an osc address, in which case the widget will just send an osc message (`/ `) |
+| range¶
| `object` | {
"min": 0,
"max": 1
} | Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed
Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) |
+| steps¶
| `string`\|
`number`\|
`array` | "" | Restricts the widget's value:
- `auto`: use values defined in `range`
- `number`: define a number of evenly spaced steps
- `array`: use arbitrary values |
+| logScale¶
| `boolean` | false | Set to `true` to use logarithmic scale |
+| unit¶
| `string` | "" | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
+| origin¶
| `number` | "auto" | Defines the starting point's value of the knob's gauge |
+| osc¶
||||
+| touchAddress¶
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
+
+### encoder
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| encoder¶
||||
+| ticks¶
| `number` | "auto" | defines the granularity / verbosity of the encoder (number of step for a 360° arc) |
+| back¶
| `*` | -1 | Defines which value is sent when rotating the encoder anticlockwise |
+| forth¶
| `*` | 1 | Defines which value is sent when rotating the encoder clockwise |
+| release¶
| `number` | "auto" | Defines which value is sent when releasing the encoder:
- Set to `null` to send send no argument in the osc message
- Can be an `object` if the type needs to be specified |
+| snap¶
| `boolean` | false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position |
+| doubleTap¶
| `boolean` | false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.
Can also be an osc address, in which case the widget will just send an osc message (`/ `) |
+| osc¶
||||
+| touchAddress¶
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
+
+### range
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| style¶
||||
+| css¶
| `string` | "" | Available CSS variables:
- `--color-gauge: color;`
- `--color-knob: color;`
- `--color-pips: color;`
- `--gauge-opacity: number;` |
+| range¶
||||
+| range¶
| `object` | {
"min": 0,
"max": 1
} | See fader's `range` |
+| horizontal¶
| `boolean` | false | See fader's `horizontal` |
+| alignRight¶
| `boolean` | false | See fader's `alignRight` |
+| input¶
| `boolean` | true | See fader's `input` |
+| compact¶
| `boolean` | false | See fader's `compact` |
+| pips¶
| `boolean` | true | See fader's `pips` |
+| snap¶
| `boolean` | false | See fader's `snap` |
+| spring¶
| `boolean` | false | See fader's `spring` |
+| logScale¶
| `boolean` | false | See fader's `logScale` |
+| osc¶
||||
+| touchAddress¶
| `string` | "" | See fader's `touchAddress` |
+| split¶
| `boolean`\|
`object` | false | Set to `true` to send separate osc messages for `low` and `high` handles. The `address` will be the same as the widget's with `/low` or `/high` appended to it
Can be set as an object to specify a different `address` : `['/osc_address_low', '/osc_address_high']`
Note: the widget will only respond to its original osc address, not to the splitted version |
+
+## Buttons
+
+### toggle
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| toggle¶
||||
+| doubleTap¶
| `boolean` | false | Set to `true` to make the button require a double tap to be toggled instead of a single tap |
+| led¶
| `boolean` | false | Set to `true` to display the toggle's state with a led |
+| on¶
| `*` | 1 | Set to `null` to send send no argument in the osc message
Can be an `object` if the type needs to be specified (see preArgs) |
+| off¶
| `*` | 0 | Set to `null` to send send no argument in the osc message
Can be an `object` if the type needs to be specified (see preArgs) |
+
+### push
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| push¶
||||
+| doubleTap¶
| `boolean` | false | Set to `true` to make the button require a double tap to be pushed instead of a single tap |
+| on¶
| `*` | 1 | Set to `null` to send send no argument in the osc message
Can be an `object` if the type needs to be specified (see preArgs) |
+| off¶
| `*` | 0 | Set to `null` to send send no argument in the osc message
Can be an `object` if the type needs to be specified (see preArgs) |
+| norelease¶
| `boolean` | false | Set to `true` to prevent sending any osc message when releasing the button |
+
+### switch
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| switch¶
||||
+| horizontal¶
| `boolean` | false | Set to `true` to display values horizontally |
+| showValues¶
| `boolean` | false | If values is an object, set to `true` to display both values and labels instead of labels only |
+| values¶
| `array`\|
`object` | {
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`
`Object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept |
+
+### dropdown
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| dropdown¶
||||
+| values¶
| `array`\|
`object` | {
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`
`Object` of label:value pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept
An empty option will always be prepended to values (sends an osc message without any value); it can be hidden by adding `option:first-child{display:none}` to the widget's `css` |
+
+## Pads
+
+### xy
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| style¶
||||
+| css¶
| `string` | "" | Available CSS variables:
- `--background: background;`: sets the dragging area's background
- `--pips-color: color;`
- `--pips-opacity: number;`
- `--point-opacity: number;` |
+| xy¶
||||
+| pointSize¶
| `integer` | 20 | Defines the points' size |
+| snap¶
| `boolean` | false | By default, the points are dragged from their initial position.
If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates |
+| spring¶
| `boolean` | false | When set to `true`, the widget will go back to its default value when released |
+| pips¶
| `boolean` | true | Set to `false` to hide the scale |
+| rangeX¶
| `object` | {
"min": 0,
"max": 1
} | Defines the min and max values for the x axis |
+| rangeY¶
| `object` | {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
+| logScaleX¶
| `boolean` | false | Set to `true` to use logarithmic scale for the x axis (log10) |
+| logScaleY¶
| `boolean` | false | Set to `true` to use logarithmic scale for the y axis (log10) |
+| input¶
| `boolean` | true | Set to false to hide the built-in input widget |
+| doubleTap¶
| `boolean`\|
`string` | false | Set to `true` to make the fader reset to its default value when receiving a double tap.
Can also be an osc address, which case the widget will just send an osc message: `/ ` |
+| osc¶
||||
+| touchAddress¶
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1`) |
+| split¶
| `boolean`\|
`object` | false | Set to `true` to send separate osc messages for each point's x and y axis. The address will be the same as the widget's with `/x` or `/y` appended to it
Can be set as an `object` to specify a different address : ['/osc_address_x', '/osc_address_y']
Note: the widget will only respond to its original osc address, not to the splitted version |
+
+### rgb
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| rgb¶
||||
+| snap¶
| `boolean` | false | By default, the points are dragged from their initial position.
If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates |
+| spring¶
| `boolean` | false | When set to `true`, the widget will go back to its default value when released |
+| range¶
| `object` | {
"min": 0,
"max": 255
} | Defines the widget's output scale. |
+| input¶
| `boolean` | true | Set to `false` to hide the built-in input widget |
+| alpha¶
| `boolean` | false | Set to `true` to enable alpha channel |
+| osc¶
||||
+| split¶
| `boolean`\|
`object` | false | Set to `true` to send separate osc messages for for r and g & b. The address will be the same as the widget's with `/r`, `/g` or `/b` appended to it
Can be set as an `object` to specify a different address : `['/r', '/g', 'b']`
Note: the widget will only respond to its original osc address, not to the splitted version |
+
+### multixy
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| style¶
||||
+| css¶
| `string` | "" | Available CSS variables:
- `--background: background;`: sets the dragging area's background
- `--pips-color: color;`
- `--pips-opacity: number;`
- `--color-text: point-color;`
Pads can be targetted individually with the .pad-X selector (where X is the pad's index) |
+| multi xy¶
||||
+| points¶
| `integer`\|
`array` | 2 | Defines the number of points on the pad
Can be an array of strings that will be used as labels for the points (ex: `['A', 'B']`) |
+| xy¶
||||
+| pointSize¶
| `integer` | 20 | Defines the points' size |
+| snap¶
| `boolean` | false | By default, the points are dragged from their initial position.
If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates |
+| spring¶
| `boolean` | false | When set to `true`, the widget will go back to its default value when released |
+| pips¶
| `boolean` | true | Set to `false` to hide the scale |
+| rangeX¶
| `object` | {
"min": 0,
"max": 1
} | Defines the min and max values for the x axis |
+| rangeY¶
| `object` | {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
+| logScaleX¶
| `boolean` | false | Set to `true` to use logarithmic scale for the x axis (log10) |
+| logScaleY¶
| `boolean` | false | Set to `true` to use logarithmic scale for the y axis (log10) |
+| osc¶
||||
+| touchAddress¶
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
+| split¶
| `boolean`\|
`object` | false | Set to `true` to send separate osc messages for each point's x and y axis. The address will be the same as the widget's with `/N/x` or `/N/y` appended to it, where N is the point's id (or the point's label if points is an array)
Can be set as an `object` to specify a different address : `['/0/x', '/0/y', '/1/x', '/2/y']`
Note: the widget will only respond to its original osc address, not to the splitted version |
+
+## Matrices
+
+### matrix
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| matrix¶
||||
+| widgetType¶
| `string` | "toggle" | Defines the type of the widgets in the matrix |
+| matrix¶
| `array` | [
2,
2
] | Defines the number of columns and and rows in the matrix |
+| start¶
| `integer` | 0 | First widget's index |
+| spacing¶
| `integer` | 0 | Adds space between widgets |
+| traversing¶
| `boolean` | true | Set to `false` to disable traversing gestures |
+| border¶
| `boolean` | true | Set to `false` to disables the widgets' borders |
+| props¶
| `object` | {} | Defines a set of property to override the widgets' defaults.
Formulas in this field are resolved with an extra variable representing each widget's index: `$` |
+
+### keyboard
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| style¶
||||
+| css¶
| `string` | "" | Available CSS variables:
- `--color-white:color;` (white keys color)
- `--color-black:color;` (black keys color) |
+| matrix¶
||||
+| keys¶
| `number` | 25 | Defines the number keys |
+| start¶
| `number` | 48 | MIDI note number to start with (default is C4)
Standard keyboards settings are: `[25, 48]`, `[49, 36]`, `[61, 36]`, `[88, 21]` |
+| traversing¶
| `boolean` | true | Set to `false` to disable traversing gestures |
+| on¶
| `*` | 1 | Set to `null` to send send no argument in the osc message
Can be an `object` if the type needs to be specified (see preArgs) |
+| off¶
| `*` | 0 | Set to `null` to send send no argument in the osc message
Can be an `object` if the type needs to be specified (see preArgs) |
+| osc¶
||||
+| split¶
| `boolean`\|
`string` | false | `true`: the widget's index will be appended to the matrice's osc address
`false`: it will be prepended to the widget's preArgs
`string`: will be used to define the widgets' addresses, replacing dollar signs (`$`) with their respective index (to insert the actual dollar sign, it must be escaped with a backslash (`\$`)) |
+
+## Plots
+
+### plot
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| plot¶
||||
+| rangeX¶
| `object` | {
"min": 0,
"max": 1
} | Defines the min and max values for the x axis |
+| rangeY¶
| `object` | {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
+| logScaleX¶
| `boolean` | false | Set to `true` to use logarithmic scale for the x axis (log10) |
+| logScaleY¶
| `boolean` | false | Set to `true` to use logarithmic scale for the y axis (log10) |
+| origin¶
| `number` | "auto" | Defines the y axis origin. Set to `false` to disable it. |
+| dots¶
| `boolean` | true | |
+| bars¶
| `boolean` | false | Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing) |
+| smooth¶
| `boolean`\|
`number` | false | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
+| pips¶
| `boolean` | true | Set to `false` to hide the scale |
+| value¶
||||
+| value¶
| `array`\|
`string` | "" | - `Array` of `y` values
- `Array` of `[x, y]` `array` values
- `String` `array`
- `String` `object` to update specific coordinates only: `{0:1, 4:0}` will change the 1st and 5th points' coordinates |
+
+### eq
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| eq¶
||||
+| pips¶
| `boolean` | true | Set to false to hide the scale |
+| resolution¶
| `number` | 128 | Defines the number of points used to compute the frequency response |
+| rangeY¶
| `object` | {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
+| origin¶
| `number`\|
`boolean` | "auto" | Defines the y axis origin. Set to `false` to disable it |
+| logScaleX¶
| `boolean` | false | Set to `true` to use logarithmic scale for the x axis (log10) |
+| smooth¶
| `boolean`\|
`number` | false | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
+
+### visualizer
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| visualizer¶
||||
+| duration¶
| `number` | 1 | Defines visualization duration in seconds |
+| range¶
| `object` | {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
+| origin¶
| `number` | "auto" | Defines the y axis origin. Set to `false` to disable it |
+| logScale¶
| `boolean` | false | Set to `true` to use logarithmic scale for the y axis |
+| smooth¶
| `boolean`\|
`number` | false | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
+| pips¶
| `boolean` | true | Set to `false` to hide the scale |
+
+### led
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| led¶
||||
+| range¶
| `object` | {
"min": 0,
"max": 1
} | Value to led intensity mapping range |
+| logScale¶
| `boolean` | false | Set to `true` to use a logarithmic mapping scale) |
+
+### rgbled
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| value¶
||||
+| value¶
| `array`\|
`string` | "" | - `Array`: `[r, g, b]` (`r`, `g` and `b` between `0` and `255`)
- `Array`: `[r, g, b, alpha]` (`alpha` between `0` and `255`)
- `String`: CSS color |
+
+### meter
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| style¶
||||
+| css¶
| `string` | "" | Available CSS variables:
- `--color-gauge: color;`
- `--color-knob: color;`
- `--color-pips: color;`
- `--gauge-opacity: number;` |
+| meter¶
||||
+| range¶
| `object` | {
"min": 0,
"max": 1
} | See fader's `range` |
+| logScale¶
| `boolean` | false | See fader's `logScale` |
+| origin¶
| `number` | "auto" | See fader's `origin` |
+| unit¶
| `string` | "auto" | See fader's `unit` |
+| alignRight¶
| `boolean` | false | See fader's `alignRight` |
+| horizontal¶
| `boolean` | false | See fader's `horizontal` |
+| pips¶
| `boolean` | false | See fader's `pips` |
+| dashed¶
| `boolean` | false | See fader's `dashed` |
+| gradient¶
| `array`\|
`object` | [] | When set, the meter's gauge will be filled with a linear color gradient
- each item must be a CSS color string.
- as an `object`: each key must be a number between 0 and 1
- each item must be a CSS color string.
Examples: `['blue', 'red']`, {'0': 'blue', '0.9': 'blue', '1': 'red'} |
+
+### text
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| text¶
||||
+| vertical¶
| `boolean` | false | Set to `true` to display the text vertically |
+| wrap¶
| `boolean` | false | Set to `true` to wrap long lines automatically.
This will not break overflowing words by default, word-breaking can be enabled by adding `word-break: break-all;` to the `css` property |
+| align¶
| `string` | "" | Set to `left` or `right` to change text alignment (otherwise center) |
+
+### image
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| image¶
||||
+| size¶
| `string` | "cover" | CSS background-size |
+| position¶
| `string` | "center" | CSS background-position |
+| repeat¶
| `string` | "no-repear" | CSS background-repeat |
+| border¶
| `boolean` | true | Set to `false` to disable the borders and background-color |
+| cache¶
| `boolean` | true | Set to false to disable image caching (forces file reload when updating or editing the widget).
When true, sending `reload` to the widget reloads its image without changing its value |
+| value¶
||||
+| value¶
| `string` | "" | - File `url` or `absolute path`
- Base64 encoded image : `data:image/...` |
+
+### svg
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| svg¶
||||
+| svg¶
| `string` | "" | Svg xml definition:
- will be wrapped in a `< svg />` element
- `` commands support a special percent notation (`%x` and `%y`) |
+
+### frame
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| style¶
||||
+| label¶
| `string`\|
`boolean` | "auto" | Set to `false` to hide completely
Insert icons using the prefix ^ followed by the icon's name : ^play, ^pause, etc
If set to `false`, all pointer-events will be disabled on the frame as long as the editor is enabled to ensure it can be selected |
+| frame¶
||||
+| border¶
| `boolean` | true | Set to `false` to disable the borders and background-color |
+| value¶
||||
+| value¶
| `string` | "" | External web page URL. Only local URLs are allowed (starting with `http://127.0.0.1/`, `http://10.x.x.x/`, `http://192.168.x.x/`, etc) |
+
+## Containers
+
+### panel
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| panel¶
||||
+| scroll¶
| `boolean` | true | Set to `false` to disable scrollbars |
+| border¶
| `boolean` | true | By default, widgets in panels/strip have their border disabled, except for panels and strips. Set to `false` to apply this rule to the panel too |
+| value¶
||||
+| value¶
| `integer` | "" | Defines currently opened tab in the widget
A tab can be opened only by setting its parent's value |
+| children¶
||||
+| variables¶
| `*` | "@{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
+| widgets¶
| `array` | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. |
+| tabs¶
| `array` | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
+
+### strip
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| strip¶
||||
+| scroll¶
| `boolean` | true | Set to `false` to disable scrollbars |
+| horizontal¶
| `boolean` | false | Set to `true` to display widgets horizontally |
+| stretch¶
| `boolean` | false | Set to `true` to stretch widgets evenly |
+| border¶
| `boolean` | true | By default, widgets in panels/strip have their border disabled, except for panels and strips. Set to `false` to apply this rule to the panel too |
+| spacing¶
| `integer`\|
`percentage` | 0 | Adds space between widgets. Percents are always relative to the strips width |
+| children¶
||||
+| variables¶
| `*` | "@{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
+| widgets¶
| `array` | [] | Each element of the array must be a widget object
- By default, children widgets that don't have an explicit `width`/`height` set will be shrinked to respect the sizes specified by others
- Adding `flex:1;` to a children's `css` will give it the ability the fill the remaining space
- Multiple children can have a `flex:x;` css property (`x` will ponderate their expansion) |
+
+### modal
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| modal¶
||||
+| doubleTap¶
| `boolean` | false | Set to `true` to make the modal require a double tap to open instead of a single tap |
+| popupLabel¶
| `string` | "" | Alternative label for the modal popup |
+| popupWidth¶
| `number`\|
`percentage` | "80%" | Modal popup's size |
+| popupHeight¶
| `number`\|
`percentage` | "80%" | Modal popup's size |
+| popupLeft¶
| `number`\|
`percentage` | "auto" | Modal popup's position |
+| popupTop¶
| `number`\|
`percentage` | "auto" | Modal popup's position |
+| value¶
||||
+| value¶
| `integer` | "" | Defines the modal's state:`0` for closed, `1` for opened |
+| children¶
||||
+| variables¶
| `*` | "@{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
+| widgets¶
| `array` | [] | Each element of the array must be a widget object |
+
+### clone
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| clone¶
||||
+| widgetId¶
| `string` | "" | `id` of the widget to clone |
+| overrides¶
||||
+| props¶
| `object` | {} | Cloned widget's properties to override |
+
+## Switchers
+
+### switcher
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| switcher¶
||||
+| linkedWidgets¶
| `string`\|
`array` | "" | - `String`: a widget's `id` whose state changes will be stored
- `Array`: a list of widget `id` string |
+| horizontal¶
| `boolean` | false | Set to `true` to display values horizontally |
+| values¶
| `array`\|
`object` | {
"Value 1": 1,
"Value 2": 2
} | Each item represents a bank that stores the values from the widgets listed in `linkedWidgets`
- `Array` of possible values to switch between : `[1,2,3]`
- `Object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept |
+
+### crossfader
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| crossfader¶
||||
+| linkedWidgets¶
| `string`\|
`array` | "" | - `String`: a widget's `id` whose state changes will be stored
- `Array`: a list of widget `id` string |
+| horizontal¶
| `boolean` | false | Set to `true` to display values horizontally |
+
+## Inputs
+
+### input
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| input¶
||||
+| vertical¶
| `boolean` | false | Set to `true` to display the text vertically |
+| align¶
| `string` | "" | Set to `left` or `right` to change text alignment (otherwise center) |
+| unit¶
| `string` | "" | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
+| editable¶
| `boolean` | true | Set to `false` to make the input non-editable |
+
+### keys
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| keys¶
||||
+| binding¶
| `string`\|
`array` | "" | Key combo `string` or `array` of strings (see KeyboardJS documentation) |
+| keydown¶
| `string` | "" | This property is evaluated each time the key combo is pressed. Formulas are given extras variables in this context:
- `key`: pressed key name (usefull for handling multiple keys with a single keys widget)
- `ctrl`: control key state
- `alt`: alt key state
- `shift`: shift key state
- `super`: command/windows key state |
+| keyup¶
| `string` | "" | Same as `keydown`, but evaluated when releasing the key combo |
+| repeat¶
| `boolean` | true | Set to `false` to prevent keydown repeats when holding the key combo pressed |
+
+### script
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| script¶
||||
+| condition¶
| `string` | 1 | When the widget receives a value, if this property return a falsy value, the script property won't be evaluated. If it's non-falsy, it will be evaluated normally. Formulas are given one extra variable in this context:
- `value`: the value received by the widget |
+| script¶
| `string` | "" | This property is evaluated each time the widget receives a value* if condition is non-falsy. Formulas are given extras variables in this context:
- `value`: the value received by the widget
- `send(target, address, arg1, arg2, ...)`: function for sending osc messages (ignores the script's targets and the server's defaults unless `target` is `false`; ignores the script's `preArgs`)
- `set(id, value)`: function for setting a widget's value
* Note: `value` or `linkId` properties can be used to receive other widgets' values |
+
+### gyroscope
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| gyroscope¶
||||
+| frequency¶
| `number` | 30 | Value update frequency (updates per seconds) |
+| normalize¶
| `boolean` | true | Normalize gravity related values |
+| compass¶
| `boolean` | false | Set to `true` to return the orientation values with respect to the actual north direction of the world instead of the head direction of the device |
+| screenAdjusted¶
| `boolean` | false | Set to `true` to return screen adjusted values |
+| value¶
||||
+| value¶
| `object` | "" | The gyroscope's value is an object containing multiple values, which can be used by other widgets via the property maths syntax
- `value.do.alpha`: deviceorientation event alpha
- `value.do.beta`: deviceorientation event beta
- `value.do.gamma`: deviceorientation event gamma
- `value.do.absolute`: deviceorientation event absolute
- `value.dm.x`: devicemotion event acceleration x
- `value.dm.y`: devicemotion event acceleration y
- `value.dm.z`: devicemotion event acceleration z
- `value.dm.gx`: devicemotion event accelerationIncludingGravity x
- `value.dm.gy`: devicemotion event accelerationIncludingGravity y
- `value.dm.gz`: devicemotion event accelerationIncludingGravity z
- `value.dm.alpha`: devicemotion event rotationRate alpha
- `value.dm.beta`: devicemotion event rotationRate beta
- `value.dm.gamma`: devicemotion event rotationRate gamma |
+
+
+
+
diff --git a/resources/docs/widgets/buttons.md b/resources/docs/widgets/buttons.md
new file mode 100644
index 00000000..b1c8d384
--- /dev/null
+++ b/resources/docs/widgets/buttons.md
@@ -0,0 +1,109 @@
+# Buttons
+
+Buttons are exactly what you think they are.
+
+
+
+## Toggle
+```js
+{
+ type:'toggle',
+ // etc
+}
+```
+
+### `doubleTap`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to make the button require a double tap to be toggled instead of a single tap
+
+### `led`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to display the toggle's state with a led
+
+### `on`
+- type: `string|number|object`
+- default: `1`
+- usage: defines which value is sent on `on` position
+ - set to `null` to send send no argument in the osc message
+ - can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs))
+
+### `off`
+- type: `string|number|object`
+- default: `0`
+- usage: defines which value is sent on `off` position
+ - set to `null` to send send no argument in the osc message
+ - can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs))
+
+
+
+
+## Push
+```js
+{
+ type:'push',
+ // etc
+}
+```
+
+### `on`
+- type: `string|number|object`
+- default: `1`
+- usage: defines which value is sent when pushing the button
+ - set to `null` to send send no argument in the osc message
+ - can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs))
+
+### `off`
+- type: `string|number|object`
+- default: `0`
+- usage: defines which value is sent when releasing the button
+ - set to `null` to send send no argument in the osc message
+ - can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs))
+
+### `norelease`
+- type: `bool`
+- default: `false`
+- usage: set to true to prevent sending any osc message when releasing the button
+
+Setting the `push`'s value externally (via osc) will toggle it's inner light.
+
+
+
+
+## Switch
+
+```js
+{
+ type:'switch',
+ // etc
+}
+```
+### `values`
+- type: `array|object`
+- default: `{"Value 1":1,"Value 2":2}`
+- usage:
+ - `array` of possible values to switch between : `[1,2,3]`
+ - `object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept.
+
+### `showValues`
+- type: `boolean`
+- default: `false`
+- usage: if `values` is an `object`, set to `true` to display both values and labels instead of labels only
+
+
+## Dropdown
+```js
+{
+ type:'dropdown',
+ // etc
+}
+```
+
+### `values`
+- type: `array|object`
+- default: `{"Value 1":1,"Value 2":2}`
+- usage:
+ - `array` of possible values to switch between : `[1,2,3]`
+ - `object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept.
+ - an empty option will always be prepended to `values` (sends an osc message without any value); it can be hidden by adding `option:first-child{display:none}` to the widget's `css`
diff --git a/resources/docs/widgets/containers.md b/resources/docs/widgets/containers.md
new file mode 100644
index 00000000..b61a8c83
--- /dev/null
+++ b/resources/docs/widgets/containers.md
@@ -0,0 +1,166 @@
+# Containers
+
+Containers can contain any widgets.
+
+
+## Panel
+
+Panels can contains tabs or widgets. These can be absolutely positioned and can overflow their parent's size (which will then display scrollbars). When a panel contains tabs, it can send and receive its active tab's index through osc.
+
+
+```js
+{
+ type:'panel',
+ // etc
+}
+```
+
+### `scroll`
+- type: `boolean`
+- default: `true`
+- usage: set to `false` to disable scrollbars
+
+### `border`
+- type: `boolean`
+- default: `true`
+- usage: by default, widgets in panels/strip have their border disabled, except for panels and strips. Set to `false` to apply this rule to the panel too.
+
+### `widgets`
+- type: `array`
+- default: `[]`
+- usage: each element of the `array` must be a widget `object`. A panel cannot contain widgets and tabs simultaneously.
+
+### `tabs`
+- type: `array`
+- default: `[]`
+- usage: each element of the `array` must be a tab `object`. A panel cannot contain widgets and tabs simultaneously.
+
+
+### `variables`
+- type: `*`
+- default: `@{parent.variables}`
+- usage: defines one or more arbitrary variables that can be inherited by children widgets.
+- examples:
+ - `1` (`@{parent.variables}` will return `1`)
+ - `{a: [1, 2], b: 2}` (`@{parent.variables.a}` will return `[1, 2]`)
+ - `[1, 2]` (`@{parent.variables.0}` will return `1`)
+ - `@{parent.variables}` useful when nesting containers
+
+
+### `layout`
+- type: `string`
+- default: `''`
+- usage: `layout` must be a valid [Visual Format Language](https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/AutolayoutPG/VisualFormatLanguage.html) expression. It accepts the [Extended Visual Format Language](https://github.com/IjzerenHein/autolayout.js#extended-visual-format-language-evfl) as well. Widgets are targeted using their `id` or their index prefixed with a `$` (`$0, $1, etc`), the latter method being incompatible with the [range spread operator](https://github.com/IjzerenHein/autolayout.js#view-ranges-spread-operator). Expressions can be tested and debugged with the online [Visual Format Editor](https://rawgit.com/IjzerenHein/visualformat-editor/master/dist/index.html).
+- note: this only applies when the panel contains widgets, not tabs
+
+### `spacing`
+- type: `integer|array`
+- default: `0`
+- usage: spacing size used in `layout` expression, can be set as a `[vertical,horizontal]` array.
+- note: this only applies when the panel contains widgets, not tabs
+
+### `css`
+```css
+--nav-height: number[rem|%];
+```
+
+## Strip
+
+Unidirectional panel with stretching capability. By default, children widgets that don't have an explicit `width`/`height` set will be shrinked to respect the sizes specified by others. Adding `flex:1;` to a children's `css` will give it the ability the fill the remaining space. Multiple children can have a `flex:x;` css property (`x` will ponderate their expansion).
+
+```js
+{
+ type:'strip',
+ // etc
+}
+```
+
+### `horizontal`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to display widgets horizontally
+
+### `stretch`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to stretch widgets evenly
+
+### `spacing`
+- type: `integer|percentage`
+- default: `0`
+- usage: adds space between widgets. Percents are always relative to the strips width.
+
+### `border`
+- type: `boolean`
+- default: `true`
+- usage: by default, widgets in panels/strip have their border disabled, except for panels and strips. Set to `false` to apply this rule to the strip too.
+
+### `widgets`
+- type: `array`
+- default: `[]`
+- usage: each element of the `array` must be a widget `object`
+
+
+
+
+## Modal
+
+Modals are buttons that turn into a centered popup panels when enabled. They can only contain widgets. They can send and receive their state via osc (1 to enable, 0 to disable).
+
+```js
+{
+ type:'modal',
+ // etc
+}
+```
+
+### `doubleTap`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to make the modal require a double tap to open instead of a single tap
+
+### `popupWidth` / `popupHeight`
+- type: `number|percentage`
+- default: `100%`
+- usage: sets the modal's size once opened
+
+### `popupLeft` / `popupTop`
+- type: `number|percentage`
+- default: `auto`
+- usage: sets the modal's position once opened (centered by default)
+
+
+### `popupLabel`
+- type: `string`
+- default: `empty`
+- usage: alternative label for the popup
+
+### `options`
+- see panel's [`options`](#panel)
+
+
+## Clone
+
+```js
+{
+ type:'clone',
+ // etc
+}
+```
+
+### `widgetId`
+- type: `string`
+- default: `empty`
+- usage: `id` of the widget to clone
+
+### `props`
+- type: `object`
+- default: `{}`
+- usage: cloned widget's properties to override
+- example:
+```json
+{
+ "variables": { "n": 2 },
+ "color": "orange"
+}
+```
diff --git a/resources/docs/widgets/inputs.md b/resources/docs/widgets/inputs.md
new file mode 100644
index 00000000..ea69f38c
--- /dev/null
+++ b/resources/docs/widgets/inputs.md
@@ -0,0 +1,156 @@
+# inputs
+
+## Input
+
+
+```js
+{
+ type:'input',
+ // etc
+}
+```
+
+### `editable`
+- type: `boolean`
+- default: `true`
+- usage: set to `false` to make the input non-editable
+
+### `horizontal`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to display the input horizontally
+
+### `align`
+- type: `string`
+- default: `''`
+- usage: set to `left` or `right` to change text alignment (otherwise `center`)
+
+### `unit`
+- type: `string`
+- default: `empty`
+- usage: `unit` will be appended to the displayed widget's value (it doesn't affect osc messages)
+
+
+## Keys
+
+
+```js
+{
+ type:'keys',
+ // etc
+}
+```
+
+### `binding`
+- type: `string|array`
+- default: `''`
+- usage: [keyboardjs](https://github.com/RobertWHurst/KeyboardJS) key combo string or array of strings.
+
+### `keydown`
+- type: `string`
+- default: `''`
+- usage: this property is evaluated each time the key combo is pressed. [Formulas](../extras/advanced-property-syntax/#formulas) are given extras variables in this context:
+ - `key`: pressed key name (usefull for handling multiple keys with a single `keys` widget)
+ - `ctrl`: control key state
+ - `alt`: alt key state
+ - `shift`: shift key state
+ - `super`: command/windows key state
+
+### `keyup`
+- type: `string`
+- default: `''`
+- usage: same as `keydown`, but evaluated when releasing the key combo.
+
+### `repeat`
+- type: `boolean`
+- default: `true`
+- usage: set to `false` to prevent `keydown` repeats when holding the key combo pressed.
+
+
+## Script
+
+
+```js
+{
+ type:'script',
+ // etc
+}
+```
+
+### `condition`
+- type: `string`
+- default: `''`
+- usage: when the widget receives a value, if this property return a falsy value, the `script` property won't be evaluated. If it's non-falsy, it will be evaluated normally. [Formulas](../extras/advanced-property-syntax/#formulas) are given 1 extra variable in this context:
+ - `value`: the value received by the widget
+
+### `script`
+- type: `string`
+- default: `''`
+- usage: this property is evaluated each time the widget receives a value if `condition` is non-falsy. [Formulas](../extras/advanced-property-syntax/#formulas) are given extras variables in this context:
+ - `value`: the value received by the widget
+ - `send`: `function` for sending osc messages
+ - `set`: `function` for setting a widget's value
+
+#### `send(target, address, arg1, arg2, ...)`
+- `target` (`string` or `array` or `false`): one or several osc targets. Default targets (`--send` and the script's `target` property) are ignored unless `target` is `false`
+- `address` (`string`): a valid osc address
+- `arg`: one or several osc arguments to be sent. The script's `preArgs` property is ignored
+
+
+#### `set(id, value)`
+- `id` (`string`): a widget's id
+- `value`: the widget's new value
+
+
+## Gyroscope
+
+
+```js
+{
+ type:'gyroscope',
+ // etc
+}
+```
+
+The gyroscope's value is an object containing multiple values, which can be used by other widgets via the [property maths syntax](../extras/advanced-property-syntax.md) :
+
+```
+// value.do.alpha ( deviceorientation event alpha value )
+// value.do.beta ( deviceorientation event beta value )
+// value.do.gamma ( deviceorientation event gamma value )
+// value.do.absolute ( deviceorientation event absolute value )
+
+// value.dm.x ( devicemotion event acceleration x value )
+// value.dm.y ( devicemotion event acceleration y value )
+// value.dm.z ( devicemotion event acceleration z value )
+
+// value.dm.gx ( devicemotion event accelerationIncludingGravity x value )
+// value.dm.gy ( devicemotion event accelerationIncludingGravity y value )
+// value.dm.gz ( devicemotion event accelerationIncludingGravity z value )
+
+// value.dm.alpha ( devicemotion event rotationRate alpha value )
+// value.dm.beta ( devicemotion event rotationRate beta value )
+// value.dm.gamma ( devicemotion event rotationRate gamma value )
+
+```
+
+
+### `frequency`
+- type: `number`
+- default: `30`
+- usage: update frequency in Hz (value updates per seconds)
+
+### `normalize`
+- type: `boolean`
+- default: `true`
+- usage: normalize gravity related values
+
+### `compass`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to return the orientation values with respect to the actual north direction of the world instead of the head direction of the device
+
+### `screenAdjusted`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to return screen adjusted values
diff --git a/resources/docs/widgets/maths.md b/resources/docs/widgets/maths.md
new file mode 100644
index 00000000..60efc629
--- /dev/null
+++ b/resources/docs/widgets/maths.md
@@ -0,0 +1,44 @@
+# Maths
+
+Maths do the maths !
+
+## Formula
+
+!!! warning "Deprecated"
+ Since `v0.24.0`, any widget property can be defined using math expressions. Formula widget is deprecated and will be removed in a future release.
+
+Formula evaluates mathematical expressions over other widgets' values each one of these widgets changes.
+
+```js
+{
+ type:'formula',
+ // etc
+}
+```
+
+
+### `formula`
+- type: `string`
+- default: `''`
+- usage: a [mathjs](http://mathjs.org/docs/expressions/syntax.html) expression in which
+ - `${id}` will be replaced the `id`'s value
+ - example: `${fader_1} * 2 + ${fader_2}`
+- **important note**: contrary to what is stated in *mathjs*' documentation, **matrix indexes are zero-based** here
+
+### `condition`
+- type: `string`
+- default: `''`
+- usage:
+ - a [mathjs](http://mathjs.org/docs/expressions/syntax.html) comparison expression that bypasses widget's osc sending when returning`false`
+ - example: `${fader_1} > 0.5`
+
+### `unit`
+- type: `string`
+- default: `empty`
+- usage: `unit` will be appended to the displayed widget's value (it doesn't affect osc messages)
+
+### `split`
+- type: `object`
+- default: `[]`
+- usage: specify a different `address` for each item of the widget's value : `['/a', '/b']`
+- note: only use this is the formula return an `array`
diff --git a/resources/docs/widgets/matrices.md b/resources/docs/widgets/matrices.md
new file mode 100644
index 00000000..b1913a1a
--- /dev/null
+++ b/resources/docs/widgets/matrices.md
@@ -0,0 +1,236 @@
+# Matrices
+
+Matrices are special containers that only contain one type of widget. All contained widgets will be traversed by single dragging gestures.
+
+!!! note ""
+ When using the [property inheritance syntax](../extras/advanced-property-syntax) to retreive a matrix' value, the returned value is an array containing all it's children's values.
+
+## Matrix
+
+Creates grid of widgets of a given type
+
+```js
+{
+ type:'matrix',
+ // etc
+}
+```
+
+### `widgetType`
+- type: `string`
+- default: `toggle`
+- usage: set the type of the widgets in the matrix
+
+
+### `matrix`
+- type: `array`
+- default: `[2,2]`
+- usage: defines the number of columns and and rows in the matrix
+
+### `start`
+- type: `integer`
+- default: `0`
+- usage: first widget's index
+
+### `traversing`
+- type: `boolean`
+- default: `true`
+- usage: set to false to disable traversing gestures
+
+### `props`
+- type: `object`
+- default: `{}`
+- usage: define a set of property to override the widgets' defaults. [Formulas](../extras/advanced-property-syntax/#formulas) in this field are resolved with an extra variable `$` representing each widget's index
+
+
+
+
+## Multifader
+
+Multifader creates a row of vertical faders that respond to the same gestures.
+
+```js
+{
+ type:'multifader',
+ // etc
+}
+```
+
+### `strips`
+- type: `integer`
+- default: `2`
+- usage: number of faders in the row, each fader will inherit its parent's properties and the following ones (where `i` is the fader's index in the row)
+ - `id`: same as the widget's with `/i` appended to it
+ - `label`: `i`
+ - `address`: see `split`
+
+### `start`
+- type: `integer`
+- default: `0`
+- usage: first faders's index
+
+### `traversing`
+- type: `boolean`
+- default: `true`
+- usage: set to false to disable traversing gestures
+
+### `borders`
+- type: `boolean`
+- default: `true`
+- usage: set to false to disable widgets borders
+
+
+### `split`
+- type: `boolean|string`
+- default: `false`
+- usage:
+ - `true`: the widget's index will be appended to the matrice's osc `address`
+ - `false`: it will be prepended to the widget's `preArgs`
+ - `string`: will be used to define the widgets' addresses, replacing dollar signs (`$`) with their respective index (to insert the actual dollar sign, it must be escaped with a backslash (`\$`)).
+
+### `options`
+- see fader's [`options`](sliders/#fader)
+
+
+
+
+
+## Multitoggle
+```js
+{
+ type:'multitoggle',
+ // etc
+}
+```
+
+### `matrix`
+- type: `array`
+- default: `[2,2]`
+- usage: defines the number of columns and and rows. Each cell will contain a toggle button that will inherit its parent's properties and the following ones (where `i` is the fader's index in the row)
+ - `id`: same as the widget's with `/i` appended to it
+ - `label`: `i`
+ - `address`: see `split`
+
+### `start`
+- type: `integer`
+- default: `0`
+- usage: first toggle's index
+
+### `spacing`
+- type: `integer`
+- default: `0`
+- usage: adds space between widgets
+
+### `traversing`
+- type: `boolean`
+- default: `true`
+- usage: set to false to disable traversing gestures
+
+### `split`
+- type: `boolean|string`
+- default: `false`
+- usage:
+ - `true`: the widget's index will be appended to the matrice's osc `address`
+ - `false`: it will be prepended to the widget's `preArgs`
+ - `string`: will be used to define the widgets' addresses, replacing dollar signs (`$`) with their respective index (to insert the actual dollar sign, it must be escaped with a backslash (`\$`)).
+
+
+### `options`
+- see toggle's [`options`](buttons/#toggle)
+
+
+
+## Multipush
+```js
+{
+ type:'multipush',
+ // etc
+}
+```
+
+### `matrix`
+- type: `array`
+- default: `[2,2]`
+- usage: defines the number of columns and and rows. Each cell will contain a push button that will inherit its parent's properties and the following ones (where `i` is the fader's index in the row)
+ - `id`: same as the widget's with `/i` appended to it
+ - `label`: `i`
+ - `address`: see `split`
+
+### `start`
+- type: `integer`
+- default: `0`
+- usage: first push's index
+
+### `spacing`
+- type: `integer`
+- default: `0`
+- usage: adds space between widgets
+
+### `traversing`
+- type: `boolean`
+- default: `true`
+- usage: set to false to disable traversing gestures
+
+### `split`
+- type: `boolean|string`
+- default: `false`
+- usage:
+ - `true`: the widget's index will be appended to the matrice's osc `address`
+ - `false`: it will be prepended to the widget's `preArgs`
+ - `string`: will be used to define the widgets' addresses, replacing dollar signs (`$`) with their respective index (to insert the actual dollar sign, it must be escaped with a backslash (`\$`)).
+
+### `options`
+- see push's [`options`](buttons/#push)
+
+
+
+## Keyboard
+
+This one works pretty much like the multipush, excepts it looks like a piano keyboard.
+
+```js
+{
+ type:'keyboard',
+ // etc
+}
+```
+
+### `keys`
+- type: `integer`
+- default: `24`
+- usage: defines the number keys
+
+### `start`
+- type: `integer`
+- default: `60`
+- usage: MIDI note number to start with (default is C4)
+
+!!! note ""
+ Standard keyboards settings are:
+ 25 keys - start 48
+ 49 keys - start 36
+ 61 keys - start 36
+ 88 keys - start 21
+
+
+### `traversing`
+- type: `boolean`
+- default: `true`
+- usage: set to false to disable traversing gestures
+
+### `split`
+- type: `boolean|string`
+- default: `false`
+- usage:
+ - `true`: the widget's index will be appended to the matrice's osc `address`
+ - `false`: it will be prepended to the widget's `preArgs`
+ - `string`: will be used to define the widgets' addresses, replacing dollar signs (`$`) with their respective index (to insert the actual dollar sign, it must be escaped with a backslash (`\$`)).
+
+### `options`
+- see push's [`options`](buttons/#push)
+
+### `css`
+```css
+--color-white:color; /* white keys color */
+--color-black:color; /* black keys color */
+```
diff --git a/resources/docs/widgets/pads.md b/resources/docs/widgets/pads.md
new file mode 100644
index 00000000..67c81b57
--- /dev/null
+++ b/resources/docs/widgets/pads.md
@@ -0,0 +1,163 @@
+# Pads
+
+Pads are multidimensional widgets that output multiple values.
+
+
+
+## XY
+
+```js
+{
+ type:'xy',
+ // etc
+}
+```
+
+### `input`
+- type: `boolean`
+- default: `true`
+- usage: set to `false` to hide the built-in input
+
+### `rangeX`
+- type: `object`
+- default:
+ `{"min":0,"max":1}`
+- usage: defines the `min` and `max` values for the `x` axis. Same as fader's [`range`](sliders/#fader)
+
+### `rangeY`
+- type: `object`
+- default:
+ `{"min":0,"max":1}`
+- usage: defines the `min` and `max` values for the `y` axis. Same as fader's [`range`](sliders/#fader)
+
+
+### `logScaleX`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to use logarithmic scale for the `x` axis (log10)
+
+### `logScaleY`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to use logarithmic scale for the `y` axis (log10)
+
+### `snap`
+- type: `boolean`
+- default: `false`
+- usage: by default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position.
+
+### `spring`
+- type: `boolean`
+- default: `false`
+- usage: when set to `true`, the widget will go back to its `default` value when released.
+
+### `doubleTap`
+- type: `boolean|string`
+- default: `false`
+- usage: set to `true` to make the fader reset to its `default` value when receiving a double tap. `doubleTap` can also be an osc address, which case the widget will just send an osc message (`/ `),
+
+
+### `split`
+- type: `boolean|object`
+- default: `false`
+- usage:
+ - set to `true` to send separate osc messages for `x` and `y` axis. The `address` will be the same as the widget's with `/x` or `/y` appended to it
+ - can be set as an object to specify a different `address` : `['/osc_address_x', '/osc_address_y']`
+- note: the widget will only respond to its original osc address, not to the splitted version
+
+
+
+## MultiXy
+
+```js
+{
+ type:'multixy',
+ // etc
+}
+```
+
+### `points`
+- type: `integer|array`
+- default: `2`
+- usage: defines the number of points on the pad. Can be an `array` of `strings` that will be used as labels for the points (ex: `['A', 'B']`)
+
+### `pointSize`
+- type: `integer`
+- default: `15`
+- usage: defines the points's size
+
+### `rangeX`
+- type: `object`
+- default:
+ `{"min":0,"max":1}`
+- usage: defines the `min` and `max` values for the `x` axis. Same as fader's [`range`](sliders/#fader)
+
+### `rangeY`
+- type: `object`
+- default:
+ `{"min":0,"max":1}`
+- usage: defines the `min` and `max` values for the `y` axis. Same as fader's [`range`](sliders/#fader)
+
+
+### `logScaleX`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to use logarithmic scale for the `x` axis (log10)
+
+### `logScaleY`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to use logarithmic scale for the `y` axis (log10)
+
+### `split`
+- type: `boolean|object`
+- default: `false`
+- usage:
+ - set to `true` to send separate osc messages for each point's `x` and `y` axis. The `address` will be the same as the widget's with `/N/x` or `/N/y` appended to it, where `N` is the point's id (or the point's label if `points` is an `array`).
+ - can be set as an object to specify a different `address` : `['/0/x', '/0/y', '/1/x', '/2/y']`
+- note: the widget will only respond to its original osc address, not to the splitted version
+
+### `snap`
+- type: `boolean`
+- default: `false`
+- usage: by default, the points are dragged from their initial position; if set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates (one per touch).
+
+
+
+## RGB
+
+RGB is a variant of XY, it outputs rgb values between 0 and 255.
+
+
+```js
+{
+ type:'rgb',
+ // etc
+}
+```
+
+### `input`
+- type: `boolean`
+- default: `true`
+- usage: set to `false` to hide the built-in input
+
+### `precision`
+- default:`0`
+
+### `snap`
+- type: `boolean`
+- default: `false`
+- usage: by default, dragging the widget will modify it's value starting from its last value. Setting this to true will make it snap directly to the mouse/touch position.
+
+### `range`
+- type: `object`
+- default: `{"min":0,"max":255}`
+- usage: `range` defines the widget's output scale.
+
+### `split`
+- type: `boolean|object`
+- default: `false`
+- usage:
+ - set to `true` to send separate osc messages for `r` and `g` & `b`. The `address` will be the same as the widget's with `/r`, `/g` or `/b` appended to it
+ - can be set as an object to specify a different `address` : `['/r', '/b', '/b']`
+- note: the widget will only respond to its original osc address, not to the splitted version
diff --git a/resources/docs/widgets/plots.md b/resources/docs/widgets/plots.md
new file mode 100644
index 00000000..22895405
--- /dev/null
+++ b/resources/docs/widgets/plots.md
@@ -0,0 +1,330 @@
+# Plots
+
+Plots are tools that display other widgets' state or incomming osc messages. They are not sensitive to mouse and touch interactions.
+
+## Led
+```js
+{
+ type:'led',
+ // etc
+}
+```
+
+### `range`
+- type: `object`
+- default: `{"min":0,"max":1}`
+- usage: defines the `min` and `max` value the led's intensity will be mapped to
+
+### `logScale`
+- type: `boolean`
+- default: `false`
+- usage: set to true to use logarithmic scaling
+
+## RgbLed
+
+```js
+{
+ type:'rgbled',
+ // etc
+}
+```
+
+This one is like the `led` except it takes either three arguments (red, green and blue values between 0 and 255) with an optionnal forth argument (alpha, between 0 and 1), or one argument (a valid css color name).
+
+## Plot
+
+The plot receives an array of coordinates and draws them on a chart. Coordinates can be :
+- `y` values evenly spaced on the `x` axis
+- `[x, y]` coordinates arrays
+
+!!! info
+ Coordinates also can be sent as a stringified array (`[]`). A stringified object can also be sent to change specific points' coordinates (e.g. `{0:1, 4:0}` will change the 1st and 5th points' coordinates) .
+
+```js
+{
+ type:'plot',
+ // etc
+}
+```
+
+### `value`
+- type: `array|string`
+- default: `['']`
+- usage:
+ - as an `array`: where items can be
+ - `number`
+ - `string` (widget's `id`)
+ - `[x, y]`: array of `number` or `string`
+
+### `range`
+- type: `object`
+- default:
+ `{
+ x:{"min":0,"max":1},
+ y:{"min":0,"max":1}
+ }`
+- usage: defines the `min` and `max` values for the `x` and `y` axis
+
+### `bars`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to use draw bars instead (disables `logScaleX` and forces `x-axis` even spacing)
+
+### `logScaleX`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to use logarithmic scale for the `x` axis (log10)
+
+### `logScaleY`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to use logarithmic scale for the `y` axis (log10)
+
+### `smooth`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to make the line smooth. Float values are also acceptable (works fine between 0 and 0.5)
+
+### `origin`
+- type: `number`
+- default: `auto`
+- usage: defines the y-axis origin. Set to `false` to disable it.
+
+## Eq
+
+The Eq receives an array of filter objects and draws their frequency response between 20Hz and 22050Hz.
+
+```js
+{
+ type:'eq',
+ // etc
+}
+```
+
+### `value`
+- type: `array`
+- default: `[]`
+- usage:
+ - each item must be an object of the form below
+ - all filters parameters can be filled with widget ids, whose value will be used
+
+```
+{
+ type:[string], // "highpass", "highshelf", "lowpass", "lowshelf", "peak", "notch"
+ freq:[number], //
+ q:[number], //
+ gain:[number], //
+ on:[bool] // 1 or true = active, 0 or false = bypassed
+}
+```
+
+### `resolution`
+- type: `number`
+- default: `128`
+- usage: defines the number of points used to compute the frequency response
+
+### `rangeY`
+- type: `object`
+- default:
+ `{"min":-20,"max":20}`
+- usage: defines the `min` and `max` values for the `y` axis (dB level)
+
+### `logScaleX`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to use logarithmic scale for the `x` axis (log10)
+
+### `smooth`
+- type: `boolean`
+- default: `false`
+- usage: set to true to make the line smooth. Float values are also acceptable (works fine between 0 and 0.5)
+
+### `origin`
+- type: `number`
+- default: `auto`
+- usage: defines the y-axis origin. Set to `false` to disable it.
+
+## Visualizer
+
+The visualizer displays the evolution in time of a received value (through osc) *or* another widget's value.
+
+```js
+{
+ type:'visualizer',
+ // etc
+}
+```
+
+### `duration`
+- type: `number`
+- default: `1`
+- usage: window size in seconds
+
+### `range`
+- type: `object`
+- default: `{"min":0,"max":1}`
+- usage: defines the `min` and `max` values for the `y` axis
+
+### `logScale`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` use logarithmic scaling (log10)
+
+### `smooth`
+- type: `boolean`
+- default: `false`
+- usage: set to true to make the line smooth. Float values are also acceptable (works fine between 0 and 0.5)
+
+### `origin`
+- type: `number`
+- default: `auto`
+- usage: defines the y-axis origin. Set to `false` to disable it.
+
+## Text
+
+Text displays incoming values (via osc) as text. Sending a message with no argument to the widget will reset it to its default text.
+
+```js
+{
+ type:'text',
+ // etc
+}
+```
+
+### `vertical`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` display vertically
+
+### `wrap`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to wrap long lines automatically. This will not break overflowing words by default, word-breaking can be enabled by adding `word-break: break-all;` to the `css` property.
+
+### `align`
+- type: `string`
+- default: `''`
+- usage: set to `left` or `right` to change text alignment (otherwise `center`)
+
+## Meter
+
+Meter displays incoming numerical values (via osc) as a gauge level
+
+```js
+{
+ type:'meter',
+ // etc
+}
+```
+
+
+### `horizontal`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to display the meter horizontally
+
+### `range`
+- see fader's [`range`](sliders/#fader)
+
+### `logScale`
+- see fader's [`logScale`](sliders/#fader)
+
+### `gradient`
+- type: `array`
+- default: `[]`
+- usage: when set, the meter's gauge will be filled with a linear color gradient : each item must be a color string. Example: `["blue", "red"]`
+
+### `css`
+```css
+--color-gauge:color;
+--color-knob:color; /* transparent by default */
+--color-pips:color;
+--gauge-opacity:number;
+```
+
+## Image
+
+Image displays an image from a file path/url or from a base64 encoded image string. Sending an empty message resets the widget to its initial `value`.
+
+```js
+{
+ type:'image',
+ // etc
+}
+```
+
+### `size`
+- type: `string`
+- default: `cover`
+- usage: css [background-size](https://www.w3schools.com/CSSref/css3_pr_background-size.asp)
+
+
+### `position`
+- type: `string`
+- default: `cover`
+- usage: css [background-position](https://www.w3schools.com/CSSref/pr_background-position.asp)
+
+
+### `repeat`
+- type: `string`
+- default: `no-repeat`
+- usage: css [background-repeat](https://www.w3schools.com/CSSref/pr_background-repeat.asp)
+
+
+### `border`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to disable the image's borders and background-color.
+
+### `cache`
+- type: `boolean`
+- default: `true`
+- usage: set to `false` to disable image caching (forces file reload when updating or editing the widget). When `true`, sending `'reload'` to the widget reloads its image without changing its value.
+
+### `value`
+- type: `string`
+- default: `''`
+- usage : initial image
+ - file url or absolute path
+ - [base64 encoded image](https://duckduckgo.com/?q=base64+encode+image&ia=web) : `data:image/...`
+
+
+## Svg
+
+```js
+{
+ type:'svg',
+ // etc
+}
+```
+
+### `svg`
+- type: `string`
+- default: `''`
+- usage : svg xml definition
+ - will be wrapped in a `` element
+ - `` commands support a special percent notation (`%x` and `%y`)
+
+
+!!! tip ""
+ An exemple session called `svg.json` is shipped with the app.
+
+
+## Frame
+
+Frame loads and diplays an external web page, using its own value as URL. Only local URLs are allowed (starting with `http://127.0.0.1/`, `http://10.x.x.x/`, `http://192.168.x.x/`, etc).
+
+```js
+{
+ type:'frame',
+ // etc
+}
+```
+
+### `border`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to disable the frame's borders and background-color.
+
+!!! note ""
+ If `label` is set to `false`, all pointer-events will be disabled on the frame as long as the editor is enabled to ensure it can be selected.
diff --git a/resources/docs/widgets/sliders.md b/resources/docs/widgets/sliders.md
new file mode 100644
index 00000000..6644139a
--- /dev/null
+++ b/resources/docs/widgets/sliders.md
@@ -0,0 +1,272 @@
+# Sliders
+
+Sliders are unidimensional widgets that output one value at a time.
+
+
+
+## Fader
+```js
+{
+ type:'fader',
+ // etc
+}
+```
+
+### `horizontal`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to display the fader horizontally
+
+### `alignRight`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to invert the pip's and fader's position
+
+### `pips`
+- type: `boolean`
+- default: `true`
+- usage: set to `false` to hide the scale
+
+### `input`
+- type: `boolean`
+- default: `true`
+- usage: set to `false` to hide the built-in input
+
+### `compact`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to display a compact alternative for the widget. Disables default mouse/touch focusing on the value display.
+
+### `dashed`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to display a dashed gauge
+
+### `range`
+- type: `object`
+- default: `{"min":0,"max":1}`
+- usage: `range` defines the breakpoints of the fader's scale
+ - keys can be percentages and/or `min` / `max`
+ - values can be `number` or `object` if a custom label is needed
+- example:
+```js
+range: {
+ "min":0,
+ "50%":1,
+ "max": {"inf":10} // "inf" will be used as a custom label on the scale
+}
+```
+
+### `origin`
+- type: `number`
+- default: `auto`
+- usage: `origin` defines the starting point's value of the fader's gauge
+
+### `logScale`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` use logarithmic scaling between breakpoints (log10)
+
+
+### `unit`
+- type: `string`
+- default: `empty`
+- usage: `unit` will be appended to the displayed widget's value (it doesn't affect osc messages)
+
+
+### `snap`
+- type: `boolean`
+- default: `false`
+- usage: by default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position.
+
+### `spring`
+- type: `boolean`
+- default: `false`
+- usage: when set to `true`, the widget will go back to its `default` value when released.
+
+
+### `doubleTap`
+- type: `boolean|string`
+- default: `false`
+- usage: set to `true` to make the fader reset to its `default` value when receiving a double tap. `doubleTap` can also be an osc address, which case the widget will just send an osc message (`/ `),
+
+### `meter`
+- type: `boolean`
+- default: `false`
+- usage: set to true to display a vu-meter next in the fader
+ - the meter's `id` will be the same as the widget's with `/meter` appended to it
+ - the meter's `address `will be the same as the widget's with `/meter` appended to it
+
+### `meterAddress`
+- type: `boolean`
+- default: `empty`
+- usage: overrides the `meter`'s osc address
+
+### `css`
+```css
+--color-gauge:color;
+--color-knob:color;
+--color-pips:color;
+--gauge-opacity:number; /* compact mode only */
+```
+
+
+
+## Knob
+
+```js
+{
+ type:'knob',
+ // etc
+}
+```
+
+
+### `pips`
+- type: `boolean`
+- default: `true`
+- usage: set to `false` to hide the scale
+
+### `input`
+- type: `boolean`
+- default: `true`
+- usage: set to `false` to hide the built-in input
+
+### `angle`
+- type: `number`
+- default: `270`
+- usage: `angle` defines the angle's width of the knob, in degrees
+
+### `range`
+- type: `object`
+- default: `{"min":0,"max":1}`
+- usage: `range` defines the breakpoints of the fader's scale
+ - keys can be percentages and/or `min` / `max`
+ - values can be `number` or `object` if a custom label is needed
+- example:
+```js
+range: {
+ "min":0,
+ "50%":1,
+ "max": {"inf":10} // "inf" will be used as a custom label on the scale
+}
+```
+
+### `origin`
+- type: `number`
+- default: `auto`
+- usage: `origin` defines the starting point's value of the knob's gauge
+
+### `logScale`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` use logarithmic scaling between breakpoints
+
+
+### `unit`
+- type: `string`
+- default: `empty`
+- usage: `unit` will be appended to the displayed widget's value (it doesn't affect osc messages)
+
+
+### `snap`
+- type: `boolean`
+- default: `false`
+- usage: by default, dragging the widget *vertically* will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position.
+
+### `spring`
+- type: `boolean`
+- default: `false`
+- usage: when set to `true`, the widget will go back to its `default` value when released.
+
+### `doubleTap`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to make the knob reset to its `default` value when receiving a double tap
+
+### `css`
+```
+--color-gauge:color;
+--color-knob:color;
+--color-pips:color;
+```
+
+## Encoder
+
+An endless knob that only responds to rotative gestures.
+
+```js
+{
+ type:'encoder',
+ // etc
+}
+```
+
+### `ticks`
+- type: `number`
+- default: `360`
+- usage: defines the granularity / verbosity of the encoder (number of step for a 360° arc)
+
+### `back`
+- type: `string|number|object`
+- default: `-1`
+- usage: defines which value is sent when rotating the encoder anticlockwise
+ - can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs))
+
+### `forth`
+- type: `string|number|object`
+- default: `1`
+- usage: defines which value is sent when rotating the encoder clockwise
+ - can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs))
+
+### `release`
+- type: `string|number|object`
+- default: `empty`
+- usage: defines which value is sent when releasing the encoder
+ - set to `null` to send send no argument in the osc message
+ - can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs))
+
+
+### `snap`
+- type: `boolean`
+- default: `false`
+- usage: by default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position.
+
+### `doubleTap`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to make the encoder reset to its initial value when receiving a double tap
+
+### `css`
+```
+--color-knob:color;
+```
+
+
+## Range
+
+A range is a fader with two handles. To move the range (both handles at once), hold the `shift` key or use two fingers.
+
+```js
+{
+ type:'range',
+ // etc
+}
+```
+
+### `split`
+- type: `boolean|object`
+- default: `false`
+- usage:
+ - set to `true` to send separate osc messages for `low` and `high` handles. The `address` will be the same as the widget's with `/low` or `/high` appended to it
+ - can be set as an object to specify a different `address` : `['/osc_address_low', '/osc_address_high']`
+- note: the widget will only respond to its original osc address, not to the splitted version
+
+
+### `css`
+```css
+--color-gauge:color;
+--color-knob:color;
+--color-pips:color;
+--gauge-opacity:number; /* compact mode only */
+```
diff --git a/resources/docs/widgets/switchers.md b/resources/docs/widgets/switchers.md
new file mode 100644
index 00000000..4beda5f9
--- /dev/null
+++ b/resources/docs/widgets/switchers.md
@@ -0,0 +1,38 @@
+# Switchers
+
+Switcher can store and recall the state of other widgets.
+
+
+
+## Switcher
+
+The switcher looks like the [`switch`](buttons/#switch). Each of its possible values represent a bank that stores the values from the widgets listed in its `linkedWidgets` attribute.
+
+
+```js
+{
+ type:'switcher',
+ // etc
+}
+```
+
+### `linkedWidgets`
+- type: `array|string`
+- default:
+ `empty`
+- usage:
+ - as a `string`: a widget's `id` whose state changes will be stored
+ - as an `array`: a list of widget `id` `strings`
+
+
+### `values`
+- type: `array|object`
+- default: `["A", "B"]`
+- usage:
+ - `array` of possible values to switch between : `[1,2,3]`
+ - `object` of `"label":value` pairs
+
+
+## Crossfader
+
+The crossfader is a 2-states-only switcher that comes with a slider allowing to fade from one state to the other by interpolating the values.
diff --git a/resources/docs/widgets/widgets.md b/resources/docs/widgets/widgets.md
new file mode 100644
index 00000000..7c73b49b
--- /dev/null
+++ b/resources/docs/widgets/widgets.md
@@ -0,0 +1,146 @@
+# Widgets properties
+
+All widgets share a set of generic properties described below.
+
+## Basics
+
+### `type`
+- type: `string`
+- default: `fader`
+
+### `id`
+- type: `string`
+- default: generated unique 'widget_n'
+- usage: widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages.
+
+### `linkId`
+- type: `string|array`
+- default: `empty`
+- usage:
+ - widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages.
+ - when prefixed with `>>`, the linkId will make the widget act as a master (sending but not receiving)
+ - when prefixed with `<<`, the linkId will make the widget act as a slave (receiving but not sending)
+
+## Style
+
+### `label`
+- type: `string|false`
+- default: `auto`, which displays `id`
+- usage:
+ - set to `false` to hide completely
+ - insert icons from [FontAwesome](https://fontawesome.com/icons?d=gallery&s=solid&m=free) using the prefix `^` followed by the icon's name : `made with ^heart`, etc
+
+### `top` / `left`
+- type: `number|percentage`
+- default: `auto`
+- usage:
+ - when both `top` and `left` are set to `auto`, the widget is positioned according to the normal flow of the page (from left to right, by order of creation).
+ - otherwise, the widget will be absolutely positioned
+
+
+### `width` / `height`
+- type: `number|percentage`
+- default: `auto`
+
+### `color`
+- type: `string`
+- default: `auto`, inherited accent color
+- usage: any valid `css` color code is valid, this will change the default accent color for the widget and all its children
+
+
+### `css`
+- type: `string`
+- default: *empty*
+- usage: applies CSS rules to widget. See [css tips](../extras/css-tips.md).
+
+## Value
+
+### `default`
+- type: `*`
+- default: `empty`
+- usage: if set, the widget will be initialized with this `value` when the session is loaded. Some widgets use this property under specific conditions (see fader's `doubleTap` for example).
+
+
+### `value`
+- type: `*`
+- default: `empty`
+- usage: set `value` to define a widget's value depending on other widget's values / properties using [property inheritance and property maths](../extras/advanced-property-syntax.md). When updated by an osc-sending event (e.g. dragging a slider), the widget will send its own osc message as well.
+
+!!! note ""
+ `default` and `value` must match the widget's value type (ie a `number` for sliders, an `array` for pads, etc) and restrictions (equal to `on` or `off` for a push/toggle button)
+
+
+## OSC
+
+### `precision`
+- type: `integer|string`
+- default: `2`
+- usage: the `precision` property defines the number of decimals to display and to send.
+ - set to `0` to send `integers` only.
+ - a specific data type can be specified by appending a valid osc type tag to the precision value, for example : `3d` will make the widget send double precision numbers rounded to three decimals
+
+### `target`
+- type: `array|string`
+- default: `[]`
+- usage:
+ - this defines the targets of the widget's osc messages
+ - each element of the `array` must be a string formatted as follows : `"ip:port"`
+ - multiple targets can be specified : `["ip1:port1","ip2:port2"]`
+ - a single target can be set : `ip:port`
+ - if [`midi`](../extras/midi.md) is enabled, targets can be `"midi:device_name"`
+ - special item `"self"` can be used to refer to the emitting client directly
+ - if no target is set (empty array `[]`), messages can still be sent if the server has defaults targets (`-s / --send`)
+ - to disable the default global osc targets (set via the app's `--send` option), set one of the array's item as `null` (unquoted).
+
+### `address`
+- type: `string`
+- default: `/widgets_id`
+- usage: this is the `address` of the osc messages sent by the widget, it must start with a `/`
+
+### `touchAddress`
+- type: `string`
+- default: `empty`
+- usage: sliders and pads can send special osc messages to inform weither they are currently touched or not. The osc message will be of the following form :
+```
+ /touch/address [preArgs] 0/1
+```
+
+### `preArgs`
+- type: `array|*`
+- default: `[]`
+- usage:
+ - each element of the `array` defines a constant value that will be prepended to the osc message
+ - values can be defined as objects if the osc data type needs to be specified (ie different from the default implied by the `precision` option)
+ - a single non-array value can be set
+- example:
+```js
+preArgs: [
+ "1", // this will always be sent as a string
+ 0.5, // this will be sent as an integer if precision equals 0
+ 1, // this will be sent as float if precision is different from 0
+ {
+ type:"f",
+ value:0.5
+ },
+ {
+ type:"i",
+ value:1
+ },
+ {
+ type:"T",
+ value:true
+ },
+ {
+ type:"F",
+ value:false
+ }
+]
+```
+
+### `bypass`
+- type: `boolean`
+- default: `false`
+- usage: set to `true` to prevent the widget from sending any osc message
+
+!!! note ""
+ Changing OSC properties dynamically using advanced property syntax is likely to break synchronisation between multiple clients.
diff --git a/resources/fonts/Roboto-Bold.woff2 b/resources/fonts/Roboto-Bold.woff2
deleted file mode 100644
index 76817cc7..00000000
Binary files a/resources/fonts/Roboto-Bold.woff2 and /dev/null differ
diff --git a/resources/fonts/Roboto-Light.woff2 b/resources/fonts/Roboto-Light.woff2
deleted file mode 100644
index ddbf4a92..00000000
Binary files a/resources/fonts/Roboto-Light.woff2 and /dev/null differ
diff --git a/resources/fonts/Roboto-Medium.woff2 b/resources/fonts/Roboto-Medium.woff2
deleted file mode 100644
index 6a88805f..00000000
Binary files a/resources/fonts/Roboto-Medium.woff2 and /dev/null differ
diff --git a/resources/fonts/Roboto-Regular.woff2 b/resources/fonts/Roboto-Regular.woff2
deleted file mode 100644
index 9a0064ec..00000000
Binary files a/resources/fonts/Roboto-Regular.woff2 and /dev/null differ
diff --git a/resources/fonts/fa-solid-900.woff2 b/resources/fonts/fa-solid-900.woff2
deleted file mode 100644
index c7bd59c2..00000000
Binary files a/resources/fonts/fa-solid-900.woff2 and /dev/null differ
diff --git a/resources/fonts/fa-solid.css b/resources/fonts/fa-solid.css
deleted file mode 100644
index ff9ec65e..00000000
--- a/resources/fonts/fa-solid.css
+++ /dev/null
@@ -1,20 +0,0 @@
-/*!
- * Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
- * Copyright 2022 Fonticons, Inc.
- */
-:root, :host {
- --fa-font-solid: normal 900 1em/1 "FontAwesome"; }
-
-@font-face {
- font-family: 'FontAwesome';
- font-style: normal;
- font-weight: 900;
- font-display: block;
- src: url("./fa-solid-900.woff2") format("woff2"); }
-
-.fa,
-.fas,
-.fa-solid {
- font-family: 'FontAwesome';
- font-weight: 900; }
diff --git a/resources/fonts/fontawesome.min.css b/resources/fonts/fontawesome.min.css
deleted file mode 100644
index 8b21c3d2..00000000
--- a/resources/fonts/fontawesome.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
- * Copyright 2022 Fonticons, Inc.
- */
-.fa{font-family:var(--fa-style-family,"Font Awesome 6 Free");font-weight:var(--fa-style,900)}.fa,.fa-brands,.fa-duotone,.fa-light,.fa-regular,.fa-solid,.fa-thin,.fab,.fad,.fal,.far,.fas,.fat{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:var(--fa-display,inline-block);font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.08333em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.07143em;vertical-align:.05357em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.04167em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin,2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(var(--fa-li-width, 2em)*-1);position:absolute;text-align:center;width:var(--fa-li-width,2em);line-height:inherit}.fa-border{border-radius:var(--fa-border-radius,.1em);border:var(--fa-border-width,.08em) var(--fa-border-style,solid) var(--fa-border-color,#eee);padding:var(--fa-border-padding,.2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin,.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin,.3em)}.fa-beat{-webkit-animation-name:fa-beat;animation-name:fa-beat;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,ease-in-out);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-bounce{-webkit-animation-name:fa-bounce;animation-name:fa-bounce;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1))}.fa-fade{-webkit-animation-name:fa-fade;animation-name:fa-fade;-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-beat-fade,.fa-fade{-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s)}.fa-beat-fade{-webkit-animation-name:fa-beat-fade;animation-name:fa-beat-fade;-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{-webkit-animation-name:fa-flip;animation-name:fa-flip;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,ease-in-out);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-shake{-webkit-animation-name:fa-shake;animation-name:fa-shake;-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,linear);animation-timing-function:var(--fa-animation-timing,linear)}.fa-shake,.fa-spin{-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal)}.fa-spin{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-duration:var(--fa-animation-duration,2s);animation-duration:var(--fa-animation-duration,2s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,linear);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,steps(8));animation-timing-function:var(--fa-animation-timing,steps(8))}@media (prefers-reduced-motion:reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;transition-delay:0s;transition-duration:0s}}@-webkit-keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale,1.25));transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale,1.25));transform:scale(var(--fa-beat-scale,1.25))}}@-webkit-keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em));transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound,-.125em));transform:scale(1) translateY(var(--fa-bounce-rebound,-.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em));transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound,-.125em));transform:scale(1) translateY(var(--fa-bounce-rebound,-.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@-webkit-keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@-webkit-keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity,.4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale,1.125));transform:scale(var(--fa-beat-fade-scale,1.125))}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity,.4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale,1.125));transform:scale(var(--fa-beat-fade-scale,1.125))}}@-webkit-keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg));transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg));transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@-webkit-keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}@keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}.fa-rotate-by{-webkit-transform:rotate(var(--fa-rotate-angle,none));transform:rotate(var(--fa-rotate-angle,none))}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%;z-index:var(--fa-stack-z-index,auto)}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:var(--fa-inverse,#fff)}.fa-0:before{content:"\30"}.fa-1:before{content:"\31"}.fa-2:before{content:"\32"}.fa-3:before{content:"\33"}.fa-4:before{content:"\34"}.fa-5:before{content:"\35"}.fa-6:before{content:"\36"}.fa-7:before{content:"\37"}.fa-8:before{content:"\38"}.fa-9:before{content:"\39"}.fa-a:before{content:"\41"}.fa-address-book:before,.fa-contact-book:before{content:"\f2b9"}.fa-address-card:before,.fa-contact-card:before,.fa-vcard:before{content:"\f2bb"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-anchor:before{content:"\f13d"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-double-down:before,.fa-angles-down:before{content:"\f103"}.fa-angle-double-left:before,.fa-angles-left:before{content:"\f100"}.fa-angle-double-right:before,.fa-angles-right:before{content:"\f101"}.fa-angle-double-up:before,.fa-angles-up:before{content:"\f102"}.fa-ankh:before{content:"\f644"}.fa-apple-alt:before,.fa-apple-whole:before{content:"\f5d1"}.fa-archway:before{content:"\f557"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-down-1-9:before,.fa-sort-numeric-asc:before,.fa-sort-numeric-down:before{content:"\f162"}.fa-arrow-down-9-1:before,.fa-sort-numeric-desc:before,.fa-sort-numeric-down-alt:before{content:"\f886"}.fa-arrow-down-a-z:before,.fa-sort-alpha-asc:before,.fa-sort-alpha-down:before{content:"\f15d"}.fa-arrow-down-long:before,.fa-long-arrow-down:before{content:"\f175"}.fa-arrow-down-short-wide:before,.fa-sort-amount-desc:before,.fa-sort-amount-down-alt:before{content:"\f884"}.fa-arrow-down-wide-short:before,.fa-sort-amount-asc:before,.fa-sort-amount-down:before{content:"\f160"}.fa-arrow-down-z-a:before,.fa-sort-alpha-desc:before,.fa-sort-alpha-down-alt:before{content:"\f881"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-left-long:before,.fa-long-arrow-left:before{content:"\f177"}.fa-arrow-pointer:before,.fa-mouse-pointer:before{content:"\f245"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-right-arrow-left:before,.fa-exchange:before{content:"\f0ec"}.fa-arrow-right-from-bracket:before,.fa-sign-out:before{content:"\f08b"}.fa-arrow-right-long:before,.fa-long-arrow-right:before{content:"\f178"}.fa-arrow-right-to-bracket:before,.fa-sign-in:before{content:"\f090"}.fa-arrow-left-rotate:before,.fa-arrow-rotate-back:before,.fa-arrow-rotate-backward:before,.fa-arrow-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-arrow-right-rotate:before,.fa-arrow-rotate-forward:before,.fa-arrow-rotate-right:before,.fa-redo:before{content:"\f01e"}.fa-arrow-trend-down:before{content:"\e097"}.fa-arrow-trend-up:before{content:"\e098"}.fa-arrow-turn-down:before,.fa-level-down:before{content:"\f149"}.fa-arrow-turn-up:before,.fa-level-up:before{content:"\f148"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-up-1-9:before,.fa-sort-numeric-up:before{content:"\f163"}.fa-arrow-up-9-1:before,.fa-sort-numeric-up-alt:before{content:"\f887"}.fa-arrow-up-a-z:before,.fa-sort-alpha-up:before{content:"\f15e"}.fa-arrow-up-from-bracket:before{content:"\e09a"}.fa-arrow-up-long:before,.fa-long-arrow-up:before{content:"\f176"}.fa-arrow-up-right-from-square:before,.fa-external-link:before{content:"\f08e"}.fa-arrow-up-short-wide:before,.fa-sort-amount-up-alt:before{content:"\f885"}.fa-arrow-up-wide-short:before,.fa-sort-amount-up:before{content:"\f161"}.fa-arrow-up-z-a:before,.fa-sort-alpha-up-alt:before{content:"\f882"}.fa-arrows-h:before,.fa-arrows-left-right:before{content:"\f07e"}.fa-arrows-rotate:before,.fa-refresh:before,.fa-sync:before{content:"\f021"}.fa-arrows-up-down:before,.fa-arrows-v:before{content:"\f07d"}.fa-arrows-up-down-left-right:before,.fa-arrows:before{content:"\f047"}.fa-asterisk:before{content:"\2a"}.fa-at:before{content:"\40"}.fa-atom:before{content:"\f5d2"}.fa-audio-description:before{content:"\f29e"}.fa-austral-sign:before{content:"\e0a9"}.fa-award:before{content:"\f559"}.fa-b:before{content:"\42"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before,.fa-carriage-baby:before{content:"\f77d"}.fa-backward:before{content:"\f04a"}.fa-backward-fast:before,.fa-fast-backward:before{content:"\f049"}.fa-backward-step:before,.fa-step-backward:before{content:"\f048"}.fa-bacon:before{content:"\f7e5"}.fa-bacteria:before{content:"\e059"}.fa-bacterium:before{content:"\e05a"}.fa-bag-shopping:before,.fa-shopping-bag:before{content:"\f290"}.fa-bahai:before{content:"\f666"}.fa-baht-sign:before{content:"\e0ac"}.fa-ban:before,.fa-cancel:before{content:"\f05e"}.fa-ban-smoking:before,.fa-smoking-ban:before{content:"\f54d"}.fa-band-aid:before,.fa-bandage:before{content:"\f462"}.fa-barcode:before{content:"\f02a"}.fa-bars:before,.fa-navicon:before{content:"\f0c9"}.fa-bars-progress:before,.fa-tasks-alt:before{content:"\f828"}.fa-bars-staggered:before,.fa-reorder:before,.fa-stream:before{content:"\f550"}.fa-baseball-ball:before,.fa-baseball:before{content:"\f433"}.fa-baseball-bat-ball:before{content:"\f432"}.fa-basket-shopping:before,.fa-shopping-basket:before{content:"\f291"}.fa-basketball-ball:before,.fa-basketball:before{content:"\f434"}.fa-bath:before,.fa-bathtub:before{content:"\f2cd"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-battery-5:before,.fa-battery-full:before,.fa-battery:before{content:"\f240"}.fa-battery-3:before,.fa-battery-half:before{content:"\f242"}.fa-battery-2:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-4:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-bed:before{content:"\f236"}.fa-bed-pulse:before,.fa-procedures:before{content:"\f487"}.fa-beer-mug-empty:before,.fa-beer:before{content:"\f0fc"}.fa-bell:before{content:"\f0f3"}.fa-bell-concierge:before,.fa-concierge-bell:before{content:"\f562"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bicycle:before{content:"\f206"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-bitcoin-sign:before{content:"\e0b4"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blog:before{content:"\f781"}.fa-bold:before{content:"\f032"}.fa-bolt:before,.fa-zap:before{content:"\f0e7"}.fa-bolt-lightning:before{content:"\e0b7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-atlas:before,.fa-book-atlas:before{content:"\f558"}.fa-bible:before,.fa-book-bible:before{content:"\f647"}.fa-book-journal-whills:before,.fa-journal-whills:before{content:"\f66a"}.fa-book-medical:before{content:"\f7e6"}.fa-book-open:before{content:"\f518"}.fa-book-open-reader:before,.fa-book-reader:before{content:"\f5da"}.fa-book-quran:before,.fa-quran:before{content:"\f687"}.fa-book-dead:before,.fa-book-skull:before{content:"\f6b7"}.fa-bookmark:before{content:"\f02e"}.fa-border-all:before{content:"\f84c"}.fa-border-none:before{content:"\f850"}.fa-border-style:before,.fa-border-top-left:before{content:"\f853"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-archive:before,.fa-box-archive:before{content:"\f187"}.fa-box-open:before{content:"\f49e"}.fa-box-tissue:before{content:"\e05b"}.fa-boxes-alt:before,.fa-boxes-stacked:before,.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-brazilian-real-sign:before{content:"\e46c"}.fa-bread-slice:before{content:"\f7ec"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broom:before{content:"\f51a"}.fa-broom-ball:before,.fa-quidditch-broom-ball:before,.fa-quidditch:before{content:"\f458"}.fa-brush:before{content:"\f55d"}.fa-bug:before{content:"\f188"}.fa-bug-slash:before{content:"\e490"}.fa-building:before{content:"\f1ad"}.fa-bank:before,.fa-building-columns:before,.fa-institution:before,.fa-museum:before,.fa-university:before{content:"\f19c"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burger:before,.fa-hamburger:before{content:"\f805"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before,.fa-bus-simple:before{content:"\f55e"}.fa-briefcase-clock:before,.fa-business-time:before{content:"\f64a"}.fa-c:before{content:"\43"}.fa-birthday-cake:before,.fa-cake-candles:before,.fa-cake:before{content:"\f1fd"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-alt:before,.fa-calendar-days:before{content:"\f073"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-week:before{content:"\f784"}.fa-calendar-times:before,.fa-calendar-xmark:before{content:"\f273"}.fa-camera-alt:before,.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-camera-rotate:before{content:"\e0d8"}.fa-campground:before{content:"\f6bb"}.fa-candy-cane:before{content:"\f786"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-battery-car:before,.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-alt:before,.fa-car-rear:before{content:"\f5de"}.fa-car-side:before{content:"\f5e4"}.fa-caravan:before{content:"\f8ff"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-flatbed:before,.fa-dolly-flatbed:before{content:"\f474"}.fa-cart-flatbed-suitcase:before,.fa-luggage-cart:before{content:"\f59d"}.fa-cart-plus:before{content:"\f217"}.fa-cart-shopping:before,.fa-shopping-cart:before{content:"\f07a"}.fa-cash-register:before{content:"\f788"}.fa-cat:before{content:"\f6be"}.fa-cedi-sign:before{content:"\e0df"}.fa-cent-sign:before{content:"\e3f5"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-blackboard:before,.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before,.fa-chalkboard-user:before{content:"\f51c"}.fa-champagne-glasses:before,.fa-glass-cheers:before{content:"\f79f"}.fa-charging-station:before{content:"\f5e7"}.fa-area-chart:before,.fa-chart-area:before{content:"\f1fe"}.fa-bar-chart:before,.fa-chart-bar:before{content:"\f080"}.fa-chart-column:before{content:"\e0e3"}.fa-chart-gantt:before{content:"\e0e4"}.fa-chart-line:before,.fa-line-chart:before{content:"\f201"}.fa-chart-pie:before,.fa-pie-chart:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-double:before{content:"\f560"}.fa-check-to-slot:before,.fa-vote-yea:before{content:"\f772"}.fa-cheese:before{content:"\f7ef"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-arrow-circle-down:before,.fa-circle-arrow-down:before{content:"\f0ab"}.fa-arrow-circle-left:before,.fa-circle-arrow-left:before{content:"\f0a8"}.fa-arrow-circle-right:before,.fa-circle-arrow-right:before{content:"\f0a9"}.fa-arrow-circle-up:before,.fa-circle-arrow-up:before{content:"\f0aa"}.fa-check-circle:before,.fa-circle-check:before{content:"\f058"}.fa-chevron-circle-down:before,.fa-circle-chevron-down:before{content:"\f13a"}.fa-chevron-circle-left:before,.fa-circle-chevron-left:before{content:"\f137"}.fa-chevron-circle-right:before,.fa-circle-chevron-right:before{content:"\f138"}.fa-chevron-circle-up:before,.fa-circle-chevron-up:before{content:"\f139"}.fa-circle-dollar-to-slot:before,.fa-donate:before{content:"\f4b9"}.fa-circle-dot:before,.fa-dot-circle:before{content:"\f192"}.fa-arrow-alt-circle-down:before,.fa-circle-down:before{content:"\f358"}.fa-circle-exclamation:before,.fa-exclamation-circle:before{content:"\f06a"}.fa-circle-h:before,.fa-hospital-symbol:before{content:"\f47e"}.fa-adjust:before,.fa-circle-half-stroke:before{content:"\f042"}.fa-circle-info:before,.fa-info-circle:before{content:"\f05a"}.fa-arrow-alt-circle-left:before,.fa-circle-left:before{content:"\f359"}.fa-circle-minus:before,.fa-minus-circle:before{content:"\f056"}.fa-circle-notch:before{content:"\f1ce"}.fa-circle-pause:before,.fa-pause-circle:before{content:"\f28b"}.fa-circle-play:before,.fa-play-circle:before{content:"\f144"}.fa-circle-plus:before,.fa-plus-circle:before{content:"\f055"}.fa-circle-question:before,.fa-question-circle:before{content:"\f059"}.fa-circle-radiation:before,.fa-radiation-alt:before{content:"\f7ba"}.fa-arrow-alt-circle-right:before,.fa-circle-right:before{content:"\f35a"}.fa-circle-stop:before,.fa-stop-circle:before{content:"\f28d"}.fa-arrow-alt-circle-up:before,.fa-circle-up:before{content:"\f35b"}.fa-circle-user:before,.fa-user-circle:before{content:"\f2bd"}.fa-circle-xmark:before,.fa-times-circle:before,.fa-xmark-circle:before{content:"\f057"}.fa-city:before{content:"\f64f"}.fa-clapperboard:before{content:"\e131"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock-four:before,.fa-clock:before{content:"\f017"}.fa-clock-rotate-left:before,.fa-history:before{content:"\f1da"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-arrow-down:before,.fa-cloud-download-alt:before,.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-arrow-up:before,.fa-cloud-upload-alt:before,.fa-cloud-upload:before{content:"\f0ee"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-clover:before{content:"\e139"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-code-commit:before{content:"\f386"}.fa-code-compare:before{content:"\e13a"}.fa-code-fork:before{content:"\e13b"}.fa-code-merge:before{content:"\f387"}.fa-code-pull-request:before{content:"\e13c"}.fa-coins:before{content:"\f51e"}.fa-colon-sign:before{content:"\e140"}.fa-comment:before{content:"\f075"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before,.fa-commenting:before{content:"\f4ad"}.fa-comment-medical:before{content:"\f7f5"}.fa-comment-slash:before{content:"\f4b3"}.fa-comment-sms:before,.fa-sms:before{content:"\f7cd"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compass-drafting:before,.fa-drafting-compass:before{content:"\f568"}.fa-compress:before{content:"\f066"}.fa-computer-mouse:before,.fa-mouse:before{content:"\f8cc"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-couch:before{content:"\f4b8"}.fa-credit-card-alt:before,.fa-credit-card:before{content:"\f09d"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before,.fa-crop-simple:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-crutch:before{content:"\f7f7"}.fa-cruzeiro-sign:before{content:"\e152"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-d:before{content:"\44"}.fa-database:before{content:"\f1c0"}.fa-backspace:before,.fa-delete-left:before{content:"\f55a"}.fa-democrat:before{content:"\f747"}.fa-desktop-alt:before,.fa-desktop:before{content:"\f390"}.fa-dharmachakra:before{content:"\f655"}.fa-diagram-next:before{content:"\e476"}.fa-diagram-predecessor:before{content:"\e477"}.fa-diagram-project:before,.fa-project-diagram:before{content:"\f542"}.fa-diagram-successor:before{content:"\e47a"}.fa-diamond:before{content:"\f219"}.fa-diamond-turn-right:before,.fa-directions:before{content:"\f5eb"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-disease:before{content:"\f7fa"}.fa-divide:before{content:"\f529"}.fa-dna:before{content:"\f471"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before,.fa-dollar:before,.fa-usd:before{content:"\24"}.fa-dolly-box:before,.fa-dolly:before{content:"\f472"}.fa-dong-sign:before{content:"\e169"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dove:before{content:"\f4ba"}.fa-compress-alt:before,.fa-down-left-and-up-right-to-center:before{content:"\f422"}.fa-down-long:before,.fa-long-arrow-alt-down:before{content:"\f309"}.fa-download:before{content:"\f019"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-droplet:before,.fa-tint:before{content:"\f043"}.fa-droplet-slash:before,.fa-tint-slash:before{content:"\f5c7"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-e:before{content:"\45"}.fa-deaf:before,.fa-deafness:before,.fa-ear-deaf:before,.fa-hard-of-hearing:before{content:"\f2a4"}.fa-assistive-listening-systems:before,.fa-ear-listen:before{content:"\f2a2"}.fa-earth-africa:before,.fa-globe-africa:before{content:"\f57c"}.fa-earth-america:before,.fa-earth-americas:before,.fa-earth:before,.fa-globe-americas:before{content:"\f57d"}.fa-earth-asia:before,.fa-globe-asia:before{content:"\f57e"}.fa-earth-europe:before,.fa-globe-europe:before{content:"\f7a2"}.fa-earth-oceania:before,.fa-globe-oceania:before{content:"\e47b"}.fa-egg:before{content:"\f7fb"}.fa-eject:before{content:"\f052"}.fa-elevator:before{content:"\e16d"}.fa-ellipsis-h:before,.fa-ellipsis:before{content:"\f141"}.fa-ellipsis-v:before,.fa-ellipsis-vertical:before{content:"\f142"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelopes-bulk:before,.fa-mail-bulk:before{content:"\f674"}.fa-equals:before{content:"\3d"}.fa-eraser:before{content:"\f12d"}.fa-ethernet:before{content:"\f796"}.fa-eur:before,.fa-euro-sign:before,.fa-euro:before{content:"\f153"}.fa-exclamation:before{content:"\21"}.fa-expand:before{content:"\f065"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper-empty:before,.fa-eye-dropper:before,.fa-eyedropper:before{content:"\f1fb"}.fa-eye-low-vision:before,.fa-low-vision:before{content:"\f2a8"}.fa-eye-slash:before{content:"\f070"}.fa-f:before{content:"\46"}.fa-angry:before,.fa-face-angry:before{content:"\f556"}.fa-dizzy:before,.fa-face-dizzy:before{content:"\f567"}.fa-face-flushed:before,.fa-flushed:before{content:"\f579"}.fa-face-frown:before,.fa-frown:before{content:"\f119"}.fa-face-frown-open:before,.fa-frown-open:before{content:"\f57a"}.fa-face-grimace:before,.fa-grimace:before{content:"\f57f"}.fa-face-grin:before,.fa-grin:before{content:"\f580"}.fa-face-grin-beam:before,.fa-grin-beam:before{content:"\f582"}.fa-face-grin-beam-sweat:before,.fa-grin-beam-sweat:before{content:"\f583"}.fa-face-grin-hearts:before,.fa-grin-hearts:before{content:"\f584"}.fa-face-grin-squint:before,.fa-grin-squint:before{content:"\f585"}.fa-face-grin-squint-tears:before,.fa-grin-squint-tears:before{content:"\f586"}.fa-face-grin-stars:before,.fa-grin-stars:before{content:"\f587"}.fa-face-grin-tears:before,.fa-grin-tears:before{content:"\f588"}.fa-face-grin-tongue:before,.fa-grin-tongue:before{content:"\f589"}.fa-face-grin-tongue-squint:before,.fa-grin-tongue-squint:before{content:"\f58a"}.fa-face-grin-tongue-wink:before,.fa-grin-tongue-wink:before{content:"\f58b"}.fa-face-grin-wide:before,.fa-grin-alt:before{content:"\f581"}.fa-face-grin-wink:before,.fa-grin-wink:before{content:"\f58c"}.fa-face-kiss:before,.fa-kiss:before{content:"\f596"}.fa-face-kiss-beam:before,.fa-kiss-beam:before{content:"\f597"}.fa-face-kiss-wink-heart:before,.fa-kiss-wink-heart:before{content:"\f598"}.fa-face-laugh:before,.fa-laugh:before{content:"\f599"}.fa-face-laugh-beam:before,.fa-laugh-beam:before{content:"\f59a"}.fa-face-laugh-squint:before,.fa-laugh-squint:before{content:"\f59b"}.fa-face-laugh-wink:before,.fa-laugh-wink:before{content:"\f59c"}.fa-face-meh:before,.fa-meh:before{content:"\f11a"}.fa-face-meh-blank:before,.fa-meh-blank:before{content:"\f5a4"}.fa-face-rolling-eyes:before,.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-face-sad-cry:before,.fa-sad-cry:before{content:"\f5b3"}.fa-face-sad-tear:before,.fa-sad-tear:before{content:"\f5b4"}.fa-face-smile:before,.fa-smile:before{content:"\f118"}.fa-face-smile-beam:before,.fa-smile-beam:before{content:"\f5b8"}.fa-face-smile-wink:before,.fa-smile-wink:before{content:"\f4da"}.fa-face-surprise:before,.fa-surprise:before{content:"\f5c2"}.fa-face-tired:before,.fa-tired:before{content:"\f5c8"}.fa-fan:before{content:"\f863"}.fa-faucet:before{content:"\e005"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before,.fa-feather-pointed:before{content:"\f56b"}.fa-file:before{content:"\f15b"}.fa-file-arrow-down:before,.fa-file-download:before{content:"\f56d"}.fa-file-arrow-up:before,.fa-file-upload:before{content:"\f574"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-excel:before{content:"\f1c3"}.fa-arrow-right-from-file:before,.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-arrow-right-to-file:before,.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-alt:before,.fa-file-lines:before,.fa-file-text:before{content:"\f15c"}.fa-file-medical:before{content:"\f477"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-video:before{content:"\f1c8"}.fa-file-medical-alt:before,.fa-file-waveform:before{content:"\f478"}.fa-file-word:before{content:"\f1c2"}.fa-file-archive:before,.fa-file-zipper:before{content:"\f1c6"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-filter-circle-dollar:before,.fa-funnel-dollar:before{content:"\f662"}.fa-filter-circle-xmark:before{content:"\e17b"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-extinguisher:before{content:"\f134"}.fa-fire-alt:before,.fa-fire-flame-curved:before{content:"\f7e4"}.fa-burn:before,.fa-fire-flame-simple:before{content:"\f46a"}.fa-fish:before{content:"\f578"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-floppy-disk:before,.fa-save:before{content:"\f0c7"}.fa-florin-sign:before{content:"\e184"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-folder-tree:before{content:"\f802"}.fa-font:before{content:"\f031"}.fa-football-ball:before,.fa-football:before{content:"\f44e"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before,.fa-forward-fast:before{content:"\f050"}.fa-forward-step:before,.fa-step-forward:before{content:"\f051"}.fa-franc-sign:before{content:"\e18f"}.fa-frog:before{content:"\f52e"}.fa-futbol-ball:before,.fa-futbol:before,.fa-soccer-ball:before{content:"\f1e3"}.fa-g:before{content:"\47"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-dashboard:before,.fa-gauge-med:before,.fa-gauge:before,.fa-tachometer-alt-average:before{content:"\f624"}.fa-gauge-high:before,.fa-tachometer-alt-fast:before,.fa-tachometer-alt:before{content:"\f625"}.fa-gauge-simple-med:before,.fa-gauge-simple:before,.fa-tachometer-average:before{content:"\f629"}.fa-gauge-simple-high:before,.fa-tachometer-fast:before,.fa-tachometer:before{content:"\f62a"}.fa-gavel:before,.fa-legal:before{content:"\f0e3"}.fa-cog:before,.fa-gear:before{content:"\f013"}.fa-cogs:before,.fa-gears:before{content:"\f085"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gifts:before{content:"\f79c"}.fa-glasses:before{content:"\f530"}.fa-globe:before{content:"\f0ac"}.fa-golf-ball-tee:before,.fa-golf-ball:before{content:"\f450"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\f19d"}.fa-greater-than:before{content:"\3e"}.fa-greater-than-equal:before{content:"\f532"}.fa-grip-horizontal:before,.fa-grip:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-guarani-sign:before{content:"\e19a"}.fa-guitar:before{content:"\f7a6"}.fa-gun:before{content:"\e19b"}.fa-h:before{content:"\48"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-paper:before,.fa-hand:before{content:"\f256"}.fa-hand-back-fist:before,.fa-hand-rock:before{content:"\f255"}.fa-allergies:before,.fa-hand-dots:before{content:"\f461"}.fa-fist-raised:before,.fa-hand-fist:before{content:"\f6de"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-dollar:before,.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-holding-droplet:before,.fa-hand-holding-water:before{content:"\f4c1"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-medical:before{content:"\e05c"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-middle-finger:before{content:"\f806"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-sparkles:before{content:"\e05d"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before,.fa-sign-language:before,.fa-signing:before{content:"\f2a7"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before,.fa-hands-american-sign-language-interpreting:before,.fa-hands-asl-interpreting:before{content:"\f2a3"}.fa-hands-bubbles:before,.fa-hands-wash:before{content:"\e05e"}.fa-hands-clapping:before{content:"\e1a8"}.fa-hands-holding:before{content:"\f4c2"}.fa-hands-praying:before,.fa-praying-hands:before{content:"\f684"}.fa-handshake:before{content:"\f2b5"}.fa-hands-helping:before,.fa-handshake-angle:before{content:"\f4c4"}.fa-handshake-alt-slash:before,.fa-handshake-simple-slash:before{content:"\e05f"}.fa-handshake-slash:before{content:"\e060"}.fa-hanukiah:before{content:"\f6e6"}.fa-hard-drive:before,.fa-hdd:before{content:"\f0a0"}.fa-hashtag:before{content:"\23"}.fa-hat-cowboy:before{content:"\f8c0"}.fa-hat-cowboy-side:before{content:"\f8c1"}.fa-hat-wizard:before{content:"\f6e8"}.fa-head-side-cough:before{content:"\e061"}.fa-head-side-cough-slash:before{content:"\e062"}.fa-head-side-mask:before{content:"\e063"}.fa-head-side-virus:before{content:"\e064"}.fa-header:before,.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before,.fa-headphones-simple:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before,.fa-heart-crack:before{content:"\f7a9"}.fa-heart-pulse:before,.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-hard-hat:before,.fa-hat-hard:before,.fa-helmet-safety:before{content:"\f807"}.fa-highlighter:before{content:"\f591"}.fa-hippo:before{content:"\f6ed"}.fa-hockey-puck:before{content:"\f453"}.fa-holly-berry:before{content:"\f7aa"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-hospital-alt:before,.fa-hospital-wide:before,.fa-hospital:before{content:"\f0f8"}.fa-hospital-user:before{content:"\f80d"}.fa-hot-tub-person:before,.fa-hot-tub:before{content:"\f593"}.fa-hotdog:before{content:"\f80f"}.fa-hotel:before{content:"\f594"}.fa-hourglass-2:before,.fa-hourglass-half:before,.fa-hourglass:before{content:"\f254"}.fa-hourglass-empty:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-home-alt:before,.fa-home-lg-alt:before,.fa-home:before,.fa-house:before{content:"\f015"}.fa-home-lg:before,.fa-house-chimney:before{content:"\e3af"}.fa-house-chimney-crack:before,.fa-house-damage:before{content:"\f6f1"}.fa-clinic-medical:before,.fa-house-chimney-medical:before{content:"\f7f2"}.fa-house-chimney-user:before{content:"\e065"}.fa-house-chimney-window:before{content:"\e00d"}.fa-house-crack:before{content:"\e3b1"}.fa-house-laptop:before,.fa-laptop-house:before{content:"\e066"}.fa-house-medical:before{content:"\e3b2"}.fa-home-user:before,.fa-house-user:before{content:"\e1b0"}.fa-hryvnia-sign:before,.fa-hryvnia:before{content:"\f6f2"}.fa-i:before{content:"\49"}.fa-i-cursor:before{content:"\f246"}.fa-ice-cream:before{content:"\f810"}.fa-icicles:before{content:"\f7ad"}.fa-heart-music-camera-bolt:before,.fa-icons:before{content:"\f86d"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before,.fa-id-card-clip:before{content:"\f47f"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-image-portrait:before,.fa-portrait:before{content:"\f3e0"}.fa-images:before{content:"\f302"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-indian-rupee-sign:before,.fa-indian-rupee:before,.fa-inr:before{content:"\e1bc"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-italic:before{content:"\f033"}.fa-j:before{content:"\4a"}.fa-jedi:before{content:"\f669"}.fa-fighter-jet:before,.fa-jet-fighter:before{content:"\f0fb"}.fa-joint:before{content:"\f595"}.fa-k:before{content:"\4b"}.fa-kaaba:before{content:"\f66b"}.fa-key:before{content:"\f084"}.fa-keyboard:before{content:"\f11c"}.fa-khanda:before{content:"\f66d"}.fa-kip-sign:before{content:"\e1c4"}.fa-first-aid:before,.fa-kit-medical:before{content:"\f479"}.fa-kiwi-bird:before{content:"\f535"}.fa-l:before{content:"\4c"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laptop-medical:before{content:"\f812"}.fa-lari-sign:before{content:"\e1c8"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-left-long:before,.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-arrows-alt-h:before,.fa-left-right:before{content:"\f337"}.fa-lemon:before{content:"\f094"}.fa-less-than:before{content:"\3c"}.fa-less-than-equal:before{content:"\f537"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-chain-broken:before,.fa-chain-slash:before,.fa-link-slash:before,.fa-unlink:before{content:"\f127"}.fa-lira-sign:before{content:"\f195"}.fa-list-squares:before,.fa-list:before{content:"\f03a"}.fa-list-check:before,.fa-tasks:before{content:"\f0ae"}.fa-list-1-2:before,.fa-list-numeric:before,.fa-list-ol:before{content:"\f0cb"}.fa-list-dots:before,.fa-list-ul:before{content:"\f0ca"}.fa-litecoin-sign:before{content:"\e1d3"}.fa-location-arrow:before{content:"\f124"}.fa-location-crosshairs:before,.fa-location:before{content:"\f601"}.fa-location-dot:before,.fa-map-marker-alt:before{content:"\f3c5"}.fa-location-pin:before,.fa-map-marker:before{content:"\f041"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-lungs:before{content:"\f604"}.fa-lungs-virus:before{content:"\e067"}.fa-m:before{content:"\4d"}.fa-magnet:before{content:"\f076"}.fa-magnifying-glass:before,.fa-search:before{content:"\f002"}.fa-magnifying-glass-dollar:before,.fa-search-dollar:before{content:"\f688"}.fa-magnifying-glass-location:before,.fa-search-location:before{content:"\f689"}.fa-magnifying-glass-minus:before,.fa-search-minus:before{content:"\f010"}.fa-magnifying-glass-plus:before,.fa-search-plus:before{content:"\f00e"}.fa-manat-sign:before{content:"\e1d5"}.fa-map:before{content:"\f279"}.fa-map-location:before,.fa-map-marked:before{content:"\f59f"}.fa-map-location-dot:before,.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-pin:before{content:"\f276"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-and-venus:before{content:"\f224"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before,.fa-mars-stroke-right:before{content:"\f22b"}.fa-mars-stroke-up:before,.fa-mars-stroke-v:before{content:"\f22a"}.fa-glass-martini-alt:before,.fa-martini-glass:before{content:"\f57b"}.fa-cocktail:before,.fa-martini-glass-citrus:before{content:"\f561"}.fa-glass-martini:before,.fa-martini-glass-empty:before{content:"\f000"}.fa-mask:before{content:"\f6fa"}.fa-mask-face:before{content:"\e1d7"}.fa-masks-theater:before,.fa-theater-masks:before{content:"\f630"}.fa-expand-arrows-alt:before,.fa-maximize:before{content:"\f31e"}.fa-medal:before{content:"\f5a2"}.fa-memory:before{content:"\f538"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-comment-alt:before,.fa-message:before{content:"\f27a"}.fa-meteor:before{content:"\f753"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before,.fa-microphone-lines:before{content:"\f3c9"}.fa-microphone-alt-slash:before,.fa-microphone-lines-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-mill-sign:before{content:"\e1ed"}.fa-compress-arrows-alt:before,.fa-minimize:before{content:"\f78c"}.fa-minus:before,.fa-subtract:before{content:"\f068"}.fa-mitten:before{content:"\f7b5"}.fa-mobile-android:before,.fa-mobile-phone:before,.fa-mobile:before{content:"\f3ce"}.fa-mobile-button:before{content:"\f10b"}.fa-mobile-alt:before,.fa-mobile-screen-button:before{content:"\f3cd"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-1:before,.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-1-wave:before,.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before,.fa-money-check-dollar:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mug-hot:before{content:"\f7b6"}.fa-coffee:before,.fa-mug-saucer:before{content:"\f0f4"}.fa-music:before{content:"\f001"}.fa-n:before{content:"\4e"}.fa-naira-sign:before{content:"\e1f6"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-not-equal:before{content:"\f53e"}.fa-note-sticky:before,.fa-sticky-note:before{content:"\f249"}.fa-notes-medical:before{content:"\f481"}.fa-o:before{content:"\4f"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-oil-can:before{content:"\f613"}.fa-om:before{content:"\f679"}.fa-otter:before{content:"\f700"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-p:before{content:"\50"}.fa-pager:before{content:"\f815"}.fa-paint-roller:before{content:"\f5aa"}.fa-paint-brush:before,.fa-paintbrush:before{content:"\f1fc"}.fa-palette:before{content:"\f53f"}.fa-pallet:before{content:"\f482"}.fa-panorama:before{content:"\e209"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-passport:before{content:"\f5ab"}.fa-file-clipboard:before,.fa-paste:before{content:"\f0ea"}.fa-pause:before{content:"\f04c"}.fa-paw:before{content:"\f1b0"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before,.fa-pen-clip:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-ruler:before,.fa-pencil-ruler:before{content:"\f5ae"}.fa-edit:before,.fa-pen-to-square:before{content:"\f044"}.fa-pencil-alt:before,.fa-pencil:before{content:"\f303"}.fa-people-arrows-left-right:before,.fa-people-arrows:before{content:"\e068"}.fa-people-carry-box:before,.fa-people-carry:before{content:"\f4ce"}.fa-pepper-hot:before{content:"\f816"}.fa-percent:before,.fa-percentage:before{content:"\25"}.fa-male:before,.fa-person:before{content:"\f183"}.fa-biking:before,.fa-person-biking:before{content:"\f84a"}.fa-person-booth:before{content:"\f756"}.fa-diagnoses:before,.fa-person-dots-from-line:before{content:"\f470"}.fa-female:before,.fa-person-dress:before{content:"\f182"}.fa-hiking:before,.fa-person-hiking:before{content:"\f6ec"}.fa-person-praying:before,.fa-pray:before{content:"\f683"}.fa-person-running:before,.fa-running:before{content:"\f70c"}.fa-person-skating:before,.fa-skating:before{content:"\f7c5"}.fa-person-skiing:before,.fa-skiing:before{content:"\f7c9"}.fa-person-skiing-nordic:before,.fa-skiing-nordic:before{content:"\f7ca"}.fa-person-snowboarding:before,.fa-snowboarding:before{content:"\f7ce"}.fa-person-swimming:before,.fa-swimmer:before{content:"\f5c4"}.fa-person-walking:before,.fa-walking:before{content:"\f554"}.fa-blind:before,.fa-person-walking-with-cane:before{content:"\f29d"}.fa-peseta-sign:before{content:"\e221"}.fa-peso-sign:before{content:"\e222"}.fa-phone:before{content:"\f095"}.fa-phone-alt:before,.fa-phone-flip:before{content:"\f879"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-volume:before,.fa-volume-control-phone:before{content:"\f2a0"}.fa-photo-film:before,.fa-photo-video:before{content:"\f87c"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pizza-slice:before{content:"\f818"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-plane-slash:before{content:"\e069"}.fa-play:before{content:"\f04b"}.fa-plug:before{content:"\f1e6"}.fa-add:before,.fa-plus:before{content:"\2b"}.fa-plus-minus:before{content:"\e43c"}.fa-podcast:before{content:"\f2ce"}.fa-poo:before{content:"\f2fe"}.fa-poo-bolt:before,.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-power-off:before{content:"\f011"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before,.fa-prescription-bottle-medical:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-pump-medical:before{content:"\e06a"}.fa-pump-soap:before{content:"\e06b"}.fa-puzzle-piece:before{content:"\f12e"}.fa-q:before{content:"\51"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\3f"}.fa-quote-left-alt:before,.fa-quote-left:before{content:"\f10d"}.fa-quote-right-alt:before,.fa-quote-right:before{content:"\f10e"}.fa-r:before{content:"\52"}.fa-radiation:before{content:"\f7b9"}.fa-rainbow:before{content:"\f75b"}.fa-receipt:before{content:"\f543"}.fa-record-vinyl:before{content:"\f8d9"}.fa-ad:before,.fa-rectangle-ad:before{content:"\f641"}.fa-list-alt:before,.fa-rectangle-list:before{content:"\f022"}.fa-rectangle-times:before,.fa-rectangle-xmark:before,.fa-times-rectangle:before,.fa-window-close:before{content:"\f410"}.fa-recycle:before{content:"\f1b8"}.fa-registered:before{content:"\f25d"}.fa-repeat:before{content:"\f363"}.fa-mail-reply:before,.fa-reply:before{content:"\f3e5"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-republican:before{content:"\f75e"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-ribbon:before{content:"\f4d6"}.fa-right-from-bracket:before,.fa-sign-out-alt:before{content:"\f2f5"}.fa-exchange-alt:before,.fa-right-left:before{content:"\f362"}.fa-long-arrow-alt-right:before,.fa-right-long:before{content:"\f30b"}.fa-right-to-bracket:before,.fa-sign-in-alt:before{content:"\f2f6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rotate:before,.fa-sync-alt:before{content:"\f2f1"}.fa-rotate-back:before,.fa-rotate-backward:before,.fa-rotate-left:before,.fa-undo-alt:before{content:"\f2ea"}.fa-redo-alt:before,.fa-rotate-forward:before,.fa-rotate-right:before{content:"\f2f9"}.fa-route:before{content:"\f4d7"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-rouble:before,.fa-rub:before,.fa-ruble-sign:before,.fa-ruble:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-rupee-sign:before,.fa-rupee:before{content:"\f156"}.fa-rupiah-sign:before{content:"\e23d"}.fa-s:before{content:"\53"}.fa-sailboat:before{content:"\e445"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-balance-scale:before,.fa-scale-balanced:before{content:"\f24e"}.fa-balance-scale-left:before,.fa-scale-unbalanced:before{content:"\f515"}.fa-balance-scale-right:before,.fa-scale-unbalanced-flip:before{content:"\f516"}.fa-school:before{content:"\f549"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-screwdriver:before{content:"\f54a"}.fa-screwdriver-wrench:before,.fa-tools:before{content:"\f7d9"}.fa-scroll:before{content:"\f70e"}.fa-scroll-torah:before,.fa-torah:before{content:"\f6a0"}.fa-sd-card:before{content:"\f7c2"}.fa-section:before{content:"\e447"}.fa-seedling:before,.fa-sprout:before{content:"\f4d8"}.fa-server:before{content:"\f233"}.fa-shapes:before,.fa-triangle-circle-square:before{content:"\f61f"}.fa-arrow-turn-right:before,.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-share-from-square:before,.fa-share-square:before{content:"\f14d"}.fa-share-alt:before,.fa-share-nodes:before{content:"\f1e0"}.fa-ils:before,.fa-shekel-sign:before,.fa-shekel:before,.fa-sheqel-sign:before,.fa-sheqel:before{content:"\f20b"}.fa-shield:before{content:"\f132"}.fa-shield-alt:before,.fa-shield-blank:before{content:"\f3ed"}.fa-shield-virus:before{content:"\e06c"}.fa-ship:before{content:"\f21a"}.fa-shirt:before,.fa-t-shirt:before,.fa-tshirt:before{content:"\f553"}.fa-shoe-prints:before{content:"\f54b"}.fa-shop:before,.fa-store-alt:before{content:"\f54f"}.fa-shop-slash:before,.fa-store-alt-slash:before{content:"\e070"}.fa-shower:before{content:"\f2cc"}.fa-shrimp:before{content:"\e448"}.fa-random:before,.fa-shuffle:before{content:"\f074"}.fa-shuttle-space:before,.fa-space-shuttle:before{content:"\f197"}.fa-sign-hanging:before,.fa-sign:before{content:"\f4d9"}.fa-signal-5:before,.fa-signal-perfect:before,.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-map-signs:before,.fa-signs-post:before{content:"\f277"}.fa-sim-card:before{content:"\f7c4"}.fa-sink:before{content:"\e06d"}.fa-sitemap:before{content:"\f0e8"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-slash:before{content:"\f715"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before,.fa-sliders:before{content:"\f1de"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-snowflake:before{content:"\f2dc"}.fa-snowman:before{content:"\f7d0"}.fa-snowplow:before{content:"\f7d2"}.fa-soap:before{content:"\e06e"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before,.fa-unsorted:before{content:"\f0dc"}.fa-sort-desc:before,.fa-sort-down:before{content:"\f0dd"}.fa-sort-asc:before,.fa-sort-up:before{content:"\f0de"}.fa-spa:before{content:"\f5bb"}.fa-pastafarianism:before,.fa-spaghetti-monster-flying:before{content:"\f67b"}.fa-spell-check:before{content:"\f891"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spoon:before,.fa-utensil-spoon:before{content:"\f2e5"}.fa-spray-can:before{content:"\f5bd"}.fa-air-freshener:before,.fa-spray-can-sparkles:before{content:"\f5d0"}.fa-square:before{content:"\f0c8"}.fa-external-link-square:before,.fa-square-arrow-up-right:before{content:"\f14c"}.fa-caret-square-down:before,.fa-square-caret-down:before{content:"\f150"}.fa-caret-square-left:before,.fa-square-caret-left:before{content:"\f191"}.fa-caret-square-right:before,.fa-square-caret-right:before{content:"\f152"}.fa-caret-square-up:before,.fa-square-caret-up:before{content:"\f151"}.fa-check-square:before,.fa-square-check:before{content:"\f14a"}.fa-envelope-square:before,.fa-square-envelope:before{content:"\f199"}.fa-square-full:before{content:"\f45c"}.fa-h-square:before,.fa-square-h:before{content:"\f0fd"}.fa-minus-square:before,.fa-square-minus:before{content:"\f146"}.fa-parking:before,.fa-square-parking:before{content:"\f540"}.fa-pen-square:before,.fa-pencil-square:before,.fa-square-pen:before{content:"\f14b"}.fa-phone-square:before,.fa-square-phone:before{content:"\f098"}.fa-phone-square-alt:before,.fa-square-phone-flip:before{content:"\f87b"}.fa-plus-square:before,.fa-square-plus:before{content:"\f0fe"}.fa-poll-h:before,.fa-square-poll-horizontal:before{content:"\f682"}.fa-poll:before,.fa-square-poll-vertical:before{content:"\f681"}.fa-square-root-alt:before,.fa-square-root-variable:before{content:"\f698"}.fa-rss-square:before,.fa-square-rss:before{content:"\f143"}.fa-share-alt-square:before,.fa-square-share-nodes:before{content:"\f1e1"}.fa-external-link-square-alt:before,.fa-square-up-right:before{content:"\f360"}.fa-square-xmark:before,.fa-times-square:before,.fa-xmark-square:before{content:"\f2d3"}.fa-stairs:before{content:"\e289"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before,.fa-star-half-stroke:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-gbp:before,.fa-pound-sign:before,.fa-sterling-sign:before{content:"\f154"}.fa-stethoscope:before{content:"\f0f1"}.fa-stop:before{content:"\f04d"}.fa-stopwatch:before{content:"\f2f2"}.fa-stopwatch-20:before{content:"\e06f"}.fa-store:before{content:"\f54e"}.fa-store-slash:before{content:"\e071"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stroopwafel:before{content:"\f551"}.fa-subscript:before{content:"\f12c"}.fa-suitcase:before{content:"\f0f2"}.fa-medkit:before,.fa-suitcase-medical:before{content:"\f0fa"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superscript:before{content:"\f12b"}.fa-swatchbook:before{content:"\f5c3"}.fa-synagogue:before{content:"\f69b"}.fa-syringe:before{content:"\f48e"}.fa-t:before{content:"\54"}.fa-table:before{content:"\f0ce"}.fa-table-cells:before,.fa-th:before{content:"\f00a"}.fa-table-cells-large:before,.fa-th-large:before{content:"\f009"}.fa-columns:before,.fa-table-columns:before{content:"\f0db"}.fa-table-list:before,.fa-th-list:before{content:"\f00b"}.fa-ping-pong-paddle-ball:before,.fa-table-tennis-paddle-ball:before,.fa-table-tennis:before{content:"\f45d"}.fa-tablet-android:before,.fa-tablet:before{content:"\f3fb"}.fa-tablet-button:before{content:"\f10a"}.fa-tablet-alt:before,.fa-tablet-screen-button:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-digital-tachograph:before,.fa-tachograph-digital:before{content:"\f566"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-temperature-0:before,.fa-temperature-empty:before,.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-temperature-4:before,.fa-temperature-full:before,.fa-thermometer-4:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-temperature-2:before,.fa-temperature-half:before,.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-temperature-1:before,.fa-temperature-quarter:before,.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-temperature-3:before,.fa-temperature-three-quarters:before,.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-tenge-sign:before,.fa-tenge:before{content:"\f7d7"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-remove-format:before,.fa-text-slash:before{content:"\f87d"}.fa-text-width:before{content:"\f035"}.fa-thermometer:before{content:"\f491"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumb-tack:before,.fa-thumbtack:before{content:"\f08d"}.fa-ticket:before{content:"\f145"}.fa-ticket-alt:before,.fa-ticket-simple:before{content:"\f3ff"}.fa-timeline:before{content:"\e29c"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toilet-paper-slash:before{content:"\e072"}.fa-toolbox:before{content:"\f552"}.fa-tooth:before{content:"\f5c9"}.fa-torii-gate:before{content:"\f6a1"}.fa-broadcast-tower:before,.fa-tower-broadcast:before{content:"\f519"}.fa-tractor:before{content:"\f722"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-trailer:before{content:"\e041"}.fa-train:before{content:"\f238"}.fa-subway:before,.fa-train-subway:before{content:"\f239"}.fa-train-tram:before,.fa-tram:before{content:"\f7da"}.fa-transgender-alt:before,.fa-transgender:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-arrow-up:before,.fa-trash-restore:before{content:"\f829"}.fa-trash-alt:before,.fa-trash-can:before{content:"\f2ed"}.fa-trash-can-arrow-up:before,.fa-trash-restore-alt:before{content:"\f82a"}.fa-tree:before{content:"\f1bb"}.fa-exclamation-triangle:before,.fa-triangle-exclamation:before,.fa-warning:before{content:"\f071"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-shipping-fast:before,.fa-truck-fast:before{content:"\f48b"}.fa-ambulance:before,.fa-truck-medical:before{content:"\f0f9"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-truck-loading:before,.fa-truck-ramp-box:before{content:"\f4de"}.fa-teletype:before,.fa-tty:before{content:"\f1e4"}.fa-try:before,.fa-turkish-lira-sign:before,.fa-turkish-lira:before{content:"\e2bb"}.fa-level-down-alt:before,.fa-turn-down:before{content:"\f3be"}.fa-level-up-alt:before,.fa-turn-up:before{content:"\f3bf"}.fa-television:before,.fa-tv-alt:before,.fa-tv:before{content:"\f26c"}.fa-u:before{content:"\55"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-underline:before{content:"\f0cd"}.fa-universal-access:before{content:"\f29a"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before,.fa-unlock-keyhole:before{content:"\f13e"}.fa-arrows-alt-v:before,.fa-up-down:before{content:"\f338"}.fa-arrows-alt:before,.fa-up-down-left-right:before{content:"\f0b2"}.fa-long-arrow-alt-up:before,.fa-up-long:before{content:"\f30c"}.fa-expand-alt:before,.fa-up-right-and-down-left-from-center:before{content:"\f424"}.fa-external-link-alt:before,.fa-up-right-from-square:before{content:"\f35d"}.fa-upload:before{content:"\f093"}.fa-user:before{content:"\f007"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-clock:before{content:"\f4fd"}.fa-user-doctor:before,.fa-user-md:before{content:"\f0f0"}.fa-user-cog:before,.fa-user-gear:before{content:"\f4fe"}.fa-user-graduate:before{content:"\f501"}.fa-user-friends:before,.fa-user-group:before{content:"\f500"}.fa-user-injured:before{content:"\f728"}.fa-user-alt:before,.fa-user-large:before{content:"\f406"}.fa-user-alt-slash:before,.fa-user-large-slash:before{content:"\f4fa"}.fa-user-lock:before{content:"\f502"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-nurse:before{content:"\f82f"}.fa-user-edit:before,.fa-user-pen:before{content:"\f4ff"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before,.fa-user-xmark:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before,.fa-users-gear:before{content:"\f509"}.fa-users-slash:before{content:"\e073"}.fa-cutlery:before,.fa-utensils:before{content:"\f2e7"}.fa-v:before{content:"\56"}.fa-shuttle-van:before,.fa-van-shuttle:before{content:"\f5b6"}.fa-vault:before{content:"\e2c5"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-vest:before{content:"\e085"}.fa-vest-patches:before{content:"\e086"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-video-camera:before,.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-virus:before{content:"\e074"}.fa-virus-covid:before{content:"\e4a8"}.fa-virus-covid-slash:before{content:"\e4a9"}.fa-virus-slash:before{content:"\e075"}.fa-viruses:before{content:"\e076"}.fa-voicemail:before{content:"\f897"}.fa-volleyball-ball:before,.fa-volleyball:before{content:"\f45f"}.fa-volume-high:before,.fa-volume-up:before{content:"\f028"}.fa-volume-down:before,.fa-volume-low:before{content:"\f027"}.fa-volume-off:before{content:"\f026"}.fa-volume-mute:before,.fa-volume-times:before,.fa-volume-xmark:before{content:"\f6a9"}.fa-vr-cardboard:before{content:"\f729"}.fa-w:before{content:"\57"}.fa-wallet:before{content:"\f555"}.fa-magic:before,.fa-wand-magic:before{content:"\f0d0"}.fa-magic-wand-sparkles:before,.fa-wand-magic-sparkles:before{content:"\e2ca"}.fa-wand-sparkles:before{content:"\f72b"}.fa-warehouse:before{content:"\f494"}.fa-water:before{content:"\f773"}.fa-ladder-water:before,.fa-swimming-pool:before,.fa-water-ladder:before{content:"\f5c5"}.fa-wave-square:before{content:"\f83e"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weight-scale:before,.fa-weight:before{content:"\f496"}.fa-wheelchair:before{content:"\f193"}.fa-glass-whiskey:before,.fa-whiskey-glass:before{content:"\f7a0"}.fa-wifi-3:before,.fa-wifi-strong:before,.fa-wifi:before{content:"\f1eb"}.fa-wind:before{content:"\f72e"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before,.fa-wine-glass-empty:before{content:"\f5ce"}.fa-krw:before,.fa-won-sign:before,.fa-won:before{content:"\f159"}.fa-wrench:before{content:"\f0ad"}.fa-x:before{content:"\58"}.fa-x-ray:before{content:"\f497"}.fa-close:before,.fa-multiply:before,.fa-remove:before,.fa-times:before,.fa-xmark:before{content:"\f00d"}.fa-y:before{content:"\59"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen-sign:before,.fa-yen:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-z:before{content:"\5a"}.fa-sr-only,.fa-sr-only-focusable:not(:focus),.sr-only,.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}
\ No newline at end of file
diff --git a/resources/fonts/roboto.css b/resources/fonts/roboto.css
deleted file mode 100644
index 52ba4da3..00000000
--- a/resources/fonts/roboto.css
+++ /dev/null
@@ -1,35 +0,0 @@
-@font-face {
- font-family: 'Roboto';
- font-style: normal;
- font-weight: 700;
- src: url('./Roboto-Bold.woff2') format('woff2');
-}
-
-@font-face {
- font-family: 'Roboto';
- font-style: normal;
- font-weight: 500;
- src: url('./Roboto-Medium.woff2') format('woff2');
-}
-
-
-@font-face {
- font-family: 'Roboto';
- font-style: normal;
- font-weight: 400;
- src: url('./Roboto-Regular.woff2') format('woff2');
-}
-
-@font-face {
- font-family: 'Roboto';
- font-style: normal;
- font-weight: 100;
- src: url('./Roboto-Light.woff2') format('woff2');
-}
-
-@font-face {
- font-family: 'Roboto Mono';
- font-style: normal;
- font-weight: 500;
- src: url('./roboto-mono.woff') format('woff');
-}
diff --git a/resources/images/ardour-osc.png b/resources/images/ardour-osc.png
new file mode 100644
index 00000000..50c6151c
Binary files /dev/null and b/resources/images/ardour-osc.png differ
diff --git a/resources/images/sponsors/browserstack.png b/resources/images/logo-browserstack.png
similarity index 100%
rename from resources/images/sponsors/browserstack.png
rename to resources/images/logo-browserstack.png
diff --git a/resources/images/logo-nobadge.png b/resources/images/logo-nobadge.png
new file mode 100644
index 00000000..d0fa5ef9
Binary files /dev/null and b/resources/images/logo-nobadge.png differ
diff --git a/resources/images/logo-nobadge.svg b/resources/images/logo-nobadge.svg
new file mode 100644
index 00000000..9824cd48
--- /dev/null
+++ b/resources/images/logo-nobadge.svg
@@ -0,0 +1,86 @@
+
+
+
+
diff --git a/resources/images/logo.icns b/resources/images/logo.icns
index 64e718c5..df6d5521 100644
Binary files a/resources/images/logo.icns and b/resources/images/logo.icns differ
diff --git a/resources/images/logo.ico b/resources/images/logo.ico
index 69fab291..12d3e507 100644
Binary files a/resources/images/logo.ico and b/resources/images/logo.ico differ
diff --git a/resources/images/logo.png b/resources/images/logo.png
index d14a7074..f16ee0b7 100644
Binary files a/resources/images/logo.png and b/resources/images/logo.png differ
diff --git a/resources/images/logo.sh b/resources/images/logo.sh
index ea91d019..491d3e4d 100644
--- a/resources/images/logo.sh
+++ b/resources/images/logo.sh
@@ -1,4 +1,2 @@
-convert logo.png -define icon:auto-resize="256,128,96,64,48,32,16" logo.ico
-convert logo.png -resize 128x128 logo-mac.png
-png2icns logo.icns logo-mac.png
-rm logo-mac.png
+png2icns logo.icns logo.png
+icotool -c logo.png -o logo.ico
diff --git a/resources/images/logo.svg b/resources/images/logo.svg
index 619bc9bb..f80bb8cc 100644
--- a/resources/images/logo.svg
+++ b/resources/images/logo.svg
@@ -1,24 +1,22 @@
+
+
diff --git a/resources/images/logo_discourse.png b/resources/images/logo_discourse.png
deleted file mode 100644
index 74ed8c44..00000000
Binary files a/resources/images/logo_discourse.png and /dev/null differ
diff --git a/resources/images/logo_discourse.svg b/resources/images/logo_discourse.svg
deleted file mode 100644
index 7d30ac1d..00000000
--- a/resources/images/logo_discourse.svg
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-
-
diff --git a/resources/images/logo_nobadge.png b/resources/images/logo_nobadge.png
deleted file mode 100644
index cb1406ed..00000000
Binary files a/resources/images/logo_nobadge.png and /dev/null differ
diff --git a/resources/images/logo_nobadge.svg b/resources/images/logo_nobadge.svg
deleted file mode 100644
index 9e163b2f..00000000
--- a/resources/images/logo_nobadge.svg
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
diff --git a/resources/images/logo_tray.png b/resources/images/logo_tray.png
deleted file mode 100644
index d6670a2a..00000000
Binary files a/resources/images/logo_tray.png and /dev/null differ
diff --git a/resources/images/logo_tray@x2.png b/resources/images/logo_tray@x2.png
deleted file mode 100644
index c3c4f0c6..00000000
Binary files a/resources/images/logo_tray@x2.png and /dev/null differ
diff --git a/resources/images/mockup.xcf b/resources/images/mockup.xcf
new file mode 100644
index 00000000..d4179998
Binary files /dev/null and b/resources/images/mockup.xcf differ
diff --git a/resources/images/sponsors/ammd.png b/resources/images/sponsors/ammd.png
deleted file mode 100644
index 522ae9b5..00000000
Binary files a/resources/images/sponsors/ammd.png and /dev/null differ
diff --git a/resources/images/sponsors/discourse.png b/resources/images/sponsors/discourse.png
deleted file mode 100644
index d7ddcc83..00000000
Binary files a/resources/images/sponsors/discourse.png and /dev/null differ
diff --git a/resources/mkdocs.yml b/resources/mkdocs.yml
index e6599ab8..b4e6ef23 100644
--- a/resources/mkdocs.yml
+++ b/resources/mkdocs.yml
@@ -1,85 +1,64 @@
site_name: Open Stage Control
repo_name: open-stage-control
-repo_url: https://framagit.org/jean-emmanuel/open-stage-control
+repo_url: https://github.com/jean-emmanuel/open-stage-control
edit_uri: tree/master/resources/docs/
-copyright: "Copyleft © Jean-Emmanuel Doucet @ AMMD (GNU/GPLv3)"
+copyright: "Open Stage Control is an AMMD software licensed under the GNU/GPLv3 License"
site_description: "Libre and modular OSC / MIDI controller"
-site_dir: '../app/docs/'
-latest_release: 1.31.2
theme:
name: 'material'
- custom_dir: 'overrides'
- features:
- - navigation.tabs
- - navigation.instant
+ custom_dir: 'mkdocs-material/material'
+ feature:
+ tabs: true
+ favicon: 'img/logo-nobadge.png?1'
+ language: 'en'
+ logo: 'img/logo-nobadge.svg'
palette:
- primary: 'Indigo'
- accent: 'Indigo'
- logo: 'img/logo_nobadge.png'
- favicon: 'img/logo_nobadge.png'
- include_search_page: false
- search_index_only: true
+ primary: 'blue grey'
+ accent: 'light blue'
+ font:
+ text: 'Roboto'
+ code: 'Roboto Mono'
extra_css:
- - 'extra/styles.css'
-extra_javascript:
- - 'extra/scripts.js'
+ - 'css/extra.css'
-nav:
- - Home: index.md
- - Download:
- - download.md
- - Documentation:
- - Getting started:
- - docs/getting-started/introduction.md
- - docs/getting-started/server-configuration.md
- - docs/getting-started/running-from-sources.md
- - docs/getting-started/running-with-node.md
- - Tutorials:
- - docs/tutorials/first-steps.md
- - docs/tutorials/change-property-with-osc.md
- - User interface:
- - docs/user-interface/launcher.md
- - docs/user-interface/client.md
- - docs/user-interface/editor.md
- - Widgets:
- - docs/widgets/general-mechanics.md
- - docs/widgets/properties-reference.md
- - docs/widgets/advanced-syntaxes.md
- - docs/widgets/scripting.md
- - docs/widgets/fragments.md
- - docs/widgets/canvas.md
- - MIDI:
- - MIDI configuration: docs/midi/midi-configuration.md
- - MIDI messages: docs/midi/midi-messages.md
- - Custom module:
- - docs/custom-module/custom-module.md
- - docs/custom-module/managing-big-modules.md
- - docs/custom-module/examples.md
- - Customization:
- - docs/customization/themes.md
- - docs/customization/css-tips.md
- - Client options: docs/client-options.md
- - Remote control: docs/remote-control.md
- - Credits: docs/credits.md
- - Changelog: docs/changelog.md
- - Community:
- - 'Community forums': 'https://openstagecontrol.discourse.group'
+pages:
+ - OSC Control Surface: index.md
+ - Getting started: getting-started.md
+ - User interface: interface.md
+ - Editing sessions: editing-sessions.md
+ - Widgets reference: widgets-reference.md
+ # - Widget properties: widgets/widgets.md
+ # - Containers: widgets/containers.md
+ # - Sliders: widgets/sliders.md
+ # - Pads: widgets/pads.md
+ # - Buttons: widgets/buttons.md
+ # - Switchers: widgets/switchers.md
+ # - Plots: widgets/plots.md
+ # - Matrices: widgets/matrices.md
+ # - Inputs: widgets/inputs.md
+ # - Maths: widgets/maths.md
+ - Extras:
+ - Advanced property syntax: extras/advanced-property-syntax.md
+ - CSS Tips: extras/css-tips.md
+ - Theming: extras/theming.md
+ - URL options: extras/url-options.md
+ - Remote control: extras/remote-control.md
+ - Custom module: extras/custom-module.md
+ - Midi: extras/midi.md
+ - Examples: examples.md
+ - Credits: credits.md
markdown_extensions:
- - markdown.extensions.extra
- markdown.extensions.admonition
- - codehilite:
- guess_lang: False
+ - markdown.extensions.codehilite(guess_lang=false)
- markdown.extensions.def_list
- markdown.extensions.footnotes
- markdown.extensions.meta
- - markdown.extensions.toc:
- permalink: "#"
+ - markdown.extensions.toc(permalink=true)
- pymdownx.arithmatex
- - pymdownx.betterem:
- smart_enable: all
+ - pymdownx.betterem(smart_enable=all)
- pymdownx.caret
- pymdownx.critic
- pymdownx.inlinehilite
@@ -87,14 +66,5 @@ markdown_extensions:
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.superfences
- - pymdownx.tasklist:
- custom_checkbox: true
+ - pymdownx.tasklist(custom_checkbox=true)
- pymdownx.tilde
- - pymdownx.keys
- - pymdownx.tabbed:
- alternate_style: true
- - pymdownx.details
-
-
-plugins:
- - macros
diff --git a/resources/overrides/404.html b/resources/overrides/404.html
deleted file mode 100644
index 158df66d..00000000
--- a/resources/overrides/404.html
+++ /dev/null
@@ -1,31 +0,0 @@
-{% extends "main.html" %}
-
-{% block content %}
-
-Woops, nothing here !
-
-(404 error)
-
-
-
-
-{% endblock %}
diff --git a/resources/overrides/home.html b/resources/overrides/home.html
deleted file mode 100644
index 25fbe792..00000000
--- a/resources/overrides/home.html
+++ /dev/null
@@ -1,191 +0,0 @@
-
-
-{% extends "main.html" %}
-
-
-{% block tabs %}
- {{ super() }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{% endblock %}
-
-
-{% block content %}{% endblock %}
-
-
-{% block footer %}{% endblock %}
diff --git a/resources/overrides/main.html b/resources/overrides/main.html
deleted file mode 100644
index ddd35433..00000000
--- a/resources/overrides/main.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{% extends "base.html" %}
-
-{% block fonts %}
-
-
-
-
-
-{% endblock %}
diff --git a/scripts/build-client.js b/scripts/build-client.js
new file mode 100644
index 00000000..5a0d3cc3
--- /dev/null
+++ b/scripts/build-client.js
@@ -0,0 +1,98 @@
+var build = require('./build'),
+ path = require('path'),
+ babelify = require('babelify'),
+ nanohtml = require('nanohtml'),
+ watch = process.argv.includes('--watch'),
+ prod = process.argv.includes('--prod'),
+ through = require('through'),
+ minimatch = require('minimatch').Minimatch
+
+
+var ignores = ['**/*.min.js', '**/jquery.ui.js', 'gyronorm.complete.min.js'],
+ transformWrapper = function(transform){
+ return function(file, opts){
+ if (ignores.some(pattern => minimatch(pattern).match(file))) {
+ return through()
+ } else {
+ return transform(file, opts)
+ }
+ }
+ }
+
+var transforms = [
+ [transformWrapper(babelify)],
+ [transformWrapper(nanohtml)]
+]
+
+if (prod) {
+ console.warn('\033[36m=> Building minified client bundle, this may take a while...\033[0m')
+ transforms.push([transformWrapper(require('uglifyify')), {global: true}])
+}
+
+var bundle = build({
+ input: '../src/client/index.js',
+ output: '../app/client/open-stage-control-client.js',
+ options: {
+ debug: true,
+ insertGlobals: false,
+ noParse: ['**/*.min.js', '**/jquery.ui.js'],
+ cache: {},
+ packageCache: {}
+ },
+ plugins: watch ? [require('watchify')] : [],
+ transforms: transforms
+})
+
+if (watch) {
+
+ var ansiHTML = require('ansi-html'),
+ WS = require('../node_modules/ws')
+
+ function send(msg, data){
+ var ipc = new WS('ws://127.0.0.1:8080/dev')
+ ipc.on('error', ()=>{})
+ ipc.on('open', ()=>{
+ ipc.send(JSON.stringify([msg, data]))
+ ipc.close()
+ })
+ }
+
+ bundle.b.on('update', hotBundle)
+ bundle.b.on('log', function(msg) {console.warn('\x1b[36m%s\x1b[0m', msg)})
+
+ function hotBundle() {
+
+ var output = bundle()
+
+ output.on('end', (err)=> {
+ console.log('Build successful reloading...')
+ send('reload')
+ })
+
+ output.on('error', (err)=> {
+
+ console.error(err.stack)
+ send('errorPopup',
+ '' +
+ ansiHTML(
+ err.stack
+ .replace(/^ at .*/gm, '') // remove useless stack
+ .replace(new RegExp(path.resolve(__dirname + '/..'), 'g'),'.') // shorten file path
+ .trim()
+ .replace('\n','\n\n') // add 1 new line after 1st line
+ ) +
+ ''
+ )
+
+ })
+
+ }
+
+
+ hotBundle()
+
+} else {
+
+ bundle()
+
+}
diff --git a/scripts/build-css.js b/scripts/build-css.js
index 1884a440..c2fe2d57 100644
--- a/scripts/build-css.js
+++ b/scripts/build-css.js
@@ -1,19 +1,16 @@
-var sass = require('sass'),
+var sass = require('node-sass'),
path = require('path'),
fs = require('fs')
var indir = path.resolve(__dirname + '/../src/scss/'),
outdir= path.resolve(__dirname + '/../app/assets/')
-fs.mkdirSync(outdir + '/themes/', {recursive: true})
-
fs.readdirSync(indir + '/themes/').forEach(file => {
if (file.includes('.scss') && file !== 'default.scss') {
let result = sass.renderSync({
file: indir + '/themes/' + file,
- outputStyle: 'compressed',
- silenceDeprecations: ['mixed-decls', 'slash-div', 'import', 'legacy-js-api']
+ outputStyle: 'compressed'
})
fs.writeFileSync(outdir + '/themes/' + file.split('/').pop().replace('scss', 'css'), result.css)
@@ -25,8 +22,7 @@ var result = sass.renderSync({
file: indir + '/index.scss',
outFile: outdir + '/open-stage-control.css',
outputStyle: 'compressed',
- sourceMap: true,
- silenceDeprecations: ['mixed-decls', 'slash-div', 'import', 'legacy-js-api']
+ sourceMap: true
})
fs.writeFileSync(outdir + '/open-stage-control.css', result.css)
@@ -37,7 +33,7 @@ if (process.argv.includes('--reload')) {
var WS = require('../node_modules/ws')
- var ipc = new WS('ws://127.0.0.1:8080/dev/')
+ var ipc = new WS('ws://127.0.0.1:8080/dev')
ipc.on('error', ()=>{})
ipc.on('open', ()=>{
diff --git a/scripts/build-launcher.js b/scripts/build-launcher.js
new file mode 100644
index 00000000..a1f756d3
--- /dev/null
+++ b/scripts/build-launcher.js
@@ -0,0 +1,13 @@
+var build = require('./build')
+
+build({
+ input: '../src/launcher/index.js',
+ output: '../app/launcher/open-stage-control-launcher.js',
+ options: {
+ debug: true,
+ ignoreMissing: false,
+ detectGlobals: false,
+ bare: true,
+ noParse: ['**/mathjs/dist/math.min.js']
+ }
+})()
diff --git a/scripts/build-server.js b/scripts/build-server.js
new file mode 100644
index 00000000..d57b29dc
--- /dev/null
+++ b/scripts/build-server.js
@@ -0,0 +1,23 @@
+var build = require('./build')
+
+build({
+ input: '../src/server/index.js',
+ output: '../app/server/open-stage-control-server.js',
+ options: {
+ commonDir: false,
+ ignoreMissing: true,
+ debug: true,
+ builtins: false,
+ commondir: false,
+ insertGlobalVars: {
+ __filename: true,
+ __dirname: true,
+ process: true,
+ electron: true,
+ global: true
+ },
+ browserField: false,
+ },
+ ignore: 'serialport',
+ exclude: 'electron'
+})()
diff --git a/scripts/build-widgets-reference.js b/scripts/build-widgets-reference.js
new file mode 100644
index 00000000..e2cd6a84
--- /dev/null
+++ b/scripts/build-widgets-reference.js
@@ -0,0 +1,103 @@
+require('./client-shim')
+
+// Here we go
+
+var widgets = require('../src/client/app/widgets'),
+ baseClass = require('../src/client/app/widgets/common/widget'),
+ base = baseClass.defaults(),
+ doc = []
+
+
+doc.push(`
+
+ ## Generic properties
+
+ | property | type |default | description |
+ | --- | --- | --- | --- |`
+)
+
+for (var propName in base) {
+
+ var prop = base[propName],
+ permalink = propName
+
+ if (propName[0] === '_' && propName !== '_props') {
+ doc.push(`
+ | ${prop}¶
||||`
+ )
+ }
+
+ if (propName === '_props' || propName[0] === '_') continue
+
+ var help = Array.isArray(prop.help) ? prop.help.join('
').replace(/
-/g, '-') : prop.help || '',
+ dynamic = baseClass.dynamicProps.includes(propName) ? '' : ''
+
+
+ doc.push(`
+ | ${propName}${dynamic}¶
| \`${prop.type.replace(/\|/g,'\`\\|
\`')}\` | ${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'
')} | ${help} |`
+ )
+
+}
+
+
+for (var k in widgets.categories) {
+ var category = widgets.categories[k]
+
+ doc.push(`
+
+ ## ${k}`
+ )
+
+ for (var kk in category) {
+ var type = category[kk],
+ defaults = widgets.widgets[type].defaults(),
+ separator = false
+
+
+ doc.push(`
+
+ ### ${type}
+
+ | property | type |default | description |
+ | --- | --- | --- | --- |`
+ )
+
+ for (var propName in defaults) {
+
+ var prop = defaults[propName],
+ permalink = type + '_' + propName
+
+ if (propName[0] === '_' && propName !== '_props') {
+ if (separator) doc.pop()
+ doc.push(`
+ | ${prop}¶
||||`
+ )
+ separator = true
+ }
+
+ if (propName === '_props' || propName[0] === '_' || JSON.stringify(prop) == JSON.stringify(base[propName])) continue
+
+ var help = Array.isArray(prop.help) ? prop.help.join('
').replace(/
-/g, '-') : prop.help || '',
+ dynamic = widgets.widgets[type].dynamicProps.includes(propName) ? '' : ''
+
+ doc.push(`
+ | ${propName}${dynamic}¶
| \`${prop.type.replace(/\|/g,'\`\\|
\`')}\` | ${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'
')} | ${help} |`
+ )
+ separator = false
+ }
+
+ if (separator) doc.pop()
+
+ }
+}
+
+doc.push(`\n\n
+
+`)
+
+console.log(doc.join('').replace(/^ +/gm,''))
diff --git a/scripts/build.js b/scripts/build.js
new file mode 100644
index 00000000..80de408b
--- /dev/null
+++ b/scripts/build.js
@@ -0,0 +1,49 @@
+var browserify = require('browserify'),
+ exorcist = require('exorcist'),
+ licensify = require('licensify'),
+ fs = require('fs'),
+ path = require('path')
+
+
+module.exports = (opt) => {
+
+ var {input, output, options, ignore, exclude, transforms, plugins} = opt,
+ inputPath = path.resolve(__dirname + '/' + input),
+ outputPath = path.resolve(__dirname + '/' + output),
+ b
+
+ if (!plugins) plugins = []
+ if (!plugins.includes(licensify)) plugins.push(licensify)
+
+ b = browserify(inputPath, options)
+
+ if (ignore) b.ignore(ignore)
+ if (exclude) b.exclude(exclude)
+
+ for (var plugin of plugins) {
+ b.plugin(plugin)
+ }
+
+ if (transforms) {
+ for (var transform of transforms) {
+ var [t, opts] = transform
+ b.transform(t, opts)
+ }
+ }
+
+ function bundle() {
+
+ var output = b.bundle()
+
+ var toWrite = output.pipe(exorcist(outputPath + '.map'))
+ toWrite.pipe(fs.createWriteStream(outputPath))
+
+ return output
+
+ }
+
+ bundle.b = b
+
+ return bundle
+
+}
diff --git a/scripts/client-shim.js b/scripts/client-shim.js
new file mode 100644
index 00000000..d3244aa6
--- /dev/null
+++ b/scripts/client-shim.js
@@ -0,0 +1,58 @@
+// Dirty browser window shim
+
+document = {
+ createElement: x=>({
+ nodeName: '',
+ childNodes: [],
+ setAttribute: ()=>{},
+ appendChild: ()=>{},
+ lastChild: {},
+ toString: ()=>' ',
+ removeChild: ()=>{}
+ }),
+ createTextNode: x=>({
+ nodeValue: '',
+ nodeName: '',
+ childNodes: [],
+ setAttribute: ()=>{},
+ appendChild: ()=>{},
+ lastChild: {},
+ toString: ()=>' '
+ }),
+ createElementNS: x=>[],
+ addEventListener: ()=>{},
+ createRange: ()=>{
+ return {
+ createContextualFragment:()=>{return {
+ firstChild: {
+ querySelectorAll: x=>[]
+ }
+ }},
+ selectNode: ()=>{}
+ }
+ },
+ body: {
+ appendChild: ()=>{}
+ }
+}
+
+window = {
+ addEventListener: ()=>{},
+ location: {},
+ document: document,
+ navigator: {
+ platform:''
+ },
+ NodeList: Array,
+ WebSocket: Object
+}
+
+Object.assign(global, window)
+
+// Required globals
+
+DOM = require('../src/client/app/dom')
+DOM.get = x=>[{addEventListener:()=>{}}]
+DOM.init()
+CANVAS_FRAMERATE = 1
+LANG = 'en'
diff --git a/scripts/client.plugin-watch.js b/scripts/client.plugin-watch.js
deleted file mode 100644
index 41204c80..00000000
--- a/scripts/client.plugin-watch.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var ansiHTML = require('ansi-html'),
- WS = require('../node_modules/ws'),
- path = require('path')
-
-function send(msg, data){
- var ipc = new WS('ws://127.0.0.1:8080/dev/')
- ipc.on('error', ()=>{})
- ipc.on('open', ()=>{
- ipc.send(JSON.stringify([msg, data]))
- ipc.close()
- })
-}
-
-module.exports = function watchChangePlugin() {
-
- var reloadClient = false
-
- return {
-
- buildEnd(error) {
-
- if (error) {
- var msg = `
- ${error.message.replace(path.resolve(__dirname + '/..'),'')} at line ${error.loc.line}\n${error.frame}
- `
- send('errorPopup', msg.trim())
- reloadClient = false
- } else {
- reloadClient = true
- }
-
- },
-
- writeBundle() {
- if (reloadClient) {
- send('reload')
- }
- }
- }
-}
diff --git a/scripts/client.rollup.config.js b/scripts/client.rollup.config.js
deleted file mode 100644
index c23b26ae..00000000
--- a/scripts/client.rollup.config.js
+++ /dev/null
@@ -1,98 +0,0 @@
-var commonjs = require('@rollup/plugin-commonjs'),
- nodeResolve = require('@rollup/plugin-node-resolve'),
- json = require('@rollup/plugin-json'),
- babel = require('@rollup/plugin-babel'),
- terser = require('@rollup/plugin-terser'),
- copy = require('rollup-plugin-copy'),
- license = require('rollup-plugin-license'),
- watchChange = require('./client.plugin-watch'),
- package = require('../package.json'),
- path = require('path'),
- watch = process.argv.includes('--watch')
-
-module.exports = {
- input: 'src/client/index.mjs',
- output: [
- {
- dir: 'app/client/',
- chunkFileNames: `[name].js`,
- entryFileNames: `[name].js`,
- format: 'es',
- sourcemap: true,
- sourcemapExcludeSources: true
- },
- ],
- treeshake: false,
- watch: {
- clearScreen: false
- },
- plugins: [
- json(),
- nodeResolve({
- browser: true
- }),
- commonjs(),
- watch ? {} : babel({
- babelHelpers: 'bundled',
- babelrc: false,
- exclude: [
- /node_modules\/core-js/,
- /node_modules\/ace-builds/
- ],
- presets: [[
- '@babel/preset-env',
- {
- targets: {
- ios: '11',
- chrome: '70'
- },
- useBuiltIns: 'usage',
- corejs: 3,
- modules:false
- }
- ]]
- }),
- watch ? {} : terser({
- sourceMap: true,
- keep_classnames: true,
- keep_fnames: true,
- output: {
- comments: false,
- },
- }),
- {
- name: 'remove-node-modules-from-source-map',
- enforce: 'post',
- transform(code, id) {
- if (id.includes('node_modules')) {
- return { code, map: { mappings: '' } }
- }
- }
- },
- watch ? {} :license({
- thirdParty: {
- includeSelf: true,
- output: 'app/client/LICENSES',
- },
- }),
- watch ? {} : copy({
- targets: [
- {src: 'resources/images/logo_nobadge.png', dest: 'app/assets/', rename: 'favicon.png'},
- {src: 'resources/images/logo.png', dest: 'app/assets/'},
- {src: 'resources/images/logo_tray.png', dest: 'app/assets/'},
- {src: 'resources/images/logo_tray@x2.png', dest: 'app/assets/'},
- {src: 'resources/images/logo_16x16.png', dest: 'app/assets/'},
- {src: 'resources/fonts/*', dest: 'app/assets/fonts/'},
- {src: 'node_modules/ace-builds/src-min/worker-css.js', dest: 'app/client/ace/'},
- {src: 'node_modules/ace-builds/src-min/worker-html.js', dest: 'app/client/ace/'},
- {src: 'node_modules/ace-builds/src-min/worker-javascript.js', dest: 'app/client/ace/'},
- {src: 'node_modules/ace-builds/src-min/ace.js', dest: 'app/client/ace/'},
- {src: 'src/html/client.html', dest: 'app/client/', rename: 'index.html', transform: (contents)=>{
- return contents.toString().replace(/\$\{([^\}]+)\}/g, (m, p1)=>{return package[p1]})
- }},
-
- ]
- }),
- watchChange()
- ]
-};
diff --git a/scripts/copy-assets.js b/scripts/copy-assets.js
new file mode 100644
index 00000000..75b8bbde
--- /dev/null
+++ b/scripts/copy-assets.js
@@ -0,0 +1,44 @@
+var cpr = require('cpr'),
+ fs = require('fs'),
+ path = require('path'),
+ files = [
+ ['../resources/images/logo-nobadge.png', '../app/assets/favicon.png'],
+ ['../resources/images/logo.png', '../app/assets/logo.png'],
+ ['../LICENSE', '../app/LICENSE'],
+ ]
+
+for (var i in files) {
+ cpr(...files[i].map(f => path.resolve(__dirname + '/' + f)), {})
+}
+
+
+var packageJson = require('../package.json'),
+ appJson = {},
+ copiedProps = [
+ "name",
+ "productName",
+ "description",
+ "version",
+ "author",
+ "repository",
+ "homepage",
+ "license",
+ "yargs",
+ "engines"
+ ]
+
+for (var k of copiedProps) {
+ appJson[k] = packageJson[k]
+}
+
+appJson.main = appJson.bin = "index.js"
+appJson.scripts = {
+ "start": "electron index.js",
+ "start-node": "node index.js"
+}
+
+appJson.optionalDependencies = {
+ electron: packageJson.optionalDependencies.electron
+}
+
+fs.writeFileSync(path.resolve(__dirname + '/../app/package.json'), JSON.stringify(appJson, null, ' '))
diff --git a/scripts/dist_packages.sh b/scripts/dist_packages.sh
deleted file mode 100755
index 8805f515..00000000
--- a/scripts/dist_packages.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-
-# clean
-rm -rf dist app
-
-# buid
-npm run build
-npm run build-docs
-npm run package -- --all
-PLATFORM=darwin ARCH=arm64 npm run package
-npm run package-node
-
-# get current version
-VERSION=$(sed -nE 's/^\s*"version":\ "(.*?)",$/\1/p' package.json)
-
-cd dist
-
-# fetch & copy midi bins
-mkdir tmp && cd tmp
-cp ../../bin/osc-midi-* ./
-chmod +x *
-touch .expect-midi-bin
-cp {.expect-midi-bin,osc-midi-linux} ../open-stage-control-linux-x64/resources/app/server/python/
-cp {.expect-midi-bin,osc-midi-windows.exe} ../open-stage-control-win32-x64/resources/app/server/python/
-cp {.expect-midi-bin,osc-midi-osx} ../open-stage-control-darwin-x64/open-stage-control.app/Contents/Resources/app/server/python/
-cp {.expect-midi-bin,osc-midi-osx} ../open-stage-control-darwin-arm64/open-stage-control.app/Contents/Resources/app/server/python/
-cd ..
-rm -rf tmp
-
-# make packages
-mkdir packages
-npm run deb64
-npm run rpm64
-mv *.{deb,rpm} packages/
-
-mv open-stage-control-node open-stage-control_${VERSION}_node
-mv open-stage-control-win32-x64 open-stage-control_${VERSION}_win32-x64
-mv open-stage-control-linux-x64 open-stage-control_${VERSION}_linux-x64
-
-echo "Creating zip packages..."
-zip -q -r --symlinks packages/open-stage-control_${VERSION}_osx-x64.zip open-stage-control-darwin-x64/open-stage-control.app
-zip -q -r --symlinks packages/open-stage-control_${VERSION}_osx-arm64.zip open-stage-control-darwin-arm64/open-stage-control.app
-zip -q -r packages/open-stage-control_${VERSION}_node.zip open-stage-control_${VERSION}_node
-zip -q -r packages/open-stage-control_${VERSION}_win32-x64.zip open-stage-control_${VERSION}_win32-x64
-zip -q -r packages/open-stage-control_${VERSION}_linux-x64.zip open-stage-control_${VERSION}_linux-x64
diff --git a/scripts/docs.rollup.config.js b/scripts/docs.rollup.config.js
deleted file mode 100644
index 5b27aa0f..00000000
--- a/scripts/docs.rollup.config.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var commonjs = require('@rollup/plugin-commonjs'),
- nodeResolve = require('@rollup/plugin-node-resolve'),
- json = require('@rollup/plugin-json')
-
-module.exports = {
- input: 'src/docs/widgets-reference.mjs',
- output: [
- {
- file: 'src/docs/widgets-reference.js',
- inlineDynamicImports: true,
- format: 'commonjs',
- sourcemap: false,
- strict: false,
- indent: false,
- name: '_'
- },
- ],
- plugins: [
- json(),
- nodeResolve({
- browser: true
- }),
- commonjs()
- ]
-};
diff --git a/scripts/launcher.rollup.config.js b/scripts/launcher.rollup.config.js
deleted file mode 100644
index c0b2eda1..00000000
--- a/scripts/launcher.rollup.config.js
+++ /dev/null
@@ -1,48 +0,0 @@
-var commonjs = require('@rollup/plugin-commonjs'),
- nodeResolve = require('@rollup/plugin-node-resolve'),
- json = require('@rollup/plugin-json'),
- babel = require('@rollup/plugin-babel'),
- terser = require('@rollup/plugin-terser'),
- copy = require('rollup-plugin-copy'),
- license = require('rollup-plugin-license'),
- package = require('../package.json'),
- path = require('path')
-
-module.exports = {
- input: 'src/launcher/index.mjs',
- output: [
- {
- dir: 'app/launcher/',
- chunkFileNames: `[name].js`,
- format: 'commonjs',
- sourcemap: true,
- sourcemapExcludeSources: true,
- strict: false
- },
- ],
- treeshake: false,
- external: ['electron'],
- watch: {
- clearScreen: false
- },
- plugins: [
- json(),
- commonjs({
- ignoreGlobal: true,
- ignoreDynamicRequires: true
- }),
- nodeResolve(),
- terser(),
- license({
- thirdParty: {
- includeSelf: true,
- output: 'app/launcher/LICENSES',
- },
- }),
- copy({
- targets: [
- {src: 'src/html/launcher.html', dest: 'app/launcher/', rename: 'index.html'},
- ]
- })
- ]
-};
diff --git a/scripts/package-node.js b/scripts/package-node.js
index 6fdae1bc..c4934eb2 100644
--- a/scripts/package-node.js
+++ b/scripts/package-node.js
@@ -1,4 +1,8 @@
-var cpr = require('cpr'),
+var browserify = require('browserify'),
+ exorcist = require('exorcist'),
+ licensify = require('licensify'),
+ fs = require('fs'),
+ cpr = require('cpr'),
path = require('path'),
files = ['../app', '../dist/open-stage-control-node']
diff --git a/scripts/package.js b/scripts/package.js
index de33b599..bfd7e654 100644
--- a/scripts/package.js
+++ b/scripts/package.js
@@ -1,31 +1,25 @@
-const packager = require('@electron/packager'),
+const packager = require('electron-packager'),
path = require('path'),
appData = require('../app/package.json'),
- safeFFMPEG = require('electron-packager-plugin-non-proprietary-codecs-ffmpeg').default,
- licensePath = path.resolve(__dirname + '/../LICENSE'),
- fs = require('fs')
+ safeFFMPEG = require('electron-packager-plugin-non-proprietary-codecs-ffmpeg').default
-var all = process.argv.includes('--all')
+var rpi = process.argv.includes('--rpi'),
+ all = process.argv.includes('--all')
packager({
dir: path.resolve(__dirname + '/../app'),
name: appData.name,
- platform: all ? ['linux', 'win32', 'darwin'] : process.env.PLATFORM,
- arch: process.env.ARCH || 'x64',
- electronVersion: process.env.ELECTRON_VERSION || require('../package.json').optionalDependencies.electron,
+ all: all ? true : undefined,
+ platform: rpi ? 'linux' : process.env.PLATFORM,
+ arch: rpi ? 'armv7l' : process.env.ARCH,
+ electronVersion: rpi ? '1.7.11' : require('../package.json').optionalDependencies.electron,
overwrite: true,
out: path.resolve(__dirname + '/../dist'),
icon: path.resolve(__dirname + '/../resources/images/logo'),
- ignore: /(node_modules\/(serialport|uws)|docs\/fonts)/,
+ ignore: /node_modules\/(serialport|uws)/,
afterExtract: [safeFFMPEG],
prune: false
-}).then((appPaths)=>{
-
- for (var appPath of appPaths) {
- var electronLicensePath = path.join(appPath, 'LICENSE')
- fs.copyFileSync(electronLicensePath, electronLicensePath + '.electron')
- fs.copyFileSync(licensePath, electronLicensePath)
- }
+}).then(()=>{
console.warn('\x1b[36m%s\x1b[0m', '=> Build artifacts created in ' + path.resolve(__dirname + '/../dist'))
diff --git a/scripts/server.rollup.config.js b/scripts/server.rollup.config.js
deleted file mode 100644
index dac5b03a..00000000
--- a/scripts/server.rollup.config.js
+++ /dev/null
@@ -1,65 +0,0 @@
-var commonjs = require('@rollup/plugin-commonjs'),
- nodeResolve = require('@rollup/plugin-node-resolve'),
- json = require('@rollup/plugin-json'),
- babel = require('@rollup/plugin-babel'),
- terser = require('@rollup/plugin-terser'),
- copy = require('rollup-plugin-copy'),
- license = require('rollup-plugin-license'),
- package = require('../package.json'),
- path = require('path')
-
-module.exports = {
- input: {
- 'node/index': 'src/server/node/index.mjs',
- 'electron/index': 'src/server/electron/index.mjs'
- },
- output: [
- {
- dir: 'app/server/',
- chunkFileNames: `[name].js`,
- format: 'commonjs',
- sourcemap: true,
- sourcemapExcludeSources: true,
- strict: false
- },
- ],
- treeshake: false,
- external: ['electron', '@serialport'],
- watch: {
- clearScreen: false
- },
- plugins: [
- json(),
- commonjs({
- ignoreGlobal: true,
- ignoreDynamicRequires: true
- }),
- nodeResolve({
- preferBuiltins: true
- }),
- license({
- thirdParty: {
- includeSelf: true,
- output: 'app/server/LICENSES',
- },
- }),
- terser({
- sourceMap: true,
- keep_classnames: true,
- keep_fnames: true,
- output: {
- comments: false,
- },
- }),
- copy({
- targets: [
- {src: 'src/index.js', dest: 'app/'},
- {src: 'src/server/index.js', dest: 'app/server/'},
- {src: 'src/server/python/*.py', dest: 'app/server/python/'},
- {src: 'node_modules/fsevents/fsevents.node', dest: 'app/server/'},
- {src: 'LICENSE', dest: 'app/'},
- {src: 'package.json', dest: 'app/'},
- ]
- })
- ]
-};
diff --git a/src/client/app/dom.js b/src/client/app/dom.js
new file mode 100644
index 00000000..5bc059a8
--- /dev/null
+++ b/src/client/app/dom.js
@@ -0,0 +1,107 @@
+var readyCallbacks = [],
+ initState = false
+
+module.exports = {
+
+ init: function() {
+
+ for (var i in readyCallbacks) {
+ readyCallbacks[i]()
+ }
+
+ initState = true
+
+ },
+
+ ready: function(callback) {
+ if (initState) {
+ callback()
+ } else {
+ readyCallbacks.push(callback)
+ }
+ },
+
+ dispatchEvent: function(element, name, data) {
+
+ var event = new CustomEvent(name, {
+ detail: data,
+ bubbles: true,
+ cancelable: true
+ })
+
+ element.dispatchEvent(event)
+
+ },
+
+ addEventListener: function(element, events, listener, capture) {
+
+ var eventsAsObject = typeof events == 'string' ? events.split(' ') : events
+
+ for (var i in eventsAsObject) {
+
+ element.addEventListener(eventsAsObject[i], listener, capture)
+
+ }
+
+ },
+
+ get: function(a, b) {
+
+ var context = b ? a : document,
+ selector = b || a,
+ nodes
+
+ if (selector.indexOf('>') === 0) selector = ':scope ' + selector
+
+ if (selector.indexOf(' ') === -1 && selector.indexOf(',') === -1) {
+ if (selector.indexOf('#') === 0 && context === document) {
+ nodes = [document.getElementById(selector.substr(1, selector.length - 1))]
+ } else if (selector.indexOf('.') === 0) {
+ nodes = context.getElementsByClassName(selector.substr(1, selector.length - 1))
+ }
+ }
+
+ if (!nodes) nodes = context.querySelectorAll(selector)
+
+ return nodes.forEach ? nodes : [...nodes]
+
+ },
+
+ each: function(context, selector, callback) {
+
+ var nodes = module.exports.get(context, selector)
+
+ nodes.forEach(callback)
+
+ return nodes
+
+ },
+
+ index: function(element) {
+ var parent = element.parentNode
+ return parent ? Array.prototype.indexOf.call(parent.children, element) : -1
+ },
+
+ offset: function(element) {
+
+ var offsetLeft = 0,
+ offsetTop = 0
+
+ if (element) {
+ do {
+ if (!isNaN(element.offsetLeft)) {
+ offsetLeft += element.offsetLeft - element.scrollLeft
+ }
+ if (!isNaN(element.offsetTop)) {
+ offsetTop += element.offsetTop - element.scrollTop
+ }
+ } while ((element = element.offsetParent))
+ }
+
+ return {
+ left: offsetLeft,
+ top: offsetTop
+ }
+ }
+
+}
diff --git a/src/client/app/editor/context-menu.js b/src/client/app/editor/context-menu.js
new file mode 100644
index 00000000..7264ea96
--- /dev/null
+++ b/src/client/app/editor/context-menu.js
@@ -0,0 +1,365 @@
+var {updateWidget} = require('./data-workers'),
+ {categories} = require('../widgets/'),
+ widgetManager = require('../managers/widgets'),
+ html = require('nanohtml'),
+ raw = require('nanohtml/raw'),
+ {icon} = require('../ui/utils'),
+ editor = require('./'),
+ locales = require('../locales')
+
+
+var multiSelectKey = (navigator.platform || '').match('Mac') ? 'metaKey' : 'ctrlKey'
+
+
+class ContextMenu {
+
+ constructor(){
+
+ this.menu = null
+ this.event = 'fast-click'
+ this.root = document.body
+
+ }
+
+ open(e, actions, parent) {
+
+ var menu = html``
+
+ for (let action of actions) {
+
+ if (Array.isArray(action.action)) {
+
+ let item = html`${raw(action.label)}`
+
+ menu.appendChild(item)
+
+ this.open(e, action.action, item)
+
+
+ } else {
+
+ let item = html`${raw(action.label)}`
+
+ menu.appendChild(item)
+
+ item.addEventListener(this.event, (e)=>{
+ e.detail.preventOriginalEvent = true
+ action.action()
+ this.close()
+ })
+
+ }
+
+ }
+
+ if (parent) parent.appendChild(menu)
+
+ if (!parent) {
+
+ this.menu = menu
+
+ this.root.appendChild(menu)
+
+ DOM.each(menu, '.item', (item)=>{
+ item.addEventListener('mouseenter', ()=>{
+ DOM.each(item.parentNode, '.focus', (focused)=>{
+ focused.classList.remove('focus')
+ })
+ item.classList.add('focus')
+ })
+ item.addEventListener('mouseleave', ()=>{
+ if (!item.classList.contains('has-sub')) item.classList.remove('focus')
+ })
+ })
+
+ menu.style.top = e.pageY + 'px'
+ menu.style.left = e.pageX + 'px'
+
+ this.correctPosition(menu)
+
+ DOM.each(menu, '.context-menu', (m)=>{
+ this.correctPosition(m, m.parentNode)
+ })
+
+ }
+
+
+ }
+
+ close() {
+
+ if (this.menu) {
+
+ this.menu.parentNode.removeChild(this.menu)
+ this.menu = null
+
+ }
+
+ }
+
+ correctPosition(menu, parent) {
+
+ var position = DOM.offset(menu),
+ width = menu.offsetWidth,
+ height = menu.offsetHeight,
+ totalWidth = this.root.offsetWidth,
+ totalHeight = this.root.offsetHeight
+
+ if (width + position.left > totalWidth) {
+ menu.style.right = parent ? '100%' : '0'
+ menu.style.left = 'auto'
+ menu.style.marginRight = '2rem'
+ }
+
+ if (height + position.top > totalHeight) {
+ menu.style.top = 'auto'
+ menu.style.bottom = '2rem'
+ }
+
+ }
+
+}
+
+var contextMenu = new ContextMenu()
+
+var handleClick = function(event) {
+
+ if (!EDITING) return
+
+ if (contextMenu.menu && !contextMenu.menu.contains(event.target)) contextMenu.close()
+
+ if (!event.detail[multiSelectKey] && event.type !== 'fast-right-click' && (
+ event.target.classList.contains('ui-resizable-handle') ||
+ event.target.classList.contains('ui-draggable-handle') ||
+ event.target.id === 'open-toggle'
+ )) { return }
+
+ var eventData = event.detail,
+ widget = widgetManager.getWidgetByElement(eventData.target, ':not(.not-editable)')
+
+ if (!widget) return
+
+ // if the widget is not already selected
+ if (!widget.container.classList.contains('editing')) {
+ // add a flag to the original event to prevent draginit
+ // and prevent any further fast-click (ie input focus)
+ eventData.capturedByEditor = true
+ event.capturedByEditor = true
+ }
+
+
+ if (event.type !== 'fast-right-click') {
+ editor.select(widget, {multi: event.detail[multiSelectKey]})
+ }
+
+ // right-click menu
+ if (event.type !== 'fast-right-click') return
+
+ if (!event.detail.shiftKey && !event.detail[multiSelectKey] && editor.selectedWidgets.length <= 1) {
+ editor.select(widget)
+ }
+
+ if (!editor.selectedWidgets.length) return
+
+ var index = editor.selectedWidgets.map((w)=>DOM.index(w.container)).sort((a,b)=>{return b-a}),
+ data = editor.selectedWidgets.map((w)=>w.props),
+ type = editor.selectedWidgets[0].props.type == 'tab' ? 'tab' : 'widget',
+ parent = editor.selectedWidgets[0].parent,
+ actions = []
+
+ // case root: only "add tab" option
+ if (parent === widgetManager) {
+ actions.push({
+ label: icon('plus') + ' ' + locales('editor_addtab'),
+ action: ()=>{
+ data[0].tabs.push({})
+
+ var indexes = {addedIndexes: [data[0].tabs.length -1]}
+ updateWidget(editor.selectedWidgets[0], indexes)
+ editor.pushHistory(indexes)
+ }
+ })
+ contextMenu.open(eventData, actions)
+
+ return
+ }
+
+ // case !root
+
+ var clickX = Math.round((eventData.offsetX + eventData.target.scrollLeft) / (GRIDWIDTH * PXSCALE)) * GRIDWIDTH,
+ clickY = Math.round((eventData.offsetY + eventData.target.scrollTop) / (GRIDWIDTH * PXSCALE)) * GRIDWIDTH
+
+ actions.push({
+ label: icon('expand') + ' ' + locales('editor_editparent'),
+ action: ()=>{
+ editor.select(parent)
+ }
+ })
+
+ if (type === 'widget') {
+
+ actions.push({
+ label: icon('copy') + ' ' + locales('editor_copy'),
+ action: editor.copyWidget.bind(editor)
+ })
+
+ actions.push({
+ label: icon('cut') + ' ' + locales('editor_cut'),
+ action: editor.cutWidget.bind(editor)
+ })
+
+ var wrapActions = []
+ for (let c of categories.Containers) {
+ if (c === 'clone') continue
+ wrapActions.push({
+ label: c,
+ action: ()=>{
+ var wrap = {type: c, widgets:[], label: c === 'modal' ? 'auto' : false}
+
+ wrap.widgets = data
+
+ var minTop = Math.min(...data.map(x=>isNaN(x.top) ? x.top == 'auto' ? 0 : Infinity : x.top))
+ var minLeft = Math.min(...data.map(x=>isNaN(x.left) ? x.left == 'auto' ? 0 : Infinity : x.left))
+
+ wrap.top = minTop === Infinity ? data[0].top : minTop
+ wrap.left= minLeft === Infinity ? data[0].left : minLeft
+
+ for (var w of wrap.widgets) {
+ if (!isNaN(w.top)) w.top = Math.max(w.top - minTop, 0)
+ if (!isNaN(w.left)) w.left = Math.max(w.left - minLeft, 0)
+ }
+
+ var i
+ for (i of index) {
+ parent.props.widgets.splice(i,1)
+ }
+
+ parent.props.widgets = parent.props.widgets.slice(0, i).concat(wrap, parent.props.widgets.slice(i, parent.props.widgets.length))
+
+ editor.select(updateWidget(parent, {preventSelect: true, removedIndexes: index, addedIndexes: [i]}))
+ editor.pushHistory({removedIndexes: index, addedIndexes: [i]})
+
+ }
+ })
+ }
+
+ actions.push({
+ label: icon('box') + ' ' + locales('editor_wrap'),
+ action: wrapActions
+ })
+
+ }
+
+
+ if (data.length == 1 && (!data[0].tabs || !data[0].tabs.length) && (data[0].widgets)) {
+
+ if (editor.clipboard !== null) {
+
+ var pasteActions = []
+
+ pasteActions.push({
+ label: icon('paste') + ' ' + locales('editor_paste'),
+ action: ()=>{
+ editor.pasteWidget(clickX, clickY)
+ }
+ })
+ pasteActions.push({
+ label: icon('plus-square') + ' ' + locales('editor_pasteindent'),
+ action: ()=>{
+ editor.pasteWidget(clickX, clickY, true)
+ }
+ })
+
+ if (editor.idClipboard && widgetManager.getWidgetById(editor.idClipboard).length) {
+ pasteActions.push({
+ label: icon('clone') + ' ' + locales('editor_clone'),
+ action: ()=>{
+ editor.pasteWidgetAsClone(clickX, clickY)
+ }
+ })
+ }
+
+ actions.push({
+ label: icon('paste') + ' ' + locales('editor_paste'),
+ action: pasteActions
+ })
+
+ }
+
+
+ var addActions = []
+
+ for (let category in categories) {
+
+ var catActions = []
+
+ for (let t in categories[category]) {
+
+ let type = categories[category][t]
+
+ catActions.push({
+
+ label: type,
+ action: ()=>{
+
+ var newData = {type: type}
+
+ if (!eventData.target.classList.contains('tablink')) {
+ newData.top = clickY
+ newData.left= clickX
+ }
+
+ data[0].widgets = data[0].widgets || []
+ data[0].widgets.push(newData)
+
+ var indexes = {addedIndexes: [data[0].widgets.length -1]}
+ updateWidget(editor.selectedWidgets[0], indexes)
+ editor.pushHistory(indexes)
+
+ }
+ })
+
+ }
+
+ addActions.push({
+ label: category,
+ action: catActions
+ })
+
+ }
+
+ actions.push({
+ label: icon('plus') + ' ' + locales('editor_addwidget'),
+ action: addActions
+ })
+
+ }
+
+ if (data.length == 1 && (!data[0].widgets || !data[0].widgets.length) && (data[0].tabs)) {
+
+ actions.push({
+ label: icon('plus') + ' ' + locales('editor_addtab'),
+ action: ()=>{
+ data[0].tabs = data[0].tabs || []
+ data[0].tabs.push({})
+
+ var indexes = {addedIndexes: [data[0].tabs.length -1]}
+ updateWidget(editor.selectedWidgets[0], indexes)
+ editor.pushHistory(indexes)
+
+ }
+ })
+
+ }
+
+ actions.push({
+ label: icon('trash') + ' ' + locales('editor_delete'),
+ action: editor.deleteWidget.bind(editor)
+ })
+
+ contextMenu.open(eventData, actions)
+
+}
+
+document.addEventListener('fast-right-click', handleClick, true)
+document.addEventListener('fast-click', handleClick, true)
diff --git a/src/client/editor/data-workers.mjs b/src/client/app/editor/data-workers.js
similarity index 69%
rename from src/client/editor/data-workers.mjs
rename to src/client/app/editor/data-workers.js
index 3a1b1f8e..53133afd 100644
--- a/src/client/editor/data-workers.mjs
+++ b/src/client/app/editor/data-workers.js
@@ -1,30 +1,29 @@
-import widgetManager from '../managers/widgets.mjs'
-import stateManager from '../managers/state.mjs'
-import parser from '../parser.mjs'
-import * as resize from '../events/resize.mjs'
+var widgetManager = require('../managers/widgets'),
+ resize = require('../events/resize'),
+ stateManager = require('../managers/state'),
+ parser = require('../parser'),
+ Panel,
+ sidepanel,
+ editor,
+ scrollState = {},
+ sidepanelScroll
-var Panel, Matrix, editor
-;(async()=>{
- Panel = (await import('../widgets/containers/panel.mjs')).default
- Matrix = (await import('../widgets/containers/matrix.mjs')).default
- editor = (await import('./index.mjs')).default
-})()
-
-var scrollState = {}
+DOM.ready(()=>{
+ sidepanel = DOM.get('#sidepanel')[0]
+})
function updateWidget(widget, options={}) {
- if (options.editedProps) {
+ if (options.changedProps) {
// alternate routine for small edits
- var propNames = options.editedProps
+ var propNames = options.changedProps
if (
// if non dynamic props have changed, skip this and use rebuild routine
!propNames.some(n => !widget.isDynamicProp(n))
) {
- var edited = widget.updateProps(options.editedProps, null, {fromEditor: true}) || widget
- editor.widgetTree.updateTree(editor.selectedWidgets)
+ var edited = widget.updateProps(options.changedProps, null, {fromEditor: true}) || widget
if (editor.selectedWidgets.includes(widget) && !options.preventSelect) {
editor.select(edited)
@@ -37,13 +36,34 @@ function updateWidget(widget, options={}) {
}
- if (!widget.mounted) {
- console.debug(`updateWidget prevented on ${widget.getProp('id')} (widget not mounted yet)`)
- return
- }
-
var reuseChildren = options.reuseChildren !== false && widget instanceof Panel
- && !(widget instanceof Matrix)
+
+ // save state
+ if (stateManager.queueCounter === 0) {
+ sidepanelScroll = sidepanel.scrollTop
+ scrollState = {}
+ }
+ stateManager.incrementQueue()
+ var toSave = [widget]
+ if (!reuseChildren) {
+ toSave = toSave.concat(widget.getAllChildren())
+ }
+ for (let w of toSave) {
+ if (widgetManager.widgets[w.hash]) {
+ let id = w.getProp('id'),
+ value = w.getValue(),
+ valueProp = w.getProp('value')
+
+ stateManager.pushValueState(id, value)
+ if (valueProp !== '' && valueProp !== undefined) stateManager.pushValueOldProp(id, valueProp)
+ }
+ if (widgetManager.scrollingWidgets.indexOf(w.hash) > -1 && w.scroll) {
+ var s = w.scroll()
+ if (s[0] !== 0 || s[1] !== 0) {
+ scrollState[w.getProp('id')] = s
+ }
+ }
+ }
var children = undefined,
removedChildren = []
@@ -68,35 +88,11 @@ function updateWidget(widget, options={}) {
// get widget's index
var index = widget.parent.children.indexOf(widget)
- // list widgets to remove
- removedChildren = removedChildren.filter(x => x !== undefined)
+ // remove old widgets
var removedWidgets = reuseChildren ?
- removedChildren.map(x => x.getAllChildren().concat(x)).concat(widget).reduce((a,b)=>a.concat(b), []) :
+ removedChildren.map(x => x.getAllChildren().concat(x)).concat(widget) :
widget.getAllChildren().concat(widget)
- // save state
- if (stateManager.queueCounter === 0) {
- scrollState = {} // scrollable modals don't store their scroll state in their value
- }
- stateManager.incrementQueue()
- for (let w of removedWidgets) {
- if (widgetManager.widgets[w.hash]) {
- let id = w.getProp('id'),
- value = w.getValue(),
- valueProp = w.getProp('value')
-
- stateManager.pushValueState(id, value)
- if (valueProp !== '' && valueProp !== undefined) stateManager.pushValueOldProp(id, valueProp)
- }
- if (w.getProp('scroll') && w.getProp('type') === 'modal') {
- var s = w.getScroll()
- if (s[0] !== 0 || s[1] !== 0) {
- scrollState[w.getProp('id')] = s
- }
- }
- }
-
- // remove old widgets
widgetManager.removeWidgets(removedWidgets)
// create new widget
@@ -105,17 +101,15 @@ function updateWidget(widget, options={}) {
parent: widget.parent,
parentNode: widget.parentNode,
reCreateOptions: options.reCreateOptions,
- locals: widget.parsersLocalScope,
- variables: widget.variables,
- hash: widget.hash,
children: children,
- index: index,
- meta: widget.meta
+ index: index
})
+
newWidget.container.parentNode.replaceChild(newWidget.container, widget.container)
if (newWidget.getProp('type') === 'tab') newWidget.parent.trigger('tab-created', {widget: widget})
+ if (newWidget.getProp('id') === 'root') DOM.get('.editor-root')[0].setAttribute('data-widget', newWidget.hash)
if (reuseChildren && !(newWidget instanceof Panel)) {
@@ -139,15 +133,14 @@ function updateWidget(widget, options={}) {
// restore state
stateManager.decrementQueue()
if (stateManager.queueCounter === 0) {
+ sidepanel.scrollTop = sidepanelScroll
for (let id in scrollState) {
for (let w of widgetManager.getWidgetById(id)) {
- if (w.getProp('scroll')) w.setScroll(scrollState[id][0], scrollState[id][1])
+ if (w.scroll) w.scroll(scrollState[id])
}
}
}
- editor.widgetTree.updateTree(editor.selectedWidgets)
-
if (editor.selectedWidgets.includes(widget) && !options.preventSelect) {
editor.select(newWidget)
}
@@ -170,26 +163,16 @@ var incrementWidget = function(data, root){
}
}
- if (Array.isArray(data)) {
- for (let i in data) {
- data[i] = incrementWidget(data[i], false)
- }
- return data
- }
+ var id = data.id,
+ address = data.address
- var id = String(data.id),
- address = String(data.address)
-
- if (id && address == '/' + id) {
+ if (id && address == '/'+id) {
data.address = 'auto'
- } else if (!address.match(/^(auto|\/control|\/note|\/program|\/sysex|\/mtc|\/key_pressure|\/channel_pressure|\/pitch)$/)) {
-
- var addressref = widgetManager.createAddressRef(null, data.preArgs,address)
-
+ } else if (address){
+ var addressref
while (fakeStore.address.indexOf(address) != -1 || widgetManager.getWidgetByAddress(addressref).length) {
-
address = address.replace(/([0-9]*)$/,function(m){
var n = parseInt(m)+1
n = isNaN(n)?1:n
@@ -235,7 +218,10 @@ var incrementWidget = function(data, root){
}
-export {
- updateWidget,
- incrementWidget
+module.exports = {
+ updateWidget:updateWidget,
+ incrementWidget:incrementWidget
}
+
+editor = require('./')
+Panel = require('../widgets/containers/panel')
diff --git a/src/client/app/editor/diff.js b/src/client/app/editor/diff.js
new file mode 100644
index 00000000..8f2902a9
--- /dev/null
+++ b/src/client/app/editor/diff.js
@@ -0,0 +1,32 @@
+module.exports = {
+
+ diff: require('jsondiffpatch'),
+
+ diffToWidget: function(widget, diff) {
+
+ // traverse a diff patch and the associated widget
+ // to return the first node (widget and sub-patch) with actual changes
+
+ var children = diff.tabs || diff.widgets
+
+ if (children) {
+ var childrenKeys = Object.keys(children),
+ deletedChildren = childrenKeys.filter(x => typeof x === 'string' && x.match(/_[0-9]+/)),
+ changedChildren = childrenKeys.filter(x => !isNaN(x))
+ }
+
+ if (
+ !children ||
+ Array.isArray(children) || // 'tabs' or 'widgets' property created
+ deletedChildren.length || // 'tabs' or 'widgets' property created
+ changedChildren.length !== 1 || // children reordered (or same property edited in multiple widgets, but case ignored)
+ Array.isArray(children[changedChildren[0]]) // child item created
+ ) {
+ return [widget, diff]
+ }
+
+ return module.exports.diffToWidget(widget.children[changedChildren[0]], children[changedChildren[0]])
+
+ }
+
+}
diff --git a/src/client/app/editor/edit-field.js b/src/client/app/editor/edit-field.js
new file mode 100644
index 00000000..009d28b3
--- /dev/null
+++ b/src/client/app/editor/edit-field.js
@@ -0,0 +1,240 @@
+var widgetCategories = require('../widgets/').categories,
+ {updateWidget} = require('./data-workers'),
+ widgetManager = require('../managers/widgets'),
+ {deepCopy} = require('../utils'),
+ {icon, Popup} = require('../ui/utils'),
+ locales = require('../locales'),
+ html = require('nanohtml'),
+ raw = require('nanohtml/raw')
+
+module.exports = function editField(editor, widget, propName, defaultValue){
+
+ let dynamic = widget.isDynamicProp(propName),
+ disabled = widget.disabledProps.indexOf(propName) > -1,
+ error = widget.errors[propName]
+
+ let field = html`
+
+ `
+
+ let input
+
+ if (propName !== 'widgets' && propName !== 'tabs') {
+
+ if (propName == 'type') {
+
+ if (widget.props.type == 'tab' || widget.props.type == 'root') {
+ field.classList.add('disabled')
+ field.appendChild(html``)
+ return field
+ }
+
+ input = html``
+
+ for (let category in widgetCategories) {
+ var optGroup = html`