File size: 8,223 Bytes
b82d373
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<div class="wide100p padding5 dataBankAttachments">
    <h2 class="marginBot5">
        <span data-i18n="Data Bank">
            Data Bank
        </span>
    </h2>
    <div data-i18n="These files will be available for extensions that support attachments (e.g. Vector Storage).">
        These files will be available for extensions that support attachments (e.g. Vector Storage).
    </div>
    <div class="marginTopBot5">
        <span data-i18n="Supported file types: Plain Text, PDF, Markdown, HTML, EPUB." >
            Supported file types: Plain Text, PDF, Markdown, HTML, EPUB.
        </span>
        <span data-i18n="Drag and drop files here to upload.">
            Drag and drop files here to upload.
        </span>
    </div>
    <div class="flex-container marginTopBot5">
        <input type="search" id="attachmentSearch" class="attachmentSearch text_pole margin0 flex1" placeholder="Search...">
        <select id="attachmentSort" class="attachmentSort text_pole margin0 flex1 textarea_compact">
            <option data-sort-field="created" data-sort-order="desc" data-i18n="Date (Newest First)">
                Date (Newest First)
            </option>
            <option data-sort-field="created" data-sort-order="asc" data-i18n="Date (Oldest First)">
                Date (Oldest First)
            </option>
            <option data-sort-field="name" data-sort-order="asc" data-i18n="Name (A-Z)">
                Name (A-Z)
            </option>
            <option data-sort-field="name" data-sort-order="desc" data-i18n="Name (Z-A)">
                Name (Z-A)
            </option>
            <option data-sort-field="size" data-sort-order="asc" data-i18n="Size (Smallest First)">
                Size (Smallest First)
            </option>
            <option data-sort-field="size" data-sort-order="desc" data-i18n="Size (Largest First)">
                Size (Largest First)
            </option>
        </select>
        <label class="margin0 menu_button menu_button_icon attachmentsBulkEditButton">
            <i class="fa-solid fa-edit"></i>
            <span data-i18n="Bulk Edit">Bulk Edit</span>
            <input type="checkbox" class="displayNone attachmentsBulkEditCheckbox" hidden>
        </label>
    </div>
    <div class="attachmentBulkActionsContainer flex-container marginTopBot5 alignItemsBaseline">
        <div class="flex-container">
            <div class="menu_button menu_button_icon bulkActionSelectAll" title="Select all *visible* attachments">
                <i class="fa-solid fa-check-square"></i>
                <span data-i18n="Select All">Select All</span>
            </div>
            <div class="menu_button menu_button_icon bulkActionSelectNone" title="Deselect all *visible* attachments">
                <i class="fa-solid fa-square"></i>
                <span data-i18n="Select None">Select None</span>
            </div>
            <div class="menu_button menu_button_icon bulkActionDisable" title="Disable selected attachments">
                <i class="fa-solid fa-comment-slash"></i>
                <span data-i18n="Disable">Disable</span>
            </div>
            <div class="menu_button menu_button_icon bulkActionEnable" title="Enable selected attachments">
                <i class="fa-solid fa-comment"></i>
                <span data-i18n="Enable">Enable</span>
            </div>
            <div class="menu_button menu_button_icon bulkActionDelete" title="Delete selected attachments">
                <i class="fa-solid fa-trash"></i>
                <span data-i18n="Delete">Delete</span>
            </div>
        </div>
    </div>
    <div class="justifyLeft globalAttachmentsBlock marginBot10">
        <h3 class="globalAttachmentsTitle margin0 title_restorable">
            <span data-i18n="Global Attachments">
                Global Attachments
            </span>
            <div class="openActionModalButton menu_button menu_button_icon">
                <i class="fa-solid fa-plus"></i>
                <span data-i18n="Add">Add</span>
            </div>
        </h3>
        <small data-i18n="These files are available for all characters in all chats.">
            These files are available for all characters in all chats.
        </small>
        <div class="globalAttachmentsList attachmentsList"></div>
        <hr>
    </div>
    <div class="justifyLeft characterAttachmentsBlock marginBot10">
        <h3 class="characterAttachmentsTitle margin0 title_restorable">
            <span data-i18n="Character Attachments">
                Character Attachments
            </span>
            <div class="openActionModalButton menu_button menu_button_icon">
                <i class="fa-solid fa-plus"></i>
                <span data-i18n="Add">Add</span>
            </div>
        </h3>
        <div class="flex-container flexFlowColumn">
            <strong><small class="characterAttachmentsName"></small></strong>
            <small>
                <span data-i18n="These files are available for the current character in all chats they are in.">
                    These files are available for the current character in all chats they are in.
                </span>
                <span>
                    <span data-i18n="Saved locally. Not exported.">
                        Saved locally. Not exported.
                    </span>
                </span>
            </small>
        </div>
        <div class="characterAttachmentsList attachmentsList"></div>
        <hr>
    </div>
    <div class="justifyLeft chatAttachmentsBlock marginBot10">
        <h3 class="chatAttachmentsTitle margin0 title_restorable">
            <span data-i18n="Chat Attachments">
                Chat Attachments
            </span>
            <div class="openActionModalButton menu_button menu_button_icon">
                <i class="fa-solid fa-plus"></i>
                <span data-i18n="Add">Add</span>
            </div>
        </h3>
        <div class="flex-container flexFlowColumn">
            <strong><small class="chatAttachmentsName"></small></strong>
            <small data-i18n="These files are available for all characters in the current chat.">
                These files are available for all characters in the current chat.
            </small>
        </div>
        <div class="chatAttachmentsList attachmentsList"></div>
    </div>

    <div class="attachmentListItemTemplate template_element">
        <div class="attachmentListItem flex-container alignItemsCenter flexGap10">
            <div class="attachmentListItemCheckboxContainer"><input type="checkbox" class="attachmentListItemCheckbox"></div>
            <div class="attachmentFileIcon fa-solid fa-file-alt"></div>
            <div class="attachmentListItemName flex1"></div>
            <small class="attachmentListItemCreated"></small>
            <small class="attachmentListItemSize"></small>
            <div class="viewAttachmentButton right_menu_button fa-fw fa-solid fa-magnifying-glass" title="View attachment content"></div>
            <div class="disableAttachmentButton right_menu_button fa-fw fa-solid fa-comment" title="Disable attachment"></div>
            <div class="enableAttachmentButton right_menu_button fa-fw fa-solid fa-comment-slash" title="Enable attachment"></div>
            <div class="moveAttachmentButton right_menu_button fa-fw fa-solid fa-arrows-alt" title="Move attachment"></div>
            <div class="editAttachmentButton right_menu_button fa-fw fa-solid fa-pencil" title="Edit attachment"></div>
            <div class="downloadAttachmentButton right_menu_button fa-fw fa-solid fa-download" title="Download attachment"></div>
            <div class="deleteAttachmentButton right_menu_button fa-fw fa-solid fa-trash" title="Delete attachment"></div>
        </div>
    </div>

    <div class="actionButtonTemplate">
        <div class="actionButton list-group-item flex-container flexGap5" style="align-items: center;" title="">
            <i class="actionButtonIcon"></i>
            <img class="actionButtonImg"/>
            <span class="actionButtonText"></span>
        </div>
    </div>

    <div class="actionButtonsModal popper-modal options-content list-group"></div>
</div>