Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mynij
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mynij
mynij
Commits
89b1c975
Commit
89b1c975
authored
Oct 04, 2021
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_mynij_search: Add logo to source and also export it in json source file
parent
87ed3225
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1227 additions
and
7 deletions
+1227
-7
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_mynij_field_image_html.html
...m/web_page_module/gadget_erp5_mynij_field_image_html.html
+20
-0
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_mynij_field_image_html.xml
...em/web_page_module/gadget_erp5_mynij_field_image_html.xml
+334
-0
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_mynij_field_image_js.js
...eItem/web_page_module/gadget_erp5_mynij_field_image_js.js
+36
-0
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_mynij_field_image_js.xml
...Item/web_page_module/gadget_erp5_mynij_field_image_js.xml
+330
-0
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_load_source_js.js
...teItem/web_page_module/gadget_erp5_page_load_source_js.js
+1
-0
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_load_source_js.xml
...eItem/web_page_module/gadget_erp5_page_load_source_js.xml
+2
-2
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_mynij_model.js.js
...PathTemplateItem/web_page_module/gadget_mynij_model.js.js
+16
-0
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_mynij_model.js.xml
...athTemplateItem/web_page_module/gadget_mynij_model.js.xml
+2
-2
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_mynij_style.css.css
...thTemplateItem/web_page_module/gadget_mynij_style.css.css
+10
-1
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_mynij_style.css.xml
...thTemplateItem/web_page_module/gadget_mynij_style.css.xml
+2
-2
bt5/erp5_web_mynij_search/SkinTemplateItem/portal_skins/erp5_mynij/MynijSearchCollection_view.xml
...em/portal_skins/erp5_mynij/MynijSearchCollection_view.xml
+2
-0
bt5/erp5_web_mynij_search/SkinTemplateItem/portal_skins/erp5_mynij/MynijSearchCollection_view/my_logo.xml
...l_skins/erp5_mynij/MynijSearchCollection_view/my_logo.xml
+220
-0
bt5/erp5_web_mynij_search/SkinTemplateItem/portal_skins/erp5_mynij/MynijSearchCollection_view/your_logo.xml
...skins/erp5_mynij/MynijSearchCollection_view/your_logo.xml
+246
-0
bt5/erp5_web_mynij_search/SkinTemplateItem/portal_skins/erp5_mynij/action_mynij_search_import_export_index.js.js
.../erp5_mynij/action_mynij_search_import_export_index.js.js
+6
-0
No files found.
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_mynij_field_image_html.html
0 → 100644
View file @
89b1c975
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width"
/>
<title>
ERP5 Imagefield
</title>
<link
rel=
"http://www.renderjs.org/rel/interface"
href=
"interface_erp5_field.html"
>
<link
rel=
"http://www.renderjs.org/rel/interface"
href=
"interface_erp5_form_content_provider.html"
>
<!-- renderjs -->
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<!-- custom script -->
<script
src=
"gadget_erp5_mynij_field_image.js"
type=
"text/javascript"
></script>
</head>
<body>
<div
data-gadget-url=
"gadget_html5_element.html"
data-gadget-scope=
"image"
></div>
</body>
</html>
\ No newline at end of file
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_mynij_field_image_html.xml
0 → 100644
View file @
89b1c975
This diff is collapsed.
Click to expand it.
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_mynij_field_image_js.js
0 → 100644
View file @
89b1c975
/*global window, rJS*/
/*jslint indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
)
{
"
use strict
"
;
rJS
(
window
)
.
setState
({
tag
:
'
img
'
})
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
state_dict
=
{
src
:
options
.
value
.
url
,
alt
:
options
.
description
||
options
.
key
};
return
this
.
changeState
(
state_dict
);
})
.
onStateChange
(
function
()
{
var
gadget
=
this
;
return
this
.
getDeclaredGadget
(
'
image
'
)
.
push
(
function
(
input
)
{
return
input
.
render
(
gadget
.
state
);
});
})
.
declareMethod
(
'
getContent
'
,
function
()
{
// An Image field never modifies a document
return
{};
})
.
declareMethod
(
'
checkValidity
'
,
function
()
{
return
true
;
});
}(
window
,
rJS
));
\ No newline at end of file
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_mynij_field_image_js.xml
0 → 100644
View file @
89b1c975
This diff is collapsed.
Click to expand it.
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_load_source_js.js
View file @
89b1c975
...
@@ -129,6 +129,7 @@
...
@@ -129,6 +129,7 @@
doc
.
links
=
source_list
[
i
].
links
;
doc
.
links
=
source_list
[
i
].
links
;
doc
.
status
=
"
not built
"
;
doc
.
status
=
"
not built
"
;
doc
.
description
=
source_list
[
i
].
description
||
""
;
doc
.
description
=
source_list
[
i
].
description
||
""
;
doc
.
logo
=
source_list
[
i
].
logo
||
""
;
promise_list
.
push
(
gadget
.
state
.
model_gadget
.
createIndexDoc
(
doc
));
promise_list
.
push
(
gadget
.
state
.
model_gadget
.
createIndexDoc
(
doc
));
}
}
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
()
...
...
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_load_source_js.xml
View file @
89b1c975
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
995.
7486.28357.59426
</string>
</value>
<value>
<string>
995.
8525.39594.2952
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1633
001136.24
</float>
<float>
1633
338226.61
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_mynij_model.js.js
View file @
89b1c975
...
@@ -258,6 +258,22 @@
...
@@ -258,6 +258,22 @@
"
links
"
:
{
"
links
"
:
{
"
type
"
:
"
string
"
"
type
"
:
"
string
"
},
},
"
logo
"
:
{
"
type
"
:
"
object
"
,
"
additionalProperties
"
:
false
,
"
properties
"
:
{
"
url
"
:
{
"
type
"
:
"
string
"
},
"
file_name
"
:
{
"
type
"
:
"
string
"
}
},
"
required
"
:
[
"
file_name
"
,
"
url
"
]
},
"
infohash
"
:
{
"
infohash
"
:
{
"
type
"
:
"
string
"
"
type
"
:
"
string
"
},
},
...
...
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_mynij_model.js.xml
View file @
89b1c975
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
995.
7487.50566.25651
</string>
</value>
<value>
<string>
995.
15678.22615.13038
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
163
2999521.15
</float>
<float>
163
3344018.22
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_mynij_style.css.css
View file @
89b1c975
...
@@ -42,6 +42,15 @@ i.info {
...
@@ -42,6 +42,15 @@ i.info {
font-size
:
.9em
;
font-size
:
.9em
;
}
}
.logo-preview
img
{
max-width
:
200px
;
}
.no-label
label
{
color
:
transparent
!important
;
font-size
:
1px
;
}
div
[
data-gadget-scope
=
'header'
]
.ui-header
.ui-controlgroup-controls
button
[
data-i18n
=
"Filter"
]
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
.ui-controlgroup-controls
button
[
data-i18n
=
"Filter"
]
{
display
:
none
;
display
:
none
;
}
}
...
@@ -404,7 +413,7 @@ div[data-gadget-scope='panel'] .ui-content {
...
@@ -404,7 +413,7 @@ div[data-gadget-scope='panel'] .ui-content {
.building
{
.building
{
margin
:
10px
;
margin
:
10px
;
}
}
.building
:after
{
.building
:after
,
.logo-preview
.ui-field-contain
:after
{
content
:
""
;
content
:
""
;
clear
:
both
;
clear
:
both
;
}
}
...
...
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_mynij_style.css.xml
View file @
89b1c975
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
4.45131.22698.21435
</string>
</value>
<value>
<string>
99
5.15830.49246.35396
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
163
1265938.19
</float>
<float>
163
3353438.17
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_mynij_search/SkinTemplateItem/portal_skins/erp5_mynij/MynijSearchCollection_view.xml
View file @
89b1c975
...
@@ -79,6 +79,8 @@
...
@@ -79,6 +79,8 @@
<string>
my_title
</string>
<string>
my_title
</string>
<string>
my_description
</string>
<string>
my_description
</string>
<string>
my_links
</string>
<string>
my_links
</string>
<string>
my_logo
</string>
<string>
your_logo
</string>
<string>
my_seed
</string>
<string>
my_seed
</string>
<string>
my_magnet_uri
</string>
<string>
my_magnet_uri
</string>
<string>
my_status
</string>
<string>
my_status
</string>
...
...
bt5/erp5_web_mynij_search/SkinTemplateItem/portal_skins/erp5_mynij/MynijSearchCollection_view/my_logo.xml
0 → 100644
View file @
89b1c975
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"FileField"
module=
"Products.Formulator.StandardFields"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_logo
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
<item>
<key>
<string>
required_not_found
</string>
</key>
<value>
<string>
Input is required but no input given.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_maxwidth
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_width
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
extra
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
input_type
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
required
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_maxwidth
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_width
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
extra
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
input_type
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
required
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_maxwidth
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_width
</string>
</key>
<value>
<int>
20
</int>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
extra
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
input_type
</string>
</key>
<value>
<string>
text
</string>
</value>
</item>
<item>
<key>
<string>
required
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Logo
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_mynij_search/SkinTemplateItem/portal_skins/erp5_mynij/MynijSearchCollection_view/your_logo.xml
0 → 100644
View file @
89b1c975
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"GadgetField"
module=
"Products.ERP5Form.GadgetField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_logo
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
<item>
<key>
<string>
no_validator
</string>
</key>
<value>
<string>
Does not support this operation.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
data_url
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
extra
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
gadget_url
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
js_sandbox
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
renderjs_extra
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
validator_field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
validator_form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
data_url
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
extra
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
gadget_url
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
js_sandbox
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
renderjs_extra
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
validator_field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
validator_form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string>
logo-preview no-label
</string>
</value>
</item>
<item>
<key>
<string>
data_url
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Logo Image
</string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
extra
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
gadget_url
</string>
</key>
<value>
<string>
gadget_erp5_mynij_field_image.html
</string>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
js_sandbox
</string>
</key>
<value>
<string>
image_preview
</string>
</value>
</item>
<item>
<key>
<string>
renderjs_extra
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Logo Preview
</string>
</value>
</item>
<item>
<key>
<string>
validator_field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
validator_form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_mynij_search/SkinTemplateItem/portal_skins/erp5_mynij/action_mynij_search_import_export_index.js.js
View file @
89b1c975
...
@@ -198,6 +198,8 @@
...
@@ -198,6 +198,8 @@
index_dict
=
JSON
.
parse
(
data
);
index_dict
=
JSON
.
parse
(
data
);
doc
.
title
=
index_dict
.
name
;
doc
.
title
=
index_dict
.
name
;
doc
.
links
=
index_dict
.
links
;
doc
.
links
=
index_dict
.
links
;
doc
.
description
=
index_dict
.
description
||
""
;
doc
.
logo
=
index_dict
.
logo
;
doc
.
status
=
"
built
"
;
doc
.
status
=
"
built
"
;
index_id
=
"
index-
"
+
doc
.
title
;
index_id
=
"
index-
"
+
doc
.
title
;
return
gadget
.
state
.
model_gadget
.
pushIndexBlob
(
return
gadget
.
state
.
model_gadget
.
pushIndexBlob
(
...
@@ -214,6 +216,8 @@
...
@@ -214,6 +216,8 @@
index_dict
=
JSON
.
parse
(
evt
.
target
.
result
);
index_dict
=
JSON
.
parse
(
evt
.
target
.
result
);
doc
.
title
=
index_dict
.
name
;
doc
.
title
=
index_dict
.
name
;
doc
.
links
=
index_dict
.
links
;
doc
.
links
=
index_dict
.
links
;
doc
.
description
=
index_dict
.
description
||
""
;
doc
.
logo
=
index_dict
.
logo
;
doc
.
status
=
"
built
"
;
doc
.
status
=
"
built
"
;
index_id
=
"
index-
"
+
doc
.
title
;
index_id
=
"
index-
"
+
doc
.
title
;
return
gadget
.
state
.
model_gadget
.
pushIndexBlob
(
return
gadget
.
state
.
model_gadget
.
pushIndexBlob
(
...
@@ -299,6 +303,7 @@
...
@@ -299,6 +303,7 @@
file_blob
=
new
Blob
([
JSON
.
stringify
([{
file_blob
=
new
Blob
([
JSON
.
stringify
([{
title
:
index
.
title
,
title
:
index
.
title
,
description
:
index
.
description
||
""
,
description
:
index
.
description
||
""
,
logo
:
index
.
logo
,
links
:
index
.
links
,
links
:
index
.
links
,
infohash
:
info_dict
.
infohash
,
infohash
:
info_dict
.
infohash
,
namehash
:
info_dict
.
namehash
}])],
{
type
:
"
application/json
"
});
namehash
:
info_dict
.
namehash
}])],
{
type
:
"
application/json
"
});
...
@@ -325,6 +330,7 @@
...
@@ -325,6 +330,7 @@
title
:
results
.
data
.
rows
[
i
].
value
.
title
,
title
:
results
.
data
.
rows
[
i
].
value
.
title
,
links
:
results
.
data
.
rows
[
i
].
value
.
links
,
links
:
results
.
data
.
rows
[
i
].
value
.
links
,
description
:
results
.
data
.
rows
[
i
].
value
.
description
||
""
,
description
:
results
.
data
.
rows
[
i
].
value
.
description
||
""
,
logo
:
results
.
data
.
rows
[
i
].
value
.
logo
,
infohash
:
info_dict
.
infohash
,
infohash
:
info_dict
.
infohash
,
namehash
:
info_dict
.
namehash
namehash
:
info_dict
.
namehash
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment