mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 11:46:38 +08:00
warnings diplayed in yellow #650
This commit is contained in:
parent
357690dfff
commit
3ad1662e0e
|
@ -38,7 +38,7 @@ input:focus, textarea:focus {
|
|||
.darkgrey { color: #808080 !important; }
|
||||
.attention { color: red !important; }
|
||||
.error { color: #d41919 !important; }
|
||||
.warning { color: #e4ae0d !important; }
|
||||
.warning { color: #efb301 !important; }
|
||||
.blue { color: #5e8dc9 !important; }
|
||||
.red { color: red !important; }
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<RELID>MI</RELID>
|
||||
<OBJID>ZABAPGIT_CSS_COMMON</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
<VALUE>common.css</VALUE>
|
||||
<VALUE>~wwwtmp.css</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
|
|
|
@ -103,6 +103,7 @@ CLASS lcl_file_status IMPLEMENTATION.
|
|||
iv_msgv2 = <ls_res1>-obj_type
|
||||
iv_msgv3 = <ls_res1>-obj_name
|
||||
iv_msgv4 = 'are not placed in the same folder'
|
||||
iv_msgty = 'W'
|
||||
iv_rc = '1' ) ##no_text.
|
||||
ENDIF.
|
||||
ENDLOOP.
|
||||
|
@ -117,6 +118,7 @@ CLASS lcl_file_status IMPLEMENTATION.
|
|||
io_log->add( iv_msgv1 = 'Package and path does not match for object,'
|
||||
iv_msgv2 = <ls_res1>-obj_type
|
||||
iv_msgv3 = <ls_res1>-obj_name
|
||||
iv_msgty = 'W'
|
||||
iv_rc = '2' ) ##no_text.
|
||||
ENDIF.
|
||||
ENDLOOP.
|
||||
|
@ -128,6 +130,7 @@ CLASS lcl_file_status IMPLEMENTATION.
|
|||
IF <ls_res1>-filename IS NOT INITIAL AND <ls_res1>-filename = ls_file-filename.
|
||||
io_log->add( iv_msgv1 = 'Multiple files with same filename,'
|
||||
iv_msgv2 = <ls_res1>-filename
|
||||
iv_msgty = 'W'
|
||||
iv_rc = '3' ) ##no_text.
|
||||
ENDIF.
|
||||
|
||||
|
@ -135,6 +138,7 @@ CLASS lcl_file_status IMPLEMENTATION.
|
|||
io_log->add( iv_msgv1 = 'Filename is empty for object'
|
||||
iv_msgv2 = <ls_res1>-obj_type
|
||||
iv_msgv3 = <ls_res1>-obj_name
|
||||
iv_msgty = 'W'
|
||||
iv_rc = '4' ) ##no_text.
|
||||
ENDIF.
|
||||
|
||||
|
|
|
@ -484,6 +484,7 @@ CLASS lcl_objects IMPLEMENTATION.
|
|||
io_log->add( iv_msgv1 = 'Object type ignored, not supported:'
|
||||
iv_msgv2 = is_item-obj_type
|
||||
iv_msgv3 = '-'
|
||||
iv_msgty = 'E'
|
||||
iv_msgv4 = is_item-obj_name ) ##no_text.
|
||||
ENDIF.
|
||||
RETURN.
|
||||
|
|
|
@ -1055,6 +1055,7 @@ CLASS lcl_log DEFINITION FINAL.
|
|||
iv_msgv2 TYPE csequence OPTIONAL
|
||||
iv_msgv3 TYPE csequence OPTIONAL
|
||||
iv_msgv4 TYPE csequence OPTIONAL
|
||||
iv_msgty TYPE symsgty DEFAULT 'E'
|
||||
iv_rc TYPE balsort OPTIONAL,
|
||||
count
|
||||
RETURNING VALUE(rv_count) TYPE i,
|
||||
|
@ -1075,7 +1076,9 @@ CLASS lcl_log IMPLEMENTATION.
|
|||
|
||||
METHOD to_html.
|
||||
|
||||
DATA: lv_string TYPE string.
|
||||
DATA: lv_class TYPE string,
|
||||
lv_icon TYPE string,
|
||||
lv_string TYPE string.
|
||||
|
||||
FIELD-SYMBOLS: <ls_log> LIKE LINE OF mt_log.
|
||||
|
||||
|
@ -1086,10 +1089,23 @@ CLASS lcl_log IMPLEMENTATION.
|
|||
ENDIF.
|
||||
|
||||
LOOP AT mt_log ASSIGNING <ls_log>.
|
||||
CASE <ls_log>-msgty.
|
||||
WHEN 'W'.
|
||||
lv_icon = 'alert'.
|
||||
lv_class = 'warning'.
|
||||
WHEN 'E'.
|
||||
lv_icon = 'flame'.
|
||||
lv_class = 'error'.
|
||||
WHEN OTHERS. " ??? unexpected
|
||||
lv_icon = 'flame'.
|
||||
lv_class = 'error'.
|
||||
ENDCASE.
|
||||
|
||||
CONCATENATE <ls_log>-msgv1 <ls_log>-msgv2 <ls_log>-msgv3 <ls_log>-msgv4
|
||||
INTO lv_string SEPARATED BY space.
|
||||
ro_html->add( '<span class="error">' ).
|
||||
ro_html->add_icon( iv_name = 'alert' iv_class = 'error' ). " warning CSS exists too
|
||||
|
||||
ro_html->add( |<span class="{ lv_class }">| ).
|
||||
ro_html->add_icon( iv_name = lv_icon ).
|
||||
ro_html->add( lv_string ).
|
||||
ro_html->add( '</span>' ).
|
||||
ENDLOOP.
|
||||
|
@ -1101,7 +1117,7 @@ CLASS lcl_log IMPLEMENTATION.
|
|||
FIELD-SYMBOLS: <ls_log> LIKE LINE OF mt_log.
|
||||
|
||||
APPEND INITIAL LINE TO mt_log ASSIGNING <ls_log>.
|
||||
<ls_log>-msgty = 'W'.
|
||||
<ls_log>-msgty = iv_msgty. " Error by default
|
||||
<ls_log>-msgid = '00'.
|
||||
<ls_log>-msgno = '001'.
|
||||
<ls_log>-msgv1 = iv_msgv1.
|
||||
|
|
Loading…
Reference in New Issue
Block a user