pimelon-ui 0.0.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/license.md +0 -0
  2. package/package.json +75 -0
  3. package/readme.md +0 -0
  4. package/src/components/Alert.vue +57 -0
  5. package/src/components/Autocomplete.vue +176 -0
  6. package/src/components/Avatar.vue +62 -0
  7. package/src/components/Badge.vue +42 -0
  8. package/src/components/Button.vue +155 -0
  9. package/src/components/Card.vue +37 -0
  10. package/src/components/DatePicker.vue +252 -0
  11. package/src/components/Dialog.vue +216 -0
  12. package/src/components/Dropdown.vue +145 -0
  13. package/src/components/ErrorMessage.vue +24 -0
  14. package/src/components/FeatherIcon.vue +59 -0
  15. package/src/components/FileUploader.vue +220 -0
  16. package/src/components/GreenCheckIcon.vue +16 -0
  17. package/src/components/Input.vue +214 -0
  18. package/src/components/Link.vue +28 -0
  19. package/src/components/ListItem.vue +28 -0
  20. package/src/components/LoadingIndicator.vue +27 -0
  21. package/src/components/LoadingText.vue +21 -0
  22. package/src/components/Popover.vue +253 -0
  23. package/src/components/Resource.vue +21 -0
  24. package/src/components/TextEditor/FontColor.vue +108 -0
  25. package/src/components/TextEditor/InsertImage.vue +74 -0
  26. package/src/components/TextEditor/InsertLink.vue +67 -0
  27. package/src/components/TextEditor/InsertVideo.vue +94 -0
  28. package/src/components/TextEditor/MentionList.vue +95 -0
  29. package/src/components/TextEditor/Menu.vue +99 -0
  30. package/src/components/TextEditor/TextEditor.vue +275 -0
  31. package/src/components/TextEditor/TextEditorBubbleMenu.vue +69 -0
  32. package/src/components/TextEditor/TextEditorFixedMenu.vue +72 -0
  33. package/src/components/TextEditor/TextEditorFloatingMenu.vue +55 -0
  34. package/src/components/TextEditor/commands.js +272 -0
  35. package/src/components/TextEditor/icons/align-center.vue +14 -0
  36. package/src/components/TextEditor/icons/align-justify.vue +14 -0
  37. package/src/components/TextEditor/icons/align-left.vue +14 -0
  38. package/src/components/TextEditor/icons/align-right.vue +14 -0
  39. package/src/components/TextEditor/icons/arrow-go-back-line.vue +14 -0
  40. package/src/components/TextEditor/icons/arrow-go-forward-line.vue +14 -0
  41. package/src/components/TextEditor/icons/bold.vue +14 -0
  42. package/src/components/TextEditor/icons/code-view.vue +14 -0
  43. package/src/components/TextEditor/icons/double-quotes-r.vue +14 -0
  44. package/src/components/TextEditor/icons/font-color.vue +14 -0
  45. package/src/components/TextEditor/icons/format-clear.vue +14 -0
  46. package/src/components/TextEditor/icons/h-1.vue +14 -0
  47. package/src/components/TextEditor/icons/h-2.vue +14 -0
  48. package/src/components/TextEditor/icons/h-3.vue +14 -0
  49. package/src/components/TextEditor/icons/h-4.vue +14 -0
  50. package/src/components/TextEditor/icons/h-5.vue +14 -0
  51. package/src/components/TextEditor/icons/h-6.vue +14 -0
  52. package/src/components/TextEditor/icons/image-add-line.vue +14 -0
  53. package/src/components/TextEditor/icons/italic.vue +14 -0
  54. package/src/components/TextEditor/icons/link.vue +14 -0
  55. package/src/components/TextEditor/icons/list-ordered.vue +14 -0
  56. package/src/components/TextEditor/icons/list-unordered.vue +14 -0
  57. package/src/components/TextEditor/icons/readme.md +1 -0
  58. package/src/components/TextEditor/icons/separator.vue +14 -0
  59. package/src/components/TextEditor/icons/strikethrough.vue +14 -0
  60. package/src/components/TextEditor/icons/table-2.vue +14 -0
  61. package/src/components/TextEditor/icons/text.vue +11 -0
  62. package/src/components/TextEditor/icons/underline.vue +14 -0
  63. package/src/components/TextEditor/icons/video-add-line.vue +14 -0
  64. package/src/components/TextEditor/image-extension.js +152 -0
  65. package/src/components/TextEditor/index.js +6 -0
  66. package/src/components/TextEditor/mention.js +72 -0
  67. package/src/components/TextEditor/utils.js +11 -0
  68. package/src/components/TextEditor/video-extension.js +60 -0
  69. package/src/components/Toast.vue +83 -0
  70. package/src/components/Tooltip.vue +36 -0
  71. package/src/components/toast.js +98 -0
  72. package/src/directives/onOutsideClick.js +34 -0
  73. package/src/directives/visibility.js +24 -0
  74. package/src/index.js +56 -0
  75. package/src/resources/documentResource.js +194 -0
  76. package/src/resources/index.js +4 -0
  77. package/src/resources/listResource.js +312 -0
  78. package/src/resources/local.js +16 -0
  79. package/src/resources/plugin.js +105 -0
  80. package/src/resources/resources.js +215 -0
  81. package/src/style.css +15 -0
  82. package/src/utils/call.js +98 -0
  83. package/src/utils/config.js +9 -0
  84. package/src/utils/debounce.js +15 -0
  85. package/src/utils/file-to-base64.js +9 -0
  86. package/src/utils/markdown.js +29 -0
  87. package/src/utils/melonRequest.js +105 -0
  88. package/src/utils/pageMeta.js +52 -0
  89. package/src/utils/plugin.js +24 -0
  90. package/src/utils/request.js +49 -0
  91. package/src/utils/socketio.js +11 -0
  92. package/src/utils/tailwind.config.js +117 -0
  93. package/src/utils/vite-dev-server.js +14 -0
