mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			dark-table
			...
			dark-base-
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| bcbde2e4b9 | 
| @ -16,13 +16,15 @@ | |||||||
|       text-left |       text-left | ||||||
|       bg-white |       bg-white | ||||||
|       border border-gray-200 |       border border-gray-200 | ||||||
|  |       dark:border-gray-600 | ||||||
|       rounded-md |       rounded-md | ||||||
|       min-h-[200px] |       min-h-[200px] | ||||||
|       overflow-hidden |       overflow-hidden | ||||||
|  |       dark:bg-gray-700 dark:text-white | ||||||
|     " |     " | ||||||
|   > |   > | ||||||
|     <div v-if="editor" class="editor-content"> |     <div v-if="editor" class="editor-content"> | ||||||
|       <div class="flex justify-end p-2 border-b border-gray-200 md:hidden"> |       <div class="flex justify-end p-2 border-b border-gray-200 dark:border-gray-600 md:hidden"> | ||||||
|         <BaseDropdown width-class="w-48"> |         <BaseDropdown width-class="w-48"> | ||||||
|           <template #activator> |           <template #activator> | ||||||
|             <div |             <div | ||||||
| @ -42,7 +44,7 @@ | |||||||
|               <dots-vertical-icon class="w-6 h-6 text-gray-600" /> |               <dots-vertical-icon class="w-6 h-6 text-gray-600" /> | ||||||
|             </div> |             </div> | ||||||
|           </template> |           </template> | ||||||
|           <div class="flex flex-wrap space-x-1"> |           <div class="flex flex-wrap space-x-1 dark:text-white"> | ||||||
|             <span |             <span | ||||||
|               class=" |               class=" | ||||||
|                 flex |                 flex | ||||||
| @ -53,8 +55,9 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ 'bg-gray-200': editor.isActive('bold') }" |               :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('bold') }" | ||||||
|               @click="editor.chain().focus().toggleBold().run()" |               @click="editor.chain().focus().toggleBold().run()" | ||||||
|             > |             > | ||||||
|               <bold-icon class="h-3 cursor-pointer fill-current" /> |               <bold-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -69,8 +72,9 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ 'bg-gray-200': editor.isActive('italic') }" |               :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('italic') }" | ||||||
|               @click="editor.chain().focus().toggleItalic().run()" |               @click="editor.chain().focus().toggleItalic().run()" | ||||||
|             > |             > | ||||||
|               <italic-icon class="h-3 cursor-pointer fill-current" /> |               <italic-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -85,8 +89,9 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ 'bg-gray-200': editor.isActive('strike') }" |               :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('strike') }" | ||||||
|               @click="editor.chain().focus().toggleStrike().run()" |               @click="editor.chain().focus().toggleStrike().run()" | ||||||
|             > |             > | ||||||
|               <strikethrough-icon class="h-3 cursor-pointer fill-current" /> |               <strikethrough-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -101,8 +106,9 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ 'bg-gray-200': editor.isActive('code') }" |               :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('code') }" | ||||||
|               @click="editor.chain().focus().toggleCode().run()" |               @click="editor.chain().focus().toggleCode().run()" | ||||||
|             > |             > | ||||||
|               <coding-icon class="h-3 cursor-pointer fill-current" /> |               <coding-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -117,8 +123,9 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ 'bg-gray-200': editor.isActive('paragraph') }" |               :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('paragraph') }" | ||||||
|               @click="editor.chain().focus().setParagraph().run()" |               @click="editor.chain().focus().setParagraph().run()" | ||||||
|             > |             > | ||||||
|               <paragraph-icon class="h-3 cursor-pointer fill-current" /> |               <paragraph-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -133,9 +140,10 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ |               :class="{ | ||||||
|                 'bg-gray-200': editor.isActive('heading', { level: 1 }), |                 'bg-gray-200 dark:bg-gray-900': editor.isActive('heading', { level: 1 }), | ||||||
|               }" |               }" | ||||||
|               @click="editor.chain().focus().toggleHeading({ level: 1 }).run()" |               @click="editor.chain().focus().toggleHeading({ level: 1 }).run()" | ||||||
|             > |             > | ||||||
| @ -151,9 +159,10 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ |               :class="{ | ||||||
|                 'bg-gray-200': editor.isActive('heading', { level: 2 }), |                 'bg-gray-200 dark:bg-gray-900': editor.isActive('heading', { level: 2 }), | ||||||
|               }" |               }" | ||||||
|               @click="editor.chain().focus().toggleHeading({ level: 2 }).run()" |               @click="editor.chain().focus().toggleHeading({ level: 2 }).run()" | ||||||
|             > |             > | ||||||
| @ -169,9 +178,10 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ |               :class="{ | ||||||
|                 'bg-gray-200': editor.isActive('heading', { level: 3 }), |                 'bg-gray-200 dark:bg-gray-900': editor.isActive('heading', { level: 3 }), | ||||||
|               }" |               }" | ||||||
|               @click="editor.chain().focus().toggleHeading({ level: 3 }).run()" |               @click="editor.chain().focus().toggleHeading({ level: 3 }).run()" | ||||||
|             > |             > | ||||||
| @ -188,8 +198,9 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ 'bg-gray-200': editor.isActive('bulletList') }" |               :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('bulletList') }" | ||||||
|               @click="editor.chain().focus().toggleBulletList().run()" |               @click="editor.chain().focus().toggleBulletList().run()" | ||||||
|             > |             > | ||||||
|               <list-ul-icon class="h-3 cursor-pointer fill-current" /> |               <list-ul-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -204,8 +215,9 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ 'bg-gray-200': editor.isActive('orderedList') }" |               :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('orderedList') }" | ||||||
|               @click="editor.chain().focus().toggleOrderedList().run()" |               @click="editor.chain().focus().toggleOrderedList().run()" | ||||||
|             > |             > | ||||||
|               <list-icon class="h-3 cursor-pointer fill-current" /> |               <list-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -220,8 +232,9 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ 'bg-gray-200': editor.isActive('blockquote') }" |               :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('blockquote') }" | ||||||
|               @click="editor.chain().focus().toggleBlockquote().run()" |               @click="editor.chain().focus().toggleBlockquote().run()" | ||||||
|             > |             > | ||||||
|               <quote-icon class="h-3 cursor-pointer fill-current" /> |               <quote-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -236,8 +249,9 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ 'bg-gray-200': editor.isActive('codeBlock') }" |               :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('codeBlock') }" | ||||||
|               @click="editor.chain().focus().toggleCodeBlock().run()" |               @click="editor.chain().focus().toggleCodeBlock().run()" | ||||||
|             > |             > | ||||||
|               <code-block-icon class="h-3 cursor-pointer fill-current" /> |               <code-block-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -252,8 +266,9 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ 'bg-gray-200': editor.isActive('undo') }" |               :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('undo') }" | ||||||
|               @click="editor.chain().focus().undo().run()" |               @click="editor.chain().focus().undo().run()" | ||||||
|             > |             > | ||||||
|               <undo-icon class="h-3 cursor-pointer fill-current" /> |               <undo-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -268,8 +283,9 @@ | |||||||
|                 rounded-sm |                 rounded-sm | ||||||
|                 cursor-pointer |                 cursor-pointer | ||||||
|                 hover:bg-gray-100 |                 hover:bg-gray-100 | ||||||
|  |                 dark:hover:bg-gray-800 | ||||||
|               " |               " | ||||||
|               :class="{ 'bg-gray-200': editor.isActive('redo') }" |               :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('redo') }" | ||||||
|               @click="editor.chain().focus().redo().run()" |               @click="editor.chain().focus().redo().run()" | ||||||
|             > |             > | ||||||
|               <redo-icon class="h-3 cursor-pointer fill-current" /> |               <redo-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -277,7 +293,7 @@ | |||||||
|           </div> |           </div> | ||||||
|         </BaseDropdown> |         </BaseDropdown> | ||||||
|       </div> |       </div> | ||||||
|       <div class="hidden p-2 border-b border-gray-200 md:flex"> |       <div class="hidden p-2 border-b border-gray-200 dark:border-gray-600 md:flex"> | ||||||
|         <div class="flex flex-wrap space-x-1"> |         <div class="flex flex-wrap space-x-1"> | ||||||
|           <span |           <span | ||||||
|             class=" |             class=" | ||||||
| @ -289,8 +305,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('bold') }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('bold') }" | ||||||
|             @click="editor.chain().focus().toggleBold().run()" |             @click="editor.chain().focus().toggleBold().run()" | ||||||
|           > |           > | ||||||
|             <bold-icon class="h-3 cursor-pointer fill-current" /> |             <bold-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -305,8 +322,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('italic') }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('italic') }" | ||||||
|             @click="editor.chain().focus().toggleItalic().run()" |             @click="editor.chain().focus().toggleItalic().run()" | ||||||
|           > |           > | ||||||
|             <italic-icon class="h-3 cursor-pointer fill-current" /> |             <italic-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -321,8 +339,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('strike') }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('strike') }" | ||||||
|             @click="editor.chain().focus().toggleStrike().run()" |             @click="editor.chain().focus().toggleStrike().run()" | ||||||
|           > |           > | ||||||
|             <strikethrough-icon class="h-3 cursor-pointer fill-current" /> |             <strikethrough-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -337,8 +356,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('code') }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('code') }" | ||||||
|             @click="editor.chain().focus().toggleCode().run()" |             @click="editor.chain().focus().toggleCode().run()" | ||||||
|           > |           > | ||||||
|             <coding-icon class="h-3 cursor-pointer fill-current" /> |             <coding-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -353,8 +373,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('paragraph') }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('paragraph') }" | ||||||
|             @click="editor.chain().focus().setParagraph().run()" |             @click="editor.chain().focus().setParagraph().run()" | ||||||
|           > |           > | ||||||
|             <paragraph-icon class="h-3 cursor-pointer fill-current" /> |             <paragraph-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -369,8 +390,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('heading', { level: 1 }) }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('heading', { level: 1 }) }" | ||||||
|             @click="editor.chain().focus().toggleHeading({ level: 1 }).run()" |             @click="editor.chain().focus().toggleHeading({ level: 1 }).run()" | ||||||
|           > |           > | ||||||
|             H1 |             H1 | ||||||
| @ -385,8 +407,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('heading', { level: 2 }) }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('heading', { level: 2 }) }" | ||||||
|             @click="editor.chain().focus().toggleHeading({ level: 2 }).run()" |             @click="editor.chain().focus().toggleHeading({ level: 2 }).run()" | ||||||
|           > |           > | ||||||
|             H2 |             H2 | ||||||
| @ -401,8 +424,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('heading', { level: 3 }) }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('heading', { level: 3 }) }" | ||||||
|             @click="editor.chain().focus().toggleHeading({ level: 3 }).run()" |             @click="editor.chain().focus().toggleHeading({ level: 3 }).run()" | ||||||
|           > |           > | ||||||
|             H3 |             H3 | ||||||
| @ -418,8 +442,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('bulletList') }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('bulletList') }" | ||||||
|             @click="editor.chain().focus().toggleBulletList().run()" |             @click="editor.chain().focus().toggleBulletList().run()" | ||||||
|           > |           > | ||||||
|             <list-ul-icon class="h-3 cursor-pointer fill-current" /> |             <list-ul-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -434,8 +459,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('orderedList') }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('orderedList') }" | ||||||
|             @click="editor.chain().focus().toggleOrderedList().run()" |             @click="editor.chain().focus().toggleOrderedList().run()" | ||||||
|           > |           > | ||||||
|             <list-icon class="h-3 cursor-pointer fill-current" /> |             <list-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -450,8 +476,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('blockquote') }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('blockquote') }" | ||||||
|             @click="editor.chain().focus().toggleBlockquote().run()" |             @click="editor.chain().focus().toggleBlockquote().run()" | ||||||
|           > |           > | ||||||
|             <quote-icon class="h-3 cursor-pointer fill-current" /> |             <quote-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -466,8 +493,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('codeBlock') }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('codeBlock') }" | ||||||
|             @click="editor.chain().focus().toggleCodeBlock().run()" |             @click="editor.chain().focus().toggleCodeBlock().run()" | ||||||
|           > |           > | ||||||
|             <code-block-icon class="h-3 cursor-pointer fill-current" /> |             <code-block-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -482,8 +510,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('undo') }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('undo') }" | ||||||
|             @click="editor.chain().focus().undo().run()" |             @click="editor.chain().focus().undo().run()" | ||||||
|           > |           > | ||||||
|             <undo-icon class="h-3 cursor-pointer fill-current" /> |             <undo-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -498,8 +527,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive('redo') }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive('redo') }" | ||||||
|             @click="editor.chain().focus().redo().run()" |             @click="editor.chain().focus().redo().run()" | ||||||
|           > |           > | ||||||
|             <redo-icon class="h-3 cursor-pointer fill-current" /> |             <redo-icon class="h-3 cursor-pointer fill-current" /> | ||||||
| @ -514,8 +544,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive({ textAlign: 'left' }) }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive({ textAlign: 'left' }) }" | ||||||
|             @click="editor.chain().focus().setTextAlign('left').run()" |             @click="editor.chain().focus().setTextAlign('left').run()" | ||||||
|           > |           > | ||||||
|             <menu-alt2-icon class="h-5 cursor-pointer fill-current" /> |             <menu-alt2-icon class="h-5 cursor-pointer fill-current" /> | ||||||
| @ -530,8 +561,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive({ textAlign: 'right' }) }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive({ textAlign: 'right' }) }" | ||||||
|             @click="editor.chain().focus().setTextAlign('right').run()" |             @click="editor.chain().focus().setTextAlign('right').run()" | ||||||
|           > |           > | ||||||
|             <menu-alt3-icon class="h-5 cursor-pointer fill-current" /> |             <menu-alt3-icon class="h-5 cursor-pointer fill-current" /> | ||||||
| @ -546,9 +578,10 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ |             :class="{ | ||||||
|               'bg-gray-200': editor.isActive({ textAlign: 'justify' }), |               'bg-gray-200 dark:bg-gray-900': editor.isActive({ textAlign: 'justify' }), | ||||||
|             }" |             }" | ||||||
|             @click="editor.chain().focus().setTextAlign('justify').run()" |             @click="editor.chain().focus().setTextAlign('justify').run()" | ||||||
|           > |           > | ||||||
| @ -564,8 +597,9 @@ | |||||||
|               rounded-sm |               rounded-sm | ||||||
|               cursor-pointer |               cursor-pointer | ||||||
|               hover:bg-gray-100 |               hover:bg-gray-100 | ||||||
|  |               dark:hover:bg-gray-800 | ||||||
|             " |             " | ||||||
|             :class="{ 'bg-gray-200': editor.isActive({ textAlign: 'center' }) }" |             :class="{ 'bg-gray-200 dark:bg-gray-900': editor.isActive({ textAlign: 'center' }) }" | ||||||
|             @click="editor.chain().focus().setTextAlign('center').run()" |             @click="editor.chain().focus().setTextAlign('center').run()" | ||||||
|           > |           > | ||||||
|             <menu-center-icon class="h-5 cursor-pointer fill-current" /> |             <menu-center-icon class="h-5 cursor-pointer fill-current" /> | ||||||
|  | |||||||
| @ -10,14 +10,13 @@ | |||||||
|       bg-white |       bg-white | ||||||
|       border-t border-gray-200 |       border-t border-gray-200 | ||||||
|       sm:px-6 |       sm:px-6 | ||||||
|       dark:bg-transparent dark:border-white/10 |  | ||||||
|     " |     " | ||||||
|   > |   > | ||||||
|     <div class="flex justify-between flex-1 sm:hidden"> |     <div class="flex justify-between flex-1 sm:hidden"> | ||||||
|       <a |       <a | ||||||
|         href="#" |         href="#" | ||||||
|         :class="{ |         :class="{ | ||||||
|           'disabled cursor-normal pointer-events-none !bg-gray-100 !text-gray-400 dark:!bg-gray-800 dark:!text-gray-500': |           'disabled cursor-normal pointer-events-none !bg-gray-100 !text-gray-400': | ||||||
|             pagination.currentPage === 1, |             pagination.currentPage === 1, | ||||||
|         }" |         }" | ||||||
|         class=" |         class=" | ||||||
| @ -33,7 +32,6 @@ | |||||||
|           border border-gray-300 |           border border-gray-300 | ||||||
|           rounded-md |           rounded-md | ||||||
|           hover:bg-gray-50 |           hover:bg-gray-50 | ||||||
|           dark:bg-gray-800 dark:border-gray-600 dark:text-gray-300 |  | ||||||
|         " |         " | ||||||
|         @click="pageClicked(pagination.currentPage - 1)" |         @click="pageClicked(pagination.currentPage - 1)" | ||||||
|       > |       > | ||||||
| @ -42,7 +40,7 @@ | |||||||
|       <a |       <a | ||||||
|         href="#" |         href="#" | ||||||
|         :class="{ |         :class="{ | ||||||
|           'disabled cursor-default pointer-events-none !bg-gray-100 !text-gray-400 dark:!bg-gray-800 dark:!text-gray-500': |           'disabled cursor-default pointer-events-none !bg-gray-100 !text-gray-400': | ||||||
|             pagination.currentPage === pagination.totalPages, |             pagination.currentPage === pagination.totalPages, | ||||||
|         }" |         }" | ||||||
|         class=" |         class=" | ||||||
| @ -59,7 +57,6 @@ | |||||||
|           border border-gray-300 |           border border-gray-300 | ||||||
|           rounded-md |           rounded-md | ||||||
|           hover:bg-gray-50 |           hover:bg-gray-50 | ||||||
|           dark:bg-gray-800 dark:border-gray-600 dark:text-gray-300 |  | ||||||
|         " |         " | ||||||
|         @click="pageClicked(pagination.currentPage + 1)" |         @click="pageClicked(pagination.currentPage + 1)" | ||||||
|       > |       > | ||||||
| @ -68,12 +65,12 @@ | |||||||
|     </div> |     </div> | ||||||
|     <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"> |     <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"> | ||||||
|       <div> |       <div> | ||||||
|         <p class="text-sm text-gray-700 dark:text-gray-400"> |         <p class="text-sm text-gray-700"> | ||||||
|           Showing |           Showing | ||||||
|           {{ ' ' }} |           {{ ' ' }} | ||||||
|           <span |           <span | ||||||
|             v-if="pagination.limit && pagination.currentPage" |             v-if="pagination.limit && pagination.currentPage" | ||||||
|             class="font-medium dark:text-gray-200" |             class="font-medium" | ||||||
|           > |           > | ||||||
|             {{ |             {{ | ||||||
|               pagination.currentPage * pagination.limit - (pagination.limit - 1) |               pagination.currentPage * pagination.limit - (pagination.limit - 1) | ||||||
| @ -84,7 +81,7 @@ | |||||||
|           {{ ' ' }} |           {{ ' ' }} | ||||||
|           <span |           <span | ||||||
|             v-if="pagination.limit && pagination.currentPage" |             v-if="pagination.limit && pagination.currentPage" | ||||||
|             class="font-medium dark:text-gray-200" |             class="font-medium" | ||||||
|           > |           > | ||||||
|             <span |             <span | ||||||
|               v-if=" |               v-if=" | ||||||
| @ -101,7 +98,7 @@ | |||||||
|           {{ ' ' }} |           {{ ' ' }} | ||||||
|           of |           of | ||||||
|           {{ ' ' }} |           {{ ' ' }} | ||||||
|           <span v-if="pagination.totalCount" class="font-medium dark:text-gray-200"> |           <span v-if="pagination.totalCount" class="font-medium"> | ||||||
|             {{ pagination.totalCount }} |             {{ pagination.totalCount }} | ||||||
|           </span> |           </span> | ||||||
|           {{ ' ' }} |           {{ ' ' }} | ||||||
| @ -116,7 +113,7 @@ | |||||||
|           <a |           <a | ||||||
|             href="#" |             href="#" | ||||||
|             :class="{ |             :class="{ | ||||||
|               'disabled cursor-normal pointer-events-none !bg-gray-100 !text-gray-400 dark:!bg-gray-800 dark:!text-gray-500': |               'disabled cursor-normal pointer-events-none !bg-gray-100 !text-gray-400': | ||||||
|                 pagination.currentPage === 1, |                 pagination.currentPage === 1, | ||||||
|             }" |             }" | ||||||
|             class=" |             class=" | ||||||
| @ -132,7 +129,6 @@ | |||||||
|               border border-gray-300 |               border border-gray-300 | ||||||
|               rounded-l-md |               rounded-l-md | ||||||
|               hover:bg-gray-50 |               hover:bg-gray-50 | ||||||
|               dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 |  | ||||||
|             " |             " | ||||||
|             @click="pageClicked(pagination.currentPage - 1)" |             @click="pageClicked(pagination.currentPage - 1)" | ||||||
|           > |           > | ||||||
| @ -144,9 +140,9 @@ | |||||||
|             href="#" |             href="#" | ||||||
|             aria-current="page" |             aria-current="page" | ||||||
|             :class="{ |             :class="{ | ||||||
|               'z-10 bg-primary-50 border-primary-500 text-primary-600 dark:bg-primary-500 dark:text-white': |               'z-10 bg-primary-50 border-primary-500 text-primary-600': | ||||||
|                 isActive(1), |                 isActive(1), | ||||||
|               'bg-white border-gray-300 text-gray-500 hover:bg-gray-50 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300': |               'bg-white border-gray-300 text-gray-500 hover:bg-gray-50': | ||||||
|                 !isActive(1), |                 !isActive(1), | ||||||
|             }" |             }" | ||||||
|             class=" |             class=" | ||||||
| @ -177,7 +173,6 @@ | |||||||
|               text-gray-700 |               text-gray-700 | ||||||
|               bg-white |               bg-white | ||||||
|               border border-gray-300 |               border border-gray-300 | ||||||
|               dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 |  | ||||||
|             " |             " | ||||||
|           > |           > | ||||||
|             ... |             ... | ||||||
| @ -187,9 +182,9 @@ | |||||||
|             :key="page" |             :key="page" | ||||||
|             href="#" |             href="#" | ||||||
|             :class="{ |             :class="{ | ||||||
|               'z-10 bg-primary-50 border-primary-500 text-primary-600 dark:bg-primary-500 dark:text-white': |               'z-10 bg-primary-50 border-primary-500 text-primary-600': | ||||||
|                 isActive(page), |                 isActive(page), | ||||||
|               'bg-white border-gray-300 text-gray-500 hover:bg-gray-50 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300': |               'bg-white border-gray-300 text-gray-500 hover:bg-gray-50': | ||||||
|                 !isActive(page), |                 !isActive(page), | ||||||
|               disabled: page === '...', |               disabled: page === '...', | ||||||
|             }" |             }" | ||||||
| @ -225,7 +220,6 @@ | |||||||
|               text-gray-700 |               text-gray-700 | ||||||
|               bg-white |               bg-white | ||||||
|               border border-gray-300 |               border border-gray-300 | ||||||
|               dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 |  | ||||||
|             " |             " | ||||||
|           > |           > | ||||||
|             ... |             ... | ||||||
| @ -235,9 +229,9 @@ | |||||||
|             href="#" |             href="#" | ||||||
|             aria-current="page" |             aria-current="page" | ||||||
|             :class="{ |             :class="{ | ||||||
|               'z-10 bg-primary-50 border-primary-500 text-primary-600 dark:bg-primary-500 dark:text-white': |               'z-10 bg-primary-50 border-primary-500 text-primary-600': | ||||||
|                 isActive(pagination.totalPages), |                 isActive(pagination.totalPages), | ||||||
|               'bg-white border-gray-300 text-gray-500 hover:bg-gray-50 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300': |               'bg-white border-gray-300 text-gray-500 hover:bg-gray-50': | ||||||
|                 !isActive(pagination.totalPages), |                 !isActive(pagination.totalPages), | ||||||
|             }" |             }" | ||||||
|             class=" |             class=" | ||||||
| @ -269,10 +263,9 @@ | |||||||
|               border border-gray-300 |               border border-gray-300 | ||||||
|               rounded-r-md |               rounded-r-md | ||||||
|               hover:bg-gray-50 |               hover:bg-gray-50 | ||||||
|               dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 |  | ||||||
|             " |             " | ||||||
|             :class="{ |             :class="{ | ||||||
|               'disabled cursor-default pointer-events-none !bg-gray-100 !text-gray-400 dark:!bg-gray-800 dark:!text-gray-500': |               'disabled cursor-default pointer-events-none !bg-gray-100 !text-gray-400': | ||||||
|                 pagination.currentPage === pagination.totalPages, |                 pagination.currentPage === pagination.totalPages, | ||||||
|             }" |             }" | ||||||
|             @click="pageClicked(pagination.currentPage + 1)" |             @click="pageClicked(pagination.currentPage + 1)" | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	