Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ejercicio2-framework-front
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Josue
ejercicio2-framework-front
Commits
a138d96f
Commit
a138d96f
authored
Oct 13, 2020
by
Aaron Gutierrez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correccion de errores XDF y seguridad
parent
e7e7b1ff
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
68 additions
and
120 deletions
+68
-120
package-lock.json
package-lock.json
+10
-15
package.json
package.json
+5
-5
app.module.ts
projects/bytebot-html/src/app/app.module.ts
+1
-1
home.component.html
projects/bytebot-html/src/app/views/home/home.component.html
+0
-1
user.json
...tml/src/assets/definitions/security-definitions/user.json
+28
-7
en.json
projects/bytebot-html/src/assets/i18n/gallery/en.json
+6
-4
es.json
projects/bytebot-html/src/assets/i18n/gallery/es.json
+5
-3
en.json
projects/bytebot-html/src/assets/i18n/security/en.json
+6
-2
es.json
projects/bytebot-html/src/assets/i18n/security/es.json
+6
-2
tsconfig.json
tsconfig.json
+1
-1
tslint.json
tslint.json
+0
-79
No files found.
package-lock.json
View file @
a138d96f
...
...
@@ -1817,41 +1817,36 @@
}
},
"@xdf/commons"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"http://192.168.27.7:4873/@xdf%2fcommons/-/commons-1.0.0.tgz"
,
"integrity"
:
"sha512-K1dJkuU4fJFhW59M/x7RiS8NJ+1K87FIO2nZs3c+3xZJajBNJDBb2rhvID7I43n88D1Yr+cr2aJkxIpp16fgdg=="
,
"version"
:
"file:../../XDF/ng-byte-framework/dist/xdf-commons/xdf-commons-1.0.0.tgz"
,
"integrity"
:
"sha512-OGPxnWBkEflVYRBZDmYWZ3tpQImBaasWEA8lPqDxadTzpg/48SmALEURhTenYN1c7+5zMkqU7X1a7Sh/2h0rVw=="
,
"requires"
:
{
"tslib"
:
"^1.9.0"
}
},
"@xdf/gallery"
:
{
"version"
:
"1.0.4"
,
"resolved"
:
"http://192.168.27.7:4873/@xdf%2fgallery/-/gallery-1.0.4.tgz"
,
"integrity"
:
"sha512-d9+/MXHMYy9btBXOpri8MdxO89bvN+XsjTLw2bt0TVzuOtpHXd97cq2ehmZosfy/6e2MTOJ7FHqvlbl27vGK/A=="
,
"version"
:
"file:../../XDF/ng-byte-framework/dist/xdf-gallery/xdf-gallery-1.0.8.tgz"
,
"integrity"
:
"sha512-eOUgs9LGPAVJh/pPBwbNfv+3ZlIlmm7YgO01lFzZUD9bzETOxIfj3DpOluRE4WZxL2UBLB+c3uYjczwoEnEPlg=="
,
"requires"
:
{
"tslib"
:
"^1.9.0"
}
},
"@xdf/layouts"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"http://192.168.27.7:4873/@xdf%2flayouts/-/layouts-1.0.0.tgz"
,
"integrity"
:
"sha512-7z/I3/+VDPVnJfXjQ3ePvgGg9yv5ZTxmIVEjR2sstrrrd/gEhUy8+3CNFkzgusXfxMYPD7E5DedYVjmUOtbskw=="
,
"version"
:
"file:../../XDF/ng-byte-framework/dist/xdf-layouts/xdf-layouts-1.0.1.tgz"
,
"integrity"
:
"sha512-lTM1Hz6J6DzteSeUNPbxVXLxzurDwxzPyBe+p6ZpOEGuhrGeFPx33bb3ap5dyz6VyQxi6t4JSLQEHbJJvJ3/bw=="
,
"requires"
:
{
"tslib"
:
"^1.9.0"
}
},
"@xdf/security"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"http://192.168.27.7:4873/@xdf%2fsecurity/-/security-1.0.0.tgz"
,
"integrity"
:
"sha512-anTe2J9dmBsTy2t5lzg3mXek0+/NfOKeU2elPuR+OIWi1UUaCwUnW1EDEA2kgLtujqlmVJFPTKHKpPdRjKwQIw=="
,
"version"
:
"file:../../XDF/ng-byte-framework/dist/xdf-security/xdf-security-1.0.0.tgz"
,
"integrity"
:
"sha512-3Arppi1D2R+h9pYzkbAFt19PGcBMQQCYEuikqOScZKgCkxJhroaKPNVEASgy+ZfLogO3MQ3/37f7ukXZeVx2IQ=="
,
"requires"
:
{
"tslib"
:
"^1.9.0"
}
},
"@xdf/settings"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"http://192.168.27.7:4873/@xdf%2fsettings/-/settings-1.0.2.tgz"
,
"integrity"
:
"sha512-ebaYci2qT45Yu0fHkCEfl/YT5mK6P6Uef20fgXrlKKUJl1+8b3fubRCCnNKxj2xwxAoBY5DG8jhQG9biwFaNSg=="
,
"version"
:
"file:../../XDF/ng-byte-framework/dist/xdf-settings/xdf-settings-1.0.3.tgz"
,
"integrity"
:
"sha512-btepMgHDMkABtx1/IUxwEFNMnzH+Iew1s3J52/x8QZ5/XHyjfQcF9MsQXHvoVxP39DSmjnloYDrAMrbyIp9u+Q=="
,
"requires"
:
{
"tslib"
:
"^1.9.0"
}
...
...
package.json
View file @
a138d96f
...
...
@@ -32,11 +32,11 @@
"
@swimlane/ngx-datatable
"
:
"
^16.0.3
"
,
"
@swimlane/ngx-graph
"
:
"
^6.2.0
"
,
"
@types/jquery
"
:
"
^3.3.34
"
,
"
@xdf/commons
"
:
"
^1.0.0
"
,
"
@xdf/gallery
"
:
"
^1.0.4
"
,
"
@xdf/layouts
"
:
"
^1.0.0
"
,
"
@xdf/security
"
:
"
^1.0.0
"
,
"
@xdf/settings
"
:
"
^1.0.2
"
,
"
@xdf/commons
"
:
"
file:../../XDF/ng-byte-framework/dist/xdf-commons/xdf-commons-1.0.0.tgz
"
,
"
@xdf/gallery
"
:
"
file:../../XDF/ng-byte-framework/dist/xdf-gallery/xdf-gallery-1.0.8.tgz
"
,
"
@xdf/layouts
"
:
"
file:../../XDF/ng-byte-framework/dist/xdf-layouts/xdf-layouts-1.0.1.tgz
"
,
"
@xdf/security
"
:
"
file:../../XDF/ng-byte-framework/dist/xdf-security/xdf-security-1.0.0.tgz
"
,
"
@xdf/settings
"
:
"
file:../../XDF/ng-byte-framework/dist/xdf-settings/xdf-settings-1.0.3.tgz
"
,
"
ace-builds
"
:
"
^1.4.8
"
,
"
angular-highcharts
"
:
"
^9.0.2
"
,
"
angular-marked
"
:
"
^1.2.2
"
,
...
...
projects/bytebot-html/src/app/app.module.ts
View file @
a138d96f
...
...
@@ -121,7 +121,7 @@ export function createTranslateLoader(http: HttpClient) {
// { provide: AuthGuard, useClass: AuthGuard},
// { provide: AuthenticationService, useClass: ByteAuthenticationService },
// { provide: HTTP_INTERCEPTORS, useClass: AuthenticationFakeBackendInterceptor, multi: true},
{
provide
:
HTTP_INTERCEPTORS
,
useClass
:
SettingsFakeBackendInterceptor
,
multi
:
true
},
//
{ provide: HTTP_INTERCEPTORS, useClass: SettingsFakeBackendInterceptor, multi: true },
//{ provide: HTTP_INTERCEPTORS, useClass: CustomProgramsFakeBackendInterceptor, multi: true },
// { provide: HTTP_INTERCEPTORS, useClass: AgentFakeBackendInterceptor, multi: true },
...
...
projects/bytebot-html/src/app/views/home/home.component.html
View file @
a138d96f
<p>
home works!
</p>
projects/bytebot-html/src/assets/definitions/security-definitions/user.json
View file @
a138d96f
...
...
@@ -31,10 +31,19 @@
"options"
:
{
"styleClass"
:
"col-xs-3 col-sm-6 col-md-6"
,
"showLength"
:
true
,
"maxLength"
:
60
"maxLength"
:
25
},
"validators"
:
[
"required"
"required"
,
"identifier"
,
{
"name"
:
"minLength"
,
"value"
:
3
},
{
"name"
:
"maxLength"
,
"value"
:
25
}
],
"controlType"
:
"text"
}
...
...
@@ -96,10 +105,15 @@
"options"
:
{
"styleClass"
:
"col-xs-3 col-sm-6 col-md-6"
,
"showLength"
:
true
,
"maxLength"
:
8
0
"maxLength"
:
3
0
},
"validators"
:
[
"required"
"required"
,
"names"
,
{
"name"
:
"minLength"
,
"value"
:
2
}
],
"controlType"
:
"text"
}
...
...
@@ -168,8 +182,8 @@
"type"
:
"string"
,
"formOptions"
:
{
"values"
:
{
"01"
:
"
Mr
"
,
"02"
:
"
Miss
"
"01"
:
"
Sr.
"
,
"02"
:
"
Sra.
"
},
"options"
:
{
"styleClass"
:
"col-md-3"
...
...
@@ -189,6 +203,7 @@
"required"
],
"options"
:
{
"editabled"
:
false
,
"styleClass"
:
"col-md-6"
}
}
...
...
@@ -203,7 +218,11 @@
"styleClass"
:
"col-md-3"
},
"validators"
:
[
"required"
"required"
,
{
"name"
:
"pattern"
,
"value"
:
"^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-
\\
s
\\
./0-9]*$"
}
],
"controlType"
:
"text"
}
...
...
@@ -261,6 +280,7 @@
[
"username"
,
"status"
],
[
"password"
],
[
"defaultRole"
,
"roleList"
...
...
@@ -301,6 +321,7 @@
"sortColumnDefault"
:
"username"
,
"sortColumnDirection"
:
"desc"
,
"pagingSize"
:
5
,
"expandRow"
:
true
,
"columns"
:
[
{
"name"
:
"username"
,
...
...
projects/bytebot-html/src/assets/i18n/gallery/en.json
View file @
a138d96f
...
...
@@ -54,16 +54,18 @@
"message.error.validateAge"
:
"The age must be over 17 years and less that 100"
,
"message.error.email"
:
"The email does not comply with the format"
,
"message.error.required"
:
"The
\"
{{ label }}
\"
field is required"
,
"message.error.min
.length"
:
"The
\"
{{ label }}
\"
field supports at least
\"
{{value
}}
\"
characters"
,
"message.error.max
.length"
:
"The
\"
{{ label }}
\"
field supports at maximum
\"
{{value
}}
\"
characters"
,
"message.error.min
length"
:
"The
\"
{{ label }}
\"
field supports at least
\"
{{requiredLength
}}
\"
characters"
,
"message.error.max
length"
:
"The
\"
{{ label }}
\"
field supports at maximum
\"
{{requiredLength
}}
\"
characters"
,
"message.error.min"
:
"Value must be greater equal that to
\"
{{ min }}
\"
"
,
"message.error.max"
:
"Value must be less equal that to
\"
{{
value
}}
\"
"
,
"message.error.pattern"
:
"The
value does not meet the regular expression -
\"
{{ value }}
\"
"
,
"message.error.max"
:
"Value must be less equal that to
\"
{{
max
}}
\"
"
,
"message.error.pattern"
:
"The
\"
{{ label }}
\"
field does not meet the required format
"
,
"message.error.duplicity.name"
:
"The value entered already exists"
,
"message.error.matDatepickerParse"
:
"The value input is not valid"
,
"message.error.resource.authorization"
:
"Don't have access to the program"
,
"message.error.matDatepickerMin"
:
"The date must be greater than {{ min }}"
,
"message.error.array.required"
:
"You must select at least one item"
,
"message.error.identifier"
:
"The
\"
{{ label }}
\"
field can only contain numbers, letters and underscore"
,
"message.error.names"
:
"The
\"
{{ label }}
\"
field is not valid"
,
"title.dirty.confirmation"
:
"Confirm"
,
"title.delete.confirmation"
:
"Delete"
,
...
...
projects/bytebot-html/src/assets/i18n/gallery/es.json
View file @
a138d96f
...
...
@@ -54,16 +54,18 @@
"message.error.validateAge"
:
"La edad debe ser mayor de 17 años y menor de 100"
,
"message.error.email"
:
"El email no cumple con el formato"
,
"message.error.required"
:
"El campo
\"
{{ label }}
\"
es requerido"
,
"message.error.min
.length"
:
"El campo
\"
{{ label }}
\"
admite como mínimo
\"
{{ value
}}
\"
caracteres"
,
"message.error.max
.length"
:
"El campo
\"
{{ label }}
\"
admite como máximo
\"
{{ value
}}
\"
caracteres"
,
"message.error.min
length"
:
"El campo
\"
{{ label }}
\"
admite como mínimo
\"
{{ requiredLength
}}
\"
caracteres"
,
"message.error.max
length"
:
"El campo
\"
{{ label }}
\"
admite como máximo
\"
{{ requiredLength
}}
\"
caracteres"
,
"message.error.min"
:
"El valor debe ser mayor o igual a
\"
{{ min }}
\"
"
,
"message.error.max"
:
"El valor debe ser menor o igual a
\"
{{ max }}
\"
"
,
"message.error.pattern"
:
"El
valor no cumple con la expresión regular -
\"
{{ requiredPattern }}
\"
"
,
"message.error.pattern"
:
"El
campo
\"
{{ label }}
\"
no cumple con el formato requerido
"
,
"message.error.duplicity.name"
:
"El valor ingresado ya existe"
,
"message.error.matDatepickerParse"
:
"El valor ingresado no es válido"
,
"message.error.resource.authorization"
:
"No tiene acceso al programa"
,
"message.error.matDatepickerMin"
:
"La fecha debe ser mayor a {{ min }}"
,
"message.error.array.required"
:
"Debe seleccionar al menos un elemento"
,
"message.error.identifier"
:
"El campo
\"
{{ label }}
\"
solo puede contener números, letras y guiones"
,
"message.error.names"
:
"El campo
\"
{{ label }}
\"
no es válido"
,
"title.dirty.confirmation"
:
"Confirmar"
,
"title.delete.confirmation"
:
"Eliminar"
,
...
...
projects/bytebot-html/src/assets/i18n/security/en.json
View file @
a138d96f
...
...
@@ -2,9 +2,9 @@
"login.title"
:
"Login Page"
,
"breadcrumb.user.role"
:
"User role"
,
"breadcrumb.user.role.detail"
:
"
Detail
"
,
"breadcrumb.user.role.detail"
:
"
User role
"
,
"breadcrumb.user"
:
"User"
,
"breadcrumb.user.detail"
:
"
Detail
"
,
"breadcrumb.user.detail"
:
"
User
"
,
"control.new"
:
"New"
,
"control.view"
:
"View"
,
...
...
@@ -41,14 +41,18 @@
"user_group_personal_info"
:
"Personal information"
,
"user_group_contact_info"
:
"Contact information"
,
"user_form_username_placeholder"
:
"Username"
,
"user_form_password_placeholder"
:
"Password"
,
"user_form_defaultRole_label"
:
"Main role"
,
"user_form_defaultRole_suggest"
:
"This role will be used as the default role in the application."
,
"user_form_defaultRole_placeholder"
:
"Main role"
,
"user_form_roleList_label"
:
"Assigned roles"
,
"user_form_roleList_placeholder"
:
"Assigned roles"
,
"user_form_firstName_placeholder"
:
"First name"
,
"user_form_secondName_placeholder"
:
"Second name"
,
"user_form_firstSurname_placeholder"
:
"Last name"
,
"user_form_secondSurname_placeholder"
:
"Mother's last name"
,
"user_form_salutationPrefer_label"
:
"Salutation"
,
"user_form_salutationPrefer_placeholder"
:
"Salutation"
,
"user_form_sex_label"
:
"Gender"
,
"user_form_sex_placeholder"
:
"Gender"
,
"user_form_birthday_placeholder"
:
"Birthday"
,
...
...
projects/bytebot-html/src/assets/i18n/security/es.json
View file @
a138d96f
...
...
@@ -2,9 +2,9 @@
"login.title"
:
"Identificación de Usuario"
,
"breadcrumb.user.role"
:
"Rol de usuario"
,
"breadcrumb.user.role.detail"
:
"
Detalle
"
,
"breadcrumb.user.role.detail"
:
"
Rol de usuario
"
,
"breadcrumb.user"
:
"Usuario"
,
"breadcrumb.user.detail"
:
"
Detalle
"
,
"breadcrumb.user.detail"
:
"
Usuario
"
,
"control.new"
:
"Creación"
,
"control.view"
:
"Visualizar"
,
...
...
@@ -41,14 +41,18 @@
"user_group_personal_info"
:
"Datos personales"
,
"user_group_contact_info"
:
"Datos de contacto"
,
"user_form_username_placeholder"
:
"Código de usuario"
,
"user_form_password_placeholder"
:
"Contraseña"
,
"user_form_defaultRole_label"
:
"Rol principal"
,
"user_form_defaultRole_suggest"
:
"Este rol será utilizado como rol por defecto en la aplicación."
,
"user_form_defaultRole_placeholder"
:
"Rol principal"
,
"user_form_roleList_label"
:
"Roles asignados"
,
"user_form_roleList_placeholder"
:
"Roles asignados"
,
"user_form_firstName_placeholder"
:
"Primer nombre"
,
"user_form_secondName_placeholder"
:
"Segundo nombre"
,
"user_form_firstSurname_placeholder"
:
"Apellido paterno"
,
"user_form_secondSurname_placeholder"
:
"Apellido Materno"
,
"user_form_salutationPrefer_label"
:
"Saludo"
,
"user_form_salutationPrefer_placeholder"
:
"Saludo"
,
"user_form_sex_label"
:
"Género"
,
"user_form_sex_placeholder"
:
"Género"
,
"user_form_birthday_placeholder"
:
"Fecha de nacimiento"
,
...
...
tsconfig.json
View file @
a138d96f
...
...
@@ -12,7 +12,7 @@
"module"
:
"esnext"
,
"moduleResolution"
:
"node"
,
"importHelpers"
:
true
,
"target"
:
"es
201
5"
,
"target"
:
"es5"
,
"typeRoots"
:
[
"node_modules/@types"
],
...
...
tslint.json
deleted
100644 → 0
View file @
e7e7b1ff
{
"extends"
:
"tslint:recommended"
,
"rulesDirectory"
:
[
"codelyzer"
],
"rules"
:
{
"array-type"
:
false
,
"arrow-parens"
:
false
,
"deprecation"
:
{
"severity"
:
"warning"
},
"import-blacklist"
:
[
true
,
"rxjs/Rx"
],
"interface-name"
:
false
,
"max-classes-per-file"
:
false
,
"max-line-length"
:
[
true
,
140
],
"member-access"
:
false
,
"member-ordering"
:
[
true
,
{
"order"
:
[
"static-field"
,
"instance-field"
,
"static-method"
,
"instance-method"
]
}
],
"no-consecutive-blank-lines"
:
false
,
"no-console"
:
[
true
,
"debug"
,
"info"
,
"time"
,
"timeEnd"
,
"trace"
],
"no-empty"
:
false
,
"no-inferrable-types"
:
[
true
,
"ignore-params"
],
"no-non-null-assertion"
:
true
,
"no-redundant-jsdoc"
:
true
,
"no-switch-case-fall-through"
:
true
,
"no-var-requires"
:
false
,
"object-literal-key-quotes"
:
[
true
,
"as-needed"
],
"object-literal-sort-keys"
:
false
,
"ordered-imports"
:
false
,
"quotemark"
:
[
true
,
"single"
],
"trailing-comma"
:
false
,
"component-class-suffix"
:
true
,
"contextual-lifecycle"
:
true
,
"directive-class-suffix"
:
true
,
"no-conflicting-lifecycle"
:
true
,
"no-host-metadata-property"
:
true
,
"no-input-rename"
:
true
,
"no-inputs-metadata-property"
:
true
,
"no-output-native"
:
true
,
"no-output-on-prefix"
:
true
,
"no-output-rename"
:
true
,
"no-outputs-metadata-property"
:
true
,
"template-banana-in-box"
:
true
,
"template-no-negated-async"
:
true
,
"use-lifecycle-interface"
:
true
,
"use-pipe-transform-interface"
:
true
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment