mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Fix pathloader
This commit is contained in:
parent
fbc1948b84
commit
819ce46025
@ -19,8 +19,13 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import jquery from 'jquery';
|
import jquery from 'jquery';
|
||||||
import { $notify } from './components/widget/ToolbarNotifier';
|
import {
|
||||||
import { buildDesigner, buildOptions } from './components/DesignerBuilder';
|
$notify,
|
||||||
|
} from './components/widget/ToolbarNotifier';
|
||||||
|
import {
|
||||||
|
buildDesigner,
|
||||||
|
buildOptions,
|
||||||
|
} from './components/DesignerBuilder';
|
||||||
import RESTPersistenceManager from './components/RestPersistenceManager';
|
import RESTPersistenceManager from './components/RestPersistenceManager';
|
||||||
import PersistenceManager from './components/PersistenceManager';
|
import PersistenceManager from './components/PersistenceManager';
|
||||||
import LocalStorageManager from './components/LocalStorageManager';
|
import LocalStorageManager from './components/LocalStorageManager';
|
||||||
@ -32,19 +37,15 @@ require('@libraries/bootstrap/js/bootstrap');
|
|||||||
// Configure designer options ...
|
// Configure designer options ...
|
||||||
let persistence;
|
let persistence;
|
||||||
if (!global.memoryPersistence && !global.readOnly) {
|
if (!global.memoryPersistence && !global.readOnly) {
|
||||||
persistence = new RESTPersistenceManager(
|
persistence = new RESTPersistenceManager({
|
||||||
{
|
documentUrl: '/c/restful/maps/{id}/document',
|
||||||
documentUrl: '/c/restful/maps/{id}/document',
|
revertUrl: '/c/restful/maps/{id}/history/latest',
|
||||||
revertUrl: '/c/restful/maps/{id}/history/latest',
|
lockUrl: '/c/restful/maps/{id}/lock',
|
||||||
lockUrl: '/c/restful/maps/{id}/lock',
|
timestamp: global.lockTimestamp,
|
||||||
timestamp: global.lockTimestamp,
|
session: global.lockSession,
|
||||||
session: global.lockSession,
|
});
|
||||||
},
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
// @todo: review ...
|
persistence = new LocalStorageManager(`/c/restful/maps/{id}/${global.historyId ? `${global.historyId}/` : ''}${!global.isAuth ? '-pub' : ''}`, true);
|
||||||
// persistenceManager = new LocalStorageManager('c/restful/maps/{id}${hid != null ? '/' : ''}${hid != null ? hid : ''}/document/xml${principal != null ? '' : '-pub'}", true);
|
|
||||||
persistence = new LocalStorageManager('/c/restful/maps/{id}', true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const options = buildOptions({
|
const options = buildOptions({
|
||||||
|
Loading…
Reference in New Issue
Block a user