en-platform-types.ls 755 B

1234567891011121314151617181920212223242526272829303132333435
  1. {slugify} = require '../functions/slugify.ls'
  2. exports.platform-types = (db) ->
  3. types =
  4. * name: 'Mobile'
  5. categories: [
  6. * name: 'Android'
  7. fa: 'fa-android'
  8. * name: 'iOS'
  9. fa: 'fa-mobile'
  10. ]
  11. * name: 'Computer'
  12. categories: [
  13. * name: 'BSD'
  14. fa: 'fa-lock'
  15. * name: 'GNU/Linux'
  16. fa: 'fa-linux'
  17. * name: 'macOS'
  18. fa: 'fa-apple'
  19. * name: 'Windows'
  20. fa: 'fa-windows'
  21. ]
  22. * name: 'Network'
  23. categories: [
  24. * name: 'Routers'
  25. fa: 'fa-sitemap'
  26. * name: 'Servers'
  27. fa: 'fa-tasks'
  28. ]
  29. for type in types
  30. for category in type.categories
  31. category.slug = slugify category.name
  32. types