xref: /plugin/diagrams/Diagrams.php (revision 27b2367e0e899c7a18667673704a68784b2c5652)
1bc39777fSAndreas Gohr<?php
2bc39777fSAndreas Gohr
3bc39777fSAndreas Gohrnamespace dokuwiki\plugin\diagrams;
4bc39777fSAndreas Gohr
5bc39777fSAndreas Gohr/**
6bc39777fSAndreas Gohr * Currently only used to hold constants
7bc39777fSAndreas Gohr */
8bc39777fSAndreas Gohrclass Diagrams {
9bc39777fSAndreas Gohr    const MODE_MEDIA = 1;
10bc39777fSAndreas Gohr    const MODE_EMBED = 2;
11*27b2367eSAndreas Gohr
12*27b2367eSAndreas Gohr    const CSP = [
13*27b2367eSAndreas Gohr        'default-src' => "'none'",
14*27b2367eSAndreas Gohr        'style-src' => "'unsafe-inline' fonts.googleapis.com",
15*27b2367eSAndreas Gohr        'media-src' => "'self'",
16*27b2367eSAndreas Gohr        'object-src' => "'self'",
17*27b2367eSAndreas Gohr        'font-src' => "'self' data: fonts.gstatic.com",
18*27b2367eSAndreas Gohr        'form-action' => "'none'",
19*27b2367eSAndreas Gohr        'frame-ancestors' => "'self'",
20*27b2367eSAndreas Gohr        'img-src' => "self data:",
21*27b2367eSAndreas Gohr        'sandbox' => "allow-popups allow-top-navigation allow-same-origin",
22*27b2367eSAndreas Gohr    ];
23bc39777fSAndreas Gohr}
24