/
lingvo
/
LinguaCode
Обзор
Документация
Войти
/
lingvo
/
LinguaCode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/app/shared/components/cjk-ruby/cjk-ruby.component.ts
16 строк
542 B
Alexander Soloviev
Implement G9 CJK and G10 IPA phonetic content in cards and editor.
13 июн 2026, 22:15
13 июн 2026, 22:15
e909714
Код
Авторство
О чём код?
import { Component, computed, input } from '@angular/core'; import type { RomanizationSystem } from '../../../core/models/phonetic-content.types'; @Component({ selector: 'app-cjk-ruby', templateUrl: './cjk-ruby.component.html', styleUrl: './cjk-ruby.component.scss', }) export class CjkRubyComponent { readonly base = input.required<string>(); readonly reading = input<string | null>(null); readonly romanization = input<RomanizationSystem>('pinyin'); readonly hasReading = computed(() => Boolean(this.reading()?.trim())); }