Skip to content

Commit

Permalink
Merge pull request #1 from redbox-mint/develop
Browse files Browse the repository at this point in the history
Version 1.0.0
  • Loading branch information
shilob authored Dec 5, 2024
2 parents 307cada + 2ff8069 commit 77f1ed5
Show file tree
Hide file tree
Showing 96 changed files with 18,952 additions and 30,574 deletions.
106 changes: 106 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
version: 2.1
jobs:
build_and_publish:
docker:
- image: cimg/node:20.9.0
working_directory: ~/repo
steps:
- checkout
- run:
command: |
set +e
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
- run: export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && nvm install && npm install && node_modules/.bin/tsc
- run: chmod +x support/build/compileAngularLegacy.sh && support/build/compileAngularLegacy.sh omero
# run tests!
# - run: npm test
# # store test results
# - store_test_results:
# path: test_results

# store code coverage
# - persist_to_workspace:
# root: ~/repo
# paths: .
- run:
name: Authenticate with NPM
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
- run:
name: Publish package
command: npm publish --access public
build_only:
docker:
- image: cimg/node:20.9.0
working_directory: ~/repo
steps:
- checkout
- run:
command: |
set +e
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
- run: export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && nvm install && npm install && node_modules/.bin/tsc
- run: chmod +x support/build/compileAngularLegacy.sh && support/build/compileAngularLegacy.sh omero
# run tests!
# - run: npm test
# # store test results
# - store_test_results:
# path: test_results

# store code coverage
# - persist_to_workspace:
# root: ~/repo
# paths: .


