Commit cbc62f87 authored by Vincent Bechu's avatar Vincent Bechu

[erp5_web_editor_svgedit] Fix manifest

parent 4a6de9e8
// DO NOT EDIT THIS FILE! // DO NOT EDIT THIS FILE!
// THIS FILE IS JUST A SAMPLE; TO APPLY, YOU MUST // THIS FILE IS JUST A SAMPLE; TO APPLY, YOU MUST
// CREATE A NEW FILE config.js AND ADD CONTENTS // CREATE A NEW FILE config.js AND ADD CONTENTS
// SUCH AS SHOWN BELOW INTO THAT FILE. // SUCH AS SHOWN BELOW INTO THAT FILE.
/*globals svgEditor*/ /*globals svgEditor*/
/* /*
The config.js file is intended for the setting of configuration or The config.js file is intended for the setting of configuration or
preferences which must run early on; if this is not needed, it is preferences which must run early on; if this is not needed, it is
recommended that you create an extension instead (for greater recommended that you create an extension instead (for greater
reusability and modularity). reusability and modularity).
*/ */
// CONFIG AND EXTENSION SETTING // CONFIG AND EXTENSION SETTING
/* /*
See defaultConfig and defaultExtensions in svg-editor.js for a list See defaultConfig and defaultExtensions in svg-editor.js for a list
of possible configuration settings. of possible configuration settings.
See svg-editor.js for documentation on using setConfig(). See svg-editor.js for documentation on using setConfig().
*/ */
// URL OVERRIDE CONFIG // URL OVERRIDE CONFIG
svgEditor.setConfig({ svgEditor.setConfig({
/** /**
To override the ability for URLs to set URL-based SVG content, To override the ability for URLs to set URL-based SVG content,
uncomment the following: uncomment the following:
*/ */
// preventURLContentLoading: true, // preventURLContentLoading: true,
/** /**
To override the ability for URLs to set other configuration (including To override the ability for URLs to set other configuration (including
extension config), uncomment the following: extension config), uncomment the following:
*/ */
// preventAllURLConfig: true, // preventAllURLConfig: true,
/** /**
To override the ability for URLs to set their own extensions, To override the ability for URLs to set their own extensions,
uncomment the following (note that if setConfig() is used in uncomment the following (note that if setConfig() is used in
extension code, it will still be additive to extensions, extension code, it will still be additive to extensions,
however): however):
*/ */
// lockExtensions: true, // lockExtensions: true,
}); });
svgEditor.setConfig({ svgEditor.setConfig({
/* /*
Provide default values here which differ from that of the editor but Provide default values here which differ from that of the editor but
which the URL can override which the URL can override
*/ */
}, {allowInitialUserOverride: true}); }, {allowInitialUserOverride: true});
// EXTENSION CONFIG // EXTENSION CONFIG
svgEditor.setConfig({ svgEditor.setConfig({
extensions: [ extensions: [
// 'ext-overview_window.js', 'ext-markers.js', 'ext-connector.js', 'ext-eyedropper.js', 'ext-shapes.js', 'ext-imagelib.js', 'ext-grid.js', 'ext-polygon.js', 'ext-star.js', 'ext-panning.js', 'ext-storage.js' 'ext-overview_window.js', 'ext-markers.js', 'ext-connector.js', 'ext-eyedropper.js', 'ext-shapes.js', 'ext-imagelib.js', 'ext-grid.js', 'ext-polygon.js', 'ext-star.js', 'ext-panning.js'
] ]
// , noDefaultExtensions: false, // noDefaultExtensions can only be meaningfully used in config.js or in the URL // , noDefaultExtensions: false, // noDefaultExtensions can only be meaningfully used in config.js or in the URL
}); });
// OTHER CONFIG // OTHER CONFIG
svgEditor.setConfig({ svgEditor.setConfig({
// canvasName: 'default', // canvasName: 'default',
// canvas_expansion: 3, // canvas_expansion: 3,
// initFill: { // initFill: {
// color: 'FF0000', // solid red // color: 'FF0000', // solid red
// opacity: 1 // opacity: 1
// }, // },
// initStroke: { // initStroke: {
// width: 5, // width: 5,
// color: '000000', // solid black // color: '000000', // solid black
// opacity: 1 // opacity: 1
// }, // },
// initOpacity: 1, // initOpacity: 1,
// colorPickerCSS: null, // colorPickerCSS: null,
// initTool: 'select', // initTool: 'select',
// exportWindowType: 'new', // 'same' // exportWindowType: 'new', // 'same'
// wireframe: false, // wireframe: false,
// showlayers: false, // showlayers: false,
// no_save_warning: false, no_save_warning: true,
// PATH CONFIGURATION // PATH CONFIGURATION
// imgPath: 'images/', // imgPath: 'images/',
// langPath: 'locale/', // langPath: 'locale/',
// extPath: 'extensions/', // extPath: 'extensions/',
// jGraduatePath: 'jgraduate/images/', // jGraduatePath: 'jgraduate/images/',
/* /*
Uncomment the following to allow at least same domain (embedded) access, Uncomment the following to allow at least same domain (embedded) access,
including file:// access. including file:// access.
Setting as `['*']` would allow any domain to access but would be unsafe to Setting as `['*']` would allow any domain to access but would be unsafe to
data privacy and integrity. data privacy and integrity.
*/ */
// allowedOrigins: [window.location.origin || 'null'], // May be 'null' (as a string) when used as a file:// URL // allowedOrigins: [window.location.origin || 'null'], // May be 'null' (as a string) when used as a file:// URL
// DOCUMENT PROPERTIES // DOCUMENT PROPERTIES
// dimensions: [640, 480], // dimensions: [640, 480],
// EDITOR OPTIONS // EDITOR OPTIONS
// gridSnapping: false, // gridSnapping: false,
// gridColor: '#000', // gridColor: '#000',
// baseUnit: 'px', // baseUnit: 'px',
// snappingStep: 10, // snappingStep: 10,
// showRulers: true, // showRulers: true,
// EXTENSION-RELATED (GRID) // EXTENSION-RELATED (GRID)
// showGrid: false, // Set by ext-grid.js // showGrid: false, // Set by ext-grid.js
// EXTENSION-RELATED (STORAGE) // EXTENSION-RELATED (STORAGE)
// noStorageOnLoad: false, // Some interaction with ext-storage.js; prevent even the loading of previously saved local storage noStorageOnLoad: true, // Some interaction with ext-storage.js; prevent even the loading of previously saved local storage
// forceStorage: false, // Some interaction with ext-storage.js; strongly discouraged from modification as it bypasses user privacy by preventing them from choosing whether to keep local storage or not forceStorage: false // Some interaction with ext-storage.js; strongly discouraged from modification as it bypasses user privacy by preventing them from choosing whether to keep local storage or not
// emptyStorageOnDecline: true, // Used by ext-storage.js; empty any prior storage if the user declines to store // emptyStorageOnDecline: true, // Used by ext-storage.js; empty any prior storage if the user declines to store
}); });
// PREF CHANGES // PREF CHANGES
/** /**
setConfig() can also be used to set preferences in addition to setConfig() can also be used to set preferences in addition to
configuration (see defaultPrefs in svg-editor.js for a list of configuration (see defaultPrefs in svg-editor.js for a list of
possible settings), but at least if you are using ext-storage.js possible settings), but at least if you are using ext-storage.js
to store preferences, it will probably be better to let your to store preferences, it will probably be better to let your
users control these. users control these.
As with configuration, one may use allowInitialUserOverride, but As with configuration, one may use allowInitialUserOverride, but
in the case of preferences, any previously stored preferences in the case of preferences, any previously stored preferences
will also thereby be enabled to override this setting (and at a will also thereby be enabled to override this setting (and at a
higher priority than any URL preference setting overrides). higher priority than any URL preference setting overrides).
Failing to use allowInitialUserOverride will ensure preferences Failing to use allowInitialUserOverride will ensure preferences
are hard-coded here regardless of URL or prior user storage setting. are hard-coded here regardless of URL or prior user storage setting.
*/ */
svgEditor.setConfig( svgEditor.setConfig(
{ {
// lang: '', // Set dynamically within locale.js if not previously set // lang: '', // Set dynamically within locale.js if not previously set
// iconsize: '', // Will default to 's' if the window height is smaller than the minimum height and 'm' otherwise // iconsize: '', // Will default to 's' if the window height is smaller than the minimum height and 'm' otherwise
/** /**
* When showing the preferences dialog, svg-editor.js currently relies * When showing the preferences dialog, svg-editor.js currently relies
* on curPrefs instead of $.pref, so allowing an override for bkgd_color * on curPrefs instead of $.pref, so allowing an override for bkgd_color
* means that this value won't have priority over block auto-detection as * means that this value won't have priority over block auto-detection as
* far as determining which color shows initially in the preferences * far as determining which color shows initially in the preferences
* dialog (though it can be changed and saved). * dialog (though it can be changed and saved).
*/ */
// bkgd_color: '#FFF', // bkgd_color: '#FFF',
// bkgd_url: '', // bkgd_url: '',
// img_save: 'embed', // img_save: 'embed',
// Only shows in UI as far as alert notices // Only shows in UI as far as alert notices
// save_notice_done: false, // save_notice_done: false,
// export_notice_done: false // export_notice_done: false
} }
); );
svgEditor.setConfig( svgEditor.setConfig(
{ {
// Indicate pref settings here if you wish to allow user storage or URL settings // Indicate pref settings here if you wish to allow user storage or URL settings
// to be able to override your default preferences (unless other config options // to be able to override your default preferences (unless other config options
// have already explicitly prevented one or the other) // have already explicitly prevented one or the other)
}, },
{allowInitialUserOverride: true} {allowInitialUserOverride: true}
); );
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
<value> <string>config-sample.js</string> </value> <value> <string>config.js</string> </value>
</item> </item>
<item> <item>
<key> <string>content_type</string> </key> <key> <string>content_type</string> </key>
......
CACHE MANIFEST CACHE MANIFEST
svg-editor.html # generated on Fri, 09 Jun 2016 11:45:33 +0000
images/logo.png # XXX + fonts
jgraduate/css/jPicker.css # images/ajax-loader.gif
CACHE:
jgraduate/jquery.jgraduate.min.js
jgraduate/LICENSE
jgraduate/images/mappoint.gif
jgraduate/images/preview-opacity.png
jgraduate/images/NoColor.png
jgraduate/images/Maps.png
jgraduate/images/bar-opacity.png
jgraduate/images/Bars.png
jgraduate/images/map-opacity.png
jgraduate/images/mappoint_c.png
jgraduate/images/rangearrows2.gif
jgraduate/images/AlphaBar.png
jgraduate/images/picker.gif
jgraduate/images/mappoint_f.png
jgraduate/images/rangearrows.gif
jgraduate/css/jgraduate.css jgraduate/css/jgraduate.css
svg-editor.css jgraduate/css/jPicker.css
spinbtn/JQuerySpinBtn.css jgraduate/README
jquery.js
config.js
custom.css
js-hotkeys/jquery.hotkeys.min.js
jquery-ui/jquery-ui-1.8.17.custom.min.js
jgraduate/jpicker.min.js jgraduate/jpicker.min.js
jgraduate/jquery.jgraduate.min.js jgraduate/jpicker.js
jgraduate/jquery.jgraduate.js
sanitize.js
svg-editor.html
units.js
coords.js
embedapi.html
jquery-ui/jquery-ui-1.8.custom.min.js
jquery-ui/jquery-ui-1.8.17.custom.min.js
pathseg.js
jquerybbq/jquery.bbq.min.js
spinbtn/JQuerySpinBtn.css
spinbtn/JQuerySpinBtn.js spinbtn/JQuerySpinBtn.js
spinbtn/spinbtn_updn.png
spinbtn/JQuerySpinBtn.min.js
extensions/grid-icon.xml
extensions/ext-server_moinsave.js
extensions/ext-overview_window.js
extensions/polygon-icons.svg
extensions/ext-helloworld.js
extensions/eyedropper-icon.xml
extensions/ext-markers.js
extensions/ext-shapes.js
extensions/foreignobject-icons.xml
extensions/imagelib/index.html
extensions/imagelib/smiley.svg
extensions/fileopen.php
extensions/webappfind-icon.svg
extensions/ext-star.js
extensions/closepath_icons.svg
extensions/star-icons.svg
extensions/eyedropper.png
extensions/savefile.php
extensions/markers-icons.xml
extensions/helloworld-icon.xml
extensions/ext-arrows.js
extensions/mathjax-icons.xml
extensions/ext-connector.js
extensions/ext-php_savefile.js
extensions/ext-storage.js
extensions/ext-closepath.js
extensions/ext-foreignobject.js
extensions/ext-shapes.xml
extensions/shapelib/arrow.json
extensions/shapelib/raphael_1.json
extensions/shapelib/raphael.txt
extensions/shapelib/electronics.json
extensions/shapelib/raphael_2.json
extensions/shapelib/game.json
extensions/shapelib/misc.json
extensions/shapelib/animal.json
extensions/shapelib/dialog_balloon.json
extensions/shapelib/math.json
extensions/shapelib/music.json
extensions/shapelib/flowchart.json
extensions/shapelib/symbol.json
extensions/shapelib/object.json
extensions/ext-imagelib.js
extensions/ext-panning.xml
extensions/ext-imagelib.xml
extensions/ext-grid.js
extensions/ext-panning.js
extensions/filesave.php
extensions/ext-mathjax.js
extensions/ext-server_opensave.js
extensions/allowedMimeTypes.php
extensions/ext-polygon.js
extensions/ext-eyedropper.js
extensions/ext-xdomain-messaging.js
extensions/ext-webappfind.js
touch.js
svgcanvas.js svgcanvas.js
svg-editor.js math.js
images/align-bottom.png contextmenu.js
images/align-center.png images/text.svg
images/align-left.png images/move_bottom.png
images/wave.png
images/square.png
images/align-middle.png images/align-middle.png
images/align-right.png
images/align-top.png
images/bold.png
images/cancel.png
images/circle.png
images/clear.png
images/clone.png
images/copy.png images/copy.png
images/cut.png
images/delete.png
images/document-properties.png
images/dropdown.gif
images/ellipse.png
images/eye.png
images/flyouth.png
images/flyup.gif
images/freehand-circle.png images/freehand-circle.png
images/select_node.png
images/align-center.png
images/align-middle.svg
images/source.png
images/svg_edit_icons.svgz
images/align-bottom.svg
images/node_clone.png
images/link_controls.png
images/align-left.svg
images/ellipse.png
images/align-left.png
images/move_top.png
images/view-refresh.png
images/freehand-square.png images/freehand-square.png
images/sep.png
images/to_path.png
images/go-down.png images/go-down.png
images/polygon.png
images/save.png
images/delete.png
images/align-right.svg
images/go-up.png images/go-up.png
images/select.png
images/fhpath.png
images/image.png images/image.png
images/italic.png images/reorient.png
images/line.png
images/logo.png images/logo.png
images/logo.svg images/redo.png
images/move_bottom.png images/cancel.png
images/move_top.png
images/none.png
images/open.png images/open.png
images/paste.png images/document-properties.png
images/flyup.gif
images/node_delete.png
images/bold.png
images/clone.png
images/align-top.svg
images/zoom.png
images/align-right.png
images/italic.png
images/dropdown.gif
images/path.png images/path.png
images/polygon.png images/rotate.png
images/README.txt
images/svg_edit_icons.svg
images/logo.svg
images/undo.png
images/shape_ungroup.png
images/align-bottom.png
images/flyouth.png
images/clear.png
images/conn.svg
images/rect.png images/rect.png
images/redo.png
images/save.png
images/select.png
images/sep.png
images/shape_group_elements.png images/shape_group_elements.png
images/shape_ungroup.png images/circle.png
images/source.png images/polygon.svg
images/square.png images/eye.png
images/align-center.svg
images/align-top.png
images/spinbtn_updn_big.png
images/wireframe.png
images/text.png images/text.png
images/undo.png images/cut.png
images/view-refresh.png images/none.png
images/wave.png images/line.png
images/zoom.png images/paste.png
locale/locale.js browser-not-supported.html
locale/lang.af.js jspdf/jspdf.min.js
locale/lang.ar.js jspdf/underscore-min.js
locale/lang.az.js jspdf/jspdf.plugin.svgToPdf.js
locale/lang.be.js recalculate.js
locale/lang.bg.js svg-editor.js
svg-editor.manifest
history.js
contextmenu/jquery.contextMenu.js
browser.js
historyrecording.js
svgtransformlist.js
select.js
locale/lang.lv.js
locale/lang.he.js
locale/lang.ca.js locale/lang.ca.js
locale/lang.cs.js locale/lang.sr.js
locale/lang.cy.js locale/lang.no.js
locale/lang.da.js locale/lang.ja.js
locale/lang.de.js
locale/lang.el.js
locale/lang.en.js
locale/lang.es.js locale/lang.es.js
locale/lang.et.js
locale/lang.fa.js
locale/lang.fi.js
locale/lang.fr.js
locale/lang.ga.js locale/lang.ga.js
locale/lang.gl.js locale/lang.sl.js
locale/lang.hi.js locale/lang.el.js
locale/lang.hr.js
locale/lang.hu.js locale/lang.hu.js
locale/lang.hy.js locale/lang.en.js
locale/lang.id.js locale/lang.pt-PT.js
locale/lang.is.js locale/lang.de.js
locale/lang.it.js locale/lang.fr.js
locale/lang.iw.js locale/lang.da.js
locale/lang.ja.js locale/lang.cy.js
locale/lang.bg.js
locale/lang.ko.js locale/lang.ko.js
locale/lang.lt.js locale/lang.et.js
locale/lang.lv.js locale/lang.fy.js
locale/lang.mk.js locale/lang.zh-HK.js
locale/lang.ms.js locale/lang.af.js
locale/lang.uk.js
locale/lang.zh-TW.js
locale/lang.pt-BR.js
locale/lang.is.js
locale/lang.hr.js
locale/lang.mt.js locale/lang.mt.js
locale/lang.nl.js locale/lang.zh-CN.js
locale/lang.no.js
locale/lang.pl.js locale/lang.pl.js
locale/lang.pt-PT.js
locale/lang.ro.js
locale/lang.ru.js locale/lang.ru.js
locale/lang.sk.js locale/lang.fi.js
locale/lang.sl.js locale/lang.lt.js
locale/lang.sq.js locale/lang.hy.js
locale/lang.sr.js
locale/lang.sv.js locale/lang.sv.js
locale/lang.sw.js locale/lang.nl.js
locale/lang.hi.js
locale/README.txt
locale/lang.test.js
locale/lang.be.js
locale/lang.it.js
locale/lang.th.js locale/lang.th.js
locale/lang.tl.js locale/lang.cs.js
locale/lang.gl.js
locale/lang.fa.js
locale/locale.js
locale/lang.ro.js
locale/lang.tr.js locale/lang.tr.js
locale/lang.uk.js locale/lang.mk.js
locale/lang.vi.js locale/lang.vi.js
locale/lang.ms.js
locale/lang.sq.js
locale/lang.tl.js
locale/lang.sw.js
locale/lang.yi.js locale/lang.yi.js
locale/lang.zh-CN.js locale/lang.sk.js
locale/lang.zh-TW.js locale/lang.ar.js
locale/lang.zh.js locale/lang.id.js
locale/lang.az.js
# Dynamic loads js-hotkeys/jquery.hotkeys.min.js
canvg/canvg.js js-hotkeys/README.md
svgicons/jquery.svgicons.js
embedapi.js
embedapi-dom.js
jquery.js
draw.js
jquery-svg.js
layer.js
svgutils.js
canvg/rgbcolor.js canvg/rgbcolor.js
jspdf/underscore-min.js canvg/canvg.js
jspdf/jspdf.js path.js
jspdf/jspdf.plugin.svgToPdf.js svg-editor.css
svgedit.js
# Extensions (todo: add other dependency files) svgedit.gadget.html
extensions/ext-arrows.js svgedit.gadget.js
extensions/ext-closepath.js config.js
extensions/ext-connector.js
extensions/ext-eyedropper.js
extensions/ext-foreignobject.js
extensions/ext-grid.js
extensions/ext-helloworld.js
extensions/ext-imagelib.js
extensions/ext-markers.js
extensions/ext-mathjax.js
extensions/ext-overview_window.js
extensions/ext-panning.js
extensions/ext-php_savefile.js
extensions/ext-polygon.js
extensions/ext-server_moinsave.js
extensions/ext-server_opensave.js
extensions/ext-shapes.js
extensions/ext-star.js
extensions/ext-storage.js
extensions/ext-webappfind.js
extensions/ext-xdomain-messaging.js
NETWORK:
*
\ No newline at end of file
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
<link rel="stylesheet" href="jgraduate/css/jgraduate.css" type="text/css"/> <link rel="stylesheet" href="jgraduate/css/jgraduate.css" type="text/css"/>
<link rel="stylesheet" href="svg-editor.css" type="text/css"/> <link rel="stylesheet" href="svg-editor.css" type="text/css"/>
<link rel="stylesheet" href="spinbtn/JQuerySpinBtn.css" type="text/css"/> <link rel="stylesheet" href="spinbtn/JQuerySpinBtn.css" type="text/css"/>
<link rel="stylesheet" href="custom.css" type="text/css"/>
<!--{if jquery_release}> <!--{if jquery_release}>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!{else}--> <!{else}-->
......
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
}) })
.declareMethod('render', function (options) { .declareMethod('render', function (options) {
return this.changeState({ return this.changeState({
'value': options.value 'value': options.value,
'key': options.key
}); });
}) })
.onStateChange(function (modification_state) { .onStateChange(function (modification_state) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment