site.ts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. import { iconsInfo } from '@/config/tabler';
  2. import uiConfig from '@/data/ui.json';
  3. export const color = '#0054a6';
  4. export const name = 'Tabler Dashboard UI Kit - Bootstrap Admin Panel';
  5. export const description = 'Tabler comes with tons of well-designed components and features. Start your adventure with Tabler and make your dashboard great again. For free!';
  6. export const creator = 'codecalm';
  7. export const companyGithubUrl = 'https://github.com/tabler';
  8. export const companyTwitterUrl = 'https://twitter.com/codecalm';
  9. export const companyDribbbleUrl = 'https://dribbble.com/codecalm';
  10. export const uiUrl = 'https://tabler.io';
  11. export const uiVersion = uiConfig.version;
  12. export const uiPackageName = '@tabler/core';
  13. export const uiGithubUrl = 'https://github.com/tabler/tabler';
  14. export const uiGithubReleasesUrl = 'https://github.com/tabler/tabler/releases';
  15. export const uiInstallCmd = `npm install ${uiPackageName}`;
  16. export const uiInstallCmdWithVersion = `npm install ${uiPackageName}@${uiVersion}`;
  17. export const uiDemoUrl = 'https://preview.tabler.io';
  18. export const uiPaymentsProviders = uiConfig.paymentsProviders;
  19. export const sponsorsUrl = 'https://github.com/sponsors/codecalm';
  20. export const statusUrl = 'https://status.tabler.io';
  21. export const figmaPluginUrl = 'https://www.figma.com/community/plugin/1169807996149376642/Tabler-Icons';
  22. export const figmaIconsUrl = 'https://www.figma.com/community/file/1042928259792594757';
  23. // export const uiDownloadUrl = `https://gum.co/tabler?wanted=true`
  24. export const uiDownloadUrl = `https://tabler.lemonsqueezy.com/checkout/buy/ac0d11e7-86fb-4fcf-ad9e-3d89e8dfbb24?embed=1&desc=0&discount=0&media=0`;
  25. export const uiCdnUrl = `https://cdn.jsdelivr.net/npm/@tabler/core@${uiVersion}`;
  26. export const uiCdnCSS = `${uiCdnUrl}${uiVersion}/dist/css/tabler.min.css`;
  27. export const uiCdnJS = `${uiCdnUrl}${uiVersion}/dist/js/tabler.min.js`;
  28. export const emailsCount = 54;
  29. export const emailsPrice = 29;
  30. export const emailsDownloadUrl = 'https://tabler.lemonsqueezy.com/checkout/buy/44fd4bdb-6ca0-49eb-b887-ebafd080c7bc?embed=1&desc=0&discount=0&media=0';
  31. export const emailsSampleDownloadUrl = 'https://tabler.lemonsqueezy.com/checkout/buy/2b777bc1-09f3-4465-b2a5-50ba14dcbe49?embed=1&desc=0&discount=0&media=0';
  32. export const componentsCount = 100; //getAllComponents().length
  33. export const componentsRounded = (() => {
  34. return Math.floor(componentsCount / 10) * 10;
  35. })();
  36. export const blogEnabled = false;
  37. export const changelogEnabled = false;
  38. export const getAbsoluteURL = (path) => {
  39. const baseURL = process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : `http://localhost:3010`;
  40. return baseURL + path;
  41. };
  42. export const iconsUrl =
  43. /*process.env.NODE_ENV === 'development'
  44. ? 'http://icons.tabler.test:3010'
  45. : */ 'https://tabler-icons.io';
  46. export const iconsVersion = iconsInfo.version;
  47. export const iconsGithubUrl = 'https://github.com/tabler/tabler-icons';
  48. export const iconsGithubDownloadUrl = ((version) => {
  49. return `https://github.com/tabler/tabler-icons/releases/download/v${version}/tabler-icons-${version}.zip`;
  50. })(iconsVersion);
  51. export const iconsCountRounded = (() => {
  52. return Math.floor(iconsInfo.count / 50) * 50;
  53. })();
  54. export const iconsCount = (() => {
  55. return iconsInfo.count;
  56. })();
  57. // export const iconsCategories = () => {
  58. // return iconsConfig.icons
  59. // .map((icon) => icon.category)
  60. // .filter((value, index, self) => {
  61. // return self.indexOf(value) === index && value !== ''
  62. // })
  63. // .sort()
  64. // }
  65. export const escapeHtml = (str) => {
  66. return str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#039;');
  67. };
  68. export const componentsUrl = process.env.NODE_ENV === 'development' ? 'http://components.tabler.test:3000' : 'https://components.tabler.io';
  69. export const socialLinks = [
  70. { icon: 'brand-twitter', url: companyTwitterUrl, label: 'Follow us!' },
  71. { icon: 'brand-github', url: companyGithubUrl, label: 'Star us!' },
  72. { icon: 'brand-dribbble', url: companyDribbbleUrl, label: 'Like us!' },
  73. ];
  74. export const footerMenu = [
  75. {
  76. title: 'Our products',
  77. items: [
  78. { title: 'UI Kit', route: '/' },
  79. { title: `${iconsCount} open source icons`, route: '/icons' },
  80. { title: 'Email templates', route: '/emails' },
  81. // { title: 'Pricing', route: '/pricing' },
  82. ],
  83. },
  84. {
  85. title: 'Support',
  86. items: [
  87. ...(blogEnabled ? [{ title: 'Blog', route: '/blog' }] : []),
  88. { title: 'Documentation', route: '/docs' },
  89. { title: 'Support', route: '/support' },
  90. { title: 'Guides', route: '/guides' },
  91. { title: 'Status', href: statusUrl },
  92. { title: 'License', route: '/license' },
  93. ],
  94. },
  95. {
  96. title: 'Tabler',
  97. items: [
  98. { title: 'About', route: '/about' },
  99. { title: 'Testimonials', route: '/testimonials' },
  100. { title: 'FAQ', route: '/docs/getting-started/faq' },
  101. ...(changelogEnabled ? [{ title: 'Changelog', route: '/changelog' }] : []),
  102. { title: 'Releases', href: uiGithubReleasesUrl },
  103. { title: 'Github', href: companyGithubUrl },
  104. ],
  105. },
  106. ];
  107. export const colors = ['muted', 'red', 'pink', 'grape', 'violet', 'indigo', 'blue', 'cyan', 'teal', 'green', 'lime', 'yellow', 'orange'];
  108. //
  109. // Banner
  110. //
  111. export const banner = {
  112. show: true,
  113. id: 'tabler-icons-v2-2',
  114. text: '🎉 Tabler Icons v2.0 has been released: filled icons, new packages: React, Vue, Preact, Svelte, SolidJS and more!',
  115. link: {
  116. href: 'https://tabler-icons.io',
  117. text: 'Learn more →',
  118. },
  119. };