Paste P7923

termbox store persistent accross SSR requests
ActivePublic

Authored by Pablo-WMDE on Mon, Dec 17, 3:14 PM.
# running vuex with https://vuex.vuejs.org/guide/plugins.html#built-in-logger-plugin
pagr@C217:~/projects/wikibase-termbox$ docker run --rm -p"3030:3030" -e WIKIBASE_REPO_API=https://www.wikidata.org/w/api.php -e SSR_PORT=3030 wmde/wikibase-termbox-production
Set WIKIBASE_REPO_API env to https://www.wikidata.org/w/api.php
Set SSR_PORT env to 3030
server is now running...
# calling http://localhost:3030/termbox?language=de&entity=Q42
mutation user/initializeLanguage @ 15:11:26.061
%c prev state color: #9E9E9E; font-weight: bold { entity: { id: '', labels: {}, descriptions: {}, aliases: {} },
user: { primaryLanguage: **''** },
language: { translations: {}, languages: {} } }
%c mutation color: #03A9F4; font-weight: bold { type: 'user/initializeLanguage', payload: 'de' }
%c next state color: #4CAF50; font-weight: bold { entity: { id: '', labels: {}, descriptions: {}, aliases: {} },
user: { primaryLanguage: **'de'** },
language: { translations: {}, languages: {} } }
# calling http://localhost:3030/termbox?language=en&entity=Q42
mutation user/initializeLanguage @ 15:11:35.936
%c prev state color: #9E9E9E; font-weight: bold { entity: { id: '', labels: {}, descriptions: {}, aliases: {} },
user: { primaryLanguage: **'de'** },
language: { translations: {}, languages: {} } }
%c mutation color: #03A9F4; font-weight: bold { type: 'user/initializeLanguage', payload: 'en' }
%c next state color: #4CAF50; font-weight: bold { entity: { id: '', labels: {}, descriptions: {}, aliases: {} },
user: { primaryLanguage: **'en'** },
language: { translations: {}, languages: {} } }
Pablo-WMDE created this paste.Mon, Dec 17, 3:14 PM
Pablo-WMDE changed the title of this paste from termox store persistent accross SSR requests to termbox store persistent accross SSR requests.Mon, Dec 17, 4:35 PM