Commit graph

228 commits

Author SHA1 Message Date
Konrad Kleine 4cd8dfd12d
Update README.md 2021-04-12 14:57:21 +02:00
Romain acd3f1f55f fix: ECONFLICT Unable to find suitable version for angular (#162) 2017-07-06 14:58:50 +02:00
Marc Abramowitz bed7564e95 Remove unused RepositoryController route (#149)
as far as I can tell, there is no `RepositoryController` controller, so
this route is not useful.
2016-12-13 11:13:10 +01:00
Marc Abramowitz 3ad864b388 Handle images with no user properly (#147)
* Uncomment test for no repositoryUser

in `app/app.spec.js`, so I can work on getting this case working.

* Add $log to repository-detail-controller

* Set $scope.repository properly even if no user

Check if `$scope.repositoryUser` is defined and if it's not, set
`$scope.repository` simply to `$scope.repositoryName`.

* Add route for repo with no repositoryUser

* Make tagsPerPage dropdown use query string vars

instead of putting `tagsPerPage` in the route part of the URL, which
makes it difficult to distinguish between `repositoryName` and
`tagsPerPage`, because the routes are too similar.

* Make first/next links use query string vars

instead of putting `tagsPerPage` in the route part of the URL, which
makes it difficult to distinguish between `repositoryName` and
`tagsPerPage`, because the routes are too similar.

* Move defaultTagsPerPage

from `RepositoryListController` to `TagController`.

I think it makes more sense to read `defaultTagsPerPage` in
`TagController` than to do it in `RepositoryListController` and have to
pass it in URLs.

* Fix "Details for repository" for repo w/ no user

* Fix breadcrumb when no repositoryUser

* Remove tagsPerPage/tagPage from repo detail routes

* Update unit tests to use tagsPerPage qs param

Updated the unit tests to page `tagsPerPage` as a query string parameter
rather than in the route.

* Uncomment assertions about scope.reposPerPage

an make them work by casting string to an int with `parseInt`.

* Make /tag work for image with no repositoryUser

* repository-detail.html: Fix breadcrumb link

for case when there is no `repositoryUser`.

* tag-detail.html: Fix breadcrumb link

when image has no `repositoryUser`.

* tag-detail.html: Fix shown docker pull command

when image has no `repositoryUser`.

* tag-detail.html: Show docker pull cmd in code font

I think it looks better.
2016-08-04 17:16:32 +02:00
Jun Li c34f619932 delay tag item showing until its manifest received (#137)
For a tag item, there exists a time interval between receiving its name and its manifest.
That will result in some jitter when loading.

Signed-off-by: lijun <lijun@qiyi.com>
2016-07-20 10:33:29 +02:00
Konrad Kleine 48ae06ea7f Try to trigger tests with travis (#146)
* Try to trigger tests with travis

* Updgrade to node 4.4.7 in travis

* Update .travis.yml

* Use correct single run test script
2016-07-20 09:07:03 +02:00
Konrad Kleine 361825c151 We need bzip2 in container to extract PhantomJS
See also PR #140 for more information on tests.
2016-07-19 10:16:14 +02:00
Konrad Kleine 345253511f Merge branch 'msabramo-npm_run_server' into v2 2016-07-19 08:51:42 +02:00
Konrad Kleine b8ff23d93e Merge branch 'npm_run_server' of git://github.com/msabramo/docker-registry-frontend into msabramo-npm_run_server 2016-07-19 08:51:30 +02:00
Marc Abramowitz e9941db0e2 Gruntfile.js: Use DOCKER_REGISTRY_{HOST,PORT} (#142)
Use `DOCKER_REGISTRY_HOST` and `DOCKER_REGISTRY_PORT` environment
variables so that one can specify a custom Docker registry server while
developing, without hacking `Gruntfile.js`.
2016-07-19 08:41:48 +02:00
Marc Abramowitz 868546e04b Remove app/services/registry-host-services.js (#141)
Remove `app/services/registry-host-services.js` because it seems to be
an older, unused version of `app/services/registry-services.js`
2016-07-19 08:41:37 +02:00
Marc Abramowitz ea2bcd55cd Make "npm test" run Karma tests (#140)
* Make "npm test" run Karma tests

Result is this:

```
$ npm test

> docker-registry-frontend@0.0.2 pretest /Users/marca/dev/git-repos/docker-registry-frontend_2
> npm install

> docker-registry-frontend@0.0.2 postinstall /Users/marca/dev/git-repos/docker-registry-frontend_2
> bower install

> docker-registry-frontend@0.0.2 test /Users/marca/dev/git-repos/docker-registry-frontend_2
> karma start test/karma.conf.js

09 07 2016 13:36:20.771:WARN [karma]: No captured browser, open http://localhost:8080/
09 07 2016 13:36:20.781:INFO [karma]: Karma v1.1.1 server started at http://localhost:8080/
09 07 2016 13:36:20.782:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
09 07 2016 13:36:20.788:INFO [launcher]: Starting browser PhantomJS
09 07 2016 13:36:21.250:INFO [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Connected on socket /#Z4MF21dfMgThOi3zAAAA with id 9538616
PhantomJS 2.1.1 (Mac OS X 0.0.0) Controller: MainCtrl should attach a list of awesomeThings to the scope FAILED
	forEach@bower_components/angular/angular.js:326:24
	loadModules@bower_components/angular/angular.js:4115:12
	createInjector@bower_components/angular/angular.js:4041:22
	workFn@bower_components/angular-mocks/angular-mocks.js:2464:60
	loaded@http://localhost:8080/context.js:151:17
	bower_components/angular/angular.js:4155:53
	TypeError: undefined is not an object (evaluating 'scope.awesomeThings') in test/spec/controllers/main.js (line 20)
	test/spec/controllers/main.js:20:17
	loaded@http://localhost:8080/context.js:151:17
PhantomJS 2.1.1 (Mac OS X 0.0.0): Executed 1 of 1 (1 FAILED) ERROR (0.005 secs / 0.006 secs)
```

Fixes #139

* Make MainController tests work

This makes the `MainController` tests pass.

```
$ npm test

> docker-registry-frontend@0.0.2 pretest /Users/marca/dev/git-repos/docker-registry-frontend_2
> npm install

> docker-registry-frontend@0.0.2 postinstall /Users/marca/dev/git-repos/docker-registry-frontend_2
> bower install

> docker-registry-frontend@0.0.2 test /Users/marca/dev/git-repos/docker-registry-frontend_2
> karma start test/karma.conf.js

09 07 2016 17:06:59.974:WARN [karma]: No captured browser, open http://localhost:8080/
09 07 2016 17:06:59.986:INFO [karma]: Karma v1.1.1 server started at http://localhost:8080/
09 07 2016 17:06:59.986:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
09 07 2016 17:07:00.133:INFO [launcher]: Starting browser PhantomJS
09 07 2016 17:07:01.051:INFO [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Connected on socket /#6enEIdsugSVdKVioAAAA with id 62465837
PhantomJS 2.1.1 (Mac OS X 0.0.0): Executed 1 of 1 SUCCESS (0.004 secs / 0.024 secs)
```

* test/karma.conf.js: Add more files

E.g.:

  - angular-bootstrap,
  - angular-bootstrap-checkbox
  - angular-filter
  - angular-loading-bar
  - angular-moment
  - angular-smart-table

I also alphabetized the list to make it easier to check if something is
already included.

* test/karma.conf.js: Add 'dots' reporter

* Add app/app.spec.js

`app/app.spec.js` contains tests for various routes, which should be
very useful for finding and fixing routing bugs.

See:

  - #97
  - #100
  - #104
  - #121

* Enable junit and spec Karma reporters

* app/app.spec.js: Check scope attributes

* app/app.spec.js: Check scope.appMode

* test/spec/controllers/main.js: Check appVersion & registryHost

* MainController: use registry-services

In `MainController`, depend on the `registry-services` module instead of
the `registry-host-services` module.

* Remove app/services/registry-host-services.js

Remove `app/services/registry-host-services.js` because it seems to be
an older, unused version of `app/services/registry-services.js`

* repository-list-controller: Add dependencies

Specify that the `repository-list-controller` module depends on
`ngRoute` and `ui.bootstrap` modules.

Otherwise controller tests of this module fail.

* $scope.repositories = data;

In `repository-list-controller`, do:

    $scope.repositories = data;

in the promise callback. Otherwise, the new tests in
`app/repository/repository-list-controller.spec.js` fail.

This is because promises get resolved in templates but not in until
tests -- see
http://stackoverflow.com/questions/15048132/angularjs-promise-not-being-resolved-in-unit-test

* Add unit test for RepositoryListController

in `app/repository/repository-list-controller.spec.js`.

      RepositoryListController
        ✓ should attach some keys to the scope

* Gruntfile.js: Use DOCKER_REGISTRY_{HOST,PORT}

Use `DOCKER_REGISTRY_HOST` and `DOCKER_REGISTRY_PORT` environment
variables so that one can specify a custom Docker registry server while
developing, without hacking `Gruntfile.js`.
2016-07-19 08:41:24 +02:00
Marc Abramowitz aaf15350cf develop/README.md: Fix link (#138)
* develop/README.md: Fix link

Fix link to develop/docker-compose.yml which had square brackets and
parentheses interchanged.

* develop/README.md: Add YAML syntax highlighting

to `docker-compose.yml` snippet.

* develop/README.md: Fix link to Gruntfile.js

* develop/README.md: Highlight Gruntfile.js

as Javascript.
2016-07-19 07:47:32 +02:00
Marc Abramowitz 3b22da7c4a package.json: Add tasks and hooks
In particular, make `npm run server` and `npm test` and work.
2016-07-11 20:07:08 -07:00
Arthur De Kimpe d5dd87d1c9 Add image details support with API v2 (#84)
Revert changes on default projet file

Add detailed information for tag listing

Removed useless comments, divs, etc -> refactoring

Prevent bugs from future changes of API

Add digest attribute to Manifest query response

Add basic pagination support to tag listing

Add environment variable for tags per page

Fix bug of image history without config + disabled parent id

Fix tags pagination system - Fetch infos for all pages

add missing comma

 Fetch infos for all pages -> simpler fix

Disable apache directory listing feature

Update tag pagination system to make it feel more like repository pagination system
2016-04-11 09:46:40 +02:00
Konrad Kleine f287a3811b Create ISSUE_TEMPLATE.md
Based on this documentation, I've added a file with an issue template: https://help.github.com/articles/helping-people-contribute-to-your-project/
2016-03-11 17:25:42 +01:00
Konrad Kleine f030b795e1 Merge pull request #99 from bjoernHeneka/readme-update
updates the development installation instruction for using own registry
2016-03-04 15:02:01 +01:00
Konrad Kleine 12ad29f718 Merge pull request #96 from bjoernHeneka/downgrade-grunt-contrib-connect
downgrade grunt-contrib-connect 0.10.1
2016-03-04 14:58:17 +01:00
Konrad Kleine 0ba5ae5eba Added equal sign after --insecure-registry= 2016-02-16 15:44:29 +01:00
Björn Heneka 355eb237ab updates the development installation instruction for using own registry 2016-02-05 15:47:46 +01:00
Björn Heneka a4f9c5fd6d downgrade grunt-contrib-connect to version 0.10.1 because of changes in connect 3.x 2016-02-05 15:30:40 +01:00
Konrad Kleine 347c611b40 Update year in LICENSE file 2016-01-26 15:43:02 +01:00
Konrad Kleine 2ab13118fd Bumped package.js version from 0.0.1 to 0.0.2 2016-01-26 12:45:16 +01:00
Konrad Kleine 96f04ea1bc Updated devdependencies
based on
https://david-dm.org/kwk/docker-registry-frontend#info=devDependencies
2016-01-26 11:53:58 +01:00
Konrad Kleine 2bbdebb5ad Added code climate badge 2016-01-26 11:41:49 +01:00
Konrad Kleine 9ba9dbe0f2 Added dev-dependency badge 2016-01-26 11:39:23 +01:00
Konrad Kleine ca5dd30806 Merge pull request #87 from cubfan20/v2
Setting ProxyPreserveHost to its default value: Off
2016-01-20 15:07:51 +01:00
cubfan20 71bc8736b7 Setting ProxyPreserveHost to its default value: Off 2016-01-18 16:48:12 -06:00
Konrad Kleine bc7a80b942 Merge pull request #85 from cristifalcas/patch-1
fix small typo
2016-01-16 12:33:32 +01:00
Cristian Falcas d9cd1c26ce fix small typo 2016-01-16 13:15:05 +02:00
Konrad Kleine a52825697d Merge pull request #83 from LarsModig/devenv-fix
Changes necessary to get dev env to work out of the box.
2016-01-13 17:32:34 +01:00
Lars Modig 4b5cefdace Changes necessary to get dev env to work out of the box. 2016-01-11 19:23:20 +01:00
Konrad Kleine d87a59910b Merge pull request #76 from majinjing3/v2
Update docker registry v2 api url
2015-12-09 09:36:37 +01:00
majinjing3 021f0284b4 Update docker registry api url 2015-12-09 13:37:49 +08:00
Konrad Kleine 75a622020c Update year in license 2015-12-02 16:03:45 +01:00
Konrad Kleine 0faadabab2 bump up registry from 2.1.0 to 2.2.0 2015-12-01 12:59:01 +01:00
Konrad Kleine 5b29b557ec Fix spelling 2015-12-01 12:46:57 +01:00
Konrad Kleine 7a464f7f08 Fix minor errors in text of README.md 2015-12-01 11:41:59 +01:00
Konrad Kleine 9a1d6e0c67 Add note about wiki being for v1 currently 2015-11-28 21:23:22 +01:00
Konrad Kleine b75e348ddb Update README.md 2015-11-27 16:12:26 +01:00
Konrad Wilhelm Kleine bdbe5cb02c Fix documentation in docker-compose.yml 2015-11-18 12:19:43 +01:00
Konrad Wilhelm Kleine 223cc8f1a7 Fix path to example-setup/README.md 2015-11-18 12:18:01 +01:00
Konrad Wilhelm Kleine b4990f6a56 Fix README.md filename 2015-11-18 12:17:04 +01:00
Konrad Wilhelm Kleine ad39f23a0b Example setup 2015-11-18 12:14:56 +01:00
Konrad Wilhelm Kleine 83669c97cb Output Apache errors to stdout as well 2015-11-18 11:20:11 +01:00
Konrad Kleine 4fe173efb1 Fix listing of tags
Previously a lot of useless AJAX request have been made for each tag.
Those requests where necessary in v1 but not in v2 where they don't do
anything.

The tag listing is cleaned up a log.
2015-11-17 13:37:40 +01:00
Konrad Kleine d6fcb56216 Fix path to about view 2015-11-17 13:09:14 +01:00
Konrad Kleine 81325dcf30 Fix #24 redirect apache logs to docker stdout/stderr 2015-11-17 09:52:46 +01:00
Konrad Kleine 18077ef6a4 Make ENV_MODE_BROWSE_ONLY=true for now 2015-11-17 08:58:40 +01:00
Konrad Kleine 3379eb0f0e Make ENV_MODE_BROWSE_ONLY=true for now
only rough browsing capabilities are implemented right now.
2015-11-17 08:55:12 +01:00