Skip to content

Commit d4982ef

Browse files
committed
feat: dashboard rich text
1 parent c0115fb commit d4982ef

40 files changed

+13761
-11
lines changed

frontend/components.d.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ declare module '@vue/runtime-core' {
1313
ElAvatar: typeof import('element-plus-secondary/es')['ElAvatar']
1414
ElButton: typeof import('element-plus-secondary/es')['ElButton']
1515
ElCheckbox: typeof import('element-plus-secondary/es')['ElCheckbox']
16-
ElCheckboxGroup: typeof import('element-plus-secondary/es')['ElCheckboxGroup']
17-
ElCol: typeof import('element-plus-secondary/es')['ElCol']
1816
ElContainer: typeof import('element-plus-secondary/es')['ElContainer']
1917
ElDialog: typeof import('element-plus-secondary/es')['ElDialog']
2018
ElDivider: typeof import('element-plus-secondary/es')['ElDivider']
@@ -31,20 +29,16 @@ declare module '@vue/runtime-core' {
3129
ElMenu: typeof import('element-plus-secondary/es')['ElMenu']
3230
ElMenuItem: typeof import('element-plus-secondary/es')['ElMenuItem']
3331
ElOption: typeof import('element-plus-secondary/es')['ElOption']
34-
ElRadio: typeof import('element-plus-secondary/es')['ElRadio']
35-
ElRadioGroup: typeof import('element-plus-secondary/es')['ElRadioGroup']
36-
ElRow: typeof import('element-plus-secondary/es')['ElRow']
32+
ElPagination: typeof import('element-plus-secondary/es')['ElPagination']
3733
ElScrollbar: typeof import('element-plus-secondary/es')['ElScrollbar']
3834
ElSelect: typeof import('element-plus-secondary/es')['ElSelect']
39-
ElStep: typeof import('element-plus-secondary/es')['ElStep']
40-
ElSteps: typeof import('element-plus-secondary/es')['ElSteps']
35+
ElSlider: typeof import('element-plus-secondary/es')['ElSlider']
36+
ElSwitch: typeof import('element-plus-secondary/es')['ElSwitch']
4137
ElTable: typeof import('element-plus-secondary/es')['ElTable']
4238
ElTableColumn: typeof import('element-plus-secondary/es')['ElTableColumn']
4339
ElTabPane: typeof import('element-plus-secondary/es')['ElTabPane']
44-
ElTabPanel: typeof import('element-plus-secondary/es')['ElTabPanel']
4540
ElTabs: typeof import('element-plus-secondary/es')['ElTabs']
4641
ElTooltip: typeof import('element-plus-secondary/es')['ElTooltip']
47-
ElUpload: typeof import('element-plus-secondary/es')['ElUpload']
4842
Icon: typeof import('./src/components/icon-custom/src/Icon.vue')['default']
4943
Layout: typeof import('./src/components/layout/index.vue')['default']
5044
RouterLink: typeof import('vue-router')['RouterLink']

frontend/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12+
"@npkg/tinymce-plugins": "^0.0.7",
13+
"@tinymce/tinymce-vue": "^5.1.0",
14+
"tinymce": "^5.8.2",
1215
"lodash": "^4.17.21",
1316
"snowflake-id": "^1.1.0",
1417
"vue": "^3.5.13",

frontend/public/tinymce-sqlbot-private/langs/zh_CN.js

Lines changed: 423 additions & 0 deletions
Large diffs are not rendered by default.

frontend/public/tinymce-sqlbot-private/langs/zh_TW.js

Lines changed: 419 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/**
2+
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
3+
* Licensed under the LGPL or a commercial license.
4+
* For LGPL see License.txt in the project root for license information.
5+
* For commercial licenses see https://www.tiny.cloud/
6+
*/
7+
body {
8+
background-color: #2f3742;
9+
color: #dfe0e4;
10+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
11+
line-height: 1.4;
12+
margin: 1rem;
13+
}
14+
15+
a {
16+
color: #4099ff;
17+
}
18+
19+
table {
20+
border-collapse: collapse;
21+
}
22+
23+
/* Apply a default padding if legacy cellpadding attribute is missing */
24+
table:not([cellpadding]) th,
25+
table:not([cellpadding]) td {
26+
padding: 0.4rem;
27+
}
28+
29+
/* Set default table styles if a table has a positive border attribute
30+
and no inline css */
31+
table[border]:not([border="0"]):not([style*="border-width"]) th,
32+
table[border]:not([border="0"]):not([style*="border-width"]) td {
33+
border-width: 1px;
34+
}
35+
36+
/* Set default table styles if a table has a positive border attribute
37+
and no inline css */
38+
table[border]:not([border="0"]):not([style*="border-style"]) th,
39+
table[border]:not([border="0"]):not([style*="border-style"]) td {
40+
border-style: solid;
41+
}
42+
43+
/* Set default table styles if a table has a positive border attribute
44+
and no inline css */
45+
table[border]:not([border="0"]):not([style*="border-color"]) th,
46+
table[border]:not([border="0"]):not([style*="border-color"]) td {
47+
border-color: #6d737b;
48+
}
49+
50+
figure {
51+
display: table;
52+
margin: 1rem auto;
53+
}
54+
55+
figure figcaption {
56+
color: #8a8f97;
57+
display: block;
58+
margin-top: 0.25rem;
59+
text-align: center;
60+
}
61+
62+
hr {
63+
border-color: #6d737b;
64+
border-style: solid;
65+
border-width: 1px 0 0 0;
66+
}
67+
68+
code {
69+
background-color: #6d737b;
70+
border-radius: 3px;
71+
padding: 0.1rem 0.2rem;
72+
}
73+
74+
.mce-content-body:not([dir=rtl]) blockquote {
75+
border-left: 2px solid #6d737b;
76+
margin-left: 1.5rem;
77+
padding-left: 1rem;
78+
}
79+
80+
.mce-content-body[dir=rtl] blockquote {
81+
border-right: 2px solid #6d737b;
82+
margin-right: 1.5rem;
83+
padding-right: 1rem;
84+
}

frontend/public/tinymce-sqlbot-private/skins/content/dark/content.min.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/**
2+
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
3+
* Licensed under the LGPL or a commercial license.
4+
* For LGPL see License.txt in the project root for license information.
5+
* For commercial licenses see https://www.tiny.cloud/
6+
*/
7+
8+
table {
9+
border-collapse: collapse;
10+
}
11+
12+
/* Apply a default padding if legacy cellpadding attribute is missing */
13+
table:not([cellpadding]) th,
14+
table:not([cellpadding]) td {
15+
padding: 0.4rem;
16+
}
17+
18+
/* Set default table styles if a table has a positive border attribute
19+
and no inline css */
20+
table[border]:not([border="0"]):not([style*="border-width"]) th,
21+
table[border]:not([border="0"]):not([style*="border-width"]) td {
22+
border-width: 1px;
23+
}
24+
25+
/* Set default table styles if a table has a positive border attribute
26+
and no inline css */
27+
table[border]:not([border="0"]):not([style*="border-style"]) th,
28+
table[border]:not([border="0"]):not([style*="border-style"]) td {
29+
border-style: solid;
30+
}
31+
32+
/* Set default table styles if a table has a positive border attribute
33+
and no inline css */
34+
table[border]:not([border="0"]):not([style*="border-color"]) th,
35+
table[border]:not([border="0"]):not([style*="border-color"]) td {
36+
border-color: #ccc;
37+
}
38+
39+
figure {
40+
display: table;
41+
margin: 1rem auto;
42+
}
43+
44+
figure figcaption {
45+
color: #999;
46+
display: block;
47+
margin-top: 0.25rem;
48+
text-align: center;
49+
}
50+
51+
hr {
52+
border-color: #ccc;
53+
border-style: solid;
54+
border-width: 1px 0 0 0;
55+
}
56+
57+
code {
58+
background-color: #e8e8e8;
59+
border-radius: 3px;
60+
padding: 0.1rem 0.2rem;
61+
}
62+
63+
.mce-content-body:not([dir=rtl]) blockquote {
64+
border-left: 2px solid #ccc;
65+
margin-left: 1.5rem;
66+
padding-left: 1rem;
67+
}
68+
69+
.mce-content-body[dir=rtl] blockquote {
70+
border-right: 2px solid #ccc;
71+
margin-right: 1.5rem;
72+
padding-right: 1rem;
73+
}

frontend/public/tinymce-sqlbot-private/skins/content/default/content.min.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/**
2+
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
3+
* Licensed under the LGPL or a commercial license.
4+
* For LGPL see License.txt in the project root for license information.
5+
* For commercial licenses see https://www.tiny.cloud/
6+
*/
7+
@media screen {
8+
html {
9+
background: #f4f4f4;
10+
min-height: 100%;
11+
}
12+
}
13+
14+
body {
15+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
16+
}
17+
18+
@media screen {
19+
body {
20+
background-color: #fff;
21+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
22+
box-sizing: border-box;
23+
margin: 1rem auto 0;
24+
max-width: 820px;
25+
min-height: calc(100vh - 1rem);
26+
padding: 4rem 6rem 6rem 6rem;
27+
}
28+
}
29+
30+
table {
31+
border-collapse: collapse;
32+
}
33+
34+
/* Apply a default padding if legacy cellpadding attribute is missing */
35+
table:not([cellpadding]) th,
36+
table:not([cellpadding]) td {
37+
padding: 0.4rem;
38+
}
39+
40+
/* Set default table styles if a table has a positive border attribute
41+
and no inline css */
42+
table[border]:not([border="0"]):not([style*="border-width"]) th,
43+
table[border]:not([border="0"]):not([style*="border-width"]) td {
44+
border-width: 1px;
45+
}
46+
47+
/* Set default table styles if a table has a positive border attribute
48+
and no inline css */
49+
table[border]:not([border="0"]):not([style*="border-style"]) th,
50+
table[border]:not([border="0"]):not([style*="border-style"]) td {
51+
border-style: solid;
52+
}
53+
54+
/* Set default table styles if a table has a positive border attribute
55+
and no inline css */
56+
table[border]:not([border="0"]):not([style*="border-color"]) th,
57+
table[border]:not([border="0"]):not([style*="border-color"]) td {
58+
border-color: #ccc;
59+
}
60+
61+
figure figcaption {
62+
color: #999;
63+
margin-top: 0.25rem;
64+
text-align: center;
65+
}
66+
67+
hr {
68+
border-color: #ccc;
69+
border-style: solid;
70+
border-width: 1px 0 0 0;
71+
}
72+
73+
.mce-content-body:not([dir=rtl]) blockquote {
74+
border-left: 2px solid #ccc;
75+
margin-left: 1.5rem;
76+
padding-left: 1rem;
77+
}
78+
79+
.mce-content-body[dir=rtl] blockquote {
80+
border-right: 2px solid #ccc;
81+
margin-right: 1.5rem;
82+
padding-right: 1rem;
83+
}

frontend/public/tinymce-sqlbot-private/skins/content/document/content.min.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)