- 27 Oct, 2020 1 commit
-
-
silverwind authored
We rarely change fomantic-ui or its configuration so it's kind of a waste to have it rebuild on every CI run. These changes remove the fomantic files from the build and instead add the relevant output files to the git index, which should shave of 2-3 minutes on every CI run. `make fomantic` should still work and should be ran whenever fomantic is updated or its configuration is changed. Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-
- 29 Jul, 2020 1 commit
-
-
silverwind authored
* Move jquery-minicolors to npm/webpack - Unvendor and add as npm dependency - Removed unneeded backend variable - Fixed existing bug where picker would previously initizalize to the same green color when editing a label. There was probably a version bump because the previous version was over 3 years old but it seems to be compatible. * use file-loader * trailing comma and comment update * misc tweaks Co-authored-by:
Lauris BH <lauris@nix.lv> Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-
- 27 Jul, 2020 1 commit
-
-
silverwind authored
* Add 'watch-backend' This leverages `air` to watch the backend files and trigger `make backend` automatically when they change. It seems to work rather well together with `watch-frontend`. Fixes: https://github.com/go-gitea/gitea/issues/12318 * rework docs to a new section for continuous build Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-
- 12 Jul, 2020 1 commit
-
-
silverwind authored
Introduce 'make svg' which calls a node script that compiles svg files to `public/img/svg`. These files are vendored to not create a dependency on Node for the backend build. On the frontend side, configure webpack using `raw-loader` so SVGs can be imported as string. Also moved our existing SVGs to web_src/svg for consistency. Fixes: https://github.com/go-gitea/gitea/issues/11618
-
- 28 Jun, 2020 1 commit
-
-
silverwind authored
This saves around 3 MB binary size by not including useless fomantic files in the build. Also, this allows us to move jQuery into the main bundle as well which eliminates a few HTTP requests. Also included are webpack config changes: - split less and css loaders to speed up compliation - enable css sourcemaps - switch css minfier plugin to cssnano-webpack-plugin which works better for sourcemaps than the previous plugin Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-
- 18 Jun, 2020 1 commit
-
-
Lunny Xiao authored
Rename custom/conf/app.ini.sample to custom/conf/app.example.ini for better syntax light on editor (#11926) * Rename custom/conf/app.ini.sample to custom/conf/app.sample.ini for better syntax light on editor * rename to app.example.ini * per @6543 's comment, update all references on docs Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-
- 23 May, 2020 1 commit
-
-
zeripath authored
#11538 moved the serviceworker to webbox but unfortunately created the serviceworker in public/js rather than public/ This PR fixes this, fixing multiple issues with broken js as a result of that change. Signed-off-by: Andrew Thornton art27@cantab.net
-
- 14 May, 2020 1 commit
-
-
silverwind authored
* Switch code editor to Monaco This switches out CodeMirror for Monaco which is based on the same code base as VS code and should work pretty similar to it. It does add a few async chunks, totalling around 10MB to our build. It currently supports around 65 languages and in the default configuration, each language would emit one ugly [number].js chunk, so I opted to combine them all into a single file for now. CodeMirror is still being used under the hood by SimpleMDE so it can not be removed yet. * inline editorconfig, fix diff, use for markdown, remove more dead code * refactors, remove jquery usage * use tab_width * fix intellisense * rename function for clarity * misc tweaks, enable webpack progress display * only use --progress on dev build * remove useless borders in arc-green * fix typo * remove obsolete comment * small refactor * fix file creation and various refactors * unset useTabStops too when no editorconfig * small refactor * disable webpack's [big] warnings * remove useless await * fix dark theme check * rename chunk to 'monaco' * add to .gitignore and delete webpack dest before build * increase editor height * support more editorconfig properties * remove empty element filter * rename Co-authored-by:
John Olheiser <john.olheiser@gmail.com>
-
- 19 Apr, 2020 1 commit
-
-
guillep2k authored
* Add option to use /tmp for test repositories * Fix exit status * Add feedback about using tmp repos Co-authored-by:
Guillermo Prandi <guillep2k@users.noreply.github.com> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 05 Apr, 2020 1 commit
-
-
John Olheiser authored
* Add copyright Signed-off-by:
jolheiser <john.olheiser@gmail.com> * Add gitea-vet and fix non-compliance Signed-off-by:
jolheiser <john.olheiser@gmail.com> * Combine tools.go into build.go and clean up Signed-off-by:
jolheiser <john.olheiser@gmail.com> * Remove extra GO111MODULE=on Signed-off-by:
jolheiser <john.olheiser@gmail.com>
-
- 23 Feb, 2020 1 commit
-
-
silverwind authored
* Prevent Firefox from using apple-touch-icon The opaque background does not work well in Firefox which uses the icon as a "rich icon". Prevent this by not specifying it in HTML. Real Apple devices will still request the icon on the static path. Fixes: https://github.com/go-gitea/gitea/issues/10394 Also adjust gitignore so app.ini.sample becomes searchable and fixed a variable name in app.ini.sample. * fix gitignore
-
- 22 Feb, 2020 1 commit
-
-
silverwind authored
* Add frontend/backend make targets, fix source release - Add 'make backend' and 'make frontend' make targets which are used to build go and js/css/svg files respectively. - The 'backend' target can be invoked without requiring Node.js to be present on the system if pre-built frontend assets are present like in the release source tarballs. - Fix source releases missing 'dist' folders inside 'node_modules' which were erronously excluded from tar. - Store VERSION in file VERSION for the release tarballs and prefer that file over git-derived version. * fix release task * fix typo * fix another typo
-
- 11 Feb, 2020 1 commit
-
-
John Olheiser authored
* 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>
-
- 01 Feb, 2020 1 commit
-
-
guillep2k authored
* Use evidence file as dependency instead of dir * fix eol * Update .gitignore Co-Authored-By:
silverwind <me@silverwind.io> * Use FOMANTIC_SOURCES to establish dependencies as per @silverwind Co-authored-by:
silverwind <me@silverwind.io>
-
- 27 Jan, 2020 1 commit
-
-
zeripath authored
* Only generate bindata if necessary * Only generate bindata if they are not up-to-date * generate a hash of the fileinfo and use that to keep up-to-date * Newer test is redundant * handle missing bindata and clean * Only update hash after successful write * switch to sha1 hash * Apply suggestions from code review Co-Authored-By:
guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by:
guillep2k <18600385+guillep2k@users.noreply.github.com>
-
- 21 Jan, 2020 1 commit
-
-
Lunny Xiao authored
* 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>
-
- 28 Dec, 2019 1 commit
-
-
zeripath authored
Instead of just adding test generated files to .gitignore prevent them from being produced in the first place. Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 05 Dec, 2019 1 commit
-
-
silverwind authored
- 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
-
- 30 Oct, 2019 1 commit
-
-
jaqra authored
-
- 13 Oct, 2019 1 commit
-
-
Lunny Xiao authored
* move migrating to backend * add loading image when migrating and fix tests * fix format * fix lint * add redis task queue support and improve docs * add redis vendor * fix vet * add database migrations and fix app.ini sample * add comments for task section on app.ini.sample * Update models/migrations/v84.go Co-Authored-By:
lunny <xiaolunwen@gmail.com> * Update models/repo.go Co-Authored-By:
lunny <xiaolunwen@gmail.com> * move migrating to backend * add loading image when migrating and fix tests * fix fmt * add redis task queue support and improve docs * fix fixtures * fix fixtures * fix duplicate function on index.js * fix tests * rename repository statuses * check if repository is being create when SSH request * fix lint * fix template * some improvements * fix template * unified migrate options * fix lint * fix loading page * refactor * When gitea restart, don't restart the running tasks because we may have servel gitea instances, that may break the migration * fix js * Update models/repo.go Co-Authored-By:
guillep2k <18600385+guillep2k@users.noreply.github.com> * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By:
guillep2k <18600385+guillep2k@users.noreply.github.com> * fix tests * rename ErrTaskIsNotExist to ErrTaskDoesNotExist * delete release after add one on tests to make it run happy * fix tests * fix tests * improve codes * fix lint * fix lint * fix migrations
-
- 19 Jun, 2019 1 commit
-
-
silverwind authored
* add 'npm' and 'npm-update' make targets and lockfile - `make npm` installs and updates node_modules, triggered automatically on `make css` and `make js` as it completes reasonably fast and ensures consistent modules. - `make npm-update` updates all dependencies to their latest version, regenerates `node_modules` from scratch and updates `package-lock.json`. It uses npm modules `updates` written by yours truly to find the latest version of each dependency. * add suggested make dependencies * remove package-lock.json during npm-update * regenerate package-lock.json
-
- 16 May, 2019 1 commit
-
-
silverwind authored
* remove and disable package-lock Using exact versions in package.json has the same effect as lockfiles without all the troubles the lockfiles bring (different versions of package manager generating different lockfiles primarily). Ensured we only use exact versions in package.json and stopped generation of new lockfiles via .npmrc which is support by both the npm and yarn package managers. Fixes: https://github.com/go-gitea/gitea/issues/6967 * enable save-exact
-
- 07 May, 2019 1 commit
-
-
Lunny Xiao authored
* 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
-
- 17 Mar, 2019 1 commit
-
-
Lunny Xiao authored
-
- 21 Feb, 2019 1 commit
-
-
Lunny Xiao authored
* refactor issue indexer, add some testing and fix a bug * fix error copyright year on comment header * issues indexer package import keep consistent
-
- 12 Dec, 2018 1 commit
-
-
kolaente authored
* Added test environment for m$sql * Added template for test environment for m$sql * Fix password * Fix password (again) * Fix password (again again) * Fix db * Ci trigger (Looking at you drone....) * Ci trigger (Looking at you drone....) * Ci trigger (Looking at you drone....) * Ci trigger (Looking at you drone....) * Create master database for mssql integration tests Signed-off-by:
Jonas Franz <info@jonasfranz.software> * Create database only if master do not exist Signed-off-by:
Jonas Franz <info@jonasfranz.software> * Fix mssql integration tests by using custom database "gitea" Signed-off-by:
Jonas Franz <info@jonasfranz.software> * Moved defer * bump xorm * updated xorm * Fixed build
-
- 09 May, 2018 1 commit
-
-
Thorben authored
* Modify tbraeutigam/gogs-snap for gitea * Fix building on 16.04 (manually build go-bindata). -> add _source.tar.bz2 to .gitignore (used by snapcraft cleanbuild) * Streamline Snap packaging: - Take advantage of install-hooks (snapd 2.27) - Use snapctl configuration storage for unchanging values * Move to using Snap Hooks for configuration * Missed re-adding daemon statement * Fix two warnings from Codacy.
-
- 21 Sep, 2017 1 commit
-
-
silverwind authored
* Use standard lessc and minify CSS using Node.js This changes the previous nonstandard `lessc` to the official one and enables CSS minification via the clean-css module. To build CSS, Node.js is required along with a `npm install` to get the tools installed locally in node_modules so there is no dependency on binaries in PATH. Benefits include: - Allows one to have a standard lessc in PATH. - Can now use command line switches on lessc. - Minified CSS brings faster page load times and also has the benefit of discouraging contributors from editing CSS directly. To build CSS, Node.js is required along with a `npm install` to get the tools installed locally based on the information in `package.json`. The 'make stylesheet' task was modified to run without condition. This makes it easier to work on the make task itself without having to delete files. Also fixes: https://github.com/go-gitea/gitea/issues/2198 * install node, npm and modules on drone * .PHONY * use 'minify' to minify CSS
-
- 16 Sep, 2017 1 commit
-
-
Ethan Koenig authored
* Improve issue indexer * Fix new issue sqlite bug * Different test indexer paths for each db * Add integration indexer paths to make clean
-
- 13 Sep, 2017 2 commits
-
-
Bo-Yi Wu authored
* add codecov.io service. Signed-off-by:
Bo-Yi Wu <appleboy.tw@gmail.com> * update Signed-off-by:
Bo-Yi Wu <appleboy.tw@gmail.com> * only PR or master branch (for coverage badge) Signed-off-by:
Bo-Yi Wu <appleboy.tw@gmail.com> * update Signed-off-by:
Bo-Yi Wu <appleboy.tw@gmail.com> * update init Signed-off-by:
Bo-Yi Wu <appleboy.tw@gmail.com>
-
Lauris BH authored
-
- 12 Sep, 2017 2 commits
-
-
Lauris BH authored
* Basic VSCode configuration for building and debugging * Fix building and debugging in Windows * Move to contrib folder and add instructions
-
Antoine GIRARD authored
* Fix test : make coverage -> test * Refactor integration tests to be able to run them in parallel * Add custom local repository temp path
-
- 15 Jun, 2017 1 commit
-
-
Ethan Koenig authored
-
- 04 Jun, 2017 1 commit
-
-
Bo-Yi Wu authored
* fix: error from mktemp command in MacOS. * [ci skip] udpate temp name. Signed-off-by:
Bo-Yi Wu <appleboy.tw@gmail.com>
-
- 28 Apr, 2017 1 commit
-
-
Lunny Xiao authored
* improve integration test to resue models/fixtures and store git repos with source * use gitea-integration-meta dir instead .tar.gz and cleanup every before every test * fix import package name
-
- 25 Apr, 2017 1 commit
-
-
Ethan Koenig authored
* Integration test framework * udpate drone sign * Formatting fixes and move router.go to routers/ * update sign for drone
-
- 25 Jan, 2017 1 commit
-
-
Ethan Koenig authored
-
- 22 Dec, 2016 1 commit
-
-
Thomas Boerger authored
* Moved conf assets into options folder * Dropped old bindata * Started to integrate options bindata and accessors * Do not enforce a builtin app.ini * Replaced bindata calls with options * Dropped bindata task from makefile, it's the generate task now * Always embedd app.ini to provide sane config defaults * Use sane defaults for the configuration * Defined default value for SSH_KEYGEN_PATH * Dropped "NEVER EVER MODIFY THIS FILE" header from app.ini * Fixed new paths in latest test additions * Drop bindata with make clean task * Set more proper default values
-
- 06 Dec, 2016 1 commit
-
-
Thomas Boerger authored
Integrated optional bindata for the templates
-