Commit Graph

908 Commits (0b94f106f88a5cfa4a8eacb4b56e3b6be7d4b58f)

Author SHA1 Message Date
zeripath d78bb1d564 Add lang specific font stacks for CJK ()
* Add lang specific font stacks

* Force font changes

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Fix icons

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Fix octicons and icons

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Just override the semantic ui fonts only

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Missed the headers... override them too

* Missed some more semantic ui stuff

* Fix PT Sans

Signed-off-by: Andrew Thornton <art27@cantab.net>

* More changes

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Squashed commit of the following:

commit 7d1679e9079541359869c9e677ba7412bfcc59f3
Author: Mike L <cl.jeremy@qq.com>
Date:   Wed Mar 13 13:53:49 2019 +0100

    Remove missed YaHei leftover from _home.less

commit 0079121ea91860a323ed4e5cc1a9c0d490d9cefd
Author: Mike L <cl.jeremy@qq.com>
Date:   Wed Mar 13 12:03:54 2019 +0100

    Fix overdone fixes (inherit, :lang)

commit 62c919915928ec1db4731d547e95885f91a0618d
Author: Mike L <cl.jeremy@qq.com>
Date:   Wed Mar 13 02:29:10 2019 +0100

    Fix elements w/ explicit lang (language chooser)

commit b3117587aa2eb8570d60bed583a11ee5565418be
Author: Mike L <cl.jeremy@qq.com>
Date:   Tue Mar 12 20:17:26 2019 +0100

    Fix textarea also (to match body)

commit 81cedf2c3012c4dd05a7680782b4a98e1b947f67
Author: Mike L <cl.jeremy@qq.com>
Date:   Tue Mar 12 19:41:39 2019 +0100

    Revert css temporarily to fix conflict

commit 80ff82797f3203cbeaf866f22e961334e137df89
Author: Mike L <cl.jeremy@qq.com>
Date:   Tue Mar 12 19:15:30 2019 +0100

    Tweak CJK, fix Yu Gothic, more monospace inherits

commit 581dceb9a869646c2c486dabb925c88c2680d70c
Author: Mike L <cl.jeremy@qq.com>
Date:   Mon Mar 11 13:09:26 2019 +0100

    Add Lato for latin extd. & cyrillic, improve CJK

* update stylesheet
Jonas Franz e777c6bdc6 Integrate OAuth2 Provider ()
John Olheiser 608781f880 Fix fork button ()
Muhammed TİFTİKÇİ 4512634604 Make organization dropdown scrollable when using mouse wheel ()
* Fix 
silverwind 8e266c3193 UI: Fix race in update issue labels and assignees ()
Fix  

* fix issue update race condition
* fix similar race same race when clearing assignee
* always load promise polyfill
* replace es6-promise with promise-polyfill
* move promise-polyfill to <head>
silverwind b1ffe7e47b UI: Style tweaks to issue selection ()
- Prevent jump in layout when selecting the first issue
- Remove useless padding on top of first issue
silverwind d8d24a5619 UI: Fix scrollbar always present on page body ()
silverwind 28fcbf33dc UI: Make document body a flexbox ()
* UI: Make document body a flexbox

Fixes: https://github.com/go-gitea/gitea/issues/6118

* ie11 fixes

* increase padding to 80px

* add flex-grow
John Olheiser d26d249748 Minor UI tweaks ()
* Remove all CommitStatus when a repo is deleted

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Minor UI tweaks ()
Added 'No License' option
Added link and octicon change for external issue trackers
Reset password now notifies right away if the code is invalid

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* More UI tweaks
More info in PR

* Generate stylesheet for arc-green

* Make gofmt work

* Change PR integration since the button is changed

* Rebase

* Generate stylesheet

* UI updates
Made the PR button a "basic" button
Vertically centered the issue checkboxes
Labels will update only once after modal is closed

* Commit to reference related issues
Resolves 
Resolves 
Addresses original question in 

* Change the comment wording since PR button is no longer little and green.

* Revert changes that made Windows work

* Regenerate stylesheet

* Regenerate stylesheets

* make generate-stylesheets

* Update integration again, changed button style

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Added ID to PR button
Changed integration to use the ID to avoid breaking in the future

* Added missing semi-colons

* Added back distinction between issue actions and filters (overlooked it before)
Moved action button over next to other action dropdowns

* Remove extra tab formatting in list.tmpl

* Remove more formatting from GoLand

