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
770b1c0c
Commit
770b1c0c
authored
Apr 15, 2021
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_mynij_search: Remove cors-anywhere proxy which is only for testing
parent
50535538
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
7 deletions
+17
-7
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
+10
-3
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/gadget_mynij_result.js.js
...athTemplateItem/web_page_module/gadget_mynij_result.js.js
+3
-0
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_mynij_result.js.xml
...thTemplateItem/web_page_module/gadget_mynij_result.js.xml
+2
-2
No files found.
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_search_js.js
View file @
770b1c0c
/*jslint nomen: true, indent: 2, maxerr: 3, maxlen: 80*/
/*global window, RSVP, rJS, document*/
(
function
(
window
,
document
,
rJS
,
RSVP
)
{
var
gadget
;
var
gadget
,
proxies
=
[
"
https://softinst116265.host.vifib.net/erp5/ERP5Site_getHTTPResource
"
,
"
https://softinst116446.host.vifib.net/erp5/ERP5Site_getHTTPResource
"
];
rJS
(
window
)
.
setState
({
model_gadget
:
null
,
...
...
@@ -175,9 +179,12 @@
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
var
rng
=
Math
.
floor
(
Math
.
random
()
*
Math
.
floor
(
proxies
.
length
)),
proxy
=
proxies
[
rng
],
query
=
encodeURI
(
key
);
return
jIO
.
util
.
ajax
({
url
:
"
https://cors-anywhere.herokuapp.com/search.disroot.org/?q=
"
+
key
+
"
&category_general=on&theme=
oscar
"
url
:
proxy
+
"
?url=https%3A%2F%2Fsoftinst141674.host.vifib.net%2Fsearch%3Fq%3D
"
+
query
+
"
%26category_general%3Don%26theme%3D
oscar
"
});
})
.
push
(
undefined
,
function
()
{
...
...
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_search_js.xml
View file @
770b1c0c
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
88.5449.4324.54169
</string>
</value>
<value>
<string>
9
90.12602.3691.30958
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
16
05886140.6
5
</float>
<float>
16
14017833.9
5
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_mynij_result.js.js
View file @
770b1c0c
...
...
@@ -48,6 +48,9 @@
list
=
document
.
getElementById
(
"
mynij-results
"
);
list_item
=
document
.
createElement
(
"
li
"
);
list_item
.
id
=
Math
.
random
().
toString
(
36
)
+
'
-
'
+
Date
.
now
();
if
(
item
.
link
.
startsWith
(
"
?url=
"
))
{
item
.
link
=
item
.
link
.
substring
(
5
);
}
return
gadget
.
cut_link
(
item
.
link
)
.
push
(
function
(
cut_link
)
{
...
...
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_mynij_result.js.xml
View file @
770b1c0c
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
89.10151.37063.11315
</string>
</value>
<value>
<string>
9
90.3487.35664.34628
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
1613
470052.64
</float>
<float>
1613
572333.62
</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