IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

19 行
527B

  1. //
  2. // Copyright (C) Stanislaw Adaszewski, 2020
  3. // Contact: s.adaszewski@gmail.com
  4. // Website: https://adared.ch/wba
  5. // License: GNU Affero General Public License, Version 3
  6. //
  7. import { h } from 'preact';
  8. function wbFormatSpecialValue(value) {
  9. if (value === null) return (<i>null</i>);
  10. if (value === undefined) return (<i>undefined</i>);
  11. if (typeof(value) === 'boolean') return (<i>{ String(value) }</i>);
  12. if (value === '') return '-';
  13. return String(value);
  14. }
  15. export default wbFormatSpecialValue;