Commit Graph

126 Commits

Author SHA1 Message Date
David Négrier
e710c441b1 Improving typings
This PR solves a number of issues (but not all) found when enabling the rule ESLint rule "@typescript-eslint/no-unsafe-call" in the front.
2022-05-11 11:57:12 +02:00
Alexis Faizeau
9c5fcd2fd8
Implement UI Website (#2087)
* Implement UI Website system

* Add UIWebsite documentation

* Implement review fixes

* Add getAll function on UIWebsite

Co-authored-by: Alexis Faizeau <a.faizeau@workadventu.re>
2022-05-04 18:30:31 +02:00
CEC
53b084ea7f Add new Swagger Doc for the pusher 2022-04-28 11:39:08 +02:00
Piotr Hanusiak
69bf8a814b
Upgrading @home-based-studio/phaser3-utils to a version that fixes the trackpad issue (#2124)
Co-authored-by: Piotr 'pwh' Hanusiak <p.hanusiak@workadventu.re>
2022-04-27 16:16:23 +02:00
David Négrier
eaacb4b31a Updating i18n-typesafe version to 5.4.0
This should help us fix issues with watcher compiling files in a loop in dev mode.
2022-04-26 15:07:09 +02:00
Lukas
9e0f43d542
lazy load locales (#1940)
* lazy load locales

* fix translation getter

* prettier ignore all generated i18n files

* fix menu translation reactivity

* put language and country translations into namespace

* use Intl.DisplayNames to provide language and region translations

* update typesafe-i18n

* fix newly added translations

* remove unused translations

* add fallback to locale code when Intl.DisplayNames is unavailable
2022-04-25 16:45:02 +02:00
David Négrier
2412f4076f
Fixing compatibility issue with Safari 14- (#2117)
By upgrading ts-deep-copy, we are fixing an issue introduced that made iOS 14- devices incompatible with WA.
2022-04-25 12:10:54 +02:00
David Négrier
6920836e47 Merge branch 'master' of github.com:thecodingmachine/workadventure into develop 2022-04-13 15:12:06 +02:00
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
David Négrier
a99815a1b4 Fixing comparison of constraints state
Comparison was broken because we were not performing a deep comparison.
2022-04-11 21:46:30 +02:00
David Négrier
9e5c6d14e4 Merge branch 'develop' of github.com:thecodingmachine/workadventure into new_custom_woka_scene 2022-04-04 13:42:51 +02:00
Lukas
50a4481704
Update vite-plugin-env-config (#2025)
* Update vite-plugin-env-config
2022-04-01 18:47:28 +02:00
Piotr 'pwh' Hanusiak
7afa53840e update dependencies 2022-03-28 14:55:20 +02:00
Piotr 'pwh' Hanusiak
ee88bf1b99 Merge branch 'develop' into new_custom_woka_scene 2022-03-28 12:30:26 +02:00
Piotr 'pwh' Hanusiak
f656702bb9 merged develop 2022-03-24 14:56:42 +01:00
David Négrier
38847afebf Restoring WA object in the iframe_api.ts file to avoid breaking compatibility
The WA object was missing in window otherwise because window.d.ts was not bundled in the package.
2022-03-23 22:57:53 +01:00
Piotr 'pwh' Hanusiak
ac48a42903 further work on vertical layout 2022-03-16 14:05:35 +01:00
David Négrier
153bffd521 Wait for main character to be loaded to display the GameScene
This change makes sure the character of the current player is fully loaded before we display the game scene.
Otherwise, you could have a glitch for 0.5-2 seconds between the GameScene being displayed and the actual character being displayed.
2022-03-15 13:51:36 +01:00
Piotr 'pwh' Hanusiak
43bac6c5cf get rid of zoom factor 2022-03-15 11:31:01 +01:00
Lukas Hass
cc24fd48d5
update generic-type-guard and @geprog/vite-plugin-env-config
allows to get rid of node built-in polyfills
2022-02-19 00:13:25 +01:00
Lukas Hass
c163107875
import browserified version of simple-peer 2022-02-17 15:02:48 +01:00
Lukas Hass
ae46a1faf1
Merge branch 'develop' into vite 2022-02-14 19:47:27 +01:00
David Négrier
7a44f3dcb8
Merge pull request #1853 from anbraten/remove-external-deps
Bundle nes.css and quill-js
2022-02-14 18:46:19 +01:00
Lukas Hass
29cdb1a8e5
Merge branch 'develop' into vite 2022-02-13 11:46:26 +01:00
David Négrier
a91f022fd2 Making typesafe-i18n watch by default 2022-02-11 15:47:57 +01:00
Anton Bracke
3dbd83ac47
load nes.css from npm 2022-02-11 15:47:17 +01:00
Lukas Hass
faf6be889e
add typecheck script 2022-02-03 18:41:13 +01:00
Lukas Hass
ee92e19be6
Merge branch 'develop' into vite 2022-02-03 02:38:46 +01:00
Lukas Hass
bd72022b13
remove webpack 2022-02-03 02:23:58 +01:00
Lukas Hass
7f9d318074
update sass 2022-02-03 02:14:49 +01:00
Lukas Hass
984c1e4502
add vite config to build iframe api 2022-02-02 00:20:46 +01:00
Alexis Faizeau
1124ed5a5e Implement cancelable woka resource 2022-02-01 15:17:04 +01:00
Lukas Hass
7fbd4c85cb
build iframe-api-typings with tsc 2022-02-01 11:22:33 +01:00
Lukas Hass
b1d9e603b8
fix redirect when map url is present 2022-02-01 11:15:52 +01:00
Lukas Hass
2d8fa591cf
migrate build script to vite 2022-02-01 01:46:05 +01:00
Lukas Hass
4ad91f41a3
update svelte and svelte-preprocess 2022-02-01 00:37:49 +01:00
Lukas Hass
3d6b8b6063
run vite in docker 2022-01-31 17:36:38 +01:00
Lukas Hass
b83fc77183
use vite plugin for env-config generation 2022-01-31 16:56:50 +01:00
Lukas Hass
5091e8d649
add vite and svelte plugin 2022-01-31 16:20:17 +01:00
Alexis Faizeau
5f1dd09cb9 Implement minimizer for css/scss 2022-01-27 16:34:58 +01:00
Alexis Faizeau
fdec12d311 Generate i18n files on ci/cd 2022-01-24 18:59:28 +01:00
Alexis Faizeau
446b4639c7 Implement typesafe-i18n 2022-01-24 18:59:28 +01:00
Alexis Faizeau
1789f36a63 Implement zod checking on translator compiler 2022-01-21 17:09:29 +01:00
Nolway
8a2767ef40 Implement Translator: i18n system 2022-01-21 17:09:29 +01:00
Hanusiak Piotr
000b2cfe73 created PathfindingManager. WIP 2022-01-14 12:49:18 +01:00
David Négrier
bf070c33b5 Migrating front protobuf encode/decode to ts-proto lib
The ts-proto lib has the huge advantage of producing code the "Typescript" way and not the "Java" way.
In particular, for "oneof" types in protobuf, it is generating "ADT" that can be used to check if we forgot or not to deal with a type.
2022-01-03 15:52:46 +01:00
David Négrier
9efa115982 Merge branch 'master' of github.com:thecodingmachine/workadventure into develop 2021-12-23 11:04:20 +01:00
David Négrier
bbef3b3eaf Upgrade Typescript to 4.5
This commit contains the new Typescript version but NOT the fixes needed to have the project compiling.
2021-12-13 16:45:16 +01:00
David Négrier
7a6e250a58 Fixing map caching
Maps in the GameScene can be modified by the scripting API.
If so, previously, the changes to the maps were persisted in the ITiledMap object in the GameScene because this was cached by the Phaser loader,
causing a series of problems, the most noticeable being that templating in the scripting API stopped working on a second visit of a page.

We are now deep-copying the map on load to avoid these nasty effects.

Closes https://github.com/workadventure/scripting-api-extra/issues/77
2021-12-08 14:23:00 +01:00
David Négrier
2495aa1faf
Merge pull request #1615 from thecodingmachine/dependabot/npm_and_yarn/front/joeattardi/emoji-button-4.6.2
Bump @joeattardi/emoji-button from 4.6.0 to 4.6.2 in /front
2021-12-07 09:14:10 +01:00