PDF rausgenommen

This commit is contained in:
aschwarz
2023-01-23 11:03:31 +01:00
parent 82d562a322
commit a6523903eb
28078 changed files with 4247552 additions and 2 deletions

View File

@ -0,0 +1,23 @@
/*!
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
(function () {
angular.module('piwikApp').controller('ComponentController', ComponentController);
ComponentController.$inject = [];
function ComponentController() {
// remember to keep controller very simple. Create a service/factory (model) if needed
var vm = this;
vm.myProperty = 'component';
vm.doSomething = doSomething;
function doSomething() {
}
}
})();

View File

@ -0,0 +1,3 @@
<div class="componentClass">
{{ componentAs.myProperty }}
</div>

View File

@ -0,0 +1,44 @@
/*!
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
/**
* Usage:
* <div piwik-component>
*/
(function () {
angular.module('piwikApp').directive('piwikComponent', piwikComponent);
piwikComponent.$inject = ['piwik'];
function piwikComponent(piwik){
var defaults = {
// showAllSitesItem: 'true'
};
return {
restrict: 'A',
scope: {
// showAllSitesItem: '<'
},
templateUrl: 'plugins/ExamplePlugin/angularjs/directive-component/component.directive.html?cb=' + piwik.cacheBuster,
controller: 'ComponentController',
controllerAs: 'componentAs',
compile: function (element, attrs) {
for (var index in defaults) {
if (defaults.hasOwnProperty(index) && attrs[index] === undefined) {
attrs[index] = defaults[index];
}
}
return function (scope, element, attrs) {
};
}
};
}
})();

View File

@ -0,0 +1,3 @@
.componentClass {
// ...
}

View File

@ -0,0 +1,3 @@
<div class="componentClass">
{{ componentAs.myProperty }}
</div>

View File

@ -0,0 +1,34 @@
/*!
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
/**
* Usage:
* <piwik-example-component>
*/
(function () {
angular.module('piwikApp').component('piwikComponent', {
templateUrl: 'plugins/ExamplePlugin/angularjs/example-component/example-component.component.html?cb=' + piwik.cacheBuster,
bindings: {
// showAllSitesItem: '<'
},
controller: ComponentController
});
ComponentController.$inject = [];
function ComponentController() {
// remember to keep controller very simple. Create a service/factory (model) if needed
var vm = this;
vm.myProperty = 'component';
vm.doSomething = doSomething;
function doSomething() {
}
}
})();

View File

@ -0,0 +1,3 @@
.componentClass {
// ...
}