Commit Graph

69 Commits

Author SHA1 Message Date
GitLab Bot ae78b85a25 Add latest changes from gitlab-org/gitlab@master 2020-02-24 12:09:00 +00:00
GitLab Bot 411cc77938 Add latest changes from gitlab-org/gitlab@master 2020-01-24 18:09:00 +00:00
GitLab Bot 045c0f9554 Add latest changes from gitlab-org/gitlab@master 2020-01-06 12:07:56 +00:00
GitLab Bot d10a462fed Add latest changes from gitlab-org/gitlab@master 2019-12-16 12:07:43 +00:00
GitLab Bot ed73d4f207 Add latest changes from gitlab-org/gitlab@master 2019-12-06 03:08:02 +00:00
GitLab Bot 2349eabc1a Add latest changes from gitlab-org/gitlab@master 2019-12-06 00:07:48 +00:00
GitLab Bot 134fe18200 Add latest changes from gitlab-org/gitlab@master 2019-12-05 21:07:40 +00:00
GitLab Bot 4f01ac5ba0 Add latest changes from gitlab-org/gitlab@master 2019-11-13 09:06:41 +00:00
GitLab Bot 9a1c545674 Add latest changes from gitlab-org/gitlab@master 2019-10-03 15:07:07 +00:00
GitLab Bot 2abb1b54c0 Add latest changes from gitlab-org/gitlab@master 2019-09-27 18:06:20 +00:00
GitLab Bot 504ab1e32c Add latest changes from gitlab-org/gitlab@master 2019-09-25 00:06:12 +00:00
GitLab Bot 150effab27 Add latest changes from gitlab-org/gitlab@master 2019-09-24 21:06:18 +00:00
Tristan Read 5e6a58040b Remove gfm_embed_metrics flag from BE
Removes the feature flag that controls whether
metrics dashboard urls unfurl the metrics dashboard
charts.
2019-08-09 20:35:43 +00:00
Sarah Yasonik 9062c9f11b Push feature flag for embedding metrics 2019-07-09 04:04:59 +00:00
Roger Meier 946ffc67b7 refactor: remove Sentry from application settings 2019-06-25 21:17:19 +02:00
Roger Meier aebb2f7025 feat: allow Sentry configuration to be passed on gitlab.yml 2019-04-30 18:10:57 +02:00
Filipa Lacerda ec7835946a Creates a function to check if repo is EE
Adds EE information to gon
Creates a global vue mixin
2019-03-04 08:20:37 +00:00
Fabian Schneider 864ce6b87a Rename setting, fix wordings 2019-02-06 17:33:57 +01:00
Fabian Schneider 27f7771ae1 Add setting for first day of the week 2019-02-06 17:33:56 +01:00
Stan Hu 2265ce34af Fix no avatar not showing in user selection box
After upgrading to Ruby 2.5.3, we switched `URI.join` in favor of
`Gitlab::Utils.append_path`. However,
ActionController::Base.helpers.image_path can return a full URL if a CDN
host is present.

Rails provides a way to generate the full URL using the asset path, but
that doesn't appear to work because `request` is nil`.

