Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
cloogle.org
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cloogle
cloogle.org
Commits
a9fb5d6e
Verified
Commit
a9fb5d6e
authored
Dec 15, 2018
by
Camil Staps
🍃
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split usage queries on ; instead of , to allow searching for tuples
parent
a2cc5b48
Pipeline
#17234
passed with stage
in 15 minutes and 38 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
7 deletions
+9
-7
backend/Cloogle
backend/Cloogle
+1
-1
frontend/api.php
frontend/api.php
+1
-1
frontend/common.js
frontend/common.js
+3
-3
frontend/index.php
frontend/index.php
+1
-1
frontend/stats/client.js
frontend/stats/client.js
+3
-1
No files found.
Cloogle
@
38469bb7
Subproject commit
adf2ad02144baaaf53ada465a2649adc3542c1aa
Subproject commit
38469bb77d54d2271c315673fe83afe084e0e7dd
frontend/api.php
View file @
a9fb5d6e
...
...
@@ -189,7 +189,7 @@ if ($_SERVER['REQUEST_METHOD'] !== 'GET'){
if
(
substr
(
$name
,
0
,
6
)
==
'using '
)
{
$command
[
'using'
]
=
[];
$usingnames
=
explode
(
'
,
'
,
substr
(
$name
,
6
));
$usingnames
=
explode
(
'
;
'
,
substr
(
$name
,
6
));
foreach
(
$usingnames
as
$usingname
)
{
$command
[
'using'
][]
=
trim
(
$usingname
);
}
...
...
frontend/common.js
View file @
a9fb5d6e
...
...
@@ -91,7 +91,7 @@ function highlightCallback(span, cls, str) {
function
highlightQuery
(
query
)
{
var
highlighter
=
highlightClean
;
if
(
query
==
'
class
'
||
query
==
'
instance
'
||
query
==
'
type
'
||
query
==
'
using
'
)
{
if
(
query
==
'
class
'
||
query
==
'
instance
'
)
{
return
'
<span class="keyword">
'
+
query
+
'
</span>
'
;
}
else
if
(
query
.
match
(
/^class
\s
/
)
||
query
.
match
(
/^instance
\s
/
))
{
highlighter
=
highlightClean
;
...
...
@@ -105,8 +105,8 @@ function highlightQuery(query) {
return
'
<span class="keyword">
'
+
q
.
substring
(
0
,
5
)
+
'
</span><span class="whitespace">
'
+
q
.
substring
(
5
,
6
)
+
'
</span>
'
+
highlightToHTML
({
start
:
[
[
/
(
,
)
/
,
[
'
punctuation
'
]],
[
/
([^
,
]
+
)
/
,
[
'
funcname
'
]],
[
/
(
;
)
/
,
[
'
punctuation
'
]],
[
/
([^
;
]
+
)
/
,
[
'
funcname
'
]],
]
},
q
.
substring
(
6
));
};
...
...
frontend/index.php
View file @
a9fb5d6e
...
...
@@ -102,7 +102,7 @@
<td
class=
'description'
>
Information about the error message "stack overflow"
</td>
</tr>
<tr>
<td
class=
'code'
>
using Maybe
,
==
</td>
<td
class=
'code'
>
using Maybe
;
==
</td>
<td
class=
'description'
>
Anything that uses
<code>
Maybe
</code>
<em>
and
</em>
<code>
==
</code></td>
</tr>
<tr>
...
...
frontend/stats/client.js
View file @
a9fb5d6e
...
...
@@ -58,7 +58,9 @@ function addRecord(req) {
else
if
(
'
typeName
'
in
req
)
query
=
'
type
'
+
req
.
typeName
;
else
if
(
'
using
'
in
req
)
query
=
'
using
'
+
req
.
using
.
join
(
'
,
'
);
query
=
'
using
'
+
req
.
using
.
join
(
'
;
'
);
else
if
(
'
exactName
'
in
req
)
query
=
'
exact
'
+
req
.
exactName
;
searches
.
splice
(
0
,
0
,
[
query
,
time
]);
if
(
searches
.
length
>
10
)
...
...
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