Lauris BH
b6c53357d5
FIx hiding of fields in authorization source page ( #10734 )
2020-03-17 10:12:44 +02:00
John Olheiser
a3745b54fd
Prevent default for linkAction ( #10742 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-03-16 16:13:41 -05:00
Alex
86636794da
Update border-color of language bar icon ( #10723 )
...
* Update color of border of color-icon
* Update web_src/less/_base.less
Co-Authored-By: 6543 <6543@obermui.de >
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: 6543 <6543@obermui.de >
2020-03-14 01:19:09 +02:00
silverwind
b1ce610bb4
Misc JS linting and naming tweaks ( #10652 )
...
- lowercase all js filenames except Vue components
- enable new lint rules, mostly focused on shorter code
- autofix new lint violations
- apply misc transformations indexOf -> includes and onevent-> addEventListener
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
2020-03-11 21:34:54 +02:00
Alexander Scheel
28bc4bf3bc
Fix task-list checkbox styling ( #10668 )
...
* Fix task-list checkbox styling
The pandoc renderer will append the class "task-list" to the ul element
wrapping a li with one or more check-boxes. This allows us to select for
them, removing their list-style-type property. However, goldmark and the
gfm spec doesn't specify the "task-list" class name, so we can't use
that to fix the issue there.
Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com >
* Update to goldmark v1.1.25
This version adds the missing space after a checkbox.
Resolves : #9656
Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
2020-03-08 21:17:03 +02:00
silverwind
873c7e74fb
Move dropzone.js to npm/webpack ( #10645 )
...
- unvendor dropzone and upgrade it from 4.2.0 to 5.7.0
- make `csrf` available on window.config
2020-03-07 21:06:15 +00:00
6543
8ba3363b45
Ensure Update button is enabled even when CI has failed ( #10640 )
...
* ignore pull status
* fix css
* fix css
2020-03-07 03:24:42 +02:00
John Olheiser
4a46378f7a
Logout POST action ( #10582 )
...
* Change logout to POST
* Update for redirect
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-03-02 22:50:31 -06:00
techknowlogick
20a441b19c
nextcloud oauth ( #10562 )
...
Fix #7078
2020-03-02 22:11:45 -05:00
guillep2k
3e2fa7715e
Admin page for managing user e-mail activation ( #10557 )
...
* Implement mail activation admin panel
* Add export comments
* Fix another export comment
* again...
* And again!
* Apply suggestions by @lunny
* Add UI for user activated emails
* Make new activation UI work
* Fix lint
* Prevent admin from self-deactivate; add modal
Co-authored-by: zeripath <art27@cantab.net >
2020-03-02 15:25:36 -03:00
silverwind
024183fcee
Prevent accidential selection of language stats bar ( #10537 )
2020-02-29 00:59:29 +08:00
zeripath
56cc1f8bc8
Fix the signing icon in the view_list.tmpl page ( #10511 )
...
* Fix the view_list.tmpl page
* fix-centerlock
* Update web_src/less/_base.less
as per @silverwind
Co-Authored-By: silverwind <me@silverwind.io >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
2020-02-27 23:03:17 -03:00
zeripath
62a44d6c74
Show Signer in commit lists and add basic trust ( #10425 )
...
* Show Signer in commit lists and add basic trust
Show the avatar of the signer in the commit list pages as we do not
enforce that the signer is an author or committer. This makes it
clearer who has signed the commit.
Also display commits signed by non-members differently from
members and in particular make it clear when a non-member signer
is different from the committer to help reduce the risk of
spoofing.
Signed-off-by: Andrew Thornton <art27@cantab.net >
* ensure orange text and background is available
Signed-off-by: Andrew Thornton <art27@cantab.net >
* Update gpg_key.go
* Update models/gpg_key.go
* Apply suggestions from code review
* Require team collaborators to have access to UnitTypeCode
* as per @6543
* fix position of sha as per @silverwind
* as per @guillep2k
2020-02-27 16:20:55 -03:00
silverwind
f1a1063e2a
Tweak language stats bar ( #10487 )
...
- Ensure bar does not overflow parent
- Remove unneccessary borders/background
- Fix shaky animation caused by JS animation miscalculation by setting
fixed height on the summary box. Box itself is still shaky during
animation, but better it then the whole page.
Fixes: https://github.com/go-gitea/gitea/issues/10474
2020-02-26 22:44:14 +02:00
John Olheiser
1f39e91ab0
Fix admin notices ( #10480 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-02-26 10:25:54 -06:00
John Olheiser
1116bd4bf7
Change admin dashboard to POST ( #10465 )
...
* Add form and convert to POST
* Redirect for flash
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-02-25 16:54:13 -06:00
John Olheiser
56fe6479f1
Change action GETs to POST ( #10462 )
...
* Change action GETs to POST
* submite = submit + smite
* No more # href
* Fix test
* Match other tests
* Explicit csrf
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
2020-02-25 14:28:47 -06:00
silverwind
be6b20f99f
move vue and vue-calendar-heatmap to webpack ( #10188 )
...
- unvendor vue and vue-calendar-heatmap
- remove unused moment.js leftover from previous heatmap version
- ensure webpack loads the full version of vue
- fix vue devmode warning related to 'searchLimit' type
I wanted to name the chunk heatmap.js but adblockers don't like that
filename [1].
[1] 3899d5dff3/easyprivacy/easyprivacy_general.txt (L2095)
2020-02-23 21:34:28 +00:00
silverwind
5088013d37
Disallow leading zeroes in Less ( #10407 )
2020-02-23 13:48:27 -03:00
silverwind
90d09d9095
Various dark theme fixes ( #10416 )
...
- beatify simplemde, remove header hover effect (does not play well with
border colors), remove double border separators
- fix colored outline buttons
- fix disabled style
- fix positive messages
- fix markdown header border and quote block
- adjust footer color
- adjust file icons and release list timeline
2020-02-22 22:32:15 -06:00
John Olheiser
f0800723e0
Fix profile page CSS ( #10406 )
...
* Fix profile page
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Remove redundant CSS
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix .username and change em to rem
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-02-22 16:06:07 +02:00
zeripath
95f8737ca2
Render READMEs in docs/ .gitea or .github from root ( #10361 )
...
* Render READMEs in docs/ .gitea or .github from root
2020-02-21 17:04:20 -06:00
John Olheiser
a682ad3f8f
Fixes ( #10386 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: techknowlogick <matti@mdranta.net >
2020-02-20 17:44:13 -06:00
silverwind
9218c1780d
fix input[type=file] on dark theme ( #10382 )
2020-02-20 16:36:47 -06:00
Lauris BH
1e785f357f
Add detected file language to code search ( #10256 )
...
Move langauge detection to separate module to be more reusable
Add option to disable vendored file exclusion from file search
Allways show all language stats for search
2020-02-20 16:53:55 -03:00
zeripath
94073353fe
Set max-width on review-box comment box ( #10348 )
2020-02-18 23:07:00 +00:00
John Olheiser
b69eea7dd5
Fix status check enable ( #10341 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-02-18 12:58:16 -06:00
John Olheiser
45e4791637
Fix JS and Vue ( #10328 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2020-02-18 08:07:57 +02:00
John Olheiser
0775a62a1d
Inject SVG sprite via ajax ( #10320 )
...
* AJAX SVG
* Fix PWA
* Remove unused PWA assets
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-Authored-by: silverwind <me@silverwind.io >
2020-02-17 23:11:59 +00:00
zeripath
c9a20eb825
Truncate long commit message header ( #10301 )
...
* Truncate long commit message header
* Fix overflow in view commit table
* Use @media less
* Further improvements
* Fix the commit message on small screens
* adjust width of minimal table
2020-02-17 19:45:55 +02:00
Antoine GIRARD
0f495434f0
ui: better mobile review-box sizing ( #10297 )
2020-02-16 22:44:52 +02:00
Lunny Xiao
fec4774be9
Fix reply on code review ( #10227 )
...
Co-authored-by: zeripath <art27@cantab.net >
2020-02-13 13:22:15 +08:00
silverwind
1bb916c948
fix margin on attached segments with headers ( #10235 )
...
Fixes: https://github.com/go-gitea/gitea/issues/10210
Co-authored-by: techknowlogick <matti@mdranta.net >
2020-02-11 22:38:32 -05:00
John Olheiser
a23cde5e75
SVG Octicon fixes ( #10237 )
...
* SVG fixes
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Colorize span->svg only
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* @silverwind suggestions
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Alphabetical
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Convert suburl and staticPrefix to window.config
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* De-structure
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
2020-02-11 20:53:18 -05:00
jaqra
cd28578ede
fix filter label emoji width ( #10241 )
2020-02-11 22:25:41 +01:00
James Lakin
4490056e8b
Fix issue sidebar menus having an infinite height ( #10239 )
...
* Revert "Limit label list height on edit issue page"
* Fix issue sidebar menus having an infinite height
2020-02-11 22:40:47 +02:00
John Olheiser
868bdd06f7
Add Octicon SVG spritemap ( #10107 )
...
* Add octicon SVG sprite
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Static prefix
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* SVG for all repo icons
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* make vendor
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Swap out octicons
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Move octicons to top of less imports
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix JS
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Definitely not a search/replace
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Missed regex
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Move to more generic calls and webpack
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* make svg -> make webpack
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Remove svg-sprite
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Update tests
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Missed a test
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Remove svg from makefile
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Suggestions
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Attempt to fix test
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Update tests
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Revert timetracking test
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Swap .octicon for .svg in less
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add aria-hidden
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Replace mega-octicon
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix webpack globbing on Windows
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Revert
Co-Authored-By: silverwind <me@silverwind.io >
* Fix octions from upstream
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix Vue and missed JS function
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add JS helper and PWA
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Preload SVG
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: techknowlogick <matti@mdranta.net >
2020-02-11 12:02:41 -05:00
jaqra
98dfc2ff79
Limit label list height on edit issue page ( #10216 )
2020-02-11 16:41:48 +01:00
Lauris BH
20e11119c4
Language statistics bar for repositories ( #8037 )
...
* Implementation for calculating language statistics
Impement saving code language statistics to database
Implement rendering langauge stats
Add primary laguage to show in repository list
Implement repository stats indexer queue
Add indexer test
Refactor to use queue module
* Do not timeout for queues
2020-02-11 11:34:17 +02:00
jaqra
e18b19cc30
Allow emoji on popup label ( #10166 )
...
* allow emoji on popup label
* Make emojify work
* Remove unnecessary class
Co-Authored-By: silverwind <me@silverwind.io >
Co-authored-by: silverwind <me@silverwind.io >
2020-02-08 12:48:17 +01:00
silverwind
923362721b
move clipboard.js to npm/webpack ( #10183 )
...
- created lazy-loaded webpack chunk for clipboard.js
- upgraded clipboard.js from 1.5.9 to 2.0.4
- parallelize initialization of all lazy-loaded features
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
2020-02-08 00:03:42 +01:00
6543
5a1a6db5e2
Fix code-expansion arc-green theme bug ( #10180 )
...
* fix code-expansion theme bug
* working solution without important
* no new color
* the midle
2020-02-07 20:19:50 +01:00
silverwind
9b55151c68
Reorganize frontend files and tooling ( #10168 )
...
- move "vendor" files to js/vendor and less/vendor
- move swagger to js/standalone (meant for standalone pages)
- move gitgraph to features and streamline its loading
- add linting configs to webpack dependencies in make
- set ignored files for eslint/stylelint directly in their configs
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
2020-02-07 18:09:30 +01:00
John Olheiser
8ff15762da
Fix commit view ( #10169 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
2020-02-07 18:38:50 +08:00
John Olheiser
7af2c2c7b3
Fix topics dropdown ( #10167 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-02-07 07:46:09 +02:00
James Lakin
31ec466629
Show if a PR has conflicting files on the PR lists ( #10130 )
...
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-02-04 00:14:38 +02:00
Lauris BH
29881b8f58
Show download count info in release list ( #10124 )
...
* Show download count info in release list
* Use go-humanize
2020-02-03 21:50:37 +02:00
zeripath
a49259af95
Update aria-fixed semantic-dropdown to fomantic master ( #10096 )
...
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-02-02 17:28:00 -05:00
zeripath
09cf8fef84
Add button to revert SimpleMDE to plain textarea ( #10099 )
2020-02-01 17:06:57 +00:00
silverwind
4e9b964b93
move jquery.are-you-sure to npm/webpack ( #10063 )
2020-01-29 21:16:55 +00:00