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
a0e01a6b
Commit
a0e01a6b
authored
Sep 23, 2021
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_mynij_search: Use searx and store url from Config file
parent
961d8235
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
21 deletions
+22
-21
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_search_js.js
...eItem/web_page_module/gadget_erp5_page_mynij_search_js.js
+12
-15
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_search_js.xml
...Item/web_page_module/gadget_erp5_page_mynij_search_js.xml
+2
-2
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/mynij-config_json.js
...rch/PathTemplateItem/web_page_module/mynij-config_json.js
+6
-2
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/mynij-config_json.xml
...ch/PathTemplateItem/web_page_module/mynij-config_json.xml
+2
-2
No files found.
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_search_js.js
View file @
a0e01a6b
...
...
@@ -23,24 +23,24 @@
return
gadget
.
getDeclaredGadget
(
"
model
"
)
.
push
(
function
(
model
)
{
model_gadget
=
model
;
})
.
push
(
function
()
{
return
gadget
.
getDeclaredGadget
(
"
result
"
);
})
.
push
(
function
(
result
)
{
result_gadget
=
result
;
return
model_gadget
.
getConfig
()
.
push
(
function
(
config
)
{
if
(
!
config
)
return
[
"
https://proxy1.mynij.com/proxy
"
];
return
config
.
proxies
.
urls
;
});
return
model_gadget
.
getConfig
();
})
.
push
(
function
(
result
)
{
.
push
(
function
(
config
)
{
var
proxies
=
[
"
https://proxy1.mynij.com/proxy
"
],
searx
=
"
https://searx.mynij.com/search
"
,
store
=
"
https://store.mynij.com
"
;
if
(
!
config
)
config
=
{
proxies
:
[],
searx
:
{},
store
:
{}};
return
gadget
.
changeState
({
model_gadget
:
model_gadget
,
result_gadget
:
result_gadget
,
proxies
:
result
proxies
:
config
.
proxies
.
urls
||
proxies
,
searx
:
config
.
searx
.
url
||
searx
,
store
:
config
.
store
.
url
||
store
});
});
})
...
...
@@ -220,7 +220,7 @@
proxy
=
gadget
.
state
.
proxies
[
rng
],
query
=
encodeURI
(
key
);
return
jIO
.
util
.
ajax
({
url
:
proxy
+
"
?url=
https%3A%2F%2Fsoftinst141674.host.vifib.net%2Fsearch
%3Fq%3D
"
+
url
:
proxy
+
"
?url=
"
+
gadget
.
state
.
searx
+
"
%3Fq%3D
"
+
query
+
"
%26category_general%3Don%26theme%3Doscar
"
});
})
...
...
@@ -261,10 +261,7 @@
select
.
onchange
=
function
(
e
)
{
e
.
preventDefault
();
if
(
e
.
target
.
value
===
"
ADD
"
)
{
//return gadget.redirect({"command": "display", "options": {
// page: "ojs_local_controller"
//}});
window
.
location
.
href
=
"
https://store.mynij.com
"
;
window
.
location
.
href
=
gadget
.
state
.
store
;
}
};
})
...
...
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_search_js.xml
View file @
a0e01a6b
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
994.6
1392.62575.19643
</string>
</value>
<value>
<string>
994.6
3871.12230.4334
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
1632
241192.69
</float>
<float>
1632
390220.27
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/mynij-config_json.js
View file @
a0e01a6b
...
...
@@ -11,10 +11,14 @@
},
"
proxies
"
:
{
"
urls
"
:
[
"
https://proxy1.mynij.com/proxy
"
"
https://proxy1.mynij.com/proxy
"
,
"
https://proxy2.mynij.com/proxy
"
]
},
"
sear
ch
x
"
:
{
"
searx
"
:
{
"
url
"
:
"
https://searx.mynij.com/search
"
},
"
store
"
:
{
"
url
"
:
"
https://store.mynij.com
"
}
}
\ No newline at end of file
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/mynij-config_json.xml
View file @
a0e01a6b
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
994.
39448.18769.55569
</string>
</value>
<value>
<string>
994.
63878.38139.10990
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
163
1198847.97
</float>
<float>
163
2390675.99
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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