@lizardbyte/shared-web 2024.901.15440
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/LICENSE +661 -0
- package/README.md +39 -0
- package/dist/crowdin-web-widget.js +2 -0
- package/dist/crowdin-web-widget.js.map +1 -0
- package/dist/crowdin.js +2 -0
- package/dist/crowdin.js.map +1 -0
- package/dist/discord.js +3 -0
- package/dist/discord.js.LICENSE.txt +1 -0
- package/dist/discord.js.map +1 -0
- package/dist/levenshtein-distance.js +2 -0
- package/dist/levenshtein-distance.js.map +1 -0
- package/dist/lizardbyte-css.css +3 -0
- package/dist/lizardbyte-css.css.map +1 -0
- package/dist/lizardbyte-css.js +0 -0
- package/dist/load-script.js +2 -0
- package/dist/load-script.js.map +1 -0
- package/dist/random-quote.js +3 -0
- package/dist/random-quote.js.LICENSE.txt +1 -0
- package/dist/random-quote.js.map +1 -0
- package/dist/ranking-sorter.js +2 -0
- package/dist/ranking-sorter.js.map +1 -0
- package/dist/sleep.js +2 -0
- package/dist/sleep.js.map +1 -0
- package/package.json +58 -0
- package/src/css/lizardbyte.scss +171 -0
- package/src/js/crowdin-web-widget.js +22 -0
- package/src/js/crowdin.js +53 -0
- package/src/js/discord.js +29 -0
- package/src/js/levenshtein-distance.js +36 -0
- package/src/js/lizardbyte-css.js +1 -0
- package/src/js/load-script.js +22 -0
- package/src/js/random-quote.js +25 -0
- package/src/js/ranking-sorter.js +26 -0
- package/src/js/sleep.js +10 -0
- package/tests/levenshtein-distance.test.js +26 -0
- package/tests/load-script.test.js +48 -0
- package/tests/random-quote.test.js +77 -0
- package/tests/ranking-sorter.test.js +55 -0
- package/tests/sleep.test.js +41 -0
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# shared-web
|
|
2
|
+
|
|
3
|
+
[](https://github.com/LizardByte/shared-web)
|
|
4
|
+
[](https://github.com/LizardByte/shared-web/actions/workflows/CI.yml?query=branch%3Amaster)
|
|
5
|
+
[](https://codecov.io/gh/LizardByte/shared-web)
|
|
6
|
+
[](https://www.npmjs.com/package/@lizardbyte/shared-web)
|
|
7
|
+
[](https://www.npmjs.com/package/@lizardbyte/shared-web)
|
|
8
|
+
[](https://github.com/LizardByte/Sunshine/pkgs/npm/shared-web)
|
|
9
|
+
[%5D.name&label=gh%20version&style=for-the-badge&logo=github%20actions)](https://github.com/LizardByte/Sunshine/pkgs/npm/shared-web)
|
|
10
|
+
|
|
11
|
+
Common web assets for use in LizardByte projects.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
### Install via NPM registry
|
|
16
|
+
|
|
17
|
+
1. Add the dependency to your package.json file:
|
|
18
|
+
```bash
|
|
19
|
+
npm install @lizardbyte/shared-web
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Install via GitHub Package Registry
|
|
23
|
+
|
|
24
|
+
1. Add a `.npmrc` file to the root of your project with the following contents.
|
|
25
|
+
```
|
|
26
|
+
//npm.pkg.github.com/:_authToken=TOKEN
|
|
27
|
+
@lizardbyte:registry=https://npm.pkg.github.com
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Replace `TOKEN` with a valid GitHub token with read access to the package registry.
|
|
31
|
+
|
|
32
|
+
See
|
|
33
|
+
[Authenticating with a personal access token](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-with-a-personal-access-token)
|
|
34
|
+
for more information or alternative methods of authentication.
|
|
35
|
+
|
|
36
|
+
2. Add the dependency to your package.json file:
|
|
37
|
+
```bash
|
|
38
|
+
npm install @lizardbyte/shared-web
|
|
39
|
+
```
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{var e={836:e=>{e.exports=function(e,t){var o=document.createElement("script");o.src=e,o.async=!0,o.onload=function(){t&&t(null,o)},o.onerror=function(){t&&t(new Error("Failed to load script: ".concat(e)))},document.head.appendChild(o)}}},t={};(function o(n){var r=t[n];if(void 0!==r)return r.exports;var d=t[n]={exports:{}};return e[n](d,d.exports,o),d.exports})(836)("https://crowdin.com/js/crowdjet/crowdjet.js",(function(){var e=document.getElementsByTagName("body")[0],t=document.createElement("div");t.id="crowdjet-container",t.dataset.projectId="606145",t.style.bottom="90px",t.style.left="5px",e.appendChild(t);var o=document.createElement("div");o.id="crowdjet-expand-container",o.style.bottom="0px",o.style.left="120px",e.appendChild(o)}))})();
|
|
2
|
+
//# sourceMappingURL=crowdin-web-widget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crowdin-web-widget.js","mappings":"qBAqBAA,EAAOC,QAhBP,SAAoBC,EAAKC,GACrB,IAAMC,EAASC,SAASC,cAAc,UACtCF,EAAOG,IAAML,EACbE,EAAOI,OAAQ,EAEfJ,EAAOK,OAAS,WACRN,GAAUA,EAAS,KAAMC,EACjC,EAEAA,EAAOM,QAAU,WACTP,GAAUA,EAAS,IAAIQ,MAAM,0BAADC,OAA2BV,IAC/D,EAEAG,SAASQ,KAAKC,YAAYV,EAC9B,C,GClBIW,EAA2B,CAAC,GAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAajB,QAGrB,IAAID,EAASe,EAAyBE,GAAY,CAGjDhB,QAAS,CAAC,GAOX,OAHAmB,EAAoBH,GAAUjB,EAAQA,EAAOC,QAASe,GAG/ChB,EAAOC,OACf,ECtBmBoB,CAAQ,IAE3BC,CAAW,+CAA+C,WAGtD,IAAIC,EAAOlB,SAASmB,qBAAqB,QAAQ,GAG7CC,EAAYpB,SAASC,cAAc,OACvCmB,EAAUC,GAAK,qBACfD,EAAUE,QAAQC,UAAY,SAC9BH,EAAUI,MAAMC,OAAS,OACzBL,EAAUI,MAAME,KAAO,MACvBR,EAAKT,YAAYW,GAGjB,IAAIO,EAAkB3B,SAASC,cAAc,OAC7C0B,EAAgBN,GAAK,4BACrBM,EAAgBH,MAAMC,OAAS,MAC/BE,EAAgBH,MAAME,KAAO,QAC7BR,EAAKT,YAAYkB,EACrB,G","sources":["webpack://@lizardbyte/shared-web/./src/js/load-script.js","webpack://@lizardbyte/shared-web/webpack/bootstrap","webpack://@lizardbyte/shared-web/./src/js/crowdin-web-widget.js"],"sourcesContent":["/**\n * Load a script asynchronously, and add it to the DOM. Optionally, call a callback when the script has loaded.\n * @param url The URL of the script to load.\n * @param callback An optional callback to call when the script has loaded.\n */\nfunction loadScript(url, callback) {\n const script = document.createElement('script');\n script.src = url;\n script.async = true;\n\n script.onload = () => {\n if (callback) callback(null, script);\n };\n\n script.onerror = () => {\n if (callback) callback(new Error(`Failed to load script: ${url}`));\n };\n\n document.head.appendChild(script);\n}\n\nmodule.exports = loadScript;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","const loadScript = require('./load-script');\n\nloadScript('https://crowdin.com/js/crowdjet/crowdjet.js', function() {\n // crowdin web widget: https://crowdin.com/project/lizardbyte/tools/web-widget\n // get body\n let body = document.getElementsByTagName('body')[0]\n\n // create container (popup)\n let container = document.createElement('div')\n container.id = 'crowdjet-container'\n container.dataset.projectId = '606145'\n container.style.bottom = '90px'\n container.style.left = '5px'\n body.appendChild(container)\n\n // create expand container (button)\n let expandContainer = document.createElement('div')\n expandContainer.id = 'crowdjet-expand-container'\n expandContainer.style.bottom = '0px'\n expandContainer.style.left = '120px'\n body.appendChild(expandContainer)\n});\n"],"names":["module","exports","url","callback","script","document","createElement","src","async","onload","onerror","Error","concat","head","appendChild","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","require","loadScript","body","getElementsByTagName","container","id","dataset","projectId","style","bottom","left","expandContainer"],"sourceRoot":""}
|
package/dist/crowdin.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{var e={836:e=>{e.exports=function(e,t){var s=document.createElement("script");s.src=e,s.async=!0,s.onload=function(){t&&t(null,s)},s.onerror=function(){t&&t(new Error("Failed to load script: ".concat(e)))},document.head.appendChild(s)}}},t={};(function s(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,s),o.exports})(836)("https://proxy-translator.app.crowdin.net/assets/proxy-translator.js",(function(){window.proxyTranslator.init({baseUrl:"https://app.lizardbyte.dev",appUrl:"https://proxy-translator.app.crowdin.net",valuesParams:"U2FsdGVkX19ClOT7gAzJBnfQPMcvqkPxFWxyPrnN7UEMztYDAOA+/W4kvMqRz2gDLv2/K3hTEtwbcq5imv5k5MUAykz0uklBcdH49kqeo1AhYpNKXdwXZNYBPXmNUm5F",distributionBaseUrl:"https://distributions.crowdin.net",filePath:"/app.lizardbyte.dev.json",distribution:"0913bb75b61f0b26247ffa91bw4",languagesData:{fr:{code:"fr",name:"French",twoLettersCode:"fr"},"es-ES":{code:"es-ES",name:"Spanish",twoLettersCode:"es"},de:{code:"de",name:"German",twoLettersCode:"de"},it:{code:"it",name:"Italian",twoLettersCode:"it"},ja:{code:"ja",name:"Japanese",twoLettersCode:"ja"},"pt-PT":{code:"pt-PT",name:"Portuguese",twoLettersCode:"pt"},ru:{code:"ru",name:"Russian",twoLettersCode:"ru"},"sv-SE":{code:"sv-SE",name:"Swedish",twoLettersCode:"sv"},tr:{code:"tr",name:"Turkish",twoLettersCode:"tr"},"zh-CN":{code:"zh-CN",name:"Chinese Simplified",twoLettersCode:"zh"},en:{code:"en",name:"English",twoLettersCode:"en"},"en-US":{code:"en-US",name:"English, United States",twoLettersCode:"en"},"en-GB":{code:"en-GB",name:"English, United Kingdom",twoLettersCode:"en"}},defaultLanguage:"en",defaultLanguageTitle:"English",languageDetectType:"default",poweredBy:!1,position:"bottom-left",submenuPosition:"top-left"});var e=document.getElementsByClassName("cr-picker-button")[0];e.classList.add("border-white"),e.classList.add("btn"),e.classList.add("btn-outline-light"),e.classList.add("bg-dark"),e.classList.add("text-white"),e.classList.add("rounded-0");var t=document.getElementsByClassName("cr-picker-submenu")[0];t.classList.add("border-white"),t.classList.add("bg-dark"),t.classList.add("text-white"),t.classList.add("rounded-0"),document.getElementsByClassName("cr-selected")[0].classList.add("text-white")}))})();
|
|
2
|
+
//# sourceMappingURL=crowdin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crowdin.js","mappings":"qBAqBAA,EAAOC,QAhBP,SAAoBC,EAAKC,GACrB,IAAMC,EAASC,SAASC,cAAc,UACtCF,EAAOG,IAAML,EACbE,EAAOI,OAAQ,EAEfJ,EAAOK,OAAS,WACRN,GAAUA,EAAS,KAAMC,EACjC,EAEAA,EAAOM,QAAU,WACTP,GAAUA,EAAS,IAAIQ,MAAM,0BAADC,OAA2BV,IAC/D,EAEAG,SAASQ,KAAKC,YAAYV,EAC9B,C,GClBIW,EAA2B,CAAC,GAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAajB,QAGrB,IAAID,EAASe,EAAyBE,GAAY,CAGjDhB,QAAS,CAAC,GAOX,OAHAmB,EAAoBH,GAAUjB,EAAQA,EAAOC,QAASe,GAG/ChB,EAAOC,OACf,ECtBmBoB,CAAQ,IAE3BC,CAAW,uEAAuE,WAC9EC,OAAOC,gBAAgBC,KAAK,CACxBC,QAAS,6BACTC,OAAQ,2CACRC,aAAc,mIACdC,oBAAqB,oCACrBC,SAAU,2BACVC,aAAc,8BACdC,cAAe,CACX,GAAM,CAAC,KAAO,KAAK,KAAO,SAAS,eAAiB,MACpD,QAAS,CAAC,KAAO,QAAQ,KAAO,UAAU,eAAiB,MAC3D,GAAM,CAAC,KAAO,KAAK,KAAO,SAAS,eAAiB,MACpD,GAAM,CAAC,KAAO,KAAK,KAAO,UAAU,eAAiB,MACrD,GAAK,CAAC,KAAO,KAAK,KAAO,WAAW,eAAiB,MACrD,QAAQ,CAAC,KAAO,QAAQ,KAAO,aAAa,eAAiB,MAC7D,GAAM,CAAC,KAAO,KAAK,KAAO,UAAU,eAAiB,MACrD,QAAQ,CAAC,KAAO,QAAQ,KAAO,UAAU,eAAiB,MAC1D,GAAK,CAAC,KAAO,KAAK,KAAO,UAAU,eAAiB,MACpD,QAAQ,CAAC,KAAO,QAAQ,KAAO,qBAAqB,eAAiB,MACrE,GAAM,CAAC,KAAO,KAAK,KAAO,UAAU,eAAiB,MACrD,QAAS,CAAC,KAAO,QAAQ,KAAO,yBAAyB,eAAiB,MAC1E,QAAS,CAAC,KAAO,QAAQ,KAAO,0BAA0B,eAAiB,OAE/EC,gBAAiB,KACjBC,qBAAsB,UACtBC,mBAAoB,UACpBC,WAAW,EACXC,SAAU,cACVC,gBAAiB,aAIrB,IAAIC,EAASlC,SAASmC,uBAAuB,oBAAoB,GACjED,EAAOE,UAAUC,IAAI,gBACrBH,EAAOE,UAAUC,IAAI,OACrBH,EAAOE,UAAUC,IAAI,qBACrBH,EAAOE,UAAUC,IAAI,WACrBH,EAAOE,UAAUC,IAAI,cACrBH,EAAOE,UAAUC,IAAI,aAGrB,IAAIC,EAAOtC,SAASmC,uBAAuB,qBAAqB,GAChEG,EAAKF,UAAUC,IAAI,gBACnBC,EAAKF,UAAUC,IAAI,WACnBC,EAAKF,UAAUC,IAAI,cACnBC,EAAKF,UAAUC,IAAI,aAGJrC,SAASmC,uBAAuB,eAAe,GACrDC,UAAUC,IAAI,aAC3B,G","sources":["webpack://@lizardbyte/shared-web/./src/js/load-script.js","webpack://@lizardbyte/shared-web/webpack/bootstrap","webpack://@lizardbyte/shared-web/./src/js/crowdin.js"],"sourcesContent":["/**\n * Load a script asynchronously, and add it to the DOM. Optionally, call a callback when the script has loaded.\n * @param url The URL of the script to load.\n * @param callback An optional callback to call when the script has loaded.\n */\nfunction loadScript(url, callback) {\n const script = document.createElement('script');\n script.src = url;\n script.async = true;\n\n script.onload = () => {\n if (callback) callback(null, script);\n };\n\n script.onerror = () => {\n if (callback) callback(new Error(`Failed to load script: ${url}`));\n };\n\n document.head.appendChild(script);\n}\n\nmodule.exports = loadScript;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","const loadScript = require('./load-script');\n\nloadScript('https://proxy-translator.app.crowdin.net/assets/proxy-translator.js', function() {\n window.proxyTranslator.init({\n baseUrl: \"https://app.lizardbyte.dev\",\n appUrl: \"https://proxy-translator.app.crowdin.net\",\n valuesParams: \"U2FsdGVkX19ClOT7gAzJBnfQPMcvqkPxFWxyPrnN7UEMztYDAOA+/W4kvMqRz2gDLv2/K3hTEtwbcq5imv5k5MUAykz0uklBcdH49kqeo1AhYpNKXdwXZNYBPXmNUm5F\",\n distributionBaseUrl: \"https://distributions.crowdin.net\",\n filePath: \"/app.lizardbyte.dev.json\",\n distribution: \"0913bb75b61f0b26247ffa91bw4\",\n languagesData: {\n \"fr\": {\"code\":\"fr\",\"name\":\"French\",\"twoLettersCode\":\"fr\"},\n \"es-ES\": {\"code\":\"es-ES\",\"name\":\"Spanish\",\"twoLettersCode\":\"es\"},\n \"de\": {\"code\":\"de\",\"name\":\"German\",\"twoLettersCode\":\"de\"},\n \"it\": {\"code\":\"it\",\"name\":\"Italian\",\"twoLettersCode\":\"it\"},\n \"ja\":{\"code\":\"ja\",\"name\":\"Japanese\",\"twoLettersCode\":\"ja\"},\n \"pt-PT\":{\"code\":\"pt-PT\",\"name\":\"Portuguese\",\"twoLettersCode\":\"pt\"},\n \"ru\": {\"code\":\"ru\",\"name\":\"Russian\",\"twoLettersCode\":\"ru\"},\n \"sv-SE\":{\"code\":\"sv-SE\",\"name\":\"Swedish\",\"twoLettersCode\":\"sv\"},\n \"tr\":{\"code\":\"tr\",\"name\":\"Turkish\",\"twoLettersCode\":\"tr\"},\n \"zh-CN\":{\"code\":\"zh-CN\",\"name\":\"Chinese Simplified\",\"twoLettersCode\":\"zh\"},\n \"en\": {\"code\":\"en\",\"name\":\"English\",\"twoLettersCode\":\"en\"},\n \"en-US\": {\"code\":\"en-US\",\"name\":\"English, United States\",\"twoLettersCode\":\"en\"},\n \"en-GB\": {\"code\":\"en-GB\",\"name\":\"English, United Kingdom\",\"twoLettersCode\":\"en\"}\n },\n defaultLanguage: \"en\",\n defaultLanguageTitle: \"English\",\n languageDetectType: \"default\",\n poweredBy: false,\n position: \"bottom-left\",\n submenuPosition: \"top-left\",\n });\n\n // change styling of language selector button\n let button = document.getElementsByClassName('cr-picker-button')[0]\n button.classList.add('border-white')\n button.classList.add('btn')\n button.classList.add('btn-outline-light')\n button.classList.add('bg-dark')\n button.classList.add('text-white')\n button.classList.add('rounded-0')\n\n // change styling of language selector menu\n let menu = document.getElementsByClassName('cr-picker-submenu')[0]\n menu.classList.add('border-white')\n menu.classList.add('bg-dark')\n menu.classList.add('text-white')\n menu.classList.add('rounded-0')\n\n // change styling of selected language in menu\n let selected = document.getElementsByClassName('cr-selected')[0]\n selected.classList.add('text-white')\n});\n"],"names":["module","exports","url","callback","script","document","createElement","src","async","onload","onerror","Error","concat","head","appendChild","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","require","loadScript","window","proxyTranslator","init","baseUrl","appUrl","valuesParams","distributionBaseUrl","filePath","distribution","languagesData","defaultLanguage","defaultLanguageTitle","languageDetectType","poweredBy","position","submenuPosition","button","getElementsByClassName","classList","add","menu"],"sourceRoot":""}
|
package/dist/discord.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see discord.js.LICENSE.txt */
|
|
2
|
+
(()=>{var t={836:t=>{t.exports=function(t,r){var e=document.createElement("script");e.src=t,e.async=!0,e.onload=function(){r&&r(null,e)},e.onerror=function(){r&&r(new Error("Failed to load script: ".concat(t)))},document.head.appendChild(e)}},748:t=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function e(){"use strict";e=function(){return n};var t,n={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(t,r,e){t[r]=e.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",f=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var o=r&&r.prototype instanceof w?r:w,i=Object.create(o.prototype),c=new T(n||[]);return a(i,"_invoke",{value:k(t,e,c)}),i}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}n.wrap=h;var y="suspendedStart",v="suspendedYield",d="executing",m="completed",g={};function w(){}function b(){}function x(){}var L={};l(L,u,(function(){return this}));var E=Object.getPrototypeOf,j=E&&E(E(F([])));j&&j!==o&&i.call(j,u)&&(L=j);var _=x.prototype=w.prototype=Object.create(L);function O(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function S(t,e){function n(o,a,c,u){var f=p(t[o],t,a);if("throw"!==f.type){var s=f.arg,l=s.value;return l&&"object"==r(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(l).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(f.arg)}var o;a(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}})}function k(r,e,n){var o=y;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var f=p(r,e,n);if("normal"===f.type){if(o=n.done?m:v,f.arg===g)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o=m,n.method="throw",n.arg=f.arg)}}}function P(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,P(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=p(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function G(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function N(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function F(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return b.prototype=x,a(_,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,s,"GeneratorFunction"),n.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===b||"GeneratorFunction"===(r.displayName||r.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},n.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,f,(function(){return this})),n.AsyncIterator=S,n.async=function(t,r,e,o,i){void 0===i&&(i=Promise);var a=new S(h(t,r,e,o),i);return n.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(_),l(_,s,"Generator"),l(_,u,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=F,T.prototype={constructor:T,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!r)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function n(n,o){return c.type="throw",c.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),f=i.call(a,"finallyLoc");if(u&&f){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!f)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=r,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),g},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),N(e),g}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;N(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:F(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),g}},n}function n(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}var o=null;function i(){var t;return t=e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o){t.next=7;break}return t.next=3,fetch("https://app.lizardbyte.dev/uno/random-quotes/games.json");case 3:return r=t.sent,t.next=6,r.json();case 6:o=t.sent;case 7:return t.abrupt("return",o[Math.floor(Math.random()*o.length)]);case 8:case"end":return t.stop()}}),t)})),i=function(){var r=this,e=arguments;return new Promise((function(o,i){var a=t.apply(r,e);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))},i.apply(this,arguments)}t.exports={fetchRandomQuote:function(){return i.apply(this,arguments)},resetQuoteCache:function(){o=null}}}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n](i,i.exports,e),i.exports}var n=e(836),o=e(748).fetchRandomQuote;n("https://cdn.jsdelivr.net/npm/@widgetbot/crate@3",(function(){var t=new Crate({server:"804382334370578482",channel:"804383092822900797",defer:!1});o().then((function(r){setTimeout((function(){t&&function(t,r){var e=t.quote_safe||t.quote;r.notify(e)}(r,t)}),42e4)}))}))})();
|
|
3
|
+
//# sourceMappingURL=discord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discord.js","mappings":";qBAqBAA,EAAOC,QAhBP,SAAoBC,EAAKC,GACrB,IAAMC,EAASC,SAASC,cAAc,UACtCF,EAAOG,IAAML,EACbE,EAAOI,OAAQ,EAEfJ,EAAOK,OAAS,WACRN,GAAUA,EAAS,KAAMC,EACjC,EAEAA,EAAOM,QAAU,WACTP,GAAUA,EAAS,IAAIQ,MAAM,0BAADC,OAA2BV,IAC/D,EAEAG,SAASQ,KAAKC,YAAYV,EAC9B,2QClBAW,EAAA,kBAAAC,CAAA,MAAAC,EAAAD,EAAA,GAAAE,EAAAC,OAAAC,UAAAC,EAAAH,EAAAI,eAAAC,EAAAJ,OAAAK,gBAAA,SAAAP,EAAAD,EAAAE,GAAAD,EAAAD,GAAAE,EAAAO,KAAA,EAAAC,EAAA,mBAAAC,OAAAA,OAAA,GAAAC,EAAAF,EAAAG,UAAA,aAAAC,EAAAJ,EAAAK,eAAA,kB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,EAAAC,EAAA,QAAA5G,EAAA,CAAA2G,OAAA,OAWCX,EAAAU,MAAA,KAAAD,UAAA,CASD9H,EAAOC,QAAU,CACbiI,iBApBJ,WAI+B,OAAAb,EAAAU,MAAC,KAADD,UAAA,EAiB3BK,gBANJ,WACIf,EAAa,IACjB,KClBIgB,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAatI,QAGrB,IAAID,EAASoI,EAAyBE,GAAY,CAGjDrI,QAAS,CAAC,GAOX,OAHAwI,EAAoBH,GAAUtI,EAAQA,EAAOC,QAASoI,GAG/CrI,EAAOC,OACf,CClBA,IAAMyI,EAAaC,EAAQ,KACnBT,EAAqBS,EAAQ,KAA7BT,iBAQRQ,EAAW,mDAAmD,WAC1D,IAAIE,EAAY,IAAIC,MAAM,CACtBC,OAAQ,qBACRC,QAAS,qBACTC,OAAO,IAIXd,IAAmB9D,MAAK,SAAA6E,GACpBC,YAAW,WACHN,GAhBhB,SAAqBK,EAAOE,GACxB,IAAIC,EAAYH,EAAkB,YAAKA,EAAa,MACpDE,EAAME,OAAOD,EACjB,CAcgBE,CAAYL,EAAOL,EAE3B,GAAG,KACP,GACJ","sources":["webpack://@lizardbyte/shared-web/./src/js/load-script.js","webpack://@lizardbyte/shared-web/./src/js/random-quote.js","webpack://@lizardbyte/shared-web/webpack/bootstrap","webpack://@lizardbyte/shared-web/./src/js/discord.js"],"sourcesContent":["/**\n * Load a script asynchronously, and add it to the DOM. Optionally, call a callback when the script has loaded.\n * @param url The URL of the script to load.\n * @param callback An optional callback to call when the script has loaded.\n */\nfunction loadScript(url, callback) {\n const script = document.createElement('script');\n script.src = url;\n script.async = true;\n\n script.onload = () => {\n if (callback) callback(null, script);\n };\n\n script.onerror = () => {\n if (callback) callback(new Error(`Failed to load script: ${url}`));\n };\n\n document.head.appendChild(script);\n}\n\nmodule.exports = loadScript;\n","let quoteCache = null;\n\n/**\n * Fetch a random quote from our API.\n * @returns {Promise<*>} A promise that resolves with a random quote\n */\nasync function fetchRandomQuote() {\n if (!quoteCache) {\n const response = await fetch('https://app.lizardbyte.dev/uno/random-quotes/games.json');\n quoteCache = await response.json();\n }\n return quoteCache[Math.floor(Math.random() * quoteCache.length)];\n}\n\n/**\n * Reset the quote cache.\n */\nfunction resetQuoteCache() {\n quoteCache = null;\n}\n\nmodule.exports = {\n fetchRandomQuote,\n resetQuoteCache,\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","/* global Crate */\n// Crate is not defined... can we use npm version?\n// https://github.com/widgetbot-io/crate/issues/26\n\nconst loadScript = require('./load-script');\nconst { fetchRandomQuote } = require('./random-quote');\n\nfunction randomQuote(quote, crate) {\n let the_quote = quote['quote_safe'] || quote['quote'];\n crate.notify(the_quote);\n}\n\n// Widgetbot initialization\nloadScript('https://cdn.jsdelivr.net/npm/@widgetbot/crate@3', function() {\n let widgetbot = new Crate({\n server: '804382334370578482',\n channel: '804383092822900797',\n defer: false,\n });\n\n // get random video game quotes and notify the user on Widgetbot after 7 minutes\n fetchRandomQuote().then(quote => {\n setTimeout(() => {\n if (widgetbot) {\n randomQuote(quote, widgetbot);\n }\n }, 7 * 60 * 1000);\n });\n});\n"],"names":["module","exports","url","callback","script","document","createElement","src","async","onload","onerror","Error","concat","head","appendChild","_regeneratorRuntime","e","t","r","Object","prototype","n","hasOwnProperty","o","defineProperty","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","delegateYield","asyncGeneratorStep","quoteCache","_fetchRandomQuote","_callee","response","_context","fetch","json","Math","floor","random","arguments","apply","_next","_throw","fetchRandomQuote","resetQuoteCache","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","loadScript","require","widgetbot","Crate","server","channel","defer","quote","setTimeout","crate","the_quote","notify","randomQuote"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{var t={83:t=>{t.exports=function(t,r){if(0===t.length)return r.length;if(0===r.length)return t.length;var n,e,h=[];for(n=0;n<=r.length;n++)h[n]=[n];for(e=0;e<=t.length;e++)h[0][e]=e;for(n=1;n<=r.length;n++)for(e=1;e<=t.length;e++)r.charAt(n-1)===t.charAt(e-1)?h[n][e]=h[n-1][e-1]:h[n][e]=Math.min(h[n-1][e-1]+1,Math.min(h[n][e-1]+1,h[n-1][e]+1));return 100*(1-h[r.length][t.length]/Math.max(t.length,r.length))}}},r={};!function n(e){var h=r[e];if(void 0!==h)return h.exports;var g=r[e]={exports:{}};return t[e](g,g.exports,n),g.exports}(83)})();
|
|
2
|
+
//# sourceMappingURL=levenshtein-distance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"levenshtein-distance.js","mappings":"oBAmCAA,EAAOC,QAnCP,SAA6BC,EAAGC,GAC5B,GAAiB,IAAbD,EAAEE,OAAc,OAAOD,EAAEC,OAC7B,GAAiB,IAAbD,EAAEC,OAAc,OAAOF,EAAEE,OAE7B,IAGIC,EAMAC,EATAC,EAAS,GAIb,IAAKF,EAAI,EAAGA,GAAKF,EAAEC,OAAQC,IACvBE,EAAOF,GAAK,CAACA,GAKjB,IAAKC,EAAI,EAAGA,GAAKJ,EAAEE,OAAQE,IACvBC,EAAO,GAAGD,GAAKA,EAInB,IAAKD,EAAI,EAAGA,GAAKF,EAAEC,OAAQC,IACvB,IAAKC,EAAI,EAAGA,GAAKJ,EAAEE,OAAQE,IACnBH,EAAEK,OAAOH,EAAI,KAAOH,EAAEM,OAAOF,EAAI,GACjCC,EAAOF,GAAGC,GAAKC,EAAOF,EAAI,GAAGC,EAAI,GAEjCC,EAAOF,GAAGC,GAAKG,KAAKC,IAAIH,EAAOF,EAAI,GAAGC,EAAI,GAAK,EAC3CG,KAAKC,IAAIH,EAAOF,GAAGC,EAAI,GAAK,EACxBC,EAAOF,EAAI,GAAGC,GAAK,IAMvC,OAA2E,KAAnE,EAAKC,EAAOJ,EAAEC,QAAQF,EAAEE,QAAUK,KAAKE,IAAIT,EAAEE,OAAQD,EAAEC,QACnE,C,GChCIQ,EAA2B,CAAC,GAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAad,QAGrB,IAAID,EAASY,EAAyBE,GAAY,CAGjDb,QAAS,CAAC,GAOX,OAHAgB,EAAoBH,GAAUd,EAAQA,EAAOC,QAASY,GAG/Cb,EAAOC,OACf,CCnB0BY,CAAoB,G","sources":["webpack://@lizardbyte/shared-web/./src/js/levenshtein-distance.js","webpack://@lizardbyte/shared-web/webpack/bootstrap","webpack://@lizardbyte/shared-web/webpack/startup"],"sourcesContent":["function levenshteinDistance(a, b) {\n if (a.length === 0) return b.length;\n if (b.length === 0) return a.length;\n\n let matrix = [];\n\n // increment along the first column of each row\n let i;\n for (i = 0; i <= b.length; i++) {\n matrix[i] = [i];\n }\n\n // increment each column in the first row\n let j;\n for (j = 0; j <= a.length; j++) {\n matrix[0][j] = j;\n }\n\n // Fill in the rest of the matrix\n for (i = 1; i <= b.length; i++) {\n for (j = 1; j <= a.length; j++) {\n if (b.charAt(i - 1) === a.charAt(j - 1)) {\n matrix[i][j] = matrix[i - 1][j - 1];\n } else {\n matrix[i][j] = Math.min(matrix[i - 1][j - 1] + 1, // substitution\n Math.min(matrix[i][j - 1] + 1, // insertion\n matrix[i - 1][j] + 1)); // deletion\n }\n }\n }\n\n // return the percentage of the levenshtein distance\n return (1 - (matrix[b.length][a.length] / Math.max(a.length, b.length))) * 100\n}\n\nmodule.exports = levenshteinDistance;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(83);\n"],"names":["module","exports","a","b","length","i","j","matrix","charAt","Math","min","max","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__"],"sourceRoot":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
body{padding-top:80px}.offset-anchor{border-top:80px solid rgba(0,0,0,0);margin:-80px 0 0;-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.container{position:relative;z-index:1}.navbar{min-height:80px;border-bottom:1px solid #fff}.navbar-brand{font-size:1.75rem}.nav-link{font-size:1.25rem}.nav-link-sm{font-size:1rem}.bg-dark{--bs-bg-opacity: 1;background-color:#151515 !important}.bg-dark-gray{--bs-bg-opacity: 1;background-color:#303436 !important}.carousel-overlay-title{position:absolute;top:20vh;right:10vw;padding:1rem;text-shadow:2px 2px 5px #000;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.carousel-overlay-subtitle{position:absolute;top:30vh;right:10vw;padding:1rem;text-shadow:2px 2px 5px #000;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.carousel-item.active,.carousel-item .view{height:50vh !important}.carousel-item img{-o-object-fit:cover;object-fit:cover;width:100% !important;height:100% !important}.content h1{font-size:55px}@media screen and (max-width: 320px){.content h1{font-size:30px}}@media screen and (min-width: 321px)and (max-width: 768px){.content h1{font-size:30px}}.content h5{font-size:23px;margin-left:80px;margin-right:80px}@media screen and (max-width: 320px){.content h5{font-size:18px;margin-left:20px;margin-right:20px}}@media screen and (min-width: 321px)and (max-width: 768px){.content h5{font-size:18px;margin-left:20px;margin-right:20px}}.feature{display:inline-flex;align-items:center;justify-content:center;height:3rem;width:3rem;font-size:1.5rem}.widgetbot{display:flex;align-items:center;justify-content:space-around}.feedback{display:flex;align-items:center;justify-content:space-around}iframe.feedback{width:100vw;min-height:calc(100vh - 80px - 72px)}@media screen and (min-width: 321px)and (max-width: 768px){iframe.feedback{min-height:calc(100vh - 80px - 93px)}}@media screen and (max-width: 320px){iframe.feedback{min-height:calc(100vh - 80px - 114px)}}.hover-zoom{overflow:hidden}.hover-zoom img{transition:all 1.5s ease}.hover-zoom:hover img{transform:scale(1.1)}.text-purple{--bs-text-opacity: 1;color:var(--bs-purple) !important}
|
|
2
|
+
|
|
3
|
+
/*# sourceMappingURL=lizardbyte-css.css.map*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lizardbyte-css.css","mappings":"AAAA,KACG,iBAIH,eACI,oCACA,iBACA,oCACA,6BACA,4BAKJ,WACI,kBACA,UAGJ,QACI,gBACA,6BAGJ,cACI,kBAGJ,UACI,kBAGJ,aACI,eAGJ,SACI,mBACA,oCAGJ,cACI,mBACA,oCAGJ,wBACI,kBACA,SACA,WACA,aACA,6BACA,gEACA,UAGJ,2BACI,kBACA,SACA,WACA,aACA,6BACA,gEACA,UAGJ,2CACI,uBAGJ,mBACI,qCACA,sBACA,uBAGJ,YACI,eAGJ,qCACI,YACI,gBAIR,2DACI,YACE,gBAIN,YACI,eACA,iBACA,kBAGJ,qCACI,YACI,eACA,iBACA,mBAIR,2DACI,YACI,eACA,iBACA,mBAIR,SACE,oBACA,mBACA,uBACA,YACA,WACA,iBAGF,WACI,aACA,mBACA,6BAGJ,UACI,aACA,mBACA,6BAGJ,gBACI,YACA,qCAGJ,2DACI,gBACI,sCAIR,qCACI,gBACI,uCAKR,YACI,gBAGJ,gBACI,yBAGJ,sBACI,qBAIJ,aACE,qBACA,kC","sources":["webpack://@lizardbyte/shared-web/./src/css/lizardbyte.scss"],"names":[],"sourceRoot":""}
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{var r={836:r=>{r.exports=function(r,n){var o=document.createElement("script");o.src=r,o.async=!0,o.onload=function(){n&&n(null,o)},o.onerror=function(){n&&n(new Error("Failed to load script: ".concat(r)))},document.head.appendChild(o)}}},n={};!function o(t){var e=n[t];if(void 0!==e)return e.exports;var c=n[t]={exports:{}};return r[t](c,c.exports,o),c.exports}(836)})();
|
|
2
|
+
//# sourceMappingURL=load-script.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-script.js","mappings":"qBAqBAA,EAAOC,QAhBP,SAAoBC,EAAKC,GACrB,IAAMC,EAASC,SAASC,cAAc,UACtCF,EAAOG,IAAML,EACbE,EAAOI,OAAQ,EAEfJ,EAAOK,OAAS,WACRN,GAAUA,EAAS,KAAMC,EACjC,EAEAA,EAAOM,QAAU,WACTP,GAAUA,EAAS,IAAIQ,MAAM,0BAADC,OAA2BV,IAC/D,EAEAG,SAASQ,KAAKC,YAAYV,EAC9B,C,GClBIW,EAA2B,CAAC,GAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAajB,QAGrB,IAAID,EAASe,EAAyBE,GAAY,CAGjDhB,QAAS,CAAC,GAOX,OAHAmB,EAAoBH,GAAUjB,EAAQA,EAAOC,QAASe,GAG/ChB,EAAOC,OACf,CCnB0Be,CAAoB,I","sources":["webpack://@lizardbyte/shared-web/./src/js/load-script.js","webpack://@lizardbyte/shared-web/webpack/bootstrap","webpack://@lizardbyte/shared-web/webpack/startup"],"sourcesContent":["/**\n * Load a script asynchronously, and add it to the DOM. Optionally, call a callback when the script has loaded.\n * @param url The URL of the script to load.\n * @param callback An optional callback to call when the script has loaded.\n */\nfunction loadScript(url, callback) {\n const script = document.createElement('script');\n script.src = url;\n script.async = true;\n\n script.onload = () => {\n if (callback) callback(null, script);\n };\n\n script.onerror = () => {\n if (callback) callback(new Error(`Failed to load script: ${url}`));\n };\n\n document.head.appendChild(script);\n}\n\nmodule.exports = loadScript;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(836);\n"],"names":["module","exports","url","callback","script","document","createElement","src","async","onload","onerror","Error","concat","head","appendChild","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__"],"sourceRoot":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see random-quote.js.LICENSE.txt */
|
|
2
|
+
(()=>{var t={748:t=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function e(){"use strict";e=function(){return n};var t,n={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(t,r,e){t[r]=e.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",f=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function h(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{h({},"")}catch(t){h=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var o=r&&r.prototype instanceof w?r:w,i=Object.create(o.prototype),c=new T(n||[]);return a(i,"_invoke",{value:k(t,e,c)}),i}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}n.wrap=l;var y="suspendedStart",v="suspendedYield",d="executing",g="completed",m={};function w(){}function b(){}function x(){}var L={};h(L,u,(function(){return this}));var E=Object.getPrototypeOf,j=E&&E(E(F([])));j&&j!==o&&i.call(j,u)&&(L=j);var _=x.prototype=w.prototype=Object.create(L);function O(t){["next","throw","return"].forEach((function(r){h(t,r,(function(t){return this._invoke(r,t)}))}))}function S(t,e){function n(o,a,c,u){var f=p(t[o],t,a);if("throw"!==f.type){var s=f.arg,h=s.value;return h&&"object"==r(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(f.arg)}var o;a(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}})}function k(r,e,n){var o=y;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var f=p(r,e,n);if("normal"===f.type){if(o=n.done?g:v,f.arg===m)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o=g,n.method="throw",n.arg=f.arg)}}}function P(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,P(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=p(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function G(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function N(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function F(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return b.prototype=x,a(_,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=h(x,s,"GeneratorFunction"),n.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===b||"GeneratorFunction"===(r.displayName||r.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,h(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},n.awrap=function(t){return{__await:t}},O(S.prototype),h(S.prototype,f,(function(){return this})),n.AsyncIterator=S,n.async=function(t,r,e,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,e,o),i);return n.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(_),h(_,s,"Generator"),h(_,u,(function(){return this})),h(_,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=F,T.prototype={constructor:T,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!r)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function n(n,o){return c.type="throw",c.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),f=i.call(a,"finallyLoc");if(u&&f){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!f)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=r,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),m},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),N(e),m}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;N(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:F(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),m}},n}function n(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}var o=null;function i(){var t;return t=e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o){t.next=7;break}return t.next=3,fetch("https://app.lizardbyte.dev/uno/random-quotes/games.json");case 3:return r=t.sent,t.next=6,r.json();case 6:o=t.sent;case 7:return t.abrupt("return",o[Math.floor(Math.random()*o.length)]);case 8:case"end":return t.stop()}}),t)})),i=function(){var r=this,e=arguments;return new Promise((function(o,i){var a=t.apply(r,e);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))},i.apply(this,arguments)}t.exports={fetchRandomQuote:function(){return i.apply(this,arguments)},resetQuoteCache:function(){o=null}}}},r={};!function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n](i,i.exports,e),i.exports}(748)})();
|
|
3
|
+
//# sourceMappingURL=random-quote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"random-quote.js","mappings":";qRACAA,EAAA,kBAAAC,CAAA,MAAAC,EAAAD,EAAA,GAAAE,EAAAC,OAAAC,UAAAC,EAAAH,EAAAI,eAAAC,EAAAJ,OAAAK,gBAAA,SAAAP,EAAAD,EAAAE,GAAAD,EAAAD,GAAAE,EAAAO,KAAA,EAAAC,EAAA,mBAAAC,OAAAA,OAAA,GAAAC,EAAAF,EAAAG,UAAA,aAAAC,EAAAJ,EAAAK,eAAA,kBAAAC,EAAAN,EAAAO,aAAA,yBAAAC,EAAAjB,EAAAD,EAAAE,GAAA,OAAAC,OAAAK,eAAAP,EAAAD,EAAA,CAAAS,MAAAP,EAAAiB,YAAA,EAAAC,cAAA,EAAAC,UAAA,IAAApB,EAAAD,EAAA,KAAAkB,EAAA,aAAAjB,GAAAiB,EAAA,SAAAjB,EAAAD,EAAAE,GAAA,OAAAD,EAAAD,GAAAE,CAAA,WAAAoB,EAAArB,EAAAD,EAAAE,EAAAG,GAAA,IAAAK,EAAAV,GAAAA,EAAAI,qBAAAmB,EAAAvB,EAAAuB,EAAAX,EAAAT,OAAAqB,OAAAd,EAAAN,WAAAU,EAAA,IAAAW,EAAApB,GAAA,WAAAE,EAAAK,EAAA,WAAAH,MAAAiB,EAAAzB,EAAAC,EAAAY,KAAAF,CAAA,UAAAe,EAAA1B,EAAAD,EAAAE,GAAA,WAAA0B,KAAA,SAAAC,IAAA5B,EAAA6B,KAAA9B,EAAAE,GAAA,OAAAD,GAAA,OAAA2B,KAAA,QAAAC,IAAA5B,EAAA,EAAAD,EAAAsB,KAAAA,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AAzC,MAAA,UACSqC,EAAY,CAAFI,EAAAzC,KAAA,eAAAyC,EAAAzC,KAAA,EACY0C,MAAM,2DAA0D,OAAzE,OAARF,EAAQC,EAAA/C,KAAA+C,EAAAzC,KAAG,EACEwC,EAASG,OAAM,OAAlCN,EAAUI,EAAA/C,KAAA,cAAA+C,EAAA5C,OAAA,SAEPwC,EAAWO,KAAKC,MAAMD,KAAKE,SAAWT,EAAWxB,UAAQ,wBAAA4B,EAAAX,OAAA,GAAAS,EAAA,IAGpED,EAbA,eAAAtG,EAAA,KAAAD,EAAAgH,UAAA,WAAAxB,SAAA,SAAAtF,EAAAK,GAAA,IAAAK,EAAAP,EAAA4G,MAAAhH,EAAAD,GAAA,SAAAkH,EAAA7G,GAAAgG,EAAAzF,EAAAV,EAAAK,EAAA2G,EAAAC,EAAA,OAAA9G,EAAA,UAAA8G,EAAA9G,GAAAgG,EAAAzF,EAAAV,EAAAK,EAAA2G,EAAAC,EAAA,QAAA9G,EAAA,CAAA6G,OAAA,OAWCX,EAAAU,MAAA,KAAAD,UAAA,CASDI,EAAOC,QAAU,CACbC,iBApBJ,WAI+B,OAAAf,EAAAU,MAAC,KAADD,UAAA,EAiB3BO,gBANJ,WACIjB,EAAa,IACjB,KClBIkB,EAA2B,CAAC,GAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaN,QAGrB,IAAID,EAASI,EAAyBE,GAAY,CAGjDL,QAAS,CAAC,GAOX,OAHAQ,EAAoBH,GAAUN,EAAQA,EAAOC,QAASI,GAG/CL,EAAOC,OACf,CCnB0BI,CAAoB","sources":["webpack://@lizardbyte/shared-web/./src/js/random-quote.js","webpack://@lizardbyte/shared-web/webpack/bootstrap","webpack://@lizardbyte/shared-web/webpack/startup"],"sourcesContent":["let quoteCache = null;\n\n/**\n * Fetch a random quote from our API.\n * @returns {Promise<*>} A promise that resolves with a random quote\n */\nasync function fetchRandomQuote() {\n if (!quoteCache) {\n const response = await fetch('https://app.lizardbyte.dev/uno/random-quotes/games.json');\n quoteCache = await response.json();\n }\n return quoteCache[Math.floor(Math.random() * quoteCache.length)];\n}\n\n/**\n * Reset the quote cache.\n */\nfunction resetQuoteCache() {\n quoteCache = null;\n}\n\nmodule.exports = {\n fetchRandomQuote,\n resetQuoteCache,\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(748);\n"],"names":["_regeneratorRuntime","e","t","r","Object","prototype","n","hasOwnProperty","o","defineProperty","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","delegateYield","asyncGeneratorStep","quoteCache","_fetchRandomQuote","_callee","response","_context","fetch","json","Math","floor","random","arguments","apply","_next","_throw","module","exports","fetchRandomQuote","resetQuoteCache","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{var r={76:r=>{r.exports=function(r,t){return function(n,e){return n[r]>e[r]?-1:n[r]<e[r]||n[t]>e[t]?1:n[t]<e[t]?-1:0}}}},t={};!function n(e){var o=t[e];if(void 0!==o)return o.exports;var u=t[e]={exports:{}};return r[e](u,u.exports,n),u.exports}(76)})();
|
|
2
|
+
//# sourceMappingURL=ranking-sorter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ranking-sorter.js","mappings":"oBAyBAA,EAAOC,QAnBa,SAAUC,EAAUC,GACpC,OAAO,SAASC,EAAGC,GACf,OAAID,EAAEF,GAAYG,EAAEH,IACR,EACDE,EAAEF,GAAYG,EAAEH,IAInBE,EAAED,GAAaE,EAAEF,GAHd,EAKIC,EAAED,GAAaE,EAAEF,IAChB,EAED,CAGnB,CACJ,C,GCtBIG,EAA2B,CAAC,GAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaR,QAGrB,IAAID,EAASM,EAAyBE,GAAY,CAGjDP,QAAS,CAAC,GAOX,OAHAU,EAAoBH,GAAUR,EAAQA,EAAOC,QAASM,GAG/CP,EAAOC,OACf,CCnB0BM,CAAoB,G","sources":["webpack://@lizardbyte/shared-web/./src/js/ranking-sorter.js","webpack://@lizardbyte/shared-web/webpack/bootstrap","webpack://@lizardbyte/shared-web/webpack/startup"],"sourcesContent":["/**\n * Sorts an array of objects by two keys in descending order.\n * @param firstKey The primary key to sort by.\n * @param secondKey The secondary key to sort by, in case the first key is equal.\n * @returns {(function(*, *): (number))|*} The sorting function.\n */\nlet rankingSorter = function (firstKey, secondKey) {\n return function(a, b) {\n if (a[firstKey] > b[firstKey]) {\n return -1;\n } else if (a[firstKey] < b[firstKey]) {\n return 1;\n }\n else {\n if (a[secondKey] > b[secondKey]) {\n return 1;\n } else if (a[secondKey] < b[secondKey]) {\n return -1;\n } else {\n return 0;\n }\n }\n }\n}\n\nmodule.exports = rankingSorter;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(76);\n"],"names":["module","exports","firstKey","secondKey","a","b","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__"],"sourceRoot":""}
|
package/dist/sleep.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sleep.js","mappings":"qBASAA,EAAOC,QAJP,SAAeC,GACX,OAAO,IAAIC,SAAQ,SAAAC,GAAO,OAAIC,WAAWD,EAASF,EAAG,GACzD,C,GCNII,EAA2B,CAAC,GAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaR,QAGrB,IAAID,EAASM,EAAyBE,GAAY,CAGjDP,QAAS,CAAC,GAOX,OAHAU,EAAoBH,GAAUR,EAAQA,EAAOC,QAASM,GAG/CP,EAAOC,OACf,CCnB0BM,CAAoB,I","sources":["webpack://@lizardbyte/shared-web/./src/js/sleep.js","webpack://@lizardbyte/shared-web/webpack/bootstrap","webpack://@lizardbyte/shared-web/webpack/startup"],"sourcesContent":["/**\n * Sleep for a given amount of time.\n * @param ms The time to sleep in milliseconds\n * @returns {Promise<unknown>} A promise that resolves after the given time\n */\nfunction sleep(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n}\n\nmodule.exports = sleep;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(399);\n"],"names":["module","exports","ms","Promise","resolve","setTimeout","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__"],"sourceRoot":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lizardbyte/shared-web",
|
|
3
|
+
"repository": {
|
|
4
|
+
"url": "git+https://github.com/LizardByte/shared-web.git"
|
|
5
|
+
},
|
|
6
|
+
"version": "2024.901.15440",
|
|
7
|
+
"description": "Shared web assets for LizardByte projects",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/",
|
|
10
|
+
"src/",
|
|
11
|
+
"tests/",
|
|
12
|
+
"LICENSE",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"bootstrap": "5.3.3"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@babel/core": "7.25.2",
|
|
20
|
+
"@babel/preset-env": "7.25.4",
|
|
21
|
+
"@eslint/js": "9.9.1",
|
|
22
|
+
"@jest/globals": "29.7.0",
|
|
23
|
+
"babel-loader": "9.1.3",
|
|
24
|
+
"cross-env": "7.0.3",
|
|
25
|
+
"css-loader": "7.1.2",
|
|
26
|
+
"eslint": "9.9.1",
|
|
27
|
+
"eslint-plugin-jest": "28.8.1",
|
|
28
|
+
"globals": "15.9.0",
|
|
29
|
+
"jest": "29.7.0",
|
|
30
|
+
"jest-environment-jsdom": "29.7.0",
|
|
31
|
+
"jest-junit": "16.0.0",
|
|
32
|
+
"mini-css-extract-plugin": "2.9.1",
|
|
33
|
+
"node-fetch": "3.3.2",
|
|
34
|
+
"npm-run-all": "4.1.5",
|
|
35
|
+
"postcss": "8.4.41",
|
|
36
|
+
"postcss-loader": "8.1.1",
|
|
37
|
+
"postcss-preset-env": "10.0.2",
|
|
38
|
+
"sass": "1.77.8",
|
|
39
|
+
"sass-loader": "16.0.1",
|
|
40
|
+
"webpack": "5.94.0",
|
|
41
|
+
"webpack-cli": "5.1.4",
|
|
42
|
+
"webpack-dev-server": "5.0.4"
|
|
43
|
+
},
|
|
44
|
+
"jest": {
|
|
45
|
+
"collectCoverageFrom": [
|
|
46
|
+
"src/**/*.{js,jsx}"
|
|
47
|
+
],
|
|
48
|
+
"testEnvironment": "jsdom"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "cross-env NODE_ENV=production webpack",
|
|
52
|
+
"start": "webpack serve",
|
|
53
|
+
"test": "npm-run-all test:unit test:report test:lint",
|
|
54
|
+
"test:unit": "jest --coverage",
|
|
55
|
+
"test:report": "jest --reporters=jest-junit",
|
|
56
|
+
"test:lint": "eslint ."
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
body {
|
|
2
|
+
padding-top: 80px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/*Apply to elements that serve as anchors*/
|
|
6
|
+
.offset-anchor {
|
|
7
|
+
border-top: 80px solid transparent;
|
|
8
|
+
margin: -80px 0 0;
|
|
9
|
+
-webkit-background-clip: padding-box;
|
|
10
|
+
-moz-background-clip: padding;
|
|
11
|
+
background-clip: padding-box;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/*Because offset-anchor causes sections to overlap the bottom of previous ones,*/
|
|
15
|
+
/*we need to put content higher so links aren't blocked by the transparent border.*/
|
|
16
|
+
.container {
|
|
17
|
+
position: relative;
|
|
18
|
+
z-index: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.navbar {
|
|
22
|
+
min-height: 80px;
|
|
23
|
+
border-bottom: 1px solid white;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.navbar-brand {
|
|
27
|
+
font-size: 1.75rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nav-link {
|
|
31
|
+
font-size: 1.25rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.nav-link-sm {
|
|
35
|
+
font-size: 1rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.bg-dark {
|
|
39
|
+
--bs-bg-opacity: 1;
|
|
40
|
+
background-color: #151515 !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.bg-dark-gray {
|
|
44
|
+
--bs-bg-opacity: 1;
|
|
45
|
+
background-color: #303436 !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.carousel-overlay-title {
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 20vh;
|
|
51
|
+
right: 10vw;
|
|
52
|
+
padding: 1rem;
|
|
53
|
+
text-shadow: 2px 2px 5px black;
|
|
54
|
+
user-select: none;
|
|
55
|
+
z-index: 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.carousel-overlay-subtitle {
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 30vh;
|
|
61
|
+
right: 10vw;
|
|
62
|
+
padding: 1rem;
|
|
63
|
+
text-shadow: 2px 2px 5px black;
|
|
64
|
+
user-select: none;
|
|
65
|
+
z-index: 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.carousel-item.active, .carousel-item .view {
|
|
69
|
+
height: 50vh !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.carousel-item img {
|
|
73
|
+
object-fit: cover;
|
|
74
|
+
width:100% !important;
|
|
75
|
+
height: 100% !important;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.content h1 {
|
|
79
|
+
font-size: 55px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media screen and (max-width: 320px) {
|
|
83
|
+
.content h1 {
|
|
84
|
+
font-size: 30px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media screen and (min-width: 321px) and (max-width: 768px) {
|
|
89
|
+
.content h1 {
|
|
90
|
+
font-size: 30px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.content h5 {
|
|
95
|
+
font-size: 23px;
|
|
96
|
+
margin-left: 80px;
|
|
97
|
+
margin-right: 80px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media screen and (max-width: 320px) {
|
|
101
|
+
.content h5 {
|
|
102
|
+
font-size: 18px;
|
|
103
|
+
margin-left: 20px;
|
|
104
|
+
margin-right: 20px
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@media screen and (min-width: 321px) and (max-width: 768px) {
|
|
109
|
+
.content h5 {
|
|
110
|
+
font-size: 18px;
|
|
111
|
+
margin-left: 20px;
|
|
112
|
+
margin-right: 20px;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.feature {
|
|
117
|
+
display: inline-flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
height: 3rem;
|
|
121
|
+
width: 3rem;
|
|
122
|
+
font-size: 1.5rem;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.widgetbot {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: space-around;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.feedback {
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
justify-content: space-around;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
iframe.feedback {
|
|
138
|
+
width: 100vw;
|
|
139
|
+
min-height: calc(100vh - 80px - 72px); /* subtract navbar and footer height */
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@media screen and (min-width: 321px) and (max-width: 768px) {
|
|
143
|
+
iframe.feedback {
|
|
144
|
+
min-height: calc(100vh - 80px - 93px); /* subtract navbar and footer height */
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@media screen and (max-width: 320px) {
|
|
149
|
+
iframe.feedback {
|
|
150
|
+
min-height: calc(100vh - 80px - 114px); /* subtract navbar and footer height */
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/*card image hover*/
|
|
155
|
+
.hover-zoom {
|
|
156
|
+
overflow: hidden;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.hover-zoom img {
|
|
160
|
+
transition: all 1.5s ease;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.hover-zoom:hover img {
|
|
164
|
+
transform: scale(1.1);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/*custom text colors*/
|
|
168
|
+
.text-purple {
|
|
169
|
+
--bs-text-opacity: 1;
|
|
170
|
+
color: var(--bs-purple) !important;
|
|
171
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const loadScript = require('./load-script');
|
|
2
|
+
|
|
3
|
+
loadScript('https://crowdin.com/js/crowdjet/crowdjet.js', function() {
|
|
4
|
+
// crowdin web widget: https://crowdin.com/project/lizardbyte/tools/web-widget
|
|
5
|
+
// get body
|
|
6
|
+
let body = document.getElementsByTagName('body')[0]
|
|
7
|
+
|
|
8
|
+
// create container (popup)
|
|
9
|
+
let container = document.createElement('div')
|
|
10
|
+
container.id = 'crowdjet-container'
|
|
11
|
+
container.dataset.projectId = '606145'
|
|
12
|
+
container.style.bottom = '90px'
|
|
13
|
+
container.style.left = '5px'
|
|
14
|
+
body.appendChild(container)
|
|
15
|
+
|
|
16
|
+
// create expand container (button)
|
|
17
|
+
let expandContainer = document.createElement('div')
|
|
18
|
+
expandContainer.id = 'crowdjet-expand-container'
|
|
19
|
+
expandContainer.style.bottom = '0px'
|
|
20
|
+
expandContainer.style.left = '120px'
|
|
21
|
+
body.appendChild(expandContainer)
|
|
22
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const loadScript = require('./load-script');
|
|
2
|
+
|
|
3
|
+
loadScript('https://proxy-translator.app.crowdin.net/assets/proxy-translator.js', function() {
|
|
4
|
+
window.proxyTranslator.init({
|
|
5
|
+
baseUrl: "https://app.lizardbyte.dev",
|
|
6
|
+
appUrl: "https://proxy-translator.app.crowdin.net",
|
|
7
|
+
valuesParams: "U2FsdGVkX19ClOT7gAzJBnfQPMcvqkPxFWxyPrnN7UEMztYDAOA+/W4kvMqRz2gDLv2/K3hTEtwbcq5imv5k5MUAykz0uklBcdH49kqeo1AhYpNKXdwXZNYBPXmNUm5F",
|
|
8
|
+
distributionBaseUrl: "https://distributions.crowdin.net",
|
|
9
|
+
filePath: "/app.lizardbyte.dev.json",
|
|
10
|
+
distribution: "0913bb75b61f0b26247ffa91bw4",
|
|
11
|
+
languagesData: {
|
|
12
|
+
"fr": {"code":"fr","name":"French","twoLettersCode":"fr"},
|
|
13
|
+
"es-ES": {"code":"es-ES","name":"Spanish","twoLettersCode":"es"},
|
|
14
|
+
"de": {"code":"de","name":"German","twoLettersCode":"de"},
|
|
15
|
+
"it": {"code":"it","name":"Italian","twoLettersCode":"it"},
|
|
16
|
+
"ja":{"code":"ja","name":"Japanese","twoLettersCode":"ja"},
|
|
17
|
+
"pt-PT":{"code":"pt-PT","name":"Portuguese","twoLettersCode":"pt"},
|
|
18
|
+
"ru": {"code":"ru","name":"Russian","twoLettersCode":"ru"},
|
|
19
|
+
"sv-SE":{"code":"sv-SE","name":"Swedish","twoLettersCode":"sv"},
|
|
20
|
+
"tr":{"code":"tr","name":"Turkish","twoLettersCode":"tr"},
|
|
21
|
+
"zh-CN":{"code":"zh-CN","name":"Chinese Simplified","twoLettersCode":"zh"},
|
|
22
|
+
"en": {"code":"en","name":"English","twoLettersCode":"en"},
|
|
23
|
+
"en-US": {"code":"en-US","name":"English, United States","twoLettersCode":"en"},
|
|
24
|
+
"en-GB": {"code":"en-GB","name":"English, United Kingdom","twoLettersCode":"en"}
|
|
25
|
+
},
|
|
26
|
+
defaultLanguage: "en",
|
|
27
|
+
defaultLanguageTitle: "English",
|
|
28
|
+
languageDetectType: "default",
|
|
29
|
+
poweredBy: false,
|
|
30
|
+
position: "bottom-left",
|
|
31
|
+
submenuPosition: "top-left",
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// change styling of language selector button
|
|
35
|
+
let button = document.getElementsByClassName('cr-picker-button')[0]
|
|
36
|
+
button.classList.add('border-white')
|
|
37
|
+
button.classList.add('btn')
|
|
38
|
+
button.classList.add('btn-outline-light')
|
|
39
|
+
button.classList.add('bg-dark')
|
|
40
|
+
button.classList.add('text-white')
|
|
41
|
+
button.classList.add('rounded-0')
|
|
42
|
+
|
|
43
|
+
// change styling of language selector menu
|
|
44
|
+
let menu = document.getElementsByClassName('cr-picker-submenu')[0]
|
|
45
|
+
menu.classList.add('border-white')
|
|
46
|
+
menu.classList.add('bg-dark')
|
|
47
|
+
menu.classList.add('text-white')
|
|
48
|
+
menu.classList.add('rounded-0')
|
|
49
|
+
|
|
50
|
+
// change styling of selected language in menu
|
|
51
|
+
let selected = document.getElementsByClassName('cr-selected')[0]
|
|
52
|
+
selected.classList.add('text-white')
|
|
53
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* global Crate */
|
|
2
|
+
// Crate is not defined... can we use npm version?
|
|
3
|
+
// https://github.com/widgetbot-io/crate/issues/26
|
|
4
|
+
|
|
5
|
+
const loadScript = require('./load-script');
|
|
6
|
+
const { fetchRandomQuote } = require('./random-quote');
|
|
7
|
+
|
|
8
|
+
function randomQuote(quote, crate) {
|
|
9
|
+
let the_quote = quote['quote_safe'] || quote['quote'];
|
|
10
|
+
crate.notify(the_quote);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Widgetbot initialization
|
|
14
|
+
loadScript('https://cdn.jsdelivr.net/npm/@widgetbot/crate@3', function() {
|
|
15
|
+
let widgetbot = new Crate({
|
|
16
|
+
server: '804382334370578482',
|
|
17
|
+
channel: '804383092822900797',
|
|
18
|
+
defer: false,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// get random video game quotes and notify the user on Widgetbot after 7 minutes
|
|
22
|
+
fetchRandomQuote().then(quote => {
|
|
23
|
+
setTimeout(() => {
|
|
24
|
+
if (widgetbot) {
|
|
25
|
+
randomQuote(quote, widgetbot);
|
|
26
|
+
}
|
|
27
|
+
}, 7 * 60 * 1000);
|
|
28
|
+
});
|
|
29
|
+
});
|