質問編集履歴
4
指摘いただいたように編集しましたが結果に変わりがありませんでした、、、
test
CHANGED
File without changes
|
test
CHANGED
@@ -294,16 +294,20 @@
|
|
294
294
|
|
295
295
|
});
|
296
296
|
|
297
|
+
})
|
298
|
+
|
299
|
+
.then(() => {
|
300
|
+
|
301
|
+
// console.log(`editingFunctionId:${editingFunctionId}`);
|
302
|
+
|
303
|
+
// updateFunction(editingFunctionId);
|
304
|
+
|
305
|
+
deleteFunction(functions);
|
306
|
+
|
297
307
|
});
|
298
308
|
|
299
309
|
|
300
310
|
|
301
|
-
|
302
|
-
|
303
|
-
deleteFunction(functions);
|
304
|
-
|
305
|
-
|
306
|
-
|
307
311
|
```
|
308
312
|
|
309
313
|
>deleteFunction.js
|
3
タイトルの変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
非同期がうまくいかず、得たい値が「undefined」になってしまいます…
|
1
|
+
非同期処理がうまくいかず、得たい値が「undefined」になってしまいます…
|
test
CHANGED
File without changes
|
2
タグの変更
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
1
HTMLの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,6 +26,208 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
+
>edit.html
|
30
|
+
|
31
|
+
```html
|
32
|
+
|
33
|
+
<!DOCTYPE html>
|
34
|
+
|
35
|
+
<html lang="ja">
|
36
|
+
|
37
|
+
<head>
|
38
|
+
|
39
|
+
<meta charset="utf-8" />
|
40
|
+
|
41
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
42
|
+
|
43
|
+
<title>Twitter Manage App</title>
|
44
|
+
|
45
|
+
<link rel="stylesheet" href="./css/style.css" />
|
46
|
+
|
47
|
+
</head>
|
48
|
+
|
49
|
+
<body>
|
50
|
+
|
51
|
+
<div id="container">
|
52
|
+
|
53
|
+
<h2>Let's edit your processing!</h2>
|
54
|
+
|
55
|
+
<h1>|処理の内容変更</h1>
|
56
|
+
|
57
|
+
<form method="post" class="form" id="edit-form">
|
58
|
+
|
59
|
+
<ul class="processing-form">
|
60
|
+
|
61
|
+
<li>
|
62
|
+
|
63
|
+
<label for="editTarget"
|
64
|
+
|
65
|
+
>編集する項目:
|
66
|
+
|
67
|
+
<select id="editTarget"></select>
|
68
|
+
|
69
|
+
</label>
|
70
|
+
|
71
|
+
</li>
|
72
|
+
|
73
|
+
<li>
|
74
|
+
|
75
|
+
<label for="functionName">変更後の処理名:</label>
|
76
|
+
|
77
|
+
<input
|
78
|
+
|
79
|
+
type="text"
|
80
|
+
|
81
|
+
name="functionName"
|
82
|
+
|
83
|
+
id="functionName"
|
84
|
+
|
85
|
+
placeholder="処理の名前を入力..."
|
86
|
+
|
87
|
+
/>
|
88
|
+
|
89
|
+
</li>
|
90
|
+
|
91
|
+
<li>
|
92
|
+
|
93
|
+
<fieldset>
|
94
|
+
|
95
|
+
<legend>起動有無</legend>
|
96
|
+
|
97
|
+
<label><input type="radio" name="switch" value="ON" />ON</label>
|
98
|
+
|
99
|
+
<label>
|
100
|
+
|
101
|
+
<input type="radio" name="switch" value="OFF" />OFF
|
102
|
+
|
103
|
+
</label>
|
104
|
+
|
105
|
+
</fieldset>
|
106
|
+
|
107
|
+
</li>
|
108
|
+
|
109
|
+
<li>
|
110
|
+
|
111
|
+
<fieldset>
|
112
|
+
|
113
|
+
<legend>処理の種類</legend>
|
114
|
+
|
115
|
+
<label>
|
116
|
+
|
117
|
+
<input type="radio" name="processingType" value="post" />投稿
|
118
|
+
|
119
|
+
</label>
|
120
|
+
|
121
|
+
<label>
|
122
|
+
|
123
|
+
<input
|
124
|
+
|
125
|
+
type="radio"
|
126
|
+
|
127
|
+
name="processingType"
|
128
|
+
|
129
|
+
value="favorite"
|
130
|
+
|
131
|
+
/>いいね
|
132
|
+
|
133
|
+
</label>
|
134
|
+
|
135
|
+
<label>
|
136
|
+
|
137
|
+
<input
|
138
|
+
|
139
|
+
type="radio"
|
140
|
+
|
141
|
+
name="processingType"
|
142
|
+
|
143
|
+
value="reply"
|
144
|
+
|
145
|
+
/>リプライ
|
146
|
+
|
147
|
+
</label>
|
148
|
+
|
149
|
+
</fieldset>
|
150
|
+
|
151
|
+
</li>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<li>
|
156
|
+
|
157
|
+
<label for="startTime">処理の開始時間:</label>
|
158
|
+
|
159
|
+
<input type="time" id="startTime" name="startTime" />
|
160
|
+
|
161
|
+
</li>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<li>
|
166
|
+
|
167
|
+
<label for="tweet">
|
168
|
+
|
169
|
+
<span class="textareaLabel">投稿内容:</span>
|
170
|
+
|
171
|
+
<textarea
|
172
|
+
|
173
|
+
name="tweet"
|
174
|
+
|
175
|
+
id="tweet"
|
176
|
+
|
177
|
+
cols="30"
|
178
|
+
|
179
|
+
rows="10"
|
180
|
+
|
181
|
+
placeholder="ツイート内容を入力..."
|
182
|
+
|
183
|
+
></textarea>
|
184
|
+
|
185
|
+
</label>
|
186
|
+
|
187
|
+
</li>
|
188
|
+
|
189
|
+
</ul>
|
190
|
+
|
191
|
+
</form>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<div class="button-container">
|
196
|
+
|
197
|
+
<button formaction="#" id="submit">更新する</button>
|
198
|
+
|
199
|
+
<button formaction="#" id="delete">削除する</button>
|
200
|
+
|
201
|
+
<a href="./admin.html" class="button">
|
202
|
+
|
203
|
+
<button>管理画面へ戻る</button>
|
204
|
+
|
205
|
+
</a>
|
206
|
+
|
207
|
+
</div>
|
208
|
+
|
209
|
+
</div>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<script src="https://www.gstatic.com/firebasejs/8.3.0/firebase-app.js"></script>
|
214
|
+
|
215
|
+
<script src="https://www.gstatic.com/firebasejs/8.3.0/firebase-firestore.js"></script>
|
216
|
+
|
217
|
+
<script src="./js/config.js"></script>
|
218
|
+
|
219
|
+
<script src="./js/edit/index.js" type="module"></script>
|
220
|
+
|
221
|
+
</body>
|
222
|
+
|
223
|
+
</html>
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
```
|
228
|
+
|
229
|
+
|
230
|
+
|
29
231
|
>index.js
|
30
232
|
|
31
233
|
```js
|