1. 27 Oct, 2020 1 commit
    • silverwind's avatar
      Precompile fomantic-ui files (#13332) · 946bbbe9
      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: default avatartechknowlogick <techknowlogick@gitea.io>
      Unverified
      946bbbe9
  2. 29 Jul, 2020 1 commit
  3. 27 Jul, 2020 1 commit
  4. 12 Jul, 2020 1 commit
  5. 28 Jun, 2020 1 commit
    • silverwind's avatar
      Move fomantic and jQuery to main webpack bundle (#11997) · 7761245d
      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: default avatartechknowlogick <techknowlogick@gitea.io>
      Unverified
      7761245d
  6. 18 Jun, 2020 1 commit
  7. 23 May, 2020 1 commit
  8. 14 May, 2020 1 commit
    • silverwind's avatar
      Switch code editor to Monaco (#11366) · 9249c810
      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: default avatarJohn Olheiser <john.olheiser@gmail.com>
      Unverified
      9249c810
  9. 19 Apr, 2020 1 commit
  10. 05 Apr, 2020 1 commit
  11. 23 Feb, 2020 1 commit
  12. 22 Feb, 2020 1 commit
    • silverwind's avatar
      Add frontend/backend make targets, fix source release (#10325) · 2ed9ead6
      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
      Unverified
      2ed9ead6
  13. 11 Feb, 2020 1 commit
  14. 01 Feb, 2020 1 commit
  15. 27 Jan, 2020 1 commit
  16. 21 Jan, 2020 1 commit
  17. 28 Dec, 2019 1 commit
  18. 05 Dec, 2019 1 commit
  19. 30 Oct, 2019 1 commit
  20. 13 Oct, 2019 1 commit
    • Lunny Xiao's avatar
      Move migrating repository from frontend to backend (#6200) · f2a3abc6
      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: default avatarlunny <xiaolunwen@gmail.com>
      
      * Update models/repo.go
      Co-Authored-By: default avatarlunny <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: default avatarguillep2k <18600385+guillep2k@users.noreply.github.com>
      
      * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md
      Co-Authored-By: default avatarguillep2k <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
      Unverified
      f2a3abc6
  21. 19 Jun, 2019 1 commit
    • silverwind's avatar
      add 'npm' and 'npm-update' make targets and lockfile (#7246) · a71cabbd
      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
      a71cabbd
  22. 16 May, 2019 1 commit
    • silverwind's avatar
      remove and disable package-lock (#6969) · 04f996f1
      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
      04f996f1
  23. 07 May, 2019 1 commit
    • Lunny Xiao's avatar
      Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) · 08069dc4
      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
      Unverified
      08069dc4
  24. 17 Mar, 2019 1 commit
  25. 21 Feb, 2019 1 commit
  26. 12 Dec, 2018 1 commit
    • kolaente's avatar
      Added test environment for mssql (#4282) · 6db7dbd3
      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: default avatarJonas Franz <info@jonasfranz.software>
      
      * Create database only if master do not exist
      Signed-off-by: default avatarJonas Franz <info@jonasfranz.software>
      
      * Fix mssql integration tests by using custom database "gitea"
      Signed-off-by: default avatarJonas Franz <info@jonasfranz.software>
      
      * Moved defer
      
      * bump xorm
      
      * updated xorm
      
      * Fixed build
      6db7dbd3
  27. 09 May, 2018 1 commit
    • Thorben's avatar
      snap-packaging for gitea (#2568) · 14f16d6c
      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.
      14f16d6c
  28. 21 Sep, 2017 1 commit
    • silverwind's avatar
      Use standard lessc and minify CSS using Node.js (#2337) · 1fbfccb4
      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
      1fbfccb4
  29. 16 Sep, 2017 1 commit
    • Ethan Koenig's avatar
      Improve issue search (#2387) · b0f7457d
      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
      b0f7457d
  30. 13 Sep, 2017 2 commits
  31. 12 Sep, 2017 2 commits
  32. 15 Jun, 2017 1 commit
  33. 04 Jun, 2017 1 commit
  34. 28 Apr, 2017 1 commit
  35. 25 Apr, 2017 1 commit
  36. 25 Jan, 2017 1 commit
  37. 22 Dec, 2016 1 commit
    • Thomas Boerger's avatar
      Bindata is optional and over-writable on restart (#354) · b33078fa
      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
      b33078fa
  38. 06 Dec, 2016 1 commit