You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

todo.html 1.3 kB

2 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {% assign shouldRender = false %}
  2. {% if jekyll.environment == "development" %}
  3. {% assign shouldRender = true %}
  4. {% endif %}
  5. {% if include.forceRender %}
  6. {% assign shouldRender = true %}
  7. {% endif %}
  8. {% if shouldRender %}
  9. {% if include.content contains '[TODO' %}
  10. {% if include.content %}
  11. <div class="alert alert-info">
  12. <h4>Yarn Website Internal Developer Info!</h4>
  13. <p>This page contains some <code>[TODO]</code>'s, if you have time, please complete them</p>
  14. {% assign lines = include.content | newline_to_br | strip_newlines | split: '<br />' %}
  15. {% assign total = lines | size %}
  16. {% for i in (0..total) %}
  17. {% assign line = lines[i] %}
  18. {% if line contains '[TODO' %}
  19. {% assign message = '' %}
  20. {% assign start = i | minus: 3 %}
  21. {% assign end = i | plus: 3 %}
  22. {% if start < 0 %}{% assign start = 0 %}{% endif %}
  23. {% if end > total %}{% assign end = total %}{% endif %}
  24. <pre><code>{% for n in (start..end) %}{{n}}: {{lines[n] | escape}}
  25. {% endfor %}</code></pre>
  26. {% endif %}
  27. {% endfor %}
  28. <p>
  29. If you believe you are seeing this warning by mistake, please open
  30. an issue.
  31. </p>
  32. </div>
  33. {% endif %}
  34. {% endif %}
  35. {% endif %}

js yarn包管理组件依赖分析

Contributors (1)