質問編集履歴
4
指摘いただいたように編集しましたが結果に変わりがありませんでした、、、
title
CHANGED
File without changes
|
body
CHANGED
@@ -146,11 +146,13 @@
|
|
146
146
|
|
147
147
|
functions.push(functionData);
|
148
148
|
});
|
149
|
+
})
|
150
|
+
.then(() => {
|
151
|
+
// console.log(`editingFunctionId:${editingFunctionId}`);
|
152
|
+
// updateFunction(editingFunctionId);
|
153
|
+
deleteFunction(functions);
|
149
154
|
});
|
150
155
|
|
151
|
-
|
152
|
-
deleteFunction(functions);
|
153
|
-
|
154
156
|
```
|
155
157
|
>deleteFunction.js
|
156
158
|
```js
|
3
タイトルの変更
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
非同期がうまくいかず、得たい値が「undefined」になってしまいます…
|
1
|
+
非同期処理がうまくいかず、得たい値が「undefined」になってしまいます…
|
body
CHANGED
File without changes
|
2
タグの変更
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
1
HTMLの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,6 +12,107 @@
|
|
12
12
|
|
13
13
|
### 該当のソースコード
|
14
14
|
|
15
|
+
>edit.html
|
16
|
+
```html
|
17
|
+
<!DOCTYPE html>
|
18
|
+
<html lang="ja">
|
19
|
+
<head>
|
20
|
+
<meta charset="utf-8" />
|
21
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
22
|
+
<title>Twitter Manage App</title>
|
23
|
+
<link rel="stylesheet" href="./css/style.css" />
|
24
|
+
</head>
|
25
|
+
<body>
|
26
|
+
<div id="container">
|
27
|
+
<h2>Let's edit your processing!</h2>
|
28
|
+
<h1>|処理の内容変更</h1>
|
29
|
+
<form method="post" class="form" id="edit-form">
|
30
|
+
<ul class="processing-form">
|
31
|
+
<li>
|
32
|
+
<label for="editTarget"
|
33
|
+
>編集する項目:
|
34
|
+
<select id="editTarget"></select>
|
35
|
+
</label>
|
36
|
+
</li>
|
37
|
+
<li>
|
38
|
+
<label for="functionName">変更後の処理名:</label>
|
39
|
+
<input
|
40
|
+
type="text"
|
41
|
+
name="functionName"
|
42
|
+
id="functionName"
|
43
|
+
placeholder="処理の名前を入力..."
|
44
|
+
/>
|
45
|
+
</li>
|
46
|
+
<li>
|
47
|
+
<fieldset>
|
48
|
+
<legend>起動有無</legend>
|
49
|
+
<label><input type="radio" name="switch" value="ON" />ON</label>
|
50
|
+
<label>
|
51
|
+
<input type="radio" name="switch" value="OFF" />OFF
|
52
|
+
</label>
|
53
|
+
</fieldset>
|
54
|
+
</li>
|
55
|
+
<li>
|
56
|
+
<fieldset>
|
57
|
+
<legend>処理の種類</legend>
|
58
|
+
<label>
|
59
|
+
<input type="radio" name="processingType" value="post" />投稿
|
60
|
+
</label>
|
61
|
+
<label>
|
62
|
+
<input
|
63
|
+
type="radio"
|
64
|
+
name="processingType"
|
65
|
+
value="favorite"
|
66
|
+
/>いいね
|
67
|
+
</label>
|
68
|
+
<label>
|
69
|
+
<input
|
70
|
+
type="radio"
|
71
|
+
name="processingType"
|
72
|
+
value="reply"
|
73
|
+
/>リプライ
|
74
|
+
</label>
|
75
|
+
</fieldset>
|
76
|
+
</li>
|
77
|
+
|
78
|
+
<li>
|
79
|
+
<label for="startTime">処理の開始時間:</label>
|
80
|
+
<input type="time" id="startTime" name="startTime" />
|
81
|
+
</li>
|
82
|
+
|
83
|
+
<li>
|
84
|
+
<label for="tweet">
|
85
|
+
<span class="textareaLabel">投稿内容:</span>
|
86
|
+
<textarea
|
87
|
+
name="tweet"
|
88
|
+
id="tweet"
|
89
|
+
cols="30"
|
90
|
+
rows="10"
|
91
|
+
placeholder="ツイート内容を入力..."
|
92
|
+
></textarea>
|
93
|
+
</label>
|
94
|
+
</li>
|
95
|
+
</ul>
|
96
|
+
</form>
|
97
|
+
|
98
|
+
<div class="button-container">
|
99
|
+
<button formaction="#" id="submit">更新する</button>
|
100
|
+
<button formaction="#" id="delete">削除する</button>
|
101
|
+
<a href="./admin.html" class="button">
|
102
|
+
<button>管理画面へ戻る</button>
|
103
|
+
</a>
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<script src="https://www.gstatic.com/firebasejs/8.3.0/firebase-app.js"></script>
|
108
|
+
<script src="https://www.gstatic.com/firebasejs/8.3.0/firebase-firestore.js"></script>
|
109
|
+
<script src="./js/config.js"></script>
|
110
|
+
<script src="./js/edit/index.js" type="module"></script>
|
111
|
+
</body>
|
112
|
+
</html>
|
113
|
+
|
114
|
+
```
|
115
|
+
|
15
116
|
>index.js
|
16
117
|
```js
|
17
118
|
"use script";
|