Skip to content

Commit c13b79a

Browse files
Merge pull request #1303 from syucream/fix/1pw
Stop to show 1password shortcut
2 parents 7703561 + deb538b commit c13b79a

File tree

12 files changed

+16
-6
lines changed

12 files changed

+16
-6
lines changed

frontend/src/components/entity/entityForm/BasicFields.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export const BasicFields: FC<Props> = ({ control }) => {
6666
helperText={error?.message}
6767
size="small"
6868
fullWidth
69+
inputProps={{ "data-1p-ignore": true }}
6970
/>
7071
)}
7172
/>

frontend/src/components/entry/EntryForm.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export const EntryForm: FC<EntryFormProps> = ({
139139
error={error != null}
140140
helperText={error?.message}
141141
fullWidth
142+
inputProps={{ "data-1p-ignore": true }}
142143
/>
143144
)}
144145
/>

frontend/src/components/group/GroupForm.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export const GroupForm: FC<Props> = ({ control, setValue, groupId }) => {
7474
error={error != null}
7575
helperText={error?.message}
7676
sx={{ width: "100%" }}
77+
inputProps={{ "data-1p-ignore": true }}
7778
/>
7879
)}
7980
/>

frontend/src/components/role/RoleForm.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export const RoleForm: FC<Props> = ({ control, setValue }) => {
9292
error={error != null}
9393
helperText={error?.message}
9494
sx={{ width: "100%" }}
95+
inputProps={{ "data-1p-ignore": true }}
9596
/>
9697
)}
9798
/>

frontend/src/pages/__snapshots__/EntityEditPage.test.tsx.snap

+2
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ exports[`EditEntityPage should match snapshot 1`] = `
210210
<input
211211
aria-invalid="false"
212212
class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-1n4twyu-MuiInputBase-input-MuiOutlinedInput-input"
213+
data-1p-ignore="true"
213214
id="entity-name"
214215
name="name"
215216
placeholder="モデル名"
@@ -773,6 +774,7 @@ exports[`EditEntityPage should match snapshot 1`] = `
773774
<input
774775
aria-invalid="false"
775776
class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-1n4twyu-MuiInputBase-input-MuiOutlinedInput-input"
777+
data-1p-ignore="true"
776778
id="entity-name"
777779
name="name"
778780
placeholder="モデル名"

frontend/src/pages/__snapshots__/GroupEditPage.test.tsx.snap

+2
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ exports[`EditGroupPage should match snapshot 1`] = `
179179
<input
180180
aria-invalid="false"
181181
class="MuiInputBase-input MuiInput-input css-1x51dt5-MuiInputBase-input-MuiInput-input"
182+
data-1p-ignore="true"
182183
id=":r0:"
183184
name="name"
184185
placeholder="グループ名"
@@ -613,6 +614,7 @@ exports[`EditGroupPage should match snapshot 1`] = `
613614
<input
614615
aria-invalid="false"
615616
class="MuiInputBase-input MuiInput-input css-1x51dt5-MuiInputBase-input-MuiInput-input"
617+
data-1p-ignore="true"
616618
id=":r0:"
617619
name="name"
618620
placeholder="グループ名"

frontend/src/pages/__snapshots__/RoleEditPage.test.tsx.snap

+2
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ exports[`EditRolePage should match snapshot 1`] = `
174174
<input
175175
aria-invalid="false"
176176
class="MuiInputBase-input MuiInput-input css-1x51dt5-MuiInputBase-input-MuiInput-input"
177+
data-1p-ignore="true"
177178
id=":r0:"
178179
name="name"
179180
placeholder="ロール名"
@@ -815,6 +816,7 @@ exports[`EditRolePage should match snapshot 1`] = `
815816
<input
816817
aria-invalid="false"
817818
class="MuiInputBase-input MuiInput-input css-1x51dt5-MuiInputBase-input-MuiInput-input"
819+
data-1p-ignore="true"
818820
id=":r0:"
819821
name="name"
820822
placeholder="ロール名"

templates/edit_entity_content.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<table class="table table-bordered">
99
<tr>
1010
<td>エンティティ名</td>
11-
<td><input type="text" name="name" value="{{ entity.name }}" /></td>
11+
<td><input type="text" name="name" value="{{ entity.name }}" data-1p-ignore /></td>
1212
</tr>
1313
<tr>
1414
<td>備考</td>

templates/edit_entry/attrs.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696

9797
{% if attr.type|bitwise_and:attr_type_value_named %}
9898
<div class='col-3'>
99-
<input type='text' class='form-control referral_key' attr_id="{{ attr.id }}" entity_attr_id="{{ attr.entity_attr_id }}" value="{{ attr.last_value.value }}" enabled="True" index="0"></input>
99+
<input type='text' class='form-control referral_key' attr_id="{{ attr.id }}" entity_attr_id="{{ attr.entity_attr_id }}" value="{{ attr.last_value.value }}" enabled="True" index="0" data-1p-ignore></input>
100100
</div>
101101
<div class='col-9'>
102102
{% else %}
@@ -183,7 +183,7 @@
183183
</div>
184184
{% else %}
185185

186-
<input type="text" class="form-control attr_value" attr_id="{{ attr.id }}" entity_attr_id="{{ attr.entity_attr_id }}" enabled="True" value="{{ attr.last_value }}" {%if attr.is_mandatory%}mandatory="true"{%endif%}/>
186+
<input type="text" class="form-control attr_value" attr_id="{{ attr.id }}" entity_attr_id="{{ attr.entity_attr_id }}" enabled="True" value="{{ attr.last_value }}" {%if attr.is_mandatory%}mandatory="true"{%endif%} data-1p-ignore/>
187187

188188
{% endif %}
189189
{% endif %}

templates/edit_entry/content.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<tr>
1010
<td>エントリ名</td>
1111
<td>
12-
<input type="text" class="form-control" name="entry_name" pattern="^(?!\s*$).+" title="有効なエントリ名(空白のみは不許可)" value="{{ entry.name }}" required />
12+
<input type="text" class="form-control" name="entry_name" pattern="^(?!\s*$).+" title="有効なエントリ名(空白のみは不許可)" value="{{ entry.name }}" required data-1p-ignore />
1313
{% if entry.is_deleted %}
1414
[削除済]
1515
{% elif entry.status|bitwise_and:STATUS_ENTRY.EDITING %}

templates/edit_group.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<div class="form-row">
2626
<div class="form-group col-md-11">
2727
<label class="col-form-label">グループ名</label>
28-
<input type="text" name="name" class="form-control" id="group-name" value="{{ current_group_name }}"/>
28+
<input type="text" name="name" class="form-control" id="group-name" value="{{ current_group_name }}" data-1p-ignore />
2929
</div>
3030
</div>
3131
<div class="form-row">

templates/role/create.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<div class="form-row">
2323
<div class="form-group col-md-11">
2424
<input type="text" name="name" class="form-control" id="role_name"
25-
value="{{ name }}" placeholder="ロール名"/>
25+
value="{{ name }}" placeholder="ロール名" data-1p-ignore />
2626
<div class='invalid-feedback role_name'></div>
2727
</div>
2828
<div class="form-group col-md-1">

0 commit comments

Comments
 (0)