Commit 66e43c0f authored by Girija Saint-Ange's avatar Girija Saint-Ange
Browse files

Merge branch 'renovate/angular-monorepo' into 'master'

fix(deps): update angular monorepo to v20.3.11

See merge request to-be-continuous/kicker!483
parents 5465219d 8d41cc10
Loading
Loading
Loading
Loading
Loading
+428 −734

File changed.

Preview size limit exceeded, changes collapsed.

+14 −14
+1 −21
Original line number Diff line number Diff line
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, SecurityContext } from '@angular/core';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { FormsModule } from '@angular/forms';

import { MARKED_OPTIONS, MarkdownModule, MarkedOptions, MarkedRenderer } from 'ngx-markdown';

import { AppComponent } from './app.component';
import { KickerComponent } from './kicker/kicker.component';
import { GitlabCiComponent } from './gitlab-ci/gitlab-ci.component';
import { TemplatesSectionComponent } from './templates-section/templates-section.component';
import { StepbarComponent } from './stepbar/stepbar.component';
import { VariableEditorComponent } from './variable-editor/variable-editor.component';
import { OptionsBoxComponent } from './options-box/options-box.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { OptionsFormComponent } from './options-form/options-form.component';

// Override `MarkedOptions` renderer to open in a new tab for links
export function markedOptionsFactory(): MarkedOptions {
@@ -35,21 +26,10 @@ export function markedOptionsFactory(): MarkedOptions {
}

@NgModule({
    declarations: [
        AppComponent,
        KickerComponent,
        GitlabCiComponent,
        TemplatesSectionComponent,
        StepbarComponent,
        VariableEditorComponent,
        OptionsBoxComponent,
        OptionsFormComponent,
    ],
    bootstrap: [AppComponent],
    imports: [
        AppComponent,
        BrowserModule,
        FormsModule,
        NgbModule,
        MarkdownModule.forRoot({
            sanitize: SecurityContext.NONE,
            markedOptions: {
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
        </div>
        <div *ngFor="let template of templates">
            <div *ngIf="template.enabled">
                <div [innerHTML]="renderMarkdown(template.description)" class="fst-italic"></div>
                <div class="fst-italic"><markdown [data]="template.description"></markdown></div>
                <a
                    *ngIf="template.project?.web_url"
                    class="readme"
+2 −7
Original line number Diff line number Diff line
import { Component, Input, inject } from '@angular/core';
import { Component, Input } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { MarkdownModule, MarkdownService } from 'ngx-markdown';
import { MarkdownModule } from 'ngx-markdown';
import { Aggregated, Options, Template, Variant } from '../kicker';
import { VariableEditorComponent } from '../variable-editor/variable-editor.component';

@@ -13,7 +13,6 @@ import { VariableEditorComponent } from '../variable-editor/variable-editor.comp
    styleUrls: ['./templates-section.component.css'],
})
export class TemplatesSectionComponent {
    private readonly markdownService = inject(MarkdownService);
    
    /**
     * Section ID
@@ -75,10 +74,6 @@ export class TemplatesSectionComponent {
        console.log('event', action, name);
    }

    renderMarkdown(template: string) {
        return this.markdownService.parse(template);
    }

    /**
     * Return template variants, part of selected extensions
     */