feat(marketplace): add separate package and move some entities in it (#1283)

* feat(marketplace): add separate package and move some entities in it

* feat(marketplace): refactor release notes and list

* feat(marketplace): refactor showing a package

* chore: fix install progress

* chore: fix angular.json

* chore: properly share stream
This commit is contained in:
Alex Inkin
2022-03-15 20:11:54 +03:00
committed by GitHub
parent 72cb451f5a
commit 8942c29229
115 changed files with 1848 additions and 1457 deletions

View File

@@ -1,6 +1,6 @@
import { Component, Input, ViewChild } from '@angular/core'
import { ModalController, IonicSafeString, IonInput } from '@ionic/angular'
import { getErrorMessage } from 'src/app/services/error-toast.service'
import { getErrorMessage } from '@start9labs/shared'
@Component({
selector: 'generic-input',
@@ -14,11 +14,9 @@ export class GenericInputComponent {
unmasked = false
error: string | IonicSafeString
constructor (
private readonly modalCtrl: ModalController,
) { }
constructor(private readonly modalCtrl: ModalController) {}
ngOnInit () {
ngOnInit() {
const defaultOptions: Partial<GenericInputOptions> = {
buttonText: 'Submit',
placeholder: 'Enter value',
@@ -34,19 +32,19 @@ export class GenericInputComponent {
this.value = this.options.initialValue
}
ngAfterViewInit () {
ngAfterViewInit() {
setTimeout(() => this.elem.setFocus(), 400)
}
toggleMask () {
toggleMask() {
this.unmasked = !this.unmasked
}
cancel () {
cancel() {
this.modalCtrl.dismiss()
}
async submit () {
async submit() {
const value = this.value.trim()
if (!value && !this.options.nullable) return