fix: replace materialdesign cdn with npm fix #52

This commit is contained in:
Matteo Cominetti
2023-08-01 11:58:48 +01:00
parent 4995ecf28e
commit 809ea7bb8d
4 changed files with 11 additions and 5 deletions
+5
View File
@@ -2863,6 +2863,11 @@
"@jridgewell/sourcemap-codec": "1.4.14"
}
},
"@mdi/font": {
"version": "7.2.96",
"resolved": "https://registry.npmjs.org/@mdi/font/-/font-7.2.96.tgz",
"integrity": "sha512-e//lmkmpFUMZKhmCY9zdjRe4zNXfbOIJnn6xveHbaV2kSw5aJ5dLXUxcRt1Gxfi7ZYpFLUWlkG2MGSFAiqAu7w=="
},
"@microsoft/fetch-event-source": {
"version": "2.0.1",
"resolved": "https://registry.nlark.com/@microsoft/fetch-event-source/download/@microsoft/fetch-event-source-2.0.1.tgz",
+1
View File
@@ -14,6 +14,7 @@
"validate": "office-toolbox validate -m public/manifest.xml"
},
"dependencies": {
"@mdi/font": "^7.2.96",
"@speckle/objectloader": "^2.9.0",
"@speckle/viewer": "^2.14.7",
"core-js": "^3.6.5",
+4 -5
View File
@@ -11,10 +11,6 @@
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"
/>
</head>
<body>
<noscript>
@@ -25,7 +21,10 @@
</noscript>
<!-- built files will be auto injected -->
<script type="text/javascript">
if (window.navigator.userAgent.indexOf('Trident') > -1 || window.navigator.userAgent.indexOf('Edge') > -1) {
if (
window.navigator.userAgent.indexOf('Trident') > -1 ||
window.navigator.userAgent.indexOf('Edge') > -1
) {
//render unsupported message
document.write(
'<h1><br/>Sorry, this Excel version is not supported as it still uses IE 11/Legacy Edge.<br/>Please update it or use Excel Online.</h1>'
+1
View File
@@ -4,6 +4,7 @@ import router from './router'
import store from './store'
import { apolloProvider } from './vue-apollo'
import vuetify from './plugins/vuetify'
import '@mdi/font/css/materialdesignicons.css'
Vue.config.productionTip = false