summaryrefslogtreecommitdiffstats
path: root/public
Commit message (Collapse)AuthorAgeFilesLines
* move jquery-datetimepicker to npm/webpack (#10713)silverwind2020-03-174-2643/+6
| | | | | | | | | - 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>
* Move dropzone.js to npm/webpack (#10645)silverwind2020-03-074-2163/+3
| | | | - unvendor dropzone and upgrade it from 4.2.0 to 5.7.0 - make `csrf` available on window.config
* OAuth2: add Yandex provider (#8335) (#10564)Lauris BH2020-03-051-0/+0
| | | | | | | | | | | | | | | | | | | | | | * OAuth2: add Yandex provider (#8335) * remove changes from locale ru-RU * fmt modules/auth/oauth2/oauth2.go Co-Authored-By: 6543 <6543@obermui.de> * fix fmt * Update templates/admin/auth/new.tmpl * fix fmt Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* nextcloud oauth (#10562)techknowlogick2020-03-021-0/+0
| | | Fix #7078
* move vue and vue-calendar-heatmap to webpack (#10188)silverwind2020-02-236-150/+4
| | | | | | | | | | | | - 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
* optimize public/img/loading.png (#10372)silverwind2020-02-191-0/+0
|
* Change loading animation frame order (#10358)Lauris BH2020-02-191-0/+0
|
* Add feishu webhook support (#10229)Lunny Xiao2020-02-121-0/+0
| | | | Add feishu webhook support
* Add Octicon SVG spritemap (#10107)John Olheiser2020-02-117-451/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* move clipboard.js to npm/webpack (#10183)silverwind2020-02-083-27/+2
| | | | | | | | - 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>
* remove VERSIONS file (#10070)silverwind2020-02-011-63/+0
| | | | | It serves no clear purpose and is not used anywhere to my knowledge. Also, it's name to version mapping doesn't work with bundling.
* fix apple-touch-icon, regenerate images (#10065)silverwind2020-01-305-0/+0
| | | | | | | | | | | | | * fix apple-touch-icon, regenerate images Fixed semi-transparent pixels of apple-touch-icon.png. I had to manually exclude public/img/loading.png from the commit because it's an APNG and one of the tools destroys the animation. * exclude loading.png Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* move jquery.are-you-sure to npm/webpack (#10063)silverwind2020-01-294-214/+1
|
* add touch-icon with background (#10022)NiTRoeSE2020-01-281-0/+0
| | | | | | | | | | | | * add touch-icon with background ...to prevent ugly glitch while minimize app to homescreen * add / generate apple-touch-icon * run make command Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* move highlight.js to npm/webpack (#10011)silverwind2020-01-286-229/+4
| | | | | | | | | | - introduced window.config to help with js-based lazy-loading - adjusted webpack chunk naming to avoid 'vendors~name.js' that webpack defaults to for vendor chunks. - added theme class to html and prefixed all selectors. this is neccesary so that the theme styles win over the lazy-loaded ones. Co-authored-by: zeripath <art27@cantab.net>
* Change font to Roboto to support more charsets (#9803)Lauris BH2020-01-2529-1777/+3
|
* remove loadCSS and preload woff2 icon fonts (#9976)silverwind2020-01-255-38/+0
| | | | | | | | | | loadCSS was used as a polyfill for rel=preload but it seems we only used it on a single CSS file which did not help much. Changed the icon CSS to a blocking load and preload the woff2 variants which does work in modern browsers (Firefox currently needs the network.preload about:config setting but should gain proper support soon). Co-authored-by: zeripath <art27@cantab.net>
* fix wrong font url on semantic-ui (#9917)Lunny Xiao2020-01-212-2/+2
| | | | Co-authored-by: Lauris BH <lauris@nix.lv>
* move jquery and jquery-migrate to npm/webpack (#9813)silverwind2020-01-214-238/+3
| | | | | | | | | | Currently, this needs to be its own chunk because fomantic depends on jQuery being present. The next step is to move fomantic to webpack too after which we can combine the index,fomantic and jquery files into one. jquery-migrate is still neccessary because our ancient version of Dropzone seems to break without it. I imagine it can be removed after a Dropzone upgrade.
* Use npm to manage fomantic and only build needed components (#9561)Lunny Xiao2020-01-2134-108123/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use npm to manage fomantic * Only build needed semantic components * Fix make * Don't import fonts from google sites since we have loaded * [misc] devendor fomantic-ui and rebuild upon src or config changes only Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * Change sort alphabetically of semantic components * Fix trailing slash * fix makefile * Remove dependency to gulp from package.json * Fix something * Simplife the makefile * add missed fomantic compnent Co-authored-by: Jakob Ackermann <das7pad@outlook.com>
* remove promise-polyfill (#9812)silverwind2020-01-162-6/+0
| | | promises are polyfilled by babel, it's no longer needed.
* move swagger-ui to webpack/npm (#9714)silverwind2020-01-1412-250/+0
| | | | | | Created a second webpack output file for swagger-ui which is loaded on the /api/swagger route. One notable difference is the absence of the swagger favicon that was previously used which is now the gitea icon. I see no easy way to restore that favicon, so I decided to not keep it.
* remove google font call (#9668)techknowlogick2020-01-092-3/+1
|
* Upgrade lato fonts to v16. (#9498)Lunny Xiao2019-12-2544-0/+0
| | | | | | | | * Upgrade lato fonts to v16 * Upgrade lato fonts to v16 * fix bug
* switch to fomantic-ui (#9374)techknowlogick2019-12-1755-3345/+105107
|
* Add Node.js build dep, remove built js/css files (#9114)silverwind2019-12-056-1376/+0
| | | | | | | | | - Added Node.js as build dependency and removes build files from git. - Added version checks for both Go and Node.js. - Overhauled the js/css make target to only run when needed. - Merged the `generate` make target into `build` as per suggestion. Fixes: https://github.com/go-gitea/gitea/issues/6782 Fixes: https://github.com/go-gitea/gitea/issues/9216
* Fixed topics margin (#9248)Alexey 〒erentyev2019-12-031-0/+1
| | | Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Change some label colors (#9051)jaqra2019-12-031-0/+1
| | | | | | * Change label colors * Override black basic label background for green theme on label list
* Branch protection: Possibility to not use whitelist but allow anyone with ↵David Svantesson2019-12-032-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | write access (#9055) * Possibility to not use whitelist but allow anyone with write access * fix existing test * rename migration function * Try to give a better name for migration step * Clear settings if higher level setting is not set * Move official reviews to db instead of counting approvals each time * migration * fix * fix migration * fix migration * Remove NOT NULL from EnableWhitelist as migration isn't possible * Fix migration, reviews are connected to issues. * Fix SQL query issues in GetReviewersByPullID. * Simplify function GetReviewersByIssueID * Handle reviewers that has been deleted * Ensure reviews for test is in a well defined order * Only clear and set official reviews when it is an approve or reject.
* Fix context menu overflow & review tag margin (#9231)John Olheiser2019-12-031-1/+3
| | | | | | | | | | * Fix context menu overflow Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add review tag CSS Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fixed topic regex pattern and added search by topic links after save (#9219)Alexey 〒erentyev2019-12-022-2/+2
| | | Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Add comment highlight when target from url (#9047)jaqra2019-11-253-2/+3
| | | | | | | | | | | | | | | | * Add comment highlight css * Add js to remove highlight on click outside * Improve refresh page on click outside * Use location.hash property to remove target * Handle click ONLY clicked outside of 'targetted comment' (not other comment) * Remove unnecessary checks and simply code * Combine hash and setState to remove target path
* fix add comment button text align (#9140)Benno2019-11-241-1/+1
|
* Add single sign-on support via SSPI on Windows (#8463)QuaSoft2019-11-232-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
* move semantic.dropdown.custom.js to webpack (#9064)silverwind2019-11-216-4029/+6
| | | | | | | | | | | | | * move semantic.dropdown.custom.js to webpack Also disabled a annoying linter rule which insisted that imports can not contain a file extension. Fixes: https://github.com/go-gitea/gitea/issues/8971 * reorganize web_src files and rebuild * restart ci
* Add password requirement info on error (#9074)guillep2k2019-11-191-0/+1
| | | | | | | | | | | | | | * Add password requirement info on error * Move BuildComplexityError to the password pkg * Unexport complexity type * Fix extra line * Update modules/password/password.go Co-Authored-By: Lauris BH <lauris@nix.lv>
* Context menus for comments (#9043)John Olheiser2019-11-193-2/+3
| | | | | * Add quote replies Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix double scroll in branch dropdown (#9048)Vedran2019-11-181-1/+1
| | | | | | | | | | * Fix double scroll in branch dropdown * Revert of 425ae38aa9ea3e9a25dee235aa9176762fe4bc5b * Changes in .less, generated new .css * Revert unnecessary commented line
* enable lazy-loading of gitgraph.js (#9036)silverwind2019-11-179-481/+6
| | | | | | | | | | | | | | | | | - moved gitgraph.js to web_src and made it importable and es6-compatible - created new webpack chunk for gitgraph - enabled CSS loader in webpack - enabled async/await syntax via regenerator-runtime - added script to ensure webpack chunks are loaded correctly - disable terser's comment extraction to prevent .LICENCE files gitgraph.js has many issues: 1. it is incompatible with ES6 because of strict-mode violations 1. it does not export anything 1. it's css has weird styles like for `body` 1. it is not available on npm I fixed points 1-3 in our version so it's now loadable in webpack. We should eventually consider alternatives.
* wiki - add 'write' 'preview' buttons to wiki edit like in issues (#7241)Cherrg2019-11-174-2/+7
| | | | | | | | | | | | | | | | | | | | * Add add 'write' 'preview' buttons to wiki edit like in issues affects #6975 Signed-off-by: Michael Gnehr <michael@gnehr.de> * update dark theme Signed-off-by: Michael Gnehr <michael@gnehr.de> * fix css lint warnings - missing spaces Signed-off-by: Michael Gnehr <michael@gnehr.de> * hide preview button on no fullscreen toolbar Signed-off-by: Michael Gnehr <michael@gnehr.de>
* wiki - editor - enable side-by-side button (#7242)Cherrg2019-11-163-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wiki - enable side-by-side button in editor and add some delay so side-by-side live preview is updated * every 10th keypress * if keypress < 10 -> apter no input for 1 sec affects #5436 Signed-off-by: Michael Gnehr <michael@gnehr.de> * decrease timeinterval user need to stop before rendering is triggered Signed-off-by: Michael Gnehr <michael@gnehr.de> * removed not needed code with simpleMDE placeholder Signed-off-by: Michael Gnehr <michael@gnehr.de> * run highlight.js on markdown preview Signed-off-by: Michael Gnehr <michael@gnehr.de> * fix white border around side-by-side preview Signed-off-by: Michael Gnehr <michael@gnehr.de>
* Update display of reactions to issues and comments (#9038)mrsdizzie2019-11-151-4/+5
| | | | Modify display of reactions to issues to remove spaces and make them feel more apart of the reactions bar rather than separate items within.
* Expand/Collapse Files and Blob Excerpt while Reviewing/Comparing code (#8924)Benno2019-11-153-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update #8659 fold/unfold code diffs * add fold button style * update #8659 implement expand up/down codes (blob excerpt) * fix golint errors * fix expand direction * remove debug message * update css style for blob exceprt * fix typo in comment * update style sheet with less * update expect diff (add SectionInfo) * update #8942 accept suggested change (fix typo) * close reader and check file type before get tail section * adjust button position and check file type before insert fold button * move index js to web_src * merge index.js with master * generate index.js * update js coding style
* Pack web_src/js/draw.js to public/js/index.js (#8975)Lunny Xiao2019-11-144-23/+3
| | | | | | * pack web_src/js/draw.js to public/js/index.js * fix eslint
* modernize js and use babel (#8973)silverwind2019-11-144-10/+10
| | | | | | | | | | | | | | * modernize js and use babel - add babel toolchain to transform modern JS to ES5 - extend eslint config for modern rules - fixes linting issues via `eslint --fix` and manual fixes * run 'make css' to satisfy CI * code style tweaks and set js indendation to 2 in .editorconfig * regenerate js
* fix bug when pack js (#8992)Lunny Xiao2019-11-142-2/+2
|
* [Feature] Add Gitea Emoji (#8950)65432019-11-145-6/+3
| | | | | | | | | | | | | | * add gitea emoji * alphabetic order * Update emojify.js to 1.1.0 * mv to custom * add gitea emoji * minify
* Move index.js to web_src and use webpack to pack them (#8598)Lunny Xiao2019-11-132-3424/+3
| | | | | | | | | | | | * Move index.js to web_src and use webpack * Fix initHeatMap * update eslint and move webpack to devDependencies * update index.js * add eslint env node
* Move less from public/ to web_src/ so that it will not be packe… (#8908)Lunny Xiao2019-11-1218-6777/+0
|
* js: Revert change to click behaviour in forceSelection (#8921)Jookia2019-11-111-1/+1
| | | | Calling .click() in forceSelection() in blur() causes a focus loop, this needs a proper fix later but for now just revert the change.