Файловый менеджер - Редактировать - /var/www/html/autosave.zip
Ðазад
PK ! �j��� � plugin.min.js.gznu �[��� � �Vmo�6��_!�A��C1�`�fɀZ�ـ��F:��$R#ONG�} %�-��$�ǻ{���C�%�ɍ6����%8��Iފ�ۄ�\\�����hT4&Cm ek�xH<:�!�.�KP�6�*Ѡ.ō���-�@�`�X6sm��Qsp�M3k<& ) �̜p���ZJIQ���C��� N`�Lb���R⌄I���2~0�sN����K�͈ ��c�I+�S%?ǬL� �������:��H���K+".�dh�iiu��I)��[�^U�R�n5n�B��q��-��.���{`�19�@�ɢ�}��v �Z���]~��*?�uj�q�r�h�T����A�_1���_g�S�Qd}!)������ڧxë�-|�~ [_� ;����� E>9c-�!8�s�����"�Ԕ��WK�U���;(���ƔV��r���|� sU���l�6n�J�x~�`Bv�x�w��fMEi3N��{x��j�~ L8�K�=]� �霃��<;ֿp���A�l�k\(�ծE�a��Y˗�"&���c�����W����W���zhQ/���ꂒ0I�w�M7DP���돡~��Xǟ���I���<]`U6}6?��my ��1�tEɑ�� `�#T���^����n�FR�RrFB=>��)G�C�X�p�+��ĝ��xLk�|4a|�X�� o��k����.!fw�H�T�a��;H|4u��"V�-(�O_v�QZ>�k��n���Ph��h���� �5�Y麰�R��� 7��`Ч����;�'����c� ��{�Y�W�T/ޢ�Őx��\5�|>�%�{�j����}PQK/_$oW�F�߬E/B�0�xe�] 9-����zb�ʁ�%,���6w��X(lQ�إ��Py���;o��[Mr0��q+w�V�7[/U�@j��.U��Ե�[�&���Rr�xL� QI�� ҶS�����xo]J�-A�s(TSblQ���18 %<�N:a���ʓ��'� �3O� �Dؼ�~v��͙�txS���"m��C��nwƎ����ҳ��� L� �-�e|~6�K�ŀ"����ve|��ts:e|�(��6�B-!iL��'�B�9�D9HV�I|�/�mb�R�B���jF�UR�.j�e�eEה��������5l��H��29 c���e�۟R6DBј�$�;�i�~.yCX��O{힢ht?Zn��AU����5Z[���A��RyLz�άI��~Ӛw�g<n�g��N�=���D!}��H�1� �6IOlٿR���W=oQ��@�&K�wK�m��*�쮺ݍ�� ��L�>k�YƝ�������?4S=�� PK ! 潄�� � index.jsnu �[��� // Exports the "autosave" plugin for usage with module loaders // Usage: // CommonJS: // require('tinymce/plugins/autosave') // ES2015: // import 'tinymce/plugins/autosave' require('./plugin.js');PK ! 4S=�� � plugin.min.jsnu �[��� /** * TinyMCE version 6.8.6 (TBD) */ !function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=("string",t=>"string"===(t=>{const e=typeof t;return null===t?"null":"object"===e&&Array.isArray(t)?"array":"object"===e&&(r=o=t,(a=String).prototype.isPrototypeOf(r)||(null===(s=o.constructor)||void 0===s?void 0:s.name)===a.name)?"string":e;var r,o,a,s})(t));const r=(void 0,t=>undefined===t);var o=tinymce.util.Tools.resolve("tinymce.util.Delay"),a=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),s=tinymce.util.Tools.resolve("tinymce.util.Tools");const n=t=>{const e=/^(\d+)([ms]?)$/.exec(t);return(e&&e[2]?{s:1e3,m:6e4}[e[2]]:1)*parseInt(t,10)},i=t=>e=>e.options.get(t),u=i("autosave_ask_before_unload"),l=i("autosave_restore_when_empty"),c=i("autosave_interval"),d=i("autosave_retention"),m=t=>{const e=document.location;return t.options.get("autosave_prefix").replace(/{path}/g,e.pathname).replace(/{query}/g,e.search).replace(/{hash}/g,e.hash).replace(/{id}/g,t.id)},v=(t,e)=>{if(r(e))return t.dom.isEmpty(t.getBody());{const r=s.trim(e);if(""===r)return!0;{const e=(new DOMParser).parseFromString(r,"text/html");return t.dom.isEmpty(e)}}},f=t=>{var e;const r=parseInt(null!==(e=a.getItem(m(t)+"time"))&&void 0!==e?e:"0",10)||0;return!((new Date).getTime()-r>d(t)&&(p(t,!1),1))},p=(t,e)=>{const r=m(t);a.removeItem(r+"draft"),a.removeItem(r+"time"),!1!==e&&(t=>{t.dispatch("RemoveDraft")})(t)},g=t=>{const e=m(t);!v(t)&&t.isDirty()&&(a.setItem(e+"draft",t.getContent({format:"raw",no_events:!0})),a.setItem(e+"time",(new Date).getTime().toString()),(t=>{t.dispatch("StoreDraft")})(t))},y=t=>{var e;const r=m(t);f(t)&&(t.setContent(null!==(e=a.getItem(r+"draft"))&&void 0!==e?e:"",{format:"raw"}),(t=>{t.dispatch("RestoreDraft")})(t))};var D=tinymce.util.Tools.resolve("tinymce.EditorManager");const h=t=>e=>{e.setEnabled(f(t));const r=()=>e.setEnabled(f(t));return t.on("StoreDraft RestoreDraft RemoveDraft",r),()=>t.off("StoreDraft RestoreDraft RemoveDraft",r)};t.add("autosave",(t=>((t=>{const r=t.options.register,o=t=>{const r=e(t);return r?{value:n(t),valid:r}:{valid:!1,message:"Must be a string."}};r("autosave_ask_before_unload",{processor:"boolean",default:!0}),r("autosave_prefix",{processor:"string",default:"tinymce-autosave-{path}{query}{hash}-{id}-"}),r("autosave_restore_when_empty",{processor:"boolean",default:!1}),r("autosave_interval",{processor:o,default:"30s"}),r("autosave_retention",{processor:o,default:"20m"})})(t),(t=>{t.editorManager.on("BeforeUnload",(t=>{let e;s.each(D.get(),(t=>{t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&u(t)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))})),e&&(t.preventDefault(),t.returnValue=e)}))})(t),(t=>{(t=>{const e=c(t);o.setEditorInterval(t,(()=>{g(t)}),e)})(t);const e=()=>{(t=>{t.undoManager.transact((()=>{y(t),p(t)})),t.focus()})(t)};t.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:e,onSetup:h(t)}),t.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:e,onSetup:h(t)})})(t),t.on("init",(()=>{l(t)&&t.dom.isEmpty(t.getBody())&&y(t)})),(t=>({hasDraft:()=>f(t),storeDraft:()=>g(t),restoreDraft:()=>y(t),removeDraft:e=>p(t,e),isEmpty:e=>v(t,e)}))(t))))}();PK ! �� \ \ plugin.jsnu �[��� /** * TinyMCE version 6.8.6 (TBD) */ (function () { 'use strict'; var global$4 = tinymce.util.Tools.resolve('tinymce.PluginManager'); const hasProto = (v, constructor, predicate) => { var _a; if (predicate(v, constructor.prototype)) { return true; } else { return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name; } }; const typeOf = x => { const t = typeof x; if (x === null) { return 'null'; } else if (t === 'object' && Array.isArray(x)) { return 'array'; } else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) { return 'string'; } else { return t; } }; const isType = type => value => typeOf(value) === type; const eq = t => a => t === a; const isString = isType('string'); const isUndefined = eq(undefined); var global$3 = tinymce.util.Tools.resolve('tinymce.util.Delay'); var global$2 = tinymce.util.Tools.resolve('tinymce.util.LocalStorage'); var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools'); const fireRestoreDraft = editor => editor.dispatch('RestoreDraft'); const fireStoreDraft = editor => editor.dispatch('StoreDraft'); const fireRemoveDraft = editor => editor.dispatch('RemoveDraft'); const parse = timeString => { const multiples = { s: 1000, m: 60000 }; const parsedTime = /^(\d+)([ms]?)$/.exec(timeString); return (parsedTime && parsedTime[2] ? multiples[parsedTime[2]] : 1) * parseInt(timeString, 10); }; const option = name => editor => editor.options.get(name); const register$1 = editor => { const registerOption = editor.options.register; const timeProcessor = value => { const valid = isString(value); if (valid) { return { value: parse(value), valid }; } else { return { valid: false, message: 'Must be a string.' }; } }; registerOption('autosave_ask_before_unload', { processor: 'boolean', default: true }); registerOption('autosave_prefix', { processor: 'string', default: 'tinymce-autosave-{path}{query}{hash}-{id}-' }); registerOption('autosave_restore_when_empty', { processor: 'boolean', default: false }); registerOption('autosave_interval', { processor: timeProcessor, default: '30s' }); registerOption('autosave_retention', { processor: timeProcessor, default: '20m' }); }; const shouldAskBeforeUnload = option('autosave_ask_before_unload'); const shouldRestoreWhenEmpty = option('autosave_restore_when_empty'); const getAutoSaveInterval = option('autosave_interval'); const getAutoSaveRetention = option('autosave_retention'); const getAutoSavePrefix = editor => { const location = document.location; return editor.options.get('autosave_prefix').replace(/{path}/g, location.pathname).replace(/{query}/g, location.search).replace(/{hash}/g, location.hash).replace(/{id}/g, editor.id); }; const isEmpty = (editor, html) => { if (isUndefined(html)) { return editor.dom.isEmpty(editor.getBody()); } else { const trimmedHtml = global$1.trim(html); if (trimmedHtml === '') { return true; } else { const fragment = new DOMParser().parseFromString(trimmedHtml, 'text/html'); return editor.dom.isEmpty(fragment); } } }; const hasDraft = editor => { var _a; const time = parseInt((_a = global$2.getItem(getAutoSavePrefix(editor) + 'time')) !== null && _a !== void 0 ? _a : '0', 10) || 0; if (new Date().getTime() - time > getAutoSaveRetention(editor)) { removeDraft(editor, false); return false; } return true; }; const removeDraft = (editor, fire) => { const prefix = getAutoSavePrefix(editor); global$2.removeItem(prefix + 'draft'); global$2.removeItem(prefix + 'time'); if (fire !== false) { fireRemoveDraft(editor); } }; const storeDraft = editor => { const prefix = getAutoSavePrefix(editor); if (!isEmpty(editor) && editor.isDirty()) { global$2.setItem(prefix + 'draft', editor.getContent({ format: 'raw', no_events: true })); global$2.setItem(prefix + 'time', new Date().getTime().toString()); fireStoreDraft(editor); } }; const restoreDraft = editor => { var _a; const prefix = getAutoSavePrefix(editor); if (hasDraft(editor)) { editor.setContent((_a = global$2.getItem(prefix + 'draft')) !== null && _a !== void 0 ? _a : '', { format: 'raw' }); fireRestoreDraft(editor); } }; const startStoreDraft = editor => { const interval = getAutoSaveInterval(editor); global$3.setEditorInterval(editor, () => { storeDraft(editor); }, interval); }; const restoreLastDraft = editor => { editor.undoManager.transact(() => { restoreDraft(editor); removeDraft(editor); }); editor.focus(); }; const get = editor => ({ hasDraft: () => hasDraft(editor), storeDraft: () => storeDraft(editor), restoreDraft: () => restoreDraft(editor), removeDraft: fire => removeDraft(editor, fire), isEmpty: html => isEmpty(editor, html) }); var global = tinymce.util.Tools.resolve('tinymce.EditorManager'); const setup = editor => { editor.editorManager.on('BeforeUnload', e => { let msg; global$1.each(global.get(), editor => { if (editor.plugins.autosave) { editor.plugins.autosave.storeDraft(); } if (!msg && editor.isDirty() && shouldAskBeforeUnload(editor)) { msg = editor.translate('You have unsaved changes are you sure you want to navigate away?'); } }); if (msg) { e.preventDefault(); e.returnValue = msg; } }); }; const makeSetupHandler = editor => api => { api.setEnabled(hasDraft(editor)); const editorEventCallback = () => api.setEnabled(hasDraft(editor)); editor.on('StoreDraft RestoreDraft RemoveDraft', editorEventCallback); return () => editor.off('StoreDraft RestoreDraft RemoveDraft', editorEventCallback); }; const register = editor => { startStoreDraft(editor); const onAction = () => { restoreLastDraft(editor); }; editor.ui.registry.addButton('restoredraft', { tooltip: 'Restore last draft', icon: 'restore-draft', onAction, onSetup: makeSetupHandler(editor) }); editor.ui.registry.addMenuItem('restoredraft', { text: 'Restore last draft', icon: 'restore-draft', onAction, onSetup: makeSetupHandler(editor) }); }; var Plugin = () => { global$4.add('autosave', editor => { register$1(editor); setup(editor); register(editor); editor.on('init', () => { if (shouldRestoreWhenEmpty(editor) && editor.dom.isEmpty(editor.getBody())) { restoreDraft(editor); } }); return get(editor); }); }; Plugin(); })(); PK ! �j��� � plugin.min.js.gznu �[��� PK ! 潄�� � � index.jsnu �[��� PK ! 4S=�� � � plugin.min.jsnu �[��� PK ! �� \ \ plugin.jsnu �[��� PK . �1
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка