summaryrefslogtreecommitdiffstats
path: root/web_src
Commit message (Collapse)AuthorAgeFilesLines
* [UI] language status icon size (#10749)j.yao.SUSE2020-04-021-5/+7
| | | | | | | | | | | | | | | | | * language status icon size change the repository language status icon size * Update _base.less * fix: eslint rule length-zero-no-unit * [ui] .color-icon change size ti 14px * Update web_src/less/_base.less * Update web_src/less/_base.less Co-authored-by: Lauris BH <lauris@nix.lv>
* Add Organization Wide Labels (#10814)mrsdizzie2020-04-013-35/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add organization wide labels Implement organization wide labels similar to organization wide webhooks. This lets you create individual labels for organizations that can be used for all repos under that organization (so being able to reuse the same label across multiple repos). This makes it possible for small organizations with many repos to use labels effectively. Fixes #7406 * Add migration * remove comments * fix tests * Update options/locale/locale_en-US.ini Removed unused translation string * show org labels in issue search label filter * Use more clear var name * rename migration after merge from master * comment typo * update migration again after rebase with master * check for orgID <=0 per guillep2k review * fmt * Apply suggestions from code review Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * remove unused code * Make sure RepoID is 0 when searching orgID per code review * more changes/code review requests * More descriptive translation var per code review * func description/delete comment when issue label deleted instead of hiding it * remove comment * only use issues in that repo when calculating number of open issues for org label on repo label page * Add integration test for IssuesSearch API with labels * remove unused function * Update models/issue_label.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Use subquery in GetLabelIDsInReposByNames * Fix tests to use correct orgID * fix more tests * IssuesSearch api now uses new BuildLabelNamesIssueIDsCondition. Add a few more tests as well * update comment for clarity * Revert previous code change now that we can use the new BuildLabelNamesIssueIDsCondition * Don't sort repos by date in IssuesSearch API After much debugging I've found a strange issue where in some cases MySQL will return a different result than other enigines if a query is sorted by a null collumn. For example with our integration test data where we don't set updated_unix in repository fixtures: SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `avatar`, `created_unix`, `updated_unix` FROM `repository` ORDER BY updated_unix DESC LIMIT 15 OFFSET 45 Returns different results for MySQL than other engines. However, the similar query: SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `avatar`, `created_unix`, `updated_unix` FROM `repository` ORDER BY updated_unix DESC LIMIT 15 OFFSET 30 Returns the same results. This causes integration tests to fail on MySQL in certain cases but would never show up in a real installation. Since this API call always returns issues based on the optionally provided repo_priority_id or the issueID itself, there is no change to results by changing the repo sorting method used to get ids earlier in the function. * linter is back! * code review * remove now unused option * Fix newline at end of files * more unused code * update to master * check for matching ids before query * Update models/issue_label.go Co-Authored-By: 6543 <6543@obermui.de> * Update models/issue_label.go * update comments * Update routers/org/setting.go Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de>
* Fix repo summary height (#10825)silverwind2020-03-251-3/+6
| | | | | | | | Extracted the style that keeps the animation of the language bar in check. Fixes: https://github.com/go-gitea/gitea/issues/10754 Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix tab indentation in code view (#10671)Alexander Scheel2020-03-251-5/+2
| | | | | | | Resolves: #5596 Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add nowrap to language bar items (#10755)Lauris BH2020-03-201-0/+4
|
* move jquery-datetimepicker to npm/webpack (#10713)silverwind2020-03-173-9/+18
| | | | | | | | | - update to latest version and move to npm - adapt for api changes and css class rename - add specificity to arc-green rules as dependency css now loads later - use imports-loader to make it load correctly - fix some wrong paths in librejs Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* FIx hiding of fields in authorization source page (#10734)Lauris BH2020-03-171-13/+6
|
* Prevent default for linkAction (#10742)John Olheiser2020-03-161-1/+2
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update border-color of language bar icon (#10723)Alex2020-03-141-1/+1
| | | | | | | | | | * 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>
* Misc JS linting and naming tweaks (#10652)silverwind2020-03-119-88/+74
| | | | | | | | - 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>
* Fix task-list checkbox styling (#10668)Alexander Scheel2020-03-081-0/+5
| | | | | | | | | | | | | | | | | | | | | * 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>
* Move dropzone.js to npm/webpack (#10645)silverwind2020-03-072-23/+26
| | | | - unvendor dropzone and upgrade it from 4.2.0 to 5.7.0 - make `csrf` available on window.config
* Ensure Update button is enabled even when CI has failed (#10640)65432020-03-071-2/+6
| | | | | | | * ignore pull status * fix css * fix css
* Logout POST action (#10582)John Olheiser2020-03-021-0/+3
| | | | | | | | * Change logout to POST * Update for redirect Signed-off-by: jolheiser <john.olheiser@gmail.com>
* nextcloud oauth (#10562)techknowlogick2020-03-021-0/+2
| | | Fix #7078
* Admin page for managing user e-mail activation (#10557)guillep2k2020-03-021-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Prevent accidential selection of language stats bar (#10537)silverwind2020-02-291-0/+1
|
* Fix the signing icon in the view_list.tmpl page (#10511)zeripath2020-02-271-1/+1
| | | | | | | | | | | | | | | * 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>
* Show Signer in commit lists and add basic trust (#10425)zeripath2020-02-273-9/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Tweak language stats bar (#10487)silverwind2020-02-261-11/+23
| | | | | | | | | - 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
* Fix admin notices (#10480)John Olheiser2020-02-261-1/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Change admin dashboard to POST (#10465)John Olheiser2020-02-251-0/+4
| | | | | | | | * Add form and convert to POST * Redirect for flash Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Change action GETs to POST (#10462)John Olheiser2020-02-251-0/+14
| | | | | | | | | | | | | | | | | | * 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>
* move vue and vue-calendar-heatmap to webpack (#10188)silverwind2020-02-232-99/+105
| | | | | | | | | | | | - 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] https://github.com/easylist/easylist/blob/3899d5dff33216c0bc64f09ff15d376f346d3e33/easyprivacy/easyprivacy_general.txt#L2095
* Disallow leading zeroes in Less (#10407)silverwind2020-02-2310-101/+101
|
* Various dark theme fixes (#10416)silverwind2020-02-222-11/+71
| | | | | | | | | | - 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
* Fix profile page CSS (#10406)John Olheiser2020-02-221-0/+11
| | | | | | | | | | | | | | | | * 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>
* Render READMEs in docs/ .gitea or .github from root (#10361)zeripath2020-02-211-0/+8
| | | | * Render READMEs in docs/ .gitea or .github from root
* Fixes (#10386)John Olheiser2020-02-201-1/+1
| | | | | | Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: techknowlogick <matti@mdranta.net>
* fix input[type=file] on dark theme (#10382)silverwind2020-02-201-12/+14
|
* Add detected file language to code search (#10256)Lauris BH2020-02-202-0/+9
| | | | | | | 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
* Set max-width on review-box comment box (#10348)zeripath2020-02-181-0/+22
|
* Fix status check enable (#10341)John Olheiser2020-02-181-1/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix JS and Vue (#10328)John Olheiser2020-02-181-3/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Inject SVG sprite via ajax (#10320)John Olheiser2020-02-171-0/+9
| | | | | | | | | | * AJAX SVG * Fix PWA * Remove unused PWA assets Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-Authored-by: silverwind <me@silverwind.io>
* Truncate long commit message header (#10301)zeripath2020-02-171-1/+38
| | | | | | | | | | | | | | * 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
* ui: better mobile review-box sizing (#10297)Antoine GIRARD2020-02-161-0/+11
|
* Fix reply on code review (#10227)Lunny Xiao2020-02-131-0/+8
| | | | Co-authored-by: zeripath <art27@cantab.net>
* fix margin on attached segments with headers (#10235)silverwind2020-02-111-0/+5
| | | | | | Fixes: https://github.com/go-gitea/gitea/issues/10210 Co-authored-by: techknowlogick <matti@mdranta.net>
* SVG Octicon fixes (#10237)John Olheiser2020-02-115-57/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* fix filter label emoji width (#10241)jaqra2020-02-111-0/+4
|
* Fix issue sidebar menus having an infinite height (#10239)James Lakin2020-02-111-2/+1
| | | | | | * Revert "Limit label list height on edit issue page" * Fix issue sidebar menus having an infinite height
* Add Octicon SVG spritemap (#10107)John Olheiser2020-02-1110-57/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Limit label list height on edit issue page (#10216)jaqra2020-02-111-0/+2
|
* Language statistics bar for repositories (#8037)Lauris BH2020-02-114-1/+43
| | | | | | | | | | | | | | | | | | * 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
* Allow emoji on popup label (#10166)jaqra2020-02-081-1/+2
| | | | | | | | | | | | * 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>
* move clipboard.js to npm/webpack (#10183)silverwind2020-02-082-19/+27
| | | | | | | | - 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>
* Fix code-expansion arc-green theme bug (#10180)65432020-02-071-0/+3
| | | | | | | | | | * fix code-expansion theme bug * working solution without important * no new color * the midle
* Reorganize frontend files and tooling (#10168)silverwind2020-02-077-7/+10
| | | | | | | | | | | | - 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>
* Fix commit view (#10169)John Olheiser2020-02-071-1/+1
| | | | | | | Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>