1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-22 06:57:53 +00:00
Files
matomo/plugins/Live/vue/dist/Live.umd.min.js
dependabot[bot] b4d7affb4e [NPM] Bump the all-dependencies group across 1 directory with 18 updates (#23205)
* [NPM] Bump the all-dependencies group across 1 directory with 18 updates

Bumps the all-dependencies group with 17 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@types/jquery](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jquery) | `3.5.6` | `3.5.32` |
| [@types/jqueryui](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jqueryui) | `1.12.16` | `1.12.24` |
| [jquery-ui-dist](https://github.com/jquery/jquery-ui) | `1.13.2` | `1.13.3` |
| [sprintf-js](https://github.com/alexei/sprintf.js) | `1.1.2` | `1.1.3` |
| [vue](https://github.com/vuejs/core) | `3.2.6` | `3.2.47` |
| [@types/materialize-css](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/materialize-css) | `1.0.11` | `1.0.14` |
| [@types/mousetrap](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mousetrap) | `1.6.8` | `1.6.15` |
| [@vue/cli-plugin-babel](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-plugin-babel) | `4.5.13` | `4.5.19` |
| [@vue/cli-plugin-eslint](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-plugin-eslint) | `4.5.13` | `4.5.19` |
| [@vue/cli-plugin-typescript](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-plugin-typescript) | `4.5.13` | `4.5.19` |
| [@vue/cli-plugin-unit-jest](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-plugin-unit-jest) | `4.5.13` | `4.5.19` |
| [@vue/cli-service](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-service) | `4.5.13` | `4.5.19` |
| [abortcontroller-polyfill](https://github.com/mo/abortcontroller-polyfill) | `1.7.3` | `1.7.8` |
| [babel-loader](https://github.com/babel/babel-loader) | `8.2.2` | `8.2.5` |
| [dompurify](https://github.com/cure53/DOMPurify) | `3.2.4` | `3.2.5` |
| [husky](https://github.com/typicode/husky) | `8.0.2` | `8.0.3` |
| [less](https://github.com/less/less.js) | `4.1.2` | `4.1.3` |



Updates `@types/jquery` from 3.5.6 to 3.5.32
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jquery)

Updates `@types/jqueryui` from 1.12.16 to 1.12.24
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jqueryui)

Updates `jquery-ui-dist` from 1.13.2 to 1.13.3
- [Release notes](https://github.com/jquery/jquery-ui/releases)
- [Commits](https://github.com/jquery/jquery-ui/compare/1.13.2...1.13.3)

Updates `sprintf-js` from 1.1.2 to 1.1.3
- [Changelog](https://github.com/alexei/sprintf.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/alexei/sprintf.js/compare/1.1.2...1.1.3)

Updates `vue` from 3.2.6 to 3.2.47
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/v3.2.47/CHANGELOG.md)
- [Commits](https://github.com/vuejs/core/compare/v3.2.6...v3.2.47)

Updates `@types/materialize-css` from 1.0.11 to 1.0.14
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/materialize-css)

Updates `@types/mousetrap` from 1.6.8 to 1.6.15
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mousetrap)

Updates `@vue/cli-plugin-babel` from 4.5.13 to 4.5.19
- [Release notes](https://github.com/vuejs/vue-cli/releases)
- [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-cli/commits/v4.5.19/packages/@vue/cli-plugin-babel)

Updates `@vue/cli-plugin-eslint` from 4.5.13 to 4.5.19
- [Release notes](https://github.com/vuejs/vue-cli/releases)
- [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-cli/commits/v4.5.19/packages/@vue/cli-plugin-eslint)

Updates `@vue/cli-plugin-typescript` from 4.5.13 to 4.5.19
- [Release notes](https://github.com/vuejs/vue-cli/releases)
- [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-cli/commits/v4.5.19/packages/@vue/cli-plugin-typescript)

Updates `@vue/cli-plugin-unit-jest` from 4.5.13 to 4.5.19
- [Release notes](https://github.com/vuejs/vue-cli/releases)
- [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-cli/commits/v4.5.19/packages/@vue/cli-plugin-unit-jest)

Updates `@vue/cli-service` from 4.5.13 to 4.5.19
- [Release notes](https://github.com/vuejs/vue-cli/releases)
- [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-cli/commits/v4.5.19/packages/@vue/cli-service)

Updates `@vue/compiler-sfc` from 3.2.6 to 3.2.47
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/v3.2.47/CHANGELOG.md)
- [Commits](https://github.com/vuejs/core/commits/v3.2.47/packages/compiler-sfc)

Updates `abortcontroller-polyfill` from 1.7.3 to 1.7.8
- [Commits](https://github.com/mo/abortcontroller-polyfill/compare/v1.7.3...v1.7.8)

Updates `babel-loader` from 8.2.2 to 8.2.5
- [Release notes](https://github.com/babel/babel-loader/releases)
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel-loader/compare/v8.2.2...v8.2.5)

Updates `dompurify` from 3.2.4 to 3.2.5
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.2.4...3.2.5)

Updates `husky` from 8.0.2 to 8.0.3
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v8.0.2...v8.0.3)

Updates `less` from 4.1.2 to 4.1.3
- [Release notes](https://github.com/less/less.js/releases)
- [Changelog](https://github.com/less/less.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/less/less.js/compare/v4.1.2...v4.1.3)

---
updated-dependencies:
- dependency-name: "@types/jquery"
  dependency-version: 3.5.32
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: "@types/jqueryui"
  dependency-version: 1.12.24
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: jquery-ui-dist
  dependency-version: 1.13.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: sprintf-js
  dependency-version: 1.1.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: vue
  dependency-version: 3.2.47
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: "@types/materialize-css"
  dependency-version: 1.0.14
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: "@types/mousetrap"
  dependency-version: 1.6.15
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: "@vue/cli-plugin-babel"
  dependency-version: 4.5.19
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: "@vue/cli-plugin-eslint"
  dependency-version: 4.5.19
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: "@vue/cli-plugin-typescript"
  dependency-version: 4.5.19
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: "@vue/cli-plugin-unit-jest"
  dependency-version: 4.5.19
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: "@vue/cli-service"
  dependency-version: 4.5.19
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: "@vue/compiler-sfc"
  dependency-version: 3.2.47
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: abortcontroller-polyfill
  dependency-version: 1.7.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: babel-loader
  dependency-version: 8.2.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: dompurify
  dependency-version: 3.2.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: husky
  dependency-version: 8.0.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: less
  dependency-version: 4.1.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update babel.config.js

* remove unneeded push target

* Improve handling of password confirmation overlay

* Improve handling of setting super user permission

* fix failing UI test

* Update npm dependencies

* Build vue files

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Stefan Giehl <stefan@matomo.org>
Co-authored-by: innocraft-automation <innocraft-automation@users.noreply.github.com>
2025-04-23 09:51:39 +02:00

21 خطوط
8.4 KiB
JavaScript
Generated

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("CoreHome"),require("vue")):"function"===typeof define&&define.amd?define(["CoreHome"],t):"object"===typeof exports?exports["Live"]=t(require("CoreHome"),require("vue")):e["Live"]=t(e["CoreHome"],e["Vue"])})("undefined"!==typeof self?self:this,(function(e,t){return function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="plugins/Live/vue/dist/",o(o.s="fae3")}({"19dc":function(t,o){t.exports=e},"8bbf":function(e,o){e.exports=t},fae3:function(e,t,o){"use strict";if(o.r(t),o.d(t,"LiveWidgetRefresh",(function(){return a})),o.d(t,"TotalVisitors",(function(){return L})),o.d(t,"LivePage",(function(){return I})),o.d(t,"IndexHeader",(function(){return U})),o.d(t,"LastVisits",(function(){return G})),"undefined"!==typeof window){var r=window.document.currentScript,n=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(o.p=n[1])}var i=o("19dc");
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
const{$:l}=window;var a={mounted(e,t){setTimeout(()=>{const o=i["MatomoUrl"].parsed.value.segment;l(e).find("#visitsLive").liveWidget({interval:t.value.liveRefreshAfterMs,onUpdate:()=>{i["AjaxHelper"].fetch({module:"Live",action:"ajaxTotalVisitors",segment:o},{format:"html"}).then(t=>{i["Matomo"].helper.destroyVueComponent(e),l(e).find("#visitsTotal").replaceWith(t),i["Matomo"].helper.compileVueEntryComponents(e)})},maxRows:10,fadeInSpeed:600,dataUrlParams:{module:"Live",action:"getLastVisitsStart",segment:o}})})}},c=o("8bbf");const s={class:"dataTable",cellspacing:"0"},u={id:"label",class:"sortable label first",style:{cursor:"auto"}},d={class:"thDIV"},b=["title"],m={class:"thDIV"},f=["title"],p={class:"thDIV"},v={class:""},j={class:"label column"},O=["title"],g=["title"],y={class:""},V={class:"label column"},h=["title"],E=["title"];function N(e,t,o,r,n,i){return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",null,[Object(c["createElementVNode"])("table",s,[Object(c["createElementVNode"])("thead",null,[Object(c["createElementVNode"])("tr",null,[Object(c["createElementVNode"])("th",u,[Object(c["createElementVNode"])("div",d,Object(c["toDisplayString"])(e.translate("General_Date")),1)]),Object(c["createElementVNode"])("th",{class:"sortable",style:{cursor:"auto"},title:e.translate("General_ColumnNbVisitsDocumentation")},[Object(c["createElementVNode"])("div",m,Object(c["toDisplayString"])(e.translate("General_ColumnNbVisits")),1)],8,b),Object(c["createElementVNode"])("th",{class:"sortable",style:{cursor:"auto"},title:e.translate("General_ColumnNbActionsDocumentation")},[Object(c["createElementVNode"])("div",p,Object(c["toDisplayString"])(e.translate("General_Actions")),1)],8,f)])]),Object(c["createElementVNode"])("tbody",null,[Object(c["createElementVNode"])("tr",v,[Object(c["createElementVNode"])("td",j,Object(c["toDisplayString"])(e.translate("Live_LastHours",24)),1),Object(c["createElementVNode"])("td",{class:"column",title:e.countErrorToday},Object(c["toDisplayString"])(e.visitorsCountToday||0),9,O),Object(c["createElementVNode"])("td",{class:"column",title:e.countErrorToday},Object(c["toDisplayString"])(e.pisToday||0),9,g)]),Object(c["createElementVNode"])("tr",y,[Object(c["createElementVNode"])("td",V,Object(c["toDisplayString"])(e.translate("Live_LastMinutes",30)),1),Object(c["createElementVNode"])("td",{class:"column",title:e.countErrorHalfHour},Object(c["toDisplayString"])(e.visitorsCountHalfHour||0),9,h),Object(c["createElementVNode"])("td",{class:"column",title:e.countErrorHalfHour},Object(c["toDisplayString"])(e.pisHalfhour||0),9,E)])])])])}var C=Object(c["defineComponent"])({props:{countErrorToday:Number,visitorsCountToday:Number,pisToday:Number,countErrorHalfHour:Number,visitorsCountHalfHour:Number,pisHalfhour:Number}});C.render=N;var L=C;const k={class:"visitsLiveFooter"},w=["title"],_=Object(c["createElementVNode"])("img",{id:"pauseImage",border:"0",src:"plugins/Live/images/pause.png",role:"presentation"},null,-1),D=[_],S=["title"],H=Object(c["createElementVNode"])("img",{id:"playImage",style:{display:"none"},border:"0",src:"plugins/Live/images/play.png",role:"presentation"},null,-1),T=[H],P={key:0},x=["href"];function B(e,t,o,r,n,i){const l=Object(c["resolveComponent"])("VueEntryContainer"),a=Object(c["resolveDirective"])("live-widget-refresh");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",null,[(Object(c["openBlock"])(),Object(c["createBlock"])(Object(c["resolveDynamicComponent"])(e.isWidgetized?"Passthrough":"ContentBlock"),{"content-title":e.isWidgetized?void 0:e.translate("Live_VisitorsInRealTime")},{default:Object(c["withCtx"])(()=>[Object(c["withDirectives"])((Object(c["openBlock"])(),Object(c["createElementBlock"])("div",null,[Object(c["createVNode"])(l,{html:e.initialTotalVisitors},null,8,["html"]),Object(c["createVNode"])(l,{html:e.visitors},null,8,["html"])])),[[a,{liveRefreshAfterMs:e.liveRefreshAfterMs}]]),Object(c["createElementVNode"])("div",k,[Object(c["createElementVNode"])("a",{title:e.translate("Live_OnClickPause",e.translate("Live_VisitorsInRealTime")),onClick:t[0]||(t[0]=Object(c["withModifiers"])(t=>e.onClickPause(),["prevent"]))},D,8,w),Object(c["createElementVNode"])("a",{title:e.translate("Live_OnClickStart",e.translate("Live_VisitorsInRealTime")),onClick:t[1]||(t[1]=t=>{e.onClickPlay()})},T,8,S),e.disableLink?Object(c["createCommentVNode"])("",!0):(Object(c["openBlock"])(),Object(c["createElementBlock"])("span",P,[Object(c["createTextVNode"])("   "),Object(c["createElementVNode"])("a",{class:"rightLink",href:e.visitorLogUrl},Object(c["toDisplayString"])(e.translate("Live_LinkVisitorLog")),9,x)]))])]),_:1},8,["content-title"]))])}var M=Object(c["defineComponent"])({props:{disableLink:Boolean,visitors:String,initialTotalVisitors:String,liveRefreshAfterMs:Number,isWidgetized:Boolean},components:{TotalVisitors:L,VueEntryContainer:i["VueEntryContainer"],ContentBlock:i["ContentBlock"],Passthrough:i["Passthrough"]},directives:{LiveWidgetRefresh:a},computed:{visitorLogUrl(){return"#?"+i["MatomoUrl"].stringify(Object.assign(Object.assign({},i["MatomoUrl"].hashParsed.value),{},{category:"General_Visitors",subcategory:"Live_VisitorLog"}))}},methods:{onClickPause(){window.onClickPause()},onClickPlay(){window.onClickPlay()}}});M.render=B;var I=M;function R(e,t,o,r,n,i){const l=Object(c["resolveComponent"])("EnrichedHeadline"),a=Object(c["resolveDirective"])("content-intro");return Object(c["withDirectives"])((Object(c["openBlock"])(),Object(c["createElementBlock"])("div",null,[Object(c["createElementVNode"])("h2",null,[Object(c["createVNode"])(l,null,{default:Object(c["withCtx"])(()=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.translate("Live_VisitorLog")),1)]),_:1})])])),[[a]])}var A=Object(c["defineComponent"])({components:{EnrichedHeadline:i["EnrichedHeadline"]},directives:{ContentIntro:i["ContentIntro"]}});A.render=R;var U=A;
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/const{$:W}=window;var G={mounted(e){W(e).off("click").on("click",".visits-live-launch-visitor-profile",(function(e){return e.preventDefault(),window.broadcast.propagateNewPopoverParameter("visitorProfile",W(this).attr("data-visitor-id")),!1})).tooltip({track:!0,content(){const e=W(this).attr("title")||"";return window.vueSanitize(e.replace(/\n/g,"<br />"))},show:{delay:100,duration:0},hide:!1})}};
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/}})}));
//# sourceMappingURL=Live.umd.min.js.map