summaryrefslogtreecommitdiffstats
path: root/public
Commit message (Collapse)AuthorAgeFilesLines
* convert all js var to let/const (#7464)silverwind2019-07-162-273/+272
| | | | Most of the work was done by `eslint --fix`, I fixed around 10 cases where it could not auto-convert.
* Fix an issue with some pages throwing 'not defined' js exceptions (#7450)Gary Kim2019-07-131-1/+3
| | | | | Fix an issue introduced by 831288cc916d5301beaa0adc1d912d6748a4cdaa Signed-off-by: Gary Kim <gary@garykim.dev>
* fix Dropzone.js integration (#7445)silverwind2019-07-121-6/+7
|
* fix/define autochecked checkboxes on issue list in firefox (#7320)Cherrg2019-07-121-1/+15
| | | | | | | | | | | | | | | | | | | * fix/define autochecked checkboxes on issue list on firefox - close: deselect all - nonclose: show buttons for close/label/milestone... fix #7311 Signed-off-by: Michael Gnehr <michael@gnehr.de> * remove unnessesary timeouts Signed-off-by: Michael Gnehr <michael@gnehr.de> * add comments in code - this is targeting firefox Signed-off-by: Michael Gnehr <michael@gnehr.de>
* create class for inlie positioned lists (#7393)Cherrg2019-07-122-1/+19
| | | | | | | replace org create alignment hack fix #6464 Signed-off-by: Michael Gnehr <michael@gnehr.de>
* jQuery 3 (#7425)techknowlogick2019-07-124-8/+228
| | | | | | | | | | * jquery 3 * use most recent version of migrate plugin * Delete .DS_Store * update service worker in case anyone has old version of jquery cached
* wiki history improvements (#7391)Cherrg2019-07-112-1/+2
| | | | | | | | | | | | | | | | | * add history comments to detect page delete Signed-off-by: Michael Gnehr <michael@gnehr.de> * fix too much history entries - caused by --follow flag - if files with same contents exists Signed-off-by: Michael Gnehr <michael@gnehr.de> * style imprevements wiki - history - wrap long author names Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix post parameter - on issue list - unset assignee (#7380)Cherrg2019-07-081-4/+8
| | | | | | | | | | | | * fix post parameter - issue list - assignee fix #7328 - remove assignee on issue list return 500 Signed-off-by: Michael Gnehr <michael@gnehr.de> * add missing semicolons Signed-off-by: Michael Gnehr <michael@gnehr.de>
* wiki - page revisions list (#7369)Cherrg2019-07-082-0/+37
| | | | | | | | | | | | | | fix #7 * add wiki page revision list * mobile improvements * css improvements for long usernames * split renderWikiPage into 3 functions Signed-off-by: Michael Gnehr <michael@gnehr.de>
* Display original author and URL information when showing migrated ↵mrsdizzie2019-07-082-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | issues/comments (#7352) * Store original author info for migrated issues and comments Keep original author name for displaying in Gitea interface and also store original author user ID for potential future use in linking accounts from old location. * Add original_url for repo Store the original URL for a migrated repo Clean up migrations/tests * fix migration * fix golangci-lint * make 'make revive' happy also * Modify templates to use OriginalAuthor if set Use the original author name in templates if it is set rather than the user who migrated/currently owns the issues * formatting fixes * make generate-swagger * Use default avatar for imported comments * Remove no longer used IgnoreIssueAuthor option * Add OriginalAuthorID to swagger also
* wiki - editor - add buttons 'inline code', 'empty checkbox', 'checked ↵Cherrg2019-07-071-1/+34
| | | | | | | | | | | | | | | | checkbox' (#7243) * wiki - editor - add buttons 'inline code', 'add empty checkbox', 'add checked checkbox' affects #5436 Signed-off-by: Michael Gnehr <michael@gnehr.de> * add missing 'set focus' after insert with buttons Signed-off-by: Michael Gnehr <michael@gnehr.de> * consistent usage of let/const in added code
* dark theme scrollbars (#7269)Cherrg2019-07-062-0/+42
|
* ui - issue view - fix icon position (#7354)Cherrg2019-07-064-12/+62
| | | | | | | | | | | | | | | | | | | | | | | | | * issue view - fix icon position - move style from template to css - add bullets to: key, circle-slash, comment Signed-off-by: Michael Gnehr <michael@gnehr.de> * add border to symbols Signed-off-by: Michael Gnehr <michael@gnehr.de> * fix circle slash position Signed-off-by: Michael Gnehr <michael@gnehr.de> * fix top margin Signed-off-by: Michael Gnehr <michael@gnehr.de> * changed mixed space/tab indent to tabindent only Signed-off-by: Michael Gnehr <michael@gnehr.de>
* ui - cut timeline length with last element on issue view (#7355)Cherrg2019-07-064-5/+29
| | | | | | | | | | | | | | * cut timeline length with last element on issue view fix #7304 - lightly enlight dark theme issue timeline color Signed-off-by: Michael Gnehr <michael@gnehr.de> * remove new container Signed-off-by: Michael Gnehr <michael@gnehr.de>
* update dependencies and various tweaks (#7344)silverwind2019-07-022-28/+26
| | | | | | | | | - ran `make npm-update` - ran `make js`, fixed new lint issue - ran `make css`, this added back some vendor prefixes - added `engines` property to package.json to specify minimum required Node.js version - added `private` property to package.json to prevent accidential publishing to npm
* wrap long texts on user profile info (#7333)Cherrg2019-06-302-0/+6
| | | | | | | fix #7255 discussed in PR #7254 Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix topic bar to allow prefixes (#7325)Cherrg2019-06-301-4/+37
| | | | | | | | | | | | | | | | | | | | | | | | * - do not select if escape is pressed - allow prefixes by adding current request content to result list - remove html-tags before insert on page fix #7126 Signed-off-by: Michael Gnehr <michael@gnehr.de> * sort current query to top Signed-off-by: Michael Gnehr <michael@gnehr.de> * remove already added topics from dropdown list Signed-off-by: Michael Gnehr <michael@gnehr.de> * protoct against xss thanks to @silverwind Signed-off-by: Michael Gnehr <michael@gnehr.de>
* Add commit statuses reports on pull request view (#6845)Lunny Xiao2019-06-304-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add commit statuses reports on pull view * Add some translations * improve the UI * fix fmt * fix tests * add a new test git repo to fix tests * fix bug when headRepo or headBranch missing * fix tests * fix tests * fix consistency * fix tests * fix tests * change the test repo * fix tests * fix tests * fix migration * keep db size consistency * fix translation * change commit hash status table unique index * remove unused table * use char instead varchar * make hashCommitStatusContext private * split merge section with status check on pull view ui * fix tests; fix arc-green theme on pull ui
* Dark theme fixes (#7319)Cherrg2019-06-282-0/+92
| | | | | | | | | | * add dark theme for jquery xdsoft_datetimepicker Signed-off-by: Michael Gnehr <michael@gnehr.de> * add border to dark theme - not checked issue checkboxes Signed-off-by: Michael Gnehr <michael@gnehr.de>
* gitea own dark codemirror theme (#7317)Cherrg2019-06-282-18/+137
| | | | | | | | | | | | * modify dark codemirror theme fix #6573 Signed-off-by: Michael Gnehr <michael@gnehr.de> * add selection color Signed-off-by: Michael Gnehr <michael@gnehr.de>
* replace lesshint with stylelint (#7305)silverwind2019-06-277-126/+50
| | | | | | | | | New CSS linter which is much more powerfull than the previous one. Configuration is default but I had to remove a few rules that were throwing too many or weird errors. More importantly, the linter will exit with code 1 on errors so now our build will fail if the CSS linter fails which should eliminate linter errors being introduced without notice.
* fix extra newlines when copying from diff in Firefox (#7288)silverwind2019-06-266-23/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix extra newlines when copying from diff See https://bugzilla.mozilla.org/show_bug.cgi?id=1273836 Basically, the <pre><code> seems to add a forced newline that is not possible to get rid of via CSS, so I replaced it with just a <code>. Secondly, .lines-type-marker also forced a newline in the copied text, but that was possible to get rid of via user-select. Safari still has a extraneous newline in the copied text of unknown origin, but this should not block stop this PR. * simplify .line-type-marker * fix selector * remove erronous ^^^ * Fix empty split diff * Fix arc-theme-green * fix add comment * ensure line-num is copied too * Update templates/repo/diff/box.tmpl Co-Authored-By: zeripath <art27@cantab.net> * attempt to fix safari via removing <code> * remove useless whitespace at the end of 'class' * remove inter-tag whitespace for code <td>s * more inter-tag removal * final inter-tag removal * attempt to fix empty line copy * move and comment getLineContent * fix golint * make background grey for missing added code
* Make diff line-marker non-selectable (#7279)zeripath2019-06-242-8/+32
| | | | | | | | * Make diff line-marker non-selectable * Move to use data-* as per @mrsdizzie * fix missing line nums * Add a minimum-width to force right-align of the line num * Move line-type-marker into separate column
* Dark theme markdown fixes (#7260)Cherrg2019-06-213-4/+39
| | | | | | | | | | | | | | | | | | | | | * fix colors in dark theme - tables inside rendered markdown Signed-off-by: Michael Gnehr <michael@gnehr.de> * fix colors in dark theme - simpleMDE rendered preview Signed-off-by: Michael Gnehr <michael@gnehr.de> * Update public/less/themes/arc-green.less remove scroll bar color, to add this globally on additional PR Co-Authored-By: Lauris BH <lauris@nix.lv> Signed-off-by: Michael Gnehr <michael@gnehr.de> * add missing class name Signed-off-by: Michael Gnehr <michael@gnehr.de>
* add .fa margin like .octicon (#7258)Antoine GIRARD2019-06-202-2/+2
|
* Update css (#7240)zeripath2019-06-181-16/+16
| | | Remove -o-tab-size selectors from tab-sze-1 css
* UI: Fix overflow issues in repo (#7190)silverwind2019-06-142-0/+15
| | | | | | | | | | | - Fix layout overflow in repo file list. - Fix invisible status icon in file view and commit list. In file view, the icon was moved to the left because I could not figure out a proper fix because of HTML tables. - Added title attribute to commit messages. - Fixed two CSS linter warnings in existing CSS. - Fixed CI variable check in 'make css'. Fixes: https://github.com/go-gitea/gitea/issues/7180
* fix drone build bug (#7192)Cherrg2019-06-131-0/+2
|
* Compare branches, commits and tags with each other (#6991)Mario Lubenka2019-06-073-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Supports tags when comparing commits or branches Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Hide headline when only comparing and don't load unused data Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Merges compare logics to allow comparing branches, commits and tags with eachother Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Display branch or tag instead of commit when used for comparing Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Show pull request form after click on button Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Transfers relevant pull.go changes from master to compare.go Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Fixes error when comparing forks against a commit or tag Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes console.log from JavaScript file Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Show icon next to commit reference when comparing branch or tag Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Updates css file Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Fixes import order * Renames template variable * Update routers/repo/compare.go Co-Authored-By: zeripath <art27@cantab.net> * Update from master Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Allow short-shas in compare * Renames prInfo to compareInfo Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Check PR permissions only if compare is pull request Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adjusts comment Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use compareInfo instead of prInfo
* Migration Tweaks (#6260)John Olheiser2019-06-041-0/+8
| | | | | | | | | | | | | | | | | | | * Adds auto-name if repo name is blank Adds error checking before sanitization in migration Signed-off-by: jolheiser <john.olheiser@gmail.com> * Changed err from sanitization to a different variable Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove handleCreatePost and implement separately Signed-off-by: jolheiser <john.olheiser@gmail.com> * Make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Repository avatar fallback configuration (#7087)Mario Lubenka2019-06-021-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Only show repository avatar in list when one was selected Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds fallback configuration option for repository avatar Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Implements repository avatar fallback Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds admin task for deleting generated repository avatars Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Solve linting issues Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Save avatar before updating database * Linting * Update models/repo.go Co-Authored-By: zeripath <art27@cantab.net>
* Repository avatars (#6986)Sergey Dryabzhinsky2019-05-292-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Repository avatars - first variant of code from old work for gogs - add migration 87 - add new option in app.ini - add en-US locale string - add new class in repository.less * Add changed index.css, remove unused template name * Update en-us doc about configuration options * Add comments to new functions, add new option to docker app.ini * Add comment for lint * Remove variable, not needed * Fix formatting * Update swagger api template * Check if avatar exists * Fix avatar link/path checks * Typo * TEXT column can't have a default value * Fixes: - remove old avatar file on upload - use ID in name of avatar file - users may upload same files - add simple tests * Fix fmt check * Generate PNG instead of "static" GIF * More informative comment * Fix error message * Update avatar upload checks: - add file size check - add new option - update config docs - add new string to en-us locale * Fixes: - use FileHEader field for check file size - add new test - upload big image * Fix formatting * Update comments * Update log message * Removed wrong style - not needed * Use Sync2 to migrate * Update repos list view - bigger avatar - fix html blocks alignment * A little adjust avatar size * Use small icons for explore/repo list * Use new cool avatar preparation func by @lafriks * Missing changes for new function * Remove unused import, move imports * Missed new option definition in app.ini Add file size check in user/profile avatar upload * Use smaller field length for Avatar * Use session to update repo DB data, update DeleteAvatar - use session too * Fix err variable definition * As suggested @lafriks - return as soon as possible, code readability
* bug fix: add single comment in split diff mode (#4745) (#7052)Rob Watson2019-05-291-0/+4
| | | Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
* Revert "Bugfix: Align comment label and actions to the right (#7024)" (#7055)Lunny Xiao2019-05-262-4/+4
| | | This reverts commit 0c432d26fe20d3e50da566cf75fa483376ed8bef.
* Bugfix: Align comment label and actions to the right (#7024)Mario Lubenka2019-05-252-4/+4
| | | | | | | | | | * Bugfix: Align comment label and actions to the right Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Restores relative position * CSS autofixer
* Show git-notes (#6984)Vladimir Panteleev2019-05-242-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | * Show git-notes * Make git-notes heading text localizable * Refactor git-notes data fetching to a separate function * Display the author and time of git notes * Move note bubble inside the commit bubble * Revert "Move note bubble inside the commit bubble" This reverts commit c0951fe0e3b4dea38064515546b1825c1bcf19e1. * Add test for git-notes * testing ui * Polish CSS * Apply suggestions from code review Co-Authored-By: Lauris BH <lauris@nix.lv>
* Add support of utf8mb4 for mysql (#6992)Lunny Xiao2019-05-241-3/+3
|
* add make targets for js and css, add js linter (#6952)silverwind2019-05-162-78/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add make targets for js,css, add javascript linter - add `make js`, deprecating `make javascripts` - add `make css`, deprecating `make generate-stylesheets` and `make stylesheets-check` - changed the unclean css check to only run on CI - add JS linting via eslint with basic configuration and fixed discovered issues - changed autoprefixer to use official `postcss-cli` avoiding the need to loop in the makefile - moved browserslist to package.json so other future tools can use it too. - update documentation for new make targets and added JS section * fix indentation * move functions used in html to 'exported' list * Run lessc binary without having to install anything to node_modules * use relative paths to node bin scripts, removing npx * Revert "use relative paths to node bin scripts, removing npx" This reverts commit 119b725525a8430b32ee7a6e6009b4ece544e39b. * fix lessc and postcss plugins * check for node_modules and use actual bin names
* Fix code overflow (#6914)Xaver Maierhofer2019-05-142-0/+7
|
* Fix plain text overflow line wrap (#6915)Xaver Maierhofer2019-05-142-0/+6
|
* Add less linter via npx (#6936)Xaver Maierhofer2019-05-1416-371/+558
|
* Style orgs list in user profile (#6911)Xaver Maierhofer2019-05-132-0/+17
|
* Use single line per selector & don't strip license comments (#6919)Xaver Maierhofer2019-05-132-2/+1218
|
* Clean less files (#6921)Xaver Maierhofer2019-05-1317-999/+1385
|
* Fix input size for dependency select (#6913)Xaver Maierhofer2019-05-122-3/+12
|
* Improve migrations to support migrating ↵Lunny Xiao2019-05-071-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | milestones/labels/issues/comments/pullrequests (#6290) * add migrations * fix package dependency * fix lints * implements migrations except pull requests * add releases * migrating releases * fix bug * fix lint * fix migrate releases * fix tests * add rollback * pull request migtations * fix import * fix go module vendor * add tests for upload to gitea * more migrate options * fix swagger-check * fix misspell * add options on migration UI * fix log error * improve UI options on migrating * add support for username password when migrating from github * fix tests * remove comments and fix migrate limitation * improve error handles * migrate API will also support migrate milestones/labels/issues/pulls/releases * fix tests and remove unused codes * add DownloaderFactory and docs about how to create a new Downloader * fix misspell * fix migration docs * Add hints about migrate options on migration page * fix tests
* Refactor table width to have more info shown in file list (#6867)Lauris BH2019-05-062-112/+419
| | | | | | | | * Refactor table width to have more info shown in file list * Remove unnecesary semicolon * Fix tests for changed html structure
* Add GET requests to webhook (#6771)Simon2019-05-051-0/+9
| | | | | | | | | | | | | | * Add GET requests to webhook * make fmt * Handle invalid http method on webhook * Uppercase http method in webhook * Rename v85.go to v86.go * make fmt
* Number of commits ahead/behind in branch overview (#6695)Mario Lubenka2019-05-052-1/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Call Git API to determine divergence of a branch and its base branch Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Show commit divergance in branch list Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds missing comment Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds test for diverging commits Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Try comparing commits instead of branches Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes test as CI can't run it Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adjusts signature of percentage function to allow providing multiple integers as numerator Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Moves CountDivergingCommits function into repofiles module Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Show scrollbar only when needed (#6802)Lauris BH2019-04-292-3/+3
|