mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-26 20:43:56 +00:00
ad69c5017b
It's sad but it's not working. For multiple releases this should be already broken which shows how often it's used. As there is also a security issue related to that, it's better to remove the feature completely. Whoever wants to rewrite it, feel free to go. This commit removes the Google Drive integration from HackMD's Frontend editor and this way removes the need to provide any API key and Client ID in the frontend. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
85 lines
2.4 KiB
JavaScript
85 lines
2.4 KiB
JavaScript
/*
|
|
* Global UI elements references
|
|
*/
|
|
|
|
export const getUIElements = () => ({
|
|
spinner: $('.ui-spinner'),
|
|
content: $('.ui-content'),
|
|
toolbar: {
|
|
shortStatus: $('.ui-short-status'),
|
|
status: $('.ui-status'),
|
|
new: $('.ui-new'),
|
|
publish: $('.ui-publish'),
|
|
extra: {
|
|
revision: $('.ui-extra-revision'),
|
|
slide: $('.ui-extra-slide')
|
|
},
|
|
download: {
|
|
markdown: $('.ui-download-markdown'),
|
|
html: $('.ui-download-html'),
|
|
rawhtml: $('.ui-download-raw-html'),
|
|
pdf: $('.ui-download-pdf-beta')
|
|
},
|
|
export: {
|
|
dropbox: $('.ui-save-dropbox'),
|
|
gist: $('.ui-save-gist'),
|
|
snippet: $('.ui-save-snippet')
|
|
},
|
|
import: {
|
|
dropbox: $('.ui-import-dropbox'),
|
|
gist: $('.ui-import-gist'),
|
|
snippet: $('.ui-import-snippet'),
|
|
clipboard: $('.ui-import-clipboard')
|
|
},
|
|
mode: $('.ui-mode'),
|
|
edit: $('.ui-edit'),
|
|
view: $('.ui-view'),
|
|
both: $('.ui-both'),
|
|
night: $('.ui-night'),
|
|
uploadImage: $('.ui-upload-image')
|
|
},
|
|
infobar: {
|
|
lastchange: $('.ui-lastchange'),
|
|
lastchangeuser: $('.ui-lastchangeuser'),
|
|
nolastchangeuser: $('.ui-no-lastchangeuser'),
|
|
permission: {
|
|
permission: $('.ui-permission'),
|
|
label: $('.ui-permission-label'),
|
|
freely: $('.ui-permission-freely'),
|
|
editable: $('.ui-permission-editable'),
|
|
locked: $('.ui-permission-locked'),
|
|
private: $('.ui-permission-private'),
|
|
limited: $('.ui-permission-limited'),
|
|
protected: $('.ui-permission-protected')
|
|
},
|
|
delete: $('.ui-delete-note')
|
|
},
|
|
toc: {
|
|
toc: $('.ui-toc'),
|
|
affix: $('.ui-affix-toc'),
|
|
label: $('.ui-toc-label'),
|
|
dropdown: $('.ui-toc-dropdown')
|
|
},
|
|
area: {
|
|
edit: $('.ui-edit-area'),
|
|
view: $('.ui-view-area'),
|
|
codemirror: $('.ui-edit-area .CodeMirror'),
|
|
codemirrorScroll: $('.ui-edit-area .CodeMirror .CodeMirror-scroll'),
|
|
codemirrorSizer: $('.ui-edit-area .CodeMirror .CodeMirror-sizer'),
|
|
codemirrorSizerInner: $(
|
|
'.ui-edit-area .CodeMirror .CodeMirror-sizer > div',
|
|
),
|
|
markdown: $('.ui-view-area .markdown-body'),
|
|
resize: {
|
|
handle: $('.ui-resizable-handle'),
|
|
syncToggle: $('.ui-sync-toggle')
|
|
}
|
|
},
|
|
modal: {
|
|
snippetImportProjects: $('#snippetImportModalProjects'),
|
|
snippetImportSnippets: $('#snippetImportModalSnippets'),
|
|
revision: $('#revisionModal')
|
|
}
|
|
})
|
|
|
|
export default getUIElements
|