Skip to content

Commit 0a16ba5

Browse files
committed
Update paths.
1 parent 3677652 commit 0a16ba5

File tree

8 files changed

+14
-9
lines changed

8 files changed

+14
-9
lines changed

src/dotnet/APIView/ClientSPA/angular.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@
5656
},
5757
"configurations": {
5858
"production": {
59+
<<<<<<< HEAD
5960
"baseHref": "/",
6061
"deployUrl": "/spa/",
62+
=======
63+
"baseHref": "/spa/browser/",
64+
>>>>>>> 63a013751 (Update paths.)
6165
"budgets": [
6266
{
6367
"type": "initial",

src/dotnet/APIView/ClientSPA/src/app/_components/shared/comment-thread/comment-thread.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('CommentThreadComponent', () => {
4747
component.codePanelRowData!.comments = [azureSdkComment];
4848
fixture.detectChanges();
4949

50-
const copilotIcon = fixture.nativeElement.querySelector('img[src="/spa/assets/icons/copilot.svg"]');
50+
const copilotIcon = fixture.nativeElement.querySelector('img[src="assets/icons/copilot.svg"]');
5151
expect(copilotIcon).toBeTruthy();
5252
expect(copilotIcon?.alt).toBe('Azure SDK Copilot');
5353
});

src/dotnet/APIView/ClientSPA/src/app/app.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { CookieService } from 'ngx-cookie-service';
1616
import { SharedAppModule } from './_modules/shared/shared-app.module';
1717
import { HttpErrorInterceptorService } from './_services/http-error-interceptor/http-error-interceptor.service';
1818
import { MessageService } from 'primeng/api';
19-
import { CommonModule } from '@angular/common';
19+
import { APP_BASE_HREF, CommonModule } from '@angular/common';
2020
import { ProfilePageComponent } from './_components/profile-page/profile-page.component';
2121
import { providePrimeNG } from 'primeng/config';
2222
import Lara from '@primeuix/themes/lara';
@@ -56,6 +56,7 @@ export function initializeApp(configService: ConfigService) {
5656
useClass: HttpErrorInterceptorService,
5757
multi: true
5858
},
59+
{ provide: APP_BASE_HREF, useValue: '/' },
5960
MessageService,
6061
CookieService,
6162
providePrimeNG({
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const environment = {
22
production: false,
3-
assetsPath: '/assets',
3+
assetsPath: 'assets',
44
};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const environment = {
22
production: true,
3-
assetsPath: '/spa/assets',
3+
assetsPath: 'assets',
44
};

src/dotnet/APIView/ClientSPA/src/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<base href="/">
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88
<link rel="icon" type="image/x-icon" href="favicon.ico">
9-
<link rel="manifest" href="/spa/manifest.webmanifest">
9+
<link rel="manifest" href="/spa/browser/manifest.webmanifest">
1010
<meta name="theme-color" content="#1976d2">
11-
11+
1212
<!-- Microsoft Clarity Analytics -->
1313
<script type="text/javascript">
1414
// Only load Clarity in production (exclude localhost, staging, dev environments)
1515
const excludedHosts = ['localhost', '127.0.0.1', 'apiviewstagingtest.com', 'apiviewuxtest.com'];
1616
const isProduction = !excludedHosts.includes(window.location.hostname);
17-
17+
1818
if (isProduction) {
1919
(function(c,l,a,r,i,t,y){
2020
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};

src/dotnet/APIView/ClientSPA/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ platformBrowserDynamic().bootstrapModule(AppModule)
1010

1111
if ('serviceWorker' in navigator) {
1212
window.addEventListener('load', () => {
13-
navigator.serviceWorker.register('/spa/sw.js');
13+
navigator.serviceWorker.register('sw.js');
1414
});
1515
}

src/dotnet/APIView/ClientSPA/workbox-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const globPatterns = [
1111
module.exports = {
1212
globDirectory: '../APIViewWeb/wwwroot/spa/browser',
1313
globPatterns: globPatterns,
14-
swDest: '../APIViewWeb/wwwroot/spa/sw.js',
14+
swDest: '../APIViewWeb/wwwroot/spa/browser/sw.js',
1515
skipWaiting: true,
1616
clientsClaim: true,
1717
cleanupOutdatedCaches: true,

0 commit comments

Comments
 (0)