Skip to content

Commit 751d368

Browse files
committed
updated code search
1 parent 570f7a5 commit 751d368

File tree

67 files changed

+88
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+88
-67
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>Redirect to GitHub</title>
55
<meta charset="UTF-8" />
6-
<meta http-equiv="refresh" content="3; URL=https://softwareobservatorium.github.io/web" />
6+
<meta http-equiv="refresh" content="1; URL=https://softwareobservatorium.github.io/web" />
77
</head>
88
<body>
99
<p>This page has been moved. If you are not automatically redirected, click <a href="https://softwareobservatorium.github.io/web">here</a>.</p>

lasso/src/pages/lasso/search.tsx

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { CodeSnippetCard } from '@site/src/components/CodeSnippet/CodeSnippetCar
2222
import Head from '@docusaurus/Head';
2323
import Layout from '@theme/Layout';
2424
import { TDSExamples } from '@site/src/components/HubFeatures/HubFeatures';
25+
import AuthService from '@site/src/services/AuthService';
2526

2627
const RESULTS_PER_PAGE = 10;
2728

@@ -81,7 +82,7 @@ const CodeSearchPage: React.FC = () => {
8182
return jsonArray;
8283
};
8384

84-
const handleSearch = () => {
85+
const handleSearch = async () => {
8586
// do a textual search
8687
let textualSearch = new TextualSearch()
8788
textualSearch.lql = query
@@ -107,7 +108,27 @@ const CodeSearchPage: React.FC = () => {
107108

108109
console.log(JSON.stringify(request))
109110

110-
LassoService.queryImplementationsForDataSource(lassoDataSource, request).then(
111+
await AuthService.loginDefault().then(
112+
(response) => {
113+
// login successful
114+
console.log("Successfully logged in")
115+
116+
117+
},
118+
(error) => {
119+
const resMessage =
120+
(error.response &&
121+
error.response.data &&
122+
error.response.data.message) ||
123+
error.message ||
124+
error.toString();
125+
126+
// FIXME
127+
console.log("Login attempt failed " + error)
128+
}
129+
)
130+
131+
await LassoService.queryImplementationsForDataSource(lassoDataSource, request).then(
111132
(response) => {
112133
let sResponse: SearchQueryResponse = response.data
113134
//console.log(JSON.stringify(sResponse))

web/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="generator" content="Docusaurus v3.7.0">
66
<title data-rh="true">Page Not Found | LASSO</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:image" content="https://softwareobservatorium.github.io/web/img/docusaurus-social-card.jpg"><meta data-rh="true" name="twitter:image" content="https://softwareobservatorium.github.io/web/img/docusaurus-social-card.jpg"><meta data-rh="true" property="og:url" content="https://softwareobservatorium.github.io/web/404.html"><meta data-rh="true" property="og:locale" content="en"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docusaurus_tag" content="default"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docsearch:docusaurus_tag" content="default"><meta data-rh="true" property="og:title" content="Page Not Found | LASSO"><link data-rh="true" rel="icon" href="/web/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://softwareobservatorium.github.io/web/404.html"><link data-rh="true" rel="alternate" href="https://softwareobservatorium.github.io/web/404.html" hreflang="en"><link data-rh="true" rel="alternate" href="https://softwareobservatorium.github.io/web/404.html" hreflang="x-default"><link rel="alternate" type="application/rss+xml" href="/web/blog/rss.xml" title="LASSO RSS Feed">
77
<link rel="alternate" type="application/atom+xml" href="/web/blog/atom.xml" title="LASSO Atom Feed"><link rel="stylesheet" href="/web/assets/css/styles.0ab87e24.css">
8-
<script src="/web/assets/js/runtime~main.cbc3e5b4.js" defer="defer"></script>
8+
<script src="/web/assets/js/runtime~main.91a2abda.js" defer="defer"></script>
99
<script src="/web/assets/js/main.f5f65f2e.js" defer="defer"></script>
1010
</head>
1111
<body class="navigation-with-keyboard">

web/about/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="generator" content="Docusaurus v3.7.0">
66
<title data-rh="true">About LASSO | LASSO</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:image" content="https://softwareobservatorium.github.io/web/img/docusaurus-social-card.jpg"><meta data-rh="true" name="twitter:image" content="https://softwareobservatorium.github.io/web/img/docusaurus-social-card.jpg"><meta data-rh="true" property="og:url" content="https://softwareobservatorium.github.io/web/about"><meta data-rh="true" property="og:locale" content="en"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docusaurus_tag" content="default"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docsearch:docusaurus_tag" content="default"><meta data-rh="true" property="og:title" content="About LASSO | LASSO"><meta data-rh="true" name="description" content="Team / Authors"><meta data-rh="true" property="og:description" content="Team / Authors"><link data-rh="true" rel="icon" href="/web/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://softwareobservatorium.github.io/web/about"><link data-rh="true" rel="alternate" href="https://softwareobservatorium.github.io/web/about" hreflang="en"><link data-rh="true" rel="alternate" href="https://softwareobservatorium.github.io/web/about" hreflang="x-default"><link rel="alternate" type="application/rss+xml" href="/web/blog/rss.xml" title="LASSO RSS Feed">
77
<link rel="alternate" type="application/atom+xml" href="/web/blog/atom.xml" title="LASSO Atom Feed"><link rel="stylesheet" href="/web/assets/css/styles.0ab87e24.css">
8-
<script src="/web/assets/js/runtime~main.cbc3e5b4.js" defer="defer"></script>
8+
<script src="/web/assets/js/runtime~main.91a2abda.js" defer="defer"></script>
99
<script src="/web/assets/js/main.f5f65f2e.js" defer="defer"></script>
1010
</head>
1111
<body class="navigation-with-keyboard">

web/assets/js/59b6c7de.7308d47c.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/assets/js/59b6c7de.b4e63e9c.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)