View | Details | Raw Unified | Return to bug 38365
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (+3 lines)
Lines 8-13 Link Here
8
<meta name="viewport" content="width=device-width, initial-scale=1" />
8
<meta name="viewport" content="width=device-width, initial-scale=1" />
9
<meta name="csrf-token" content="[% Koha.GenerateCSRF | $raw %]" />
9
<meta name="csrf-token" content="[% Koha.GenerateCSRF | $raw %]" />
10
[% IF logged_in_user %]<meta name="generator" content="Koha [% Koha.Version.maintenance | html %]" />[% END %]
10
[% IF logged_in_user %]<meta name="generator" content="Koha [% Koha.Version.maintenance | html %]" />[% END %]
11
<script nonce="[% Koha.CSPNonce | $raw %]">
12
    window.__CSP_NONCE__ = "[% Koha.CSPNonce | $raw %]";
13
</script>
11
[%# Prevent XFS attacks -%]
14
[%# Prevent XFS attacks -%]
12
[% UNLESS popup %]
15
[% UNLESS popup %]
13
    <style id="antiClickjack">
16
    <style id="antiClickjack">
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/csp-nonce.js (+1 lines)
Line 0 Link Here
1
__webpack_nonce__ = window.__CSP_NONCE__;
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/modules/acquisitions.ts (-1 / +3 lines)
Lines 2-8 import { createApp } from "vue"; Link Here
2
import { createWebHistory, createRouter } from "vue-router";
2
import { createWebHistory, createRouter } from "vue-router";
3
import { createPinia } from "pinia";
3
import { createPinia } from "pinia";
4
4
5
import { library } from "@fortawesome/fontawesome-svg-core";
5
import { config, library } from "@fortawesome/fontawesome-svg-core";
6
config.autoAddCss = false;
7
import "@fortawesome/fontawesome-svg-core/styles.css";
6
import {
8
import {
7
    faEye,
9
    faEye,
8
    faEyeSlash,
10
    faEyeSlash,
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/modules/admin/record_sources.ts (-1 / +3 lines)
Lines 2-8 import { createApp } from "vue"; Link Here
2
import { createPinia } from "pinia";
2
import { createPinia } from "pinia";
3
import { createWebHistory, createRouter } from "vue-router";
3
import { createWebHistory, createRouter } from "vue-router";
4
4
5
import { library } from "@fortawesome/fontawesome-svg-core";
5
import { config, library } from "@fortawesome/fontawesome-svg-core";
6
config.autoAddCss = false;
7
import "@fortawesome/fontawesome-svg-core/styles.css";
6
import {
8
import {
7
    faPlus,
9
    faPlus,
8
    faMinus,
10
    faMinus,
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts (-1 / +3 lines)
Lines 2-8 import { createApp } from "vue"; Link Here
2
import { createWebHistory, createRouter } from "vue-router";
2
import { createWebHistory, createRouter } from "vue-router";
3
import { createPinia } from "pinia";
3
import { createPinia } from "pinia";
4
4
5
import { library } from "@fortawesome/fontawesome-svg-core";
5
import { config, library } from "@fortawesome/fontawesome-svg-core";
6
config.autoAddCss = false;
7
import "@fortawesome/fontawesome-svg-core/styles.css";
6
import {
8
import {
7
    faList,
9
    faList,
8
    faPlus,
10
    faPlus,
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/modules/preservation.ts (-1 / +3 lines)
Lines 2-8 import { createApp } from "vue"; Link Here
2
import { createWebHistory, createRouter } from "vue-router";
2
import { createWebHistory, createRouter } from "vue-router";
3
import { createPinia } from "pinia";
3
import { createPinia } from "pinia";
4
4
5
import { library } from "@fortawesome/fontawesome-svg-core";
5
import { config, library } from "@fortawesome/fontawesome-svg-core";
6
config.autoAddCss = false;
7
import "@fortawesome/fontawesome-svg-core/styles.css";
6
import {
8
import {
7
    faPlus,
9
    faPlus,
8
    faMinus,
10
    faMinus,
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/modules/sip2.ts (-1 / +3 lines)
Lines 2-8 import { createApp } from "vue"; Link Here
2
import { createWebHistory, createRouter } from "vue-router";
2
import { createWebHistory, createRouter } from "vue-router";
3
import { createPinia } from "pinia";
3
import { createPinia } from "pinia";
4
4
5
import { library } from "@fortawesome/fontawesome-svg-core";
5
import { config, library } from "@fortawesome/fontawesome-svg-core";
6
config.autoAddCss = false;
7
import "@fortawesome/fontawesome-svg-core/styles.css";
6
import {
8
import {
7
    faPlus,
9
    faPlus,
8
    faMinus,
10
    faMinus,
(-)a/rspack.config.js (-9 / +28 lines)
Lines 19-33 module.exports = [ Link Here
19
            },
19
            },
20
        },
20
        },
21
        entry: {
21
        entry: {
22
            erm: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts",
22
            erm: [
23
            preservation:
23
                "./koha-tmpl/intranet-tmpl/prog/js/vue/csp-nonce.js",
24
                "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts",
25
            ],
26
            preservation: [
27
                "./koha-tmpl/intranet-tmpl/prog/js/vue/csp-nonce.js",
24
                "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/preservation.ts",
28
                "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/preservation.ts",
25
            "admin/record_sources":
29
            ],
30
            "admin/record_sources": [
31
                "./koha-tmpl/intranet-tmpl/prog/js/vue/csp-nonce.js",
26
                "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/admin/record_sources.ts",
32
                "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/admin/record_sources.ts",
27
            acquisitions:
33
            ],
34
            acquisitions: [
35
                "./koha-tmpl/intranet-tmpl/prog/js/vue/csp-nonce.js",
28
                "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/acquisitions.ts",
36
                "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/acquisitions.ts",
29
            islands: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/islands.ts",
37
            ],
30
            sip2: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/sip2.ts",
38
            islands: [
39
                "./koha-tmpl/intranet-tmpl/prog/js/vue/csp-nonce.js",
40
                "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/islands.ts",
41
            ],
42
            sip2: [
43
                "./koha-tmpl/intranet-tmpl/prog/js/vue/csp-nonce.js",
44
                "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/sip2.ts",
45
            ],
31
        },
46
        },
32
        output: {
47
        output: {
33
            filename: "[name].js",
48
            filename: "[name].js",
Lines 102-108 module.exports = [ Link Here
102
            outputModule: true,
117
            outputModule: true,
103
        },
118
        },
104
        entry: {
119
        entry: {
105
            islands: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/islands.ts",
120
            islands: [
121
                "./koha-tmpl/intranet-tmpl/prog/js/vue/csp-nonce.js",
122
                "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/islands.ts",
123
            ],
106
        },
124
        },
107
        output: {
125
        output: {
108
            filename: "[name].esm.js",
126
            filename: "[name].esm.js",
Lines 169-176 module.exports = [ Link Here
169
    },
187
    },
170
    {
188
    {
171
        entry: {
189
        entry: {
172
            "api-client.cjs":
190
            "api-client.cjs": [
191
                "./koha-tmpl/intranet-tmpl/prog/js/vue/csp-nonce.js",
173
                "./koha-tmpl/intranet-tmpl/prog/js/fetch/api-client.js",
192
                "./koha-tmpl/intranet-tmpl/prog/js/fetch/api-client.js",
193
            ],
174
        },
194
        },
175
        devtool: false,
195
        devtool: false,
176
        output: {
196
        output: {
177
- 

Return to bug 38365