* Replace hardcoded "No License" with i18n license helper.
Lauris BH fc14344acb
Fix heatmap and repository menu display in Internet Explorer 9+ ()
Allen Wild ff2be17e3f dashboard: sort Repositories widget by most recently updated (issue ) ()
Similar to Github and other git hosting sites, sort the user's repos on
the dashboard by last updated rather than alphabetically. An alphabetic
sort isn't very useful once a user has more than 15 repos and wants
quick access to recent ones that aren't in the first part of the alphabet.
John Olheiser 0b72c00fad Allow labels to contain emoji ()
* Add emoji to labels
Minor cleanup of tribute code in footer.tmpl

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Quick find/replace in other i18n files containing label translations

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Revert "Quick find/replace in other i18n files containing label translations"

This reverts commit ec3e1a3a17.

* Add style to overwrite emoji height in labels

* Revert Makefile change that makes Windows work
silverwind ec540294a1 Revert "Fix wrapping long code lines in UI" ()
This reverts commit e5cd80e021.

Fixes: https://github.com/go-gitea/gitea/issues/6064
silverwind 353282e658 Add autoprefixer to css build ()
* Add autoprefixer to css build

* also use autoprefixer on theme files
silverwind 681345dc99 UI: Make dashboard navbar and footer full-width ()
* UI: Make dashboard navbar full-width

* more tweaks: full-width footer and consistent padding

* fix page layout causing unneccesary scrollbars on small pages
silverwind 4c5b585a6f UI: Make navbar full width ()
silverwind 6606d650fa UI: Fix repo header issues ()
Fixes: https://github.com/go-gitea/gitea/issues/5985
Monty Taylor 44d6a904d3 Support n as a line highlight prefix ()
We're working on rolling out gitea as a replacement for a fairly
large cgit installation. Part of this involves a metric ton of
mod_rewrite rules so that links people have out in the wild will
still work. Unfortunately, cgit uses #n1 in the url to indicate
a single line highlight, which doesn't get passed to the server
and therefore can't be rewritten.

We've got a local workaround by shoving a script block into a
custom header template, but thought it might be nicer to upstream
a simple patch to support #n as a prefix for single line highlights.
(luckily for simplicity, cgit does not support ranges)

Signed-off-by: Monty Taylor <mordred@inaugust.com>
silverwind 0c721fe016 UI: Dashboard tweaks ()
- Don't show divider below heatmap when it's hidden via media-query
- Make divider between user menu adhere to container width
- Remove excessiv margins on heatmap
silverwind acaf5c96fe UI: Repo header tweaks ()
* UI: Repo header tweaks

- Use basic buttons on the header buttons, matching gogs
- Make 'Manage topic' text smaller, remove margin-left with no topics
present
- Move various inline styles to CSS
- Use flexbox on header title and buttons

* fix indentation

* reverse media query wrapping

* fix inconsisten whitespace
silverwind 2ec9bf9048 UI: Fixes for repo topic editor ()
- Properly hides the edit interface when saving a empty topic list
- Align the Done button with the edit box
silverwind 12ee544411 Fix wrapping long code lines in UI ()
Wrapping was initially added in https://github.com/go-gitea/gitea/pull/2789
but it is currently disabled because the rule that applies wrapping to
the wrap class did not have enough CSS specificity.

Resolved the issue by using a general selector that matches all code
boxes. The previous wrap class was removed because it had only been
inconsistenly applied to various code boxes and because I found no easy
way to add classes to code boxes rendered in Markdown.

Also removed a seemingly useless :before on code view and added padding
to restore the spacing.
EpicCoder a967cf9e99 UI: Correct footer height if screen-width is to small (fixes ) () ()
EpicCoder c62c0b669a UI: Change GPG Validation colors and remove inline CSS; fixes ()
kolaente 0b510725c9 Feature: Archive repos ()
Lauris BH 075649572d Add the ability to use multiple labels as filters()
pgodwin 832bf218ec Allow markdown table to scroll ()
* Allow markdown table to scroll

`overflow:auto` isn't effective when a table is wider than the container. Adding `display:block` fixes this issue.
Harshit Bansal 1ac8f6fb83 Don't list an issue on its own dependency list UI. ()
Fixes: .
techknowlogick 5c44f751a3
Discord Oauth2 support ()
* add discord auth

* add vendor for discord

* fix syntax error

* make fmt

* update version of goth in use

* update markbates/goth
Harshit Bansal dd006db5a7 Display branch name in delete branch confirmation modal. ()
Fixes: .
Harshit Bansal 2c7661a524 Fix wrong text getting saved on editing second comment on an issue. ()
* comments: Fix an incorrent DOM element selection.

