Skip to content

Commit

Permalink
update to docs 1.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheihuzarevich committed Oct 3, 2024
1 parent 40ea9e2 commit 92e4e1d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@cypress/angular": "^2.1.0",
"@foblex/2d": "1.1.0",
"@foblex/drag-toolkit": "1.1.0",
"@foblex/f-docs": "1.4.5",
"@foblex/f-docs": "1.4.6",
"@foblex/mediator": "1.1.0",
"@foblex/platform": "1.0.4",
"@foblex/utils": "1.1.0",
Expand Down
3 changes: 3 additions & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
<!--<button class="take-screenshot" (click)="takeScreenshot()">-->
<!-- Take Screenshot-->
<!--</button>-->
@defer (when isBrowser) {
<f-cookie-popup/>
}
10 changes: 8 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ import { MatIconRegistry } from '@angular/material/icon';
import { Subscription } from 'rxjs';
import { BrowserService } from '@foblex/platform';
import { takeScreenshot } from './take-screenshot';
import { FMetaService, IMetaData } from '@foblex/f-docs';
import { CookiePopup, FAnalyticsService, FMetaService, IMetaData } from '@foblex/f-docs';
import { GUIDES_ENVIRONMENT } from '../../public/markdown/guides/environment';
import { EXAMPLES_ENVIRONMENT } from '../../public/markdown/examples/environment';

@Component({
selector: 'app-root',
standalone: true,
imports: [
RouterOutlet
RouterOutlet,
CookiePopup
],
templateUrl: './app.component.html',
styleUrl: './app.component.scss'
Expand All @@ -21,13 +22,17 @@ export class AppComponent implements OnInit, OnDestroy {

private subscriptions$: Subscription = new Subscription();

public isBrowser = false;

constructor(
matIconRegistry: MatIconRegistry,
private renderer: Renderer2,
private fMeta: FMetaService,
private fBrowser: BrowserService,
private fAnalytics: FAnalyticsService
) {
matIconRegistry.setDefaultFontSetClass('material-symbols-outlined');
this.isBrowser = fBrowser.isBrowser();
}

public ngOnInit(): void {
Expand All @@ -38,6 +43,7 @@ export class AppComponent implements OnInit, OnDestroy {
this.subscriptions$.add(
this.fMeta.subscribeOnRouteChanges(DEFAULT_PAGE_DATA, [ GUIDES_ENVIRONMENT, EXAMPLES_ENVIRONMENT ])
);
this.fAnalytics.initialize('AW-16677977117');
}


Expand Down
9 changes: 0 additions & 9 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,6 @@
}
}
</script>

<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16677977117"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'AW-16677977117');
</script>
</head>
<body>
<app-root></app-root>
Expand Down

0 comments on commit 92e4e1d

Please sign in to comment.