I use vue.js version of coreui template, but I find difficulty in inserting a custom favicon for the present project.
file path: "coreui-free-vue-admin-template/public/index.html"
<!DOCTYPE html>
<!--
* CoreUI Vue.js Admin Template
* #version v4.2.0
* #link https://coreui.io/vue/
* Copyright (c) 2021 creativeLabs Łukasz Holeczek
* License (https://coreui.io/pro/license)
-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,shrink-to-fit=no">
<meta name="description" content="CoreUI Vue.js Admin Template">
<meta name="author" content="creativeLabs Łukasz Holeczek">
<title>CoreUI Vue.js Admin Template</title>
<!-- favicons for all devices -->
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<noscript>
<strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
I tried changing the image path in the above index.html but no luck any suggestions will be helpful.
Related
Using Vite 3 with vue/typescript/vuetify, I am running lighthouse on Chrome dev tools, and I get these errors. The vite preview html looks like this
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="apple-touch-icon" href="/favicon.png">
<link rel="manifest" href="/manifest.json">
<meta name="theme-color" content="#6E2D91">
<meta name="description" content="Sample Web App">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<script type="module" crossorigin src="/assets/index.79acedba.js"></script>
<link rel="stylesheet" href="/assets/index.4a576584.css">
</head>
<body>
<div id="app"></div>
</body>
</html>
The original html file was
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="apple-touch-icon" href="/favicon.png">
<link rel="manifest" href="/manifest.json">
<meta name="theme-color" content="#6E2D91">
<meta name="description" content="Sample Web App">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
How can I fix these?
i am using laravel and vuejs to develop single page application in my index.blade.php i am invoke app element vuejs
this is my index.blade.php
#extends('layout.header')
<div id="app" v-cloak v-on:shownav="shownavO()">
<nav_bar v-if="hide" :authType="authType" ></nav_bar>
<menuuu v-if="hide" :authType="authType" ></menuuu>
<router-view class="v-cloak--hidden"></router-view>
</div>
#extends('layout.footer')
<script src="{{asset('js/app.js')}}"></script>
in my layout.header it is a blade file i include css file
<!DOCTYPE html>
<html class="loading" lang="{{$lang}}" data-textdirection="{{$lang=='ar'?'rtl':'ltr'}}" id="app">
<!-- BEGIN: Head-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta name="description" content="Vuexy admin is super flexible, powerful, clean & modern responsive bootstrap 4 admin template with unlimited possibilities.">
<meta name="keywords" content="admin template, Vuexy admin template, dashboard template, flat admin template, responsive admin template, web app">
<meta name="author" content="PIXINVENT">
<title>munasbaty</title>
<link rel="apple-touch-icon" href="{{url('/')}}/app-assets/images/ico/apple-icon-120.png">
<link rel="shortcut icon" type="image/x-icon" href="{{url('/')}}/app-assets/images/ico/favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600" rel="stylesheet">
<!-- BEGIN: Vendor CSS-->
#if(!isset($lang)||$lang=='en')
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/vendors/css/vendors.min.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/vendors/css/charts/apexcharts.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/vendors/css/extensions/tether-theme-arrows.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/vendors/css/extensions/tether.min.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/vendors/css/extensions/shepherd-theme-default.css">
<!-- END: Vendor CSS-->
<!-- BEGIN: Theme CSS-->
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/css/bootstrap-extended.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/css/colors.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/css/components.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/css/themes/dark-layout.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/css/themes/semi-dark-layout.css">
<!-- BEGIN: Page CSS-->
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/css/core/menu/menu-types/vertical-menu.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/css/core/colors/palette-gradient.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/css/pages/dashboard-analytics.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/css/pages/card-analytics.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/css/plugins/tour/tour.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/css/pages/card-analytics.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/app-assets/vendors/css/pickers/pickadate/pickadate.css">
<link rel="stylesheet" type="text/css" href="{{url('/')}}/assets/css/style.css">
#endif
</head>
<!-- END: Head-->
<!-- BEGIN: Body-->
<body>
when update the page or when open the project the application It appears this way in the beginning
I am trying to implement web push in a PWA made in ReactS. It even achieved some success, but I'm having trouble updating the service worker, especially on iOS. When I press the button to enable notifications, it takes a while to update the SW and then register it and hide the notification message. That's on Android, because on iOS it doesn't work at all.
My files
My service-worker-custom.js
console.log('Service Worker Custom');
importScripts('://www.gstatic.com/firebasejs/4.8.1/firebase-app.js');
importScripts('://www.gstatic.com/firebasejs/4.8.1/firebase-messaging.js');
firebase.initializeApp({
messagingSenderId: "444099730124"
});
const messaging = firebase.messaging();
self.addEventListener('install', function (e) {
e.waitUntil(
caches.open('pwa').then(function (cache) {
return cache.addAll([
'/',
'/index.html',
]);
})
);
});
self.addEventListener('fetch', function (event) {
// console.log(event.request.url);
event.respondWith(
caches.match(event.request).then(function (response) {
return response || fetch(event.request);
})
);
});
My index.html
<!doctype html>
<html lang="pt-br">
<head>
<title>PWA</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#000000">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capaz" content = "yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Yeapps PWA">
<meta name="description" content="Yeapps PWA">
<!-- Add meta theme-color -->
<meta name="theme-color" content="#007bff" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bulma/0.4.3/css/bulma.min.css">
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<!-- <link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/icons/192X192.png">
<link rel="apple-touch-icon" href="%PUBLIC_URL%//icons/icon-152x152.png"> -->
<link rel="manifest" href="./manifest.json">
<!-- <link rel="shortcut icon" href="./icons/192X192.png"> -->
<link rel="shortcut icon" href="./icons/Icon-16.png">
<link rel="shortcut icon" href="./icons/Icon-20.png">
<link rel="shortcut icon" href="./icons/Icon-29.png">
<link rel="shortcut icon" href="./icons/Icon-32.png">
<link rel="shortcut icon" href="./icons/Icon-40.png">
<link rel="shortcut icon" href="./icons/Icon-48.png">
<link rel="shortcut icon" href="./icons/Icon-50.png">
<link rel="shortcut icon" href="./icons/Icon-55.png">
<link rel="shortcut icon" href="./icons/Icon-57.png">
<link rel="shortcut icon" href="./icons/Icon-58.png">
<link rel="shortcut icon" href="./icons/Icon-60.png">
<link rel="shortcut icon" href="./icons/Icon-64.png">
<link rel="shortcut icon" href="./icons/Icon-72.png">
<link rel="shortcut icon" href="./icons/Icon-76.png">
<link rel="shortcut icon" href="./icons/Icon-80.png">
<link rel="shortcut icon" href="./icons/Icon-87.png">
<link rel="shortcut icon" href="./icons/Icon-88.png">
<link rel="shortcut icon" href="./icons/Icon-100.png">
<link rel="shortcut icon" href="./icons/Icon-114.png">
<link rel="shortcut icon" href="./icons/Icon-120.png">
<link rel="shortcut icon" href="./icons/Icon-128.png">
<link rel="shortcut icon" href="./icons/Icon-144.png">
<link rel="shortcut icon" href="./icons/Icon-152.png">
<link rel="shortcut icon" href="./icons/Icon-167.png">
<link rel="shortcut icon" href="./icons/Icon-172.png">
<link rel="shortcut icon" href="./icons/Icon-180.png">
<link rel="shortcut icon" href="./icons/Icon-196.png">
<link rel="shortcut icon" href="./icons/Icon-256.png">
<link rel="shortcut icon" href="./icons/Icon-512.png">
<link rel="shortcut icon" href="./icons/Icon-1024.png">
<link rel="apple-touch-icon" sizes="16x16" href="./icons/Icon-16.png">
<link rel="apple-touch-icon" sizes="20x20" href="./icons/Icon-20.png">
<link rel="apple-touch-icon" sizes="29x29" href="./icons/Icon-29.png">
<link rel="apple-touch-icon" sizes="32x32" href="./icons/Icon-32.png">
<link rel="apple-touch-icon" sizes="40x40" href="./icons/Icon-40.png">
<link rel="apple-touch-icon" sizes="48x48" href="./icons/Icon-48.png">
<link rel="apple-touch-icon" sizes="50x50" href="./icons/Icon-50.png">
<link rel="apple-touch-icon" sizes="55x55" href="./icons/Icon-55.png">
<link rel="apple-touch-icon" sizes="57x57" href="./icons/Icon-57.png">
<link rel="apple-touch-icon" sizes="58x58" href="./icons/Icon-58.png">
<link rel="apple-touch-icon" sizes="60x60" href="./icons/Icon-60.png">
<link rel="apple-touch-icon" sizes="64x64" href="./icons/Icon-64.png">
<link rel="apple-touch-icon" sizes="72x72" href="./icons/Icon-72.png">
<link rel="apple-touch-icon" sizes="76x76" href="./icons/Icon-76.png">
<link rel="apple-touch-icon" sizes="80x80" href="./icons/Icon-80.png">
<link rel="apple-touch-icon" sizes="87x87" href="./icons/Icon-87.png">
<link rel="apple-touch-icon" sizes="88x88" href="./icons/Icon-88.png">
<link rel="apple-touch-icon" sizes="100x100" href="./icons/Icon-100.png">
<link rel="apple-touch-icon" sizes="114x114" href="./icons/Icon-114.png">
<link rel="apple-touch-icon" sizes="120x120" href="./icons/Icon-120.png">
<link rel="apple-touch-icon" sizes="128x128" href="./icons/Icon-128.png">
<link rel="apple-touch-icon" sizes="144x144" href="./icons/Icon-144.png">
<link rel="apple-touch-icon" sizes="152x152" href="./icons/Icon-152.png">
<link rel="apple-touch-icon" sizes="167x167" href="./icons/Icon-167.png">
<link rel="apple-touch-icon" sizes="172x172" href="./icons/Icon-172.png">
<link rel="apple-touch-icon" sizes="180x180" href="./icons/Icon-180.png">
<link rel="apple-touch-icon" sizes="196x196" href="./icons/Icon-196.png">
<link rel="apple-touch-icon" sizes="256x256" href="./icons/Icon-256.png">
<link rel="apple-touch-icon" sizes="512x512" href="./icons/Icon-512.png">
<link rel="apple-touch-icon" sizes="1024x1024" href="./icons/Icon-1024.png">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link rel="stylesheet" href="//stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" />
<script src="https://www.gstatic.com/firebasejs/7.8.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.0/firebase-messaging.js"></script>
<!-- <link rel="stylesheet" href="//use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous"> -->
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
firebase.initializeApp({
apiKey: "AIzaSyDDxGUQxbWUhRH483KpbroAVprlYa1LQPg",
authDomain: "yeapps-pwa.firebaseapp.com",
databaseURL: "https://yeapps-pwa.firebaseio.com",
projectId: "yeapps-pwa",
storageBucket: "yeapps-pwa.appspot.com",
messagingSenderId: "444099730124",
appId: "1:444099730124:web:d43ba455127c07e6694069"
});
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker-custom.js').then(function (registration) {
firebase.messaging().useServiceWorker(registration);
console.log('Worker registration successful', registration.scope);
}, function (err) {
console.log('Worker registration failed', err);
}).catch(function (err) {
console.log(err);
});
} else {
console.log('Service Worker is not supported by browser.');
}`enter code here`
</script>
</body>
</html>
Unfortunately, Notifications API is not supported currently on iOS https://caniuse.com/#feat=notifications.
index.html
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<title>Desktop App</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico">
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#4e8ef7">
<link href="assets/style.css" rel="stylesheet">
<link href="assets/overlay.css" rel="stylesheet">
<link rel="stylesheet" href="assets/bootstrap.min.css" />
<link href="assets/material-icons.css" rel="stylesheet">
<base href="./">
</head>
<body>
<app>
Loading
</app>
<script src="js/ajax-d3.min.js"></script>
<script src="js/ajax-nvd3.js"></script>
<script src="js/hammer.min.js"></script>
<script src="js/desktop.min.js"></script>
</body>
</html>
when I load this html on browser material floating label is working fine but when i load it with electron it stops working ..
It should work like
but its working like
please help !!
I have the follow code:
app.middleware('files', '/lib', loopback.static(path.normalize(__dirname + '/lib')));
But I am getting this error on cosole:
Failed to load resource: the server responded with a status of 404 (Not Found)
Any idea why? The location of my css files is correct and the file is there.
Thanks
I am trying to integrate Raneto with Loopback, if someone can give me a hand I would apretiate it.
Here my html code:
<!DOCTYPE html>
<html lang="{{config.locale}}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{#meta.title}}{{meta.title}} - {{/meta.title}}{{config.site_title}}</title>
{{#meta.description}}<meta name="description" content="{{meta.description}}">{{/meta.description}}
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon", href="http://buildmetric.com/favicon.ico?v=2">
<link rel="stylesheet" href="{{config.base_url}}/lib/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="{{config.base_url}}/lib/highlightjs/styles/solarized_light.css">
<link rel="stylesheet" href="{{config.base_url}}/styles/raneto.css">
<link rel="stylesheet" href="{{config.base_url}}/styles/ghostdown.css">
<link type="text/css" rel="stylesheet" href="{{config.base_url}}/lib/bootstrap/dist/css/font-awesome.min.css" />
<link type="text/css" rel="stylesheet" href="{{config.base_url}}/lib/bootstrap/dist/css/animate.css" />
<link type="text/css" rel="stylesheet" href="{{config.base_url}}/lib/bootstrap/dist/css/hover.css" />
<link type="text/css" rel="stylesheet" href="{{config.base_url}}/lib/bootstrap/dist/css/style.css" />
{{{config.analytics}}}
</head>
<body class="{{body_class}}">
Full path:
http://localhost:5000/lib/bootstrap/dist/css/bootstrap.min.css