Commit Graph

398 Commits

Author SHA1 Message Date
Paul Slaughter fcdb6c1968 CE Port of "Add empty and disabled web terminal tab" 2018-12-03 13:01:17 +00:00
Thomas Pathier 4567713985 WebIDE: Make Ctrl+Enter automatically commit when commit textarea is focused 2018-11-26 08:40:18 +00:00
Mike Greiling 5b9495c5db
Prettify all the things 2018-11-20 09:30:01 -06:00
Clement Ho 8b1f2823a2 Use @gitlab npm namespace 2018-11-16 19:29:11 +00:00
Clement Ho c4aa33fc8b Remove gitlab-ui loading icon from global 2018-11-07 10:06:15 +00:00
George Tsiolis 2c198b5785 Fix typos in IDE props 2018-10-30 13:49:05 +02:00
Clement Ho df587c15c4 Update gitlab-ui to 1.9.0 2018-10-29 23:16:10 +00:00
Takuya Noguchi 1c4eedd52c Remove all tables from Pipeline page when there is no job for the Pipeline 2018-10-29 14:58:16 +00:00
Jacques Erasmus d1fb29e573 Remove base64 encoding from files that contain plain text 2018-10-22 08:28:36 +00:00
Tim Zallmann 6947890e37 Merge branch 'prettify-all-the-things-5' into 'master'
Prettify all the things (part 5)

See merge request gitlab-org/gitlab-ce!22255
2018-10-10 18:17:50 +00:00
Mike Greiling 69b7c032ec
Prettify ide modules 2018-10-10 01:57:50 -05:00
Mark Lapierre d36055cbef Add tests of adding file templates
Adds tests that adds new files via file templates via the Files view
and the Web IDE.

Includes changes to page objects and associated code

Fetches template content from the API rather than hardcoding strings
that will need to be updated if the templates change. Some of the
content is stored as flat files but we can't use them because they're
not included in the docker images gitlab-qa uses.
2018-10-09 11:17:02 -04:00
Phil Hughes 33c4c5b8f3
Added file tree to merge request diffs
This file tree displays all the diff files in a tree like format
Each file is taken and converted into a tree with folders
Each folder can be toggled open & closed
Clicking a file will scroll to the diff file & highlight with a glow affect

Searching the tree list will search only files & return a list of the
files without any folders

Each file row contains an icon to show changed, new file or deleted
Each row will also contain the added & removed lines count

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/14249
2018-10-03 10:05:43 +01:00
Paul Slaughter adbf6149cf Keep IDE RightPane views alive
**Why?**
- This is needed for the Web Terminal feature.
  https://gitlab.com/gitlab-org/gitlab-ee/issues/5426

**Notes:**
- Introduces a `pane` Vuex module.
- Some views should not be kept alive (i.e. job details).
  This is why a `keepAlive` flag was introduced for views.
2018-09-28 15:03:39 -05:00
Phil Hughes 8a95266b48 Merge branch 'ide-refactor-for-ee-specific' into 'master'
CE Port (Refactor IDE to allow RightPane extension)

See merge request gitlab-org/gitlab-ce!21920
2018-09-27 08:56:58 +00:00
Paul Slaughter 01a2d0f201 Refactor IDE to allow RightPane extension
**Why?**
- This is needed by the Web Terminal EE feature.
  https://gitlab.com/gitlab-org/gitlab-ee/issues/5426

**Notes:**
- RightPane component tabs is now data driven.
2018-09-26 23:11:29 -05:00
Jose Vargas 4bf8584845
Bump GitLab UI version and change the file imports to a single point of entry notation 2018-09-26 13:51:43 -05:00
Clement Ho 2a6cd526ac Add gitlab-ui skeleton loading 2018-09-25 20:03:40 +00:00
Filipa Lacerda a615994fdb Merge branch 'ide-remove-stage-buttons' into 'master'
Remove stage/unstage buttons from IDE commit list items

Closes #51695

See merge request gitlab-org/gitlab-ce!21845
2018-09-25 15:07:43 +00:00
Phil Hughes 6ed79d608a
Fixed alignment of changed icon in commit head 2018-09-25 09:13:50 +01:00
Phil Hughes b46ec15138
Remove stage/unstage buttons from IDE commit list items
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51695
2018-09-20 21:26:27 +01:00
Mike Greiling f829b181bc
Resolve eslint-plugin-vue errors
The eslint-plugin-vue upgrade had some breaking changes to
vue/attribute-order which needed to be resolved in order to avoid
disabling the rule entirely
2018-09-20 02:39:50 -05:00
Phil Hughes 163ec966c1
Decouple file row from IDE
This makes the file row component re-usable ouside of the Web IDE

