remove meta.js file

This commit is contained in:
Pig Fang 2023-01-25 12:01:29 +08:00
parent 0b516d02c5
commit b8188c91be
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2
4 changed files with 1 additions and 9 deletions

View File

@ -7,7 +7,6 @@
coverage/
node_modules/
plugins/**
public/meta.js
public/app/*
public/lang/*
public/plugins/**

1
.gitignore vendored
View File

@ -25,4 +25,3 @@ storage/options.php
.phpunit.result.cache
.php-cs-fixer.cache
resources/views/overrides
public/meta.js

View File

@ -1,5 +0,0 @@
const blessingElement = document.querySelector('#blessing-globals')!
// @ts-ignore
window.blessing = JSON.parse(blessingElement.textContent!)
export {}

View File

@ -9,8 +9,7 @@
{% if custom_cdn_host %}
<link rel="preconnect" href="{{ custom_cdn_host }}" id="cdn-host" crossorigin>
{% endif %}
<script id="blessing-globals" type="application/json">{{ blessing|json_encode|raw }}</script>
<script src="{{ url('/meta.js') }}"></script>
<script>window.blessing = {{ blessing|json_encode|raw }}</script>
{{ include('assets.style', ignore_missing = true) }}
{% for link in links %}
<link{% for attribute, value in link %} {{ attribute }}="{{ value|raw }}"{% endfor %}>