@everymatrix/casino-random-game 0.0.367 → 0.0.369
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -30
- package/dist/casino-random-game.js +1 -1
- package/dist/casino-random-game.js.map +1 -1
- package/index.html +47 -47
- package/index.js +1 -1
- package/package.json +2 -2
- package/public/reset.css +47 -47
- package/rollup.config.js +59 -59
- package/src/CasinoRandomGame.svelte +334 -334
- package/src/i18n.js +27 -27
- package/src/index.ts +4 -4
- package/src/translations.js +58 -58
- package/stories/CasinoRandomGame.stories.js +13 -13
- package/tsconfig.json +6 -6
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# @everymatrix/casino-random-game
|
|
2
|
-
---------
|
|
3
|
-
|
|
4
|
-
## First step
|
|
5
|
-
---------
|
|
6
|
-
```
|
|
7
|
-
lerna bootstrap
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## Run Widget
|
|
11
|
-
---------
|
|
12
|
-
- starts server at port 5050
|
|
13
|
-
- has livereload
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
yarn run dev
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Build Widget
|
|
20
|
-
---------
|
|
21
|
-
```
|
|
22
|
-
yarn run build
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Publishing widget
|
|
26
|
-
---------
|
|
27
|
-
- Note add your user to the npm
|
|
28
|
-
```
|
|
29
|
-
lerna publish
|
|
30
|
-
```
|
|
1
|
+
# @everymatrix/casino-random-game
|
|
2
|
+
---------
|
|
3
|
+
|
|
4
|
+
## First step
|
|
5
|
+
---------
|
|
6
|
+
```
|
|
7
|
+
lerna bootstrap
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Run Widget
|
|
11
|
+
---------
|
|
12
|
+
- starts server at port 5050
|
|
13
|
+
- has livereload
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
yarn run dev
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Build Widget
|
|
20
|
+
---------
|
|
21
|
+
```
|
|
22
|
+
yarn run build
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Publishing widget
|
|
26
|
+
---------
|
|
27
|
+
- Note add your user to the npm
|
|
28
|
+
```
|
|
29
|
+
lerna publish
|
|
30
|
+
```
|
|
@@ -624,7 +624,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
624
624
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
625
625
|
PERFORMANCE OF THIS SOFTWARE.
|
|
626
626
|
***************************************************************************** */function $r(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}const Vr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Xr(){return Vr}const zr=Xe(!1);let Wr;const Kr=Xe(null);function Yr(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Zr(e,t=Xr().fallbackLocale){const r=Yr(e);return t?[...new Set([...r,...Yr(t)])]:r}function Jr(){return null!=Wr?Wr:void 0}Kr.subscribe((e=>{Wr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const qr=Object.assign(Object.assign({},Kr),{set:e=>{if(e&&function(e){if(null==e)return;const t=Zr(e);for(let e=0;e<t.length;e++){const r=t[e];if(Mr(r))return r}}(e)&&Fr(e)){const{loadingDelay:t}=Xr();let r;return"undefined"!=typeof window&&null!=Jr()&&t?r=window.setTimeout((()=>zr.set(!0)),t):zr.set(!0),jr(e).then((()=>{Kr.set(e)})).finally((()=>{clearTimeout(r),zr.set(!1)}))}return Kr.set(e)}}),Qr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},en=(e,t)=>{const{formats:r}=Xr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},tn=Qr((e=>{var{locale:t,format:r}=e,n=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=en("number",r)),new Intl.NumberFormat(t,n)})),rn=Qr((e=>{var{locale:t,format:r}=e,n=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=en("date",r):0===Object.keys(n).length&&(n=en("date","short")),new Intl.DateTimeFormat(t,n)})),nn=Qr((e=>{var{locale:t,format:r}=e,n=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=en("time",r):0===Object.keys(n).length&&(n=en("time","short")),new Intl.DateTimeFormat(t,n)})),on=Qr(((e,t=Jr())=>new Rr(e,t,Xr().formats,{ignoreTag:Xr().ignoreTag}))),an=(e,t={})=>{var r,n,o,i;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:u=Jr(),default:c}=a;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Cr(e,u);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!==(i=null!==(o=null===(n=(r=Xr()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:u,id:e,defaultValue:c}))&&void 0!==o?o:c)&&void 0!==i?i:e;if(!s)return l;let h=l;try{h=on(l,u).format(s)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},sn=(e,t)=>((e={})=>{var{locale:t=Jr()}=e,r=$r(e,["locale"]);return nn(Object.assign({locale:t},r))})(t).format(e),un=(e,t)=>((e={})=>{var{locale:t=Jr()}=e,r=$r(e,["locale"]);return rn(Object.assign({locale:t},r))})(t).format(e),cn=(e,t)=>((e={})=>{var{locale:t=Jr()}=e,r=$r(e,["locale"]);return tn(Object.assign({locale:t},r))})(t).format(e),ln=(e,t=Jr())=>Cr(e,t),hn=ze([qr,Nr],(()=>an));ze([qr],(()=>sn)),ze([qr],(()=>un)),ze([qr],(()=>cn)),ze([qr,Nr],(()=>ln)),window.emWidgets={topic:(e,t=0)=>{if(-1==je.indexOf(e)){let r=new ke(t);$e[e]=r,je.push(e)}return $e[e]}};const fn={en:{randomGame:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now"}},zh:{randomGame:{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放"}},de:{randomGame:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuf",playNowRandomGame:"Jetzt spielen"}},fr:{randomGame:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant"}},ro:{randomGame:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum"}},tr:{randomGame:{playRandomGame:"Rastgele Bir Oyun Oyna",randomGameLoading:"Oyun Seçiliyor",playNowRandomGame:"Şimdi Oyna"}},es:{randomGame:{playRandomGame:"Juega un juego aleatorio",randomGameLoading:"Lütfen bekleyin ...",playNowRandomGame:"Şimdi Oyna"}},pt:{randomGame:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora"}}};
|
|
627
|
-
/* src
|
|
627
|
+
/* src/CasinoRandomGame.svelte generated by Svelte v3.48.0 */function pn(e,t,r){const n=e.slice();return n[23]=t[r],n[25]=r,n}
|
|
628
628
|
// (78:4) {#if show}
|
|
629
629
|
function dn(e){let t,r,n,o,i,a,s,u=!/*slotDone*/e[5]&&mn(e),c=/*slotDone*/e[5]&&bn(e);return{c(){t=p("div"),r=p("div"),n=p("span"),n.innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',o=m(),u&&u.c(),i=m(),c&&c.c(),b(n,"class","ModalCloseBtn"),b(n,"part","ModalCloseBtn"),b(n,"role","button"),b(r,"class","ModalContainer"),b(r,"part","ModalContainer"),b(t,"class","ModalWindow"),b(t,"part","ModalWindow")},m(f,p){h(f,t,p),l(t,r),l(r,n),l(r,o),u&&u.m(r,null),l(r,i),c&&c.m(r,null),a||(s=y(n,"click",/*closeModal*/e[9]),a=!0)},p(e,t){/*slotDone*/e[5]?u&&(u.d(1),u=null):u?u.p(e,t):(u=mn(e),u.c(),u.m(r,i)),/*slotDone*/e[5]?c?c.p(e,t):(c=bn(e),c.c(),c.m(r,null)):c&&(c.d(1),c=null)},d(e){e&&f(t),u&&u.d(),c&&c.d(),a=!1,s()}}}
|
|
630
630
|
// (87:8) {#if !slotDone}
|