Azure / azure-iot-pcs-remote-monitoring-dotnet

Azure IoT .NET solution for Remote Monitoring
MIT License
162 stars 95 forks source link

Missing icon fonts! #165

Closed ByteCode2408 closed 4 years ago

ByteCode2408 commented 5 years ago

Type of issue

Description

https://static.azureiotcentral.com/ux/static/media/segmdl2.1.61.38af5f02.woff and https://static.azureiotcentral.com/ux/static/media/segmdl2.1.61.35c95dc2.ttf required in Web UI are missing since few days!

BeigeBadger commented 4 years ago

I am also encountering this issue. The error I get is:

Access to font at 'https://static.azureiotcentral.com/ux/static/media/segmdl2.1.61.38af5f02.woff' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

and

Access to font at 'https://static.azureiotcentral.com/ux/static/media/segmdl2.1.61.35c95dc2.ttf' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Trying to browse to https://static.azureiotcentral.com/ux/static/media/segmdl2.1.61.38af5f02.woff or https://static.azureiotcentral.com/ux/static/media/segmdl2.1.61.35c95dc2.ttf directly asks me to authenticate with my MS account details, then returns a 404 error.

The above error about not being able to access the fonts occurs on my local machine, and in a hosted environment (Azure App Service).

Let me know if you need any further details.

BeigeBadger commented 4 years ago

So I managed to fix this by downloading the font from the link provided on this page.

This only gets you the .tff file for the segmdl2 font though so I used this site to convert the .tff to a .woff.

I then added these files into the src\assets\fonts and updated the @font-face declaration in my index.scss file to:

@font-face {
  font-family: $icon-font-family;
  src: url("assets/fonts/segmdl2.woff") format('woff'),
      url("assets/fonts/segmdl2.ttf") format('truetype');
}

I hope this helps.

andrewschmidt-a commented 4 years ago

I had the same issue. Looks like iotcentral changed fonts

ByteCode2408 commented 4 years ago

Yes, I did the same by downloading and using the font locally. Thanks!

akingscote commented 4 years ago

surely this shouldnt be closed until its fixed in the code

andrewschmidt-a commented 4 years ago

Agreed. Isnt this project in maintenance mode?

Le ven. 6 déc. 2019, à 05 h 20, akingscote notifications@github.com a écrit :

surely this shouldnt be closed until its fixed in the code

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-iot-pcs-remote-monitoring-dotnet/issues/165?email_source=notifications&email_token=ABSYXNRVKS2VGY4OJLIGDJTQXI7SLA5CNFSM4IZGP5LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGD5QVY#issuecomment-562550871, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSYXNQMSQ5HLEGXFUIJKTTQXI7SLANCNFSM4IZGP5LA .

akingscote commented 4 years ago

Oh right I didn't realize. Where did you see that? I've submitted a pull request regardless.

Sent from Workspace ONE Boxer

On 6 Dec 2019 16:27, Andrew Schmidt notifications@github.com wrote: Agreed. Isnt this project in maintenance mode?

Le ven. 6 déc. 2019, à 05 h 20, akingscote notifications@github.com a écrit :

surely this shouldnt be closed until its fixed in the code

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-iot-pcs-remote-monitoring-dotnet/issues/165?email_source=notifications&email_token=ABSYXNRVKS2VGY4OJLIGDJTQXI7SLA5CNFSM4IZGP5LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGD5QVY#issuecomment-562550871, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSYXNQMSQ5HLEGXFUIJKTTQXI7SLANCNFSM4IZGP5LA .

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-iot-pcs-remote-monitoring-dotnet/issues/165?email_source=notifications&email_token=AF7J2RKYJLHK4L5R7VKJBKTQXJ4PJA5CNFSM4IZGP5LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGETWUA#issuecomment-562641744, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF7J2RIJGMX7IT5PVFCF623QXJ4PJANCNFSM4IZGP5LA.