@lizardbyte/shared-web 2025.221.2011 → 2025.321.515

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "repository": {
4
4
  "url": "git+https://github.com/LizardByte/shared-web.git"
5
5
  },
6
- "version": "2025.221.2011",
6
+ "version": "2025.321.515",
7
7
  "description": "Shared web assets for LizardByte projects",
8
8
  "license": "AGPL-3.0-only",
9
9
  "files": [
@@ -1,2 +0,0 @@
1
- (()=>{var e={836:e=>{function t(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)}"undefined"!=typeof window&&(window.loadScript=t),e.exports=t}},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
@@ -1 +0,0 @@
1
- {"version":3,"file":"crowdin-web-widget.js","mappings":"qBAKA,SAASA,EAAWC,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,CAGsB,oBAAXW,SACPA,OAAOd,WAAaA,GAGxBe,EAAOC,QAAUhB,C,GCzBbiB,EAA2B,CAAC,GAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaJ,QAGrB,IAAID,EAASE,EAAyBE,GAAY,CAGjDH,QAAS,CAAC,GAOX,OAHAM,EAAoBH,GAAUJ,EAAQA,EAAOC,QAASE,GAG/CH,EAAOC,OACf,ECtBmBO,CAAQ,IAE3BvB,CAAW,+CAA+C,WAGtD,IAAIwB,EAAOpB,SAASqB,qBAAqB,QAAQ,GAG7CC,EAAYtB,SAASC,cAAc,OACvCqB,EAAUC,GAAK,qBACfD,EAAUE,QAAQC,UAAY,SAC9BH,EAAUI,MAAMC,OAAS,OACzBL,EAAUI,MAAME,KAAO,MACvBR,EAAKX,YAAYa,GAGjB,IAAIO,EAAkB7B,SAASC,cAAc,OAC7C4B,EAAgBN,GAAK,4BACrBM,EAAgBH,MAAMC,OAAS,MAC/BE,EAAgBH,MAAME,KAAO,QAC7BR,EAAKX,YAAYoB,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\n// Expose to the global scope\nif (typeof window !== 'undefined') {\n window.loadScript = loadScript;\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":["loadScript","url","callback","script","document","createElement","src","async","onload","onerror","Error","concat","head","appendChild","window","module","exports","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","require","body","getElementsByTagName","container","id","dataset","projectId","style","bottom","left","expandContainer"],"sourceRoot":""}
@@ -1,22 +0,0 @@
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
- });