Commit Graph

166 Commits

Author SHA1 Message Date
Alexis Faizeau
d1e8243c47
Zod EVERYWHERE (#2027)
* Zod EVERYWHERE

* Add no-unused-vars rule to eslint in front

* Add no-unused-vars rule to eslint in pusher

* Add no-unused-vars rule to eslint in back

* Remove unused PlayerTexture guards

* Fix data providing on room connection

Co-authored-by: Alexis Faizeau <a.faizeau@workadventu.re>
2022-04-12 14:21:19 +02:00
qlouis1
387853b139 Fix broken link in getting started
Link to scripting API was broken, pointing to 404.
Maybe it should link directly to the API reference page ?
2022-04-07 14:50:34 +02:00
Piotr Hanusiak
d4dcd0d5ce
Actions menu api (#1862)
* wip

* wip

* random action on click

* removing actions

* register single key per command use

* change removeActionsMenu action name

* fixed actions menu not hiding content properly:

* actions menu fix

* added mock Block Player action

* ActionsMenu buttons styling

* added displaying priority for menu actions

* moved utils actionMenu features to the UI

* import as a type:

* more object oriented style for API

* removed registered actions from RemotePlayer instance

* readme update

* Fixing typos / Improving wording

* added instructions on AlterActionsMenu test map

Co-authored-by: Hanusiak Piotr <piotr@ltmp.co>
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
2022-03-14 10:15:10 +01:00
David Négrier
6540f15c5b
Refactoring Woka management (#1810)
* Wrap websockets with HyperExpress

* Add endpoints on pusher to resolve wokas

* getting textures urls from pusher

* Adding OpenAPI documentation for the pusher.

The pusher now exposes a "/openapi" endpoint and a "/swagger-ui/" endpoint.

* revert FRONT_URL

* playerTextures metadata is being loaded via Phaser.Loader

* fetch textures every time character or customize scene is open

* Heavy changes: refactoring the pusher to always send the textures (and the front to accept them)

* Sending character layer details to admin

* Cleaning commented code

* Fixing regex

* Fix woka endpoints on pusher

* Change error wording on pusher

* Working on integration of the woka-list with the new admin endpoint.

* Switching from "name" to "id" in texture object + using zod for woka/list validation

* Add position on default woka data

* Remove async on pusher option method

* Fix woka list url

* add options for /register

* Fxiing loading the Woka list

* Actually returning something in logout-callback

* Copying messages to back too

* remove customize button if no body parts are available (#1952)

* remove customize button if no body parts are available

* remove unused position field from PlayerTexturesCollection interface

* removed unused label field

* fix LocalUser test

* little PlayerTextures class refactor

* Fixing linting

* Fixing missing Openapi packages in prod

* Fixing back build

Co-authored-by: Hanusiak Piotr <piotr@ltmp.co>
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>

* Add returns on pusher endpoints

Co-authored-by: Alexis Faizeau <a.faizeau@workadventu.re>
Co-authored-by: Hanusiak Piotr <piotr@ltmp.co>
Co-authored-by: Piotr Hanusiak <wacneg@gmail.com>
2022-03-11 17:02:58 +01:00
Benedicte Quimbert
b5c8214c22 Documents the meetingRoomLabel property 2022-02-23 18:27:16 +01:00
David Négrier
d0af766394 Adding missing reference to Camera doc 2022-02-14 09:07:37 +01:00
Hanusiak Piotr
9cccdca3dc docs update 2022-02-09 11:09:20 +01:00
Alexis Faizeau
e51300e850 Add cowebsite percentWidth property to the documention 2022-02-07 17:53:36 +01:00
Alexis Faizeau
4436db0d3d Add new cowebsite properties on documention 2022-01-27 16:34:58 +01:00
David Négrier
ef2f8b141f
Merge pull request #1743 from thecodingmachine/move-to-from-hash-parameter
Move to from hash parameter
2022-01-25 14:12:26 +01:00
Hanusiak Piotr
90a76e9f04 fixed layer name in docs 2022-01-25 11:03:58 +01:00
Piotr Hanusiak
1ca56efd42
Update docs/maps/entry-exit.md
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
2022-01-25 10:58:59 +01:00
Hanusiak Piotr
40366eb070 readme update 2022-01-25 10:20:21 +01:00
Alexis Faizeau
2312d2e129
Merge pull request #1629 from thecodingmachine/translator
Translator: i18n
2022-01-25 09:48:48 +01:00
Alexis Faizeau
446b4639c7 Implement typesafe-i18n 2022-01-24 18:59:28 +01:00
Hanusiak Piotr
b5887bceb4 PR fixes 2022-01-24 17:03:14 +01:00
David Négrier
ad2dd1c8d5
Merge pull request #1740 from thecodingmachine/feature-move-character-api
Feature move character api
2022-01-22 22:26:33 +01:00
David Négrier
d8327d1b72
Apply suggestions from code review
Fixing missing return attribute in doc
2022-01-22 22:20:41 +01:00
Alexis Faizeau
4eb98fa975 Add an unsubscribe on enterLayer documentation 2022-01-21 17:28:58 +01:00
David Négrier
51c3f1d972 Refactoring translator to use "_" instead of "translator._".
This is shorter and pollutes less the code.
2022-01-21 17:09:29 +01:00
Nolway
31b92da6ce Move translate documentation 2022-01-21 17:09:29 +01:00
Nolway
77f8426788 Add translator documentation 2022-01-21 17:09:29 +01:00
Hanusiak Piotr
72c7eae559 readme changes 2022-01-20 12:54:55 +01:00
Hanusiak Piotr
ef02a06ad7 more details to the readme 2022-01-19 15:32:26 +01:00
Hanusiak Piotr
e70289c61d add WA.player.moveTo command to the readme 2022-01-19 15:28:49 +01:00
Hanusiak Piotr
a344d8c2bc api-camera docs update 2022-01-14 12:38:16 +01:00
David Négrier
82c2d21423
Merge pull request #1654 from thecodingmachine/feature-camera-management
Feature camera management
2022-01-14 11:57:05 +01:00
Hanusiak Piotr
a1c96b0524 merged develop 2022-01-13 10:44:06 +01:00
David Négrier
9425fd70c0 Adding a new property to prevent script from being loaded in "modules" mode
Scripts in module mode need to be abide by the Same Origin Policy (CORS headers are used to load them)
This can cause issues on some setups.

This commit adds a new "scriptDisableModuleSupport" that can be used to disable the "modules" mode.

Closes #1721
2022-01-12 17:36:31 +01:00
Bénédicte Q
5d0aa835a2
Apply suggestions from code review
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
2022-01-03 14:21:59 +01:00
Bénédicte Q
7c34e0a435
Update docs/maps/api-camera.md
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
2022-01-03 14:19:55 +01:00
Benedicte Quimbert
8157ee4603 Completes documentation 2022-01-03 11:45:47 +01:00
Benedicte Quimbert
99f9d56c5c Updates room documentation for embeddedWebsite properties 2022-01-03 11:45:47 +01:00
Bénédicte Q
73efdab52f Update docs/maps/api-camera.md
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
2022-01-03 11:45:47 +01:00
Bénédicte Q
864ff49af5 Update docs/maps/api-camera.md
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
2022-01-03 11:45:47 +01:00
Benedicte Quimbert
9cf64c3c76 Documentation on type Position 2022-01-03 11:45:47 +01:00
Benedicte Quimbert
ddb4ae8823 Documentation 2022-01-03 11:45:47 +01:00
Benedicte Quimbert
1e073d8a0e Refactoring and documentation update 2022-01-03 11:45:47 +01:00
Benedicte Quimbert
4356767739 Adds the camera to available APIs with retrieving of the worldView 2022-01-03 11:45:47 +01:00
Benedicte Quimbert
c93b9bc7ae Updates documentation 2022-01-03 11:45:47 +01:00
Bénédicte Q
8bc75e1ccb Update docs/maps/api-player.md
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
2022-01-03 11:45:47 +01:00
Benedicte Quimbert
e39e341ab7 Adds documentation on player properties 2022-01-03 11:45:47 +01:00
David Négrier
90f7287860 Adding the ability to set the player's color outline via the scripting API
(currently not shared with the other players yet)
2021-12-21 17:02:53 +01:00
David Négrier
994f8b405f
Merge pull request #1652 from thecodingmachine/small_doc_improve
Changing slightly wording of misleading phrase
2021-12-16 10:09:45 +01:00
David Négrier
a5ecac290c Changing slightly wording of misleading phrase 2021-12-16 10:08:10 +01:00
Hanusiak Piotr
5aa2b46989 camera docs update 2021-12-16 09:51:30 +01:00
David Négrier
e2afb6ec02
Merge pull request #1626 from workadventure-xce/fix/mapProperties
Display link to map in map credits if provided in map properties
2021-12-15 17:12:34 +01:00
Hanusiak Piotr
99ffb7b450 merged develop 2021-12-15 15:23:21 +01:00
David Négrier
0a705eadf9
Merge pull request #1616 from Waclaw-I/feature-camera-zone-focus
Focusable zones
2021-12-14 15:43:45 +01:00
Hanusiak Piotr
960c247b20 added documentation for Focusable Zones 2021-12-14 12:03:05 +01:00