From b8188c91be2d025bc3e9b0e1cabd3a8061b5fe30 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Wed, 25 Jan 2023 12:01:29 +0800 Subject: [PATCH] remove `meta.js` file --- .dockerignore | 1 - .gitignore | 1 - resources/assets/src/scripts/meta.ts | 5 ----- resources/views/shared/head.twig | 3 +-- 4 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 resources/assets/src/scripts/meta.ts diff --git a/.dockerignore b/.dockerignore index d1957fa2..e5d9a38c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -7,7 +7,6 @@ coverage/ node_modules/ plugins/** -public/meta.js public/app/* public/lang/* public/plugins/** diff --git a/.gitignore b/.gitignore index 4b3ed465..37d3983a 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,3 @@ storage/options.php .phpunit.result.cache .php-cs-fixer.cache resources/views/overrides -public/meta.js diff --git a/resources/assets/src/scripts/meta.ts b/resources/assets/src/scripts/meta.ts deleted file mode 100644 index 378eb798..00000000 --- a/resources/assets/src/scripts/meta.ts +++ /dev/null @@ -1,5 +0,0 @@ -const blessingElement = document.querySelector('#blessing-globals')! -// @ts-ignore -window.blessing = JSON.parse(blessingElement.textContent!) - -export {} diff --git a/resources/views/shared/head.twig b/resources/views/shared/head.twig index c4fef4e2..0e48a0e4 100644 --- a/resources/views/shared/head.twig +++ b/resources/views/shared/head.twig @@ -9,8 +9,7 @@ {% if custom_cdn_host %} {% endif %} - - + {{ include('assets.style', ignore_missing = true) }} {% for link in links %}