punkweb-bb 0.2.3__py3-none-any.whl → 0.4.0__py3-none-any.whl

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 (123) hide show
  1. punkweb_bb/__pycache__/admin.cpython-311.pyc +0 -0
  2. punkweb_bb/__pycache__/admin_forms.cpython-311.pyc +0 -0
  3. punkweb_bb/__pycache__/bbcode.cpython-311.pyc +0 -0
  4. punkweb_bb/__pycache__/forms.cpython-311.pyc +0 -0
  5. punkweb_bb/__pycache__/middleware.cpython-311.pyc +0 -0
  6. punkweb_bb/__pycache__/mixins.cpython-311.pyc +0 -0
  7. punkweb_bb/__pycache__/models.cpython-311.pyc +0 -0
  8. punkweb_bb/__pycache__/pagination.cpython-311.pyc +0 -0
  9. punkweb_bb/__pycache__/parsers.cpython-311.pyc +0 -0
  10. punkweb_bb/__pycache__/response.cpython-311.pyc +0 -0
  11. punkweb_bb/__pycache__/settings.cpython-311.pyc +0 -0
  12. punkweb_bb/__pycache__/signals.cpython-311.pyc +0 -0
  13. punkweb_bb/__pycache__/tags.cpython-311.pyc +0 -0
  14. punkweb_bb/__pycache__/tests.cpython-311.pyc +0 -0
  15. punkweb_bb/__pycache__/urls.cpython-311.pyc +0 -0
  16. punkweb_bb/__pycache__/utils.cpython-311.pyc +0 -0
  17. punkweb_bb/__pycache__/views.cpython-311.pyc +0 -0
  18. punkweb_bb/__pycache__/widgets.cpython-311.pyc +0 -0
  19. punkweb_bb/admin.py +0 -5
  20. punkweb_bb/admin_forms.py +6 -5
  21. punkweb_bb/bbcode.py +155 -0
  22. punkweb_bb/forms.py +13 -5
  23. punkweb_bb/migrations/0005_alter_thread_options.py +24 -0
  24. punkweb_bb/migrations/0006_remove_boardprofile__signature_rendered_and_more.py +60 -0
  25. punkweb_bb/migrations/__pycache__/0005_alter_thread_options.cpython-311.pyc +0 -0
  26. punkweb_bb/migrations/__pycache__/0006_remove_boardprofile__signature_rendered_and_more.cpython-311.pyc +0 -0
  27. punkweb_bb/models.py +6 -6
  28. punkweb_bb/settings.py +1 -0
  29. punkweb_bb/static/punkweb_bb/css/defaults.css +2 -2
  30. punkweb_bb/static/punkweb_bb/css/punkweb-modal.css +2 -0
  31. punkweb_bb/static/punkweb_bb/css/punkweb.css +2 -2
  32. punkweb_bb/static/punkweb_bb/css/subcategory.css +4 -0
  33. punkweb_bb/static/punkweb_bb/css/thread.css +24 -0
  34. punkweb_bb/static/punkweb_bb/editor/bbcode-editor-content.css +4 -5
  35. punkweb_bb/static/punkweb_bb/editor/bbcode-editor.js +0 -5
  36. punkweb_bb/static/punkweb_bb/editor/markdown-editor.js +49 -0
  37. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/.eslintrc.json +15 -0
  38. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/.gitignore +108 -0
  39. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/.prettierrc.json +1 -0
  40. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/LICENSE +21 -0
  41. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/README.md +240 -0
  42. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/babel.config.json +14 -0
  43. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/dist/blank.html +18 -0
  44. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/dist/demo.html +126 -0
  45. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/dist/tiny-mde.css +231 -0
  46. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/dist/tiny-mde.js +3086 -0
  47. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/dist/tiny-mde.min.css +1 -0
  48. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/dist/tiny-mde.min.js +1 -0
  49. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/dist/tiny-mde.tiny.js +1 -0
  50. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/docs/_config.yml +1 -0
  51. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/docs/_layouts/default.html +50 -0
  52. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/docs/index.md +174 -0
  53. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/globals.d.ts +172 -0
  54. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/gulpfile.mjs +226 -0
  55. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/jest/block.test.js +696 -0
  56. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/jest/commandbar.test.js +84 -0
  57. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/jest/inline.test.js +486 -0
  58. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/jest/interaction.test.js +31 -0
  59. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/jest/setup.test.js +164 -0
  60. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/jest/util/config.js +2 -0
  61. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/jest/util/server.js +9 -0
  62. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/jest/util/setup.js +1 -0
  63. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/jest/util/test-helpers.js +98 -0
  64. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/jest-puppeteer.config.js +8 -0
  65. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/jest.config.js +13 -0
  66. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/package-lock.json +16295 -0
  67. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/package.json +72 -0
  68. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/TinyMDE.js +1926 -0
  69. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/TinyMDECommandBar.js +256 -0
  70. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/css/commandbar.css +72 -0
  71. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/css/editor.css +157 -0
  72. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/css/index.css +3 -0
  73. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/grammar.js +300 -0
  74. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/html/blank.html +18 -0
  75. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/html/demo.html +126 -0
  76. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/index.js +4 -0
  77. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/blockquote.svg +1 -0
  78. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/bold.svg +1 -0
  79. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/clear_formatting.svg +1 -0
  80. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/code.svg +1 -0
  81. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/h1.svg +1 -0
  82. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/h2.svg +1 -0
  83. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/hr.svg +1 -0
  84. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/image.svg +1 -0
  85. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/italic.svg +1 -0
  86. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/link.svg +1 -0
  87. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/ol.svg +1 -0
  88. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/strikethrough.svg +1 -0
  89. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/svg.js +17 -0
  90. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/svg/ul.svg +1 -0
  91. punkweb_bb/static/punkweb_bb/vendor/tiny-markdown-editor/src/tiny.js +3 -0
  92. punkweb_bb/templates/punkweb_bb/base_delete_modal.html +13 -0
  93. punkweb_bb/templates/punkweb_bb/bbcode.html +2 -3
  94. punkweb_bb/templates/punkweb_bb/index.html +2 -2
  95. punkweb_bb/templates/punkweb_bb/partials/category_delete.html +4 -8
  96. punkweb_bb/templates/punkweb_bb/partials/post_delete.html +4 -8
  97. punkweb_bb/templates/punkweb_bb/partials/shout_delete.html +4 -8
  98. punkweb_bb/templates/punkweb_bb/partials/subcategory_delete.html +4 -8
  99. punkweb_bb/templates/punkweb_bb/partials/thread_delete.html +4 -8
  100. punkweb_bb/templates/punkweb_bb/partials/thread_move.html +24 -0
  101. punkweb_bb/templates/punkweb_bb/profile.html +2 -2
  102. punkweb_bb/templates/punkweb_bb/shoutbox/shout_list.html +2 -2
  103. punkweb_bb/templates/punkweb_bb/subcategory.html +1 -1
  104. punkweb_bb/templates/punkweb_bb/thread.html +24 -14
  105. punkweb_bb/templates/punkweb_bb/widgets/markdown-editor.html +4 -0
  106. punkweb_bb/templatetags/__pycache__/markdown.cpython-311.pyc +0 -0
  107. punkweb_bb/templatetags/__pycache__/render.cpython-311.pyc +0 -0
  108. punkweb_bb/templatetags/__pycache__/shoutbox_bbcode.cpython-311.pyc +0 -0
  109. punkweb_bb/templatetags/__pycache__/shoutbox_render.cpython-311.pyc +0 -0
  110. punkweb_bb/templatetags/render.py +35 -0
  111. punkweb_bb/tests.py +3 -3
  112. punkweb_bb/urls.py +1 -0
  113. punkweb_bb/utils.py +24 -10
  114. punkweb_bb/views.py +45 -23
  115. punkweb_bb/widgets.py +20 -0
  116. {punkweb_bb-0.2.3.dist-info → punkweb_bb-0.4.0.dist-info}/METADATA +58 -51
  117. {punkweb_bb-0.2.3.dist-info → punkweb_bb-0.4.0.dist-info}/RECORD +120 -53
  118. punkweb_bb/bbcode_tags.py +0 -167
  119. punkweb_bb/parsers.py +0 -70
  120. punkweb_bb/templatetags/shoutbox_bbcode.py +0 -14
  121. {punkweb_bb-0.2.3.dist-info → punkweb_bb-0.4.0.dist-info}/LICENSE +0 -0
  122. {punkweb_bb-0.2.3.dist-info → punkweb_bb-0.4.0.dist-info}/WHEEL +0 -0
  123. {punkweb_bb-0.2.3.dist-info → punkweb_bb-0.4.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,231 @@
1
+ .TinyMDE {
2
+ background-color: #fff;
3
+ border: 1px solid var(--border);
4
+ border-bottom-left-radius: 0.25rem;
5
+ border-bottom-right-radius: 0.25rem;
6
+ color: var(--oc-gray-9);
7
+ font-size: 16px;
8
+ line-height: 1.5;
9
+ outline: none;
10
+ padding: 0.5rem 1rem;
11
+ min-height: 12rem;
12
+ }
13
+
14
+ .TMBlankLine {
15
+ height: 1.5rem;
16
+ }
17
+
18
+ .TMH1,
19
+ .TMSetextH1 {
20
+ font-size: 2rem;
21
+ line-height: 32px;
22
+ font-weight: bold;
23
+ margin-bottom: 8px;
24
+ }
25
+
26
+ .TMSetextH1 {
27
+ margin-bottom: 0px;
28
+ }
29
+
30
+ .TMSetextH1Marker {
31
+ margin-bottom: 8px;
32
+ }
33
+
34
+ .TMH2,
35
+ .TMSetextH2 {
36
+ font-size: 20px;
37
+ line-height: 28px;
38
+ font-weight: bold;
39
+ margin-bottom: 4px;
40
+ }
41
+
42
+ .TMMark_TMCode {
43
+ font-family: monospace;
44
+ font-size: 0.9em;
45
+ }
46
+
47
+ .TMFencedCodeBacktick,
48
+ .TMFencedCodeTilde,
49
+ .TMIndentedCode,
50
+ .TMCode {
51
+ font-family: monospace;
52
+ font-size: 0.9em;
53
+ background-color: #e0e0e0;
54
+ }
55
+
56
+ .TMCodeFenceBacktickOpen,
57
+ .TMCodeFenceTildeOpen {
58
+ border-bottom: 1px solid #c0c0c0;
59
+ font-family: monospace;
60
+ font-size: 0.9em;
61
+ }
62
+
63
+ .TMCodeFenceBacktickClose,
64
+ .TMCodeFenceTildeClose {
65
+ border-top: 1px solid #c0c0c0;
66
+ font-family: monospace;
67
+ font-size: 0.9em;
68
+ }
69
+
70
+ .TMInfoString {
71
+ color: #0000ff;
72
+ }
73
+
74
+ .TMCode {
75
+ border: 1px solid #c0c0c0;
76
+ border-radius: 2px;
77
+ }
78
+
79
+ .TMBlockquote {
80
+ font-style: italic;
81
+ border-left: 2px solid #c0c0c0;
82
+ padding-left: 10px;
83
+ margin-left: 10px;
84
+ }
85
+
86
+ .TMMark {
87
+ color: #a0a0a0;
88
+ }
89
+
90
+ .TMMark_TMH1,
91
+ .TMMark_TMH2 {
92
+ color: #ff8080;
93
+ }
94
+
95
+ .TMMark_TMUL,
96
+ .TMMark_TMOL {
97
+ color: #ff8080;
98
+ }
99
+
100
+ .TMImage {
101
+ text-decoration: underline;
102
+ text-decoration-color: #00ff00;
103
+ }
104
+
105
+ .TMLink {
106
+ text-decoration: underline;
107
+ text-decoration-color: #0000ff;
108
+ }
109
+
110
+ .TMLinkLabel {
111
+ text-decoration: underline;
112
+ font-family: monospace;
113
+ }
114
+
115
+ .TMLinkLabel_Definition,
116
+ .TMLinkLabel_Valid {
117
+ color: #40c040;
118
+ }
119
+
120
+ .TMLinkLabel_Invalid {
121
+ color: #ff0000;
122
+ }
123
+
124
+ .TMLinkTitle {
125
+ font-style: italic;
126
+ }
127
+
128
+ .TMLinkDestination,
129
+ .TMAutolink {
130
+ text-decoration: underline;
131
+ color: #0000ff;
132
+ }
133
+
134
+ .TMHR {
135
+ position: relative;
136
+ }
137
+
138
+ .TMHR:before {
139
+ content: "";
140
+ position: absolute;
141
+ bottom: 50%;
142
+ left: 40%;
143
+ border-bottom: 2px solid #808080;
144
+ width: 20%;
145
+ z-index: 0;
146
+ }
147
+
148
+ .TMHTML,
149
+ .TMHTMLBlock {
150
+ font-family: monospace;
151
+ font-size: 0.9em;
152
+ color: #8000ff;
153
+ }
154
+
155
+ .TMHTMLBlock {
156
+ color: #6000c0;
157
+ }
158
+
159
+ .TMCommandBar {
160
+ background-color: var(--oc-gray-1);
161
+ border: 1px solid var(--border);
162
+ border-bottom: none;
163
+ border-top-left-radius: 0.25rem;
164
+ border-top-right-radius: 0.25rem;
165
+ /* height: 24px; */
166
+ /* border:4px solid var(--oc-gray-1); */
167
+ /* box-sizing: content-box; */
168
+ display: flex;
169
+ gap: 0.25rem;
170
+ padding: 0.25rem;
171
+ -webkit-user-select: none;
172
+ user-select: none;
173
+ overflow-x: scroll;
174
+ overflow-y: hidden;
175
+ scrollbar-width: none;
176
+ -ms-overflow-style: none;
177
+ }
178
+
179
+ .TMCommandBar::-webkit-scrollbar {
180
+ display: none;
181
+ }
182
+
183
+ .TMCommandButton {
184
+ /* box-sizing: border-box; */
185
+ display: inline-block;
186
+ height: 24px;
187
+ width: 24px;
188
+ /* padding:3px; */
189
+ /* margin-right:4px; */
190
+ color: var(--oc-gray-9);
191
+ fill: var(--oc-gray-9);
192
+ text-align: center;
193
+ cursor: pointer;
194
+ vertical-align: middle;
195
+ font-size: 20px;
196
+ line-height: 18px;
197
+ font-family: sans-serif;
198
+ }
199
+
200
+ .TMCommandDivider {
201
+ /* box-sizing: content-box; */
202
+ height: 24px;
203
+ margin: 0 8px;
204
+ width: 0px;
205
+ border-left: 2px solid var(--border);
206
+ }
207
+
208
+ .TMCommandButton_Active {
209
+ font-weight: bold;
210
+ color: var(--primary-9);
211
+ background-color: var(--primary-2);
212
+ fill: var(--primary-9);
213
+ }
214
+
215
+ .TMCommandButton_Inactive {
216
+ background-color: var(--oc-gray-1);
217
+ }
218
+
219
+ .TMCommandButton_Disabled {
220
+ color: var(--oc-gray-7);
221
+ fill: var(--oc-gray-7);
222
+ }
223
+
224
+ @media (hover: hover) {
225
+ .TMCommandButton_Active:hover,
226
+ .TMCommandButton_Disabled:hover,
227
+ .TMCommandButton_Inactive:hover {
228
+ background-color: var(--primary-1);
229
+ fill: var(--oc-gray-9);
230
+ }
231
+ }