Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
share
fe-common-library
Commits
0a589e87
Commit
0a589e87
authored
4 years ago
by
sharonlin
Browse files
Options
Download
Email Patches
Plain Diff
feat: [
ANUE-5054
] add CHK of Category for AnueSearch
parent
22d25532
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/utils/__tests__/__snapshots__/anueLink.test.js.snap
src/utils/__tests__/__snapshots__/anueLink.test.js.snap
+2
-2
src/utils/anueLink.js
src/utils/anueLink.js
+1
-1
No files found.
src/utils/__tests__/__snapshots__/anueLink.test.js.snap
View file @
0a589e87
...
...
@@ -2,8 +2,8 @@
exports[`AnueLink snapshot - make sure all links 1`] = `
Object {
"anueSearchAllApiUrl": "https://ess.api.cnyes.com/ess/api/v1/siteSearch/main?category=TW,FUND,US,CC,INDEX,FUTURE,ETF,FX,EOD,C
NS,
HK
S
&limit=5&q=",
"anueSearchAllCategory": "TW,FUND,US,CC,INDEX,FUTURE,ETF,FX,EOD,C
NS,
HK
S
",
"anueSearchAllApiUrl": "https://ess.api.cnyes.com/ess/api/v1/siteSearch/main?category=TW,FUND,US,CC,INDEX,FUTURE,ETF,FX,EOD,CHK&limit=5&q=",
"anueSearchAllCategory": "TW,FUND,US,CC,INDEX,FUTURE,ETF,FX,EOD,CHK",
"archiveStockQLink": "https://money.cnyes.com/archive/StockQ.aspx",
"archiveTWGStock": "https://www.cnyes.com/archive/presh",
"archiveTWStock": "https://www.cnyes.com/archive/twstock",
...
...
This diff is collapsed.
Click to expand it.
src/utils/anueLink.js
View file @
0a589e87
...
...
@@ -44,7 +44,7 @@ export default function AnueLink(env) {
const
hotDriversApiUrl
=
`https://driver.api.
${
apiBaseUrl
}
/driver/api/v1/drivers?order=1y&sort=desc&page=1&size=3`
;
const
hotTradesApiUrl
=
`https://ws.api.
${
apiBaseUrl
}
/ws/api/v1/ga/pageViewHot`
;
// limit the categories for first version
const
anueSearchAllCategory
=
'
TW,FUND,US,CC,INDEX,FUTURE,ETF,FX,EOD,C
NS,
HK
S
'
;
const
anueSearchAllCategory
=
'
TW,FUND,US,CC,INDEX,FUTURE,ETF,FX,EOD,CHK
'
;
const
anueSearchAllApiUrl
=
`https://ess.api.
${
apiBaseUrl
}
/ess/api/v1/siteSearch/main?category=
${
anueSearchAllCategory
}
&limit=5&q=`
;
// .net link only have prod env
...
...
This diff is collapsed.
Click to expand it.
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