12 Commits

Author SHA1 Message Date
Viktar Donich
70222ad0b6 Add CLI flag to run-server.go for local plugins
Allows to map URL requests to local folder structure.
For example, to run against local gerrit-testsite:

/polygerrit-ui/run-server.sh \
  --host=localhost:8080 \
  --scheme=http \
  --plugins=$HOME/gerrit-testsite/plugins/

Change-Id: I20510eb1c2cff93d253aa9f7f38bc42f59f557e9
2017-02-09 09:09:27 -08:00
Viktar Donich
501e013f9d Add URL scheme param to run-server
Enables running proxy server against local Gerrit one like this:
./polygerrit-ui/run-server.sh --host=localhost:8080 --scheme=http

Change-Id: Ie35b11879751b1bb2d353d5a5849e4dfe443c4b3
2016-11-28 16:59:13 -08:00
Andrew Bonventre
8963eae942 Return correct error code from accounts/self/detail in test server
Also clean up some old cruft with accounts.

Change-Id: Icdb9af950d32dc909c51aa3c155c890e6ff62014
2016-05-06 12:41:33 -04:00
Urs Wolfer
0f537c7bbc Add support for running (single) tests with 'run-server.sh'
- include 'web-component-tester' bower dependency as test-dependency
- remove special handling for serving folder 'bower_components'
- add support for passing parameters from 'run-server.sh' to 'server.go'

Change-Id: Ia74b3013e07b6304a4df568b081254909749efc5
2016-03-30 20:01:33 +02:00
Andrew Bonventre
c6857c537c Fix var scoping issue while doing intraline highlights
+ I hate var scoping in JS.
+ Also update server.go to point to Gerrit.

Change-Id: I9bb035cd7eca5d5c029052611ea28b7d67fd6f98
2016-03-29 17:16:09 -04:00
Andrew Bonventre
e1a1c8b9c5 Add support for html and enabled fields in link configs
Bug: Issue 3804
Change-Id: I8c885662296368faa073957d426082b3bded81fc
2016-01-15 16:06:57 -05:00
Andrew Bonventre
5caa69d965 Auto-link change descriptions based on server config
Also has nice side-effect of fixing the current linkify tests.

Change-Id: Ief7341a755d5430257fc3768d74909b9a59cdd59
2015-12-28 20:24:38 -05:00
Andrew Bonventre
b07c0d2d6d Add an account dropdown menu
So that the user can see which account they're using, switch
accounts, and logout.

Feature: Issue 3693

Change-Id: I08ff42653f78c4a2c496d1a329d3eb26318ca32d
2015-12-02 16:44:42 -05:00
Andrew Bonventre
8d1cde2a5d Display avatars according to the server config
This uses a similar pattern to
https://gerrit-review.googlesource.com/72659/ where a promise is
used for a global var that is retrieved asynchronously.

Change-Id: I99a4b589d368876becf4dd000a2ffde39b34eaa4
2015-12-01 10:19:10 -05:00
Andrew Bonventre
a5fff8ebc9 Scaffold for user's logged-in dashboard
This change introduces a dependency of the routing behavior on
whether the user is logged in. Since the WebComponentsReady event
can fire before OR after the account info is retrieved, a Promise
is used to ensure deterministic ordering via `accountReady`.

There is also some minor cleanup of which element is being used
as the global `app` object.

Feature: Issue 3700

Change-Id: I9768f2eabd5cdb7c62ead16ae97df5c1c321eaf6
2015-11-30 18:56:07 -05:00
Andrew Bonventre
69fe7939e0 Login/logout buttons with basic account manager
Currently this checks to see if a user is logged in by hitting the XHR
endpoint /accounts/self/detail upon initial page load.

Change-Id: Ida77c60bf9fee34ddfaee85a15b68cdf85a58af7
Feature: Issue 3693
2015-11-24 21:27:00 -05:00
Andrew Bonventre
ba69835964 Add the skeleton of a new UI based on Polymer, PolyGerrit
This is the beginnings of an experimental new non-GWT web UI developed
using a modern JS web framework, http://www.polymer-project.org/. It
will coexist alongside the GWT UI until it is feature-complete.

The functionality of this change is light years from complete, with
a full laundry list of things that don't work. This change is simply
meant to get the starting work in and continue iteration afterward.

The contents of the polygerrit-ui directory started as the full tree of
https://github.com/andybons/polygerrit at 219f531, plus a few more
local changes since review started. In the future this directory will
be pruned, rearranged, and integrated with the Buck build.

Change-Id: Ifb6f5429e8031ee049225cdafa244ad1c21bf5b5
2015-11-09 22:01:28 +00:00