feat: items-editor (#5)

* format readme

* update logo

* format html

* add logo to docs

* repository for document and document tokens

* add attachments type and repository

* autogenerate types via scripts

* use autogenerated types

* attachment type updates

* add insured and quantity fields for items

* implement HasID interface for entities

* implement label updates for items

* implement service update method

* WIP item update client side actions

* check err on attachment

* finish types for basic items editor

* remove unused var

* house keeping
This commit is contained in:
Hayden 2022-09-12 14:47:27 -08:00 committed by GitHub
parent fbc364dcd2
commit 95ab14b866
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
125 changed files with 15626 additions and 1791 deletions

View file

@ -25,7 +25,7 @@ func Test_GetRandomString(t *testing.T) {
faker := NewFaker()
for i := 0; i < Loops; i++ {
generated[i] = faker.RandomString(10)
generated[i] = faker.Str(10)
}
if !ValidateUnique(generated) {
@ -41,7 +41,7 @@ func Test_GetRandomEmail(t *testing.T) {
faker := NewFaker()
for i := 0; i < Loops; i++ {
generated[i] = faker.RandomEmail()
generated[i] = faker.Email()
}
if !ValidateUnique(generated) {
@ -58,7 +58,7 @@ func Test_GetRandomBool(t *testing.T) {
faker := NewFaker()
for i := 0; i < Loops; i++ {
if faker.RandomBool() {
if faker.Bool() {
trues++
} else {
falses++
@ -81,7 +81,7 @@ func Test_RandomNumber(t *testing.T) {
last := MIN - 1
for i := 0; i < Loops; i++ {
n := f.RandomNumber(MIN, MAX)
n := f.Num(MIN, MAX)
if n == last {
t.Errorf("RandomNumber() failed to generate unique number")