@@ -0,0 +1,117 @@
1
+ module.exports = {
2
+ theme: {
3
+ extend: {
4
+ fontFamily: {
5
+ sans: ['Inter', 'sans-serif'],
6
+ },
7
+ fontSize: {
8
+ xs: '11px',
9
+ sm: '12px',
10
+ base: '13px',
11
+ lg: '14px',
12
+ xl: '16px',
13
+ '2xl': '18px',
14
+ '3xl': '20px',
15
+ '4xl': '22px',
16
+ '5xl': '24px',
17
+ '6xl': '26px',
18
+ '7xl': '28px',
19
+ },
20
+ width: {
21
+ 112: '28rem',
22
+ wizard: '650px',
23
+ },
24
+ minWidth: {
25
+ 40: '10rem',
26
+ },
27
+ maxHeight: {
28
+ 52: '13rem',
29
+ },
30
+ borderColor: (theme) => ({
31
+ DEFAULT: theme('colors.gray.200'),
32
+ }),
33
+ colors: {
34
+ brand: '#2490EF',
35
+ 'brand-100': '#f4f9ff',
36
+ black: '#112B42',
37
+ blue: {
38
+ 50: '#F0F8FE',
39
+ 100: '#D3E9FC',
40
+ 200: '#A7D3F9',
41
+ 300: '#7CBCF5',
42
+ 400: '#50A6F2',
43
+ 500: '#2490EF',
44
+ 600: '#1579D0',
45
+ 700: '#1366AE',
46
+ 800: '#154875',
47
+ 900: '#1A4469',
48
+ },
49
+ gray: {
50
+ 50: '#F9FAFA',
51
+ 100: '#F4F5F6',
52
+ 200: '#EBEEF0',
53
+ 300: '#DCE0E3',
54
+ 400: '#C0C6CC',
55
+ 500: '#98A1A9',
56
+ 600: '#687178',
57
+ 700: '#505A62',
58
+ 800: '#333C44',
59
+ 900: '#1F272E',
60
+ },
61
+ purple: {
62
+ 900: '#44427B',
63
+ 800: '#5552BC',
64
+ 700: '#6461D6',
65
+ 600: '#807DDE',
66
+ 500: '#928EF5',
67
+ 400: '#B7B6FC',
68
+ 300: '#D6D5F6',
69
+ 200: '#E8E8F7',
70
+ 100: '#F2F2FD',
71
+ 50: '#F8F8FC',
72
+ },
73
+ },
74
+ typography: (theme) => ({
75
+ gray: {
76
+ css: {
77
+ '--tw-prose-body': theme('colors.gray.900'),
78
+ },
79
+ },
80
+ }),
81
+ },
82
+ container: {
83
+ padding: {
84
+ xl: '5rem',
85
+ },
86
+ },
87
+ screens: {
88
+ sm: '640px',
89
+ md: '768px',
90
+ lg: '1024px',
91
+ xl: '1280px',
92
+ },
93
+ },
94
+ plugins: [
95
+ require('@tailwindcss/forms'),
96
+ require('@tailwindcss/typography'),
97
+ require('tailwindcss/plugin')(function ({ addUtilities, theme }) {
98
+ addUtilities({
99
+ '.bg-gradient-blue': {
100
+ 'background-image': `linear-gradient(180deg,#2c9af1 0%, ${theme(
101
+ 'colors.blue.500'
102
+ )} 100%)`,
103
+ },
104
+ })
105
+ addUtilities(
106
+ {
107
+ '.bg-gradient-none': {
108
+ 'background-image': 'none',
109
+ },
110
+ },
111
+ {
112
+ variants: ['focus', 'hover'],
113
+ }
114
+ )
115
+ }),
116
+ ],
117
+ }
@@ -0,0 +1,14 @@
1
+ module.exports = {
2
+ getProxyOptions({ port }) {
3
+ return {
4
+ '^/(app|login|api|assets|files)': {
5
+ target: `http://localhost:${port}`,
6
+ ws: true,
7
+ router: function (req) {
8
+ const site_name = req.headers.host.split(':')[0]
9
+ return `http://${site_name}:${port}`
10
+ },
11
+ },
12
+ }
13
+ },
14
+ }