Revert to the previous behavior to handle CDNs and relative URLs.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56268
2019-01-13 08:02:02 -08:00
Stan Hu 39f252254b Make sure there's only one slash as path separator
In Ruby 2.4, `URI.join("http://test//", "a").to_s` will
remove the double slash, however it's not the case in
Ruby 2.5. Using chomp should work better for the intention,
as we're not trying to allow things like ../ or / paths
resolution.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53180
2018-11-09 15:36:45 -08:00
gfyoung c858f70d07 Enable frozen string for lib/gitlab/*.rb 2018-10-22 07:00:50 +00:00
Yorick Peterse 21940d1edf
Support pushing of feature flags to the frontend
This adds a method to Gitlab::GonHelper called
`push_frontend_feature_flag`. This method can be used to easily expose
the state of a feature flag to Javascript code. For example, using this
method we may write the following controller code:

    before_action do
      push_frontend_feature_flag(:vim_bindings)
    end

    def index
      # ...
    end

    def edit
      # ...
    end

In Javascript we can then check the state of the flag as follows:

    if ( gon.features.vimBindings ) {
      // ...
    }

Fixes https://gitlab.com/gitlab-org/release/framework/issues/17
2018-10-11 17:06:19 +02:00
Douwe Maan 033b44eb61
Fix various bugs related to relative_url_root in development 2018-05-29 15:03:14 +02:00
Rémy Coutable d50a80a282
Replace Gitlab::REVISION with Gitlab.revision and handle installations without a .git directory
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-05-24 10:14:01 +02:00
Tim Zallmann 77c473893d Optimize Emoji Sprite Handling 2018-05-02 18:23:17 +00:00
Kushal Pandya e7789ed919 Add `suggest_colors` from LabelsHelper 2018-03-05 18:03:25 +05:30
Mike Greiling d79df7baf7 Remove u2f webpack bundle 2018-03-01 18:13:50 +00:00
Jose Ivan Vargas 46ae03628d Merge branch 'master' into jivl-update-katex 2018-02-05 15:16:41 -06:00
Mario de la Ossa eaada9d706 use Gitlab::UserSettings directly as a singleton instead of including/extending it 2018-02-02 18:39:55 +00:00
Tim Zallmann 3a727aa6d4 Multi File Editor File icons 2018-01-03 10:08:14 +00:00
Jose Ivan Vargas 78bfced3ff Removed the katex precompile steps from the application configuration 2017-12-21 12:08:32 -06:00
Jose Ivan Vargas ad9e3dfe5d added katex.js and load it via webpack 2017-12-21 12:08:31 -06:00
Tim Zallmann 25eea05833 Icon Sprite URL is also local even if asset_host is set 2017-11-09 10:38:00 +01:00
Tim Zallmann 55f772bb98 Resolve "Better SVG Usage in the Frontend" 2017-09-22 08:39:47 +00:00
Sean McGivern 5883ce95ef `current_application_settings` belongs on `Gitlab::CurrentSettings`
The initializers including this were doing so at the top level, so every object
loaded after them had a `current_application_settings` method. However, if
someone had rack-attack enabled (which was loaded before these initializers), it
would try to load the API, and fail, because `Gitlab::CurrentSettings` didn't
have that method.

To fix this:

1. Don't include `Gitlab::CurrentSettings` at the top level. We do not need
   `Object.new.current_application_settings` to work.
2. Make `Gitlab::CurrentSettings` explicitly `extend self`, as we already use it
   like that in several places.
3. Change the initializers to use that new form.
2017-08-31 13:38:33 +01:00
Mike Greiling 3137b886b8 configure webpack publicPath dynamically to account for CDN or relative path settings 2017-06-28 22:26:16 -05:00
Luke "Jared" Bennett 13dd82b5de Add rubocop:disable to gon_helper.rb 2017-05-26 20:37:29 +00:00
Luke "Jared" Bennett b172ef2fdc
Restore notifications to MR widget 2017-05-26 15:26:06 +01:00
Luke "Jared" Bennett ef73fe300c
Use Gitlab::REVISION over reading HEAD sha from git 2017-05-21 13:38:03 +01:00
Luke "Jared" Bennett e6a4b8c163
Add current_user_avatar_url to gon 2017-05-18 09:40:35 +01:00
Luke "Jared" Bennett e5a7ed3ac3
Review changes 2017-05-05 15:59:03 +01:00
Luke "Jared" Bennett 97633d5616
Fixed specs 2017-04-28 16:01:22 +01:00
Luke "Jared" Bennett 0e8afe1343
Remove unneeded helper include 2017-04-28 14:00:20 +01:00
Luke "Jared" Bennett 8e8be5d171
Fixed view to correct property 2017-04-28 13:51:45 +01:00
Luke "Jared" Bennett 284d4f76fe
Attempted adding separate clientside_sentry settings 2017-04-28 13:41:29 +01:00
Luke "Jared" Bennett cfd3d0fd37
[ci skip] Remove loadscript class in favour of backend conditional 2017-04-13 17:18:15 +01:00
Luke "Jared" Bennett ccca73d779
Merge branch 'master' into add-sentry-js-again-with-vue 2017-04-04 14:56:27 +01:00
Sam Rose 435458d2b1 Update API on frontend to use v4
Use options object to pass params for project endpoint
2017-03-14 06:58:20 -04:00
Alfredo Sumaran 6b2d4947a6 Merge branch '23948-assign-to-me' into 'master'
re-add Assign to Me link on new MR/Issue forms

Closes #23948

See merge request !9499
2017-03-07 07:08:38 +00:00