workflows:
publish:
jobs:
- build_and_publish:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
build:
jobs:
- build_only:
filters:
tags:
ignore: /.*/
branches:
only: /.*/
# jobs:
# build:
# docker:
# - image: "cimg/base:stable"
# - checkout
# - node/install:
# node-version: 12.16.0
# - run: npm install --production
# - run: node_modules/.bin/tsc
# - persist_to_workspace:
# root: .
# paths:
# - .
# test:
# machine: true
# steps:
# - docker/install-docker-compose
# - attach_workspace:
# at: /home/circleci/project
# - run: export NVM_DIR=/opt/circleci/.nvm && source /opt/circleci/.nvm/nvm.sh && nvm install 12.16.0 && nvm use 12.16.0
# - run: export NVM_DIR=/opt/circleci/.nvm && source /opt/circleci/.nvm/nvm.sh && nvm use 12.16.0 && node_modules/.bin/tsc -p tsconfig-codecov.json
# - run: (cd support/integration-testing && docker-compose -f docker-compose.newman.yml up --abort-on-container-exit --exit-code-from redboxportal && docker-compose -f docker-compose.mocha.yml up --abort-on-container-exit --exit-code-from redboxportal)
# - run: export NVM_DIR=/opt/circleci/.nvm && source /opt/circleci/.nvm/nvm.sh && nvm use 12.16.0 && npm i -g codecov && codecov -t $CODECOV_TOKEN
# - run: export NVM_DIR=/opt/circleci/.nvm && source /opt/circleci/.nvm/nvm.sh && nvm use 12.16.0 && node_modules/.bin/tsc
#
# orbs:
# node: circleci/node@4.0.0
# docker: circleci/docker@1.4.0
# version: 2.1
# workflows:
#
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
support/development
runForDev.sh
.circleci
temp/
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ e2e/*.map
Thumbs.db

test/angular
api
angular-legacy/shared
assets/angular
dist/
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.circleci
support
test
.editorconfig
.gitignore
angular-legacy
.idea
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.9.0
2 changes: 0 additions & 2 deletions .snapshotBranchGitIgnore

This file was deleted.

19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "omero"
"name": "angular"
},
"apps": [
{
"name": "omero",
"root": "src",
"outDir": "dist",
"root": "omero",
"outDir": "../assets/angular/omero",
"assets": [
"assets",
"favicon.ico"
Expand All @@ -20,11 +20,9 @@
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
"styles.css"
],
"scripts": [
"../node_modules/jquery/dist/jquery.min.js"
],
"environmentSource": "environments/environment.ts",
"environments": {
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions angular-legacy/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14.19.0
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Input, Output, Component, OnInit, Inject, Injector, ElementRef, ViewChild, EventEmitter} from '@angular/core';
import {SimpleComponent} from '../shared/form/field-simple.component';
import {FieldBase} from '../shared/form/field-base';
import {SimpleComponent} from '../../../shared/form/field-simple.component';
import {FieldBase} from '../../../shared/form/field-base';
import {FormGroup, FormControl, Validators} from '@angular/forms';
import * as _ from "lodash-es";

Expand Down Expand Up @@ -125,7 +125,8 @@ export class CreateWorkspaceField extends FieldBase<any> {
this.creation.clear();
this.creationAlert.clear();
console.log('clear');
jQuery('#createModal').modal({show: true, keyboard: false, backdrop: 'static'});
jQuery('#createModal').modal({show: true});
jQuery('#createModal').modal('show');
}

create() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h4>{{ field.addDescription }}</h4>
<span *ngIf="field.creationAlert.status !== ('working' || 'done'); then buttonsCreate else buttonsBlocked;"></span>
<ng-template #buttonsCreate>
<button *ngIf="field.creationAlert.status !== 'done'" class="btn btn-primary" (click)="field.create()" type="submit">{{ field.createLabel }}</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ field.dismissLabel }}</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{{ field.dismissLabel }}</button>
</ng-template>
<ng-template #buttonsBlocked>
<button disabled class="btn btn-primary disabled" type="submit">{{ field.createLabel }}</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Input, Output, Component, OnInit, Inject, Injector, EventEmitter} from '@angular/core';
import {SimpleComponent} from '../shared/form/field-simple.component';
import {FieldBase} from '../shared/form/field-base';
import {SimpleComponent} from '../../../shared/form/field-simple.component';
import {FieldBase} from '../../../shared/form/field-base';
import {FormGroup, FormControl, Validators} from '@angular/forms';
import * as _ from "lodash-es";

Expand Down Expand Up @@ -100,6 +100,7 @@ export class LinkModalWorkspaceField extends FieldBase<any> {
this.currentWorkspace = workspace;
this.checks.clear();
jQuery('#linkModal').modal({show: true, keyboard: false, backdrop: 'static'});
jQuery('#linkModal').modal('show');
this.processing = true;
this.checks.master = true;
return this.omeroService.info()
Expand Down Expand Up @@ -166,10 +167,10 @@ export class LinkModalWorkspaceField extends FieldBase<any> {
<div class="modal-footer">
<span *ngIf="field.processing; then waitForProcessing; else finishProcessing"></span>
<ng-template #finishProcessing>
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ field.closeLabel }}</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{{ field.closeLabel }}</button>
</ng-template>
<ng-template #waitForProcessing>
<button type="button" class="btn btn-secondary disabled" data-dismiss="modal">{{ field.closeLabel }}
<button type="button" class="btn btn-secondary disabled" data-bs-dismiss="modal">{{ field.closeLabel }}
</button>
</ng-template>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Input, Output, Component, OnInit, Inject, Injector, EventEmitter} from '@angular/core';
import {SimpleComponent} from '../shared/form/field-simple.component';
import {FieldBase} from '../shared/form/field-base';
import {SimpleComponent} from '../../../shared/form/field-simple.component';
import {FieldBase} from '../../../shared/form/field-base';
import {FormGroup, FormControl, Validators} from '@angular/forms';
import * as _ from "lodash-es";
import {PaginationModule} from 'ngx-bootstrap';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Output, EventEmitter, Component, OnInit, Inject, Injector} from '@angular/core';
import {FormGroup, FormControl, Validators, NgForm} from '@angular/forms';
import {SimpleComponent} from '../shared/form/field-simple.component';
import {FieldBase} from '../shared/form/field-base';
import {SimpleComponent} from '../../../shared/form/field-simple.component';
import {FieldBase} from '../../../shared/form/field-base';
import * as _ from "lodash-es";

// STEST-22
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
import { Component, Inject, Input, ElementRef, Output, EventEmitter } from '@angular/core';
import { Location, LocationStrategy, PathLocationStrategy } from '@angular/common';
import { FormGroup, FormControl, Validators, NgForm } from '@angular/forms';
import { RecordsService } from './shared/form/records.service';
import { RecordsService } from '../../shared/form/records.service';
import { OMEROService } from './omero.service';
import { LoadableComponent } from './shared/loadable.component';
import { FieldControlService } from './shared/form/field-control.service';
import { LoadableComponent } from '../../shared/loadable.component';
import { FieldControlService } from '../../shared/form/field-control.service';
import { Observable } from 'rxjs/Observable';
import * as _ from "lodash-es";
import { TranslationService } from './shared/translation-service';

import { LoginWorkspaceAppField, LoginWorkspaceAppComponent } from './components/login-workspaceapp.component';
import { LoginWorkspaceAppField, LoginWorkspaceAppComponent } from "./components/login-workspaceapp.component";
import { ListWorkspaceDataField, ListWorkspaceDataComponent } from './components/list-workspaces.component';
import { LinkModalWorkspaceField, LinkModalWorkspaceComponent } from './components/linkmodal-workspace.component';
import { CreateWorkspaceField, CreateWorkspaceComponent } from './components/create-workspace.component';

import { WorkspaceUser } from './components/shared';
// STEST-22
declare var jQuery: any;
import * as jQuery from 'jquery';

/**
* Main OMERO Edit component
Expand Down Expand Up @@ -106,8 +104,7 @@ export class OMEROFormComponent extends LoadableComponent {
@Inject(RecordsService) protected RecordsService: RecordsService,
@Inject(FieldControlService) protected fcs: FieldControlService,
@Inject(Location) protected LocationService: Location,
@Inject(OMEROService) protected OMEROService: OMEROService,
public translationService: TranslationService
@Inject(OMEROService) protected OMEROService: OMEROService
) {
super();
this.oid = elm.nativeElement.getAttribute('oid');
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { ReactiveFormsModule, FormsModule} from "@angular/forms";
import { HttpModule } from '@angular/http';
import { OMEROFormComponent } from './omero-form.component';
import { OMEROService } from './omero.service';
import { WorkspaceFieldComponent } from './shared/form/workspace-field.component';
import { SharedModule } from './shared/shared.module';
import { SharedModule } from '../../shared/shared.module';
import { PaginationModule } from 'ngx-bootstrap/pagination';

import { LoginWorkspaceAppComponent } from './components/login-workspaceapp.component';
Expand All @@ -17,16 +16,18 @@ import { CreateWorkspaceComponent } from './components/create-workspace.componen
imports: [ BrowserModule, HttpModule, ReactiveFormsModule,
SharedModule, FormsModule, PaginationModule.forRoot()
],
declarations: [ OMEROFormComponent,
declarations: [
OMEROFormComponent,
ListWorkspaceDataComponent, LoginWorkspaceAppComponent,
LinkModalWorkspaceComponent, CreateWorkspaceComponent
],
exports: [ ],
providers: [ OMEROService ],
bootstrap: [ OMEROFormComponent ],
entryComponents: [ LoginWorkspaceAppComponent,
ListWorkspaceDataComponent, LinkModalWorkspaceComponent,
CreateWorkspaceComponent
entryComponents: [
LoginWorkspaceAppComponent,
ListWorkspaceDataComponent, LinkModalWorkspaceComponent,
CreateWorkspaceComponent
]
})
export class OMEROModule { }
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import 'rxjs/add/operator/toPromise';
import 'rxjs/add/operator/delay';
import {Observable} from 'rxjs/Observable';

import {BaseService} from './shared/base-service';
import {ConfigService} from './shared/config-service';
import {BaseService} from "../../shared/base-service";
import {ConfigService} from "../../shared/config-service";

@Injectable()
export class OMEROService extends BaseService {
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 77f1ed5

Please sign in to comment.