This website works better with JavaScript.
code
.tokarch.uk
Explore
Help
Sign In
third_party
/
gitea
Watch
1
Star
0
Fork
You've already forked gitea
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13956
Commits
2
Branches
0
Tags
240 MiB
Tag:
Branch:
Tree:
d8a80b0ed7
tokarchuk/v1.17
tokarchuk/v1.18
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from 'd8a80b0ed7'
${ noResults }
gitea
/
web_src
/
js
/
testUtils
/
jestSetup.js
6 lines
93 B
Raw
Normal View
History
Unescape
Escape
Use weighted algorithm for string matching when finding files in repo (#21370) This PR is for: * https://github.com/go-gitea/gitea/issues/20231 Now, when a user searches `word`, they always see `/{word}.txt` before `/{w}e-g{o}t-{r}esult.{d}at` Demo: When searching "a", "a.ext" comes first. Then when searching "at", the longer matched "template" comes first. <details>   </details> This PR also makes the frontend tests could import feature JS files by introducing `jestSetup.js` Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: silverwind <me@silverwind.io>
2 years ago
window
.
config
=
{
csrfToken
:
'jest-test-csrf-token-123456'
,
pageData
:
{
}
,
i18n
:
{
}
,
}
;