|
46 | 46 | <mat-panel-title i18n="@@global_cc_title">Global CC Policy (Invalid for an applications which has custom CC policy)</mat-panel-title> |
47 | 47 | </mat-expansion-panel-header> |
48 | 48 | <mat-form-field> |
49 | | - <input matInput i18n-placeholder="@@interval_seconds" [(ngModel)]="global_cc_policy.interval_seconds" type="number" placeholder="Statistic Period (Seconds)" required> |
| 49 | + <input matInput i18n-placeholder="@@interval_seconds" [(ngModel)]="global_cc_policy.interval_seconds" type="number" placeholder="Time Window (default: 1 second)" required> |
50 | 50 | </mat-form-field> |
51 | 51 | <mat-form-field> |
52 | | - <input matInput i18n-placeholder="@@max_count" [(ngModel)]="global_cc_policy.max_count" type="number" placeholder="Max Requests Count" required> |
| 52 | + <input matInput i18n-placeholder="@@max_count" [(ngModel)]="global_cc_policy.max_count" type="number" placeholder="Max Requests Count (default: 6)" required> |
53 | 53 | </mat-form-field> |
54 | 54 | <mat-form-field> |
55 | | - <input matInput i18n-placeholder="@@block_seconds" [(ngModel)]="global_cc_policy.block_seconds" type="number" placeholder="Block Seconds" required> |
| 55 | + <input matInput i18n-placeholder="@@block_seconds" [(ngModel)]="global_cc_policy.block_seconds" type="number" placeholder="Block Seconds (default: 300)" required> |
56 | 56 | </mat-form-field> |
57 | 57 |
|
58 | 58 | <mat-form-field> |
|
63 | 63 | </mat-select> |
64 | 64 | </mat-form-field> |
65 | 65 | <section> |
66 | | - <mat-checkbox i18n="@@count_each_url" [(ngModel)]="global_cc_policy.stat_by_url">Count each URL separately</mat-checkbox> |
| 66 | + <mat-checkbox i18n="@@count_each_url" [(ngModel)]="global_cc_policy.stat_by_url">Count each URL separately (default: selected)</mat-checkbox> |
67 | 67 | </section> |
68 | 68 | <section> |
69 | | - <mat-checkbox i18n="@@count_each_ua" [(ngModel)]="global_cc_policy.stat_by_ua">Count each User-Agent separately</mat-checkbox> |
| 69 | + <mat-checkbox i18n="@@count_each_ua" [(ngModel)]="global_cc_policy.stat_by_ua">Count each User-Agent separately (default: selected)</mat-checkbox> |
70 | 70 | </section> |
71 | 71 | <section> |
72 | | - <mat-checkbox i18n="@@count_each_cookie" [(ngModel)]="global_cc_policy.stat_by_cookie">Count different Cookies separately</mat-checkbox> |
| 72 | + <mat-checkbox i18n="@@count_each_cookie" [(ngModel)]="global_cc_policy.stat_by_cookie">Count different Cookies separately (default: not selected)</mat-checkbox> |
73 | 73 | </section> |
74 | 74 |
|
75 | 75 | <section> |
76 | | - <mat-checkbox i18n="@@enable_policy" [(ngModel)]="global_cc_policy.is_enabled" >Enabled this CC block policy</mat-checkbox> |
| 76 | + <mat-checkbox i18n="@@enable_policy" [(ngModel)]="global_cc_policy.is_enabled" >Enabled this CC block policy (default: selected)</mat-checkbox> |
77 | 77 | </section> |
78 | 78 | <mat-action-row> |
79 | 79 | <button mat-button mat-raised-button (click)="updateCCPolicy(0)" color="primary">Save</button> |
|
107 | 107 | <mat-panel-title>{{application.name}} CC Policy</mat-panel-title> |
108 | 108 | </mat-expansion-panel-header> |
109 | 109 | <mat-form-field> |
110 | | - <input matInput i18n-placeholder="@@interval_seconds" [(ngModel)]="app_cc_policy.interval_seconds" type="number" placeholder="Statistic Period (Seconds)" required> |
| 110 | + <input matInput i18n-placeholder="@@interval_seconds" [(ngModel)]="app_cc_policy.interval_seconds" type="number" placeholder="Time Window (default: 1 second)" required> |
111 | 111 | </mat-form-field> |
112 | 112 | <mat-form-field> |
113 | | - <input matInput i18n-placeholder="@@max_count" [(ngModel)]="app_cc_policy.max_count" type="number" placeholder="Max Requests Count" required> |
| 113 | + <input matInput i18n-placeholder="@@max_count" [(ngModel)]="app_cc_policy.max_count" type="number" placeholder="Max Requests Count (default: 6)" required> |
114 | 114 | </mat-form-field> |
115 | 115 | <mat-form-field> |
116 | | - <input matInput i18n-placeholder="@@block_seconds" [(ngModel)]="app_cc_policy.block_seconds" type="number" placeholder="Block Seconds" required> |
| 116 | + <input matInput i18n-placeholder="@@block_seconds" [(ngModel)]="app_cc_policy.block_seconds" type="number" placeholder="Block Seconds (default: 300)" required> |
117 | 117 | </mat-form-field> |
118 | 118 | <mat-form-field> |
119 | 119 | <mat-select i18n-placeholder="@@action" [(ngModel)]="app_cc_policy.action" placeholder="Action"> |
|
0 commit comments