aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
Commit message (Collapse)AuthorAgeFilesLines
* Update fomantic-ui to 2.8.5 (#11736)silverwind2020-06-031-260/+0
| | | | | | Update to [2.8.5](https://github.com/fomantic/Fomantic-UI/releases/tag/2.8.5) and remove the workaround for the CSS build race condition. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* export monaco editor on window.codeEditors (#11739)silverwind2020-06-031-0/+8
| | | | | Fixes: https://github.com/go-gitea/gitea/issues/10409 Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix styling for commiter on diff view (#11715)Cirno the Strongest2020-06-021-0/+18
| | | | | | | | | | | | | | | | | | | | * Fix styling for commiter on diff view * Update options/locale/locale_en-US.ini * Update templates/repo/commit_page.tmpl Co-authored-by: silverwind <me@silverwind.io> * Update templates/repo/commit_page.tmpl Co-authored-by: silverwind <me@silverwind.io> * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Show full GPG commit status on PR commit history (#11702)Cirno the Strongest2020-06-021-1/+2
| | | | | | | | | | * Show full GPG commit status on PR commit history * move shabox badge to separate template * unnecessary $ Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Properly truncate system notices (#11714)zeripath2020-06-022-1/+19
| | | | | | | | | | | | | | | | | | | | * Properly truncate system notices As noted in #11658 the system notifications list will always suffix system notices with ... even when the notice is longer than 120 characters. Instead we should use .text.truncate to auto truncate and make the notices clickable to view their details. Signed-off-by: Andrew Thornton <art27@cantab.net> * As per @CirnoT make table cell clickable * ensure that pre wraps Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Make tabular menu styling consistent for arc-green (#11570)Cirno the Strongest2020-05-301-28/+24
| | | | | | | | | | | | | | | | * Make tabular menu styling consistent for arc-green * rework completely * transparent borders * use darker color for active item; override only colors for borders * Update web_src/less/themes/theme-arc-green.less Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net>
* Normalize avatar radius (#11589)Cirno the Strongest2020-05-291-1/+6
| | | | | We already made avatars square for .ui avatar.img class but this is not enough, and in some place Fomantic default styling still applied. This PR updates our override of radius to match all Fomantic classes.
* Fix alignment for commits on dashboard (#11595)mrsdizzie2020-05-271-6/+15
| | | | | Fix alignment issue between commit SHA and commit message
* Apply padding to approval icons on PR list (#11622)Cirno the Strongest2020-05-261-0/+6
| | | | Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net>
* Fix missing styling for shabox on PR commit history (#11625)Cirno the Strongest2020-05-261-65/+67
|
* Fix styling for PR merge section when no checks (#11609)Cirno the Strongest2020-05-251-1/+13
| | | Makes styling consistent between two cases. Also removed unnecessary double border.
* Style code review comment for arc-green (#11572)Cirno the Strongest2020-05-251-3/+36
| | | | | | | | * Style code review comment for arc-green * change border around review for light; update border around textarea to match #11570 Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix margin on PR form (#11566)Cirno the Strongest2020-05-251-0/+4
|
* Fix margin for attached top header on code review (#11571)Cirno the Strongest2020-05-251-1/+4
| | | | | Introduced naively by #11463 The margin was being applied too widely.
* Fix inconsistent font size for markdown preview on new PR view (#11565)Cirno the Strongest2020-05-241-0/+4
| | | | We use same method for new issue form and issue view, but was missing from new PR view making it one place where markdown preview is inconsistent in font size.
* Prevent empty query parameter being set on dashboard (#11561)zeripath2020-05-241-1/+6
| | | | | | | | | Prevent the dashboard from setting an empty query parameter Fix #11543 Signed-off-by: Andrew Thornton art27@cantab.net
* Fix images in wiki edit preview (#11546)mrsdizzie2020-05-241-1/+2
| | | | | | | | Make sure wiki editor sets wiki to true so gitea renders it as a wiki page. Also change the context data attr for edit form. This looks wrong but everywhere else in our code assumes the urlPrefix to be just the repo url when rendering and manually adds /wiki to the rendered url regardless. Fixes #11540
* Allow different HardBreaks settings for documents and comments (#11515)zeripath2020-05-241-2/+3
| | | | | | | | | | | | | | | | GH has different HardBreaks behaviour for markdown comments and documents. Comments have hard breaks and documents have soft breaks - therefore Gitea's rendering will always be different from GH's if we only provide one setting. Here we split the setting in to two - one for documents and one for comments and other things. Signed-off-by: Andrew Thornton art27@cantab.net Changes to index.js as per @silverwind Co-authored-by: silverwind <me@silverwind.io> Changes to docs as per @guillep2k Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Fix serviceworker output file and misc improvements (#11562)silverwind2020-05-243-15/+32
| | | | | | | | | | | | | | * Fix serviceworker output file and misc improvements - Fix output file location for production build - Cache more asset types: fonts and worker variants - Parallelize a few tasks during initalization - Only invalidate caches starting with our prefix - Remove public/serviceworker.js before building - Remove font preloads, they cause strange cors issues - Misc eslint config adjustments * remove webpack output files on watch-frontend
* Add missing padding for multi-commit list on PR view (#11593)Cirno the Strongest2020-05-241-0/+4
|
* Fix styling and padding for commit list on PR view (#11588)Cirno the Strongest2020-05-241-4/+5
| | | | | * Fix styling and padding for commit list on PR view * fix bold on author
* Enforce transparent background on editor toolbar elements (#11569)Cirno the Strongest2020-05-231-0/+4
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix Enter not working in SimpleMDE (#11564)silverwind2020-05-221-1/+1
| | | | | | | | | | * Fix Enter not working in SimpleMDE This condition was wrongly inverted, leading to all enter keys being blocked. Fixes: https://github.com/go-gitea/gitea/issues/11559 * fix it for absent tribute too
* Close EventSource before unloading the page (#11539)silverwind2020-05-221-0/+3
| | | | Should eliminate a error in the Firefox console regarding the connection being interrupted while the page was loading.
* Move serviceworker to workbox and fix SSE interference (#11538)silverwind2020-05-213-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move serviceworker to workbox and fix SSE interference Instead of statically hardcoding every frontend asset, this uses a type-based approach to cache all js,css and manifest.json requests. This also fixes the issue that the service worker was interfering with EventSource because it was unconditionally handling all requests which this new implementation doesn't. Fixes: https://github.com/go-gitea/gitea/issues/11092 Fixes: https://github.com/go-gitea/gitea/issues/7372 * rethrow error instead of logging * await .register * Revert "rethrow error instead of logging" This reverts commit 043162ba1f18b98a4bf9635959fd28d16e839fc5. * improve comment * remove JSRenderer * add version-based cache invalidation * refactor * more refactor * remove comment * rename item to fit cache name Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Ensure emoji render with regular font-weight (#11541)silverwind2020-05-211-2/+2
| | | | Emoji characters don't support bold attributes and may do weird things like rendering monochrome when bolded.
* Move tributejs to npm/webpack (#11497)silverwind2020-05-205-89/+123
| | | | | | | | | | | | | | | | | | | | | | | | | * Move tributejs to npm/webpack - Move vendored bundle to npm and webpack - Rewrote initialization to single function - Restyled it (made it a bit smaller) - Fixed it for arc-green * fix mention * also include emoji on #content * Update web_src/less/_tribute.less Co-authored-by: mrsdizzie <info@mrsdizzie.com> * rewrite to only use one instance of Tribute * refactor * fix copy/paste error Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix repo-list private and total count bugs (#11500)zeripath2020-05-201-46/+8
| | | | | | | | | | | | | | | | | | | * Fix repo-list private and total count bugs Signed-off-by: Andrew Thornton <art27@cantab.net> * Ensure limited and private org public repos are displayed on "private" Signed-off-by: Andrew Thornton <art27@cantab.net> * switch from onlyPrivate to is_private Signed-off-by: Andrew Thornton <art27@cantab.net> * Generate swagger Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Fix webpack chunk loading with STATIC_URL_PREFIX (#11526)silverwind2020-05-201-4/+9
| | | | | | | | | | Previously, we had only set __webpack_public_path__ to a path which caused webpack chunks to be loaded from the current origin which is incorrect when STATIC_URL_PREFIX points to another origin. This should fix the issue curretnly seen on gitea.com. Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix text-transform on wiki revisions page (#11486)Cirno the Strongest2020-05-202-4/+5
| | | | | | | | * Fix text-transform on wiki revisions page * apply global Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net>
* Fix the bug that the emoji does not disappear (#11489)L0veSunshine2020-05-201-1/+1
| | | | | | | | | | | | | | | * Fix the bug that the emoticon does not disappear * Update web_src/js/index.js Co-authored-by: Lauris BH <lauris@nix.lv> * Update web_src/js/index.js Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net>
* Fix margin for branch-update grid on PR view when update button is not ↵Cirno the Strongest2020-05-201-4/+1
| | | | | | | | | present (#11521) * Fix margin for branch-update grid on PR view when update button is not present * Move padding to row element Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add push commits history comment on PR time-line (#11167)赵智超2020-05-202-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add push commits history comment on PR time-line * Add notify by email and ui of this comment type also Signed-off-by: a1012112796 <1012112796@qq.com> * Add migrations for IsForcePush * fix wrong force-push judgement * Apply suggestions from code review * Remove commit number check * add own notify fun * fix some typo Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> * fix lint * fix style again, I forgot something before * Change email notify way * fix api * add number check if It's force-push * Add repo commit link fuction remove unnecessary check skip show push commits comment which not have commits alive * Update issue_comment.go * Apply suggestions from code review Co-authored-by: mrsdizzie <info@mrsdizzie.com> * Apply suggestions from code review * fix ui view Co-authored-by: silverwind <me@silverwind.io> * fix height * remove unnecessary style define * simplify GetBranchName * Apply suggestions from code review * save commit ids and isForce push by json * simplify GetBranchName * fix bug Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: silverwind <me@silverwind.io>
* Enable stylelint's shorthand-property-no-redundant-values (#11436)silverwind2020-05-204-12/+12
| | | | | Enabled the rule and --fix'ed issues. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Remove IE11 support (#11470)silverwind2020-05-194-41/+6
| | | | | | | | | | | | | * Remove IE11 support With master now on 1.13, it's time to drop IE11 for good. The woff variants are also in use by Opera Mini but it has even less market share and I can only imagine how broken the UI is in it. Fixes: https://github.com/go-gitea/gitea/issues/6147 * update docs Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix selected line color in arc-green (#11492)Cirno the Strongest2020-05-191-1/+1
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix dropzone color on arc-green (#11514)Cirno the Strongest2020-05-191-1/+10
| | | | | | | | | * Fix dropzone color on arc-green * fix missing ; * use same color as textarea and fix border Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Insert ui divider directly in templates instead of from inside heatmap vue ↵wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf2020-05-191-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | component (#11508) * ui: remove the divider between heatmap and feeds in the dashboard view * this commit reverses 6ccd19ef86b3b729a3b6dc35076639db5531550a Signed-off-by: surtur <a_mirre@utb.cz> * add a divider to the default user dashboard view * another one-line change, this time as a direct complement of 2bfc71614c0c5470162825a21c13838e15ccf5a6 to implement a divider of sorts (as per 6ccd19ef86b3b729a3b6dc35076639db5531550a originally) Signed-off-by: surtur <a_mirre@utb.cz> * removed the divider in heatmap.tmpl * the separator is added by partial templates as needed Signed-off-by: surtur <a_mirre@utb.cz> * load proper dashboard template code in profile.tmpl * as discussed in Discord * includes a divider of its own Signed-off-by: surtur <a_mirre@utb.cz>
* Tweak reaction buttons (#11496)silverwind2020-05-191-9/+9
| | | | | | | - Vertical centering using flexbox - Very slightly decreased size of the boxes Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* ui: Add dividing line between heatmap and feeds in dashboard view (#11437)赵智超2020-05-191-0/+1
| | | | | | | | | | | | | | | | | | * ui: Add dividing line between heatmap and feeds in dashboard view I think it's necessary to add dividing line between heatmap and feeds in dashboard view, or the first items in feed is too near with heatmap which is not a good view. Signed-off-by: a1012112796 <1012112796@qq.com> * Change the implementation method * change style * restart ci Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Use more toned colors for selected line (#11493)Cirno the Strongest2020-05-192-2/+2
| | | Co-authored-by: zeripath <art27@cantab.net>
* Make localstorage read ssh or https correctly (#11483)L0veSunshine2020-05-181-3/+7
| | | | | | | | | | | * Make localstorage read ssh or https correctly * Update index.js If not login there is only a "https" button, This commit fix the "https" button hasn't blue border. * Keep user selected whether or not to log in * Update index.js
* Fix top margin for bottom attached header (#11480)Cirno the Strongest2020-05-181-1/+1
|
* Fix footer padding for comment code reply form on issue event view (#11469)Cirno the Strongest2020-05-181-0/+4
|
* Fix styling of resolved code comment box (#11463)Cirno the Strongest2020-05-171-0/+6
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Hide archived repos by default in repo-list (#11440)zeripath2020-05-171-6/+6
| | | | | | As discussed in #11268 hide archived repos by default in the dashboard repo-list Signed-off-by: Andrew Thornton <art27@cantab.net>
* [UI] Adjust CSS details for adding emoticons (#11435)L0veSunshine2020-05-171-1/+3
| | | | | | | * Adjust CSS details for added emoticons * fix lint * avoid git conflict
* Add paging and archive/private repository filtering to dashboard list (#11321)zeripath2020-05-163-23/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add archived options to SearchRepository Signed-off-by: Andrew Thornton <art27@cantab.net> * Add only-private search Signed-off-by: Andrew Thornton <art27@cantab.net> * Add filter options and paging to dashboard repository page Signed-off-by: Andrew Thornton <art27@cantab.net> * swagger generate Signed-off-by: Andrew Thornton <art27@cantab.net> * fix-swagger-again Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @mrsdizzie also remember state Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix buttons left-margin (#11427)Cirno the Strongest2020-05-161-1/+1
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Better styling for code review comment textarea (#11428)Cirno the Strongest2020-05-161-5/+12
| | | | | | | | | | | * Better styling for code review comment textarea * align tabular menu with textarea * border around active tab instead of textarea * border radius * use .28571429rem