This commit fixes a bug that was causing text from previously edited
comment to get saved when two comments were edited one after other.
Text area with id of `#content` isn't unique on the page but it was
being treated as unique by the event handling code.

Fixes: .

* templates: Remove `id` from textarea in commit edit form.

An element is assigned an `id` only if it is unique for the whole page
but in this case there can be multiple textarea so it should have one.
Tony Homrich 2058c362a8 LDAP via simple auth separate bind user and search base ()
zeripath 330bf8d3b3 Immediate fix to htmlEncode user added text ()
There are likely problems remaining with the way that initCommentForm
is creating its elements. I suspect that a malformed avatar url could
be used maliciously.
Lauris BH f17524bd0c
Fix heatmap colors for Chrome/Safari ()
SohnyBohny 294904321c Create Progressive Web App ()
* Create manifest and serviceworker

* Create templates and add AppSubUrl

* Add JSRenderer

* fix ctx type

* Add JSRenderer to static.go

* Complete adding {{AppSubUrl}}

* Add more fonts to urlsToCache

* Add 512px and 192px icons

* Hardcode font MD5

* Default theme doesn't have a specific CSS file
Lauris BH e09fe48773 Refactor heatmap to vue component ()
Lauris BH 499d132124 Fix dependent issue searching when gitea is run in subpath ()
kolaente 0dcf31ae49 Show review summary in pull requests ()
Lauris BH 7278372388 Implement pasting image from clipboard for browsers that supports that ()
Lauris BH de8f98192b Fix U2F if gitea is configured in subpath ()
zeripath 7096085f2b Fix by adding CSRF checking to api reqToken and add CSRF to the POST header for deadline ()
* Add CSRF checking to reqToken and place CSRF in the post for deadline creation

Fixes , 

* /api/v1/admin/users routes should have reqToken middleware
kolaente 54259e2f88 Fixed wrong api request url for instances running in subfolders ()
James Anderson 1ceae07560 Fix emojis not showing in commit messages ()
Fixes 

Signed-off-by: James Anderson <james@jamesa.me>
kolaente 6759237eda User action heatmap ()
* Added basic heatmap data

* Added extra case for sqlite

* Built basic heatmap into user profile

* Get contribution data from api & styling

* Fixed lint & added extra group by statements for all database types

* generated swagger spec

* generated swagger spec

* generated swagger spec

* fixed swagger spec

* fmt

* Added tests

* Added setting to enable/disable user heatmap

* Added locale for loading text

* Removed UseTiDB

* Updated librejs & moment.js

* Fixed import order

* Fixed heatmap in postgresql

* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

Co-Authored-By: kolaente <konrad@kola-entertainments.de>

* Added copyright header

* Fixed a bug to show the heatmap for the actual user instead of the currently logged in

* Added integration test for heatmaps

* Added a heatmap on the dashboard

* Fixed timestamp parsing

* Hide heatmap on mobile

* optimized postgresql group by query

* Improved sqlite group by statement
glaszig 2313121354 fix fading menu in arc-green theme ()
* fix fading menu in arc-green theme

the menu faded white because it missed proper styling.
only visible on viewports narrower than 1200px.

* Generate minimized css

* compiled arc-green.less to apply changes from 76e4f9a58
SagePtr fc0001caa1 Fix #rrggbbaa color to rgba for better browser compatibility ()
Iwasa Kazmi 6780661192 Fix layout of the topics editing form ()
* Fix layout of the topic edit.

- made right-hand column wider so that it has enough space for "Done" button.

- fixed issue that jQuery's .show() breaks functionality of the Semantic UI Grid.

* Improve switching visibility of the topic edit

Changes to support old browsers that doesn't support 'flex' keyword.

- Removed style "display: none" from index.css so that
  the grid can be displayed without specifying new "display" style.

- Added style "display:none" to the grid element in HTML template
  as the initial style.

- In index.js, visibility of the grid element is changed by
  set "display:none" style to the element or removing it from the element.
silverwind 31d5488059 Fix user menu item styling ()
Lauris BH 4092b32bad Fix preview when adding new code review comment ()
Lauris BH 4befec242a
Code review UI improvements and bugfixes ()
* Code review UI improvements

* More fixes to dark theme

* Style fix

* Fix to allow add code review comments only on review files tab

* More readability dark style fixes

* Fix commenting on deleted files. Fixes 

* Fix line blame getting for multiple corner cases