Pre-request for https://gitlab.com/gitlab-org/gitlab-ce/issues/14249
2018-09-17 12:17:00 +01:00
Clement Ho f815b48f39 Use gitlab-ui loading icon 2018-09-11 22:19:21 +00:00
Phil Hughes 9ab61e17bb
i18n on some strings
moved heights into variables
2018-09-07 11:28:04 +01:00
Phil Hughes 04f4b86826
update state when staging/unstaging all 2018-09-07 11:28:02 +01:00
Phil Hughes cfb67193bf
fixed discard modal not showing 2018-09-07 11:28:02 +01:00
Phil Hughes ebc15f4318
design improvements 2018-09-07 11:28:02 +01:00
Phil Hughes 1f808ffe9e
update components to match designs in commit section 2018-09-07 11:28:01 +01:00
Phil Hughes 2aa47e10d4
Improved IDE commit flow
Closes #48182
2018-09-07 11:28:01 +01:00
Phil Hughes 21ed2da067
fixed double scroll
improved variable & prop names
2018-09-07 08:24:42 +01:00
Phil Hughes 5b84c2fbc2
added component specs 2018-09-07 08:24:01 +01:00
Phil Hughes c883b52686
renames file when template type is changed 2018-09-07 08:24:00 +01:00
Phil Hughes c0923cbd4f
added quick create new file buttons to modal 2018-09-07 08:24:00 +01:00
Phil Hughes 7465f62eb5
fixed action name changes after rebase
fixed content not updating in editor when changing template
2018-09-07 08:24:00 +01:00
Phil Hughes 843467b8c4
Added file templates to the Web IDE
Closes #47947
2018-09-07 08:23:59 +01:00
Filipa Lacerda bdae30d8fb Merge branch 'ide-row-hover-scroll' into 'master'
Fixed IDE file row jumping into view on hover

Closes #50751

See merge request gitlab-org/gitlab-ce!21403
2018-08-31 11:39:12 +00:00
Paul Slaughter 29dc365622 Resolve "Persistent banner creates problem for web ide" 2018-08-31 10:19:55 +00:00
Phil Hughes 27bce7ad2c
Fixed IDE file row jumping into view on hover
Closes #50751
2018-08-31 10:27:44 +01:00
Phil Hughes 3a283fa861
Enabled multiple uploads in the Web IDE
Closes #50405
2018-08-29 16:05:30 +01:00
Phil Hughes 2cf1e21ae4
Fixed Web IDE live preview crashing when loading from merge request 2018-08-16 15:47:35 +01:00
Phil Hughes 1a5af91ad4
Fixed small scroll area in Web IDE
Closes #50242
2018-08-13 11:42:47 +01:00
Filipa Lacerda 632d3a9412 Merge branch 'ide-header-buttons-tooltip' into 'master'
Added tooltips to tree list header buttons in Web IDE

Closes #50141

See merge request gitlab-org/gitlab-ce!21138
2018-08-13 08:58:03 +00:00
Phil Hughes 730e354117
Fixed Web IDE live preview not hot reloading 2018-08-10 16:20:08 +01:00
Phil Hughes 962420c089
Added tooltips to tree list header buttons in Web IDE
Closes #50141
2018-08-10 16:05:41 +01:00
Paul Slaughter 0d6e50d542 Create Web IDE MR and branch picker 2018-08-07 15:15:56 +00:00
Phil Hughes 7b4b9e1cc4
Web IDE & CodeSandbox
This enables JavaScripts projects to have live previews straight in the
browser without requiring any local configuration. This uses the
CodeSandbox package `sandpack` to compile it all inside of an iframe.

This feature is off by default and can be toggled on in the admin
settings. Only projects with a `package.json` and a `main` key are
supported.

Updates happen in real-time with hot-reloading. We just watch for
changes to files and then send them to `sandpack` to allow it to reload
the iframe. The iframe includes a very simple navigation bar, the text
bar is `readonly` to stop users navigating away from the preview and
the back and forward buttons just pop/splice the navigation stack
which is tracked by a listener on `sandpack`

There is a button inside the iframe which allows the user to open the
projects inside of CodeSandbox. This button is only visible on
**public** projects. On private or internal projects this button
get hidden to protect private code being leaked into an external
public URL.

Closes #47268
2018-08-07 14:45:55 +01:00
Paul Slaughter db739548fe Web IDE context header redesign 2018-08-07 13:19:13 +00:00
Dennis Tang a363585b01 Resolve "Pipeline job log page uses too much CPU for loading animation" 2018-08-03 14:31:50 +00:00
Filipa Lacerda b901df220c Merge branch 'ide-rename-files' into 'master'
Enable renaming files & folders in the Web IDE

Closes #44845

See merge request gitlab-org/gitlab-ce!20835
2018-08-03 10:00:48 +00:00